Changeset 33

Show
Ignore:
Timestamp:
02/08/06 19:36:45 (3 years ago)
Author:
krobillard
Message:

GL version compiles again.

Location:
trunk/orca/gl
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/orca/gl/dlist.c

    r25 r33  
    144144{ 
    145145    uint32_t key = 0; 
    146     OString* str = orAtomString( atom ); 
    147     char* cp  = str->charArray; 
    148     char* end = cp + str->used; 
    149  
    150     if( str->used > 5 ) 
     146    char* cp = orAtomCString( atom ); 
     147    char* end; 
     148 
     149    end = cp; 
     150    while( *end ) 
     151        ++end; 
     152 
     153    if( (end - cp) > 5 ) 
    151154        return 0; 
    152155 
  • trunk/orca/gl/gx.c

    r25 r33  
    803803    int code; 
    804804    int ch; 
     805    int strLen; 
    805806    const char* cp; 
    806     OString* str; 
    807807    OValue* it  = blk->values; 
    808808    OValue* end = blk->values + blk->used; 
     
    814814        if( it->type == OT_WORD ) 
    815815        { 
    816             str = orAtomString( it->word.atom ); 
    817             cp = str->charArray; 
    818             ch = (str->used == 1) ? *cp : 0; 
     816            cp = orAtomCString( it->word.atom ); 
     817            strLen = 0; 
     818            while( cp[ strLen ] ) 
     819                ++strLen; 
     820            ch = (strLen == 1) ? *cp : 0; 
    819821        } 
    820822        else if( it->type == OT_CHAR ) 
     
    881883            } 
    882884        } 
    883         else if( str->used == 2 ) 
     885        else if( strLen == 2 ) 
    884886        { 
    885887                 if( strnequ( cp, "up", 2 ) ) code = KEY_Up; 
     
    894896            else if( strnequ( cp, "f9", 2 ) ) code = KEY_F9; 
    895897        } 
    896         else if( str->used == 3 ) 
     898        else if( strLen == 3 ) 
    897899        { 
    898900                 if( strnequ( cp, "spc", 3 ) ) code = KEY_Space; 
  • trunk/orca/gl/gx.h

    r1 r33  
    109109extern struct GxEnv gEnv; 
    110110extern GLView* gView; 
     111extern const char* orAtomCString( OAtom atom ); 
    111112 
    112113extern void gxInitEnv();