git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6733
d7cf8633-e32d-0410-b094-
e92efae38249
*datapointer = NULL;
return false;
}
- c = *data;
- if (*data == '\\')
- {
- if (data[1] == '"')
- {
- data++;
- c = *data;
- }
- else if (data[1] == '\'')
- {
- data++;
- c = *data;
- }
- else if (data[1] == 'n')
- {
- data++;
- c = '\n';
- }
- else if (data[1] == '\\')
- data++;
- }
- com_token[len++] = c;
+ com_token[len++] = *data;
}
com_token[len] = 0;
*datapointer = data+1;
*datapointer = NULL;
return false;
}
- c = *data;
- if (*data == '\\')
- {
- if (data[1] == '"')
- {
- data++;
- c = *data;
- }
- else if (data[1] == '\'')
- {
- data++;
- c = *data;
- }
- else if (data[1] == 'n')
- {
- data++;
- c = '\n';
- }
- else if (data[1] == '\\')
- data++;
- }
- com_token[len++] = c;
+ com_token[len++] = *data;
}
com_token[len] = 0;
*datapointer = data;