Compiling/Warning Fixes (for scons/mingw + "split sources hack") Part 1:

* Removed compiler warnings from texteditor work
* Added round brackets around the new defines for IPO channels for extra texture layers
* Tweaked priorities so that BLI_heap_* functions in blenlib can be found by linker (split-sources specific)

TODO:
* "monkey*" vars cannot be found still
This commit is contained in:
2008-09-05 06:05:25 +00:00
parent 18b5b4ff0c
commit 18fe6c27ff
5 changed files with 24 additions and 24 deletions

View File

@@ -44,12 +44,12 @@
static Text *activeToolText = NULL;
static SuggList suggestions = {NULL, NULL, NULL, NULL, NULL};
static char *documentation = NULL;
static int doc_lines = 0;
//static int doc_lines = 0;
static int txttl_cmp(const char *first, const char *second, int len) {
int cmp, i;
for (cmp=0, i=0; i<len; i++) {
if (cmp= toupper(first[i])-toupper(second[i])) {
if ( (cmp= toupper(first[i])-toupper(second[i])) ) {
break;
}
}

View File

@@ -2243,7 +2243,7 @@ void txt_delete_char (Text *text)
if ((mrk->flags & TMARK_TEMP) && !(mrk->flags & TMARK_EDITALL)) {
txt_clear_markers(text, mrk->group, TMARK_TEMP);
} else {
TextMarker *nxt= mrk->next;
//TextMarker *nxt= mrk->next;
BLI_freelinkN(&text->markers, mrk);
}
return;
@@ -2308,7 +2308,7 @@ void txt_backspace_char (Text *text)
if ((mrk->flags & TMARK_TEMP) && !(mrk->flags & TMARK_EDITALL)) {
txt_clear_markers(text, mrk->group, TMARK_TEMP);
} else {
TextMarker *nxt= mrk->next;
//TextMarker *nxt= mrk->next;
BLI_freelinkN(&text->markers, mrk);
}
return;

View File

@@ -24,4 +24,4 @@ if env['OURPLATFORM'] == 'linux2':
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw'):
incs += ' ' + env['BF_PTHREADS_INC']
env.BlenderLib ( 'bf_blenlib', sources, Split(incs), Split(defs), libtype=['core','player'], priority = [85,195], compileflags =cflags )
env.BlenderLib ( 'bf_blenlib', sources, Split(incs), Split(defs), libtype=['core', 'intern', 'player'], priority = [85,150,195], compileflags =cflags )

View File

@@ -142,24 +142,24 @@ typedef short IPO_Channel;
#define MA_FRESTRAI 25
#define MA_ADD 26
#define MA_MAP1 1<<5
#define MA_MAP2 1<<6
#define MA_MAP3 1<<7
#define MA_MAP4 1<<8
#define MA_MAP5 1<<9
#define MA_MAP6 1<<10
#define MA_MAP7 1<<11
#define MA_MAP8 1<<12
#define MA_MAP9 1<<13
#define MA_MAP10 1<<14
#define MA_MAP11 1<<15
#define MA_MAP12 1<<16
#define MA_MAP13 1<<17
#define MA_MAP14 1<<18
#define MA_MAP15 1<<19
#define MA_MAP16 1<<20
#define MA_MAP17 1<<21
#define MA_MAP18 1<<22
#define MA_MAP1 (1<<5)
#define MA_MAP2 (1<<6)
#define MA_MAP3 (1<<7)
#define MA_MAP4 (1<<8)
#define MA_MAP5 (1<<9)
#define MA_MAP6 (1<<10)
#define MA_MAP7 (1<<11)
#define MA_MAP8 (1<<12)
#define MA_MAP9 (1<<13)
#define MA_MAP10 (1<<14)
#define MA_MAP11 (1<<15)
#define MA_MAP12 (1<<16)
#define MA_MAP13 (1<<17)
#define MA_MAP14 (1<<18)
#define MA_MAP15 (1<<19)
#define MA_MAP16 (1<<20)
#define MA_MAP17 (1<<21)
#define MA_MAP18 (1<<22)
#define TEX_TOTNAM 14

View File

@@ -390,7 +390,7 @@ int decode_key_string(char *str, unsigned short *key, unsigned short *qual)
}
/* Compare last part against key names */
if (len-prev==1 || len-prev==4 && !strncmp(str+prev, "KEY", 3)) {
if ((len-prev==1) || ((len-prev==4) && !strncmp(str+prev, "KEY", 3))) {
if (str[prev]>='A' && str[prev]<='Z') {
*key= str[prev]-'A'+AKEY;