Пример #1
0
/*======================================================================*/
void addParameterForString(Parameter *parameters, char *value) {
    Parameter *parameter = findEndOfParameterArray(parameters);

    createStringLiteral(value);
    parameter->instance = instanceFromLiteral(litCount);
    parameter->useWords = FALSE;

    setEndOfArray(parameter+1);
}
Пример #2
0
RefPtr<TTObject> TTLiteral::createStringLiteral(const uint8_t *str)
{
    RefPtr<TTObject> obj = createStringLiteral(strlen((const char *) str));
    strcpy((char *)obj->getLiteral()->data, (const char *)str);
    return obj;
}