Lines Matching refs: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);
174 const VarType *vt = &api->params[ct];
176 if (!vt->isConst && vt->ptrLevel) {
180 if (vt->ptrLevel > 1) {
185 if (vt->isConst && vt->ptrLevel) {
228 const VarType *vt = &api->params[ct2];
232 fprintf(f, "%s", vt->name);
242 const VarType *vt = &api->params[ct2];
246 fprintf(f, "%s", vt->name);
262 const VarType *vt = &api->params[ct2];
266 fprintf(f, "%s", vt->name);
279 const VarType *vt = &api->params[ct2];
280 if (vt->isConst && vt->ptrLevel) {
281 fprintf(f, " dataSize += %s_length;\n", vt->name);
300 const VarType *vt = &api->params[ct2];
301 needFlush += vt->ptrLevel;
302 if (vt->ptrLevel && hasInlineDataPointers(api)) {
303 fprintf(f, " if (%s_length == 0) {\n", vt->name);
304 fprintf(f, " cmd->%s = NULL;\n", vt->name);
306 fprintf(f, " memcpy(payload, %s, %s_length);\n", vt->name, vt->name);
307 fprintf(f, " cmd->%s = (", vt->name);
308 printVarType(f, vt);
310 fprintf(f, " payload += %s_length;\n", vt->name);
312 fprintf(f, " cmd->%s = %s;\n", vt->name, vt->name);
316 fprintf(f, " cmd->%s = %s;\n", vt->name, vt->name);
362 const VarType *vt = &api->params[ct2];
366 fprintf(f, "%s", vt->name);
417 const VarType *vt = &api->params[ct2];
418 needFlush += vt->ptrLevel;
420 if (hasInlineDataPointers(api) && vt->ptrLevel) {
422 vt->name, vt->typeName, vt->name);
424 fprintf(f, ",\n cmd->%s", vt->name);