initial import
[ICEs.git] / 148285 / gdevpdfe.i.1
1 # 1 "./src/gdevpdfe.c"
2 # 1 "<built-in>"
3 # 1 "<command line>"
4 # 1 "./src/gdevpdfe.c"
5 # 16 "./src/gdevpdfe.c"
6 # 1 "./src/gx.h" 1
7 # 20 "./src/gx.h"
8 # 1 "./src/stdio_.h" 1
9 # 24 "./src/stdio_.h"
10 # 1 "./src/std.h" 1
11 # 20 "./src/std.h"
12 # 1 "./src/stdpre.h" 1
13 # 244 "./src/stdpre.h"
14 typedef unsigned char byte;
15 typedef unsigned char uchar;
16 typedef unsigned short ushort;
17 typedef unsigned int uint;
18 typedef unsigned long ulong;
19 # 264 "./src/stdpre.h"
20 # 1 "/usr/include/sys/types.h" 1 3 4
21 # 27 "/usr/include/sys/types.h" 3 4
22 # 1 "/usr/include/features.h" 1 3 4
23 # 323 "/usr/include/features.h" 3 4
24 # 1 "/usr/include/sys/cdefs.h" 1 3 4
25 # 313 "/usr/include/sys/cdefs.h" 3 4
26 # 1 "/usr/include/bits/wordsize.h" 1 3 4
27 # 314 "/usr/include/sys/cdefs.h" 2 3 4
28 # 324 "/usr/include/features.h" 2 3 4
29 # 346 "/usr/include/features.h" 3 4
30 # 1 "/usr/include/gnu/stubs.h" 1 3 4
31
32
33
34 # 1 "/usr/include/bits/wordsize.h" 1 3 4
35 # 5 "/usr/include/gnu/stubs.h" 2 3 4
36
37
38 # 1 "/usr/include/gnu/stubs-32.h" 1 3 4
39 # 8 "/usr/include/gnu/stubs.h" 2 3 4
40 # 347 "/usr/include/features.h" 2 3 4
41 # 28 "/usr/include/sys/types.h" 2 3 4
42
43
44
45 # 1 "/usr/include/bits/types.h" 1 3 4
46 # 28 "/usr/include/bits/types.h" 3 4
47 # 1 "/usr/include/bits/wordsize.h" 1 3 4
48 # 29 "/usr/include/bits/types.h" 2 3 4
49
50
51 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
52 # 214 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 3 4
53 typedef unsigned int size_t;
54 # 32 "/usr/include/bits/types.h" 2 3 4
55
56
57 typedef unsigned char __u_char;
58 typedef unsigned short int __u_short;
59 typedef unsigned int __u_int;
60 typedef unsigned long int __u_long;
61
62
63 typedef signed char __int8_t;
64 typedef unsigned char __uint8_t;
65 typedef signed short int __int16_t;
66 typedef unsigned short int __uint16_t;
67 typedef signed int __int32_t;
68 typedef unsigned int __uint32_t;
69
70
71
72
73 __extension__ typedef signed long long int __int64_t;
74 __extension__ typedef unsigned long long int __uint64_t;
75
76
77
78
79
80
81
82 __extension__ typedef long long int __quad_t;
83 __extension__ typedef unsigned long long int __u_quad_t;
84 # 134 "/usr/include/bits/types.h" 3 4
85 # 1 "/usr/include/bits/typesizes.h" 1 3 4
86 # 135 "/usr/include/bits/types.h" 2 3 4
87
88
89 __extension__ typedef __u_quad_t __dev_t;
90 __extension__ typedef unsigned int __uid_t;
91 __extension__ typedef unsigned int __gid_t;
92 __extension__ typedef unsigned long int __ino_t;
93 __extension__ typedef __u_quad_t __ino64_t;
94 __extension__ typedef unsigned int __mode_t;
95 __extension__ typedef unsigned int __nlink_t;
96 __extension__ typedef long int __off_t;
97 __extension__ typedef __quad_t __off64_t;
98 __extension__ typedef int __pid_t;
99 __extension__ typedef struct { int __val[2]; } __fsid_t;
100 __extension__ typedef long int __clock_t;
101 __extension__ typedef unsigned long int __rlim_t;
102 __extension__ typedef __u_quad_t __rlim64_t;
103 __extension__ typedef unsigned int __id_t;
104 __extension__ typedef long int __time_t;
105 __extension__ typedef unsigned int __useconds_t;
106 __extension__ typedef long int __suseconds_t;
107
108 __extension__ typedef int __daddr_t;
109 __extension__ typedef long int __swblk_t;
110 __extension__ typedef int __key_t;
111
112
113 __extension__ typedef int __clockid_t;
114
115
116 __extension__ typedef void * __timer_t;
117
118
119 __extension__ typedef long int __blksize_t;
120
121
122
123
124 __extension__ typedef long int __blkcnt_t;
125 __extension__ typedef __quad_t __blkcnt64_t;
126
127
128 __extension__ typedef unsigned long int __fsblkcnt_t;
129 __extension__ typedef __u_quad_t __fsblkcnt64_t;
130
131
132 __extension__ typedef unsigned long int __fsfilcnt_t;
133 __extension__ typedef __u_quad_t __fsfilcnt64_t;
134
135 __extension__ typedef int __ssize_t;
136
137
138
139 typedef __off64_t __loff_t;
140 typedef __quad_t *__qaddr_t;
141 typedef char *__caddr_t;
142
143
144 __extension__ typedef int __intptr_t;
145
146
147 __extension__ typedef unsigned int __socklen_t;
148 # 32 "/usr/include/sys/types.h" 2 3 4
149
150
151
152 typedef __u_char u_char;
153 typedef __u_short u_short;
154 typedef __u_int u_int;
155 typedef __u_long u_long;
156 typedef __quad_t quad_t;
157 typedef __u_quad_t u_quad_t;
158 typedef __fsid_t fsid_t;
159
160
161
162
163 typedef __loff_t loff_t;
164
165
166
167 typedef __ino_t ino_t;
168 # 62 "/usr/include/sys/types.h" 3 4
169 typedef __dev_t dev_t;
170
171
172
173
174 typedef __gid_t gid_t;
175
176
177
178
179 typedef __mode_t mode_t;
180
181
182
183
184 typedef __nlink_t nlink_t;
185
186
187
188
189 typedef __uid_t uid_t;
190
191
192
193
194
195 typedef __off_t off_t;
196 # 100 "/usr/include/sys/types.h" 3 4
197 typedef __pid_t pid_t;
198
199
200
201
202 typedef __id_t id_t;
203
204
205
206
207 typedef __ssize_t ssize_t;
208
209
210
211
212
213 typedef __daddr_t daddr_t;
214 typedef __caddr_t caddr_t;
215
216
217
218
219
220 typedef __key_t key_t;
221 # 133 "/usr/include/sys/types.h" 3 4
222 # 1 "/usr/include/time.h" 1 3 4
223 # 75 "/usr/include/time.h" 3 4
224
225
226 typedef __time_t time_t;
227
228
229
230 # 93 "/usr/include/time.h" 3 4
231 typedef __clockid_t clockid_t;
232 # 105 "/usr/include/time.h" 3 4
233 typedef __timer_t timer_t;
234 # 134 "/usr/include/sys/types.h" 2 3 4
235 # 147 "/usr/include/sys/types.h" 3 4
236 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
237 # 148 "/usr/include/sys/types.h" 2 3 4
238
239
240
241 typedef unsigned long int ulong_;
242 typedef unsigned short int ushort_;
243 typedef unsigned int uint_;
244 # 195 "/usr/include/sys/types.h" 3 4
245 typedef int int8_t __attribute__ ((__mode__ (__QI__)));
246 typedef int int16_t __attribute__ ((__mode__ (__HI__)));
247 typedef int int32_t __attribute__ ((__mode__ (__SI__)));
248 typedef int int64_t __attribute__ ((__mode__ (__DI__)));
249
250
251 typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__)));
252 typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
253 typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__)));
254 typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));
255
256 typedef int register_t __attribute__ ((__mode__ (__word__)));
257 # 217 "/usr/include/sys/types.h" 3 4
258 # 1 "/usr/include/endian.h" 1 3 4
259 # 37 "/usr/include/endian.h" 3 4
260 # 1 "/usr/include/bits/endian.h" 1 3 4
261 # 38 "/usr/include/endian.h" 2 3 4
262 # 218 "/usr/include/sys/types.h" 2 3 4
263
264
265 # 1 "/usr/include/sys/select.h" 1 3 4
266 # 31 "/usr/include/sys/select.h" 3 4
267 # 1 "/usr/include/bits/select.h" 1 3 4
268 # 32 "/usr/include/sys/select.h" 2 3 4
269
270
271 # 1 "/usr/include/bits/sigset.h" 1 3 4
272 # 23 "/usr/include/bits/sigset.h" 3 4
273 typedef int __sig_atomic_t;
274
275
276
277
278 typedef struct
279 {
280 unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
281 } __sigset_t;
282 # 35 "/usr/include/sys/select.h" 2 3 4
283
284
285
286 typedef __sigset_t sigset_t;
287
288
289
290
291
292 # 1 "/usr/include/time.h" 1 3 4
293 # 121 "/usr/include/time.h" 3 4
294 struct timespec
295 {
296 __time_t tv_sec;
297 long int tv_nsec;
298 };
299 # 45 "/usr/include/sys/select.h" 2 3 4
300
301 # 1 "/usr/include/bits/time.h" 1 3 4
302 # 69 "/usr/include/bits/time.h" 3 4
303 struct timeval
304 {
305 __time_t tv_sec;
306 __suseconds_t tv_usec;
307 };
308 # 47 "/usr/include/sys/select.h" 2 3 4
309
310
311 typedef __suseconds_t suseconds_t;
312
313
314
315
316
317 typedef long int __fd_mask;
318 # 67 "/usr/include/sys/select.h" 3 4
319 typedef struct
320 {
321
322
323
324
325
326
327 __fd_mask __fds_bits[1024 / (8 * sizeof (__fd_mask))];
328
329
330 } fd_set;
331
332
333
334
335
336
337 typedef __fd_mask fd_mask;
338 # 99 "/usr/include/sys/select.h" 3 4
339
340 # 109 "/usr/include/sys/select.h" 3 4
341 extern int select (int __nfds, fd_set *__restrict __readfds,
342 fd_set *__restrict __writefds,
343 fd_set *__restrict __exceptfds,
344 struct timeval *__restrict __timeout);
345 # 121 "/usr/include/sys/select.h" 3 4
346 extern int pselect (int __nfds, fd_set *__restrict __readfds,
347 fd_set *__restrict __writefds,
348 fd_set *__restrict __exceptfds,
349 const struct timespec *__restrict __timeout,
350 const __sigset_t *__restrict __sigmask);
351
352
353
354 # 221 "/usr/include/sys/types.h" 2 3 4
355
356
357 # 1 "/usr/include/sys/sysmacros.h" 1 3 4
358 # 29 "/usr/include/sys/sysmacros.h" 3 4
359 __extension__
360 extern __inline unsigned int gnu_dev_major (unsigned long long int __dev)
361 __attribute__ ((__nothrow__));
362 __extension__
363 extern __inline unsigned int gnu_dev_minor (unsigned long long int __dev)
364 __attribute__ ((__nothrow__));
365 __extension__
366 extern __inline unsigned long long int gnu_dev_makedev (unsigned int __major,
367 unsigned int __minor)
368 __attribute__ ((__nothrow__));
369
370
371 __extension__ extern __inline unsigned int
372 __attribute__ ((__nothrow__)) gnu_dev_major (unsigned long long int __dev)
373 {
374 return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
375 }
376
377 __extension__ extern __inline unsigned int
378 __attribute__ ((__nothrow__)) gnu_dev_minor (unsigned long long int __dev)
379 {
380 return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
381 }
382
383 __extension__ extern __inline unsigned long long int
384 __attribute__ ((__nothrow__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor)
385 {
386 return ((__minor & 0xff) | ((__major & 0xfff) << 8)
387 | (((unsigned long long int) (__minor & ~0xff)) << 12)
388 | (((unsigned long long int) (__major & ~0xfff)) << 32));
389 }
390 # 224 "/usr/include/sys/types.h" 2 3 4
391 # 235 "/usr/include/sys/types.h" 3 4
392 typedef __blkcnt_t blkcnt_t;
393
394
395
396 typedef __fsblkcnt_t fsblkcnt_t;
397
398
399
400 typedef __fsfilcnt_t fsfilcnt_t;
401 # 270 "/usr/include/sys/types.h" 3 4
402 # 1 "/usr/include/bits/pthreadtypes.h" 1 3 4
403 # 36 "/usr/include/bits/pthreadtypes.h" 3 4
404 typedef unsigned long int pthread_t;
405
406
407 typedef union
408 {
409 char __size[36];
410 long int __align;
411 } pthread_attr_t;
412
413
414 typedef struct __pthread_internal_slist
415 {
416 struct __pthread_internal_slist *__next;
417 } __pthread_slist_t;
418
419
420
421
422 typedef union
423 {
424 struct __pthread_mutex_s
425 {
426 int __lock;
427 unsigned int __count;
428 int __owner;
429
430
431 int __kind;
432 unsigned int __nusers;
433 __extension__ union
434 {
435 int __spins;
436 __pthread_slist_t __list;
437 };
438 } __data;
439 char __size[24];
440 long int __align;
441 } pthread_mutex_t;
442
443 typedef union
444 {
445 char __size[4];
446 long int __align;
447 } pthread_mutexattr_t;
448
449
450
451
452 typedef union
453 {
454 struct
455 {
456 int __lock;
457 unsigned int __futex;
458 __extension__ unsigned long long int __total_seq;
459 __extension__ unsigned long long int __wakeup_seq;
460 __extension__ unsigned long long int __woken_seq;
461 void *__mutex;
462 unsigned int __nwaiters;
463 unsigned int __broadcast_seq;
464 } __data;
465 char __size[48];
466 __extension__ long long int __align;
467 } pthread_cond_t;
468
469 typedef union
470 {
471 char __size[4];
472 long int __align;
473 } pthread_condattr_t;
474
475
476
477 typedef unsigned int pthread_key_t;
478
479
480
481 typedef int pthread_once_t;
482
483
484
485
486
487 typedef union
488 {
489 struct
490 {
491 int __lock;
492 unsigned int __nr_readers;
493 unsigned int __readers_wakeup;
494 unsigned int __writer_wakeup;
495 unsigned int __nr_readers_queued;
496 unsigned int __nr_writers_queued;
497
498
499 unsigned int __flags;
500 int __writer;
501 } __data;
502 char __size[32];
503 long int __align;
504 } pthread_rwlock_t;
505
506 typedef union
507 {
508 char __size[8];
509 long int __align;
510 } pthread_rwlockattr_t;
511
512
513
514
515
516 typedef volatile int pthread_spinlock_t;
517
518
519
520
521 typedef union
522 {
523 char __size[20];
524 long int __align;
525 } pthread_barrier_t;
526
527 typedef union
528 {
529 char __size[4];
530 int __align;
531 } pthread_barrierattr_t;
532 # 271 "/usr/include/sys/types.h" 2 3 4
533
534
535
536 # 265 "./src/stdpre.h" 2
537 # 285 "./src/stdpre.h"
538 typedef int bool;
539 # 322 "./src/stdpre.h"
540 typedef const char *ptr_ord_t;
541 # 363 "./src/stdpre.h"
542 typedef double floatp;
543 # 391 "./src/stdpre.h"
544 typedef const char *client_name_t;
545 # 419 "./src/stdpre.h"
546 # 1 "./src/stdpn.h" 1
547 # 420 "./src/stdpre.h" 2
548 # 21 "./src/std.h" 2
549
550
551 # 1 "./obj/../soobj/arch.h" 1
552 # 24 "./src/std.h" 2
553 # 68 "./src/std.h"
554 typedef ushort bits16;
555
556
557 typedef uint bits32;
558 # 142 "./src/std.h"
559 # 1 "/usr/include/stdio.h" 1 3 4
560 # 30 "/usr/include/stdio.h" 3 4
561
562
563
564
565 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
566 # 35 "/usr/include/stdio.h" 2 3 4
567 # 44 "/usr/include/stdio.h" 3 4
568
569
570 typedef struct _IO_FILE FILE;
571
572
573
574
575
576 # 62 "/usr/include/stdio.h" 3 4
577 typedef struct _IO_FILE __FILE;
578 # 72 "/usr/include/stdio.h" 3 4
579 # 1 "/usr/include/libio.h" 1 3 4
580 # 32 "/usr/include/libio.h" 3 4
581 # 1 "/usr/include/_G_config.h" 1 3 4
582 # 14 "/usr/include/_G_config.h" 3 4
583 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
584 # 326 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 3 4
585 typedef long int wchar_t;
586 # 355 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 3 4
587 typedef unsigned int wint_t;
588 # 15 "/usr/include/_G_config.h" 2 3 4
589 # 24 "/usr/include/_G_config.h" 3 4
590 # 1 "/usr/include/wchar.h" 1 3 4
591 # 48 "/usr/include/wchar.h" 3 4
592 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
593 # 49 "/usr/include/wchar.h" 2 3 4
594
595 # 1 "/usr/include/bits/wchar.h" 1 3 4
596 # 51 "/usr/include/wchar.h" 2 3 4
597 # 76 "/usr/include/wchar.h" 3 4
598 typedef struct
599 {
600 int __count;
601 union
602 {
603 wint_t __wch;
604 char __wchb[4];
605 } __value;
606 } __mbstate_t;
607 # 25 "/usr/include/_G_config.h" 2 3 4
608
609 typedef struct
610 {
611 __off_t __pos;
612 __mbstate_t __state;
613 } _G_fpos_t;
614 typedef struct
615 {
616 __off64_t __pos;
617 __mbstate_t __state;
618 } _G_fpos64_t;
619 # 44 "/usr/include/_G_config.h" 3 4
620 # 1 "/usr/include/gconv.h" 1 3 4
621 # 28 "/usr/include/gconv.h" 3 4
622 # 1 "/usr/include/wchar.h" 1 3 4
623 # 48 "/usr/include/wchar.h" 3 4
624 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
625 # 49 "/usr/include/wchar.h" 2 3 4
626 # 29 "/usr/include/gconv.h" 2 3 4
627
628
629 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
630 # 32 "/usr/include/gconv.h" 2 3 4
631
632
633
634
635
636 enum
637 {
638 __GCONV_OK = 0,
639 __GCONV_NOCONV,
640 __GCONV_NODB,
641 __GCONV_NOMEM,
642
643 __GCONV_EMPTY_INPUT,
644 __GCONV_FULL_OUTPUT,
645 __GCONV_ILLEGAL_INPUT,
646 __GCONV_INCOMPLETE_INPUT,
647
648 __GCONV_ILLEGAL_DESCRIPTOR,
649 __GCONV_INTERNAL_ERROR
650 };
651
652
653
654 enum
655 {
656 __GCONV_IS_LAST = 0x0001,
657 __GCONV_IGNORE_ERRORS = 0x0002
658 };
659
660
661
662 struct __gconv_step;
663 struct __gconv_step_data;
664 struct __gconv_loaded_object;
665 struct __gconv_trans_data;
666
667
668
669 typedef int (*__gconv_fct) (struct __gconv_step *, struct __gconv_step_data *,
670 __const unsigned char **, __const unsigned char *,
671 unsigned char **, size_t *, int, int);
672
673
674 typedef wint_t (*__gconv_btowc_fct) (struct __gconv_step *, unsigned char);
675
676
677 typedef int (*__gconv_init_fct) (struct __gconv_step *);
678 typedef void (*__gconv_end_fct) (struct __gconv_step *);
679
680
681
682 typedef int (*__gconv_trans_fct) (struct __gconv_step *,
683 struct __gconv_step_data *, void *,
684 __const unsigned char *,
685 __const unsigned char **,
686 __const unsigned char *, unsigned char **,
687 size_t *);
688
689
690 typedef int (*__gconv_trans_context_fct) (void *, __const unsigned char *,
691 __const unsigned char *,
692 unsigned char *, unsigned char *);
693
694
695 typedef int (*__gconv_trans_query_fct) (__const char *, __const char ***,
696 size_t *);
697
698
699 typedef int (*__gconv_trans_init_fct) (void **, const char *);
700 typedef void (*__gconv_trans_end_fct) (void *);
701
702 struct __gconv_trans_data
703 {
704
705 __gconv_trans_fct __trans_fct;
706 __gconv_trans_context_fct __trans_context_fct;
707 __gconv_trans_end_fct __trans_end_fct;
708 void *__data;
709 struct __gconv_trans_data *__next;
710 };
711
712
713
714 struct __gconv_step
715 {
716 struct __gconv_loaded_object *__shlib_handle;
717 __const char *__modname;
718
719 int __counter;
720
721 char *__from_name;
722 char *__to_name;
723
724 __gconv_fct __fct;
725 __gconv_btowc_fct __btowc_fct;
726 __gconv_init_fct __init_fct;
727 __gconv_end_fct __end_fct;
728
729
730
731 int __min_needed_from;
732 int __max_needed_from;
733 int __min_needed_to;
734 int __max_needed_to;
735
736
737 int __stateful;
738
739 void *__data;
740 };
741
742
743
744 struct __gconv_step_data
745 {
746 unsigned char *__outbuf;
747 unsigned char *__outbufend;
748
749
750
751 int __flags;
752
753
754
755 int __invocation_counter;
756
757
758
759 int __internal_use;
760
761 __mbstate_t *__statep;
762 __mbstate_t __state;
763
764
765
766 struct __gconv_trans_data *__trans;
767 };
768
769
770
771 typedef struct __gconv_info
772 {
773 size_t __nsteps;
774 struct __gconv_step *__steps;
775 __extension__ struct __gconv_step_data __data [];
776 } *__gconv_t;
777 # 45 "/usr/include/_G_config.h" 2 3 4
778 typedef union
779 {
780 struct __gconv_info __cd;
781 struct
782 {
783 struct __gconv_info __cd;
784 struct __gconv_step_data __data;
785 } __combined;
786 } _G_iconv_t;
787
788 typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
789 typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
790 typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
791 typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
792 # 33 "/usr/include/libio.h" 2 3 4
793 # 53 "/usr/include/libio.h" 3 4
794 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stdarg.h" 1 3 4
795 # 43 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stdarg.h" 3 4
796 typedef __builtin_va_list __gnuc_va_list;
797 # 54 "/usr/include/libio.h" 2 3 4
798 # 166 "/usr/include/libio.h" 3 4
799 struct _IO_jump_t; struct _IO_FILE;
800 # 176 "/usr/include/libio.h" 3 4
801 typedef void _IO_lock_t;
802
803
804
805
806
807 struct _IO_marker {
808 struct _IO_marker *_next;
809 struct _IO_FILE *_sbuf;
810
811
812
813 int _pos;
814 # 199 "/usr/include/libio.h" 3 4
815 };
816
817
818 enum __codecvt_result
819 {
820 __codecvt_ok,
821 __codecvt_partial,
822 __codecvt_error,
823 __codecvt_noconv
824 };
825 # 267 "/usr/include/libio.h" 3 4
826 struct _IO_FILE {
827 int _flags;
828
829
830
831
832 char* _IO_read_ptr;
833 char* _IO_read_end;
834 char* _IO_read_base;
835 char* _IO_write_base;
836 char* _IO_write_ptr;
837 char* _IO_write_end;
838 char* _IO_buf_base;
839 char* _IO_buf_end;
840
841 char *_IO_save_base;
842 char *_IO_backup_base;
843 char *_IO_save_end;
844
845 struct _IO_marker *_markers;
846
847 struct _IO_FILE *_chain;
848
849 int _fileno;
850
851
852
853 int _flags2;
854
855 __off_t _old_offset;
856
857
858
859 unsigned short _cur_column;
860 signed char _vtable_offset;
861 char _shortbuf[1];
862
863
864
865 _IO_lock_t *_lock;
866 # 315 "/usr/include/libio.h" 3 4
867 __off64_t _offset;
868 # 324 "/usr/include/libio.h" 3 4
869 void *__pad1;
870 void *__pad2;
871 void *__pad3;
872 void *__pad4;
873 size_t __pad5;
874
875 int _mode;
876
877 char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
878
879 };
880
881
882 typedef struct _IO_FILE _IO_FILE;
883
884
885 struct _IO_FILE_plus;
886
887 extern struct _IO_FILE_plus _IO_2_1_stdin_;
888 extern struct _IO_FILE_plus _IO_2_1_stdout_;
889 extern struct _IO_FILE_plus _IO_2_1_stderr_;
890 # 360 "/usr/include/libio.h" 3 4
891 typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
892
893
894
895
896
897
898
899 typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf,
900 size_t __n);
901
902
903
904
905
906
907
908 typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);
909
910
911 typedef int __io_close_fn (void *__cookie);
912 # 412 "/usr/include/libio.h" 3 4
913 extern int __underflow (_IO_FILE *) __attribute__ ((__nothrow__));
914 extern int __uflow (_IO_FILE *) __attribute__ ((__nothrow__));
915 extern int __overflow (_IO_FILE *, int) __attribute__ ((__nothrow__));
916 extern wint_t __wunderflow (_IO_FILE *) __attribute__ ((__nothrow__));
917 extern wint_t __wuflow (_IO_FILE *) __attribute__ ((__nothrow__));
918 extern wint_t __woverflow (_IO_FILE *, wint_t) __attribute__ ((__nothrow__));
919 # 450 "/usr/include/libio.h" 3 4
920 extern int _IO_getc (_IO_FILE *__fp) __attribute__ ((__nothrow__));
921 extern int _IO_putc (int __c, _IO_FILE *__fp) __attribute__ ((__nothrow__));
922 extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__));
923 extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__));
924
925 extern int _IO_peekc_locked (_IO_FILE *__fp) __attribute__ ((__nothrow__));
926
927
928
929
930
931 extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__));
932 extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__));
933 extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__));
934 # 480 "/usr/include/libio.h" 3 4
935 extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
936 __gnuc_va_list, int *__restrict);
937 extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict,
938 __gnuc_va_list);
939 extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t) __attribute__ ((__nothrow__));
940 extern size_t _IO_sgetn (_IO_FILE *, void *, size_t) __attribute__ ((__nothrow__));
941
942 extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int) __attribute__ ((__nothrow__));
943 extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int) __attribute__ ((__nothrow__));
944
945 extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__));
946 # 73 "/usr/include/stdio.h" 2 3 4
947 # 86 "/usr/include/stdio.h" 3 4
948
949
950 typedef _G_fpos_t fpos_t;
951
952
953
954
955 # 138 "/usr/include/stdio.h" 3 4
956 # 1 "/usr/include/bits/stdio_lim.h" 1 3 4
957 # 139 "/usr/include/stdio.h" 2 3 4
958
959
960
961 extern struct _IO_FILE *stdin;
962 extern struct _IO_FILE *stdout;
963 extern struct _IO_FILE *stderr;
964
965
966
967
968
969
970
971 extern int remove (__const char *__filename) __attribute__ ((__nothrow__));
972
973 extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__));
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988 extern FILE *tmpfile (void);
989 # 183 "/usr/include/stdio.h" 3 4
990 extern char *tmpnam (char *__s) __attribute__ ((__nothrow__));
991
992
993
994
995
996 extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__));
997 # 201 "/usr/include/stdio.h" 3 4
998 extern char *tempnam (__const char *__dir, __const char *__pfx)
999 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
1000
1001
1002
1003
1004
1005
1006
1007
1008 extern int fclose (FILE *__stream);
1009
1010
1011
1012
1013 extern int fflush (FILE *__stream);
1014
1015 # 226 "/usr/include/stdio.h" 3 4
1016 extern int fflush_unlocked (FILE *__stream);
1017 # 240 "/usr/include/stdio.h" 3 4
1018
1019
1020
1021
1022
1023
1024 extern FILE *fopen (__const char *__restrict __filename,
1025 __const char *__restrict __modes);
1026
1027
1028
1029
1030 extern FILE *freopen (__const char *__restrict __filename,
1031 __const char *__restrict __modes,
1032 FILE *__restrict __stream);
1033 # 267 "/usr/include/stdio.h" 3 4
1034
1035 # 278 "/usr/include/stdio.h" 3 4
1036 extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__));
1037 # 304 "/usr/include/stdio.h" 3 4
1038
1039
1040
1041 extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__));
1042
1043
1044
1045 extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
1046 int __modes, size_t __n) __attribute__ ((__nothrow__));
1047
1048
1049
1050
1051
1052 extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
1053 size_t __size) __attribute__ ((__nothrow__));
1054
1055
1056 extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__));
1057
1058
1059
1060
1061
1062
1063
1064
1065 extern int fprintf (FILE *__restrict __stream,
1066 __const char *__restrict __format, ...);
1067
1068
1069
1070
1071 extern int printf (__const char *__restrict __format, ...);
1072
1073 extern int sprintf (char *__restrict __s,
1074 __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
1075
1076
1077
1078
1079
1080 extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format,
1081 __gnuc_va_list __arg);
1082
1083
1084
1085
1086 extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg);
1087
1088 extern int vsprintf (char *__restrict __s, __const char *__restrict __format,
1089 __gnuc_va_list __arg) __attribute__ ((__nothrow__));
1090
1091
1092
1093
1094
1095 extern int snprintf (char *__restrict __s, size_t __maxlen,
1096 __const char *__restrict __format, ...)
1097 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4)));
1098
1099 extern int vsnprintf (char *__restrict __s, size_t __maxlen,
1100 __const char *__restrict __format, __gnuc_va_list __arg)
1101 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0)));
1102
1103 # 398 "/usr/include/stdio.h" 3 4
1104
1105
1106
1107
1108
1109 extern int fscanf (FILE *__restrict __stream,
1110 __const char *__restrict __format, ...) ;
1111
1112
1113
1114
1115 extern int scanf (__const char *__restrict __format, ...) ;
1116
1117 extern int sscanf (__const char *__restrict __s,
1118 __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
1119
1120 # 440 "/usr/include/stdio.h" 3 4
1121
1122
1123
1124
1125
1126 extern int fgetc (FILE *__stream);
1127 extern int getc (FILE *__stream);
1128
1129
1130
1131
1132
1133 extern int getchar (void);
1134
1135 # 464 "/usr/include/stdio.h" 3 4
1136 extern int getc_unlocked (FILE *__stream);
1137 extern int getchar_unlocked (void);
1138 # 475 "/usr/include/stdio.h" 3 4
1139 extern int fgetc_unlocked (FILE *__stream);
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151 extern int fputc (int __c, FILE *__stream);
1152 extern int putc (int __c, FILE *__stream);
1153
1154
1155
1156
1157
1158 extern int putchar (int __c);
1159
1160 # 508 "/usr/include/stdio.h" 3 4
1161 extern int fputc_unlocked (int __c, FILE *__stream);
1162
1163
1164
1165
1166
1167
1168
1169 extern int putc_unlocked (int __c, FILE *__stream);
1170 extern int putchar_unlocked (int __c);
1171
1172
1173
1174
1175
1176
1177 extern int getw (FILE *__stream);
1178
1179
1180 extern int putw (int __w, FILE *__stream);
1181
1182
1183
1184
1185
1186
1187
1188
1189 extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
1190 ;
1191
1192
1193
1194
1195
1196
1197 extern char *gets (char *__s) ;
1198
1199 # 589 "/usr/include/stdio.h" 3 4
1200
1201
1202
1203
1204
1205 extern int fputs (__const char *__restrict __s, FILE *__restrict __stream);
1206
1207
1208
1209
1210
1211 extern int puts (__const char *__s);
1212
1213
1214
1215
1216
1217
1218 extern int ungetc (int __c, FILE *__stream);
1219
1220
1221
1222
1223
1224
1225 extern size_t fread (void *__restrict __ptr, size_t __size,
1226 size_t __n, FILE *__restrict __stream) ;
1227
1228
1229
1230
1231 extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
1232 size_t __n, FILE *__restrict __s) ;
1233
1234 # 642 "/usr/include/stdio.h" 3 4
1235 extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
1236 size_t __n, FILE *__restrict __stream) ;
1237 extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
1238 size_t __n, FILE *__restrict __stream) ;
1239
1240
1241
1242
1243
1244
1245
1246
1247 extern int fseek (FILE *__stream, long int __off, int __whence);
1248
1249
1250
1251
1252 extern long int ftell (FILE *__stream) ;
1253
1254
1255
1256
1257 extern void rewind (FILE *__stream);
1258
1259 # 678 "/usr/include/stdio.h" 3 4
1260 extern int fseeko (FILE *__stream, __off_t __off, int __whence);
1261
1262
1263
1264
1265 extern __off_t ftello (FILE *__stream) ;
1266 # 697 "/usr/include/stdio.h" 3 4
1267
1268
1269
1270
1271
1272
1273 extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos);
1274
1275
1276
1277
1278 extern int fsetpos (FILE *__stream, __const fpos_t *__pos);
1279 # 720 "/usr/include/stdio.h" 3 4
1280
1281 # 729 "/usr/include/stdio.h" 3 4
1282
1283
1284 extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__));
1285
1286 extern int feof (FILE *__stream) __attribute__ ((__nothrow__)) ;
1287
1288 extern int ferror (FILE *__stream) __attribute__ ((__nothrow__)) ;
1289
1290
1291
1292
1293 extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
1294 extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
1295 extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
1296
1297
1298
1299
1300
1301
1302
1303
1304 extern void perror (__const char *__s);
1305
1306
1307
1308
1309
1310
1311 # 1 "/usr/include/bits/sys_errlist.h" 1 3 4
1312 # 27 "/usr/include/bits/sys_errlist.h" 3 4
1313 extern int sys_nerr;
1314 extern __const char *__const sys_errlist[];
1315 # 759 "/usr/include/stdio.h" 2 3 4
1316
1317
1318
1319
1320 extern int fileno (FILE *__stream) __attribute__ ((__nothrow__)) ;
1321
1322
1323
1324
1325 extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
1326 # 778 "/usr/include/stdio.h" 3 4
1327 extern FILE *popen (__const char *__command, __const char *__modes) ;
1328
1329
1330
1331
1332
1333 extern int pclose (FILE *__stream);
1334
1335
1336
1337
1338
1339 extern char *ctermid (char *__s) __attribute__ ((__nothrow__));
1340 # 818 "/usr/include/stdio.h" 3 4
1341 extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__));
1342
1343
1344
1345 extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__)) ;
1346
1347
1348 extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__));
1349 # 848 "/usr/include/stdio.h" 3 4
1350
1351 # 143 "./src/std.h" 2
1352
1353
1354
1355
1356
1357
1358 typedef struct gs_memory_s gs_memory_t;
1359 # 164 "./src/std.h"
1360 int outwrite(const gs_memory_t *mem, const char *str, int len);
1361 int errwrite(const char *str, int len);
1362 void outflush(const gs_memory_t *mem);
1363 void errflush(void);
1364 # 181 "./src/std.h"
1365 int outprintf(const gs_memory_t *mem, const char *fmt, ...) __attribute__((__format__ (__printf__, 2, 3)));
1366 int errprintf(const char *fmt, ...) __attribute__((__format__ (__printf__, 1, 2)));
1367
1368
1369
1370
1371
1372
1373
1374 void dprintf_file_and_line(const char *, int);
1375
1376
1377
1378
1379
1380
1381 void dflush(void);
1382 # 255 "./src/std.h"
1383 void printf_program_ident(const gs_memory_t *mem, const char *program_name, long revision_number);
1384 void eprintf_program_ident(const char *program_name, long revision_number);
1385 const char *gs_program_name(void);
1386 long gs_revision_number(void);
1387 # 286 "./src/std.h"
1388 void lprintf_file_and_line(const char *, int);
1389 # 25 "./src/stdio_.h" 2
1390 # 42 "./src/stdio_.h"
1391 int unlink(const char *);
1392 # 21 "./src/gx.h" 2
1393 # 1 "./src/gserror.h" 1
1394 # 20 "./src/gserror.h"
1395 int gs_log_error(int, const char *, int);
1396 # 43 "./src/gserror.h"
1397 const char *gs_errstr(int code);
1398
1399 int gs_throw_imp(const char *func, const char *file, int line,
1400 int op, int code, const char *fmt, ...) __attribute__((__format__ (__printf__, 6, 7)));
1401 # 22 "./src/gx.h" 2
1402 # 1 "./src/gsio.h" 1
1403 # 23 "./src/gx.h" 2
1404 # 1 "./src/gstypes.h" 1
1405 # 26 "./src/gstypes.h"
1406 typedef ulong gs_id;
1407 # 43 "./src/gstypes.h"
1408 typedef struct gs_string_s {
1409 byte *data; uint size;
1410 } gs_string;
1411
1412
1413
1414 typedef struct gs_const_string_s {
1415 const byte *data; uint size;
1416 } gs_const_string;
1417 typedef struct gs_param_string_s {
1418 const byte *data; uint size;
1419 bool persistent;
1420 } gs_param_string;
1421 # 69 "./src/gstypes.h"
1422 typedef struct gs_bytestring_s {
1423 byte *data; uint size;
1424 byte *bytes;
1425 } gs_bytestring;
1426 typedef struct gs_const_bytestring_s {
1427 const byte *data; uint size;
1428 const byte *bytes;
1429 } gs_const_bytestring;
1430 # 86 "./src/gstypes.h"
1431 typedef struct gs_point_s {
1432 double x, y;
1433 } gs_point;
1434 typedef struct gs_int_point_s {
1435 int x, y;
1436 } gs_int_point;
1437
1438
1439
1440
1441
1442 typedef struct gs_log2_scale_point_s {
1443 int x, y;
1444 } gs_log2_scale_point;
1445
1446
1447
1448
1449
1450
1451
1452 typedef struct gs_rect_s {
1453 gs_point p, q;
1454 } gs_rect;
1455 typedef struct gs_int_rect_s {
1456 gs_int_point p, q;
1457 } gs_int_rect;
1458
1459
1460
1461
1462
1463
1464 typedef struct gs_range_s {
1465 float rmin, rmax;
1466 } gs_range_t;
1467 # 24 "./src/gx.h" 2
1468 # 1 "./src/gsmemory.h" 1
1469 # 41 "./src/gsmemory.h"
1470 # 1 "./src/gslibctx.h" 1
1471 # 20 "./src/gslibctx.h"
1472 # 1 "./src/gs_dll_call.h" 1
1473 # 21 "./src/gslibctx.h" 2
1474
1475
1476 typedef struct name_table_s *name_table_ptr;
1477
1478 typedef struct gs_lib_ctx_s
1479 {
1480 gs_memory_t *memory;
1481 FILE *fstdin;
1482 FILE *fstdout;
1483 FILE *fstderr;
1484 FILE *fstdout2;
1485 bool stdout_is_redirected;
1486 bool stdout_to_stderr;
1487 bool stdin_is_interactive;
1488 void *caller_handle;
1489 int ( *stdin_fn)(void *caller_handle, char *buf, int len);
1490 int ( *stdout_fn)(void *caller_handle, const char *str, int len);
1491 int ( *stderr_fn)(void *caller_handle, const char *str, int len);
1492 int ( *poll_fn)(void *caller_handle);
1493 ulong gs_next_id;
1494 void *top_of_system;
1495
1496
1497 name_table_ptr gs_name_table;
1498
1499
1500
1501 bool dict_auto_expand;
1502 } gs_lib_ctx_t;
1503
1504
1505
1506
1507
1508 int gs_lib_ctx_init( gs_memory_t *mem );
1509
1510 void *gs_lib_ctx_get_interp_instance( gs_memory_t *mem );
1511
1512
1513
1514
1515 const gs_memory_t * gs_lib_ctx_get_non_gc_memory_t(void);
1516 # 42 "./src/gsmemory.h" 2
1517
1518
1519 typedef struct gs_memory_struct_type_s gs_memory_struct_type_t;
1520 typedef const gs_memory_struct_type_t *gs_memory_type_ptr_t;
1521 # 55 "./src/gsmemory.h"
1522 typedef struct gs_ptr_procs_s gs_ptr_procs_t;
1523 typedef const gs_ptr_procs_t *gs_ptr_type_t;
1524
1525
1526 typedef struct gs_gc_root_s gs_gc_root_t;
1527
1528
1529
1530 typedef client_name_t struct_name_t;
1531
1532
1533 uint gs_struct_type_size(gs_memory_type_ptr_t);
1534
1535
1536 struct_name_t gs_struct_type_name(gs_memory_type_ptr_t);
1537
1538
1539
1540
1541
1542
1543
1544 typedef struct gs_memory_status_s {
1545
1546
1547
1548
1549
1550 ulong allocated;
1551
1552
1553
1554
1555 ulong used;
1556 } gs_memory_status_t;
1557 # 222 "./src/gsmemory.h"
1558 typedef struct gs_memory_procs_s {
1559
1560 byte *(*alloc_bytes_immovable)(gs_memory_t *mem, uint nbytes, client_name_t cname); void *(*resize_object)(gs_memory_t *mem, void *obj, uint new_num_elements, client_name_t cname); void (*free_object)(gs_memory_t *mem, void *data, client_name_t cname); gs_memory_t *(*stable)(gs_memory_t *mem); void (*status)(gs_memory_t *mem, gs_memory_status_t *status); void (*free_all)(gs_memory_t *mem, uint free_mask, client_name_t cname); void (*consolidate_free)(gs_memory_t *mem);
1561 # 250 "./src/gsmemory.h"
1562 byte *(*alloc_bytes)(gs_memory_t *mem, uint nbytes, client_name_t cname);
1563 # 261 "./src/gsmemory.h"
1564 void *(*alloc_struct)(gs_memory_t *mem, gs_memory_type_ptr_t pstype, client_name_t cname);
1565
1566
1567 void *(*alloc_struct_immovable)(gs_memory_t *mem, gs_memory_type_ptr_t pstype, client_name_t cname);
1568 # 275 "./src/gsmemory.h"
1569 byte *(*alloc_byte_array)(gs_memory_t *mem, uint num_elements, uint elt_size, client_name_t cname);
1570
1571
1572 byte *(*alloc_byte_array_immovable)(gs_memory_t *mem, uint num_elements, uint elt_size, client_name_t cname);
1573 # 289 "./src/gsmemory.h"
1574 void *(*alloc_struct_array)(gs_memory_t *mem, uint num_elements, gs_memory_type_ptr_t pstype, client_name_t cname);
1575
1576
1577 void *(*alloc_struct_array_immovable)(gs_memory_t *mem, uint num_elements, gs_memory_type_ptr_t pstype, client_name_t cname);
1578 # 302 "./src/gsmemory.h"
1579 uint (*object_size)(gs_memory_t *mem, const void *obj);
1580 # 314 "./src/gsmemory.h"
1581 gs_memory_type_ptr_t (*object_type)(gs_memory_t *mem, const void *obj);
1582 # 324 "./src/gsmemory.h"
1583 byte *(*alloc_string)(gs_memory_t *mem, uint nbytes, client_name_t cname);
1584
1585
1586 byte *(*alloc_string_immovable)(gs_memory_t *mem, uint nbytes, client_name_t cname);
1587 # 339 "./src/gsmemory.h"
1588 byte *(*resize_string)(gs_memory_t *mem, byte *data, uint old_num, uint new_num, client_name_t cname);
1589 # 350 "./src/gsmemory.h"
1590 void (*free_string)(gs_memory_t *mem, byte *data, uint nbytes, client_name_t cname);
1591 # 364 "./src/gsmemory.h"
1592 int (*register_root)(gs_memory_t *mem, gs_gc_root_t *root, gs_ptr_type_t ptype, void **pp, client_name_t cname);
1593 # 375 "./src/gsmemory.h"
1594 void (*unregister_root)(gs_memory_t *mem, gs_gc_root_t *root, client_name_t cname);
1595 # 390 "./src/gsmemory.h"
1596 void (*enable_free)(gs_memory_t *mem, bool enable);
1597
1598 } gs_memory_procs_t;
1599
1600
1601
1602
1603
1604
1605
1606 void gs_free_const_object(gs_memory_t *mem, const void *data,
1607 client_name_t cname);
1608 void gs_free_const_string(gs_memory_t *mem, const byte *data, uint nbytes,
1609 client_name_t cname);
1610
1611
1612
1613
1614
1615 void gs_free_bytestring(gs_memory_t *mem, gs_bytestring *pbs,
1616 client_name_t cname);
1617 void gs_free_const_bytestring(gs_memory_t *mem, gs_const_bytestring *pbs,
1618 client_name_t cname);
1619
1620
1621
1622
1623
1624 void *gs_resize_struct_array(gs_memory_t *mem, void *obj, uint num_elements,
1625 gs_memory_type_ptr_t pstype,
1626 client_name_t cname);
1627
1628
1629 int gs_register_struct_root(gs_memory_t *mem, gs_gc_root_t *root,
1630 void **pp, client_name_t cname);
1631
1632
1633 void gs_ignore_free_object(gs_memory_t *mem, void *data, client_name_t cname);
1634 void gs_ignore_free_string(gs_memory_t *mem, byte *data, uint nbytes, client_name_t cname);
1635
1636
1637 void gs_ignore_consolidate_free(gs_memory_t *mem);
1638
1639
1640
1641
1642
1643
1644
1645 void *gs_raw_alloc_struct_immovable(gs_memory_t * rmem,
1646 gs_memory_type_ptr_t pstype,
1647 client_name_t cname);
1648
1649 typedef struct pl_mem_node_s pl_mem_node_t;
1650 # 468 "./src/gsmemory.h"
1651 struct gs_memory_s {
1652 gs_memory_t *stable_memory; gs_memory_procs_t procs; gs_lib_ctx_t *gs_lib_ctx; pl_mem_node_t *head; gs_memory_t *non_gc_memory;
1653 };
1654 # 25 "./src/gx.h" 2
1655 # 1 "./src/gdebug.h" 1
1656 # 50 "./src/gdebug.h"
1657 extern char gs_debug[128];
1658 bool gs_debug_c(int );
1659 # 60 "./src/gdebug.h"
1660 extern FILE *gs_debug_out;
1661 # 114 "./src/gdebug.h"
1662 void debug_dump_bytes(const byte * from, const byte * to,
1663 const char *msg);
1664 void debug_dump_bitmap(const byte * from, uint raster, uint height,
1665 const char *msg);
1666 void debug_print_string(const byte * str, uint len);
1667 void debug_print_string_hex(const byte * str, uint len);
1668 # 26 "./src/gx.h" 2
1669
1670
1671
1672
1673
1674
1675 typedef struct gs_imager_state_s gs_imager_state;
1676
1677
1678
1679
1680 typedef struct gs_state_s gs_state;
1681 # 17 "./src/gdevpdfe.c" 2
1682 # 1 "./src/string_.h" 1
1683 # 30 "./src/string_.h"
1684 # 1 "/usr/include/string.h" 1 3 4
1685 # 28 "/usr/include/string.h" 3 4
1686
1687
1688
1689
1690
1691 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
1692 # 34 "/usr/include/string.h" 2 3 4
1693
1694
1695
1696
1697 extern void *memcpy (void *__restrict __dest,
1698 __const void *__restrict __src, size_t __n)
1699 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1700
1701
1702 extern void *memmove (void *__dest, __const void *__src, size_t __n)
1703 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1704
1705
1706
1707
1708
1709
1710 extern void *memccpy (void *__restrict __dest, __const void *__restrict __src,
1711 int __c, size_t __n)
1712 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1713
1714
1715
1716
1717
1718 extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1719
1720
1721 extern int memcmp (__const void *__s1, __const void *__s2, size_t __n)
1722 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1723
1724
1725 extern void *memchr (__const void *__s, int __c, size_t __n)
1726 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1727
1728 # 82 "/usr/include/string.h" 3 4
1729
1730
1731 extern char *strcpy (char *__restrict __dest, __const char *__restrict __src)
1732 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1733
1734 extern char *strncpy (char *__restrict __dest,
1735 __const char *__restrict __src, size_t __n)
1736 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1737
1738
1739 extern char *strcat (char *__restrict __dest, __const char *__restrict __src)
1740 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1741
1742 extern char *strncat (char *__restrict __dest, __const char *__restrict __src,
1743 size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1744
1745
1746 extern int strcmp (__const char *__s1, __const char *__s2)
1747 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1748
1749 extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
1750 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1751
1752
1753 extern int strcoll (__const char *__s1, __const char *__s2)
1754 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1755
1756 extern size_t strxfrm (char *__restrict __dest,
1757 __const char *__restrict __src, size_t __n)
1758 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1759
1760 # 130 "/usr/include/string.h" 3 4
1761 extern char *strdup (__const char *__s)
1762 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
1763 # 165 "/usr/include/string.h" 3 4
1764
1765
1766 extern char *strchr (__const char *__s, int __c)
1767 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1768
1769 extern char *strrchr (__const char *__s, int __c)
1770 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1771
1772 # 181 "/usr/include/string.h" 3 4
1773
1774
1775
1776 extern size_t strcspn (__const char *__s, __const char *__reject)
1777 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1778
1779
1780 extern size_t strspn (__const char *__s, __const char *__accept)
1781 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1782
1783 extern char *strpbrk (__const char *__s, __const char *__accept)
1784 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1785
1786 extern char *strstr (__const char *__haystack, __const char *__needle)
1787 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1788
1789
1790
1791 extern char *strtok (char *__restrict __s, __const char *__restrict __delim)
1792 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1793
1794
1795
1796
1797 extern char *__strtok_r (char *__restrict __s,
1798 __const char *__restrict __delim,
1799 char **__restrict __save_ptr)
1800 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
1801
1802 extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim,
1803 char **__restrict __save_ptr)
1804 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
1805 # 240 "/usr/include/string.h" 3 4
1806
1807
1808 extern size_t strlen (__const char *__s)
1809 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1810
1811 # 254 "/usr/include/string.h" 3 4
1812
1813
1814 extern char *strerror (int __errnum) __attribute__ ((__nothrow__));
1815
1816 # 270 "/usr/include/string.h" 3 4
1817 extern int strerror_r (int __errnum, char *__buf, size_t __buflen) __asm__ ("" "__xpg_strerror_r") __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1818 # 288 "/usr/include/string.h" 3 4
1819 extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1820
1821
1822
1823 extern void bcopy (__const void *__src, void *__dest, size_t __n)
1824 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1825
1826
1827 extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1828
1829
1830 extern int bcmp (__const void *__s1, __const void *__s2, size_t __n)
1831 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1832
1833
1834 extern char *index (__const char *__s, int __c)
1835 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1836
1837
1838 extern char *rindex (__const char *__s, int __c)
1839 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1840
1841
1842
1843 extern int ffs (int __i) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1844 # 325 "/usr/include/string.h" 3 4
1845 extern int strcasecmp (__const char *__s1, __const char *__s2)
1846 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1847
1848
1849 extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n)
1850 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1851 # 348 "/usr/include/string.h" 3 4
1852 extern char *strsep (char **__restrict __stringp,
1853 __const char *__restrict __delim)
1854 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1855 # 426 "/usr/include/string.h" 3 4
1856
1857 # 31 "./src/string_.h" 2
1858 # 18 "./src/gdevpdfe.c" 2
1859 # 1 "./src/time_.h" 1
1860 # 28 "./src/time_.h"
1861 # 1 "./obj/../soobj/gconfig_.h" 1
1862 # 29 "./src/time_.h" 2
1863
1864
1865
1866
1867
1868
1869 # 1 "/usr/include/sys/time.h" 1 3 4
1870 # 27 "/usr/include/sys/time.h" 3 4
1871 # 1 "/usr/include/time.h" 1 3 4
1872 # 28 "/usr/include/sys/time.h" 2 3 4
1873
1874 # 1 "/usr/include/bits/time.h" 1 3 4
1875 # 30 "/usr/include/sys/time.h" 2 3 4
1876 # 39 "/usr/include/sys/time.h" 3 4
1877
1878 # 57 "/usr/include/sys/time.h" 3 4
1879 struct timezone
1880 {
1881 int tz_minuteswest;
1882 int tz_dsttime;
1883 };
1884
1885 typedef struct timezone *__restrict __timezone_ptr_t;
1886 # 73 "/usr/include/sys/time.h" 3 4
1887 extern int gettimeofday (struct timeval *__restrict __tv,
1888 __timezone_ptr_t __tz) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1889
1890
1891
1892
1893 extern int settimeofday (__const struct timeval *__tv,
1894 __const struct timezone *__tz)
1895 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1896
1897
1898
1899
1900
1901 extern int adjtime (__const struct timeval *__delta,
1902 struct timeval *__olddelta) __attribute__ ((__nothrow__));
1903
1904
1905
1906
1907 enum __itimer_which
1908 {
1909
1910 ITIMER_REAL = 0,
1911
1912
1913 ITIMER_VIRTUAL = 1,
1914
1915
1916
1917 ITIMER_PROF = 2
1918
1919 };
1920
1921
1922
1923 struct itimerval
1924 {
1925
1926 struct timeval it_interval;
1927
1928 struct timeval it_value;
1929 };
1930
1931
1932
1933
1934
1935
1936 typedef int __itimer_which_t;
1937
1938
1939
1940
1941 extern int getitimer (__itimer_which_t __which,
1942 struct itimerval *__value) __attribute__ ((__nothrow__));
1943
1944
1945
1946
1947 extern int setitimer (__itimer_which_t __which,
1948 __const struct itimerval *__restrict __new,
1949 struct itimerval *__restrict __old) __attribute__ ((__nothrow__));
1950
1951
1952
1953
1954 extern int utimes (__const char *__file, __const struct timeval __tvp[2])
1955 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1956
1957
1958
1959 extern int lutimes (__const char *__file, __const struct timeval __tvp[2])
1960 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1961
1962
1963 extern int futimes (int __fd, __const struct timeval __tvp[2]) __attribute__ ((__nothrow__));
1964 # 191 "/usr/include/sys/time.h" 3 4
1965
1966 # 36 "./src/time_.h" 2
1967
1968
1969
1970
1971
1972
1973 # 1 "/usr/include/time.h" 1 3 4
1974 # 31 "/usr/include/time.h" 3 4
1975
1976
1977
1978
1979
1980
1981
1982
1983 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
1984 # 40 "/usr/include/time.h" 2 3 4
1985
1986
1987
1988 # 1 "/usr/include/bits/time.h" 1 3 4
1989 # 44 "/usr/include/time.h" 2 3 4
1990 # 59 "/usr/include/time.h" 3 4
1991
1992
1993 typedef __clock_t clock_t;
1994
1995
1996
1997 # 132 "/usr/include/time.h" 3 4
1998
1999
2000 struct tm
2001 {
2002 int tm_sec;
2003 int tm_min;
2004 int tm_hour;
2005 int tm_mday;
2006 int tm_mon;
2007 int tm_year;
2008 int tm_wday;
2009 int tm_yday;
2010 int tm_isdst;
2011
2012
2013 long int tm_gmtoff;
2014 __const char *tm_zone;
2015
2016
2017
2018
2019 };
2020
2021
2022
2023
2024
2025
2026
2027
2028 struct itimerspec
2029 {
2030 struct timespec it_interval;
2031 struct timespec it_value;
2032 };
2033
2034
2035 struct sigevent;
2036 # 181 "/usr/include/time.h" 3 4
2037
2038
2039
2040 extern clock_t clock (void) __attribute__ ((__nothrow__));
2041
2042
2043 extern time_t time (time_t *__timer) __attribute__ ((__nothrow__));
2044
2045
2046 extern double difftime (time_t __time1, time_t __time0)
2047 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2048
2049
2050 extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__));
2051
2052
2053
2054
2055
2056 extern size_t strftime (char *__restrict __s, size_t __maxsize,
2057 __const char *__restrict __format,
2058 __const struct tm *__restrict __tp) __attribute__ ((__nothrow__));
2059
2060 # 229 "/usr/include/time.h" 3 4
2061
2062
2063
2064 extern struct tm *gmtime (__const time_t *__timer) __attribute__ ((__nothrow__));
2065
2066
2067
2068 extern struct tm *localtime (__const time_t *__timer) __attribute__ ((__nothrow__));
2069
2070
2071
2072
2073
2074 extern struct tm *gmtime_r (__const time_t *__restrict __timer,
2075 struct tm *__restrict __tp) __attribute__ ((__nothrow__));
2076
2077
2078
2079 extern struct tm *localtime_r (__const time_t *__restrict __timer,
2080 struct tm *__restrict __tp) __attribute__ ((__nothrow__));
2081
2082
2083
2084
2085
2086 extern char *asctime (__const struct tm *__tp) __attribute__ ((__nothrow__));
2087
2088
2089 extern char *ctime (__const time_t *__timer) __attribute__ ((__nothrow__));
2090
2091
2092
2093
2094
2095
2096
2097 extern char *asctime_r (__const struct tm *__restrict __tp,
2098 char *__restrict __buf) __attribute__ ((__nothrow__));
2099
2100
2101 extern char *ctime_r (__const time_t *__restrict __timer,
2102 char *__restrict __buf) __attribute__ ((__nothrow__));
2103
2104
2105
2106
2107 extern char *__tzname[2];
2108 extern int __daylight;
2109 extern long int __timezone;
2110
2111
2112
2113
2114 extern char *tzname[2];
2115
2116
2117
2118 extern void tzset (void) __attribute__ ((__nothrow__));
2119
2120
2121
2122 extern int daylight;
2123 extern long int timezone;
2124
2125
2126
2127
2128
2129 extern int stime (__const time_t *__when) __attribute__ ((__nothrow__));
2130 # 312 "/usr/include/time.h" 3 4
2131 extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__));
2132
2133
2134 extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__));
2135
2136
2137 extern int dysize (int __year) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2138 # 327 "/usr/include/time.h" 3 4
2139 extern int nanosleep (__const struct timespec *__requested_time,
2140 struct timespec *__remaining);
2141
2142
2143
2144 extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__));
2145
2146
2147 extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__));
2148
2149
2150 extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp)
2151 __attribute__ ((__nothrow__));
2152
2153
2154
2155
2156
2157
2158 extern int clock_nanosleep (clockid_t __clock_id, int __flags,
2159 __const struct timespec *__req,
2160 struct timespec *__rem);
2161
2162
2163 extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __attribute__ ((__nothrow__));
2164
2165
2166
2167
2168 extern int timer_create (clockid_t __clock_id,
2169 struct sigevent *__restrict __evp,
2170 timer_t *__restrict __timerid) __attribute__ ((__nothrow__));
2171
2172
2173 extern int timer_delete (timer_t __timerid) __attribute__ ((__nothrow__));
2174
2175
2176 extern int timer_settime (timer_t __timerid, int __flags,
2177 __const struct itimerspec *__restrict __value,
2178 struct itimerspec *__restrict __ovalue) __attribute__ ((__nothrow__));
2179
2180
2181 extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
2182 __attribute__ ((__nothrow__));
2183
2184
2185 extern int timer_getoverrun (timer_t __timerid) __attribute__ ((__nothrow__));
2186 # 416 "/usr/include/time.h" 3 4
2187
2188 # 43 "./src/time_.h" 2
2189 # 78 "./src/time_.h"
2190 # 1 "/usr/include/sys/times.h" 1 3 4
2191 # 32 "/usr/include/sys/times.h" 3 4
2192
2193
2194
2195 struct tms
2196 {
2197 clock_t tms_utime;
2198 clock_t tms_stime;
2199
2200 clock_t tms_cutime;
2201 clock_t tms_cstime;
2202 };
2203
2204
2205
2206
2207
2208
2209 extern clock_t times (struct tms *__buffer) __attribute__ ((__nothrow__));
2210
2211
2212 # 79 "./src/time_.h" 2
2213 # 19 "./src/gdevpdfe.c" 2
2214 # 1 "./src/stream.h" 1
2215 # 21 "./src/stream.h"
2216 # 1 "./src/scommon.h" 1
2217 # 22 "./src/scommon.h"
2218 # 1 "./src/gsstype.h" 1
2219 # 21 "./src/gsstype.h"
2220 typedef struct gc_state_s gc_state_t;
2221
2222
2223
2224
2225
2226 typedef struct enum_ptr_s {
2227 const void *ptr;
2228 uint size;
2229 } enum_ptr_t;
2230 # 79 "./src/gsstype.h"
2231 typedef struct struct_shared_procs_s struct_shared_procs_t;
2232
2233 struct gs_memory_struct_type_s {
2234 uint ssize;
2235 struct_name_t sname;
2236
2237
2238
2239
2240 const struct_shared_procs_t *shared;
2241
2242
2243
2244 void (*clear_marks)(const gs_memory_t *cmem, void *pre, uint size, const gs_memory_struct_type_t *pstype);
2245 gs_ptr_type_t (*enum_ptrs)(const gs_memory_t *mem, const void *ptr, uint size, int index, enum_ptr_t *pep, const gs_memory_struct_type_t *pstype, gc_state_t *gcst);
2246 void (*reloc_ptrs)(void *ptr, uint size, const gs_memory_struct_type_t *pstype, gc_state_t *gcst);
2247 void (*finalize)(void *ptr);
2248
2249
2250
2251 const void *proc_data;
2252 };
2253 # 23 "./src/scommon.h" 2
2254 # 34 "./src/scommon.h"
2255 typedef struct stream_s stream;
2256
2257
2258
2259
2260
2261
2262 typedef struct stream_state_s stream_state;
2263 # 50 "./src/scommon.h"
2264 typedef struct stream_template_s stream_template;
2265 # 87 "./src/scommon.h"
2266 typedef struct stream_cursor_read_s {
2267 const byte *ptr;
2268 const byte *limit;
2269 byte *_skip;
2270 } stream_cursor_read;
2271 typedef struct stream_cursor_write_s {
2272 const byte *_skip;
2273 byte *ptr;
2274 byte *limit;
2275 } stream_cursor_write;
2276 typedef union stream_cursor_s {
2277 stream_cursor_read r;
2278 stream_cursor_write w;
2279 } stream_cursor;
2280 # 134 "./src/scommon.h"
2281 int s_no_report_error(stream_state *, const char *);
2282 # 165 "./src/scommon.h"
2283 struct stream_state_s {
2284 const stream_template *template; gs_memory_t *memory; int (*report_error)(stream_state *, const char *); int min_left; char error_string[79 + 1];
2285 };
2286
2287 extern const gs_memory_struct_type_t st_stream_state;
2288 # 22 "./src/stream.h" 2
2289 # 1 "./src/srdline.h" 1
2290 # 43 "./src/srdline.h"
2291 extern int sreadline(stream *s_in, stream *s_out, void *readline_data, gs_const_string *prompt, gs_string *buf, gs_memory_t *bufmem, uint *pcount, bool *pin_eol, bool (*is_stdin)(const stream *));
2292 # 23 "./src/stream.h" 2
2293 # 35 "./src/stream.h"
2294 typedef struct {
2295
2296
2297
2298
2299
2300 int (*available)(stream *, long *);
2301
2302
2303
2304
2305
2306 int (*seek)(stream *, long);
2307
2308
2309
2310
2311
2312 void (*reset)(stream *);
2313
2314
2315
2316
2317
2318 int (*flush)(stream *);
2319
2320
2321
2322
2323
2324 int (*close)(stream *);
2325
2326
2327
2328 int (*process)(stream_state *, stream_cursor_read *, stream_cursor_write *, bool);
2329
2330
2331
2332
2333
2334
2335 int (*switch_mode)(stream *, bool);
2336
2337 } stream_procs;
2338
2339
2340
2341 struct stream_s {
2342
2343
2344
2345
2346
2347 const stream_template *template; gs_memory_t *memory; int (*report_error)(stream_state *, const char *); int min_left; char error_string[79 + 1];
2348 # 110 "./src/stream.h"
2349 stream_cursor cursor;
2350 byte *cbuf;
2351 uint bsize;
2352 uint cbsize;
2353 # 127 "./src/stream.h"
2354 short end_status;
2355
2356 byte foreign;
2357 byte modes;
2358 # 139 "./src/stream.h"
2359 gs_string cbuf_string;
2360
2361 long position;
2362
2363 stream_procs procs;
2364 stream *strm;
2365
2366 int is_temp;
2367
2368
2369
2370
2371 int inline_temp;
2372
2373 stream_state *state;
2374
2375
2376
2377
2378
2379
2380 ushort read_id;
2381
2382
2383 ushort write_id;
2384 stream *prev, *next;
2385 bool close_strm;
2386 bool close_at_eod;
2387 int (*save_close)(stream *);
2388
2389
2390
2391
2392
2393 FILE *file;
2394 gs_const_string file_name;
2395
2396 uint file_modes;
2397
2398
2399 long file_offset;
2400 long file_limit;
2401 };
2402
2403
2404 extern const gs_memory_struct_type_t st_stream;
2405 # 217 "./src/stream.h"
2406 int savailable(stream *, long *);
2407
2408
2409
2410 int sclose(stream *);
2411 int sswitch(stream *, bool);
2412
2413
2414
2415
2416 int spgetcc(stream *, bool);
2417 # 240 "./src/stream.h"
2418 int sgets(stream *, byte *, uint, uint *);
2419 int sungetc(stream *, byte);
2420
2421
2422
2423
2424 int spskip(stream *, long, long *);
2425
2426
2427
2428
2429
2430
2431
2432 int s_process_read_buf(stream *);
2433
2434
2435
2436
2437 int spputc(stream *, byte);
2438 # 268 "./src/stream.h"
2439 int sputs(stream *, const byte *, uint, uint *);
2440
2441
2442
2443
2444
2445 int s_process_write_buf(stream *, bool);
2446
2447
2448 long stell(stream *);
2449 int spseek(stream *, long);
2450 # 327 "./src/stream.h"
2451 stream *s_alloc(gs_memory_t *, client_name_t);
2452 stream_state *s_alloc_state(gs_memory_t *, gs_memory_type_ptr_t, client_name_t);
2453
2454
2455
2456
2457 void s_init(stream *, gs_memory_t *);
2458 void s_init_state(stream_state *, const stream_template *, gs_memory_t *);
2459
2460
2461 void sread_string(stream *, const byte *, uint),
2462 sread_string_reusable(stream *, const byte *, uint),
2463 swrite_string(stream *, byte *, uint);
2464 void sread_file(stream *, FILE *, byte *, uint),
2465 swrite_file(stream *, FILE *, byte *, uint),
2466 sappend_file(stream *, FILE *, byte *, uint);
2467
2468
2469 int sread_subfile(stream *s, long start, long length);
2470
2471
2472
2473 int ssetfilename(stream *, const byte *, uint);
2474
2475
2476
2477 int sfilename(stream *, gs_const_string *);
2478
2479
2480
2481 void swrite_position_only(stream *);
2482
2483
2484 void s_std_init(stream *, byte *, uint, const stream_procs *, int );
2485
2486
2487 void s_disable(stream *);
2488
2489
2490 int s_std_null(stream *);
2491 void s_std_read_reset(stream *), s_std_write_reset(stream *);
2492 int s_std_read_flush(stream *), s_std_write_flush(stream *), s_std_noavailable(stream *, long *),
2493 s_std_noseek(stream *, long), s_std_close(stream *), s_std_switch_mode(stream *, bool);
2494
2495
2496 int s_filter_write_flush(stream *), s_filter_close(stream *);
2497
2498
2499 extern const stream_procs s_filter_read_procs, s_filter_write_procs;
2500 # 385 "./src/stream.h"
2501 int s_init_filter(stream *fs, stream_state *fss, byte *buf, uint bsize,
2502 stream *target);
2503 stream *s_add_filter(stream **ps, const stream_template *template,
2504 stream_state *ss, gs_memory_t *mem);
2505
2506
2507
2508
2509
2510 int s_close_filters(stream **ps, stream *target);
2511
2512
2513
2514 extern const stream_template s_NullE_template;
2515 extern const stream_template s_NullD_template;
2516 # 20 "./src/gdevpdfe.c" 2
2517 # 1 "./src/gp.h" 1
2518 # 32 "./src/gp.h"
2519 # 1 "./src/gpgetenv.h" 1
2520 # 37 "./src/gpgetenv.h"
2521 int gp_getenv(const char *key, char *ptr, int *plen);
2522 # 33 "./src/gp.h" 2
2523 # 47 "./src/gp.h"
2524 void gp_init(void);
2525
2526
2527
2528
2529
2530 void gp_exit(int exit_status, int code);
2531
2532
2533
2534
2535
2536 void gp_do_exit(int exit_status);
2537 # 68 "./src/gp.h"
2538 const char *gp_strerror(int);
2539
2540
2541
2542
2543
2544
2545
2546 void gp_get_realtime(long ptm[2]);
2547
2548
2549
2550
2551
2552 void gp_get_usertime(long ptm[2]);
2553 # 97 "./src/gp.h"
2554 int gp_readline_init(void **preadline_data, gs_memory_t *mem);
2555
2556
2557
2558
2559 int gp_readline(stream *s_in, stream *s_out, void *readline_data,
2560 gs_const_string *prompt, gs_string *buf,
2561 gs_memory_t *bufmem, uint *pcount, bool *pin_eol,
2562 bool (*is_stdin)(const stream *));
2563
2564
2565
2566
2567 void gp_readline_finit(void *readline_data);
2568 # 122 "./src/gp.h"
2569 int gp_stdin_read(char *buf, int len, int interactive, FILE *f);
2570 # 131 "./src/gp.h"
2571 const char *gp_getenv_display(void);
2572 # 145 "./src/gp.h"
2573 extern const char gp_file_name_list_separator;
2574
2575
2576 extern const char gp_scratch_file_name_prefix[];
2577
2578
2579 extern const char gp_null_file_name[];
2580
2581
2582 extern const char gp_current_directory_name[];
2583
2584
2585
2586
2587 extern const char gp_fmode_binary_suffix[];
2588
2589
2590
2591 extern const char gp_fmode_rb[];
2592 extern const char gp_fmode_wb[];
2593 # 182 "./src/gp.h"
2594 FILE *gp_open_scratch_file(const char *prefix,
2595 char fname[260],
2596 const char *mode);
2597
2598
2599 FILE *gp_fopen(const char *fname, const char *mode);
2600
2601
2602
2603 int gp_setmode_binary(FILE * pfile, bool mode);
2604
2605 typedef enum {
2606 gp_combine_small_buffer = -1,
2607 gp_combine_cant_handle = 0,
2608 gp_combine_success = 1
2609 } gp_file_name_combine_result;
2610 # 206 "./src/gp.h"
2611 gp_file_name_combine_result gp_file_name_combine(const char *prefix, uint plen,
2612 const char *fname, uint flen, bool no_sibling, char *buffer, uint *blen);
2613 # 218 "./src/gp.h"
2614 uint gp_file_name_root(const char *fname, uint len);
2615 # 227 "./src/gp.h"
2616 uint gs_file_name_check_separator(const char *fname, int len, const char *item);
2617
2618
2619
2620
2621
2622 bool gp_file_name_is_parent(const char *fname, uint len);
2623
2624
2625
2626
2627
2628 bool gp_file_name_is_current(const char *fname, uint len);
2629
2630
2631
2632
2633
2634 const char *gp_file_name_current(void);
2635
2636
2637
2638
2639
2640 const char *gp_file_name_separator(void);
2641
2642
2643
2644
2645
2646 const char *gp_file_name_directory_separator(void);
2647
2648
2649
2650
2651
2652 const char *gp_file_name_parent(void);
2653
2654
2655
2656
2657 bool gp_file_name_is_partent_allowed(void);
2658
2659
2660
2661
2662
2663 bool gp_file_name_is_empty_item_meanful(void);
2664
2665
2666
2667
2668
2669 int gp_read_macresource(byte *buf, const char *fname,
2670 const uint type, const ushort id);
2671 # 304 "./src/gp.h"
2672 int gp_cache_insert(int type, byte *key, int keylen, void *buffer, int buflen);
2673
2674
2675 typedef void *(*gp_cache_alloc)(void *userdata, int bytes);
2676 int gp_cache_query(int type, byte* key, int keylen, void **buffer,
2677 gp_cache_alloc alloc, void *userdata);
2678 # 334 "./src/gp.h"
2679 FILE *gp_open_printer(char fname[260], int binary_mode);
2680 # 343 "./src/gp.h"
2681 void gp_close_printer(FILE * pfile, const char *fname);
2682
2683
2684
2685
2686
2687 typedef struct file_enum_s file_enum;
2688 # 363 "./src/gp.h"
2689 file_enum *gp_enumerate_files_init(const char *pat, uint patlen,
2690 gs_memory_t * memory);
2691 # 373 "./src/gp.h"
2692 uint gp_enumerate_files_next(file_enum * pfen, char *ptr, uint maxlen);
2693
2694
2695
2696
2697
2698
2699
2700 void gp_enumerate_files_close(file_enum * pfen);
2701 # 393 "./src/gp.h"
2702 void *gp_enumerate_fonts_init(gs_memory_t *mem);
2703 # 402 "./src/gp.h"
2704 int gp_enumerate_fonts_next(void *enum_state, char **fontname, char **path);
2705
2706
2707 void gp_enumerate_fonts_free(void *enum_state);
2708 # 21 "./src/gdevpdfe.c" 2
2709 # 1 "./src/smd5.h" 1
2710 # 21 "./src/smd5.h"
2711 # 1 "./src/md5.h" 1
2712 # 52 "./src/md5.h"
2713 typedef unsigned char md5_byte_t;
2714 typedef unsigned int md5_word_t;
2715
2716
2717 typedef struct md5_state_s {
2718 md5_word_t count[2];
2719 md5_word_t abcd[4];
2720 md5_byte_t buf[64];
2721 } md5_state_t;
2722
2723
2724
2725
2726
2727
2728
2729 void md5_init(md5_state_t *pms);
2730
2731
2732 void md5_append(md5_state_t *pms, const md5_byte_t *data, int nbytes);
2733
2734
2735 void md5_finish(md5_state_t *pms, md5_byte_t digest[16]);
2736 # 22 "./src/smd5.h" 2
2737
2738
2739
2740
2741
2742 typedef struct stream_MD5E_state_s {
2743 const stream_template *template; gs_memory_t *memory; int (*report_error)(stream_state *, const char *); int min_left; char error_string[79 + 1];
2744 md5_state_t md5;
2745 } stream_MD5E_state;
2746
2747
2748
2749
2750 extern const stream_template s_MD5E_template;
2751
2752 stream *s_MD5E_make_stream(gs_memory_t *mem, byte *digest, int digest_size);
2753
2754
2755
2756
2757
2758
2759 stream *s_MD5C_make_stream(gs_memory_t *mem, stream *strm);
2760
2761 int s_MD5C_get_digest(stream *s, byte *buf, int buf_length);
2762 # 22 "./src/gdevpdfe.c" 2
2763 # 1 "./src/gscdefs.h" 1
2764 # 20 "./src/gscdefs.h"
2765 # 1 "./obj/../soobj/gconfigv.h" 1
2766 # 21 "./src/gscdefs.h" 2
2767 # 39 "./src/gscdefs.h"
2768 extern const long gs_buildtime;
2769 extern const char *const gs_copyright;
2770 extern const char *const gs_product;
2771 extern const char *const gs_productfamily;
2772 extern const long gs_revision;
2773 extern const long gs_revisiondate;
2774 extern const long gs_serialnumber;
2775
2776
2777 extern const char *const gs_doc_directory;
2778 extern const char *const gs_lib_default_path;
2779 extern const char *const gs_init_file;
2780 # 61 "./src/gscdefs.h"
2781 extern const unsigned gx_image_class_table_count;
2782
2783
2784
2785 extern const unsigned gx_image_type_table_count;
2786 # 74 "./src/gscdefs.h"
2787 extern const unsigned gx_io_device_table_count;
2788 # 23 "./src/gdevpdfe.c" 2
2789 # 1 "./src/gdevpdfx.h" 1
2790 # 20 "./src/gdevpdfx.h"
2791 # 1 "./src/gsparam.h" 1
2792 # 34 "./src/gsparam.h"
2793 typedef struct gs_param_list_s gs_param_list;
2794
2795
2796
2797 typedef const char *gs_param_name;
2798 # 48 "./src/gsparam.h"
2799 typedef enum {
2800
2801 gs_param_type_null, gs_param_type_bool, gs_param_type_int,
2802 gs_param_type_long, gs_param_type_float,
2803
2804 gs_param_type_string, gs_param_type_name,
2805 gs_param_type_int_array, gs_param_type_float_array,
2806 gs_param_type_string_array, gs_param_type_name_array,
2807
2808 gs_param_type_dict, gs_param_type_dict_int_keys, gs_param_type_array
2809 } gs_param_type;
2810 # 73 "./src/gsparam.h"
2811 typedef struct gs_param_int_array_s { const int *data; uint size; bool persistent; } gs_param_int_array;
2812 typedef struct gs_param_float_array_s { const float *data; uint size; bool persistent; } gs_param_float_array;
2813 typedef struct gs_param_string_array_s { const gs_param_string *data; uint size; bool persistent; } gs_param_string_array;
2814 # 91 "./src/gsparam.h"
2815 typedef struct gs_param_collection_s {
2816 gs_param_list *list;
2817 uint size;
2818 } gs_param_collection;
2819 typedef gs_param_collection gs_param_dict;
2820 typedef gs_param_collection gs_param_array;
2821 # 118 "./src/gsparam.h"
2822 extern const byte gs_param_type_sizes[];
2823 extern const byte gs_param_type_base_sizes[];
2824 # 134 "./src/gsparam.h"
2825 typedef union gs_param_value_s {
2826 bool b; int i; long l; float f; gs_param_string s; gs_param_string n; gs_param_int_array ia; gs_param_float_array fa; gs_param_string_array sa; gs_param_string_array na; gs_param_collection d;
2827 } gs_param_value;
2828
2829
2830
2831
2832
2833 typedef struct gs_param_typed_value_s {
2834 gs_param_value value;
2835 gs_param_type type;
2836 } gs_param_typed_value;
2837
2838
2839
2840
2841
2842
2843 gs_ptr_type_t gs_param_typed_value_enum_ptrs(const gs_memory_t *mem, const void *ptr, uint size, int index, enum_ptr_t *pep, const gs_memory_struct_type_t *pstype, gc_state_t *gcst);
2844 void gs_param_typed_value_reloc_ptrs(void *ptr, uint size, const gs_memory_struct_type_t *pstype, gc_state_t *gcst);
2845
2846
2847
2848
2849
2850
2851 typedef enum {
2852
2853
2854
2855 gs_param_collection_dict_any = 0,
2856
2857
2858
2859
2860
2861 gs_param_collection_dict_int_keys = 1,
2862
2863
2864
2865
2866 gs_param_collection_array = 2
2867
2868 } gs_param_collection_type_t;
2869 # 193 "./src/gsparam.h"
2870 typedef union gs_param_enumerator_s {
2871 int intval;
2872 long longval;
2873 void *pvoid;
2874 char *pchar;
2875 } gs_param_enumerator_t;
2876 typedef gs_param_string gs_param_key_t;
2877 # 254 "./src/gsparam.h"
2878 typedef struct gs_param_list_procs_s {
2879 # 266 "./src/gsparam.h"
2880 int (*xmit_typed)(gs_param_list *, gs_param_name, gs_param_typed_value *);
2881 # 276 "./src/gsparam.h"
2882 int (*begin_xmit_collection)(gs_param_list *, gs_param_name, gs_param_dict *, gs_param_collection_type_t);
2883 # 294 "./src/gsparam.h"
2884 int (*end_xmit_collection)(gs_param_list *, gs_param_name, gs_param_dict *);
2885 # 310 "./src/gsparam.h"
2886 int (*next_key)(gs_param_list *, gs_param_enumerator_t *, gs_param_key_t *);
2887 # 324 "./src/gsparam.h"
2888 int (*request)(gs_param_list *, gs_param_name);
2889 # 339 "./src/gsparam.h"
2890 int (*requested)(const gs_param_list *, gs_param_name);
2891 # 348 "./src/gsparam.h"
2892 int (*get_policy)(gs_param_list *, gs_param_name);
2893 # 360 "./src/gsparam.h"
2894 int (*signal_error)(gs_param_list *, gs_param_name, int);
2895 # 373 "./src/gsparam.h"
2896 int (*commit)(gs_param_list *);
2897
2898
2899
2900 } gs_param_list_procs;
2901
2902
2903 int param_read_requested_typed(gs_param_list *, gs_param_name,
2904 gs_param_typed_value *);
2905
2906
2907
2908
2909
2910
2911 int param_read_null(gs_param_list *, gs_param_name);
2912 int param_write_null(gs_param_list *, gs_param_name);
2913 int param_read_bool(gs_param_list *, gs_param_name, bool *);
2914 int param_write_bool(gs_param_list *, gs_param_name, const bool *);
2915 int param_read_int(gs_param_list *, gs_param_name, int *);
2916 int param_write_int(gs_param_list *, gs_param_name, const int *);
2917 int param_read_long(gs_param_list *, gs_param_name, long *);
2918 int param_write_long(gs_param_list *, gs_param_name, const long *);
2919 int param_read_float(gs_param_list *, gs_param_name, float *);
2920 int param_write_float(gs_param_list *, gs_param_name, const float *);
2921 int param_read_string(gs_param_list *, gs_param_name, gs_param_string *);
2922 int param_write_string(gs_param_list *, gs_param_name,
2923 const gs_param_string *);
2924 int param_read_name(gs_param_list *, gs_param_name, gs_param_string *);
2925 int param_write_name(gs_param_list *, gs_param_name,
2926 const gs_param_string *);
2927 int param_read_int_array(gs_param_list *, gs_param_name,
2928 gs_param_int_array *);
2929 int param_write_int_array(gs_param_list *, gs_param_name,
2930 const gs_param_int_array *);
2931 int param_write_int_values(gs_param_list *, gs_param_name,
2932 const int *, uint, bool);
2933 int param_read_float_array(gs_param_list *, gs_param_name,
2934 gs_param_float_array *);
2935 int param_write_float_array(gs_param_list *, gs_param_name,
2936 const gs_param_float_array *);
2937 int param_write_float_values(gs_param_list *, gs_param_name,
2938 const float *, uint, bool);
2939 int param_read_string_array(gs_param_list *, gs_param_name,
2940 gs_param_string_array *);
2941 int param_write_string_array(gs_param_list *, gs_param_name,
2942 const gs_param_string_array *);
2943 int param_read_name_array(gs_param_list *, gs_param_name,
2944 gs_param_string_array *);
2945 int param_write_name_array(gs_param_list *, gs_param_name,
2946 const gs_param_string_array *);
2947 # 437 "./src/gsparam.h"
2948 struct gs_param_list_s {
2949 const gs_param_list_procs *procs; gs_memory_t *memory; bool persistent_keys;
2950 };
2951
2952
2953
2954
2955 void gs_param_list_set_persist_keys(gs_param_list *, bool);
2956
2957
2958 void param_init_enumerator(gs_param_enumerator_t * penum);
2959
2960
2961
2962
2963
2964
2965 typedef struct gs_param_item_s {
2966 const char *key;
2967 byte type;
2968 short offset;
2969 } gs_param_item_t;
2970
2971
2972
2973
2974
2975
2976 int gs_param_read_items(gs_param_list * plist, void *obj,
2977 const gs_param_item_t * items);
2978 int gs_param_write_items(gs_param_list * plist, const void *obj,
2979 const void *default_obj,
2980 const gs_param_item_t * items);
2981
2982
2983 void gs_param_list_init(gs_param_list *, const gs_param_list_procs *,
2984 gs_memory_t *);
2985
2986
2987
2988
2989
2990
2991 int param_coerce_typed(gs_param_typed_value * pvalue,
2992 gs_param_type req_type, gs_memory_t * mem);
2993
2994
2995
2996
2997
2998
2999
3000 int gs_param_request_default(gs_param_list *, gs_param_name);
3001 int gs_param_requested_default(const gs_param_list *, gs_param_name);
3002 # 518 "./src/gsparam.h"
3003 typedef struct gs_c_param_s gs_c_param;
3004 typedef struct gs_c_param_list_s {
3005 const gs_param_list_procs *procs; gs_memory_t *memory; bool persistent_keys;
3006 gs_c_param *head;
3007 gs_param_list *target;
3008 uint count;
3009 bool any_requested;
3010 gs_param_collection_type_t coll_type;
3011 } gs_c_param_list;
3012 # 538 "./src/gsparam.h"
3013 void gs_c_param_list_set_target(gs_c_param_list *, gs_param_list *);
3014
3015
3016
3017
3018
3019 gs_c_param_list *gs_c_param_list_alloc(gs_memory_t *, client_name_t);
3020 void gs_c_param_list_write(gs_c_param_list *, gs_memory_t *);
3021 void gs_c_param_list_write_more(gs_c_param_list *);
3022 void gs_c_param_list_read(gs_c_param_list *);
3023 void gs_c_param_list_release(gs_c_param_list *);
3024 # 21 "./src/gdevpdfx.h" 2
3025 # 1 "./src/gsuid.h" 1
3026 # 24 "./src/gsuid.h"
3027 typedef struct gs_uid_s gs_uid;
3028
3029 struct gs_uid_s {
3030
3031
3032 long id;
3033 long *xvalues;
3034 };
3035 # 60 "./src/gsuid.h"
3036 bool uid_equal(const gs_uid *, const gs_uid *);
3037
3038
3039 int uid_copy(gs_uid *puid, gs_memory_t *mem, client_name_t cname);
3040 # 22 "./src/gdevpdfx.h" 2
3041 # 1 "./src/gxdevice.h" 1
3042 # 21 "./src/gxdevice.h"
3043 # 1 "./src/gxdevcli.h" 1
3044 # 21 "./src/gxdevcli.h"
3045 # 1 "./src/stdint_.h" 1
3046 # 41 "./src/stdint_.h"
3047 # 1 "/usr/include/stdint.h" 1 3 4
3048 # 28 "/usr/include/stdint.h" 3 4
3049 # 1 "/usr/include/bits/wordsize.h" 1 3 4
3050 # 29 "/usr/include/stdint.h" 2 3 4
3051 # 49 "/usr/include/stdint.h" 3 4
3052 typedef unsigned char uint8_t;
3053 typedef unsigned short int uint16_t;
3054
3055 typedef unsigned int uint32_t;
3056
3057
3058
3059
3060
3061 __extension__
3062 typedef unsigned long long int uint64_t;
3063
3064
3065
3066
3067
3068
3069 typedef signed char int_least8_t;
3070 typedef short int int_least16_t;
3071 typedef int int_least32_t;
3072
3073
3074
3075 __extension__
3076 typedef long long int int_least64_t;
3077
3078
3079
3080 typedef unsigned char uint_least8_t;
3081 typedef unsigned short int uint_least16_t;
3082 typedef unsigned int uint_least32_t;
3083
3084
3085
3086 __extension__
3087 typedef unsigned long long int uint_least64_t;
3088
3089
3090
3091
3092
3093
3094 typedef signed char int_fast8_t;
3095
3096
3097
3098
3099
3100 typedef int int_fast16_t;
3101 typedef int int_fast32_t;
3102 __extension__
3103 typedef long long int int_fast64_t;
3104
3105
3106
3107 typedef unsigned char uint_fast8_t;
3108
3109
3110
3111
3112
3113 typedef unsigned int uint_fast16_t;
3114 typedef unsigned int uint_fast32_t;
3115 __extension__
3116 typedef unsigned long long int uint_fast64_t;
3117 # 126 "/usr/include/stdint.h" 3 4
3118 typedef int intptr_t;
3119
3120
3121 typedef unsigned int uintptr_t;
3122 # 138 "/usr/include/stdint.h" 3 4
3123 __extension__
3124 typedef long long int intmax_t;
3125 __extension__
3126 typedef unsigned long long int uintmax_t;
3127 # 42 "./src/stdint_.h" 2
3128 # 22 "./src/gxdevcli.h" 2
3129 # 1 "./src/gscompt.h" 1
3130 # 39 "./src/gscompt.h"
3131 typedef struct gs_composite_s gs_composite_t;
3132
3133
3134
3135
3136
3137
3138 gs_id gs_composite_id(const gs_composite_t * pcte);
3139 # 23 "./src/gxdevcli.h" 2
3140 # 1 "./src/gsdcolor.h" 1
3141 # 20 "./src/gsdcolor.h"
3142 # 1 "./src/gsccolor.h" 1
3143 # 25 "./src/gsccolor.h"
3144 typedef struct gs_pattern_instance_s gs_pattern_instance_t;
3145 # 37 "./src/gsccolor.h"
3146 typedef struct gs_paint_color_s {
3147 float values[(8 * 8)];
3148 } gs_paint_color;
3149
3150
3151
3152
3153 typedef struct gs_client_color_s gs_client_color;
3154
3155
3156 struct gs_client_color_s {
3157 gs_paint_color paint;
3158 gs_pattern_instance_t *pattern;
3159 };
3160
3161 extern const gs_memory_struct_type_t st_client_color;
3162 # 21 "./src/gsdcolor.h" 2
3163 # 1 "./src/gxarith.h" 1
3164 # 25 "./src/gxarith.h"
3165 int imod(int m, int n);
3166
3167
3168 int igcd(int x, int y);
3169
3170
3171
3172
3173
3174 int idivmod(int a, int b, int m);
3175
3176
3177
3178
3179 int ilog2(int n);
3180 # 22 "./src/gsdcolor.h" 2
3181 # 1 "./src/gxbitmap.h" 1
3182 # 21 "./src/gxbitmap.h"
3183 # 1 "./src/gsbitmap.h" 1
3184 # 52 "./src/gsbitmap.h"
3185 typedef gs_id gs_bitmap_id;
3186 # 73 "./src/gsbitmap.h"
3187 typedef struct gs_bitmap_s {
3188 byte * data; int raster; gs_int_point size; gs_bitmap_id id;
3189 } gs_bitmap;
3190 typedef struct gs_const_bitmap_s {
3191 const byte * data; int raster; gs_int_point size; gs_bitmap_id id;
3192 } gs_const_bitmap;
3193 # 94 "./src/gsbitmap.h"
3194 typedef struct gs_tile_bitmap_s {
3195 byte * data; int raster; gs_int_point size; gs_bitmap_id id; ushort rep_width, rep_height;
3196 } gs_tile_bitmap;
3197 typedef struct gs_const_tile_bitmap_s {
3198 const byte * data; int raster; gs_int_point size; gs_bitmap_id id; ushort rep_width, rep_height;
3199 } gs_const_tile_bitmap;
3200 # 122 "./src/gsbitmap.h"
3201 typedef struct gs_depth_bitmap_s {
3202 byte * data; int raster; gs_int_point size; gs_bitmap_id id; byte pix_depth; byte num_comps;
3203 } gs_depth_bitmap;
3204 typedef struct gs_const_depth_bitmap_s {
3205 const byte * data; int raster; gs_int_point size; gs_bitmap_id id; byte pix_depth; byte num_comps;
3206 } gs_const_depth_bitmap;
3207
3208
3209
3210
3211
3212
3213 typedef struct gs_tile_depth_bitmap_s {
3214 byte * data; int raster; gs_int_point size; gs_bitmap_id id; ushort rep_width, rep_height; byte pix_depth; byte num_comps;
3215 } gs_tile_depth_bitmap;
3216 typedef struct gs_const_tile_depth_bitmap_s {
3217 const byte * data; int raster; gs_int_point size; gs_bitmap_id id; ushort rep_width, rep_height; byte pix_depth; byte num_comps;
3218 } gs_const_tile_depth_bitmap;
3219 # 153 "./src/gsbitmap.h"
3220 extern const gs_memory_struct_type_t st_gs_bitmap;
3221 extern const gs_memory_struct_type_t st_gs_tile_bitmap;
3222 extern const gs_memory_struct_type_t st_gs_depth_bitmap;
3223 extern const gs_memory_struct_type_t st_gs_tile_depth_bitmap;
3224 # 22 "./src/gxbitmap.h" 2
3225
3226
3227 typedef gs_bitmap_id gx_bitmap_id;
3228 # 74 "./src/gxbitmap.h"
3229 typedef struct gx_bitmap_s {
3230 byte * data; int raster; gs_int_point size; gs_bitmap_id id;
3231 } gx_bitmap;
3232 typedef struct gx_const_bitmap_s {
3233 const byte * data; int raster; gs_int_point size; gs_bitmap_id id;
3234 } gx_const_bitmap;
3235
3236
3237
3238
3239
3240
3241
3242 typedef struct gx_tile_bitmap_s {
3243 byte * data; int raster; gs_int_point size; gs_bitmap_id id; ushort rep_width, rep_height;
3244 } gx_tile_bitmap;
3245 typedef struct gx_const_tile_bitmap_s {
3246 const byte * data; int raster; gs_int_point size; gs_bitmap_id id; ushort rep_width, rep_height;
3247 } gx_const_tile_bitmap;
3248 # 135 "./src/gxbitmap.h"
3249 typedef struct gx_strip_bitmap_s {
3250 byte * data; int raster; gs_int_point size; gs_bitmap_id id; ushort rep_width, rep_height; ushort rep_shift; ushort shift;
3251 } gx_strip_bitmap;
3252 typedef struct gx_const_strip_bitmap_s {
3253 const byte * data; int raster; gs_int_point size; gs_bitmap_id id; ushort rep_width, rep_height; ushort rep_shift; ushort shift;
3254 } gx_const_strip_bitmap;
3255
3256 extern const gs_memory_struct_type_t st_gx_strip_bitmap;
3257 # 23 "./src/gsdcolor.h" 2
3258 # 1 "./src/gxhttile.h" 1
3259 # 30 "./src/gxhttile.h"
3260 typedef struct gx_ht_tile_s gx_ht_tile;
3261
3262
3263
3264 struct gx_ht_tile_s {
3265 gx_strip_bitmap tiles;
3266 int level;
3267
3268
3269 uint index;
3270
3271 };
3272 # 24 "./src/gsdcolor.h" 2
3273 # 1 "./src/gxcindex.h" 1
3274 # 20 "./src/gxcindex.h"
3275 # 1 "./src/gsbitops.h" 1
3276 # 270 "./src/gsbitops.h"
3277 void bits_fill_rectangle(byte * dest, int dest_bit, uint raster,
3278 uint pattern, int width_bits, int height);
3279 void bits_fill_rectangle_masked(byte * dest, int dest_bit, uint raster,
3280 uint pattern, uint src_mask,
3281 int width_bits, int height);
3282
3283
3284 void bits_replicate_horizontally(byte * data, uint width, uint height,
3285 uint raster, uint replicated_width, uint replicated_raster);
3286
3287
3288 void bits_replicate_vertically(byte * data, uint height, uint raster,
3289 uint replicated_height);
3290
3291
3292 void bits_bounding_box(const byte * data, uint height, uint raster,
3293 gs_int_rect * pbox);
3294
3295
3296
3297
3298 void bits_compress_scaled(const byte * src, int srcx, uint width,
3299 uint height, uint sraster, byte * dest, uint draster,
3300 const gs_log2_scale_point * plog2_scale, int log2_out_bits);
3301
3302
3303 typedef struct bits_plane_s {
3304 union bpd_ {
3305 byte *write;
3306 const byte *read;
3307 } data;
3308 int raster;
3309 int depth;
3310 int x;
3311 } bits_plane_t;
3312 int bits_extract_plane(const bits_plane_t *dest ,
3313 const bits_plane_t *source , int shift, int width, int height);
3314
3315
3316 int bits_expand_plane(const bits_plane_t *dest ,
3317 const bits_plane_t *source , int shift, int width, int height);
3318
3319
3320 void bytes_fill_rectangle(byte * dest, uint raster,
3321 byte value, int width_bytes, int height);
3322
3323
3324 void bytes_copy_rectangle(byte * dest, uint dest_raster,
3325 const byte * src, uint src_raster, int width_bytes, int height);
3326 # 21 "./src/gxcindex.h" 2
3327 # 55 "./src/gxcindex.h"
3328 typedef unsigned long long gx_color_index_data;
3329 # 79 "./src/gxcindex.h"
3330 typedef gx_color_index_data gx_color_index;
3331 # 25 "./src/gsdcolor.h" 2
3332 # 1 "./src/gxwts.h" 1
3333 # 17 "./src/gxwts.h"
3334 typedef bits16 wts_screen_sample_t;
3335
3336
3337
3338 typedef struct wts_screen_s wts_screen_t;
3339
3340
3341 typedef enum {
3342 WTS_SCREEN_RAT,
3343 WTS_SCREEN_J,
3344 WTS_SCREEN_H
3345 } wts_screen_type;
3346
3347 struct wts_screen_s {
3348 wts_screen_type type;
3349 int cell_width;
3350 int cell_height;
3351 int cell_shift;
3352 wts_screen_sample_t *samples;
3353 };
3354
3355 typedef struct {
3356 wts_screen_t base;
3357
3358
3359
3360
3361 int pa;
3362 int pb;
3363 int pc;
3364 int pd;
3365
3366 int XA;
3367 int YA;
3368 int XB;
3369 int YB;
3370 int XC;
3371 int YC;
3372 int XD;
3373 int YD;
3374 } wts_screen_j_t;
3375
3376 typedef struct {
3377 wts_screen_t base;
3378
3379
3380 double px;
3381
3382 double py;
3383
3384 int x1;
3385 int y1;
3386 } wts_screen_h_t;
3387
3388 int wts_get_samples(const wts_screen_t *ws, int x, int y,
3389 wts_screen_sample_t **samples, int *p_nsamples);
3390 # 26 "./src/gsdcolor.h" 2
3391
3392
3393
3394 typedef struct gx_device_color_s gx_device_color;
3395
3396
3397
3398
3399 typedef struct gx_device_color_saved_s gx_device_color_saved;
3400
3401
3402
3403
3404 typedef struct gx_device_halftone_s gx_device_halftone;
3405 # 87 "./src/gsdcolor.h"
3406 bool gx_device_color_equal(const gx_device_color *pdevc1,
3407 const gx_device_color *pdevc2);
3408 # 157 "./src/gsdcolor.h"
3409 void gx_complete_halftone(gx_device_color *pdevc, int num_comps,
3410 gx_device_halftone *pdht);
3411 # 183 "./src/gsdcolor.h"
3412 typedef struct gx_color_tile_s gx_color_tile;
3413 # 253 "./src/gsdcolor.h"
3414 typedef struct gx_device_color_type_s gx_device_color_type_t;
3415 typedef const gx_device_color_type_t *gx_device_color_type;
3416
3417 struct gx_device_color_s {
3418
3419
3420
3421
3422 gx_device_color_type type;
3423
3424
3425
3426
3427
3428
3429 union _c {
3430 gx_color_index pure;
3431 struct _bin {
3432 const gx_device_halftone *b_ht;
3433 gx_color_index color[2];
3434 uint b_level;
3435 int b_index;
3436 gx_ht_tile *b_tile;
3437 } binary;
3438 struct _col {
3439 gx_device_halftone *c_ht;
3440 ushort num_components;
3441 byte c_base[(8 * 8)];
3442 uint c_level[(8 * 8)];
3443 ushort alpha;
3444
3445
3446
3447
3448
3449
3450 gx_color_index plane_mask;
3451
3452
3453 } colored;
3454 struct _wts {
3455 const gx_device_halftone *w_ht;
3456 wts_screen_sample_t levels[(8 * 8)];
3457 ushort num_components;
3458
3459
3460 gx_color_index plane_vector[(8 * 8)];
3461 } wts;
3462 struct _pat {
3463 gx_color_tile *p_tile;
3464 } pattern;
3465 } colors;
3466 gs_int_point phase;
3467
3468
3469
3470
3471
3472
3473
3474 bool ccolor_valid;
3475
3476
3477
3478
3479
3480
3481 gs_client_color ccolor;
3482
3483 struct _mask {
3484 struct mp_ {
3485 short x, y;
3486 } m_phase;
3487 gx_bitmap_id id;
3488 gx_color_tile *m_tile;
3489 } mask;
3490 };
3491 # 374 "./src/gsdcolor.h"
3492 struct gx_device_color_saved_s {
3493 gx_device_color_type type;
3494 union _svc {
3495 gx_color_index pure;
3496 struct _svbin {
3497 gx_color_index b_color[2];
3498 uint b_level;
3499 int b_index;
3500 } binary;
3501 struct _svcol {
3502 byte c_base[(8 * 8)];
3503 uint c_level[(8 * 8)];
3504 ushort alpha;
3505 } colored;
3506 struct _swts {
3507 wts_screen_sample_t levels[(8 * 8)];
3508 } wts;
3509 struct _pattern {
3510 gs_id id;
3511 gs_int_point phase;
3512 } pattern;
3513 struct _pattern2 {
3514 gs_id id;
3515 bool shfill;
3516 } pattern2;
3517 } colors;
3518 gs_int_point phase;
3519 };
3520 # 414 "./src/gsdcolor.h"
3521 extern const gx_device_color_type_t *const gx_dc_type_none;
3522
3523
3524 extern const gx_device_color_type_t *const gx_dc_type_null;
3525
3526
3527 extern const gx_device_color_type_t *const gx_dc_type_pure;
3528 # 430 "./src/gsdcolor.h"
3529 extern const gx_device_color_type_t *const gx_dc_type_ht_binary;
3530
3531
3532 extern const gx_device_color_type_t *const gx_dc_type_ht_colored;
3533
3534
3535 extern const gx_device_color_type_t *const gx_dc_type_wts;
3536 # 24 "./src/gxdevcli.h" 2
3537 # 1 "./src/gsmatrix.h" 1
3538 # 26 "./src/gsmatrix.h"
3539 struct gs_matrix_s {
3540 float xx, xy, yx, yy, tx, ty;
3541 };
3542
3543
3544
3545 typedef struct gs_matrix_s gs_matrix;
3546 # 50 "./src/gsmatrix.h"
3547 void gs_make_identity(gs_matrix *);
3548 int gs_make_translation(floatp, floatp, gs_matrix *),
3549 gs_make_scaling(floatp, floatp, gs_matrix *),
3550 gs_make_rotation(floatp, gs_matrix *);
3551
3552
3553 int gs_matrix_multiply(const gs_matrix *, const gs_matrix *, gs_matrix *),
3554 gs_matrix_invert(const gs_matrix *, gs_matrix *),
3555 gs_matrix_translate(const gs_matrix *, floatp, floatp, gs_matrix *),
3556 gs_matrix_scale(const gs_matrix *, floatp, floatp, gs_matrix *),
3557 gs_matrix_rotate(const gs_matrix *, floatp, gs_matrix *);
3558
3559
3560 int gs_point_transform(floatp, floatp, const gs_matrix *, gs_point *),
3561 gs_point_transform_inverse(floatp, floatp, const gs_matrix *, gs_point *),
3562 gs_distance_transform(floatp, floatp, const gs_matrix *, gs_point *),
3563 gs_distance_transform_inverse(floatp, floatp, const gs_matrix *, gs_point *),
3564 gs_points_bbox(const gs_point[4], gs_rect *),
3565 gs_bbox_transform_only(const gs_rect *, const gs_matrix *, gs_point[4]),
3566 gs_bbox_transform(const gs_rect *, const gs_matrix *, gs_rect *),
3567 gs_bbox_transform_inverse(const gs_rect *, const gs_matrix *, gs_rect *);
3568
3569
3570
3571
3572
3573
3574 int sget_matrix(stream *, gs_matrix *);
3575 int sput_matrix(stream *, const gs_matrix *);
3576 # 25 "./src/gxdevcli.h" 2
3577 # 1 "./src/gsiparam.h" 1
3578 # 43 "./src/gsiparam.h"
3579 typedef struct gx_image_type_s gx_image_type_t;
3580 # 52 "./src/gsiparam.h"
3581 typedef struct gs_image_common_s {
3582 const gx_image_type_t *type; gs_matrix ImageMatrix;
3583 } gs_image_common_t;
3584 # 120 "./src/gsiparam.h"
3585 typedef struct gs_data_image_s {
3586 const gx_image_type_t *type; gs_matrix ImageMatrix; int Width; int Height; int BitsPerComponent; float Decode[((8 * 8) + 1) * 2]; bool Interpolate;
3587 } gs_data_image_t;
3588 # 143 "./src/gsiparam.h"
3589 typedef enum {
3590
3591 gs_image_format_chunky = 0,
3592
3593 gs_image_format_component_planar = 1,
3594
3595 gs_image_format_bit_planar = 2
3596 } gs_image_format_t;
3597
3598
3599
3600
3601 typedef struct gs_color_space_s gs_color_space;
3602 # 175 "./src/gsiparam.h"
3603 typedef struct gs_pixel_image_s {
3604 const gx_image_type_t *type; gs_matrix ImageMatrix; int Width; int Height; int BitsPerComponent; float Decode[((8 * 8) + 1) * 2]; bool Interpolate; gs_image_format_t format; const gs_color_space *ColorSpace; bool CombineWithColor;
3605 } gs_pixel_image_t;
3606
3607 extern const gs_memory_struct_type_t st_gs_pixel_image;
3608 # 189 "./src/gsiparam.h"
3609 typedef enum {
3610
3611 gs_image_alpha_none = 0,
3612
3613 gs_image_alpha_first,
3614
3615 gs_image_alpha_last
3616 } gs_image_alpha_t;
3617
3618 typedef struct gs_image1_s {
3619 const gx_image_type_t *type; gs_matrix ImageMatrix; int Width; int Height; int BitsPerComponent; float Decode[((8 * 8) + 1) * 2]; bool Interpolate; gs_image_format_t format; const gs_color_space *ColorSpace; bool CombineWithColor;
3620
3621
3622
3623
3624 bool ImageMask;
3625
3626
3627
3628
3629 bool adjust;
3630
3631
3632
3633
3634
3635 gs_image_alpha_t Alpha;
3636 } gs_image1_t;
3637
3638
3639 extern const gs_memory_struct_type_t st_gs_image1;
3640
3641
3642
3643
3644
3645
3646
3647 typedef gs_image1_t gs_image_t;
3648 # 236 "./src/gsiparam.h"
3649 void
3650
3651
3652
3653 gs_image_common_t_init(gs_image_common_t * pic),
3654
3655
3656
3657
3658
3659
3660
3661 gs_data_image_t_init(gs_data_image_t * pim, int num_components),
3662
3663
3664
3665
3666
3667
3668 gs_pixel_image_t_init(gs_pixel_image_t * pim,
3669 const gs_color_space * color_space);
3670 # 270 "./src/gsiparam.h"
3671 void gs_image_t_init_adjust(gs_image_t * pim, const gs_color_space * pcs,
3672 bool adjust);
3673
3674
3675 void gs_image_t_init_mask_adjust(gs_image_t * pim, bool write_1s,
3676 bool adjust);
3677 # 26 "./src/gxdevcli.h" 2
3678 # 1 "./src/gsrefct.h" 1
3679 # 34 "./src/gsrefct.h"
3680 typedef struct rc_header_s rc_header;
3681 struct rc_header_s {
3682 long ref_count;
3683 gs_memory_t *memory;
3684
3685
3686 void (*free)(gs_memory_t *, void *, client_name_t);
3687 };
3688 # 56 "./src/gsrefct.h"
3689 void rc_free_struct_only(gs_memory_t *, void *, client_name_t);
3690 # 27 "./src/gxdevcli.h" 2
3691 # 1 "./src/gsropt.h" 1
3692 # 41 "./src/gsropt.h"
3693 typedef enum {
3694 rop2_0 = 0,
3695 rop2_S = 0xc,
3696
3697 rop2_D = 0xa,
3698
3699 rop2_1 = 0xf,
3700
3701
3702 rop2_default = rop2_S
3703 } gs_rop2_t;
3704 # 60 "./src/gsropt.h"
3705 typedef enum {
3706 rop3_0 = 0,
3707 rop3_T = 0xf0,
3708
3709 rop3_S = 0xcc,
3710
3711 rop3_D = 0xaa,
3712
3713 rop3_1 = 0xff,
3714 rop3_default = rop3_T | rop3_S
3715 } gs_rop3_t;
3716 # 159 "./src/gsropt.h"
3717 typedef uint gs_logical_operation_t;
3718 # 198 "./src/gsropt.h"
3719 typedef unsigned long rop_operand;
3720 typedef rop_operand (*rop_proc)(rop_operand D, rop_operand S, rop_operand T);
3721
3722
3723 typedef enum {
3724 rop_usage_none = 0,
3725 rop_usage_D = 1,
3726 rop_usage_S = 2,
3727 rop_usage_DS = 3,
3728 rop_usage_T = 4,
3729 rop_usage_DT = 5,
3730 rop_usage_ST = 6,
3731 rop_usage_DST = 7
3732 } rop_usage_t;
3733
3734
3735 extern const rop_proc rop_proc_table[256];
3736
3737
3738 extern const byte rop_usage_table[256];
3739 # 28 "./src/gxdevcli.h" 2
3740 # 1 "./src/gsstruct.h" 1
3741 # 83 "./src/gsstruct.h"
3742 typedef struct obj_header_s obj_header_t;
3743
3744
3745
3746
3747
3748
3749
3750 struct gs_ptr_procs_s {
3751
3752
3753
3754
3755
3756 void (*unmark)(enum_ptr_t *, gc_state_t *);
3757
3758
3759
3760
3761
3762
3763 bool (*mark)(enum_ptr_t *, gc_state_t *);
3764 # 114 "./src/gsstruct.h"
3765 void *(*reloc)(const void *, gc_state_t *);
3766
3767 };
3768
3769
3770
3771 extern const gs_ptr_procs_t ptr_struct_procs;
3772
3773
3774
3775 extern const gs_ptr_procs_t ptr_string_procs;
3776
3777 extern const gs_ptr_procs_t ptr_const_string_procs;
3778
3779
3780
3781
3782
3783
3784 struct gs_gc_root_s {
3785 gs_gc_root_t *next;
3786 gs_ptr_type_t ptype;
3787 void **p;
3788 bool free_on_unregister;
3789 };
3790 # 174 "./src/gsstruct.h"
3791 typedef struct gc_procs_common_s {
3792 void *(*reloc_struct_ptr)(const void *, gc_state_t *); void (*reloc_string)(gs_string *, gc_state_t *); void (*reloc_const_string)(gs_const_string *, gc_state_t *); void (*reloc_param_string)(gs_param_string *, gc_state_t *);
3793 } gc_procs_common_t;
3794
3795
3796
3797
3798
3799
3800
3801 gs_ptr_type_t gs_no_struct_enum_ptrs(const gs_memory_t *mem, const void *ptr, uint size, int index, enum_ptr_t *pep, const gs_memory_struct_type_t *pstype, gc_state_t *gcst);
3802 void gs_no_struct_reloc_ptrs(void *ptr, uint size, const gs_memory_struct_type_t *pstype, gc_state_t *gcst);
3803
3804
3805
3806
3807
3808 extern const gs_memory_struct_type_t st_free;
3809
3810
3811
3812 extern const gs_memory_struct_type_t st_bytes;
3813
3814
3815
3816 extern const gs_memory_struct_type_t st_gc_root_t;
3817 # 210 "./src/gsstruct.h"
3818 extern const gs_memory_struct_type_t st_const_string_element;
3819 # 231 "./src/gsstruct.h"
3820 typedef enum {
3821 GC_ELT_OBJ,
3822 GC_ELT_STRING,
3823 GC_ELT_CONST_STRING
3824 } gc_ptr_type_index_t;
3825
3826 typedef struct gc_ptr_element_s {
3827 ushort type;
3828 ushort offset;
3829 } gc_ptr_element_t;
3830 # 255 "./src/gsstruct.h"
3831 typedef struct gc_struct_data_s {
3832 ushort num_ptrs;
3833 ushort super_offset;
3834 const gs_memory_struct_type_t *super_type;
3835 const gc_ptr_element_t *ptrs;
3836 } gc_struct_data_t;
3837 # 278 "./src/gsstruct.h"
3838 gs_ptr_type_t basic_enum_ptrs(const gs_memory_t *mem, const void *ptr, uint size, int index, enum_ptr_t *pep, const gs_memory_struct_type_t *pstype, gc_state_t *gcst);
3839 void basic_reloc_ptrs(void *ptr, uint size, const gs_memory_struct_type_t *pstype, gc_state_t *gcst);
3840 # 360 "./src/gsstruct.h"
3841 extern gs_ptr_type_t
3842 enum_bytestring(enum_ptr_t *pep, const gs_bytestring *pbs);
3843
3844
3845 extern gs_ptr_type_t
3846 enum_const_bytestring(enum_ptr_t *pep, const gs_const_bytestring *pbs);
3847 # 418 "./src/gsstruct.h"
3848 extern void reloc_bytestring(gs_bytestring *pbs, gc_state_t *gcst);
3849
3850
3851 extern void reloc_const_bytestring(gs_const_bytestring *pbs, gc_state_t *gcst);
3852 # 29 "./src/gxdevcli.h" 2
3853 # 1 "./src/gstparam.h" 1
3854 # 24 "./src/gstparam.h"
3855 typedef enum {
3856 BLEND_MODE_Compatible,
3857 BLEND_MODE_Normal,
3858 BLEND_MODE_Multiply,
3859 BLEND_MODE_Screen,
3860 BLEND_MODE_Difference,
3861 BLEND_MODE_Darken,
3862 BLEND_MODE_Lighten,
3863 BLEND_MODE_ColorDodge,
3864 BLEND_MODE_ColorBurn,
3865 BLEND_MODE_Exclusion,
3866 BLEND_MODE_HardLight,
3867 BLEND_MODE_Overlay,
3868 BLEND_MODE_SoftLight,
3869 BLEND_MODE_Luminosity,
3870 BLEND_MODE_Hue,
3871 BLEND_MODE_Saturation,
3872 BLEND_MODE_Color
3873
3874 } gs_blend_mode_t;
3875
3876
3877
3878
3879
3880
3881
3882 typedef enum {
3883 TRANSPARENCY_STATE_Group = 1,
3884 TRANSPARENCY_STATE_Mask
3885 } gs_transparency_state_type_t;
3886
3887
3888
3889 typedef struct gs_transparency_state_s gs_transparency_state_t;
3890 struct gs_transparency_state_s {
3891 gs_transparency_state_t *saved; gs_transparency_state_type_t type;
3892 };
3893
3894
3895
3896
3897 typedef struct gs_transparency_mask_s {
3898 rc_header rc;
3899 } gs_transparency_mask_t;
3900
3901
3902
3903
3904
3905
3906
3907 typedef struct gs_function_s gs_function_t;
3908
3909
3910
3911
3912 typedef struct gs_transparency_group_params_s {
3913 const gs_color_space *ColorSpace;
3914 bool Isolated;
3915 bool Knockout;
3916 } gs_transparency_group_params_t;
3917
3918
3919 typedef enum {
3920 TRANSPARENCY_MASK_Alpha,
3921 TRANSPARENCY_MASK_Luminosity
3922 } gs_transparency_mask_subtype_t;
3923
3924
3925
3926
3927
3928
3929 typedef struct gs_transparency_mask_params_s {
3930 gs_transparency_mask_subtype_t subtype;
3931 int Background_components;
3932 float Background[(8 * 8)];
3933 float GrayBackground;
3934 int (*TransferFunction)(floatp in, float *out, void *proc_data);
3935 gs_function_t *TransferFunction_data;
3936 } gs_transparency_mask_params_t;
3937
3938
3939
3940
3941 typedef struct gx_transparency_mask_params_s {
3942 gs_transparency_mask_subtype_t subtype;
3943 int Background_components;
3944 float Background[(8 * 8)];
3945 float GrayBackground;
3946 bool function_is_identity;
3947 byte transfer_fn[256];
3948 } gx_transparency_mask_params_t;
3949
3950
3951 typedef enum {
3952 TRANSPARENCY_CHANNEL_Opacity = 0,
3953 TRANSPARENCY_CHANNEL_Shape = 1
3954 } gs_transparency_channel_selector_t;
3955 # 30 "./src/gxdevcli.h" 2
3956 # 1 "./src/gsxfont.h" 1
3957 # 22 "./src/gsxfont.h"
3958 typedef ulong gx_xglyph;
3959
3960
3961
3962
3963 struct gx_xfont_procs_s;
3964 typedef struct gx_xfont_procs_s gx_xfont_procs;
3965
3966
3967 struct gx_xfont_s;
3968 typedef struct gx_xfont_s gx_xfont;
3969 # 31 "./src/gxdevcli.h" 2
3970
3971
3972 # 1 "./src/gxcvalue.h" 1
3973 # 21 "./src/gxcvalue.h"
3974 typedef unsigned short gx_color_value;
3975 # 34 "./src/gxdevcli.h" 2
3976 # 1 "./src/gxfixed.h" 1
3977 # 25 "./src/gxfixed.h"
3978 typedef long fixed;
3979 typedef ulong ufixed;
3980 # 159 "./src/gxfixed.h"
3981 fixed fixed_mult_quo(fixed A, fixed B, fixed C);
3982 # 263 "./src/gxfixed.h"
3983 typedef struct gs_fixed_point_s {
3984 fixed x, y;
3985 } gs_fixed_point;
3986
3987
3988 typedef struct gs_fixed_rect_s {
3989 gs_fixed_point p, q;
3990 } gs_fixed_rect;
3991 # 35 "./src/gxdevcli.h" 2
3992 # 1 "./src/gxtext.h" 1
3993 # 20 "./src/gxtext.h"
3994 # 1 "./src/gstext.h" 1
3995 # 20 "./src/gstext.h"
3996 # 1 "./src/gsccode.h" 1
3997 # 25 "./src/gsccode.h"
3998 typedef ulong gs_char;
3999 # 72 "./src/gsccode.h"
4000 typedef ulong gs_glyph;
4001 # 90 "./src/gsccode.h"
4002 typedef bool (*gs_glyph_mark_proc_t)(const gs_memory_t *mem, gs_glyph glyph, void *proc_data);
4003
4004
4005 typedef enum {
4006 ENCODING_INDEX_UNKNOWN = -1,
4007
4008 ENCODING_INDEX_STANDARD = 0,
4009 ENCODING_INDEX_ISOLATIN1,
4010 ENCODING_INDEX_SYMBOL,
4011 ENCODING_INDEX_DINGBATS,
4012 ENCODING_INDEX_WINANSI,
4013 ENCODING_INDEX_MACROMAN,
4014 ENCODING_INDEX_MACEXPERT,
4015
4016
4017 ENCODING_INDEX_MACGLYPH,
4018 ENCODING_INDEX_ALOGLYPH,
4019 ENCODING_INDEX_ALXGLYPH,
4020 ENCODING_INDEX_CFFSTRINGS
4021
4022 } gs_encoding_index_t;
4023 # 123 "./src/gsccode.h"
4024 typedef enum gs_glyph_space_s {
4025 GLYPH_SPACE_NAME,
4026 GLYPH_SPACE_INDEX,
4027 GLYPH_SPACE_NOGEN
4028 } gs_glyph_space_t;
4029
4030
4031
4032
4033
4034
4035 typedef int (*gs_glyph_name_proc_t)(const gs_memory_t *mem,
4036 gs_glyph glyph, gs_const_string *pstr,
4037 void *proc_data);
4038 # 21 "./src/gstext.h" 2
4039 # 1 "./src/gscpm.h" 1
4040 # 20 "./src/gscpm.h"
4041 typedef enum {
4042 cpm_show,
4043 cpm_charwidth,
4044 cpm_false_charpath,
4045 cpm_true_charpath,
4046 cpm_false_charboxpath,
4047 cpm_true_charboxpath
4048 } gs_char_path_mode;
4049
4050 typedef enum {
4051 CACHE_DEVICE_NONE = 0,
4052 CACHE_DEVICE_NOT_CACHING,
4053 CACHE_DEVICE_NONE_AND_CLIP,
4054 CACHE_DEVICE_CACHING
4055 } gs_in_cache_device_t;
4056 # 22 "./src/gstext.h" 2
4057 # 95 "./src/gstext.h"
4058 typedef struct gs_text_params_s {
4059
4060 uint operation;
4061 union sd_ {
4062 const byte *bytes;
4063 const gs_char *chars;
4064 const gs_glyph *glyphs;
4065 gs_char d_char;
4066 gs_glyph d_glyph;
4067 } data;
4068 uint size;
4069
4070
4071 gs_point delta_all;
4072 gs_point delta_space;
4073 union s_ {
4074 gs_char s_char;
4075 gs_glyph s_glyph;
4076 } space;
4077
4078
4079 const float *x_widths;
4080 const float *y_widths;
4081 uint widths_size;
4082 } gs_text_params_t;
4083 # 128 "./src/gstext.h"
4084 int gs_text_replaced_width(const gs_text_params_t *text, uint index,
4085 gs_point *pwidth);
4086
4087
4088
4089
4090
4091
4092
4093 typedef struct gs_text_enum_s gs_text_enum_t;
4094
4095
4096
4097
4098
4099 typedef struct gx_device_s gx_device;
4100 # 155 "./src/gstext.h"
4101 typedef struct gs_font_s gs_font;
4102
4103
4104
4105 typedef struct gx_path_s gx_path;
4106
4107
4108
4109 typedef struct gx_clip_path_s gx_clip_path;
4110 # 187 "./src/gstext.h"
4111 int gx_device_text_begin(gx_device *dev, gs_imager_state *pis, const gs_text_params_t *text, gs_font *font, gx_path *path, const gx_device_color *pdcolor, const gx_clip_path *pcpath, gs_memory_t *memory, gs_text_enum_t **ppte);
4112
4113
4114
4115
4116
4117
4118 int gs_text_begin(gs_state * pgs, const gs_text_params_t * text,
4119 gs_memory_t * mem, gs_text_enum_t ** ppenum);
4120
4121
4122
4123
4124
4125 int gs_text_update_dev_color(gs_state * pgs, gs_text_enum_t * pte);
4126
4127
4128
4129 int
4130 gs_show_begin(gs_state *, const byte *, uint,
4131 gs_memory_t *, gs_text_enum_t **),
4132 gs_ashow_begin(gs_state *, floatp, floatp, const byte *, uint,
4133 gs_memory_t *, gs_text_enum_t **),
4134 gs_widthshow_begin(gs_state *, floatp, floatp, gs_char,
4135 const byte *, uint,
4136 gs_memory_t *, gs_text_enum_t **),
4137 gs_awidthshow_begin(gs_state *, floatp, floatp, gs_char,
4138 floatp, floatp, const byte *, uint,
4139 gs_memory_t *, gs_text_enum_t **),
4140 gs_kshow_begin(gs_state *, const byte *, uint,
4141 gs_memory_t *, gs_text_enum_t **),
4142 gs_xyshow_begin(gs_state *, const byte *, uint,
4143 const float *, const float *, uint,
4144 gs_memory_t *, gs_text_enum_t **),
4145 gs_glyphshow_begin(gs_state *, gs_glyph,
4146 gs_memory_t *, gs_text_enum_t **),
4147 gs_cshow_begin(gs_state *, const byte *, uint,
4148 gs_memory_t *, gs_text_enum_t **),
4149 gs_stringwidth_begin(gs_state *, const byte *, uint,
4150 gs_memory_t *, gs_text_enum_t **),
4151 gs_charpath_begin(gs_state *, const byte *, uint, bool,
4152 gs_memory_t *, gs_text_enum_t **),
4153 gs_glyphpath_begin(gs_state *, gs_glyph, bool,
4154 gs_memory_t *, gs_text_enum_t **),
4155 gs_glyphwidth_begin(gs_state *, gs_glyph,
4156 gs_memory_t *, gs_text_enum_t **),
4157 gs_charboxpath_begin(gs_state *, const byte *, uint, bool,
4158 gs_memory_t *, gs_text_enum_t **);
4159
4160
4161
4162
4163 int gs_text_restart(gs_text_enum_t *pte, const gs_text_params_t *text);
4164
4165
4166
4167
4168 int gs_text_resync(gs_text_enum_t *pte, const gs_text_enum_t *pfrom);
4169 # 276 "./src/gstext.h"
4170 int gs_text_process(gs_text_enum_t *pte);
4171
4172
4173 gs_font *gs_text_current_font(const gs_text_enum_t *pte);
4174 gs_char gs_text_current_char(const gs_text_enum_t *pte);
4175 gs_char gs_text_next_char(const gs_text_enum_t *pte);
4176 gs_glyph gs_text_current_glyph(const gs_text_enum_t *pte);
4177 int gs_text_total_width(const gs_text_enum_t *pte, gs_point *pwidth);
4178
4179
4180
4181
4182
4183
4184 bool gs_text_is_width_only(const gs_text_enum_t *pte);
4185
4186
4187
4188
4189 int gs_text_current_width(const gs_text_enum_t *pte, gs_point *pwidth);
4190
4191
4192
4193
4194
4195 typedef enum {
4196 TEXT_SET_CHAR_WIDTH,
4197 TEXT_SET_CACHE_DEVICE,
4198 TEXT_SET_CACHE_DEVICE2
4199 } gs_text_cache_control_t;
4200 int
4201 gs_text_set_cache(gs_text_enum_t *pte, const double *values,
4202 gs_text_cache_control_t control),
4203 gs_text_setcharwidth(gs_text_enum_t *pte, const double wxy[2]),
4204 gs_text_setcachedevice(gs_text_enum_t *pte, const double wbox[6]),
4205 gs_text_setcachedevice2(gs_text_enum_t *pte, const double wbox2[10]);
4206
4207
4208 int gs_text_retry(gs_text_enum_t *pte);
4209
4210
4211 void gs_text_release(gs_text_enum_t *pte, client_name_t cname);
4212 # 21 "./src/gxtext.h" 2
4213
4214
4215
4216 typedef struct gs_text_enum_procs_s gs_text_enum_procs_t;
4217
4218
4219
4220 typedef struct cached_fm_pair_s cached_fm_pair;
4221
4222
4223
4224
4225
4226 typedef struct gs_text_returned_s {
4227 gs_char current_char;
4228 gs_glyph current_glyph;
4229 gs_point total_width;
4230 } gs_text_returned_t;
4231 # 54 "./src/gxtext.h"
4232 typedef struct gx_font_stack_item_s {
4233 gs_font *font;
4234 uint index;
4235 } gx_font_stack_item_t;
4236 typedef struct gx_font_stack_s {
4237 int depth;
4238 gx_font_stack_item_t items[1 + 5];
4239 } gx_font_stack_t;
4240 # 74 "./src/gxtext.h"
4241 void rc_free_text_enum(gs_memory_t *, void *, client_name_t);
4242 # 111 "./src/gxtext.h"
4243 struct gs_text_enum_s {
4244 gs_text_params_t text; gx_device *dev; gx_device *imaging_dev; gs_imager_state *pis; gs_font *orig_font; gx_path *path; const gx_device_color *pdcolor; const gx_clip_path *pcpath; gs_memory_t *memory; const gs_text_enum_procs_t *procs; rc_header rc; gs_font *current_font; gs_glyph outer_CID; bool is_pure_color; gs_log2_scale_point log2_scale; cached_fm_pair *pair; uint index; uint xy_index; gx_font_stack_t fstack; int cmap_code; gs_point FontBBox_as_Metrics2; ulong text_enum_id; bool device_disabled_grid_fitting; gs_text_returned_t returned;
4245 };
4246 # 163 "./src/gxtext.h"
4247 int gs_text_enum_init(gs_text_enum_t *pte,
4248 const gs_text_enum_procs_t *procs,
4249 gx_device *dev, gs_imager_state *pis,
4250 const gs_text_params_t *text,
4251 gs_font *font, gx_path *path,
4252 const gx_device_color *pdcolor,
4253 const gx_clip_path *pcpath,
4254 gs_memory_t *mem);
4255
4256
4257
4258
4259
4260
4261
4262 void gs_text_enum_copy_dynamic(gs_text_enum_t *pto,
4263 const gs_text_enum_t *pfrom,
4264 bool for_return);
4265 # 211 "./src/gxtext.h"
4266 struct gs_text_enum_procs_s {
4267 # 224 "./src/gxtext.h"
4268 int (*resync)(gs_text_enum_t *pte, const gs_text_enum_t *pfrom);
4269 # 254 "./src/gxtext.h"
4270 int (*process)(gs_text_enum_t *pte);
4271 # 265 "./src/gxtext.h"
4272 bool (*is_width_only)(const gs_text_enum_t *pte);
4273 # 274 "./src/gxtext.h"
4274 int (*current_width)(const gs_text_enum_t *pte, gs_point *pwidth);
4275 # 285 "./src/gxtext.h"
4276 int (*set_cache)(gs_text_enum_t *pte, const double *values, gs_text_cache_control_t control);
4277 # 295 "./src/gxtext.h"
4278 int (*retry)(gs_text_enum_t *pte);
4279 # 306 "./src/gxtext.h"
4280 void (*release)(gs_text_enum_t *pte, client_name_t cname);
4281
4282 };
4283
4284
4285 void gx_default_text_release(gs_text_enum_t *pte, client_name_t cname);
4286 # 36 "./src/gxdevcli.h" 2
4287 # 1 "./src/gxcmap.h" 1
4288 # 21 "./src/gxcmap.h"
4289 # 1 "./src/gscsel.h" 1
4290 # 25 "./src/gscsel.h"
4291 typedef enum {
4292 gs_color_select_all = -1,
4293 gs_color_select_texture = 0,
4294 gs_color_select_source = 1
4295 } gs_color_select_t;
4296 # 22 "./src/gxcmap.h" 2
4297 # 1 "./src/gxfmap.h" 1
4298 # 22 "./src/gxfmap.h"
4299 # 1 "./src/gxfrac.h" 1
4300 # 25 "./src/gxfrac.h"
4301 typedef short frac;
4302 typedef short signed_frac;
4303 # 23 "./src/gxfmap.h" 2
4304 # 1 "./src/gxtmap.h" 1
4305 # 27 "./src/gxtmap.h"
4306 typedef struct gx_transfer_map_s gx_transfer_map;
4307
4308
4309
4310
4311
4312 typedef float (*gs_mapping_proc) (floatp, const gx_transfer_map *);
4313
4314
4315
4316
4317
4318 typedef float (*gs_mapping_closure_proc_t) (floatp value,
4319 const gx_transfer_map * pmap,
4320 const void *proc_data);
4321 typedef struct gs_mapping_closure_s {
4322 gs_mapping_closure_proc_t proc;
4323 const void *data;
4324 } gs_mapping_closure_t;
4325 # 24 "./src/gxfmap.h" 2
4326 # 39 "./src/gxfmap.h"
4327 struct gx_transfer_map_s {
4328 rc_header rc;
4329 gs_mapping_proc proc;
4330 gs_mapping_closure_t closure;
4331
4332 gs_id id;
4333 frac values[(1 << 8)];
4334 };
4335
4336 extern const gs_memory_struct_type_t st_transfer_map;
4337
4338
4339
4340
4341
4342 void gx_set_identity_transfer(gx_transfer_map *);
4343 # 63 "./src/gxfmap.h"
4344 frac gx_color_frac_map(frac, const frac *);
4345 # 97 "./src/gxfmap.h"
4346 float gs_mapped_transfer(floatp, const gx_transfer_map *);
4347
4348
4349
4350
4351 float gs_identity_transfer(floatp, const gx_transfer_map *);
4352 # 23 "./src/gxcmap.h" 2
4353 # 85 "./src/gxcmap.h"
4354 struct gx_cm_color_map_procs_s {
4355 void (*map_gray) (gx_device * dev, frac gray, frac * out);
4356 void (*map_rgb) (gx_device * dev, const gs_imager_state *pis, frac r, frac g, frac b, frac * out);
4357 void (*map_cmyk) (gx_device * dev, frac c, frac m, frac y, frac k, frac * out);
4358 };
4359
4360 typedef struct gx_cm_color_map_procs_s gx_cm_color_map_procs;
4361
4362
4363
4364
4365 void gray_cs_to_gray_cm (gx_device * dev, frac gray, frac * out);
4366 void rgb_cs_to_rgb_cm (gx_device * dev, const gs_imager_state *pis, frac r, frac g, frac b, frac * out);
4367 void cmyk_cs_to_cmyk_cm (gx_device * dev, frac c, frac m, frac y, frac k, frac * out);
4368 # 112 "./src/gxcmap.h"
4369 struct gx_color_map_procs_s {
4370 void (*map_gray)(frac, gx_device_color *, const gs_imager_state *, gx_device *, gs_color_select_t);
4371 void (*map_rgb)(frac, frac, frac, gx_device_color *, const gs_imager_state *, gx_device *, gs_color_select_t);
4372 void (*map_cmyk)(frac, frac, frac, frac, gx_device_color *, const gs_imager_state *, gx_device *, gs_color_select_t);
4373 void (*map_rgb_alpha)(frac, frac, frac, frac, gx_device_color *, const gs_imager_state *, gx_device *, gs_color_select_t);
4374 void (*map_separation)(frac, gx_device_color *, const gs_imager_state *, gx_device *, gs_color_select_t);
4375 void (*map_devicen)(const frac *, gx_device_color *, const gs_imager_state *, gx_device *, gs_color_select_t);
4376 bool (*is_halftoned)(const gs_imager_state *, gx_device *);
4377 };
4378 typedef struct gx_color_map_procs_s gx_color_map_procs;
4379
4380
4381
4382
4383
4384
4385 const gx_color_map_procs *
4386 gx_get_cmap_procs(const gs_imager_state *, const gx_device *);
4387 const gx_color_map_procs *
4388 gx_default_get_cmap_procs(const gs_imager_state *, const gx_device *);
4389
4390
4391
4392
4393
4394
4395 void gx_set_cmap_procs(gs_imager_state *, const gx_device *);
4396 # 163 "./src/gxcmap.h"
4397 extern void gx_default_gray_cs_to_gray_cm (gx_device * dev, frac gray, frac * out);
4398 extern void gx_default_rgb_cs_to_gray_cm (gx_device * dev, const gs_imager_state *pis, frac r, frac g, frac b, frac * out);
4399 extern void gx_default_cmyk_cs_to_gray_cm (gx_device * dev, frac c, frac m, frac y, frac k, frac * out);
4400
4401 extern void gx_default_gray_cs_to_rgb_cm (gx_device * dev, frac gray, frac * out);
4402 extern void gx_default_rgb_cs_to_rgb_cm (gx_device * dev, const gs_imager_state *pis, frac r, frac g, frac b, frac * out);
4403 extern void gx_default_cmyk_cs_to_rgb_cm (gx_device * dev, frac c, frac m, frac y, frac k, frac * out);
4404
4405 extern void gx_default_gray_cs_to_cmyk_cm (gx_device * dev, frac gray, frac * out);
4406 extern void gx_default_rgb_cs_to_cmyk_cm (gx_device * dev, const gs_imager_state *pis, frac r, frac g, frac b, frac * out);
4407 extern void gx_default_cmyk_cs_to_cmyk_cm (gx_device * dev, frac c, frac m, frac y, frac k, frac * out);
4408
4409 extern void gx_default_gray_cs_to_cmyk_cm (gx_device * dev, frac gray, frac * out);
4410 extern void gx_default_rgb_cs_to_cmyk_cm (gx_device * dev, const gs_imager_state *pis, frac r, frac g, frac b, frac * out);
4411 extern void gx_default_cmyk_cs_to_cmyk_cm (gx_device * dev, frac c, frac m, frac y, frac k, frac * out);
4412
4413 extern void gx_error_gray_cs_to_cmyk_cm (gx_device * dev, frac gray, frac * out);
4414 extern void gx_error_rgb_cs_to_cmyk_cm (gx_device * dev, const gs_imager_state *pis, frac r, frac g, frac b, frac * out);
4415 extern void gx_error_cmyk_cs_to_cmyk_cm (gx_device * dev, frac c, frac m, frac y, frac k, frac * out);
4416 # 238 "./src/gxcmap.h"
4417 int (gx_error_get_color_comp_index)(gx_device * dev, const char * pname, int name_size, int component_type);
4418 int (gx_default_DevGray_get_color_comp_index)(gx_device * dev, const char * pname, int name_size, int component_type);
4419 int (gx_default_DevRGB_get_color_comp_index)(gx_device * dev, const char * pname, int name_size, int component_type);
4420 int (gx_default_DevCMYK_get_color_comp_index)(gx_device * dev, const char * pname, int name_size, int component_type);
4421 int (gx_default_DevRGBK_get_color_comp_index)(gx_device * dev, const char * pname, int name_size, int component_type);
4422
4423
4424
4425
4426
4427 const gx_cm_color_map_procs * (gx_error_get_color_mapping_procs)(const gx_device * dev);
4428 const gx_cm_color_map_procs * (gx_default_DevGray_get_color_mapping_procs)(const gx_device * dev);
4429 const gx_cm_color_map_procs * (gx_default_DevRGB_get_color_mapping_procs)(const gx_device * dev);
4430 const gx_cm_color_map_procs * (gx_default_DevCMYK_get_color_mapping_procs)(const gx_device * dev);
4431 const gx_cm_color_map_procs * (gx_default_DevRGBK_get_color_mapping_procs)(const gx_device * dev);
4432
4433
4434
4435
4436
4437 gx_color_index (gx_error_encode_color)(gx_device * dev, const gx_color_value colors[]);
4438 gx_color_index (gx_default_encode_color)(gx_device * dev, const gx_color_value colors[]);
4439
4440
4441
4442
4443
4444 gx_color_index (gx_default_gray_fast_encode)(gx_device * dev, const gx_color_value colors[]);
4445 gx_color_index (gx_default_gray_encode)(gx_device * dev, const gx_color_value colors[]);
4446
4447
4448
4449
4450
4451
4452 gx_color_index (gx_backwards_compatible_gray_encode)(gx_device * dev, const gx_color_value colors[]);
4453
4454
4455
4456
4457
4458 int (gx_error_decode_color)(gx_device * dev, gx_color_index cindex, gx_color_value colors[]);
4459 int (gx_default_decode_color)(gx_device * dev, gx_color_index cindex, gx_color_value colors[]);
4460 # 37 "./src/gxdevcli.h" 2
4461 # 1 "./src/gsnamecl.h" 1
4462 # 38 "./src/gsnamecl.h"
4463 typedef struct named_color_params_s {
4464
4465
4466
4467
4468 bool use_named_color_callback;
4469 # 52 "./src/gsnamecl.h"
4470 int color_index[(8 * 8)];
4471 } named_color_params_t;
4472 # 93 "./src/gsnamecl.h"
4473 int named_color_put_params(gx_device * dev, gs_param_list * plist);
4474 # 102 "./src/gsnamecl.h"
4475 int named_color_get_params(gx_device * dev, gs_param_list * plist);
4476
4477
4478
4479
4480
4481 bool named_color_install_Separation(gs_color_space * pcs, gs_state * pgs);
4482
4483
4484
4485
4486
4487 bool named_color_install_DeviceN(gs_color_space * pcs, gs_state * pgs);
4488
4489
4490
4491
4492
4493 int gx_remap_concrete_named_color_Separation(const frac * pconc,
4494 const gs_color_space * pcs, gx_device_color * pdc,
4495 const gs_imager_state * pis, gx_device * dev, gs_color_select_t select);
4496
4497
4498
4499
4500
4501 int gx_remap_concrete_named_color_DeviceN(const frac * pconc,
4502 const gs_color_space * pcs, gx_device_color * pdc,
4503 const gs_imager_state * pis, gx_device * dev, gs_color_select_t select);
4504 # 143 "./src/gsnamecl.h"
4505 typedef struct client_named_color_params_s {
4506 struct client_named_color_procs_s * client_procs;
4507 void * data;
4508 } client_named_color_params_t;
4509
4510
4511
4512
4513 typedef struct client_named_color_procs_s {
4514
4515
4516
4517
4518 bool (* install_Separation)(client_named_color_params_t * pparams,
4519 gs_color_space * pcs, gs_state * pgs);
4520
4521
4522
4523 int (* remap_Separation)(client_named_color_params_t * pparams,
4524 const frac * pconc, const gs_color_space * pcs,
4525 gx_device_color * pdc, const gs_imager_state * pis,
4526 gx_device * dev, gs_color_select_t select);
4527
4528
4529
4530
4531 bool (* install_DeviceN)(client_named_color_params_t * pparams,
4532 gs_color_space * pcs, gs_state * pgs);
4533
4534
4535
4536 int (* remap_DeviceN)(client_named_color_params_t * pparams, const frac * pconc,
4537 const gs_color_space * pcs, gx_device_color * pdc,
4538 const gs_imager_state * pis, gx_device * dev,
4539 gs_color_select_t select);
4540
4541 } client_named_color_procs_t;
4542 # 38 "./src/gxdevcli.h" 2
4543 # 134 "./src/gxdevcli.h"
4544 typedef struct gx_fill_params_s gx_fill_params;
4545
4546
4547
4548 typedef struct gx_stroke_params_s gx_stroke_params;
4549 # 149 "./src/gxdevcli.h"
4550 typedef struct gx_image_enum_common_s gx_image_enum_common_t;
4551
4552
4553
4554
4555
4556
4557 typedef struct gs_pattern1_instance_s gs_pattern1_instance_t;
4558
4559
4560
4561
4562 typedef gx_device_color gx_drawing_color;
4563
4564
4565
4566 typedef enum {
4567 go_text,
4568 go_graphics
4569 } graphics_object_type;
4570
4571
4572 typedef struct gs_fixed_edge_s {
4573 gs_fixed_point start;
4574 gs_fixed_point end;
4575 } gs_fixed_edge;
4576
4577
4578
4579
4580 typedef struct gs_get_bits_params_s gs_get_bits_params_t;
4581
4582
4583
4584 typedef struct gx_device_anti_alias_info_s {
4585 int text_bits;
4586 int graphics_bits;
4587 } gx_device_anti_alias_info;
4588
4589 typedef int32_t frac31;
4590
4591
4592
4593
4594 typedef struct gs_linear_color_edge_s {
4595 gs_fixed_point start;
4596 gs_fixed_point end;
4597 const frac31 *c0, *c1;
4598 fixed clip_x;
4599 } gs_linear_color_edge;
4600 # 227 "./src/gxdevcli.h"
4601 typedef enum {
4602 GX_CINFO_UNKNOWN_SEP_LIN = -1,
4603 GX_CINFO_SEP_LIN_NONE = 0,
4604 GX_CINFO_SEP_LIN
4605 } gx_color_enc_sep_lin_t;
4606
4607
4608
4609
4610
4611 typedef enum {
4612 GX_CINFO_POLARITY_UNKNOWN = -1,
4613 GX_CINFO_POLARITY_SUBTRACTIVE = 0,
4614 GX_CINFO_POLARITY_ADDITIVE
4615 } gx_color_polarity_t;
4616 # 261 "./src/gxdevcli.h"
4617 typedef enum {
4618 GX_CINFO_OPMODE_UNKNOWN = -1,
4619 GX_CINFO_OPMODE_NOT = 0,
4620 GX_CINFO_OPMODE
4621 } gx_cm_opmode_t;
4622 # 294 "./src/gxdevcli.h&quo