Lines Matching defs:type

41 		return (ddp); /* nothing to check if the type is not yet set */
45 xyerror(D_DECL_CHARATTR, "invalid type declaration: short and "
46 "long may not be used with char type\n");
52 xyerror(D_DECL_VOIDATTR, "invalid type declaration: attributes "
53 "may not be used with void type\n");
58 xyerror(D_DECL_SIGNINT, "invalid type declaration: signed and "
59 "unsigned may only be used with integer type\n");
64 xyerror(D_DECL_LONGINT, "invalid type declaration: long and "
66 "floating-point type\n");
197 "incorrect type specified\n");
236 * If we already have a type name specified and we see another type
249 xyerror(D_DECL_COMBO, "invalid type combination\n");
256 "in a type name\n");
327 "use parameter of type %s: %s, parameter #%d\n",
337 "use parameter of type %s: %s, parameter #%d\n",
377 * bottom to match the resulting CTF type tree and data layout. Refer
421 * resulting type is "pointer to function". To make the pointer land on top,
426 * for the function's return type and the function parameter list is discarded.
465 ctf_id_t type;
482 if (name != NULL && (type = ctf_lookup_by_name(ctfp, n)) != CTF_ERR &&
483 ctf_type_kind(ctfp, type) != CTF_K_FORWARD)
484 xyerror(D_DECL_TYPERED, "type redeclared: %s\n", n);
487 type = ctf_add_struct(ctfp, flag, name);
489 type = ctf_add_union(ctfp, flag, name);
491 if (type == CTF_ERR || ctf_update(ctfp) == CTF_ERR) {
497 ddp->dd_type = type;
499 dt_scope_push(ctfp, type);
563 * a new integer type of the same name and attributes as the base type
565 * refer to this new bit-field type and continue on to add the member.
590 xyerror(D_DECL_BFTYPE, "invalid type for "
596 "for type: %s\n", idname);
608 xyerror(D_UNKNOWN, "failed to create type for "
618 * If the member type is not defined in the same CTF container as the
620 * struct or union itself) or its parent, copy the member type into
621 * this container and reset dtt to refer to the copied type.
632 xyerror(D_UNKNOWN, "failed to copy type of '%s': %s\n",
662 ctf_id_t type;
677 if (name != NULL && (type = ctf_lookup_by_name(ctfp, n)) != CTF_ERR) {
678 if (ctf_enum_iter(ctfp, type, dt_decl_hasmembers, NULL))
679 xyerror(D_DECL_TYPERED, "type redeclared: %s\n", n);
680 } else if ((type = ctf_add_enum(ctfp, flag, name)) == CTF_ERR) {
686 ddp->dd_type = type;
688 dt_scope_push(ctfp, type);
720 * to identifiers which are previously defined enumerators in the type.
805 * Look up the type corresponding to the specified decl stack. The scoping of
806 * the underlying type names is handled by dt_type_lookup(). We build up the
807 * name from the specified string and prefixes and then lookup the type. If
817 ctf_id_t type;
832 * If we have already cached a CTF type for this decl, then we just
833 * return the type information for the cached type.
845 * representative ID of kind CTF_K_FUNCTION and just return that type.
847 * the declaration of the function return type, and the parameter list
872 xywarn(D_UNKNOWN, "cannot find type: %s*: %s\n",
881 * If the decl is an array, we must find the base type and then call
893 * type T1:( content=int, nelems=5 ) type T2:( content=T1, nelems=3 )
903 * to build the corresponding CTF type tree in the appropriate order.
922 * If the array base type is not defined in the target
923 * container or its parent, copy the type to the target
935 xywarn(D_UNKNOWN, "failed to copy type: %s\n",
942 * The array index type is irrelevant in C and D: just set it
956 xywarn(D_UNKNOWN, "failed to create array type: %s\n",
965 * Allocate space for the type name and enough space for the maximum
1013 * Lookup the type. If we find it, we're done. Otherwise create a
1014 * forward tag for the type if it is a struct, union, or enum. If
1024 type = ctf_add_forward(dmp->dm_ctfp, flag,
1028 xywarn(D_UNKNOWN, "failed to resolve type %s: %s\n", name,
1033 if (type == CTF_ERR || ctf_update(dmp->dm_ctfp) == CTF_ERR) {
1040 ddp->dd_type = type;
1044 tip->dtt_type = type;
1076 dt_scope_push(ctf_file_t *ctfp, ctf_id_t type)
1088 dsp->ds_type = type;
1106 xyerror(D_UNKNOWN, "failed to update type definitions: %s\n",