@ -34,7 +34,7 @@
* better to use the more general representation . )
* better to use the more general representation . )
*
*
* Note that an integer - looking string will get lexed as T_Float if
* Note that an integer - looking string will get lexed as T_Float if
* the value is too large to fit in a ' long ' .
* the value is too large to fit in an ' int ' .
*
*
* Nulls , of course , don ' t need the value part at all .
* Nulls , of course , don ' t need the value part at all .
* - - - - - - - - - - - - - - - - - - - - - -
* - - - - - - - - - - - - - - - - - - - - - -
@ -44,7 +44,7 @@ typedef struct Value
NodeTag type ; /* tag appropriately (eg. T_String) */
NodeTag type ; /* tag appropriately (eg. T_String) */
union ValUnion
union ValUnion
{
{
long ival ; /* machine integer */
int ival ; /* machine integer */
char * str ; /* string */
char * str ; /* string */
} val ;
} val ;
} Value ;
} Value ;
@ -53,7 +53,7 @@ typedef struct Value
# define floatVal(v) atof(((Value *)(v))->val.str)
# define floatVal(v) atof(((Value *)(v))->val.str)
# define strVal(v) (((Value *)(v))->val.str)
# define strVal(v) (((Value *)(v))->val.str)
extern Value * makeInteger ( long i ) ;
extern Value * makeInteger ( int i ) ;
extern Value * makeFloat ( char * numericStr ) ;
extern Value * makeFloat ( char * numericStr ) ;
extern Value * makeString ( char * str ) ;
extern Value * makeString ( char * str ) ;
extern Value * makeBitString ( char * str ) ;
extern Value * makeBitString ( char * str ) ;