Go to the source code of this file.
Functions | |
boolean | tgsi_text_translate (const char *text, struct tgsi_token *tokens, uint num_tokens) |
boolean tgsi_text_translate | ( | const char * | text, | |
struct tgsi_token * | tokens, | |||
uint | num_tokens | |||
) |
Definition at line 1081 of file tgsi_text.c.
References translate_ctx::cur, FALSE, translate_ctx::text, tgsi_sanity_check(), translate_ctx::tokens, translate_ctx::tokens_cur, translate_ctx::tokens_end, and translate().
01085 { 01086 struct translate_ctx ctx; 01087 01088 ctx.text = text; 01089 ctx.cur = text; 01090 ctx.tokens = tokens; 01091 ctx.tokens_cur = tokens; 01092 ctx.tokens_end = tokens + num_tokens; 01093 01094 if (!translate( &ctx )) 01095 return FALSE; 01096 01097 return tgsi_sanity_check( tokens ); 01098 }