Changeset 54 for trunk/orca/util

Show
Ignore:
Timestamp:
02/17/06 15:30:01 (3 years ago)
Author:
krobillard
Message:

Now using orDecimal() & orInt() where appropriate.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/orca/util/cbparse.c

    r1 r54  
    11/*============================================================================ 
    22    ORCA - CBParser 
    3     Copyright (C) 2005  Karl Robillard 
     3    Copyright (C) 2005-2006  Karl Robillard 
    44 
    55    This library is free software; you can redistribute it and/or 
     
    9797            //    continue; 
    9898 
    99             if( vmatch->type == OT_LITWORD ) 
     99            if( orIs(vmatch, OT_LITWORD) ) 
    100100            { 
    101                 if( (stream->type != OT_WORD) || 
    102                     (vmatch->word.atom != stream->word.atom) ) 
     101                if( (orType(stream) != OT_WORD) || 
     102                    (orAtom(vmatch) != orAtom(stream)) ) 
    103103                    break; 
    104104            } 
    105             else if( vmatch->type == OT_WORD ) 
     105            else if( orIs(vmatch, OT_WORD) ) 
    106106            { 
    107107#if 0 
     
    111111                orWordVal( vmatch, ctx, wval ); 
    112112 
    113                 if( wval->type == OT_DATATYPE ) 
     113                if( orIs(wval, OT_DATATYPE) ) 
    114114#else 
    115                 if( vmatch->word.atom < OT_COUNT ) 
     115                if( orAtom(vmatch) < OT_COUNT ) 
    116116#endif 
    117117                { 
    118118#if 0 
    119                     int dt = wval->integer; 
     119                    int dt = orInt(wval); 
    120120#else 
    121                     int dt = vmatch->word.atom; 
     121                    int dt = orAtom(vmatch); 
    122122#endif 
    123123                    if( dt == OT_NUMBER ) 
    124124                    { 
    125                         if( (stream->type != OT_INTEGER) && 
    126                             (stream->type != OT_DECIMAL) ) 
     125                        if( (orType(stream) != OT_INTEGER) && 
     126                            (orType(stream) != OT_DECIMAL) ) 
    127127                            break; 
    128128                    }