Lines Matching refs:c
66 static inline int isident(int c) in isident() argument
68 return isalnum(c) || c == '_'; in isident()
71 static inline bool isasciitype(char c) in isasciitype() argument
73 if( c >= ' ' && c < 127 && c != '\'' && c != '\\' ) return true; in isasciitype()
91 static char* appendcharornum(char c, char* out, bool skipzero = true) in appendcharornum() argument
93 if (skipzero && c == 0) return out; in appendcharornum()
95 if (isasciitype(c)) { in appendcharornum()
96 *out++ = c; in appendcharornum()
102 *out++ = makehexdigit(c>>4); in appendcharornum()
103 *out++ = makehexdigit(c); in appendcharornum()
112 char c[4]; in typetostring() local
113 c[0] = (char)((type>>24)&0xFF); in typetostring()
114 c[1] = (char)((type>>16)&0xFF); in typetostring()
115 c[2] = (char)((type>>8)&0xFF); in typetostring()
116 c[3] = (char)(type&0xFF); in typetostring()
125 if (c[i] == 0) { in typetostring()
136 valid = isident(c[3]) ? true : false; in typetostring()
140 if (c[i] == 0) { in typetostring()
144 if (!isident(c[i])) valid = false; in typetostring()
149 if( valid && (!fullContext || c[0] != '0' || c[1] != 'x') ) { in typetostring()
151 pos = appendcharornum(c[0], pos); in typetostring()
152 pos = appendcharornum(c[1], pos); in typetostring()
153 pos = appendcharornum(c[2], pos); in typetostring()
154 pos = appendcharornum(c[3], pos); in typetostring()
230 char* c = buffer; in printHexData() local
232 sprintf(c, "0x%08x: ", (int)offset); in printHexData()
233 c += 12; in printHexData()
251 *c++ = ' '; in printHexData()
256 *c++ = makehexdigit(val>>4); in printHexData()
257 *c++ = makehexdigit(val); in printHexData()
259 *c++ = ' '; in printHexData()
260 *c++ = ' '; in printHexData()
265 *c++ = ','; in printHexData()
266 *c++ = ' '; in printHexData()
269 *c++ = '0'; in printHexData()
270 *c++ = 'x'; in printHexData()
273 *c++ = makehexdigit(val>>4); in printHexData()
274 *c++ = makehexdigit(val); in printHexData()
285 *c++ = ' '; in printHexData()
286 *c++ = '\''; in printHexData()
291 *c++ = (val >= ' ' && val < 127) ? val : '.'; in printHexData()
293 *c++ = ' '; in printHexData()
297 *c++ = '\''; in printHexData()
298 if (length > bytesPerLine) *c++ = '\n'; in printHexData()
300 if (remain > 0) *c++ = ','; in printHexData()
301 *c++ = '\n'; in printHexData()
305 *c = 0; in printHexData()