Lines Matching refs:type_t

43 static type_t		*type_Construct(void);
44 static void type_Destroy(type_t *);
45 static type_t *type_SetPtr(type_t *, stt_t);
46 static type_t *type_SetFun(type_t *, decl_t *);
47 static type_t *type_AddTail(type_t *, type_t *);
48 static const char *type_Verify(type_t *);
56 static decl_t *decl_AddTypeTail(decl_t *, type_t *);
57 static decl_t *decl_addptr(decl_t *, type_t *);
63 static void type_PrintType(type_t *, int);
91 type_t *t_val;
448 type_t *tp = type_Construct();
456 type_t *tp = type_Construct();
1179 /* type_Construct - allocate and initialize a type_t. */
1181 static type_t *
1183 type_t *tp = malloc(sizeof (type_t));
1203 /* type_Destroy - free a type_t list. */
1206 type_Destroy(type_t *tp) {
1208 type_t *nextp = tp->t_next;
1233 * type_SetPtr - make a type_t into a "pointer to ..." variant.
1239 static type_t *
1240 type_SetPtr(type_t *tp, stt_t s) {
1250 * type_SetAry - make a type_t into an "array of ...", variant.
1256 static type_t *
1257 type_SetAry(type_t *tp, char *dim) {
1273 * type_SetFun - make a type_t into a "function returning ..." variant.
1279 static type_t *
1280 type_SetFun(type_t *tp, decl_t *arglist) {
1295 * type_AddTail - add a type_t to the end of an existing type_t list.
1298 * 1) The type_t *tp is added to the end of the type_t *dp list.
1301 static type_t *
1302 type_AddTail(type_t *dp, type_t *tp) {
1303 type_t *lastp = dp;
1304 type_t *p;
1316 /* type_PrintType - print a type_t list onto standard output. */
1319 type_PrintType(type_t *tp, int lvl) {
1363 * type_Verify - verify a type_t list for semantic correctness.
1380 * 4) A type_t of NULL is permitted to indicate an empty type_t list.
1384 type_Verify(type_t *tp) {
1395 type_t *nextp;
1412 /* type_GetNext - return the next type_t in the list. */
1414 type_t *
1415 type_GetNext(type_t *tp) {
1431 type_IsArray(type_t *tp) {
1436 type_GetArraySize(type_t *tp) {
1443 type_IsPtrTo(type_t *tp) {
1448 type_GetPtrToTypeQual(type_t *tp) {
1455 type_IsFunction(type_t *tp) {
1460 type_GetArgLength(type_t *tp) {
1467 type_IsVarargs(type_t *tp) {
1477 type_GetArg(type_t *tp) {
1484 * type_IsPtrFun - determine if the type_t results in a call-able function.
1489 * 2) The test is true if the type_t list is number of DD_PTR followed
1494 type_IsPtrFun(type_t *tp) {
1588 type_t *
1641 type_t *tp = dp->d_type;
1644 type_t *np;
1735 * decl_AddTypeTail - add a type_t to the end of a decl_t type_t list.
1739 decl_AddTypeTail(decl_t *dp, type_t *tp) {
1749 * decl_addptr - add a DD_PTR type_t to the end of a decl_t type_t list.
1753 decl_addptr(decl_t *dp, type_t *tp) {
1760 * decl_addary - allocate and add a DD_ARY type_t to the end of
1761 * a decl_t type_t list.
1766 type_t *tp = type_Construct();
1775 * decl_addfun - allocate and add a DD_FUN type_t to the end of a
1776 * decl_t type_t list.
1782 type_t *tp = type_Construct();
1844 type_t *tp = dp->d_type;
2072 type_t *tp;
2141 type_t *tp;
2177 type_t *tp = dp->d_type;