Lines Matching refs:c
49 static inline int isident(int c) in isident() argument
51 return isalnum(c) || c == '_'; in isident()
54 static inline bool isasciitype(char c) in isasciitype() argument
56 if( c >= ' ' && c < 127 && c != '\'' && c != '\\' ) return true; in isasciitype()
74 static char* appendcharornum(char c, char* out, bool skipzero = true) in appendcharornum() argument
76 if (skipzero && c == 0) return out; in appendcharornum()
78 if (isasciitype(c)) { in appendcharornum()
79 *out++ = c; in appendcharornum()
85 *out++ = makehexdigit(c>>4); in appendcharornum()
86 *out++ = makehexdigit(c); in appendcharornum()
95 char c[4]; in typetostring() local
96 c[0] = (char)((type>>24)&0xFF); in typetostring()
97 c[1] = (char)((type>>16)&0xFF); in typetostring()
98 c[2] = (char)((type>>8)&0xFF); in typetostring()
99 c[3] = (char)(type&0xFF); in typetostring()
108 if (c[i] == 0) { in typetostring()
119 valid = isident(c[3]) ? true : false; in typetostring()
123 if (c[i] == 0) { in typetostring()
127 if (!isident(c[i])) valid = false; in typetostring()
132 if( valid && (!fullContext || c[0] != '0' || c[1] != 'x') ) { in typetostring()
134 pos = appendcharornum(c[0], pos); in typetostring()
135 pos = appendcharornum(c[1], pos); in typetostring()
136 pos = appendcharornum(c[2], pos); in typetostring()
137 pos = appendcharornum(c[3], pos); in typetostring()
213 char* c = buffer; in printHexData() local
215 sprintf(c, "0x%08x: ", (int)offset); in printHexData()
216 c += 12; in printHexData()
234 *c++ = ' '; in printHexData()
239 *c++ = makehexdigit(val>>4); in printHexData()
240 *c++ = makehexdigit(val); in printHexData()
242 *c++ = ' '; in printHexData()
243 *c++ = ' '; in printHexData()
248 *c++ = ','; in printHexData()
249 *c++ = ' '; in printHexData()
252 *c++ = '0'; in printHexData()
253 *c++ = 'x'; in printHexData()
256 *c++ = makehexdigit(val>>4); in printHexData()
257 *c++ = makehexdigit(val); in printHexData()
268 *c++ = ' '; in printHexData()
269 *c++ = '\''; in printHexData()
274 *c++ = (val >= ' ' && val < 127) ? val : '.'; in printHexData()
276 *c++ = ' '; in printHexData()
280 *c++ = '\''; in printHexData()
281 if (length > bytesPerLine) *c++ = '\n'; in printHexData()
283 if (remain > 0) *c++ = ','; in printHexData()
284 *c++ = '\n'; in printHexData()
288 *c = 0; in printHexData()