• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/usr.bin/rpcgen/

Lines Matching defs:dec

116 	declaration dec;
127 get_declaration(&dec, DEF_STRUCT);
129 decls->decl = dec;
143 declaration dec;
184 get_prog_declaration(&dec, DEF_PROGRAM, num_args);
185 if (streq(dec.type, "void"))
189 decls->decl = dec;
194 get_prog_declaration(&dec, DEF_STRUCT,
197 decls->decl = dec;
199 if (streq(dec.type, "void"))
291 declaration dec;
300 get_declaration(&dec, DEF_UNION);
301 defp->def.un.enum_decl = dec;
325 get_declaration(&dec, DEF_UNION);
326 cases->case_decl = dec;
337 get_declaration(&dec, DEF_UNION);
339 *defp->def.un.default_decl = dec;
406 declaration dec;
409 get_declaration(&dec, DEF_TYPEDEF);
410 defp->def_name = dec.name;
411 check_type_name(dec.name, 1);
412 defp->def.ty.old_prefix = dec.prefix;
413 defp->def.ty.old_type = dec.type;
414 defp->def.ty.rel = dec.rel;
415 defp->def.ty.array_max = dec.array_max;
419 get_declaration(declaration *dec, defkind dkind)
423 get_type(&dec->prefix, &dec->type, dkind);
424 dec->rel = REL_ALIAS;
425 if (streq(dec->type, "void")) {
429 check_type_name(dec->type, 0);
432 dec->rel = REL_POINTER;
435 dec->name = tok.str;
437 if (dec->rel == REL_POINTER) {
440 dec->rel = REL_VECTOR;
442 dec->array_max = tok.str;
445 if (dec->rel == REL_POINTER) {
448 dec->rel = REL_ARRAY;
450 dec->array_max = "~0"; /* unspecified size, use max */
453 dec->array_max = tok.str;
457 if (streq(dec->type, "opaque")) {
458 if (dec->rel != REL_ARRAY && dec->rel != REL_VECTOR) {
461 } else if (streq(dec->type, "string")) {
462 if (dec->rel != REL_ARRAY) {
470 get_prog_declaration(declaration *dec, defkind dkind, int num)
478 dec->rel = REL_ALIAS;
479 dec->type = "void";
480 dec->prefix = NULL;
481 dec->name = NULL;
485 get_type(&dec->prefix, &dec->type, dkind);
486 dec->rel = REL_ALIAS;
493 dec->name = (char *) xstrdup(name);
494 if (streq(dec->type, "void")) {
498 if (streq(dec->type, "opaque")) {
502 if (streq(dec->type, "string")) {
505 dec->rel = REL_POINTER;
508 dec->name = xstrdup(tok.str);
512 if (!streq(dec->type, "string")) {
515 dec->rel = REL_ARRAY;
517 dec->array_max = "~0";
521 dec->array_max = tok.str;
525 if (streq(dec->type, "string")) {
526 if (dec->rel != REL_ARRAY) {
532 dec->rel = REL_ARRAY;
533 dec->array_max = "~0"; /* unspecified size, use max */