Lines Matching refs:tp
91 #define NUM_BOOLEANS(tp) (tp)->num_Booleans
92 #define NUM_NUMBERS(tp) (tp)->num_Numbers
93 #define NUM_STRINGS(tp) (tp)->num_Strings
94 #define EXT_NAMES(tp,i,limit,index,table) (i >= limit) ? tp->ext_Names[index] : table[i]
96 #define NUM_BOOLEANS(tp) BOOLCOUNT
97 #define NUM_NUMBERS(tp) NUMCOUNT
98 #define NUM_STRINGS(tp) STRCOUNT
99 #define EXT_NAMES(tp,i,limit,index,table) table[i]
102 #define NUM_EXT_NAMES(tp) (unsigned) ((tp)->ext_Booleans + (tp)->ext_Numbers + (tp)->ext_Strings)
104 #define for_each_boolean(n,tp) for(n = 0; n < NUM_BOOLEANS(tp); n++)
105 #define for_each_number(n,tp) for(n = 0; n < NUM_NUMBERS(tp); n++)
106 #define for_each_string(n,tp) for(n = 0; n < NUM_STRINGS(tp); n++)
109 #define for_each_ext_boolean(n,tp) for(n = BOOLCOUNT; n < NUM_BOOLEANS(tp); n++)
110 #define for_each_ext_number(n,tp) for(n = NUMCOUNT; n < NUM_NUMBERS(tp); n++)
111 #define for_each_ext_string(n,tp) for(n = STRCOUNT; n < NUM_STRINGS(tp); n++)
114 #define ExtBoolname(tp,i,names) EXT_NAMES(tp, i, BOOLCOUNT, (i - (tp->num_Booleans - tp->ext_Booleans)), names)
115 #define ExtNumname(tp,i,names) EXT_NAMES(tp, i, NUMCOUNT, (i - (tp->num_Numbers - tp->ext_Numbers)) + tp->ext_Booleans, names)
116 #define ExtStrname(tp,i,names) EXT_NAMES(tp, i, STRCOUNT, (i - (tp->num_Strings - tp->ext_Strings)) + (tp->ext_Numbers + tp->ext_Booleans), names)