Lines Matching defs:type
183 SmiType *type;
186 type = smiGetNodeType(n);
187 assert(type != NULL);
189 if (type->name != NULL) {
191 if (strcmp(type_map[m], type->name) == 0) {
196 printf("%s", type_names[type->basetype]);
198 if (type->basetype == SMI_BASETYPE_ENUM ||
199 type->basetype == SMI_BASETYPE_BITS)
200 print_enum(type);
202 else if (type->basetype == SMI_BASETYPE_OCTETSTRING &&
203 type->name != NULL)
204 printf(" | %s", type->name);
435 SmiType *type;
438 type = smiGetNodeType(n);
439 assert(type != NULL);
441 if (type->basetype == SMI_BASETYPE_ENUM) {
442 if (do_typedef == 'e' && type->name != NULL) {
444 if (strcmp(t->name, type->name) == 0)
447 save_typdef(type->name);
448 printf("typedef %s ENUM (\n", type->name);
449 } else if (do_typedef == 'E' && type->name == NULL)
454 print_enum_typedef(type);
457 } else if (type->basetype == SMI_BASETYPE_BITS) {
458 if (do_typedef == 'e' && type->name != NULL) {
460 if (strcmp(t->name, type->name) == 0)
463 save_typdef(type->name);
464 printf("typedef %s BITS (\n", type->name);
465 } else if (do_typedef == 'E' && type->name == NULL)
470 print_enum_typedef(type);