Lines Matching +defs:first +defs:name
152 pxdrfuncdecl(const char *name, int pointerp)
155 f_print(fout, "bool_t xdr_%s(XDR *, %s%s);\n", name,
156 name, pointerp ? (" *") : "");
174 char *name;
184 name = plist->args.argname;
185 f_print(fout, "struct %s {\n", name);
188 pdeclaration(name, &l->decl, 1, ";\n");
191 f_print(fout, "typedef struct %s %s;\n", name, name);
219 const char *name = def->def_name;
221 f_print(fout, "struct %s {\n", name);
223 pdeclaration(name, &l->decl, 1, ";\n");
226 f_print(fout, "typedef struct %s %s;\n", name, name);
233 const char *name = def->def_name;
236 f_print(fout, "struct %s {\n", name);
239 f_print(fout, "\tbool_t %s;\n", decl->name);
241 f_print(fout, "\t%s %s;\n", decl->type, decl->name);
246 pdeclaration(name, &l->case_decl, 2, ";\n");
250 pdeclaration(name, decl, 2, ";\n");
252 f_print(fout, "\t} %s_u;\n", name);
254 f_print(fout, "typedef struct %s %s;\n", name, name);
258 pdefine(const char *name, const char *num)
260 f_print(fout, "#define %s %s\n", name, num);
264 puldefine(const char *name, const char *num)
266 f_print(fout, "#define %s %s\n", name, num);
395 const char *name = def->def_name;
399 const char *first = "";
401 f_print(fout, "enum %s {\n", name);
403 f_print(fout, "%s\t%s", first, l->name);
415 first = ",\n";
418 f_print(fout, "typedef enum %s %s;\n", name, name);
424 const char *name = def->def_name;
430 if (!streq(name, old)) {
441 if (undefined2(old, name) && def->def.ty.old_prefix) {
450 f_print(fout, "\tunsigned int %s_len;\n", name);
451 f_print(fout, "\t%s%s *%s_val;\n", prefix, old, name);
452 f_print(fout, "} %s", name);
455 f_print(fout, "%s%s *%s", prefix, old, name);
458 f_print(fout, "%s%s %s[%s]", prefix, old, name,
462 f_print(fout, "%s%s %s", prefix, old, name);
470 pdeclaration(const char *name, declaration *dec, int tab,
481 if (streq(dec->type, name) && !dec->prefix) {
485 f_print(fout, "char *%s", dec->name);
502 f_print(fout, "%s%s %s", prefix, type, dec->name);
505 f_print(fout, "%s%s %s[%s]", prefix, type, dec->name,
509 f_print(fout, "%s%s *%s", prefix, type, dec->name);
514 f_print(fout, "\tunsigned int %s_len;\n", dec->name);
516 f_print(fout, "\t%s%s *%s_val;\n", prefix, type, dec->name);
518 f_print(fout, "} %s", dec->name);