Lines Matching +defs:cpp +defs:a
113 #define APF(cpp, f, func) { \
116 error = asprintf(cpp, f, fieldwidth, precision, func); \
118 error = asprintf(cpp, f, fieldwidth, func); \
120 error = asprintf(cpp, f, precision, func); \
122 error = asprintf(cpp, f, func); \
127 #define check(c, a) (c) >= (a) && (c) <= (a) + 5 ? (c) - (a) + 10
128 #define hextobin(c) (check(c, 'a') : check(c, 'A') : (c) - '0')
159 * at best we have a bare "printf" so there cannot be
160 * any options, thus getopts() would be a waste of time.
167 * than usage() if it happens to start with a '-' we
168 * just avoid getopts() and treat it as a format string.
170 * Then, for argc > 2, we also skip this if there is a '%'
173 * starts with a '-' so we skip getopts() in that case as well.
213 * width or precision is a '*'; if it is, gather up value.
234 * Ok - we've found a format specification,
235 * Save its address for a later printf().
292 * There has to be a better way to do this,
296 static char *a, *t;
300 if (a != NULL)
301 free(a);
302 a = NULL;
318 APF(&a, start, t);
321 b_fmt = a;
378 case 'a':
410 /* escape if a \c was encountered */
460 * Halts processing string if a \c escape is encountered.
484 * They start with a \0, and are followed by 0, 1, 2,
562 * Supporting 2 byte constants is a compromise.
580 case 'a': value = '\a'; break; /* alert */
602 /* expand a string so that everything is printable */
613 /* get a buffer that is definitely large enough.... */
625 case '\a': ch = 'a'; break; /* alert */
768 /* This is a NetBSD extension, not required by POSIX (it is useless) */
779 * Fetch a wide character from the string given
788 * (used for fetching the first chartacter of a string arg for %c)