| /plan9/sys/src/cmd/gs/src/ |
| H A D | ibnum.c | 45 int format; in num_array_format() local 49 format = bp[1]; in num_array_format() 50 if (!num_is_valid(format) || in num_array_format() 51 sdecodeshort(bp + 2, format) != in num_array_format() 52 (r_size(op) - 4) / encoded_number_bytes(format) in num_array_format() 55 return format; in num_array_format() 68 num_array_size(const ref * op, int format) in num_array_size() argument 70 return (format == num_array ? r_size(op) : in num_array_size() 71 (r_size(op) - 4) / encoded_number_bytes(format)); in num_array_size() 79 num_array_get(const gs_memory_t *mem, const ref * op, int format, uint index, ref * np) in num_array_get() argument [all …]
|
| H A D | spprint.c | 51 pprintf_scan(stream * s, const char *format) in pprintf_scan() argument 53 const char *fp = format; in pprintf_scan() 78 pprintd1(stream * s, const char *format, int v) in pprintd1() argument 80 const char *fp = pprintf_scan(s, format); in pprintd1() 85 lprintf1("Bad format in pprintd1: %s\n", format); in pprintd1() 92 pprintd2(stream * s, const char *format, int v1, int v2) in pprintd2() argument 94 return pprintd1(s, pprintd1(s, format, v1), v2); in pprintd2() 97 pprintd3(stream * s, const char *format, int v1, int v2, int v3) in pprintd3() argument 99 return pprintd2(s, pprintd1(s, format, v1), v2, v3); in pprintd3() 102 pprintd4(stream * s, const char *format, int v1, int v2, int v3, int v4) in pprintd4() argument [all …]
|
| H A D | spprint.h | 45 const char *pprintg1(stream * s, const char *format, floatp v); 46 const char *pprintg2(stream * s, const char *format, floatp v1, floatp v2); 47 const char *pprintg3(stream * s, const char *format, 49 const char *pprintg4(stream * s, const char *format, 51 const char *pprintg6(stream * s, const char *format, 61 const char *pprintd1(stream * s, const char *format, int v); 62 const char *pprintd2(stream * s, const char *format, int v1, int v2); 63 const char *pprintd3(stream * s, const char *format, 65 const char *pprintd4(stream * s, const char *format, 69 const char *pprintld1(stream * s, const char *format, long v); [all …]
|
| H A D | ibnum.h | 52 #define num_is_lsb(format) ((format) >= num_lsb) argument 53 #define num_is_valid(format) (((format) & 127) <= 49) argument 66 #define encoded_number_bytes(format)\ argument 67 (enc_num_bytes[(format) >> 4])
|
| H A D | dpmain.c | 337 int format; member 457 image_color(unsigned int format, int index, in image_color() argument 460 switch (format & DISPLAY_COLORS_MASK) { in image_color() 462 switch (format & DISPLAY_DEPTH_MASK) { in image_color() 495 switch (format & DISPLAY_DEPTH_MASK) { in image_color() 511 static int image_palette_size(int format) in image_palette_size() argument 514 switch (format & DISPLAY_COLORS_MASK) { in image_palette_size() 516 switch (format & DISPLAY_DEPTH_MASK) { in image_palette_size() 529 switch (format & DISPLAY_DEPTH_MASK) { in image_palette_size() 724 int raster, unsigned int format) in display_presize() argument [all …]
|
| H A D | dwmainc.c | 187 int raster, unsigned int format) in display_presize() argument 192 handle, device, width, height, raster, format); in display_presize() 203 int raster, unsigned int format, unsigned char *pimage) in display_size() argument 208 handle, device, width, height, raster, format, pimage); in display_size() 212 image_size(img, width, height, raster, format, pimage); in display_size() 387 { int format = DISPLAY_COLORS_NATIVE | DISPLAY_ALPHA_NONE | in main() local 394 format = DISPLAY_COLORS_RGB | DISPLAY_UNUSED_LAST | in main() 397 format = DISPLAY_COLORS_NATIVE | DISPLAY_ALPHA_NONE | in main() 401 format = DISPLAY_COLORS_RGB | DISPLAY_ALPHA_NONE | in main() 404 format = DISPLAY_COLORS_NATIVE | DISPLAY_ALPHA_NONE | in main() [all …]
|
| H A D | zcharx.c | 97 int format; in moveshow() local 103 format = num_array_format(op); in moveshow() 104 if (format < 0) in moveshow() 105 return format; in moveshow() 106 size = num_array_size(op, format); in moveshow() 113 switch (code = num_array_get(imemory, op, format, i, &value)) { in moveshow()
|
| H A D | dwimg.c | 79 void image_color(unsigned int format, int index, 169 img->format = new_format; in image_size() 189 switch (img->format & DISPLAY_COLORS_MASK) { in image_size() 191 switch (img->format & DISPLAY_DEPTH_MASK) { in image_size() 212 if ((img->format & DISPLAY_ENDIAN_MASK) in image_size() 230 switch (img->format & DISPLAY_DEPTH_MASK) { in image_size() 253 if ((img->format & DISPLAY_DEPTH_MASK) != DISPLAY_DEPTH_8) in image_size() 255 if (((img->format & DISPLAY_ALPHA_MASK) == DISPLAY_UNUSED_LAST) && in image_size() 256 ((img->format & DISPLAY_ENDIAN_MASK) == DISPLAY_LITTLEENDIAN)) { in image_size() 270 switch (img->format & DISPLAY_DEPTH_MASK) { in image_size() [all …]
|
| /plan9/sys/src/cmd/ |
| H A D | seq.c | 9 char *format; variable 27 format = "%g\n"; in buildfmt() 47 format = fmt; in buildfmt() 61 format = EARGF(usage()); in main() 62 if(format[strlen(format)-1] != '\n'){ in main() 63 sprint(ffmt, "%s\n", format); in main() 64 format = ffmt; in main() 82 if(!format) in main() 86 n = sprint(buf, format, val); in main() 94 n = sprint(buf, format, val); in main()
|
| /plan9/sys/src/ape/cmd/diff/ |
| H A D | ifdef.c | 66 char *format; local 71 format = deletes ? group_format[CHANGED] : group_format[NEW]; 73 format = group_format[OLD]; 86 format_ifdef (format, first0, next_line, first1, last1 + 1); 94 format_ifdef (format, beg0, end0, beg1, end1) in format_ifdef() argument 95 char *format; in format_ifdef() 106 format_group (outfile, format, '\0', groups); 116 format_group (out, format, endchar, groups) in format_group() argument 118 char *format; 123 register char *f = format; [all …]
|
| /plan9/sys/src/libmach/ |
| H A D | vdb.c | 272 static void format(char *, Instr *, char *); 278 format("JMP", i, "%b"); in branch() 280 format(o->mnemonic, i, "R%t,%b"); in branch() 282 format(o->mnemonic, i, "R%s,%b"); in branch() 284 format(o->mnemonic, i, "R%s,R%t,%b"); in branch() 291 format(o->mnemonic, i, "%i,R%t"); in addi() 293 format("MOVW", i, "%i,R%t"); in addi() 301 format(o->mnemonic, i, o->ken); in addi() 308 format(o->mnemonic, i, "%i,R%t"); in andi() 310 format(o->mnemonic, i, o->ken); in andi() [all …]
|
| H A D | qdb.c | 348 static void format(char *, Instr *, char *); 361 format(buf, i, nil); in branch() 366 format("BR%L\t", i, nil); in branch() 368 format(0, i, "%J"); in branch() 370 format(0, i, "(CTR)"); in branch() 372 format(0, i, "(LR)"); in branch() 374 format(o->mnemonic, i, o->ken); in branch() 381 format("MOVW", i, "%i,R%d"); in addi() 391 format(o->mnemonic, i, "%i"); in addi() 394 format(o->mnemonic, i, o->ken); in addi() [all …]
|
| /plan9/sys/src/cmd/aux/vga/ |
| H A D | error.c | 11 error(char* format, ...) in error() argument 19 va_start(arg, format); in error() 20 out = vseprint(buf+n, buf+sizeof(buf)-n, format, arg); in error() 30 trace(char* format, ...) in trace() argument 40 va_start(arg, format); in trace() 41 vseprint(buf, buf+sizeof(buf), format, arg); in trace()
|
| /plan9/sys/src/ape/cmd/patch/ |
| H A D | util.h | 5 int ok_to_reverse PARAMS ((char const *, ...)) __attribute__ ((format (printf, 1, 2))); 6 void ask PARAMS ((char const *, ...)) __attribute__ ((format (printf, 1, 2))); 7 void say PARAMS ((char const *, ...)) __attribute__ ((format (printf, 1, 2))); 10 __attribute__ ((noreturn, format (printf, 1, 2))); 12 __attribute__ ((noreturn, format (printf, 1, 2)));
|
| H A D | util.c | 452 vfprintf (stream, format, args) in vfprintf() argument 454 char const *format; 461 _doprnt (format, args, stream); 465 return fprintf (stream, format, 475 fatal (char const *format, ...) in fatal() argument 478 fatal (format, va_alist) in fatal() 479 char const *format; in fatal() 485 vararg_start (args, format); 486 vfprintf (stderr, format, args); 515 pfatal (char const *format, ...) in pfatal() argument [all …]
|
| /plan9/sys/src/cmd/gs/jpeg/ |
| H A D | jconfig.vms | 26 #define BMP_SUPPORTED /* BMP image file format */ 27 #define GIF_SUPPORTED /* GIF image file format */ 28 #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 29 #undef RLE_SUPPORTED /* Utah RLE image file format */ 30 #define TARGA_SUPPORTED /* Targa image file format */
|
| H A D | jconfig.wat | 26 #define BMP_SUPPORTED /* BMP image file format */ 27 #define GIF_SUPPORTED /* GIF image file format */ 28 #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 29 #undef RLE_SUPPORTED /* Utah RLE image file format */ 30 #define TARGA_SUPPORTED /* Targa image file format */
|
| H A D | jconfig.manx | 30 #define BMP_SUPPORTED /* BMP image file format */ 31 #define GIF_SUPPORTED /* GIF image file format */ 32 #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 33 #undef RLE_SUPPORTED /* Utah RLE image file format */ 34 #define TARGA_SUPPORTED /* Targa image file format */
|
| H A D | jconfig.sas | 32 #define BMP_SUPPORTED /* BMP image file format */ 33 #define GIF_SUPPORTED /* GIF image file format */ 34 #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 35 #undef RLE_SUPPORTED /* Utah RLE image file format */ 36 #define TARGA_SUPPORTED /* Targa image file format */
|
| H A D | jconfig.mac | 30 #define BMP_SUPPORTED /* BMP image file format */ 31 #define GIF_SUPPORTED /* GIF image file format */ 32 #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 33 #undef RLE_SUPPORTED /* Utah RLE image file format */ 34 #define TARGA_SUPPORTED /* Targa image file format */
|
| H A D | jconfig.cfg | 31 #define BMP_SUPPORTED /* BMP image file format */ 32 #define GIF_SUPPORTED /* GIF image file format */ 33 #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 34 #undef RLE_SUPPORTED /* Utah RLE image file format */ 35 #define TARGA_SUPPORTED /* Targa image file format */
|
| H A D | jconfig.dj | 26 #define BMP_SUPPORTED /* BMP image file format */ 27 #define GIF_SUPPORTED /* GIF image file format */ 28 #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 29 #undef RLE_SUPPORTED /* Utah RLE image file format */ 30 #define TARGA_SUPPORTED /* Targa image file format */
|
| H A D | jconfig.vc | 33 #define BMP_SUPPORTED /* BMP image file format */ 34 #define GIF_SUPPORTED /* GIF image file format */ 35 #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 36 #undef RLE_SUPPORTED /* Utah RLE image file format */ 37 #define TARGA_SUPPORTED /* Targa image file format */
|
| H A D | jconfig.st | 28 #define BMP_SUPPORTED /* BMP image file format */ 29 #define GIF_SUPPORTED /* GIF image file format */ 30 #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 31 #undef RLE_SUPPORTED /* Utah RLE image file format */ 32 #define TARGA_SUPPORTED /* Targa image file format */
|
| H A D | jconfig.bcc | 34 #define BMP_SUPPORTED /* BMP image file format */ 35 #define GIF_SUPPORTED /* GIF image file format */ 36 #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 37 #undef RLE_SUPPORTED /* Utah RLE image file format */ 38 #define TARGA_SUPPORTED /* Targa image file format */
|