Home | History | Annotate | Download | only in rs

Lines Matching defs:vt

42 void printVarType(FILE *f, const VarType *vt) {
44 if (vt->isConst) {
48 switch (vt->type) {
53 fprintf(f, "int%i_t", vt->bits);
56 fprintf(f, "uint%i_t", vt->bits);
59 if (vt->bits == 32)
65 fprintf(f, "%s", vt->typeName);
69 if (vt->ptrLevel) {
71 for (ct=0; ct < vt->ptrLevel; ct++) {
77 void printVarTypeAndName(FILE *f, const VarType *vt) {
78 printVarType(f, vt);
80 if (vt->name[0]) {
81 fprintf(f, " %s", vt->name);
175 const VarType *vt = &api->params[ct];
177 if (!vt->isConst && vt->ptrLevel) {
181 if (vt->ptrLevel > 1) {
186 if (vt->isConst && vt->ptrLevel) {
229 const VarType *vt = &api->params[ct2];
233 fprintf(f, "%s", vt->name);
243 const VarType *vt = &api->params[ct2];
247 fprintf(f, "%s", vt->name);
263 const VarType *vt = &api->params[ct2];
267 fprintf(f, "%s", vt->name);
280 const VarType *vt = &api->params[ct2];
281 if (vt->isConst && vt->ptrLevel) {
282 fprintf(f, " dataSize += %s_length;\n", vt->name);
301 const VarType *vt = &api->params[ct2];
302 needFlush += vt->ptrLevel;
303 if (vt->ptrLevel && hasInlineDataPointers(api)) {
304 fprintf(f, " if (%s_length == 0) {\n", vt->name);
305 fprintf(f, " cmd->%s = NULL;\n", vt->name);
307 fprintf(f, " memcpy(payload, %s, %s_length);\n", vt->name, vt->name);
308 fprintf(f, " cmd->%s = (", vt->name);
309 printVarType(f, vt);
311 fprintf(f, " payload += %s_length;\n", vt->name);
313 fprintf(f, " cmd->%s = %s;\n", vt->name, vt->name);
317 fprintf(f, " cmd->%s = %s;\n", vt->name, vt->name);
363 const VarType *vt = &api->params[ct2];
367 fprintf(f, "%s", vt->name);
418 const VarType *vt = &api->params[ct2];
419 needFlush += vt->ptrLevel;
421 if (hasInlineDataPointers(api) && vt->ptrLevel) {
423 vt->name, vt->typeName, vt->name);
425 fprintf(f, ",\n cmd->%s", vt->name);