Exemple #1
0
/* Dap identifiers will come to use encoded,
   so we must decode them; It turns out that we
   can use ocuridecode because dap specifies
   %xx encoding.
*/
char*
dapdecode(DAPlexstate* lexstate, char* name)
{
    char* decoded;
    decoded = ocuridecode(name);
    oclistpush(lexstate->reclaim,(ocelem)decoded);
    return decoded;
}
Exemple #2
0
char*
dapdecode(DAPlexstate* lexstate, char* name)
{
    char* decoded = NULL;
#ifdef DECODE_IDENTIFIERS
    decoded = ocuridecode(name);
#else
    decoded = ocuridecodeonly(name,decodelist);
#endif
    oclistpush(lexstate->reclaim,(void*)decoded);
    return decoded;
}