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