Changeset 33 for trunk/orca/gl/gx.c

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

GL version compiles again.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 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;