return constVal (buffer);
}
- sprintf (buffer, "%lf", lit);
+ sprintf (buffer, "%f", lit);
return constFloatVal (buffer);
}
SPEC_CVAL (val->type).v_int = sval;
}
- // check the size and make it a short if required
+ // check the size and make it a char if possible
if (sval < 256)
- SPEC_SHORT (val->etype) = 1;
+ SPEC_NOUN (val->etype) = V_CHAR;
return val;
}
/*!
- /fn void copyStr (char *dest, char *src)
+ /fn int copyStr (char *dest, char *src)
Copies a source string to a dest buffer interpreting escape sequences
and special characters