Lines Matching refs:name

111 storexdrfuncdecl(const char *name, int pointerp)  in storexdrfuncdecl()  argument
117 xdrptr->name = name; in storexdrfuncdecl()
133 print_xdr_func_def(const char *name, int pointerp) in print_xdr_func_def() argument
135 f_print(fout, "extern bool_t xdr_%s(XDR *, %s%s);\n", name, in print_xdr_func_def()
136 name, pointerp ? "*" : ""); in print_xdr_func_def()
154 char *name; in pargdef() local
165 name = plist->args.argname; in pargdef()
166 f_print(fout, "struct %s {\n", name); in pargdef()
169 pdeclaration(name, &l->decl, 1, in pargdef()
174 name, name); in pargdef()
175 storexdrfuncdecl(name, 1); in pargdef()
186 const char *name = def->def_name; in pstructdef() local
188 f_print(fout, "struct %s {\n", name); in pstructdef()
190 pdeclaration(name, &l->decl, 1, ";\n"); in pstructdef()
193 f_print(fout, "typedef struct %s %s;\n", name, name); in pstructdef()
200 const char *name = def->def_name; in puniondef() local
203 f_print(fout, "struct %s {\n", name); in puniondef()
206 f_print(fout, "\tbool_t %s;\n", decl->name); in puniondef()
208 f_print(fout, "\t%s %s;\n", decl->type, decl->name); in puniondef()
213 pdeclaration(name, &l->case_decl, 2, ";\n"); in puniondef()
217 pdeclaration(name, decl, 2, ";\n"); in puniondef()
219 f_print(fout, "\t} %s_u;\n", name); in puniondef()
221 f_print(fout, "typedef struct %s %s;\n", name, name); in puniondef()
225 pdefine(const char *name, const char *num) in pdefine() argument
227 f_print(fout, "#define\t%s %s\n", name, num); in pdefine()
231 puldefine(const char *name, const char *num) in puldefine() argument
233 f_print(fout, "#define\t%s ((unsigned long)(%s))\n", name, num); in puldefine()
256 pfreeprocdef(const char * name, const char *vers) in pfreeprocdef() argument
259 pvname(name, vers); in pfreeprocdef()
264 pdispatch(const char * name, const char *vers) in pdispatch() argument
268 pvname(name, vers); in pdispatch()
367 const char *name = def->def_name; in penumdef() local
372 f_print(fout, "enum %s {\n", name); in penumdef()
374 f_print(fout, "\t%s", l->name); in penumdef()
392 f_print(fout, "typedef enum %s %s;\n", name, name); in penumdef()
398 const char *name = def->def_name; in ptypedef() local
404 if (!streq(name, old)) { in ptypedef()
413 if (undefined2(old, name) && def->def.ty.old_prefix) { in ptypedef()
422 f_print(fout, "\tu_int %s_len;\n", name); in ptypedef()
423 f_print(fout, "\t%s%s *%s_val;\n", prefix, old, name); in ptypedef()
424 f_print(fout, "} %s", name); in ptypedef()
427 f_print(fout, "%s%s *%s", prefix, old, name); in ptypedef()
430 f_print(fout, "%s%s %s[%s]", prefix, old, name, in ptypedef()
434 f_print(fout, "%s%s %s", prefix, old, name); in ptypedef()
442 pdeclaration(const char *name, declaration *dec, int tab, const char *separator) in pdeclaration() argument
452 if (streq(dec->type, name) && !dec->prefix) { in pdeclaration()
456 f_print(fout, "char *%s", dec->name); in pdeclaration()
472 f_print(fout, "%s%s %s", prefix, type, dec->name); in pdeclaration()
475 f_print(fout, "%s%s %s[%s]", prefix, type, dec->name, in pdeclaration()
479 f_print(fout, "%s%s *%s", prefix, type, dec->name); in pdeclaration()
484 f_print(fout, "\tu_int %s_len;\n", dec->name); in pdeclaration()
487 "\t%s%s *%s_val;\n", prefix, type, dec->name); in pdeclaration()
489 f_print(fout, "} %s", dec->name); in pdeclaration()