Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 84775 Details for
Bug 130161
[4.1/ICE] fontforge 20060408 fails when building with -O3 -ftracer -fPIC
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Preprocessed source
ccpwmqQA.out (text/plain), 252.31 KB, created by
Federico Fissore
on 2006-04-16 05:19:30 UTC
(
hide
)
Description:
Preprocessed source
Filename:
MIME Type:
Creator:
Federico Fissore
Created:
2006-04-16 05:19:30 UTC
Size:
252.31 KB
patch
obsolete
>// /usr/libexec/gcc/i686-pc-linux-gnu/4.1.0/cc1 -quiet -I/usr/include/freetype2/ -I/usr/include/libxml2/ -I../inc -I/usr/pkg/include -I/usr/pkg/include/giflib -DNOTHREADS -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_ICONV_H=1 -D_HAS_LONGLONG=1 -DHAVE_LIBINTL_H=1 -DFONTFORGE_CONFIG_TYPE3=1 -DFONTFORGE_CONFIG_DEVICETABLES=1 -DLIBDIR="/lib" -DPIC gpsdraw.c -quiet -dumpbase gpsdraw.c -march=pentium-m -auxbase-strip gpsdraw.lo -O3 -Wmissing-prototypes -Wunused -Wimplicit -Wreturn-type -Wparentheses -Wformat -Wchar-subscripts -fomit-frame-pointer -ftracer -fPIC -o - -frandom-seed=0 ># 1 "gpsdraw.c" ># 1 "<built-in>" ># 1 "<command line>" ># 1 "gpsdraw.c" ># 27 "gpsdraw.c" ># 1 "/usr/include/stdio.h" 1 3 4 ># 28 "/usr/include/stdio.h" 3 4 ># 1 "/usr/include/features.h" 1 3 4 ># 323 "/usr/include/features.h" 3 4 ># 1 "/usr/include/sys/cdefs.h" 1 3 4 ># 313 "/usr/include/sys/cdefs.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 314 "/usr/include/sys/cdefs.h" 2 3 4 ># 324 "/usr/include/features.h" 2 3 4 ># 346 "/usr/include/features.h" 3 4 ># 1 "/usr/include/gnu/stubs.h" 1 3 4 > > > ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 5 "/usr/include/gnu/stubs.h" 2 3 4 > > ># 1 "/usr/include/gnu/stubs-32.h" 1 3 4 ># 8 "/usr/include/gnu/stubs.h" 2 3 4 ># 347 "/usr/include/features.h" 2 3 4 ># 29 "/usr/include/stdio.h" 2 3 4 > > > > > ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/stddef.h" 1 3 4 ># 214 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/stddef.h" 3 4 >typedef unsigned int size_t; ># 35 "/usr/include/stdio.h" 2 3 4 > ># 1 "/usr/include/bits/types.h" 1 3 4 ># 28 "/usr/include/bits/types.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 29 "/usr/include/bits/types.h" 2 3 4 > > ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/stddef.h" 1 3 4 ># 32 "/usr/include/bits/types.h" 2 3 4 > > >typedef unsigned char __u_char; >typedef unsigned short int __u_short; >typedef unsigned int __u_int; >typedef unsigned long int __u_long; > > >typedef signed char __int8_t; >typedef unsigned char __uint8_t; >typedef signed short int __int16_t; >typedef unsigned short int __uint16_t; >typedef signed int __int32_t; >typedef unsigned int __uint32_t; > > > > >__extension__ typedef signed long long int __int64_t; >__extension__ typedef unsigned long long int __uint64_t; > > > > > > > >__extension__ typedef long long int __quad_t; >__extension__ typedef unsigned long long int __u_quad_t; ># 134 "/usr/include/bits/types.h" 3 4 ># 1 "/usr/include/bits/typesizes.h" 1 3 4 ># 135 "/usr/include/bits/types.h" 2 3 4 > > >__extension__ typedef __u_quad_t __dev_t; >__extension__ typedef unsigned int __uid_t; >__extension__ typedef unsigned int __gid_t; >__extension__ typedef unsigned long int __ino_t; >__extension__ typedef __u_quad_t __ino64_t; >__extension__ typedef unsigned int __mode_t; >__extension__ typedef unsigned int __nlink_t; >__extension__ typedef long int __off_t; >__extension__ typedef __quad_t __off64_t; >__extension__ typedef int __pid_t; >__extension__ typedef struct { int __val[2]; } __fsid_t; >__extension__ typedef long int __clock_t; >__extension__ typedef unsigned long int __rlim_t; >__extension__ typedef __u_quad_t __rlim64_t; >__extension__ typedef unsigned int __id_t; >__extension__ typedef long int __time_t; >__extension__ typedef unsigned int __useconds_t; >__extension__ typedef long int __suseconds_t; > >__extension__ typedef int __daddr_t; >__extension__ typedef long int __swblk_t; >__extension__ typedef int __key_t; > > >__extension__ typedef int __clockid_t; > > >__extension__ typedef void * __timer_t; > > >__extension__ typedef long int __blksize_t; > > > > >__extension__ typedef long int __blkcnt_t; >__extension__ typedef __quad_t __blkcnt64_t; > > >__extension__ typedef unsigned long int __fsblkcnt_t; >__extension__ typedef __u_quad_t __fsblkcnt64_t; > > >__extension__ typedef unsigned long int __fsfilcnt_t; >__extension__ typedef __u_quad_t __fsfilcnt64_t; > >__extension__ typedef int __ssize_t; > > > >typedef __off64_t __loff_t; >typedef __quad_t *__qaddr_t; >typedef char *__caddr_t; > > >__extension__ typedef int __intptr_t; > > >__extension__ typedef unsigned int __socklen_t; ># 37 "/usr/include/stdio.h" 2 3 4 > > > > > > > > > >typedef struct _IO_FILE FILE; > > > > > ># 62 "/usr/include/stdio.h" 3 4 >typedef struct _IO_FILE __FILE; ># 72 "/usr/include/stdio.h" 3 4 ># 1 "/usr/include/libio.h" 1 3 4 ># 32 "/usr/include/libio.h" 3 4 ># 1 "/usr/include/_G_config.h" 1 3 4 ># 14 "/usr/include/_G_config.h" 3 4 ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/stddef.h" 1 3 4 ># 326 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/stddef.h" 3 4 >typedef long int wchar_t; ># 355 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/stddef.h" 3 4 >typedef unsigned int wint_t; ># 15 "/usr/include/_G_config.h" 2 3 4 ># 24 "/usr/include/_G_config.h" 3 4 ># 1 "/usr/include/wchar.h" 1 3 4 ># 48 "/usr/include/wchar.h" 3 4 ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/stddef.h" 1 3 4 ># 49 "/usr/include/wchar.h" 2 3 4 > ># 1 "/usr/include/bits/wchar.h" 1 3 4 ># 51 "/usr/include/wchar.h" 2 3 4 ># 76 "/usr/include/wchar.h" 3 4 >typedef struct >{ > int __count; > union > { > wint_t __wch; > char __wchb[4]; > } __value; >} __mbstate_t; ># 25 "/usr/include/_G_config.h" 2 3 4 > >typedef struct >{ > __off_t __pos; > __mbstate_t __state; >} _G_fpos_t; >typedef struct >{ > __off64_t __pos; > __mbstate_t __state; >} _G_fpos64_t; ># 44 "/usr/include/_G_config.h" 3 4 ># 1 "/usr/include/gconv.h" 1 3 4 ># 28 "/usr/include/gconv.h" 3 4 ># 1 "/usr/include/wchar.h" 1 3 4 ># 48 "/usr/include/wchar.h" 3 4 ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/stddef.h" 1 3 4 ># 49 "/usr/include/wchar.h" 2 3 4 ># 29 "/usr/include/gconv.h" 2 3 4 > > ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/stddef.h" 1 3 4 ># 32 "/usr/include/gconv.h" 2 3 4 > > > > > >enum >{ > __GCONV_OK = 0, > __GCONV_NOCONV, > __GCONV_NODB, > __GCONV_NOMEM, > > __GCONV_EMPTY_INPUT, > __GCONV_FULL_OUTPUT, > __GCONV_ILLEGAL_INPUT, > __GCONV_INCOMPLETE_INPUT, > > __GCONV_ILLEGAL_DESCRIPTOR, > __GCONV_INTERNAL_ERROR >}; > > > >enum >{ > __GCONV_IS_LAST = 0x0001, > __GCONV_IGNORE_ERRORS = 0x0002 >}; > > > >struct __gconv_step; >struct __gconv_step_data; >struct __gconv_loaded_object; >struct __gconv_trans_data; > > > >typedef int (*__gconv_fct) (struct __gconv_step *, struct __gconv_step_data *, > __const unsigned char **, __const unsigned char *, > unsigned char **, size_t *, int, int); > > >typedef wint_t (*__gconv_btowc_fct) (struct __gconv_step *, unsigned char); > > >typedef int (*__gconv_init_fct) (struct __gconv_step *); >typedef void (*__gconv_end_fct) (struct __gconv_step *); > > > >typedef int (*__gconv_trans_fct) (struct __gconv_step *, > struct __gconv_step_data *, void *, > __const unsigned char *, > __const unsigned char **, > __const unsigned char *, unsigned char **, > size_t *); > > >typedef int (*__gconv_trans_context_fct) (void *, __const unsigned char *, > __const unsigned char *, > unsigned char *, unsigned char *); > > >typedef int (*__gconv_trans_query_fct) (__const char *, __const char ***, > size_t *); > > >typedef int (*__gconv_trans_init_fct) (void **, const char *); >typedef void (*__gconv_trans_end_fct) (void *); > >struct __gconv_trans_data >{ > > __gconv_trans_fct __trans_fct; > __gconv_trans_context_fct __trans_context_fct; > __gconv_trans_end_fct __trans_end_fct; > void *__data; > struct __gconv_trans_data *__next; >}; > > > >struct __gconv_step >{ > struct __gconv_loaded_object *__shlib_handle; > __const char *__modname; > > int __counter; > > char *__from_name; > char *__to_name; > > __gconv_fct __fct; > __gconv_btowc_fct __btowc_fct; > __gconv_init_fct __init_fct; > __gconv_end_fct __end_fct; > > > > int __min_needed_from; > int __max_needed_from; > int __min_needed_to; > int __max_needed_to; > > > int __stateful; > > void *__data; >}; > > > >struct __gconv_step_data >{ > unsigned char *__outbuf; > unsigned char *__outbufend; > > > > int __flags; > > > > int __invocation_counter; > > > > int __internal_use; > > __mbstate_t *__statep; > __mbstate_t __state; > > > > struct __gconv_trans_data *__trans; >}; > > > >typedef struct __gconv_info >{ > size_t __nsteps; > struct __gconv_step *__steps; > __extension__ struct __gconv_step_data __data []; >} *__gconv_t; ># 45 "/usr/include/_G_config.h" 2 3 4 >typedef union >{ > struct __gconv_info __cd; > struct > { > struct __gconv_info __cd; > struct __gconv_step_data __data; > } __combined; >} _G_iconv_t; > >typedef int _G_int16_t __attribute__ ((__mode__ (__HI__))); >typedef int _G_int32_t __attribute__ ((__mode__ (__SI__))); >typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__))); >typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__))); ># 33 "/usr/include/libio.h" 2 3 4 ># 53 "/usr/include/libio.h" 3 4 ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/stdarg.h" 1 3 4 ># 43 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/stdarg.h" 3 4 >typedef __builtin_va_list __gnuc_va_list; ># 54 "/usr/include/libio.h" 2 3 4 ># 166 "/usr/include/libio.h" 3 4 >struct _IO_jump_t; struct _IO_FILE; ># 176 "/usr/include/libio.h" 3 4 >typedef void _IO_lock_t; > > > > > >struct _IO_marker { > struct _IO_marker *_next; > struct _IO_FILE *_sbuf; > > > > int _pos; ># 199 "/usr/include/libio.h" 3 4 >}; > > >enum __codecvt_result >{ > __codecvt_ok, > __codecvt_partial, > __codecvt_error, > __codecvt_noconv >}; ># 267 "/usr/include/libio.h" 3 4 >struct _IO_FILE { > int _flags; > > > > > char* _IO_read_ptr; > char* _IO_read_end; > char* _IO_read_base; > char* _IO_write_base; > char* _IO_write_ptr; > char* _IO_write_end; > char* _IO_buf_base; > char* _IO_buf_end; > > char *_IO_save_base; > char *_IO_backup_base; > char *_IO_save_end; > > struct _IO_marker *_markers; > > struct _IO_FILE *_chain; > > int _fileno; > > > > int _flags2; > > __off_t _old_offset; > > > > unsigned short _cur_column; > signed char _vtable_offset; > char _shortbuf[1]; > > > > _IO_lock_t *_lock; ># 315 "/usr/include/libio.h" 3 4 > __off64_t _offset; ># 324 "/usr/include/libio.h" 3 4 > void *__pad1; > void *__pad2; > void *__pad3; > void *__pad4; > size_t __pad5; > > int _mode; > > char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)]; > >}; > > >typedef struct _IO_FILE _IO_FILE; > > >struct _IO_FILE_plus; > >extern struct _IO_FILE_plus _IO_2_1_stdin_; >extern struct _IO_FILE_plus _IO_2_1_stdout_; >extern struct _IO_FILE_plus _IO_2_1_stderr_; ># 360 "/usr/include/libio.h" 3 4 >typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes); > > > > > > > >typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf, > size_t __n); > > > > > > > >typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w); > > >typedef int __io_close_fn (void *__cookie); ># 412 "/usr/include/libio.h" 3 4 >extern int __underflow (_IO_FILE *) __attribute__ ((__nothrow__)); >extern int __uflow (_IO_FILE *) __attribute__ ((__nothrow__)); >extern int __overflow (_IO_FILE *, int) __attribute__ ((__nothrow__)); >extern wint_t __wunderflow (_IO_FILE *) __attribute__ ((__nothrow__)); >extern wint_t __wuflow (_IO_FILE *) __attribute__ ((__nothrow__)); >extern wint_t __woverflow (_IO_FILE *, wint_t) __attribute__ ((__nothrow__)); ># 450 "/usr/include/libio.h" 3 4 >extern int _IO_getc (_IO_FILE *__fp) __attribute__ ((__nothrow__)); >extern int _IO_putc (int __c, _IO_FILE *__fp) __attribute__ ((__nothrow__)); >extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__)); >extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__)); > >extern int _IO_peekc_locked (_IO_FILE *__fp) __attribute__ ((__nothrow__)); > > > > > >extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__)); >extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__)); >extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__)); ># 480 "/usr/include/libio.h" 3 4 >extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict, > __gnuc_va_list, int *__restrict); >extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict, > __gnuc_va_list); >extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t) __attribute__ ((__nothrow__)); >extern size_t _IO_sgetn (_IO_FILE *, void *, size_t) __attribute__ ((__nothrow__)); > >extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int) __attribute__ ((__nothrow__)); >extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int) __attribute__ ((__nothrow__)); > >extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__)); ># 73 "/usr/include/stdio.h" 2 3 4 ># 86 "/usr/include/stdio.h" 3 4 > > >typedef _G_fpos_t fpos_t; > > > > ># 138 "/usr/include/stdio.h" 3 4 ># 1 "/usr/include/bits/stdio_lim.h" 1 3 4 ># 139 "/usr/include/stdio.h" 2 3 4 > > > >extern struct _IO_FILE *stdin; >extern struct _IO_FILE *stdout; >extern struct _IO_FILE *stderr; > > > > > > > >extern int remove (__const char *__filename) __attribute__ ((__nothrow__)); > >extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__)); > > > > > > > > > > > > > > >extern FILE *tmpfile (void); ># 183 "/usr/include/stdio.h" 3 4 >extern char *tmpnam (char *__s) __attribute__ ((__nothrow__)); > > > > > >extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__)); ># 201 "/usr/include/stdio.h" 3 4 >extern char *tempnam (__const char *__dir, __const char *__pfx) > __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); > > > > > > > > >extern int fclose (FILE *__stream); > > > > >extern int fflush (FILE *__stream); > ># 226 "/usr/include/stdio.h" 3 4 >extern int fflush_unlocked (FILE *__stream); ># 240 "/usr/include/stdio.h" 3 4 > > > > > > >extern FILE *fopen (__const char *__restrict __filename, > __const char *__restrict __modes); > > > > >extern FILE *freopen (__const char *__restrict __filename, > __const char *__restrict __modes, > FILE *__restrict __stream); ># 267 "/usr/include/stdio.h" 3 4 > ># 278 "/usr/include/stdio.h" 3 4 >extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__)); ># 304 "/usr/include/stdio.h" 3 4 > > > >extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__)); > > > >extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, > int __modes, size_t __n) __attribute__ ((__nothrow__)); > > > > > >extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, > size_t __size) __attribute__ ((__nothrow__)); > > >extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__)); > > > > > > > > >extern int fprintf (FILE *__restrict __stream, > __const char *__restrict __format, ...); > > > > >extern int printf (__const char *__restrict __format, ...); > >extern int sprintf (char *__restrict __s, > __const char *__restrict __format, ...) __attribute__ ((__nothrow__)); > > > > > >extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format, > __gnuc_va_list __arg); > > > > >extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg); > >extern int vsprintf (char *__restrict __s, __const char *__restrict __format, > __gnuc_va_list __arg) __attribute__ ((__nothrow__)); > > > > > >extern int snprintf (char *__restrict __s, size_t __maxlen, > __const char *__restrict __format, ...) > __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4))); > >extern int vsnprintf (char *__restrict __s, size_t __maxlen, > __const char *__restrict __format, __gnuc_va_list __arg) > __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0))); > ># 398 "/usr/include/stdio.h" 3 4 > > > > > >extern int fscanf (FILE *__restrict __stream, > __const char *__restrict __format, ...) ; > > > > >extern int scanf (__const char *__restrict __format, ...) ; > >extern int sscanf (__const char *__restrict __s, > __const char *__restrict __format, ...) __attribute__ ((__nothrow__)); > ># 440 "/usr/include/stdio.h" 3 4 > > > > > >extern int fgetc (FILE *__stream); >extern int getc (FILE *__stream); > > > > > >extern int getchar (void); > ># 464 "/usr/include/stdio.h" 3 4 >extern int getc_unlocked (FILE *__stream); >extern int getchar_unlocked (void); ># 475 "/usr/include/stdio.h" 3 4 >extern int fgetc_unlocked (FILE *__stream); > > > > > > > > > > > >extern int fputc (int __c, FILE *__stream); >extern int putc (int __c, FILE *__stream); > > > > > >extern int putchar (int __c); > ># 508 "/usr/include/stdio.h" 3 4 >extern int fputc_unlocked (int __c, FILE *__stream); > > > > > > > >extern int putc_unlocked (int __c, FILE *__stream); >extern int putchar_unlocked (int __c); > > > > > > >extern int getw (FILE *__stream); > > >extern int putw (int __w, FILE *__stream); > > > > > > > > >extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) > ; > > > > > > >extern char *gets (char *__s) ; > ># 589 "/usr/include/stdio.h" 3 4 > > > > > >extern int fputs (__const char *__restrict __s, FILE *__restrict __stream); > > > > > >extern int puts (__const char *__s); > > > > > > >extern int ungetc (int __c, FILE *__stream); > > > > > > >extern size_t fread (void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __stream) ; > > > > >extern size_t fwrite (__const void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __s) ; > ># 642 "/usr/include/stdio.h" 3 4 >extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __stream) ; >extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __stream) ; > > > > > > > > >extern int fseek (FILE *__stream, long int __off, int __whence); > > > > >extern long int ftell (FILE *__stream) ; > > > > >extern void rewind (FILE *__stream); > ># 678 "/usr/include/stdio.h" 3 4 >extern int fseeko (FILE *__stream, __off_t __off, int __whence); > > > > >extern __off_t ftello (FILE *__stream) ; ># 697 "/usr/include/stdio.h" 3 4 > > > > > > >extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos); > > > > >extern int fsetpos (FILE *__stream, __const fpos_t *__pos); ># 720 "/usr/include/stdio.h" 3 4 > ># 729 "/usr/include/stdio.h" 3 4 > > >extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__)); > >extern int feof (FILE *__stream) __attribute__ ((__nothrow__)) ; > >extern int ferror (FILE *__stream) __attribute__ ((__nothrow__)) ; > > > > >extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__)); >extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ; >extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ; > > > > > > > > >extern void perror (__const char *__s); > > > > > > ># 1 "/usr/include/bits/sys_errlist.h" 1 3 4 ># 27 "/usr/include/bits/sys_errlist.h" 3 4 >extern int sys_nerr; >extern __const char *__const sys_errlist[]; ># 759 "/usr/include/stdio.h" 2 3 4 > > > > >extern int fileno (FILE *__stream) __attribute__ ((__nothrow__)) ; > > > > >extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ; ># 778 "/usr/include/stdio.h" 3 4 >extern FILE *popen (__const char *__command, __const char *__modes) ; > > > > > >extern int pclose (FILE *__stream); > > > > > >extern char *ctermid (char *__s) __attribute__ ((__nothrow__)); ># 818 "/usr/include/stdio.h" 3 4 >extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__)); > > > >extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__)) ; > > >extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__)); ># 839 "/usr/include/stdio.h" 3 4 ># 1 "/usr/include/bits/stdio.h" 1 3 4 ># 33 "/usr/include/bits/stdio.h" 3 4 >extern __inline int >vprintf (__const char *__restrict __fmt, __gnuc_va_list __arg) >{ > return vfprintf (stdout, __fmt, __arg); >} > > >extern __inline int >getchar (void) >{ > return _IO_getc (stdin); >} > > > > >extern __inline int >getc_unlocked (FILE *__fp) >{ > return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); >} > > >extern __inline int >getchar_unlocked (void) >{ > return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++); >} > > > > >extern __inline int >putchar (int __c) >{ > return _IO_putc (__c, stdout); >} > > > > >extern __inline int >fputc_unlocked (int __c, FILE *__stream) >{ > return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); >} > > > > > >extern __inline int >putc_unlocked (int __c, FILE *__stream) >{ > return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); >} > > >extern __inline int >putchar_unlocked (int __c) >{ > return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c))); >} ># 111 "/usr/include/bits/stdio.h" 3 4 >extern __inline int >__attribute__ ((__nothrow__)) feof_unlocked (FILE *__stream) >{ > return (((__stream)->_flags & 0x10) != 0); >} > > >extern __inline int >__attribute__ ((__nothrow__)) ferror_unlocked (FILE *__stream) >{ > return (((__stream)->_flags & 0x20) != 0); >} ># 840 "/usr/include/stdio.h" 2 3 4 ># 848 "/usr/include/stdio.h" 3 4 > ># 28 "gpsdraw.c" 2 ># 1 "/usr/include/math.h" 1 3 4 ># 30 "/usr/include/math.h" 3 4 > > > > ># 1 "/usr/include/bits/huge_val.h" 1 3 4 ># 35 "/usr/include/math.h" 2 3 4 ># 47 "/usr/include/math.h" 3 4 ># 1 "/usr/include/bits/mathdef.h" 1 3 4 ># 48 "/usr/include/math.h" 2 3 4 ># 71 "/usr/include/math.h" 3 4 ># 1 "/usr/include/bits/mathcalls.h" 1 3 4 ># 53 "/usr/include/bits/mathcalls.h" 3 4 > > >extern double acos (double __x) __attribute__ ((__nothrow__)); extern double __acos (double __x) __attribute__ ((__nothrow__)); > >extern double asin (double __x) __attribute__ ((__nothrow__)); extern double __asin (double __x) __attribute__ ((__nothrow__)); > >extern double atan (double __x) __attribute__ ((__nothrow__)); extern double __atan (double __x) __attribute__ ((__nothrow__)); > >extern double atan2 (double __y, double __x) __attribute__ ((__nothrow__)); extern double __atan2 (double __y, double __x) __attribute__ ((__nothrow__)); > > >extern double cos (double __x) __attribute__ ((__nothrow__)); extern double __cos (double __x) __attribute__ ((__nothrow__)); > >extern double sin (double __x) __attribute__ ((__nothrow__)); extern double __sin (double __x) __attribute__ ((__nothrow__)); > >extern double tan (double __x) __attribute__ ((__nothrow__)); extern double __tan (double __x) __attribute__ ((__nothrow__)); > > > > >extern double cosh (double __x) __attribute__ ((__nothrow__)); extern double __cosh (double __x) __attribute__ ((__nothrow__)); > >extern double sinh (double __x) __attribute__ ((__nothrow__)); extern double __sinh (double __x) __attribute__ ((__nothrow__)); > >extern double tanh (double __x) __attribute__ ((__nothrow__)); extern double __tanh (double __x) __attribute__ ((__nothrow__)); > ># 87 "/usr/include/bits/mathcalls.h" 3 4 > > >extern double acosh (double __x) __attribute__ ((__nothrow__)); extern double __acosh (double __x) __attribute__ ((__nothrow__)); > >extern double asinh (double __x) __attribute__ ((__nothrow__)); extern double __asinh (double __x) __attribute__ ((__nothrow__)); > >extern double atanh (double __x) __attribute__ ((__nothrow__)); extern double __atanh (double __x) __attribute__ ((__nothrow__)); > > > > > > > >extern double exp (double __x) __attribute__ ((__nothrow__)); extern double __exp (double __x) __attribute__ ((__nothrow__)); > > >extern double frexp (double __x, int *__exponent) __attribute__ ((__nothrow__)); extern double __frexp (double __x, int *__exponent) __attribute__ ((__nothrow__)); > > >extern double ldexp (double __x, int __exponent) __attribute__ ((__nothrow__)); extern double __ldexp (double __x, int __exponent) __attribute__ ((__nothrow__)); > > >extern double log (double __x) __attribute__ ((__nothrow__)); extern double __log (double __x) __attribute__ ((__nothrow__)); > > >extern double log10 (double __x) __attribute__ ((__nothrow__)); extern double __log10 (double __x) __attribute__ ((__nothrow__)); > > >extern double modf (double __x, double *__iptr) __attribute__ ((__nothrow__)); extern double __modf (double __x, double *__iptr) __attribute__ ((__nothrow__)); > ># 127 "/usr/include/bits/mathcalls.h" 3 4 > > >extern double expm1 (double __x) __attribute__ ((__nothrow__)); extern double __expm1 (double __x) __attribute__ ((__nothrow__)); > > >extern double log1p (double __x) __attribute__ ((__nothrow__)); extern double __log1p (double __x) __attribute__ ((__nothrow__)); > > >extern double logb (double __x) __attribute__ ((__nothrow__)); extern double __logb (double __x) __attribute__ ((__nothrow__)); > ># 152 "/usr/include/bits/mathcalls.h" 3 4 > > >extern double pow (double __x, double __y) __attribute__ ((__nothrow__)); extern double __pow (double __x, double __y) __attribute__ ((__nothrow__)); > > >extern double sqrt (double __x) __attribute__ ((__nothrow__)); extern double __sqrt (double __x) __attribute__ ((__nothrow__)); > > > > > >extern double hypot (double __x, double __y) __attribute__ ((__nothrow__)); extern double __hypot (double __x, double __y) __attribute__ ((__nothrow__)); > > > > > > >extern double cbrt (double __x) __attribute__ ((__nothrow__)); extern double __cbrt (double __x) __attribute__ ((__nothrow__)); > > > > > > > > >extern double ceil (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __ceil (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern double fabs (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __fabs (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern double floor (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __floor (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern double fmod (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fmod (double __x, double __y) __attribute__ ((__nothrow__)); > > > > >extern int __isinf (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern int __finite (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > > >extern int isinf (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern int finite (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern double drem (double __x, double __y) __attribute__ ((__nothrow__)); extern double __drem (double __x, double __y) __attribute__ ((__nothrow__)); > > > >extern double significand (double __x) __attribute__ ((__nothrow__)); extern double __significand (double __x) __attribute__ ((__nothrow__)); > > > > > >extern double copysign (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __copysign (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > ># 231 "/usr/include/bits/mathcalls.h" 3 4 >extern int __isnan (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > >extern int isnan (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern double j0 (double) __attribute__ ((__nothrow__)); extern double __j0 (double) __attribute__ ((__nothrow__)); >extern double j1 (double) __attribute__ ((__nothrow__)); extern double __j1 (double) __attribute__ ((__nothrow__)); >extern double jn (int, double) __attribute__ ((__nothrow__)); extern double __jn (int, double) __attribute__ ((__nothrow__)); >extern double y0 (double) __attribute__ ((__nothrow__)); extern double __y0 (double) __attribute__ ((__nothrow__)); >extern double y1 (double) __attribute__ ((__nothrow__)); extern double __y1 (double) __attribute__ ((__nothrow__)); >extern double yn (int, double) __attribute__ ((__nothrow__)); extern double __yn (int, double) __attribute__ ((__nothrow__)); > > > > > > >extern double erf (double) __attribute__ ((__nothrow__)); extern double __erf (double) __attribute__ ((__nothrow__)); >extern double erfc (double) __attribute__ ((__nothrow__)); extern double __erfc (double) __attribute__ ((__nothrow__)); >extern double lgamma (double) __attribute__ ((__nothrow__)); extern double __lgamma (double) __attribute__ ((__nothrow__)); > ># 265 "/usr/include/bits/mathcalls.h" 3 4 >extern double gamma (double) __attribute__ ((__nothrow__)); extern double __gamma (double) __attribute__ ((__nothrow__)); > > > > > > >extern double lgamma_r (double, int *__signgamp) __attribute__ ((__nothrow__)); extern double __lgamma_r (double, int *__signgamp) __attribute__ ((__nothrow__)); > > > > > > > >extern double rint (double __x) __attribute__ ((__nothrow__)); extern double __rint (double __x) __attribute__ ((__nothrow__)); > > >extern double nextafter (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __nextafter (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > > >extern double remainder (double __x, double __y) __attribute__ ((__nothrow__)); extern double __remainder (double __x, double __y) __attribute__ ((__nothrow__)); > > > >extern double scalbn (double __x, int __n) __attribute__ ((__nothrow__)); extern double __scalbn (double __x, int __n) __attribute__ ((__nothrow__)); > > > >extern int ilogb (double __x) __attribute__ ((__nothrow__)); extern int __ilogb (double __x) __attribute__ ((__nothrow__)); ># 359 "/usr/include/bits/mathcalls.h" 3 4 > > > > > >extern double scalb (double __x, double __n) __attribute__ ((__nothrow__)); extern double __scalb (double __x, double __n) __attribute__ ((__nothrow__)); ># 72 "/usr/include/math.h" 2 3 4 ># 94 "/usr/include/math.h" 3 4 ># 1 "/usr/include/bits/mathcalls.h" 1 3 4 ># 53 "/usr/include/bits/mathcalls.h" 3 4 > > >extern float acosf (float __x) __attribute__ ((__nothrow__)); extern float __acosf (float __x) __attribute__ ((__nothrow__)); > >extern float asinf (float __x) __attribute__ ((__nothrow__)); extern float __asinf (float __x) __attribute__ ((__nothrow__)); > >extern float atanf (float __x) __attribute__ ((__nothrow__)); extern float __atanf (float __x) __attribute__ ((__nothrow__)); > >extern float atan2f (float __y, float __x) __attribute__ ((__nothrow__)); extern float __atan2f (float __y, float __x) __attribute__ ((__nothrow__)); > > >extern float cosf (float __x) __attribute__ ((__nothrow__)); extern float __cosf (float __x) __attribute__ ((__nothrow__)); > >extern float sinf (float __x) __attribute__ ((__nothrow__)); extern float __sinf (float __x) __attribute__ ((__nothrow__)); > >extern float tanf (float __x) __attribute__ ((__nothrow__)); extern float __tanf (float __x) __attribute__ ((__nothrow__)); > > > > >extern float coshf (float __x) __attribute__ ((__nothrow__)); extern float __coshf (float __x) __attribute__ ((__nothrow__)); > >extern float sinhf (float __x) __attribute__ ((__nothrow__)); extern float __sinhf (float __x) __attribute__ ((__nothrow__)); > >extern float tanhf (float __x) __attribute__ ((__nothrow__)); extern float __tanhf (float __x) __attribute__ ((__nothrow__)); > ># 87 "/usr/include/bits/mathcalls.h" 3 4 > > >extern float acoshf (float __x) __attribute__ ((__nothrow__)); extern float __acoshf (float __x) __attribute__ ((__nothrow__)); > >extern float asinhf (float __x) __attribute__ ((__nothrow__)); extern float __asinhf (float __x) __attribute__ ((__nothrow__)); > >extern float atanhf (float __x) __attribute__ ((__nothrow__)); extern float __atanhf (float __x) __attribute__ ((__nothrow__)); > > > > > > > >extern float expf (float __x) __attribute__ ((__nothrow__)); extern float __expf (float __x) __attribute__ ((__nothrow__)); > > >extern float frexpf (float __x, int *__exponent) __attribute__ ((__nothrow__)); extern float __frexpf (float __x, int *__exponent) __attribute__ ((__nothrow__)); > > >extern float ldexpf (float __x, int __exponent) __attribute__ ((__nothrow__)); extern float __ldexpf (float __x, int __exponent) __attribute__ ((__nothrow__)); > > >extern float logf (float __x) __attribute__ ((__nothrow__)); extern float __logf (float __x) __attribute__ ((__nothrow__)); > > >extern float log10f (float __x) __attribute__ ((__nothrow__)); extern float __log10f (float __x) __attribute__ ((__nothrow__)); > > >extern float modff (float __x, float *__iptr) __attribute__ ((__nothrow__)); extern float __modff (float __x, float *__iptr) __attribute__ ((__nothrow__)); > ># 127 "/usr/include/bits/mathcalls.h" 3 4 > > >extern float expm1f (float __x) __attribute__ ((__nothrow__)); extern float __expm1f (float __x) __attribute__ ((__nothrow__)); > > >extern float log1pf (float __x) __attribute__ ((__nothrow__)); extern float __log1pf (float __x) __attribute__ ((__nothrow__)); > > >extern float logbf (float __x) __attribute__ ((__nothrow__)); extern float __logbf (float __x) __attribute__ ((__nothrow__)); > ># 152 "/usr/include/bits/mathcalls.h" 3 4 > > >extern float powf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __powf (float __x, float __y) __attribute__ ((__nothrow__)); > > >extern float sqrtf (float __x) __attribute__ ((__nothrow__)); extern float __sqrtf (float __x) __attribute__ ((__nothrow__)); > > > > > >extern float hypotf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __hypotf (float __x, float __y) __attribute__ ((__nothrow__)); > > > > > > >extern float cbrtf (float __x) __attribute__ ((__nothrow__)); extern float __cbrtf (float __x) __attribute__ ((__nothrow__)); > > > > > > > > >extern float ceilf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __ceilf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern float fabsf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __fabsf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern float floorf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __floorf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern float fmodf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fmodf (float __x, float __y) __attribute__ ((__nothrow__)); > > > > >extern int __isinff (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern int __finitef (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > > >extern int isinff (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern int finitef (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern float dremf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __dremf (float __x, float __y) __attribute__ ((__nothrow__)); > > > >extern float significandf (float __x) __attribute__ ((__nothrow__)); extern float __significandf (float __x) __attribute__ ((__nothrow__)); > > > > > >extern float copysignf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > ># 231 "/usr/include/bits/mathcalls.h" 3 4 >extern int __isnanf (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > >extern int isnanf (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern float j0f (float) __attribute__ ((__nothrow__)); extern float __j0f (float) __attribute__ ((__nothrow__)); >extern float j1f (float) __attribute__ ((__nothrow__)); extern float __j1f (float) __attribute__ ((__nothrow__)); >extern float jnf (int, float) __attribute__ ((__nothrow__)); extern float __jnf (int, float) __attribute__ ((__nothrow__)); >extern float y0f (float) __attribute__ ((__nothrow__)); extern float __y0f (float) __attribute__ ((__nothrow__)); >extern float y1f (float) __attribute__ ((__nothrow__)); extern float __y1f (float) __attribute__ ((__nothrow__)); >extern float ynf (int, float) __attribute__ ((__nothrow__)); extern float __ynf (int, float) __attribute__ ((__nothrow__)); > > > > > > >extern float erff (float) __attribute__ ((__nothrow__)); extern float __erff (float) __attribute__ ((__nothrow__)); >extern float erfcf (float) __attribute__ ((__nothrow__)); extern float __erfcf (float) __attribute__ ((__nothrow__)); >extern float lgammaf (float) __attribute__ ((__nothrow__)); extern float __lgammaf (float) __attribute__ ((__nothrow__)); > ># 265 "/usr/include/bits/mathcalls.h" 3 4 >extern float gammaf (float) __attribute__ ((__nothrow__)); extern float __gammaf (float) __attribute__ ((__nothrow__)); > > > > > > >extern float lgammaf_r (float, int *__signgamp) __attribute__ ((__nothrow__)); extern float __lgammaf_r (float, int *__signgamp) __attribute__ ((__nothrow__)); > > > > > > > >extern float rintf (float __x) __attribute__ ((__nothrow__)); extern float __rintf (float __x) __attribute__ ((__nothrow__)); > > >extern float nextafterf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __nextafterf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > > >extern float remainderf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __remainderf (float __x, float __y) __attribute__ ((__nothrow__)); > > > >extern float scalbnf (float __x, int __n) __attribute__ ((__nothrow__)); extern float __scalbnf (float __x, int __n) __attribute__ ((__nothrow__)); > > > >extern int ilogbf (float __x) __attribute__ ((__nothrow__)); extern int __ilogbf (float __x) __attribute__ ((__nothrow__)); ># 359 "/usr/include/bits/mathcalls.h" 3 4 > > > > > >extern float scalbf (float __x, float __n) __attribute__ ((__nothrow__)); extern float __scalbf (float __x, float __n) __attribute__ ((__nothrow__)); ># 95 "/usr/include/math.h" 2 3 4 ># 141 "/usr/include/math.h" 3 4 ># 1 "/usr/include/bits/mathcalls.h" 1 3 4 ># 53 "/usr/include/bits/mathcalls.h" 3 4 > > >extern long double acosl (long double __x) __attribute__ ((__nothrow__)); extern long double __acosl (long double __x) __attribute__ ((__nothrow__)); > >extern long double asinl (long double __x) __attribute__ ((__nothrow__)); extern long double __asinl (long double __x) __attribute__ ((__nothrow__)); > >extern long double atanl (long double __x) __attribute__ ((__nothrow__)); extern long double __atanl (long double __x) __attribute__ ((__nothrow__)); > >extern long double atan2l (long double __y, long double __x) __attribute__ ((__nothrow__)); extern long double __atan2l (long double __y, long double __x) __attribute__ ((__nothrow__)); > > >extern long double cosl (long double __x) __attribute__ ((__nothrow__)); extern long double __cosl (long double __x) __attribute__ ((__nothrow__)); > >extern long double sinl (long double __x) __attribute__ ((__nothrow__)); extern long double __sinl (long double __x) __attribute__ ((__nothrow__)); > >extern long double tanl (long double __x) __attribute__ ((__nothrow__)); extern long double __tanl (long double __x) __attribute__ ((__nothrow__)); > > > > >extern long double coshl (long double __x) __attribute__ ((__nothrow__)); extern long double __coshl (long double __x) __attribute__ ((__nothrow__)); > >extern long double sinhl (long double __x) __attribute__ ((__nothrow__)); extern long double __sinhl (long double __x) __attribute__ ((__nothrow__)); > >extern long double tanhl (long double __x) __attribute__ ((__nothrow__)); extern long double __tanhl (long double __x) __attribute__ ((__nothrow__)); > ># 87 "/usr/include/bits/mathcalls.h" 3 4 > > >extern long double acoshl (long double __x) __attribute__ ((__nothrow__)); extern long double __acoshl (long double __x) __attribute__ ((__nothrow__)); > >extern long double asinhl (long double __x) __attribute__ ((__nothrow__)); extern long double __asinhl (long double __x) __attribute__ ((__nothrow__)); > >extern long double atanhl (long double __x) __attribute__ ((__nothrow__)); extern long double __atanhl (long double __x) __attribute__ ((__nothrow__)); > > > > > > > >extern long double expl (long double __x) __attribute__ ((__nothrow__)); extern long double __expl (long double __x) __attribute__ ((__nothrow__)); > > >extern long double frexpl (long double __x, int *__exponent) __attribute__ ((__nothrow__)); extern long double __frexpl (long double __x, int *__exponent) __attribute__ ((__nothrow__)); > > >extern long double ldexpl (long double __x, int __exponent) __attribute__ ((__nothrow__)); extern long double __ldexpl (long double __x, int __exponent) __attribute__ ((__nothrow__)); > > >extern long double logl (long double __x) __attribute__ ((__nothrow__)); extern long double __logl (long double __x) __attribute__ ((__nothrow__)); > > >extern long double log10l (long double __x) __attribute__ ((__nothrow__)); extern long double __log10l (long double __x) __attribute__ ((__nothrow__)); > > >extern long double modfl (long double __x, long double *__iptr) __attribute__ ((__nothrow__)); extern long double __modfl (long double __x, long double *__iptr) __attribute__ ((__nothrow__)); > ># 127 "/usr/include/bits/mathcalls.h" 3 4 > > >extern long double expm1l (long double __x) __attribute__ ((__nothrow__)); extern long double __expm1l (long double __x) __attribute__ ((__nothrow__)); > > >extern long double log1pl (long double __x) __attribute__ ((__nothrow__)); extern long double __log1pl (long double __x) __attribute__ ((__nothrow__)); > > >extern long double logbl (long double __x) __attribute__ ((__nothrow__)); extern long double __logbl (long double __x) __attribute__ ((__nothrow__)); > ># 152 "/usr/include/bits/mathcalls.h" 3 4 > > >extern long double powl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __powl (long double __x, long double __y) __attribute__ ((__nothrow__)); > > >extern long double sqrtl (long double __x) __attribute__ ((__nothrow__)); extern long double __sqrtl (long double __x) __attribute__ ((__nothrow__)); > > > > > >extern long double hypotl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __hypotl (long double __x, long double __y) __attribute__ ((__nothrow__)); > > > > > > >extern long double cbrtl (long double __x) __attribute__ ((__nothrow__)); extern long double __cbrtl (long double __x) __attribute__ ((__nothrow__)); > > > > > > > > >extern long double ceill (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __ceill (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern long double fabsl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __fabsl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern long double floorl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __floorl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern long double fmodl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __fmodl (long double __x, long double __y) __attribute__ ((__nothrow__)); > > > > >extern int __isinfl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern int __finitel (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > > >extern int isinfl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern int finitel (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern long double dreml (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __dreml (long double __x, long double __y) __attribute__ ((__nothrow__)); > > > >extern long double significandl (long double __x) __attribute__ ((__nothrow__)); extern long double __significandl (long double __x) __attribute__ ((__nothrow__)); > > > > > >extern long double copysignl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __copysignl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > ># 231 "/usr/include/bits/mathcalls.h" 3 4 >extern int __isnanl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > >extern int isnanl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern long double j0l (long double) __attribute__ ((__nothrow__)); extern long double __j0l (long double) __attribute__ ((__nothrow__)); >extern long double j1l (long double) __attribute__ ((__nothrow__)); extern long double __j1l (long double) __attribute__ ((__nothrow__)); >extern long double jnl (int, long double) __attribute__ ((__nothrow__)); extern long double __jnl (int, long double) __attribute__ ((__nothrow__)); >extern long double y0l (long double) __attribute__ ((__nothrow__)); extern long double __y0l (long double) __attribute__ ((__nothrow__)); >extern long double y1l (long double) __attribute__ ((__nothrow__)); extern long double __y1l (long double) __attribute__ ((__nothrow__)); >extern long double ynl (int, long double) __attribute__ ((__nothrow__)); extern long double __ynl (int, long double) __attribute__ ((__nothrow__)); > > > > > > >extern long double erfl (long double) __attribute__ ((__nothrow__)); extern long double __erfl (long double) __attribute__ ((__nothrow__)); >extern long double erfcl (long double) __attribute__ ((__nothrow__)); extern long double __erfcl (long double) __attribute__ ((__nothrow__)); >extern long double lgammal (long double) __attribute__ ((__nothrow__)); extern long double __lgammal (long double) __attribute__ ((__nothrow__)); > ># 265 "/usr/include/bits/mathcalls.h" 3 4 >extern long double gammal (long double) __attribute__ ((__nothrow__)); extern long double __gammal (long double) __attribute__ ((__nothrow__)); > > > > > > >extern long double lgammal_r (long double, int *__signgamp) __attribute__ ((__nothrow__)); extern long double __lgammal_r (long double, int *__signgamp) __attribute__ ((__nothrow__)); > > > > > > > >extern long double rintl (long double __x) __attribute__ ((__nothrow__)); extern long double __rintl (long double __x) __attribute__ ((__nothrow__)); > > >extern long double nextafterl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __nextafterl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > > >extern long double remainderl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __remainderl (long double __x, long double __y) __attribute__ ((__nothrow__)); > > > >extern long double scalbnl (long double __x, int __n) __attribute__ ((__nothrow__)); extern long double __scalbnl (long double __x, int __n) __attribute__ ((__nothrow__)); > > > >extern int ilogbl (long double __x) __attribute__ ((__nothrow__)); extern int __ilogbl (long double __x) __attribute__ ((__nothrow__)); ># 359 "/usr/include/bits/mathcalls.h" 3 4 > > > > > >extern long double scalbl (long double __x, long double __n) __attribute__ ((__nothrow__)); extern long double __scalbl (long double __x, long double __n) __attribute__ ((__nothrow__)); ># 142 "/usr/include/math.h" 2 3 4 ># 157 "/usr/include/math.h" 3 4 >extern int signgam; ># 284 "/usr/include/math.h" 3 4 >typedef enum >{ > _IEEE_ = -1, > _SVID_, > _XOPEN_, > _POSIX_, > _ISOC_ >} _LIB_VERSION_TYPE; > > > > >extern _LIB_VERSION_TYPE _LIB_VERSION; ># 309 "/usr/include/math.h" 3 4 >struct exception > > { > int type; > char *name; > double arg1; > double arg2; > double retval; > }; > > > > >extern int matherr (struct exception *__exc); ># 409 "/usr/include/math.h" 3 4 ># 1 "/usr/include/bits/mathinline.h" 1 3 4 ># 291 "/usr/include/bits/mathinline.h" 3 4 >extern __inline double __sgn (double) __attribute__ ((__nothrow__)); extern __inline double __attribute__ ((__nothrow__)) __sgn (double __x) { return __x == 0.0 ? 0.0 : (__x > 0.0 ? 1.0 : -1.0); } extern __inline float __sgnf (float) __attribute__ ((__nothrow__)); extern __inline float __attribute__ ((__nothrow__)) __sgnf (float __x) { return __x == 0.0 ? 0.0 : (__x > 0.0 ? 1.0 : -1.0); } extern __inline long double __sgnl (long double) __attribute__ ((__nothrow__)); extern __inline long double __attribute__ ((__nothrow__)) __sgnl (long double __x) { return __x == 0.0 ? 0.0 : (__x > 0.0 ? 1.0 : -1.0); } ># 433 "/usr/include/bits/mathinline.h" 3 4 >extern __inline long double __attribute__ ((__nothrow__)) __atan2l (long double __y, long double __x) { return __builtin_atan2l (__y, __x); } ># 473 "/usr/include/bits/mathinline.h" 3 4 >extern __inline double __attribute__ ((__nothrow__)) fabs (double __x) { return __builtin_fabs (__x); } > >extern __inline float __attribute__ ((__nothrow__)) fabsf (float __x) { return __builtin_fabsf (__x); } >extern __inline long double __attribute__ ((__nothrow__)) fabsl (long double __x) { return __builtin_fabsl (__x); } > >extern __inline long double __attribute__ ((__nothrow__)) __fabsl (long double __x) { return __builtin_fabsl (__x); } ># 506 "/usr/include/bits/mathinline.h" 3 4 >extern __inline long double __sgn1l (long double) __attribute__ ((__nothrow__)); extern __inline long double __attribute__ ((__nothrow__)) __sgn1l (long double __x) { __extension__ union { long double __xld; unsigned int __xi[3]; } __n = { __xld: __x }; __n.__xi[2] = (__n.__xi[2] & 0x8000) | 0x3fff; __n.__xi[1] = 0x80000000; __n.__xi[0] = 0; return __n.__xld; } ># 530 "/usr/include/bits/mathinline.h" 3 4 >extern __inline double __attribute__ ((__nothrow__)) floor (double __x) { register long double __value; __volatile unsigned short int __cw; __volatile unsigned short int __cwtmp; __asm __volatile ("fnstcw %0" : "=m" (__cw)); __cwtmp = (__cw & 0xf3ff) | 0x0400; __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); __asm __volatile ("fldcw %0" : : "m" (__cw)); return __value; } extern __inline float __attribute__ ((__nothrow__)) floorf (float __x) { register long double __value; __volatile unsigned short int __cw; __volatile unsigned short int __cwtmp; __asm __volatile ("fnstcw %0" : "=m" (__cw)); __cwtmp = (__cw & 0xf3ff) | 0x0400; __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); __asm __volatile ("fldcw %0" : : "m" (__cw)); return __value; } extern __inline long double __attribute__ ((__nothrow__)) floorl (long double __x) { register long double __value; __volatile unsigned short int __cw; __volatile unsigned short int __cwtmp; __asm __volatile ("fnstcw %0" : "=m" (__cw)); __cwtmp = (__cw & 0xf3ff) | 0x0400; __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); __asm __volatile ("fldcw %0" : : "m" (__cw)); return __value; } ># 541 "/usr/include/bits/mathinline.h" 3 4 >extern __inline double __attribute__ ((__nothrow__)) ceil (double __x) { register long double __value; __volatile unsigned short int __cw; __volatile unsigned short int __cwtmp; __asm __volatile ("fnstcw %0" : "=m" (__cw)); __cwtmp = (__cw & 0xf3ff) | 0x0800; __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); __asm __volatile ("fldcw %0" : : "m" (__cw)); return __value; } extern __inline float __attribute__ ((__nothrow__)) ceilf (float __x) { register long double __value; __volatile unsigned short int __cw; __volatile unsigned short int __cwtmp; __asm __volatile ("fnstcw %0" : "=m" (__cw)); __cwtmp = (__cw & 0xf3ff) | 0x0800; __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); __asm __volatile ("fldcw %0" : : "m" (__cw)); return __value; } extern __inline long double __attribute__ ((__nothrow__)) ceill (long double __x) { register long double __value; __volatile unsigned short int __cw; __volatile unsigned short int __cwtmp; __asm __volatile ("fnstcw %0" : "=m" (__cw)); __cwtmp = (__cw & 0xf3ff) | 0x0800; __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); __asm __volatile ("fldcw %0" : : "m" (__cw)); return __value; } ># 713 "/usr/include/bits/mathinline.h" 3 4 >extern __inline int >__attribute__ ((__nothrow__)) __finite (double __x) >{ > return (__extension__ > (((((union { double __d; int __i[2]; }) {__d: __x}).__i[1] > | 0x800fffffu) + 1) >> 31)); >} ># 410 "/usr/include/math.h" 2 3 4 ># 465 "/usr/include/math.h" 3 4 > ># 29 "gpsdraw.c" 2 ># 1 "/usr/include/time.h" 1 3 4 ># 31 "/usr/include/time.h" 3 4 > > > > > > > > ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/stddef.h" 1 3 4 ># 40 "/usr/include/time.h" 2 3 4 > > > ># 1 "/usr/include/bits/time.h" 1 3 4 ># 44 "/usr/include/time.h" 2 3 4 ># 59 "/usr/include/time.h" 3 4 > > >typedef __clock_t clock_t; > > > ># 75 "/usr/include/time.h" 3 4 > > >typedef __time_t time_t; > > > ># 93 "/usr/include/time.h" 3 4 >typedef __clockid_t clockid_t; ># 105 "/usr/include/time.h" 3 4 >typedef __timer_t timer_t; ># 121 "/usr/include/time.h" 3 4 >struct timespec > { > __time_t tv_sec; > long int tv_nsec; > }; > > > > > > > > >struct tm >{ > int tm_sec; > int tm_min; > int tm_hour; > int tm_mday; > int tm_mon; > int tm_year; > int tm_wday; > int tm_yday; > int tm_isdst; > > > long int tm_gmtoff; > __const char *tm_zone; > > > > >}; > > > > > > > > >struct itimerspec > { > struct timespec it_interval; > struct timespec it_value; > }; > > >struct sigevent; > > > > > >typedef __pid_t pid_t; > > > > > > > > >extern clock_t clock (void) __attribute__ ((__nothrow__)); > > >extern time_t time (time_t *__timer) __attribute__ ((__nothrow__)); > > >extern double difftime (time_t __time1, time_t __time0) > __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__)); > > > > > >extern size_t strftime (char *__restrict __s, size_t __maxsize, > __const char *__restrict __format, > __const struct tm *__restrict __tp) __attribute__ ((__nothrow__)); > ># 229 "/usr/include/time.h" 3 4 > > > >extern struct tm *gmtime (__const time_t *__timer) __attribute__ ((__nothrow__)); > > > >extern struct tm *localtime (__const time_t *__timer) __attribute__ ((__nothrow__)); > > > > > >extern struct tm *gmtime_r (__const time_t *__restrict __timer, > struct tm *__restrict __tp) __attribute__ ((__nothrow__)); > > > >extern struct tm *localtime_r (__const time_t *__restrict __timer, > struct tm *__restrict __tp) __attribute__ ((__nothrow__)); > > > > > >extern char *asctime (__const struct tm *__tp) __attribute__ ((__nothrow__)); > > >extern char *ctime (__const time_t *__timer) __attribute__ ((__nothrow__)); > > > > > > > >extern char *asctime_r (__const struct tm *__restrict __tp, > char *__restrict __buf) __attribute__ ((__nothrow__)); > > >extern char *ctime_r (__const time_t *__restrict __timer, > char *__restrict __buf) __attribute__ ((__nothrow__)); > > > > >extern char *__tzname[2]; >extern int __daylight; >extern long int __timezone; > > > > >extern char *tzname[2]; > > > >extern void tzset (void) __attribute__ ((__nothrow__)); > > > >extern int daylight; >extern long int timezone; > > > > > >extern int stime (__const time_t *__when) __attribute__ ((__nothrow__)); ># 312 "/usr/include/time.h" 3 4 >extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__)); > > >extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__)); > > >extern int dysize (int __year) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); ># 327 "/usr/include/time.h" 3 4 >extern int nanosleep (__const struct timespec *__requested_time, > struct timespec *__remaining); > > > >extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__)); > > >extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__)); > > >extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp) > __attribute__ ((__nothrow__)); > > > > > > >extern int clock_nanosleep (clockid_t __clock_id, int __flags, > __const struct timespec *__req, > struct timespec *__rem); > > >extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __attribute__ ((__nothrow__)); > > > > >extern int timer_create (clockid_t __clock_id, > struct sigevent *__restrict __evp, > timer_t *__restrict __timerid) __attribute__ ((__nothrow__)); > > >extern int timer_delete (timer_t __timerid) __attribute__ ((__nothrow__)); > > >extern int timer_settime (timer_t __timerid, int __flags, > __const struct itimerspec *__restrict __value, > struct itimerspec *__restrict __ovalue) __attribute__ ((__nothrow__)); > > >extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) > __attribute__ ((__nothrow__)); > > >extern int timer_getoverrun (timer_t __timerid) __attribute__ ((__nothrow__)); ># 416 "/usr/include/time.h" 3 4 > ># 30 "gpsdraw.c" 2 ># 1 "/usr/include/sys/types.h" 1 3 4 ># 29 "/usr/include/sys/types.h" 3 4 > > > > > > >typedef __u_char u_char; >typedef __u_short u_short; >typedef __u_int u_int; >typedef __u_long u_long; >typedef __quad_t quad_t; >typedef __u_quad_t u_quad_t; >typedef __fsid_t fsid_t; > > > > >typedef __loff_t loff_t; > > > >typedef __ino_t ino_t; ># 62 "/usr/include/sys/types.h" 3 4 >typedef __dev_t dev_t; > > > > >typedef __gid_t gid_t; > > > > >typedef __mode_t mode_t; > > > > >typedef __nlink_t nlink_t; > > > > >typedef __uid_t uid_t; > > > > > >typedef __off_t off_t; ># 105 "/usr/include/sys/types.h" 3 4 >typedef __id_t id_t; > > > > >typedef __ssize_t ssize_t; > > > > > >typedef __daddr_t daddr_t; >typedef __caddr_t caddr_t; > > > > > >typedef __key_t key_t; ># 147 "/usr/include/sys/types.h" 3 4 ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/stddef.h" 1 3 4 ># 148 "/usr/include/sys/types.h" 2 3 4 > > > >typedef unsigned long int ulong; >typedef unsigned short int ushort; >typedef unsigned int uint; ># 195 "/usr/include/sys/types.h" 3 4 >typedef int int8_t __attribute__ ((__mode__ (__QI__))); >typedef int int16_t __attribute__ ((__mode__ (__HI__))); >typedef int int32_t __attribute__ ((__mode__ (__SI__))); >typedef int int64_t __attribute__ ((__mode__ (__DI__))); > > >typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); >typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); >typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); >typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); > >typedef int register_t __attribute__ ((__mode__ (__word__))); ># 217 "/usr/include/sys/types.h" 3 4 ># 1 "/usr/include/endian.h" 1 3 4 ># 37 "/usr/include/endian.h" 3 4 ># 1 "/usr/include/bits/endian.h" 1 3 4 ># 38 "/usr/include/endian.h" 2 3 4 ># 218 "/usr/include/sys/types.h" 2 3 4 > > ># 1 "/usr/include/sys/select.h" 1 3 4 ># 31 "/usr/include/sys/select.h" 3 4 ># 1 "/usr/include/bits/select.h" 1 3 4 ># 32 "/usr/include/sys/select.h" 2 3 4 > > ># 1 "/usr/include/bits/sigset.h" 1 3 4 ># 23 "/usr/include/bits/sigset.h" 3 4 >typedef int __sig_atomic_t; > > > > >typedef struct > { > unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; > } __sigset_t; ># 35 "/usr/include/sys/select.h" 2 3 4 > > > >typedef __sigset_t sigset_t; > > > > > > > ># 1 "/usr/include/bits/time.h" 1 3 4 ># 69 "/usr/include/bits/time.h" 3 4 >struct timeval > { > __time_t tv_sec; > __suseconds_t tv_usec; > }; ># 47 "/usr/include/sys/select.h" 2 3 4 > > >typedef __suseconds_t suseconds_t; > > > > > >typedef long int __fd_mask; ># 67 "/usr/include/sys/select.h" 3 4 >typedef struct > { > > > > > > > __fd_mask __fds_bits[1024 / (8 * sizeof (__fd_mask))]; > > > } fd_set; > > > > > > >typedef __fd_mask fd_mask; ># 99 "/usr/include/sys/select.h" 3 4 > ># 109 "/usr/include/sys/select.h" 3 4 >extern int select (int __nfds, fd_set *__restrict __readfds, > fd_set *__restrict __writefds, > fd_set *__restrict __exceptfds, > struct timeval *__restrict __timeout); ># 121 "/usr/include/sys/select.h" 3 4 >extern int pselect (int __nfds, fd_set *__restrict __readfds, > fd_set *__restrict __writefds, > fd_set *__restrict __exceptfds, > const struct timespec *__restrict __timeout, > const __sigset_t *__restrict __sigmask); > > > ># 221 "/usr/include/sys/types.h" 2 3 4 > > ># 1 "/usr/include/sys/sysmacros.h" 1 3 4 ># 29 "/usr/include/sys/sysmacros.h" 3 4 >__extension__ >extern __inline unsigned int gnu_dev_major (unsigned long long int __dev) > __attribute__ ((__nothrow__)); >__extension__ >extern __inline unsigned int gnu_dev_minor (unsigned long long int __dev) > __attribute__ ((__nothrow__)); >__extension__ >extern __inline unsigned long long int gnu_dev_makedev (unsigned int __major, > unsigned int __minor) > __attribute__ ((__nothrow__)); > > >__extension__ extern __inline unsigned int >__attribute__ ((__nothrow__)) gnu_dev_major (unsigned long long int __dev) >{ > return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff); >} > >__extension__ extern __inline unsigned int >__attribute__ ((__nothrow__)) gnu_dev_minor (unsigned long long int __dev) >{ > return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff); >} > >__extension__ extern __inline unsigned long long int >__attribute__ ((__nothrow__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor) >{ > return ((__minor & 0xff) | ((__major & 0xfff) << 8) > | (((unsigned long long int) (__minor & ~0xff)) << 12) > | (((unsigned long long int) (__major & ~0xfff)) << 32)); >} ># 224 "/usr/include/sys/types.h" 2 3 4 ># 235 "/usr/include/sys/types.h" 3 4 >typedef __blkcnt_t blkcnt_t; > > > >typedef __fsblkcnt_t fsblkcnt_t; > > > >typedef __fsfilcnt_t fsfilcnt_t; ># 270 "/usr/include/sys/types.h" 3 4 ># 1 "/usr/include/bits/pthreadtypes.h" 1 3 4 ># 36 "/usr/include/bits/pthreadtypes.h" 3 4 >typedef unsigned long int pthread_t; > > >typedef union >{ > char __size[36]; > long int __align; >} pthread_attr_t; > > >typedef struct __pthread_internal_slist >{ > struct __pthread_internal_slist *__next; >} __pthread_slist_t; > > > > >typedef union >{ > struct __pthread_mutex_s > { > int __lock; > unsigned int __count; > int __owner; > > > int __kind; > unsigned int __nusers; > __extension__ union > { > int __spins; > __pthread_slist_t __list; > }; > } __data; > char __size[24]; > long int __align; >} pthread_mutex_t; > >typedef union >{ > char __size[4]; > long int __align; >} pthread_mutexattr_t; > > > > >typedef union >{ > struct > { > int __lock; > unsigned int __futex; > __extension__ unsigned long long int __total_seq; > __extension__ unsigned long long int __wakeup_seq; > __extension__ unsigned long long int __woken_seq; > void *__mutex; > unsigned int __nwaiters; > unsigned int __broadcast_seq; > } __data; > char __size[48]; > __extension__ long long int __align; >} pthread_cond_t; > >typedef union >{ > char __size[4]; > long int __align; >} pthread_condattr_t; > > > >typedef unsigned int pthread_key_t; > > > >typedef int pthread_once_t; > > > > > >typedef union >{ > struct > { > int __lock; > unsigned int __nr_readers; > unsigned int __readers_wakeup; > unsigned int __writer_wakeup; > unsigned int __nr_readers_queued; > unsigned int __nr_writers_queued; > > > unsigned int __flags; > int __writer; > } __data; > char __size[32]; > long int __align; >} pthread_rwlock_t; > >typedef union >{ > char __size[8]; > long int __align; >} pthread_rwlockattr_t; > > > > > >typedef volatile int pthread_spinlock_t; > > > > >typedef union >{ > char __size[20]; > long int __align; >} pthread_barrier_t; > >typedef union >{ > char __size[4]; > int __align; >} pthread_barrierattr_t; ># 271 "/usr/include/sys/types.h" 2 3 4 > > > ># 31 "gpsdraw.c" 2 ># 1 "/usr/include/sys/wait.h" 1 3 4 ># 29 "/usr/include/sys/wait.h" 3 4 > > ># 1 "/usr/include/signal.h" 1 3 4 ># 31 "/usr/include/signal.h" 3 4 > > ># 1 "/usr/include/bits/sigset.h" 1 3 4 ># 103 "/usr/include/bits/sigset.h" 3 4 >extern int __sigismember (__const __sigset_t *, int); >extern int __sigaddset (__sigset_t *, int); >extern int __sigdelset (__sigset_t *, int); ># 117 "/usr/include/bits/sigset.h" 3 4 >extern __inline int __sigismember (__const __sigset_t *__set, int __sig) { unsigned long int __mask = (((unsigned long int) 1) << (((__sig) - 1) % (8 * sizeof (unsigned long int)))); unsigned long int __word = (((__sig) - 1) / (8 * sizeof (unsigned long int))); return (__set->__val[__word] & __mask) ? 1 : 0; } >extern __inline int __sigaddset ( __sigset_t *__set, int __sig) { unsigned long int __mask = (((unsigned long int) 1) << (((__sig) - 1) % (8 * sizeof (unsigned long int)))); unsigned long int __word = (((__sig) - 1) / (8 * sizeof (unsigned long int))); return ((__set->__val[__word] |= __mask), 0); } >extern __inline int __sigdelset ( __sigset_t *__set, int __sig) { unsigned long int __mask = (((unsigned long int) 1) << (((__sig) - 1) % (8 * sizeof (unsigned long int)))); unsigned long int __word = (((__sig) - 1) / (8 * sizeof (unsigned long int))); return ((__set->__val[__word] &= ~__mask), 0); } ># 34 "/usr/include/signal.h" 2 3 4 > > > > > > > >typedef __sig_atomic_t sig_atomic_t; > ># 58 "/usr/include/signal.h" 3 4 ># 1 "/usr/include/bits/signum.h" 1 3 4 ># 59 "/usr/include/signal.h" 2 3 4 ># 75 "/usr/include/signal.h" 3 4 >typedef void (*__sighandler_t) (int); > > > > >extern __sighandler_t __sysv_signal (int __sig, __sighandler_t __handler) > __attribute__ ((__nothrow__)); ># 90 "/usr/include/signal.h" 3 4 > > >extern __sighandler_t signal (int __sig, __sighandler_t __handler) > __attribute__ ((__nothrow__)); ># 104 "/usr/include/signal.h" 3 4 > ># 117 "/usr/include/signal.h" 3 4 >extern int kill (__pid_t __pid, int __sig) __attribute__ ((__nothrow__)); > > > > > > >extern int killpg (__pid_t __pgrp, int __sig) __attribute__ ((__nothrow__)); > > > > >extern int raise (int __sig) __attribute__ ((__nothrow__)); > > > > >extern __sighandler_t ssignal (int __sig, __sighandler_t __handler) > __attribute__ ((__nothrow__)); >extern int gsignal (int __sig) __attribute__ ((__nothrow__)); > > > > >extern void psignal (int __sig, __const char *__s); ># 153 "/usr/include/signal.h" 3 4 >extern int __sigpause (int __sig_or_mask, int __is_sig); ># 181 "/usr/include/signal.h" 3 4 >extern int sigblock (int __mask) __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__)); > > >extern int sigsetmask (int __mask) __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__)); > > >extern int siggetmask (void) __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__)); ># 201 "/usr/include/signal.h" 3 4 >typedef __sighandler_t sig_t; ># 212 "/usr/include/signal.h" 3 4 ># 1 "/usr/include/bits/siginfo.h" 1 3 4 ># 25 "/usr/include/bits/siginfo.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 26 "/usr/include/bits/siginfo.h" 2 3 4 > > > > > > > >typedef union sigval > { > int sival_int; > void *sival_ptr; > } sigval_t; ># 51 "/usr/include/bits/siginfo.h" 3 4 >typedef struct siginfo > { > int si_signo; > int si_errno; > > int si_code; > > union > { > int _pad[((128 / sizeof (int)) - 3)]; > > > struct > { > __pid_t si_pid; > __uid_t si_uid; > } _kill; > > > struct > { > int si_tid; > int si_overrun; > sigval_t si_sigval; > } _timer; > > > struct > { > __pid_t si_pid; > __uid_t si_uid; > sigval_t si_sigval; > } _rt; > > > struct > { > __pid_t si_pid; > __uid_t si_uid; > int si_status; > __clock_t si_utime; > __clock_t si_stime; > } _sigchld; > > > struct > { > void *si_addr; > } _sigfault; > > > struct > { > long int si_band; > int si_fd; > } _sigpoll; > } _sifields; > } siginfo_t; ># 129 "/usr/include/bits/siginfo.h" 3 4 >enum >{ > SI_ASYNCNL = -60, > > SI_TKILL = -6, > > SI_SIGIO, > > SI_ASYNCIO, > > SI_MESGQ, > > SI_TIMER, > > SI_QUEUE, > > SI_USER, > > SI_KERNEL = 0x80 > >}; > > > >enum >{ > ILL_ILLOPC = 1, > > ILL_ILLOPN, > > ILL_ILLADR, > > ILL_ILLTRP, > > ILL_PRVOPC, > > ILL_PRVREG, > > ILL_COPROC, > > ILL_BADSTK > >}; > > >enum >{ > FPE_INTDIV = 1, > > FPE_INTOVF, > > FPE_FLTDIV, > > FPE_FLTOVF, > > FPE_FLTUND, > > FPE_FLTRES, > > FPE_FLTINV, > > FPE_FLTSUB > >}; > > >enum >{ > SEGV_MAPERR = 1, > > SEGV_ACCERR > >}; > > >enum >{ > BUS_ADRALN = 1, > > BUS_ADRERR, > > BUS_OBJERR > >}; > > >enum >{ > TRAP_BRKPT = 1, > > TRAP_TRACE > >}; > > >enum >{ > CLD_EXITED = 1, > > CLD_KILLED, > > CLD_DUMPED, > > CLD_TRAPPED, > > CLD_STOPPED, > > CLD_CONTINUED > >}; > > >enum >{ > POLL_IN = 1, > > POLL_OUT, > > POLL_MSG, > > POLL_ERR, > > POLL_PRI, > > POLL_HUP > >}; ># 273 "/usr/include/bits/siginfo.h" 3 4 >typedef struct sigevent > { > sigval_t sigev_value; > int sigev_signo; > int sigev_notify; > > union > { > int _pad[((64 / sizeof (int)) - 3)]; > > > > __pid_t _tid; > > struct > { > void (*_function) (sigval_t); > void *_attribute; > } _sigev_thread; > } _sigev_un; > } sigevent_t; > > > > > > >enum >{ > SIGEV_SIGNAL = 0, > > SIGEV_NONE, > > SIGEV_THREAD, > > > SIGEV_THREAD_ID = 4 > >}; ># 213 "/usr/include/signal.h" 2 3 4 > > > >extern int sigemptyset (sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int sigfillset (sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int sigaddset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int sigdelset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int sigismember (__const sigset_t *__set, int __signo) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 246 "/usr/include/signal.h" 3 4 ># 1 "/usr/include/bits/sigaction.h" 1 3 4 ># 25 "/usr/include/bits/sigaction.h" 3 4 >struct sigaction > { > > > union > { > > __sighandler_t sa_handler; > > void (*sa_sigaction) (int, siginfo_t *, void *); > } > __sigaction_handler; > > > > > > > > __sigset_t sa_mask; > > > int sa_flags; > > > void (*sa_restorer) (void); > }; ># 247 "/usr/include/signal.h" 2 3 4 > > >extern int sigprocmask (int __how, __const sigset_t *__restrict __set, > sigset_t *__restrict __oset) __attribute__ ((__nothrow__)); > > > > > > >extern int sigsuspend (__const sigset_t *__set) __attribute__ ((__nonnull__ (1))); > > >extern int sigaction (int __sig, __const struct sigaction *__restrict __act, > struct sigaction *__restrict __oact) __attribute__ ((__nothrow__)); > > >extern int sigpending (sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > > >extern int sigwait (__const sigset_t *__restrict __set, int *__restrict __sig) > __attribute__ ((__nonnull__ (1, 2))); > > > > > > >extern int sigwaitinfo (__const sigset_t *__restrict __set, > siginfo_t *__restrict __info) __attribute__ ((__nonnull__ (1))); > > > > > > >extern int sigtimedwait (__const sigset_t *__restrict __set, > siginfo_t *__restrict __info, > __const struct timespec *__restrict __timeout) > __attribute__ ((__nonnull__ (1))); > > > >extern int sigqueue (__pid_t __pid, int __sig, __const union sigval __val) > __attribute__ ((__nothrow__)); ># 304 "/usr/include/signal.h" 3 4 >extern __const char *__const _sys_siglist[65]; >extern __const char *__const sys_siglist[65]; > > >struct sigvec > { > __sighandler_t sv_handler; > int sv_mask; > > int sv_flags; > > }; ># 328 "/usr/include/signal.h" 3 4 >extern int sigvec (int __sig, __const struct sigvec *__vec, > struct sigvec *__ovec) __attribute__ ((__nothrow__)); > > > ># 1 "/usr/include/bits/sigcontext.h" 1 3 4 ># 28 "/usr/include/bits/sigcontext.h" 3 4 ># 1 "/usr/include/asm/sigcontext.h" 1 3 4 > > > ># 1 "/usr/include/linux/compiler.h" 1 3 4 ># 5 "/usr/include/asm/sigcontext.h" 2 3 4 ># 20 "/usr/include/asm/sigcontext.h" 3 4 >struct _fpreg { > unsigned short significand[4]; > unsigned short exponent; >}; > >struct _fpxreg { > unsigned short significand[4]; > unsigned short exponent; > unsigned short padding[3]; >}; > >struct _xmmreg { > unsigned long element[4]; >}; > >struct _fpstate { > > unsigned long cw; > unsigned long sw; > unsigned long tag; > unsigned long ipoff; > unsigned long cssel; > unsigned long dataoff; > unsigned long datasel; > struct _fpreg _st[8]; > unsigned short status; > unsigned short magic; > > > unsigned long _fxsr_env[6]; > unsigned long mxcsr; > unsigned long reserved; > struct _fpxreg _fxsr_st[8]; > struct _xmmreg _xmm[8]; > unsigned long padding[56]; >}; > > > >struct sigcontext { > unsigned short gs, __gsh; > unsigned short fs, __fsh; > unsigned short es, __esh; > unsigned short ds, __dsh; > unsigned long edi; > unsigned long esi; > unsigned long ebp; > unsigned long esp; > unsigned long ebx; > unsigned long edx; > unsigned long ecx; > unsigned long eax; > unsigned long trapno; > unsigned long err; > unsigned long eip; > unsigned short cs, __csh; > unsigned long eflags; > unsigned long esp_at_signal; > unsigned short ss, __ssh; > struct _fpstate * fpstate; > unsigned long oldmask; > unsigned long cr2; >}; ># 29 "/usr/include/bits/sigcontext.h" 2 3 4 ># 334 "/usr/include/signal.h" 2 3 4 > > >extern int sigreturn (struct sigcontext *__scp) __attribute__ ((__nothrow__)); ># 346 "/usr/include/signal.h" 3 4 >extern int siginterrupt (int __sig, int __interrupt) __attribute__ ((__nothrow__)); > ># 1 "/usr/include/bits/sigstack.h" 1 3 4 ># 26 "/usr/include/bits/sigstack.h" 3 4 >struct sigstack > { > void *ss_sp; > int ss_onstack; > }; > > > >enum >{ > SS_ONSTACK = 1, > > SS_DISABLE > >}; ># 50 "/usr/include/bits/sigstack.h" 3 4 >typedef struct sigaltstack > { > void *ss_sp; > int ss_flags; > size_t ss_size; > } stack_t; ># 349 "/usr/include/signal.h" 2 3 4 ># 357 "/usr/include/signal.h" 3 4 >extern int sigstack (struct sigstack *__ss, struct sigstack *__oss) > __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__)); > > > >extern int sigaltstack (__const struct sigaltstack *__restrict __ss, > struct sigaltstack *__restrict __oss) __attribute__ ((__nothrow__)); ># 387 "/usr/include/signal.h" 3 4 ># 1 "/usr/include/bits/sigthread.h" 1 3 4 ># 31 "/usr/include/bits/sigthread.h" 3 4 >extern int pthread_sigmask (int __how, > __const __sigset_t *__restrict __newmask, > __sigset_t *__restrict __oldmask)__attribute__ ((__nothrow__)); > > >extern int pthread_kill (pthread_t __threadid, int __signo) __attribute__ ((__nothrow__)); ># 388 "/usr/include/signal.h" 2 3 4 > > > > > > >extern int __libc_current_sigrtmin (void) __attribute__ ((__nothrow__)); > >extern int __libc_current_sigrtmax (void) __attribute__ ((__nothrow__)); > > > > ># 32 "/usr/include/sys/wait.h" 2 3 4 ># 1 "/usr/include/sys/resource.h" 1 3 4 ># 25 "/usr/include/sys/resource.h" 3 4 ># 1 "/usr/include/bits/resource.h" 1 3 4 ># 33 "/usr/include/bits/resource.h" 3 4 >enum __rlimit_resource >{ > > RLIMIT_CPU = 0, > > > > RLIMIT_FSIZE = 1, > > > > RLIMIT_DATA = 2, > > > > RLIMIT_STACK = 3, > > > > RLIMIT_CORE = 4, > > > > > > > __RLIMIT_RSS = 5, > > > > RLIMIT_NOFILE = 7, > __RLIMIT_OFILE = RLIMIT_NOFILE, > > > > > RLIMIT_AS = 9, > > > > __RLIMIT_NPROC = 6, > > > > __RLIMIT_MEMLOCK = 8, > > > > __RLIMIT_LOCKS = 10, > > > > __RLIMIT_SIGPENDING = 11, > > > > __RLIMIT_MSGQUEUE = 12, > > > > > > __RLIMIT_NICE = 13, > > > > > __RLIMIT_RTPRIO = 14, > > > __RLIMIT_NLIMITS = 15, > __RLIM_NLIMITS = __RLIMIT_NLIMITS > > >}; ># 127 "/usr/include/bits/resource.h" 3 4 >typedef __rlim_t rlim_t; > > > > > > > >struct rlimit > { > > rlim_t rlim_cur; > > rlim_t rlim_max; > }; ># 154 "/usr/include/bits/resource.h" 3 4 >enum __rusage_who >{ > > RUSAGE_SELF = 0, > > > > RUSAGE_CHILDREN = -1 > >}; > > ># 1 "/usr/include/bits/time.h" 1 3 4 ># 167 "/usr/include/bits/resource.h" 2 3 4 > > >struct rusage > { > > struct timeval ru_utime; > > struct timeval ru_stime; > > long int ru_maxrss; > > > long int ru_ixrss; > > long int ru_idrss; > > long int ru_isrss; > > > long int ru_minflt; > > long int ru_majflt; > > long int ru_nswap; > > > long int ru_inblock; > > long int ru_oublock; > > long int ru_msgsnd; > > long int ru_msgrcv; > > long int ru_nsignals; > > > > long int ru_nvcsw; > > > long int ru_nivcsw; > }; > > > > > > > >enum __priority_which >{ > PRIO_PROCESS = 0, > > PRIO_PGRP = 1, > > PRIO_USER = 2 > >}; ># 26 "/usr/include/sys/resource.h" 2 3 4 > > > > > > > ># 43 "/usr/include/sys/resource.h" 3 4 >typedef int __rlimit_resource_t; >typedef int __rusage_who_t; >typedef int __priority_which_t; > > > > > >extern int getrlimit (__rlimit_resource_t __resource, > struct rlimit *__rlimits) __attribute__ ((__nothrow__)); ># 70 "/usr/include/sys/resource.h" 3 4 >extern int setrlimit (__rlimit_resource_t __resource, > __const struct rlimit *__rlimits) __attribute__ ((__nothrow__)); ># 88 "/usr/include/sys/resource.h" 3 4 >extern int getrusage (__rusage_who_t __who, struct rusage *__usage) __attribute__ ((__nothrow__)); > > > > > >extern int getpriority (__priority_which_t __which, id_t __who) __attribute__ ((__nothrow__)); > > > >extern int setpriority (__priority_which_t __which, id_t __who, int __prio) > __attribute__ ((__nothrow__)); > > ># 33 "/usr/include/sys/wait.h" 2 3 4 > > > > > ># 1 "/usr/include/bits/waitflags.h" 1 3 4 ># 39 "/usr/include/sys/wait.h" 2 3 4 ># 63 "/usr/include/sys/wait.h" 3 4 >typedef union > { > union wait *__uptr; > int *__iptr; > } __WAIT_STATUS __attribute__ ((__transparent_union__)); ># 80 "/usr/include/sys/wait.h" 3 4 ># 1 "/usr/include/bits/waitstatus.h" 1 3 4 ># 67 "/usr/include/bits/waitstatus.h" 3 4 >union wait > { > int w_status; > struct > { > > unsigned int __w_termsig:7; > unsigned int __w_coredump:1; > unsigned int __w_retcode:8; > unsigned int:16; > > > > > > > > } __wait_terminated; > struct > { > > unsigned int __w_stopval:8; > unsigned int __w_stopsig:8; > unsigned int:16; > > > > > > > } __wait_stopped; > }; ># 81 "/usr/include/sys/wait.h" 2 3 4 ># 102 "/usr/include/sys/wait.h" 3 4 >typedef enum >{ > P_ALL, > P_PID, > P_PGID >} idtype_t; ># 116 "/usr/include/sys/wait.h" 3 4 >extern __pid_t wait (__WAIT_STATUS __stat_loc); ># 139 "/usr/include/sys/wait.h" 3 4 >extern __pid_t waitpid (__pid_t __pid, int *__stat_loc, int __options); > > > ># 1 "/usr/include/bits/siginfo.h" 1 3 4 ># 25 "/usr/include/bits/siginfo.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 26 "/usr/include/bits/siginfo.h" 2 3 4 ># 144 "/usr/include/sys/wait.h" 2 3 4 ># 155 "/usr/include/sys/wait.h" 3 4 >extern int waitid (idtype_t __idtype, __id_t __id, siginfo_t *__infop, > int __options); > > > > > >struct rusage; > > > > > > >extern __pid_t wait3 (__WAIT_STATUS __stat_loc, int __options, > struct rusage * __usage) __attribute__ ((__nothrow__)); > > > > > >struct rusage; > > >extern __pid_t wait4 (__pid_t __pid, __WAIT_STATUS __stat_loc, int __options, > struct rusage *__usage) __attribute__ ((__nothrow__)); > > > > ># 32 "gpsdraw.c" 2 ># 1 "/usr/include/unistd.h" 1 3 4 ># 28 "/usr/include/unistd.h" 3 4 > ># 171 "/usr/include/unistd.h" 3 4 ># 1 "/usr/include/bits/posix_opt.h" 1 3 4 ># 172 "/usr/include/unistd.h" 2 3 4 ># 195 "/usr/include/unistd.h" 3 4 ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/stddef.h" 1 3 4 ># 196 "/usr/include/unistd.h" 2 3 4 ># 224 "/usr/include/unistd.h" 3 4 >typedef __useconds_t useconds_t; ># 236 "/usr/include/unistd.h" 3 4 >typedef __intptr_t intptr_t; > > > > > > >typedef __socklen_t socklen_t; ># 256 "/usr/include/unistd.h" 3 4 >extern int access (__const char *__name, int __type) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 299 "/usr/include/unistd.h" 3 4 >extern __off_t lseek (int __fd, __off_t __offset, int __whence) __attribute__ ((__nothrow__)); ># 318 "/usr/include/unistd.h" 3 4 >extern int close (int __fd); > > > > > > >extern ssize_t read (int __fd, void *__buf, size_t __nbytes) ; > > > > > >extern ssize_t write (int __fd, __const void *__buf, size_t __n) ; ># 382 "/usr/include/unistd.h" 3 4 >extern int pipe (int __pipedes[2]) __attribute__ ((__nothrow__)) ; ># 391 "/usr/include/unistd.h" 3 4 >extern unsigned int alarm (unsigned int __seconds) __attribute__ ((__nothrow__)); ># 403 "/usr/include/unistd.h" 3 4 >extern unsigned int sleep (unsigned int __seconds); > > > > > > >extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval) > __attribute__ ((__nothrow__)); > > > > > > >extern int usleep (__useconds_t __useconds); ># 427 "/usr/include/unistd.h" 3 4 >extern int pause (void); > > > >extern int chown (__const char *__file, __uid_t __owner, __gid_t __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > >extern int fchown (int __fd, __uid_t __owner, __gid_t __group) __attribute__ ((__nothrow__)) ; > > > > >extern int lchown (__const char *__file, __uid_t __owner, __gid_t __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; ># 455 "/usr/include/unistd.h" 3 4 >extern int chdir (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > >extern int fchdir (int __fd) __attribute__ ((__nothrow__)) ; ># 469 "/usr/include/unistd.h" 3 4 >extern char *getcwd (char *__buf, size_t __size) __attribute__ ((__nothrow__)) ; ># 482 "/usr/include/unistd.h" 3 4 >extern char *getwd (char *__buf) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) ; > > > > >extern int dup (int __fd) __attribute__ ((__nothrow__)) ; > > >extern int dup2 (int __fd, int __fd2) __attribute__ ((__nothrow__)); > > >extern char **__environ; > > > > > > > >extern int execve (__const char *__path, char *__const __argv[], > char *__const __envp[]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 514 "/usr/include/unistd.h" 3 4 >extern int execv (__const char *__path, char *__const __argv[]) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern int execle (__const char *__path, __const char *__arg, ...) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern int execl (__const char *__path, __const char *__arg, ...) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern int execvp (__const char *__file, char *__const __argv[]) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > >extern int execlp (__const char *__file, __const char *__arg, ...) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > >extern int nice (int __inc) __attribute__ ((__nothrow__)) ; > > > > >extern void _exit (int __status) __attribute__ ((__noreturn__)); > > > > > ># 1 "/usr/include/bits/confname.h" 1 3 4 ># 26 "/usr/include/bits/confname.h" 3 4 >enum > { > _PC_LINK_MAX, > > _PC_MAX_CANON, > > _PC_MAX_INPUT, > > _PC_NAME_MAX, > > _PC_PATH_MAX, > > _PC_PIPE_BUF, > > _PC_CHOWN_RESTRICTED, > > _PC_NO_TRUNC, > > _PC_VDISABLE, > > _PC_SYNC_IO, > > _PC_ASYNC_IO, > > _PC_PRIO_IO, > > _PC_SOCK_MAXBUF, > > _PC_FILESIZEBITS, > > _PC_REC_INCR_XFER_SIZE, > > _PC_REC_MAX_XFER_SIZE, > > _PC_REC_MIN_XFER_SIZE, > > _PC_REC_XFER_ALIGN, > > _PC_ALLOC_SIZE_MIN, > > _PC_SYMLINK_MAX, > > _PC_2_SYMLINKS > > }; > > >enum > { > _SC_ARG_MAX, > > _SC_CHILD_MAX, > > _SC_CLK_TCK, > > _SC_NGROUPS_MAX, > > _SC_OPEN_MAX, > > _SC_STREAM_MAX, > > _SC_TZNAME_MAX, > > _SC_JOB_CONTROL, > > _SC_SAVED_IDS, > > _SC_REALTIME_SIGNALS, > > _SC_PRIORITY_SCHEDULING, > > _SC_TIMERS, > > _SC_ASYNCHRONOUS_IO, > > _SC_PRIORITIZED_IO, > > _SC_SYNCHRONIZED_IO, > > _SC_FSYNC, > > _SC_MAPPED_FILES, > > _SC_MEMLOCK, > > _SC_MEMLOCK_RANGE, > > _SC_MEMORY_PROTECTION, > > _SC_MESSAGE_PASSING, > > _SC_SEMAPHORES, > > _SC_SHARED_MEMORY_OBJECTS, > > _SC_AIO_LISTIO_MAX, > > _SC_AIO_MAX, > > _SC_AIO_PRIO_DELTA_MAX, > > _SC_DELAYTIMER_MAX, > > _SC_MQ_OPEN_MAX, > > _SC_MQ_PRIO_MAX, > > _SC_VERSION, > > _SC_PAGESIZE, > > > _SC_RTSIG_MAX, > > _SC_SEM_NSEMS_MAX, > > _SC_SEM_VALUE_MAX, > > _SC_SIGQUEUE_MAX, > > _SC_TIMER_MAX, > > > > > _SC_BC_BASE_MAX, > > _SC_BC_DIM_MAX, > > _SC_BC_SCALE_MAX, > > _SC_BC_STRING_MAX, > > _SC_COLL_WEIGHTS_MAX, > > _SC_EQUIV_CLASS_MAX, > > _SC_EXPR_NEST_MAX, > > _SC_LINE_MAX, > > _SC_RE_DUP_MAX, > > _SC_CHARCLASS_NAME_MAX, > > > _SC_2_VERSION, > > _SC_2_C_BIND, > > _SC_2_C_DEV, > > _SC_2_FORT_DEV, > > _SC_2_FORT_RUN, > > _SC_2_SW_DEV, > > _SC_2_LOCALEDEF, > > > _SC_PII, > > _SC_PII_XTI, > > _SC_PII_SOCKET, > > _SC_PII_INTERNET, > > _SC_PII_OSI, > > _SC_POLL, > > _SC_SELECT, > > _SC_UIO_MAXIOV, > > _SC_IOV_MAX = _SC_UIO_MAXIOV, > > _SC_PII_INTERNET_STREAM, > > _SC_PII_INTERNET_DGRAM, > > _SC_PII_OSI_COTS, > > _SC_PII_OSI_CLTS, > > _SC_PII_OSI_M, > > _SC_T_IOV_MAX, > > > > _SC_THREADS, > > _SC_THREAD_SAFE_FUNCTIONS, > > _SC_GETGR_R_SIZE_MAX, > > _SC_GETPW_R_SIZE_MAX, > > _SC_LOGIN_NAME_MAX, > > _SC_TTY_NAME_MAX, > > _SC_THREAD_DESTRUCTOR_ITERATIONS, > > _SC_THREAD_KEYS_MAX, > > _SC_THREAD_STACK_MIN, > > _SC_THREAD_THREADS_MAX, > > _SC_THREAD_ATTR_STACKADDR, > > _SC_THREAD_ATTR_STACKSIZE, > > _SC_THREAD_PRIORITY_SCHEDULING, > > _SC_THREAD_PRIO_INHERIT, > > _SC_THREAD_PRIO_PROTECT, > > _SC_THREAD_PROCESS_SHARED, > > > _SC_NPROCESSORS_CONF, > > _SC_NPROCESSORS_ONLN, > > _SC_PHYS_PAGES, > > _SC_AVPHYS_PAGES, > > _SC_ATEXIT_MAX, > > _SC_PASS_MAX, > > > _SC_XOPEN_VERSION, > > _SC_XOPEN_XCU_VERSION, > > _SC_XOPEN_UNIX, > > _SC_XOPEN_CRYPT, > > _SC_XOPEN_ENH_I18N, > > _SC_XOPEN_SHM, > > > _SC_2_CHAR_TERM, > > _SC_2_C_VERSION, > > _SC_2_UPE, > > > _SC_XOPEN_XPG2, > > _SC_XOPEN_XPG3, > > _SC_XOPEN_XPG4, > > > _SC_CHAR_BIT, > > _SC_CHAR_MAX, > > _SC_CHAR_MIN, > > _SC_INT_MAX, > > _SC_INT_MIN, > > _SC_LONG_BIT, > > _SC_WORD_BIT, > > _SC_MB_LEN_MAX, > > _SC_NZERO, > > _SC_SSIZE_MAX, > > _SC_SCHAR_MAX, > > _SC_SCHAR_MIN, > > _SC_SHRT_MAX, > > _SC_SHRT_MIN, > > _SC_UCHAR_MAX, > > _SC_UINT_MAX, > > _SC_ULONG_MAX, > > _SC_USHRT_MAX, > > > _SC_NL_ARGMAX, > > _SC_NL_LANGMAX, > > _SC_NL_MSGMAX, > > _SC_NL_NMAX, > > _SC_NL_SETMAX, > > _SC_NL_TEXTMAX, > > > _SC_XBS5_ILP32_OFF32, > > _SC_XBS5_ILP32_OFFBIG, > > _SC_XBS5_LP64_OFF64, > > _SC_XBS5_LPBIG_OFFBIG, > > > _SC_XOPEN_LEGACY, > > _SC_XOPEN_REALTIME, > > _SC_XOPEN_REALTIME_THREADS, > > > _SC_ADVISORY_INFO, > > _SC_BARRIERS, > > _SC_BASE, > > _SC_C_LANG_SUPPORT, > > _SC_C_LANG_SUPPORT_R, > > _SC_CLOCK_SELECTION, > > _SC_CPUTIME, > > _SC_THREAD_CPUTIME, > > _SC_DEVICE_IO, > > _SC_DEVICE_SPECIFIC, > > _SC_DEVICE_SPECIFIC_R, > > _SC_FD_MGMT, > > _SC_FIFO, > > _SC_PIPE, > > _SC_FILE_ATTRIBUTES, > > _SC_FILE_LOCKING, > > _SC_FILE_SYSTEM, > > _SC_MONOTONIC_CLOCK, > > _SC_MULTI_PROCESS, > > _SC_SINGLE_PROCESS, > > _SC_NETWORKING, > > _SC_READER_WRITER_LOCKS, > > _SC_SPIN_LOCKS, > > _SC_REGEXP, > > _SC_REGEX_VERSION, > > _SC_SHELL, > > _SC_SIGNALS, > > _SC_SPAWN, > > _SC_SPORADIC_SERVER, > > _SC_THREAD_SPORADIC_SERVER, > > _SC_SYSTEM_DATABASE, > > _SC_SYSTEM_DATABASE_R, > > _SC_TIMEOUTS, > > _SC_TYPED_MEMORY_OBJECTS, > > _SC_USER_GROUPS, > > _SC_USER_GROUPS_R, > > _SC_2_PBS, > > _SC_2_PBS_ACCOUNTING, > > _SC_2_PBS_LOCATE, > > _SC_2_PBS_MESSAGE, > > _SC_2_PBS_TRACK, > > _SC_SYMLOOP_MAX, > > _SC_STREAMS, > > _SC_2_PBS_CHECKPOINT, > > > _SC_V6_ILP32_OFF32, > > _SC_V6_ILP32_OFFBIG, > > _SC_V6_LP64_OFF64, > > _SC_V6_LPBIG_OFFBIG, > > > _SC_HOST_NAME_MAX, > > _SC_TRACE, > > _SC_TRACE_EVENT_FILTER, > > _SC_TRACE_INHERIT, > > _SC_TRACE_LOG, > > > _SC_LEVEL1_ICACHE_SIZE, > > _SC_LEVEL1_ICACHE_ASSOC, > > _SC_LEVEL1_ICACHE_LINESIZE, > > _SC_LEVEL1_DCACHE_SIZE, > > _SC_LEVEL1_DCACHE_ASSOC, > > _SC_LEVEL1_DCACHE_LINESIZE, > > _SC_LEVEL2_CACHE_SIZE, > > _SC_LEVEL2_CACHE_ASSOC, > > _SC_LEVEL2_CACHE_LINESIZE, > > _SC_LEVEL3_CACHE_SIZE, > > _SC_LEVEL3_CACHE_ASSOC, > > _SC_LEVEL3_CACHE_LINESIZE, > > _SC_LEVEL4_CACHE_SIZE, > > _SC_LEVEL4_CACHE_ASSOC, > > _SC_LEVEL4_CACHE_LINESIZE, > > > > _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, > > _SC_RAW_SOCKETS > > }; > > >enum > { > _CS_PATH, > > > _CS_V6_WIDTH_RESTRICTED_ENVS, > > > _CS_GNU_LIBC_VERSION, > > _CS_GNU_LIBPTHREAD_VERSION, > > > _CS_LFS_CFLAGS = 1000, > > _CS_LFS_LDFLAGS, > > _CS_LFS_LIBS, > > _CS_LFS_LINTFLAGS, > > _CS_LFS64_CFLAGS, > > _CS_LFS64_LDFLAGS, > > _CS_LFS64_LIBS, > > _CS_LFS64_LINTFLAGS, > > > _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, > > _CS_XBS5_ILP32_OFF32_LDFLAGS, > > _CS_XBS5_ILP32_OFF32_LIBS, > > _CS_XBS5_ILP32_OFF32_LINTFLAGS, > > _CS_XBS5_ILP32_OFFBIG_CFLAGS, > > _CS_XBS5_ILP32_OFFBIG_LDFLAGS, > > _CS_XBS5_ILP32_OFFBIG_LIBS, > > _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, > > _CS_XBS5_LP64_OFF64_CFLAGS, > > _CS_XBS5_LP64_OFF64_LDFLAGS, > > _CS_XBS5_LP64_OFF64_LIBS, > > _CS_XBS5_LP64_OFF64_LINTFLAGS, > > _CS_XBS5_LPBIG_OFFBIG_CFLAGS, > > _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, > > _CS_XBS5_LPBIG_OFFBIG_LIBS, > > _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, > > > _CS_POSIX_V6_ILP32_OFF32_CFLAGS, > > _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, > > _CS_POSIX_V6_ILP32_OFF32_LIBS, > > _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, > > _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, > > _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, > > _CS_POSIX_V6_ILP32_OFFBIG_LIBS, > > _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, > > _CS_POSIX_V6_LP64_OFF64_CFLAGS, > > _CS_POSIX_V6_LP64_OFF64_LDFLAGS, > > _CS_POSIX_V6_LP64_OFF64_LIBS, > > _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, > > _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, > > _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, > > _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, > > _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS > > }; ># 553 "/usr/include/unistd.h" 2 3 4 > > >extern long int pathconf (__const char *__path, int __name) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern long int fpathconf (int __fd, int __name) __attribute__ ((__nothrow__)); > > >extern long int sysconf (int __name) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > >extern size_t confstr (int __name, char *__buf, size_t __len) __attribute__ ((__nothrow__)); > > > > >extern __pid_t getpid (void) __attribute__ ((__nothrow__)); > > >extern __pid_t getppid (void) __attribute__ ((__nothrow__)); > > > > >extern __pid_t getpgrp (void) __attribute__ ((__nothrow__)); ># 589 "/usr/include/unistd.h" 3 4 >extern __pid_t __getpgid (__pid_t __pid) __attribute__ ((__nothrow__)); ># 598 "/usr/include/unistd.h" 3 4 >extern int setpgid (__pid_t __pid, __pid_t __pgid) __attribute__ ((__nothrow__)); ># 615 "/usr/include/unistd.h" 3 4 >extern int setpgrp (void) __attribute__ ((__nothrow__)); ># 632 "/usr/include/unistd.h" 3 4 >extern __pid_t setsid (void) __attribute__ ((__nothrow__)); > > > > > > > >extern __uid_t getuid (void) __attribute__ ((__nothrow__)); > > >extern __uid_t geteuid (void) __attribute__ ((__nothrow__)); > > >extern __gid_t getgid (void) __attribute__ ((__nothrow__)); > > >extern __gid_t getegid (void) __attribute__ ((__nothrow__)); > > > > >extern int getgroups (int __size, __gid_t __list[]) __attribute__ ((__nothrow__)) ; ># 665 "/usr/include/unistd.h" 3 4 >extern int setuid (__uid_t __uid) __attribute__ ((__nothrow__)); > > > > >extern int setreuid (__uid_t __ruid, __uid_t __euid) __attribute__ ((__nothrow__)); > > > > >extern int seteuid (__uid_t __uid) __attribute__ ((__nothrow__)); > > > > > > >extern int setgid (__gid_t __gid) __attribute__ ((__nothrow__)); > > > > >extern int setregid (__gid_t __rgid, __gid_t __egid) __attribute__ ((__nothrow__)); > > > > >extern int setegid (__gid_t __gid) __attribute__ ((__nothrow__)); ># 721 "/usr/include/unistd.h" 3 4 >extern __pid_t fork (void) __attribute__ ((__nothrow__)); > > > > > > >extern __pid_t vfork (void) __attribute__ ((__nothrow__)); > > > > > >extern char *ttyname (int __fd) __attribute__ ((__nothrow__)); > > > >extern int ttyname_r (int __fd, char *__buf, size_t __buflen) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))) ; > > > >extern int isatty (int __fd) __attribute__ ((__nothrow__)); > > > > > >extern int ttyslot (void) __attribute__ ((__nothrow__)); > > > > >extern int link (__const char *__from, __const char *__to) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))) ; ># 767 "/usr/include/unistd.h" 3 4 >extern int symlink (__const char *__from, __const char *__to) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))) ; > > > > >extern int readlink (__const char *__restrict __path, char *__restrict __buf, > size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))) ; ># 789 "/usr/include/unistd.h" 3 4 >extern int unlink (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 798 "/usr/include/unistd.h" 3 4 >extern int rmdir (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern __pid_t tcgetpgrp (int __fd) __attribute__ ((__nothrow__)); > > >extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) __attribute__ ((__nothrow__)); > > > > > > >extern char *getlogin (void); ># 825 "/usr/include/unistd.h" 3 4 >extern int setlogin (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 834 "/usr/include/unistd.h" 3 4 ># 1 "/usr/include/getopt.h" 1 3 4 ># 59 "/usr/include/getopt.h" 3 4 >extern char *optarg; ># 73 "/usr/include/getopt.h" 3 4 >extern int optind; > > > > >extern int opterr; > > > >extern int optopt; ># 152 "/usr/include/getopt.h" 3 4 >extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) > __attribute__ ((__nothrow__)); ># 835 "/usr/include/unistd.h" 2 3 4 > > > > > > > >extern int gethostname (char *__name, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > > >extern int sethostname (__const char *__name, size_t __len) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > >extern int sethostid (long int __id) __attribute__ ((__nothrow__)) ; > > > > > >extern int getdomainname (char *__name, size_t __len) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; >extern int setdomainname (__const char *__name, size_t __len) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > > >extern int vhangup (void) __attribute__ ((__nothrow__)); > > >extern int revoke (__const char *__file) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > > > > >extern int profil (unsigned short int *__sample_buffer, size_t __size, > size_t __offset, unsigned int __scale) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern int acct (__const char *__name) __attribute__ ((__nothrow__)); > > > >extern char *getusershell (void) __attribute__ ((__nothrow__)); >extern void endusershell (void) __attribute__ ((__nothrow__)); >extern void setusershell (void) __attribute__ ((__nothrow__)); > > > > > >extern int daemon (int __nochdir, int __noclose) __attribute__ ((__nothrow__)) ; > > > > > > >extern int chroot (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > >extern char *getpass (__const char *__prompt) __attribute__ ((__nonnull__ (1))); ># 920 "/usr/include/unistd.h" 3 4 >extern int fsync (int __fd); > > > > > > >extern long int gethostid (void); > > >extern void sync (void) __attribute__ ((__nothrow__)); > > > > >extern int getpagesize (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > >extern int getdtablesize (void) __attribute__ ((__nothrow__)); > > > > >extern int truncate (__const char *__file, __off_t __length) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; ># 967 "/usr/include/unistd.h" 3 4 >extern int ftruncate (int __fd, __off_t __length) __attribute__ ((__nothrow__)) ; ># 987 "/usr/include/unistd.h" 3 4 >extern int brk (void *__addr) __attribute__ ((__nothrow__)) ; > > > > > >extern void *sbrk (intptr_t __delta) __attribute__ ((__nothrow__)); ># 1008 "/usr/include/unistd.h" 3 4 >extern long int syscall (long int __sysno, ...) __attribute__ ((__nothrow__)); ># 1031 "/usr/include/unistd.h" 3 4 >extern int lockf (int __fd, int __cmd, __off_t __len) ; ># 1062 "/usr/include/unistd.h" 3 4 >extern int fdatasync (int __fildes) __attribute__ ((__nothrow__)); ># 1100 "/usr/include/unistd.h" 3 4 > ># 33 "gpsdraw.c" 2 > ># 1 "gpsdrawP.h" 1 ># 32 "gpsdrawP.h" ># 1 "gdrawP.h" 1 ># 30 "gdrawP.h" ># 1 "../inc/gdraw.h" 1 ># 29 "../inc/gdraw.h" ># 1 "../inc/basics.h" 1 ># 35 "../inc/basics.h" ># 1 "/usr/include/stdlib.h" 1 3 4 ># 33 "/usr/include/stdlib.h" 3 4 ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/stddef.h" 1 3 4 ># 34 "/usr/include/stdlib.h" 2 3 4 > > ># 96 "/usr/include/stdlib.h" 3 4 > > >typedef struct > { > int quot; > int rem; > } div_t; > > > >typedef struct > { > long int quot; > long int rem; > } ldiv_t; > > > ># 140 "/usr/include/stdlib.h" 3 4 >extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__)) ; > > > > >extern double atof (__const char *__nptr) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > >extern int atoi (__const char *__nptr) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > >extern long int atol (__const char *__nptr) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > > > > > >__extension__ extern long long int atoll (__const char *__nptr) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > > > > > >extern double strtod (__const char *__restrict __nptr, > char **__restrict __endptr) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > ># 182 "/usr/include/stdlib.h" 3 4 > > >extern long int strtol (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > >extern unsigned long int strtoul (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > >__extension__ >extern long long int strtoq (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > >__extension__ >extern unsigned long long int strtouq (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > > >__extension__ >extern long long int strtoll (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > >__extension__ >extern unsigned long long int strtoull (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > ># 279 "/usr/include/stdlib.h" 3 4 >extern double __strtod_internal (__const char *__restrict __nptr, > char **__restrict __endptr, int __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; >extern float __strtof_internal (__const char *__restrict __nptr, > char **__restrict __endptr, int __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; >extern long double __strtold_internal (__const char *__restrict __nptr, > char **__restrict __endptr, > int __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > >extern long int __strtol_internal (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, int __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > >extern unsigned long int __strtoul_internal (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, int __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > >__extension__ >extern long long int __strtoll_internal (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, int __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > >__extension__ >extern unsigned long long int __strtoull_internal (__const char * > __restrict __nptr, > char **__restrict __endptr, > int __base, int __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > > > > > >extern __inline__ double >__attribute__ ((__nothrow__)) strtod (__const char *__restrict __nptr, char **__restrict __endptr) >{ > return __strtod_internal (__nptr, __endptr, 0); >} >extern __inline__ long int >__attribute__ ((__nothrow__)) strtol (__const char *__restrict __nptr, char **__restrict __endptr, int __base) > >{ > return __strtol_internal (__nptr, __endptr, __base, 0); >} >extern __inline__ unsigned long int >__attribute__ ((__nothrow__)) strtoul (__const char *__restrict __nptr, char **__restrict __endptr, int __base) > >{ > return __strtoul_internal (__nptr, __endptr, __base, 0); >} > ># 364 "/usr/include/stdlib.h" 3 4 >__extension__ extern __inline__ long long int >__attribute__ ((__nothrow__)) strtoq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) > >{ > return __strtoll_internal (__nptr, __endptr, __base, 0); >} >__extension__ extern __inline__ unsigned long long int >__attribute__ ((__nothrow__)) strtouq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) > >{ > return __strtoull_internal (__nptr, __endptr, __base, 0); >} > > > > >__extension__ extern __inline__ long long int >__attribute__ ((__nothrow__)) strtoll (__const char *__restrict __nptr, char **__restrict __endptr, int __base) > >{ > return __strtoll_internal (__nptr, __endptr, __base, 0); >} >__extension__ extern __inline__ unsigned long long int >__attribute__ ((__nothrow__)) strtoull (__const char * __restrict __nptr, char **__restrict __endptr, int __base) > >{ > return __strtoull_internal (__nptr, __endptr, __base, 0); >} > > > > >extern __inline__ double >__attribute__ ((__nothrow__)) atof (__const char *__nptr) >{ > return strtod (__nptr, (char **) ((void *)0)); >} >extern __inline__ int >__attribute__ ((__nothrow__)) atoi (__const char *__nptr) >{ > return (int) strtol (__nptr, (char **) ((void *)0), 10); >} >extern __inline__ long int >__attribute__ ((__nothrow__)) atol (__const char *__nptr) >{ > return strtol (__nptr, (char **) ((void *)0), 10); >} > > > > >__extension__ extern __inline__ long long int >__attribute__ ((__nothrow__)) atoll (__const char *__nptr) >{ > return strtoll (__nptr, (char **) ((void *)0), 10); >} > ># 429 "/usr/include/stdlib.h" 3 4 >extern char *l64a (long int __n) __attribute__ ((__nothrow__)) ; > > >extern long int a64l (__const char *__s) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; ># 445 "/usr/include/stdlib.h" 3 4 >extern long int random (void) __attribute__ ((__nothrow__)); > > >extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__)); > > > > > >extern char *initstate (unsigned int __seed, char *__statebuf, > size_t __statelen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > > > >extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > > > >struct random_data > { > int32_t *fptr; > int32_t *rptr; > int32_t *state; > int rand_type; > int rand_deg; > int rand_sep; > int32_t *end_ptr; > }; > >extern int random_r (struct random_data *__restrict __buf, > int32_t *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > >extern int srandom_r (unsigned int __seed, struct random_data *__buf) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > >extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, > size_t __statelen, > struct random_data *__restrict __buf) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4))); > >extern int setstate_r (char *__restrict __statebuf, > struct random_data *__restrict __buf) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > > >extern int rand (void) __attribute__ ((__nothrow__)); > >extern void srand (unsigned int __seed) __attribute__ ((__nothrow__)); > > > > >extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__)); > > > > > > > >extern double drand48 (void) __attribute__ ((__nothrow__)); >extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern long int lrand48 (void) __attribute__ ((__nothrow__)); >extern long int nrand48 (unsigned short int __xsubi[3]) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern long int mrand48 (void) __attribute__ ((__nothrow__)); >extern long int jrand48 (unsigned short int __xsubi[3]) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern void srand48 (long int __seedval) __attribute__ ((__nothrow__)); >extern unsigned short int *seed48 (unsigned short int __seed16v[3]) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); >extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >struct drand48_data > { > unsigned short int __x[3]; > unsigned short int __old_x[3]; > unsigned short int __c; > unsigned short int __init; > unsigned long long int __a; > }; > > >extern int drand48_r (struct drand48_data *__restrict __buffer, > double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); >extern int erand48_r (unsigned short int __xsubi[3], > struct drand48_data *__restrict __buffer, > double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int lrand48_r (struct drand48_data *__restrict __buffer, > long int *__restrict __result) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); >extern int nrand48_r (unsigned short int __xsubi[3], > struct drand48_data *__restrict __buffer, > long int *__restrict __result) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int mrand48_r (struct drand48_data *__restrict __buffer, > long int *__restrict __result) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); >extern int jrand48_r (unsigned short int __xsubi[3], > struct drand48_data *__restrict __buffer, > long int *__restrict __result) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int srand48_r (long int __seedval, struct drand48_data *__buffer) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > >extern int seed48_r (unsigned short int __seed16v[3], > struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > >extern int lcong48_r (unsigned short int __param[7], > struct drand48_data *__buffer) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > > > > > >extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; > >extern void *calloc (size_t __nmemb, size_t __size) > __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; > > > > > > > >extern void *realloc (void *__ptr, size_t __size) > __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)); > >extern void free (void *__ptr) __attribute__ ((__nothrow__)); > > > > >extern void cfree (void *__ptr) __attribute__ ((__nothrow__)); > > > ># 1 "/usr/include/alloca.h" 1 3 4 ># 25 "/usr/include/alloca.h" 3 4 ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/stddef.h" 1 3 4 ># 26 "/usr/include/alloca.h" 2 3 4 > > > > > > > >extern void *alloca (size_t __size) __attribute__ ((__nothrow__)); > > > > > > ># 613 "/usr/include/stdlib.h" 2 3 4 > > > > >extern void *valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; > > > > >extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > >extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); > > > >extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > > >extern void exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); > ># 658 "/usr/include/stdlib.h" 3 4 > > >extern char *getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > >extern char *__secure_getenv (__const char *__name) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > > >extern int putenv (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern int setenv (__const char *__name, __const char *__value, int __replace) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > > >extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__)); > > > > > > >extern int clearenv (void) __attribute__ ((__nothrow__)); ># 698 "/usr/include/stdlib.h" 3 4 >extern char *mktemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; ># 709 "/usr/include/stdlib.h" 3 4 >extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; ># 729 "/usr/include/stdlib.h" 3 4 >extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > > > > > >extern int system (__const char *__command) ; > ># 757 "/usr/include/stdlib.h" 3 4 >extern char *realpath (__const char *__restrict __name, > char *__restrict __resolved) __attribute__ ((__nothrow__)) ; > > > > > > >typedef int (*__compar_fn_t) (__const void *, __const void *); > > > > > > > > > >extern void *bsearch (__const void *__key, __const void *__base, > size_t __nmemb, size_t __size, __compar_fn_t __compar) > __attribute__ ((__nonnull__ (1, 2, 5))) ; > > > >extern void qsort (void *__base, size_t __nmemb, size_t __size, > __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); > > > >extern int abs (int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; >extern long int labs (long int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; > > > > > > > > > > > > >extern div_t div (int __numer, int __denom) > __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; >extern ldiv_t ldiv (long int __numer, long int __denom) > __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; > ># 822 "/usr/include/stdlib.h" 3 4 >extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; > > > > >extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; > > > > >extern char *gcvt (double __value, int __ndigit, char *__buf) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ; > > > > >extern char *qecvt (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; >extern char *qfcvt (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; >extern char *qgcvt (long double __value, int __ndigit, char *__buf) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ; > > > > >extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign, char *__restrict __buf, > size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); >extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign, char *__restrict __buf, > size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); > >extern int qecvt_r (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign, > char *__restrict __buf, size_t __len) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); >extern int qfcvt_r (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign, > char *__restrict __buf, size_t __len) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); > > > > > > > >extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__)) ; > > >extern int mbtowc (wchar_t *__restrict __pwc, > __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)) ; > > >extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__)) ; > > > >extern size_t mbstowcs (wchar_t *__restrict __pwcs, > __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)); > >extern size_t wcstombs (char *__restrict __s, > __const wchar_t *__restrict __pwcs, size_t __n) > __attribute__ ((__nothrow__)); > > > > > > > > >extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; ># 927 "/usr/include/stdlib.h" 3 4 >extern int posix_openpt (int __oflag) ; ># 962 "/usr/include/stdlib.h" 3 4 >extern int getloadavg (double __loadavg[], int __nelem) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 978 "/usr/include/stdlib.h" 3 4 > ># 36 "../inc/basics.h" 2 ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/limits.h" 1 3 4 ># 11 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/limits.h" 3 4 ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/syslimits.h" 1 3 4 > > > > > > ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/limits.h" 1 3 4 ># 122 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/limits.h" 3 4 ># 1 "/usr/include/limits.h" 1 3 4 ># 145 "/usr/include/limits.h" 3 4 ># 1 "/usr/include/bits/posix1_lim.h" 1 3 4 ># 153 "/usr/include/bits/posix1_lim.h" 3 4 ># 1 "/usr/include/bits/local_lim.h" 1 3 4 ># 36 "/usr/include/bits/local_lim.h" 3 4 ># 1 "/usr/include/linux/limits.h" 1 3 4 ># 37 "/usr/include/bits/local_lim.h" 2 3 4 ># 154 "/usr/include/bits/posix1_lim.h" 2 3 4 ># 146 "/usr/include/limits.h" 2 3 4 > > > ># 1 "/usr/include/bits/posix2_lim.h" 1 3 4 ># 150 "/usr/include/limits.h" 2 3 4 ># 123 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/limits.h" 2 3 4 ># 8 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/syslimits.h" 2 3 4 ># 12 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/limits.h" 2 3 4 ># 37 "../inc/basics.h" 2 > > > > > > > >typedef int int32; >typedef unsigned int uint32; > > > > > >typedef short int16; >typedef unsigned short uint16; >typedef signed char int8; >typedef unsigned char uint8; > > > > > >typedef int intpt; > > >typedef uint16 unichar_t; > >extern void *galloc(long size); >extern void *gcalloc(int cnt, long size); >extern void *grealloc(void *,long size); >extern void gfree(void *); >extern void galloc_set_trap(void (*)(void)); ># 30 "../inc/gdraw.h" 2 ># 1 "../inc/charset.h" 1 ># 30 "../inc/charset.h" >enum encoding { e_usascii, e_iso646_no, e_iso646_se, e_iso8859_1, > e_iso8859_2, e_iso8859_3, e_iso8859_4, e_iso8859_5, e_iso8859_6, > e_iso8859_7, e_iso8859_8, e_iso8859_9, e_iso8859_10, > e_iso8859_11 , e_iso8859_13, e_iso8859_14, e_iso8859_15, > e_koi8_r, > e_jis201, > e_win, e_mac, > e_user, > > > e_jis, e_jis2, e_jiskorean, e_jisgb, e_sjis, > e_euc, e_euckorean, e_eucgb, > e_wansung, e_johab, > e_big5, > e_big5hkscs, > e_unicode, e_unicode_backwards, > e_utf7, e_utf8, > e_ucs4, > e_notrans, > e_encodingmax, e_unknown=-1, e_first2byte=e_jis }; > >enum charset { em_none = -1, > em_iso8859_1, em_iso8859_2, em_iso8859_3, em_iso8859_4, em_iso8859_5, > em_iso8859_6, em_iso8859_7, em_iso8859_8, em_iso8859_9, em_iso8859_10, > em_iso8859_11 , em_iso8859_13, em_iso8859_14, em_iso8859_15, > em_koi8_r, > em_jis201, > em_win, em_mac, em_symbol, em_zapfding, em_user, em_adobestandard=em_user, > em_jis208, em_jis212, em_ksc5601, em_gb2312, em_big5, em_big5hkscs, > em_johab , > > em_unicode, em_unicode4, em_gb18030 , em_max, em_first2byte=em_jis208, em_last94x94=em_gb2312 }; > >extern int local_encoding; > ># 1 "/usr/include/iconv.h" 1 3 4 ># 24 "/usr/include/iconv.h" 3 4 ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/stddef.h" 1 3 4 ># 25 "/usr/include/iconv.h" 2 3 4 > > > > > >typedef void *iconv_t; > > > > > > > >extern iconv_t iconv_open (__const char *__tocode, __const char *__fromcode); > > > > >extern size_t iconv (iconv_t __cd, char **__restrict __inbuf, > size_t *__restrict __inbytesleft, > char **__restrict __outbuf, > size_t *__restrict __outbytesleft); > > > > > >extern int iconv_close (iconv_t __cd); > > ># 66 "../inc/charset.h" 2 >extern char *iconv_local_encoding_name; > > > >extern struct namemap { char *name; int map; } encodingnames[]; ># 31 "../inc/gdraw.h" 2 > >typedef uint32 Color; ># 42 "../inc/gdraw.h" >typedef struct clut { > int16 clut_len; > unsigned int is_grey: 1; > uint32 trans_index; > Color clut[256]; >} GClut; > >typedef struct revcmap RevCMap; > >enum image_type { it_mono, it_bitmap=it_mono, it_index, it_true }; > >struct _GImage { > > > > > unsigned int image_type: 2; > int16 delay; > int32 width, height; > int32 bytes_per_line; > uint8 *data; > GClut *clut; > Color trans; > >}; > > > > > > >typedef struct gimage { > short list_len; > union { > struct _GImage *image; > struct _GImage **images; > } u; > void *userdata; >} GImage; > >enum pastetrans_type { ptt_paste_trans_to_trans, ptt_old_shines_through}; > >typedef struct grect { > int32 x,y,width,height; >} GRect; > >typedef struct gpoint { > int16 x,y; >} GPoint; > >enum font_style { fs_none, fs_italic=1, fs_smallcaps=2, fs_condensed=4, fs_extended=8 }; >enum font_type { ft_unknown, ft_serif, ft_sans, ft_mono, ft_cursive, ft_max }; >enum text_mods { tm_none, tm_upper=1, tm_lower=2, tm_initialcaps=4, tm_showsofthyphen=8 }; >enum text_lines { tl_none, tl_under=1, tl_strike=2, tl_over=4, tl_dash=8 }; > >typedef struct { > const unichar_t *family_name; > int16 point_size; > int16 weight; > enum font_style style; > char *utf8_family_name; >} FontRequest; > >typedef struct { > int16 letter_spacing; > unsigned int starts_word: 1; > unsigned int has_charset: 1; > enum text_mods mods; > enum text_lines lines; > enum charset charset; >} FontMods; > >typedef struct gbidata { > unichar_t *text; > uint8 *level; > uint8 *override; > uint16 *type; > unichar_t **original; > int32 len; > unsigned int base_right_to_left: 1; > unsigned int interpret_arabic: 1; >} GBiText; > >typedef struct font_instance FontInstance, GFont; >enum gic_style { gic_overspot=2, gic_root=1, gic_hidden=0, gic_orlesser=4, gic_type=3 }; >typedef struct ginput_context GIC; > >typedef struct ggc { > struct gwindow *w; > int32 xor_base; > Color fg; > Color bg; > GRect clip; > enum draw_func { df_copy, df_xor } func; > unsigned int copy_through_sub_windows: 1; > unsigned int bitmap_col: 1; > int16 skip_len, dash_len; > int16 line_width; > int16 ts; > int32 ts_xoff, ts_yoff; > int dash_offset; > GFont *fi; >} GGC; > >typedef struct gtextbounds { > int16 lbearing; > > int32 rbearing; > int16 as,ds; > > > int16 fas, fds; > > int32 width; > >} GTextBounds; > >enum selnames { sn_primary, sn_clipboard, sn_drag_and_drop, sn_max }; >typedef struct gwindow *GWindow; >typedef struct gdisplay GDisplay; >typedef struct gtimer GTimer; > >enum keystate_mask { ksm_shift=1, ksm_capslock=2, ksm_control=4, ksm_meta=8, > ksm_cmdsuse=0x8, > > > ksm_cmdmacosx=0x10, > ksm_numlock=0x10, > ksm_super=0x40, > ksm_hyper=0x80, > > ksm_option=0x2000, > ksm_button1=(1<<8), ksm_button2=(1<<9), ksm_button3=(1<<10), > ksm_button4=(1<<11), ksm_button5=(1<<12), > ksm_buttons=(ksm_button1|ksm_button2|ksm_button3|ksm_button4|ksm_button5)}; >enum mnemonic_focus { mf_normal, mf_tab, mf_mnemonic, mf_shortcut }; >typedef struct gevent { > enum event_type { et_noevent = -1, et_char, et_charup, > et_mousemove, et_mousedown, et_mouseup, > et_crossing, > et_focus, > et_expose, et_visibility, et_resize, et_timer, > et_close , et_create, > et_map, et_destroy , > et_selclear, > et_drag, et_dragout, et_drop, > et_lastnativeevent=et_drop, > et_controlevent, et_user } type; > > GWindow w; > union { > struct { > char *device; > uint32 time; > uint16 state; > int16 x,y; > uint16 keysym; > unichar_t chars[10]; > } chr; > struct { > char *device; > uint32 time; > int16 state; > int16 x,y; > int16 button; > int16 clicks; > int32 pressure, xtilt, ytilt, separation; > } mouse; > struct { > GRect rect; > } expose; > struct { > enum visibility_state { vs_unobscured, vs_partially, vs_obscured } state; > } visibility; > struct { > GRect size; > int16 dx, dy, dwidth, dheight; > unsigned int moved: 1; > unsigned int sized: 1; > } resize; > struct { > char *device; > uint32 time; > int16 state; > int16 x,y; > unsigned int entered: 1; > } crossing; > struct { > unsigned int gained_focus: 1; > unsigned int mnemonic_focus: 2; > } focus; > struct { > unsigned int is_visible: 1; > } map; > struct { > enum selnames sel; > } selclear; > struct { > int32 x,y; > } drag_drop; > struct { > GTimer *timer; > void *userdata; > } timer; > struct { > enum { et_buttonpress, et_buttonactivate, et_radiochanged, > et_listselected, et_listdoubleclick, > et_scrollbarchange, > et_textchanged, et_textfocuschanged, > et_lastsubtype } subtype; > struct ggadget *g; > union { > struct sbevent { > enum sb { et_sb_top, et_sb_uppage, et_sb_up, et_sb_left=et_sb_up, > et_sb_down, et_sb_right=et_sb_down, et_sb_downpage, > et_sb_bottom, > et_sb_thumb, et_sb_thumbrelease } type; > int32 pos; > } sb; > struct { > int gained_focus; > } tf_focus; > struct { > int from_pulldown; > } tf_changed; > struct { > int clicks; > int16 button, state; > } button; > struct { > int from_mouse, changed_index; > } list; > } u; > } control; > struct { > long subtype; > void *userdata; > } user; > } u; > void *native_window; >} GEvent; > >typedef enum cursor_types { ct_default, ct_pointer, ct_backpointer, ct_hand, > ct_question, ct_cross, ct_4way, ct_text, ct_watch, ct_draganddrop, > ct_invisible, > ct_user, ct_user2 } GCursor; > >typedef struct gwindow_attrs { > enum window_attr_mask { wam_events=0x2, wam_bordwidth=0x4, > wam_bordcol=0x8, wam_backcol=0x10, wam_cursor=0x20, wam_wtitle=0x40, > wam_ititle=0x80, wam_icon=0x100, wam_nodecor=0x200, > wam_positioned=0x400, wam_centered=0x800, wam_undercursor=0x1000, > wam_noresize=0x2000, wam_restrict=0x4000, wam_redirect=0x8000, > wam_isdlg=0x10000, wam_notrestricted=0x20000, > wam_transient=0x40000, > wam_utf8_wtitle=0x80000, wam_utf8_ititle=0x100000 } mask; > uint32 event_masks; > int16 border_width; > Color border_color; > Color background_color; > GCursor cursor; > > const unichar_t *window_title; > const unichar_t *icon_title; > struct gwindow *icon; > unsigned int nodecoration: 1; > unsigned int positioned: 1; > unsigned int centered: 2; > unsigned int undercursor: 1; > unsigned int noresize: 1; > unsigned int restrict_input_to_me: 1; > unsigned int redirect_chars_to_me: 1; > unsigned int is_dlg: 1; > unsigned int not_restricted: 1; > GWindow redirect_from; > GWindow transient; > const char *utf8_window_title; > const char *utf8_icon_title; >} GWindowAttrs; > >typedef struct gprinter_attrs { > enum printer_attr_mask { pam_pagesize=1, pam_margins=2, pam_scale=4, > pam_res=8, pam_copies=0x10, pam_thumbnails=0x20, pam_printername=0x40, > pam_filename=0x80, pam_args=0x100, pam_color=0x200, pam_transparent=0x400, > pam_lpr=0x800, pam_queue=0x1000, pam_eps=0x2000, pam_landscape=0x4000, > pam_title=0x8000 } mask; > float width, height; > float lmargin, rmargin, tmargin, bmargin; > float scale; > enum printer_units { pu_inches, pu_points, pu_mm } units; > int32 res; > int16 num_copies; > int16 thumbnails; > > unsigned int do_color: 1; > unsigned int do_transparent: 1; > unsigned int use_lpr: 1; > unsigned int donot_queue: 1; > unsigned int landscape: 1; > unsigned int eps: 1; > char *printer_name; > char *file_name; > char *extra_lpr_args; > unichar_t *title; > uint16 start_page, end_page; >} GPrinterAttrs; > >typedef struct gdeveventmask { > int event_mask; > char *device_name; >} GDevEventMask; > >enum gzoom_flags { gzf_pos=1, gzf_size=2 }; > >typedef int (*GDrawEH)(GWindow,GEvent *); > >extern unichar_t *GDrawKeysyms[]; >extern GDisplay *screen_display, *printer_display; > >extern void GDrawCreateDisplays(char *displayname,char *programname); >extern void *GDrawNativeDisplay(GDisplay *); >extern void GDrawTerm(GDisplay *disp); > >extern int GDrawGetRes(GWindow gw); >extern int GDrawPointsToPixels(GWindow gw,int points); >extern int GDrawPixelsToPoints(GWindow gw,int pixels); > >extern void GDrawSetDefaultIcon(GWindow icon); >extern GWindow GDrawCreateTopWindow(GDisplay *gdisp, GRect *pos, int (*eh)(GWindow,GEvent *), void *user_data, GWindowAttrs *wattrs); >extern GWindow GDrawCreateSubWindow(GWindow w, GRect *pos, int (*eh)(GWindow,GEvent *), void *user_data, GWindowAttrs *wattrs); >extern GWindow GDrawCreatePixmap(GDisplay *gdisp, uint16 width, uint16 height); >extern GWindow GDrawCreateBitmap(GDisplay *gdisp, uint16 width, uint16 height, uint8 *data); >extern GCursor GDrawCreateCursor(GWindow src,GWindow mask,Color fg,Color bg, > int16 x, int16 y ); >extern void GDrawDestroyWindow(GWindow w); >extern void GDrawDestroyCursor(GDisplay *gdisp, GCursor ct); >extern int GDrawNativeWindowExists(GDisplay *gdisp, void *native); >extern void GDrawSetZoom(GWindow w, GRect *zoomsize, enum gzoom_flags); >extern void GDrawSetWindowBorder(GWindow w, int width, Color color); >extern int GDrawSetDither(GDisplay *gdisp, int dither); >extern void GDrawReparentWindow(GWindow child,GWindow newparent, int x,int y); >extern void GDrawSetVisible(GWindow w, int visible); >extern int GDrawIsVisible(GWindow w); >extern void GDrawTrueMove(GWindow w, int32 x, int32 y); >extern void GDrawMove(GWindow w, int32 x, int32 y); >extern void GDrawResize(GWindow w, int32 width, int32 height); >extern void GDrawMoveResize(GWindow w, int32 x, int32 y, int32 width, int32 height); >extern GWindow GDrawGetRoot(GDisplay *); >extern Color GDrawGetDefaultBackground(GDisplay *); >extern Color GDrawGetDefaultForeground(GDisplay *); >extern GRect *GDrawGetSize(GWindow w, GRect *ret); >extern GDrawEH GDrawGetEH(GWindow w); >extern void GDrawSetEH(GWindow w,GDrawEH e_h); >extern void GDrawGetPointerPosition(GWindow w, GEvent *mouse); >extern void GDrawRaise(GWindow w); >extern void GDrawRaiseAbove(GWindow w,GWindow below); >extern int GDrawIsAbove(GWindow w,GWindow other); >extern void GDrawLower(GWindow w); >extern void GDrawSetWindowTitles(GWindow w, const unichar_t *title, const unichar_t *icontit); >extern void GDrawSetWindowTitles8(GWindow w, const char *title, const char *icontit); >extern unichar_t *GDrawGetWindowTitle(GWindow w); >extern char *GDrawGetWindowTitle8(GWindow w); >extern void GDrawSetCursor(GWindow w, GCursor ct); >extern GCursor GDrawGetCursor(GWindow w); >extern GWindow GDrawGetRedirectWindow(GDisplay *gd); >extern GWindow GDrawGetParentWindow(GWindow gw); >extern int GDrawWindowIsAncestor(GWindow ancester, GWindow descendent); >extern void GDrawSetUserData(GWindow gw, void *ud); >extern void *GDrawGetUserData(GWindow gw); >extern GDisplay *GDrawGetDisplayOfWindow(GWindow); >extern void GDrawTranslateCoordinates(GWindow from,GWindow to, GPoint *pt); >extern int32 GDrawEventInWindow(GWindow inme,GEvent *event); >extern void GDrawBeep(GDisplay *gdisp); >extern void GDrawFlush(GDisplay *gdisp); > >extern void GDrawGetClip(GWindow w, GRect *ret); >extern void GDrawSetClip(GWindow w, GRect *rct); >extern void GDrawPushClip(GWindow w, GRect *rct, GRect *old); >extern void GDrawPopClip(GWindow w, GRect *old); >extern GGC *GDrawGetWindowGGC(GWindow w); >extern void GDrawSetXORBase(GWindow w,Color col); >extern void GDrawSetXORMode(GWindow w); >extern void GDrawSetCopyMode(GWindow w); >extern void GDrawSetCopyThroughSubWindows(GWindow w,int16 through); >extern void GDrawSetDashedLine(GWindow w,int16 dash_len, int16 skip_len, int16 off); >extern void GDrawSetStippled(GWindow w,int16 ts, int32 yoff,int32 xoff); >extern void GDrawSetLineWidth(GWindow w,int16 width); >extern void GDrawSetForeground(GWindow w,Color col); >extern void GDrawSetBackground(GWindow w,Color col); > >extern GFont *GDrawSetFont(GWindow gw, GFont *fi); >extern GFont *GDrawInstanciateFont(GDisplay *disp, FontRequest *rq); >extern GFont *GDrawAttachFont(GWindow gw, FontRequest *rq); >extern FontRequest *GDrawDecomposeFont(GFont *fi, FontRequest *rq); >extern enum charset GDrawFindEncoding(unichar_t *text, int32 len, > GFont *fi, unichar_t **next, int *ulevel); >extern void GDrawFontMetrics(GFont *fi,int *as, int *ds, int *ld); >extern int32 GDrawGetTextPtAfterPos(GWindow gw,unichar_t *text, int32 cnt, FontMods *mods, > int32 maxwidth, unichar_t **end); >extern int32 GDrawGetTextPtBeforePos(GWindow gw,unichar_t *text, int32 cnt, FontMods *mods, > int32 maxwidth, unichar_t **end); >extern int32 GDrawGetTextPtFromPos(GWindow gw,unichar_t *text, int32 cnt, FontMods *mods, > int32 maxwidth, unichar_t **end); >int32 GDrawGetTextBounds(GWindow gw,unichar_t *text, int32 cnt, FontMods *mods, > GTextBounds *size); >extern int32 GDrawGetTextWidth(GWindow gw, const unichar_t *text, int32 cnt, FontMods *mods); >extern int32 GDrawDrawText(GWindow gw, int32 x, int32 y, const unichar_t *txt, int32 cnt, FontMods *mods, Color col); > > >extern int32 GDrawDrawBiText(GWindow gw, int32 x, int32 y, unichar_t *txt, int32 cnt, FontMods *mods, Color col); >extern int32 GDrawGetBiTextWidth(GWindow gw,unichar_t *text, int len, int32 cnt, FontMods *mods); >extern int32 GDrawGetBiTextPtAfterPos(GWindow gw,unichar_t *text, int32 cnt, FontMods *mods, > int32 maxwidth, unichar_t **end); >extern int32 GDrawGetBiTextPtBeforePos(GWindow gw,unichar_t *text, int32 cnt, FontMods *mods, > int32 maxwidth, unichar_t **end); >extern int32 GDrawGetBiTextPtFromPos(GWindow gw,unichar_t *text, int32 cnt, FontMods *mods, > int32 maxwidth, unichar_t **end); >extern int GDrawFontHasCharset(FontInstance *fi, int charset); >extern int32 GDrawIsAllLeftToRight(unichar_t *text, int32 cnt); >extern void GDrawBiText1(GBiText *bd, const unichar_t *text, int32 cnt); >extern void GDrawArabicForms(GBiText *bd, int32 start, int32 end); >extern void _GDrawBiText2(GBiText *bd, int32 start, int32 end); >extern void GDrawBiText2(GBiText *bd, int32 start, int32 end); > >extern int32 GDrawGetText8PtAfterPos(GWindow gw,char *text, int32 cnt, FontMods *mods, > int32 maxwidth, char **end); >extern int32 GDrawGetText8PtBeforePos(GWindow gw,char *text, int32 cnt, FontMods *mods, > int32 maxwidth, char **end); >extern int32 GDrawGetText8PtFromPos(GWindow gw,char *text, int32 cnt, FontMods *mods, > int32 maxwidth, char **end); >int32 GDrawGetText8Bounds(GWindow gw,char *text, int32 cnt, FontMods *mods, > GTextBounds *size); >extern int32 GDrawGetText8Width(GWindow gw, const char *text, int32 cnt, FontMods *mods); >extern int32 GDrawDrawText8(GWindow gw, int32 x, int32 y, const char *txt, int32 cnt, FontMods *mods, Color col); > >extern GIC *GDrawCreateInputContext(GWindow w,enum gic_style def_style); >extern void GDrawSetGIC(GWindow w,GIC *gic,int x, int y); > >extern void GDrawClear(GWindow w, GRect *rect); >extern void GDrawDrawLine(GWindow w, int32 x,int32 y, int32 xend,int32 yend, Color col); >extern void GDrawDrawArrow(GWindow w, int32 x,int32 y, int32 xend,int32 yend, int arrows, Color col); >extern void GDrawDrawRect(GWindow w, GRect *rect, Color col); >extern void GDrawFillRect(GWindow w, GRect *rect, Color col); >extern void GDrawDrawElipse(GWindow w, GRect *rect, Color col); >extern void GDrawFillElipse(GWindow w, GRect *rect, Color col); >extern void GDrawDrawArc(GWindow w, GRect *rect, int32 sangle, int32 tangle, Color col); >extern void GDrawDrawPoly(GWindow w, GPoint *pts, int16 cnt, Color col); >extern void GDrawFillPoly(GWindow w, GPoint *pts, int16 cnt, Color col); >extern void GDrawScroll(GWindow w, GRect *rect, int32 hor, int32 vert); >extern void GDrawDrawImage(GWindow w, GImage *img, GRect *src, int32 x, int32 y); >extern void GDrawDrawScaledImage(GWindow w, GImage *img, int32 x, int32 y); >extern void GDrawDrawImageMagnified(GWindow w, GImage *img, GRect *src, int32 x, int32 y, > int32 width, int32 height); >extern void GDrawTileImage(GWindow w, GImage *img, GRect *src, int32 x, int32 y); >extern void GDrawDrawPixmap(GWindow w, GWindow pixmap, GRect *src, int32 x, int32 y); >extern void GDrawTilePixmap(GWindow w, GWindow pixmap, GRect *src, int32 x, int32 y); >extern GImage *GDrawCopyScreenToImage(GWindow w, GRect *rect); > >extern void GDrawGrabSelection(GWindow w,enum selnames sel); >extern void GDrawAddSelectionType(GWindow w,enum selnames sel,char *type, > void *data,int32 cnt,int32 unitsize,void *(*gendata)(void *,int32 *len), > void (*freedata)(void *)); >extern void *GDrawRequestSelection(GWindow w,enum selnames sn, char *typename, int32 *len); >extern int GDrawSelectionHasType(GWindow w,enum selnames sn, char *typename); > >extern void GDrawPointerUngrab(GDisplay *disp); >extern void GDrawPointerGrab(GWindow w); >extern void GDrawRequestExpose(GWindow w, GRect *rect, int doclear); >extern void GDrawSync(GDisplay *gdisp); >extern void GDrawForceUpdate(GWindow w); >extern void GDrawProcessOneEvent(GDisplay *disp); >extern void GDrawProcessPendingEvents(GDisplay *disp); >extern void GDrawProcessWindowEvents(GWindow w); >extern void GDrawSkipMouseMoveEvents(GWindow w,GEvent *last); >extern void GDrawEventLoop(GDisplay *disp); >extern void GDrawPostEvent(GEvent *e); >extern void GDrawPostDragEvent(GWindow gw,GEvent *e,enum event_type); > >extern GTimer *GDrawRequestTimer(GWindow w,int32 time_from_now,int32 frequency, > void *userdata); >extern void GDrawCancelTimer(GTimer *timer); > >extern void GDrawSyncThread(GDisplay *gd, void (*func)(void *), void *data); > >extern GWindow GPrinterStartJob(GDisplay *gdisp,void *user_data,GPrinterAttrs *attrs); >extern void GPrinterNextPage(GWindow w); >extern int GPrinterEndJob(GWindow w,int cancel); > >extern void GDrawSetBuildCharHooks(void (*hook)(GDisplay *), void (*inshook)(GDisplay *,unichar_t)); > >extern int GDrawRequestDeviceEvents(GWindow w,int devcnt,struct gdeveventmask *de); > >extern void GDrawFatalError(const char *fmt,...); >extern void GDrawIError(const char *fmt,...); >extern void GDrawError(const char *fmt,...); > >extern GImage *GImageCreate(enum image_type type, int32 width, int32 height); >extern GImage *_GImage_Create(enum image_type type, int32 width, int32 height); >extern void GImageDestroy(GImage *gi); >extern GImage *GImageCreateAnimation(GImage **images, int n); >extern GImage *GImageAddImageBefore(GImage *dest, GImage *src, int pos); > >extern GImage *GImageBaseGetSub(struct _GImage *base, enum image_type it, GRect *src, GClut *nclut, RevCMap *rev); >extern GImage *GImageGetSub(GImage *image,enum image_type it, GRect *src, GClut *nclut, RevCMap *rev); >extern int GImageInsertToBase(struct _GImage *tobase, GImage *from, GRect *src, RevCMap *rev, > int to_x, int to_y, enum pastetrans_type ptt ); >extern int GImageInsert(GImage *to, GImage *from, GRect *src, RevCMap *rev, > int to_x, int to_y, enum pastetrans_type ptt ); >extern Color GImageGetPixelColor(GImage *base,int x, int y); >extern int GImageGetWidth(GImage *); >extern int GImageGetHeight(GImage *); >extern int GImageGetScaledWidth(GWindow gw, GImage *img); >extern int GImageGetScaledHeight(GWindow gw, GImage *img); >extern void *GImageGetUserData(GImage *img); >extern void GImageSetUserData(GImage *img,void *userdata); >extern void GImageResize(struct _GImage *tobase, struct _GImage *fbase, > GRect *src, RevCMap *rev); >extern GImage *GImageResize32(GImage *from, GRect *src, int width, int height, Color trans); >extern GImage *GImageResizeSame(GImage *from, GRect *src, int width, int height, RevCMap *rev); >extern RevCMap *GClutReverse(GClut *clut,int side_size); >void GClut_RevCMapFree(RevCMap *rev); >extern GClut *GImageFindCLUT(GImage *image,GClut *clut,int clutmax); >extern int GImageSameClut(GClut *clut,GClut *nclut); >extern int GImageGreyClut(GClut *clut); >extern Color GImageColourFName(unichar_t *name); >extern Color _GImage_ColourFName(char *name); >extern char *GImageNameFColour(Color col); >extern Color GDrawColorDarken(Color col, int by); >extern Color GDrawColorBrighten(Color col, int by); > >extern int GImageWriteGImage(GImage *gi, char *filename); >extern int GImageWriteBmp(GImage *gi, char *filename); >extern GImage *GImageRead_Bmp(FILE *file); >extern GImage *GImageReadBmp(char *filename); >extern int GImageWriteXbm(GImage *gi, char *filename); >extern GImage *GImageReadXbm(char *filename); >extern int GImageWriteXpm(GImage *gi, char *filename); >extern GImage *GImageReadXpm(char *filename); >extern int GImageWriteEps(GImage *gi, char *filename); >extern GImage *GImageReadTiff(char *filename); >extern GImage *GImageReadJpeg(char *filename); >extern int GImageWriteJpeg(GImage *gi, char *filename, int quality, int progressive); >extern GImage *GImageRead_Png(FILE *fp); >extern GImage *GImageReadPng(char *filename); >extern int GImageWritePng(GImage *gi, char *filename, int progressive); >extern GImage *GImageReadGif(char *filename); >extern int GImageWriteGif(GImage *gi,char *filename,int progressive); >extern GImage *GImageReadRas(char *filename); >extern GImage *GImageReadRgb(char *filename); >extern GImage *GImageRead(char *filename); ># 31 "gdrawP.h" 2 > >typedef struct gcol { > int16 red, green, blue; > uint32 pixel; >} GCol; > >struct revcol { > int16 red, green, blue; > uint32 index; > uint8 dist; > struct revcol *next; >}; > >struct revitem { > struct revcol *cols[2]; > int16 cnt; > struct revcmap *sub; >}; > >struct revcmap { > int16 range; > > int16 side_cnt; > > > > int16 side_shift; > int16 div_mul, div_shift, div_add; > > > > > unsigned int is_grey: 1; > Color mask; > struct revitem *cube; > GCol *greys; >}; > >typedef struct { > unsigned char byte1; > unsigned char byte2; >} GChar2b; > >struct gchr_transform { > uint32 oldstate; > uint32 newstate; > unichar_t resch; >}; > >struct gchr_lookup { > int cnt; > struct gchr_transform *transtab; >}; > >struct gchr_accents { > unichar_t accent; > uint32 mask; >}; > >struct gwindow { > GGC *ggc; > GDisplay *display; > int (*eh)(GWindow,GEvent *); > GRect pos; > GWindow parent; > void *user_data; > struct gwidgetdata *widget_data; > void *native_window; > unsigned int is_visible: 1; > unsigned int is_pixmap: 1; > unsigned int is_toplevel: 1; > unsigned int visible_request: 1; > unsigned int is_dying: 1; > unsigned int is_popup: 1; >}; > >struct ginput_context { > GWindow w; > enum gic_style style; > void *ic; > struct ginput_context *next; >}; > >struct gtimer { > long time_sec; > long time_usec; > int32 repeat_time; > GWindow owner; > void *userdata; > struct gtimer *next; > unsigned int active: 1; >}; > >struct gdisplay { > struct displayfuncs *funcs; > void *semaphore; > struct font_state *fontstate; > int16 res; > int16 scale_screen_by; > GWindow groot; > Color def_background, def_foreground; > uint16 mykey_state; > uint16 mykey_keysym; > uint16 mykey_mask; > unsigned int mykeybuild: 1; > >}; > > > > > >struct font_data; > >struct displayfuncs { > void (*init)(GDisplay *); > void (*term)(GDisplay *); > void *(*nativeDisplay)(GDisplay *); > > void (*setDefaultIcon)(GWindow); > > GWindow (*createTopWindow)(GDisplay *, GRect *pos, int (*eh)(GWindow,GEvent *), void *user_data, GWindowAttrs *); > GWindow (*createSubWindow)(GWindow, GRect *pos, int (*eh)(GWindow,GEvent *), void *user_data, GWindowAttrs *); > GWindow (*createPixmap)(GDisplay *, uint16 width, uint16 height); > GWindow (*createBitmap)(GDisplay *, uint16 width, uint16 height, uint8 *data); > GCursor (*createCursor)(GWindow src, GWindow mask, Color fg, Color bg, int16 x, int16 y); > void (*destroyWindow)(GWindow); > void (*destroyCursor)(GDisplay *,GCursor); > int (*nativeWindowExists)(GDisplay *,void *native_window); > void (*setZoom)(GWindow,GRect *size,enum gzoom_flags flags); > void (*setWindowBorder)(GWindow,int width,Color); > int (*setDither)(GDisplay *,int); > > void (*reparentWindow)(GWindow,GWindow,int,int); > void (*setVisible)(GWindow,int); > void (*move)(GWindow,int32,int32); > void (*trueMove)(GWindow,int32,int32); > void (*resize)(GWindow,int32,int32); > void (*moveResize)(GWindow,int32,int32,int32,int32); > void (*raise)(GWindow); > void (*raiseAbove)(GWindow,GWindow); > int (*isAbove)(GWindow,GWindow); > void (*lower)(GWindow); > void (*setWindowTitles)(GWindow, const unichar_t *title, const unichar_t *icontitle); > void (*setWindowTitles8)(GWindow, const char *title, const char *icontitle); > unichar_t *(*getWindowTitle)(GWindow); > char *(*getWindowTitle8)(GWindow); > void (*getPointerPos)(GWindow,GEvent *); > void (*setCursor)(GWindow, GCursor); > GCursor (*getCursor)(GWindow); > GWindow (*getRedirectWindow)(GDisplay *gd); > void (*translateCoordinates)(GWindow from, GWindow to, GPoint *pt); > > void (*beep)(GDisplay *); > void (*flush)(GDisplay *); > > void (*pushClip)(GWindow, GRect *rct, GRect *old); > void (*popClip)(GWindow, GRect *old); > > void (*clear)(GWindow,GRect *); > void (*drawLine)(GWindow, int32 x,int32 y, int32 xend,int32 yend, Color col); > void (*drawArrow)(GWindow, int32 x,int32 y, int32 xend,int32 yend, int16 arrows, Color col); > void (*drawRect)(GWindow, GRect *rect, Color col); > void (*fillRect)(GWindow, GRect *rect, Color col); > void (*drawElipse)(GWindow, GRect *rect, Color col); > void (*fillElipse)(GWindow, GRect *rect, Color col); > void (*drawArc)(GWindow, GRect *rect, int32 sangle, int32 eangle, Color col); > void (*drawPoly)(GWindow, GPoint *pts, int16 cnt, Color col); > void (*fillPoly)(GWindow, GPoint *pts, int16 cnt, Color col); > void (*scroll)(GWindow, GRect *rect, int32 hor, int32 vert); > > void (*drawImage)(GWindow, GImage *, GRect *src, int32 x, int32 y); > void (*tileImage)(GWindow, GImage *, GRect *src, int32 x, int32 y); > void (*drawImageMag)(GWindow, GImage *, GRect *src, int32 x, int32 y, int32 width, int32 height); > GImage *(*copyScreenToImage)(GWindow, GRect *rect); > void (*drawPixmap)(GWindow, GWindow, GRect *src, int32 x, int32 y); > void (*tilePixmap)(GWindow, GWindow, GRect *src, int32 x, int32 y); > > struct font_data *(*scaleFont)(GDisplay *, struct font_data *fd,FontRequest *rq); > struct font_data *(*stylizeFont)(GDisplay *, struct font_data *fd,FontRequest *rq); > void *(*loadFontMetrics)(GDisplay *, struct font_data *fd); > void (*drawText1)(GWindow, struct font_data *fd, int32 x, int32 y, char *txt, int32 cnt, FontMods *, Color col); > void (*drawText2)(GWindow, struct font_data *fd, int32 x, int32 y, GChar2b *txt, int32 cnt, FontMods *, Color col); > > GIC *(*createInputContext)(GWindow, enum gic_style); > void (*setGIC)(GWindow, GIC *, int x, int y); > > void (*grabSelection)(GWindow w,enum selnames sel); > void (*addSelectionType)(GWindow w,enum selnames sel,char *type, > void *data,int32 cnt,int32 unitsize,void *(*gendata)(void *,int32 *len), > void (*freedata)(void *)); > void *(*requestSelection)(GWindow w,enum selnames sn, char *typename, int32 *len); > int (*selectionHasType)(GWindow w,enum selnames sn, char *typename); > > void (*pointerUngrab)(GDisplay *); > void (*pointerGrab)(GWindow); > void (*requestExpose)(GWindow,GRect *,int); > void (*forceUpdate)(GWindow); > void (*sync)(GDisplay *); > void (*skipMouseMoveEvents)(GWindow, GEvent *); > void (*processPendingEvents)(GDisplay *); > void (*processWindowEvents)(GWindow); > void (*processOneEvent)(GDisplay *); > void (*eventLoop)(GDisplay *); > void (*postEvent)(GEvent *e); > void (*postDragEvent)(GWindow w,GEvent *mouse,enum event_type et); > int (*requestDeviceEvents)(GWindow w,int devcnt,struct gdeveventmask *de); > > GTimer *(*requestTimer)(GWindow w,int32 time_from_now,int32 frequency, void *userdata); > void (*cancelTimer)(GTimer *timer); > > void (*syncThread)(GDisplay *gd, void (*func)(void *), void *data); > > GWindow (*startJob)(GDisplay *gdisp,void *user_data,GPrinterAttrs *attrs); > void (*nextPage)(GWindow w); > int (*endJob)(GWindow w,int cancel); >}; > >extern GDisplay *_GXDraw_CreateDisplay(char *displayname,char *programname); >extern GDisplay *_GPSDraw_CreateDisplay(void); >extern void _GDraw_InitError(GDisplay *); >extern void _GDraw_ComposeChars(GDisplay *gdisp,GEvent *gevent); > >extern void _GDraw_getimageclut(struct _GImage *base, struct gcol *clut); >extern const GCol *_GImage_GetIndexedPixel(Color col,RevCMap *rev); >extern const GCol *_GImage_GetIndexedPixelPrecise(Color col,RevCMap *rev); > >extern void (*_GDraw_BuildCharHook)(GDisplay *); >extern void (*_GDraw_InsCharHook)(GDisplay *,unichar_t); ># 33 "gpsdrawP.h" 2 > >typedef struct gpswindow { > GGC *ggc; > struct gpsdisplay *display; > int (*eh)(GWindow,GEvent *); > GRect pos; > GWindow parent; > void *user_data; > void *widget_data; > FILE *output_file; > unsigned int is_visible: 1; > unsigned int is_pixmap: 1; > unsigned int is_toplevel: 1; > unsigned int is_dying: 1; > unsigned int is_popup: 1; > FILE *init_file; ># 57 "gpsdrawP.h" > int pnt_cnt; > long cur_x, cur_y; > long line_x, line_y; > unsigned int buffered_line: 1; > int16 cur_dash_len, cur_skip_len; > int16 cur_line_width; > int16 cur_dash_offset; > int16 cur_ts; > struct font_data *cur_font; > Color cur_fg, cur_bg; > > int last_dash_len, last_skip_len; > int last_line_width; > int last_dash_offset; > int last_ts; > struct font_data *last_font; > Color last_fg, last_bg; > GRect cur_clip; > int res; > uint32 ascii85encode; > int16 ascii85n, ascii85bytes_per_line; > uint32 page_cnt; >} *GPSWindow; > > > >typedef struct gpsdisplay { > struct displayfuncs *funcs; > void *semaphore; > struct font_state *fontstate; > int16 res; > int16 scale_screen_by; > GWindow groot; > > Color def_background, def_foreground; > uint16 mykey_state; > uint16 mykey_keysym; > uint16 mykey_mask; > unsigned int mykeybuild: 1; > > unsigned int landscape: 1; > unsigned int use_lpr: 1; > unsigned int print_to_file: 1; > unsigned int do_color: 1; > unsigned int do_transparent: 1; > unsigned int eps: 1; > float scale; > float xwidth; > float yheight; > float lmargin, rmargin; > float tmargin, bmargin; > int16 num_copies; > int16 linear_thumb_cnt; > char *printer_name; > char *lpr_args; > char *filename; > char *tempname; > enum printer_units last_units; >} GPSDisplay; > >extern void _GPSDraw_Image(GWindow, GImage *, GRect *src, int32 x, int32 y); >extern void _GPSDraw_TileImage(GWindow, GImage *, GRect *src, int32 x, int32 y); >extern void _GPSDraw_ImageMagnified(GWindow, GImage *, GRect *src, int32 x, int32 y, int32 width, int32 height); > >extern void *_GPSDraw_LoadFontMetrics(GDisplay *gdisp, struct font_data *fd); >extern struct font_data *_GPSDraw_ScaleFont(GDisplay *gdisp, struct font_data *fd, FontRequest *rq); >extern struct font_data *_GPSDraw_StylizeFont(GDisplay *gdisp, struct font_data *fd, FontRequest *rq); >extern void _GPSDraw_ProcessFont(GPSWindow ps, struct font_data *fd); > >extern double _GSPDraw_YPos(GPSWindow ps,int y); >extern double _GSPDraw_XPos(GPSWindow ps,int x); >extern double _GSPDraw_Distance(GPSWindow ps,int x); >extern void _GPSDraw_SetColor(GPSWindow ps,Color fg); >extern void _GPSDraw_CopyFile(FILE *to, FILE *from); >extern void _GPSDraw_ResetFonts(struct font_state *fonts); >extern void _GPSDraw_ListNeededFonts(GPSWindow ps); >extern int _GPSDraw_InitFonts(struct font_state *fonts); >extern void _GPSDraw_InitPatterns(GPSWindow); >extern void _GPSDraw_FlushPath(GPSWindow ps); >extern void _GPSDraw_SetClip(GPSWindow ps); ># 35 "gpsdraw.c" 2 ># 1 "../inc/gresource.h" 1 ># 30 "../inc/gresource.h" ># 1 "../inc/gdraw.h" 1 ># 31 "../inc/gresource.h" 2 > >enum res_type { rt_int, rt_double, rt_bool , rt_color, rt_string }; > >typedef struct gresstruct { > char *resname; > enum res_type type; > void *val; > void *(*cvt)(char *,void *); > int found; >} GResStruct; > >extern char *GResourceProgramName, *GResourceFullProgram, *GResourceProgramDir; >extern int local_encoding; > > >extern char *iconv_local_encoding_name; > > >void GResourceSetProg(char *prog); >void GResourceAddResourceFile(char *filename,char *prog); >void GResourceAddResourceString(char *string,char *prog); >void GResourceFind( GResStruct *info, char *prefix); >char *GResourceFindString(char *name); >int GResourceFindBool(char *name, int def); >long GResourceFindInt(char *name, long def); >Color GResourceFindColor(char *name, Color def); >GImage *GResourceFindImage(char *name, GImage *def); ># 36 "gpsdraw.c" 2 ># 1 "colorP.h" 1 ># 37 "gpsdraw.c" 2 ># 1 "fontP.h" 1 ># 34 "fontP.h" ># 1 "/usr/include/X11/Xlib.h" 1 3 4 ># 60 "/usr/include/X11/Xlib.h" 3 4 ># 1 "/usr/include/X11/X.h" 1 3 4 ># 71 "/usr/include/X11/X.h" 3 4 >typedef unsigned long XID; > > > >typedef unsigned long Mask; > > > >typedef unsigned long Atom; > >typedef unsigned long VisualID; >typedef unsigned long Time; ># 101 "/usr/include/X11/X.h" 3 4 >typedef XID Window; >typedef XID Drawable; > > >typedef XID Font; > >typedef XID Pixmap; >typedef XID Cursor; >typedef XID Colormap; >typedef XID GContext; >typedef XID KeySym; > >typedef unsigned char KeyCode; ># 61 "/usr/include/X11/Xlib.h" 2 3 4 > > ># 1 "/usr/include/X11/Xfuncproto.h" 1 3 4 ># 64 "/usr/include/X11/Xlib.h" 2 3 4 ># 1 "/usr/include/X11/Xosdefs.h" 1 3 4 ># 65 "/usr/include/X11/Xlib.h" 2 3 4 ># 75 "/usr/include/X11/Xlib.h" 3 4 ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/stddef.h" 1 3 4 ># 152 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/stddef.h" 3 4 >typedef int ptrdiff_t; ># 76 "/usr/include/X11/Xlib.h" 2 3 4 ># 93 "/usr/include/X11/Xlib.h" 3 4 >extern int >_Xmblen( > > > > > char *str, > int len > > ); > > > > > >typedef char *XPointer; ># 180 "/usr/include/X11/Xlib.h" 3 4 >typedef struct _XExtData { > int number; > struct _XExtData *next; > int (*free_private)( > struct _XExtData *extension > ); > XPointer private_data; >} XExtData; > > > > >typedef struct { > int extension; > int major_opcode; > int first_event; > int first_error; >} XExtCodes; > > > > > >typedef struct { > int depth; > int bits_per_pixel; > int scanline_pad; >} XPixmapFormatValues; > > > > > >typedef struct { > int function; > unsigned long plane_mask; > unsigned long foreground; > unsigned long background; > int line_width; > int line_style; > int cap_style; > > int join_style; > int fill_style; > > int fill_rule; > int arc_mode; > Pixmap tile; > Pixmap stipple; > int ts_x_origin; > int ts_y_origin; > Font font; > int subwindow_mode; > int graphics_exposures; > int clip_x_origin; > int clip_y_origin; > Pixmap clip_mask; > int dash_offset; > char dashes; >} XGCValues; > > > > > > >typedef struct _XGC > > > > > > > >*GC; > > > > >typedef struct { > XExtData *ext_data; > VisualID visualid; > > > > int class; > > unsigned long red_mask, green_mask, blue_mask; > int bits_per_rgb; > int map_entries; >} Visual; > > > > >typedef struct { > int depth; > int nvisuals; > Visual *visuals; >} Depth; > > > > > > > >struct _XDisplay; > >typedef struct { > XExtData *ext_data; > struct _XDisplay *display; > Window root; > int width, height; > int mwidth, mheight; > int ndepths; > Depth *depths; > int root_depth; > Visual *root_visual; > GC default_gc; > Colormap cmap; > unsigned long white_pixel; > unsigned long black_pixel; > int max_maps, min_maps; > int backing_store; > int save_unders; > long root_input_mask; >} Screen; > > > > >typedef struct { > XExtData *ext_data; > int depth; > int bits_per_pixel; > int scanline_pad; >} ScreenFormat; > > > > >typedef struct { > Pixmap background_pixmap; > unsigned long background_pixel; > Pixmap border_pixmap; > unsigned long border_pixel; > int bit_gravity; > int win_gravity; > int backing_store; > unsigned long backing_planes; > unsigned long backing_pixel; > int save_under; > long event_mask; > long do_not_propagate_mask; > int override_redirect; > Colormap colormap; > Cursor cursor; >} XSetWindowAttributes; > >typedef struct { > int x, y; > int width, height; > int border_width; > int depth; > Visual *visual; > Window root; > > > > int class; > > int bit_gravity; > int win_gravity; > int backing_store; > unsigned long backing_planes; > unsigned long backing_pixel; > int save_under; > Colormap colormap; > int map_installed; > int map_state; > long all_event_masks; > long your_event_mask; > long do_not_propagate_mask; > int override_redirect; > Screen *screen; >} XWindowAttributes; > > > > > > >typedef struct { > int family; > int length; > char *address; >} XHostAddress; > > > > >typedef struct { > int typelength; > int valuelength; > char *type; > char *value; >} XServerInterpretedAddress; > > > > >typedef struct _XImage { > int width, height; > int xoffset; > int format; > char *data; > int byte_order; > int bitmap_unit; > int bitmap_bit_order; > int bitmap_pad; > int depth; > int bytes_per_line; > int bits_per_pixel; > unsigned long red_mask; > unsigned long green_mask; > unsigned long blue_mask; > XPointer obdata; > struct funcs { > struct _XImage *(*create_image)( > struct _XDisplay* , > Visual* , > unsigned int , > int , > int , > char* , > unsigned int , > unsigned int , > int , > int ); > int (*destroy_image) (struct _XImage *); > unsigned long (*get_pixel) (struct _XImage *, int, int); > int (*put_pixel) (struct _XImage *, int, int, unsigned long); > struct _XImage *(*sub_image)(struct _XImage *, int, int, unsigned int, unsigned int); > int (*add_pixel) (struct _XImage *, long); > } f; >} XImage; > > > > >typedef struct { > int x, y; > int width, height; > int border_width; > Window sibling; > int stack_mode; >} XWindowChanges; > > > > >typedef struct { > unsigned long pixel; > unsigned short red, green, blue; > char flags; > char pad; >} XColor; > > > > > > >typedef struct { > short x1, y1, x2, y2; >} XSegment; > >typedef struct { > short x, y; >} XPoint; > >typedef struct { > short x, y; > unsigned short width, height; >} XRectangle; > >typedef struct { > short x, y; > unsigned short width, height; > short angle1, angle2; >} XArc; > > > > >typedef struct { > int key_click_percent; > int bell_percent; > int bell_pitch; > int bell_duration; > int led; > int led_mode; > int key; > int auto_repeat_mode; >} XKeyboardControl; > > > >typedef struct { > int key_click_percent; > int bell_percent; > unsigned int bell_pitch, bell_duration; > unsigned long led_mask; > int global_auto_repeat; > char auto_repeats[32]; >} XKeyboardState; > > > >typedef struct { > Time time; > short x, y; >} XTimeCoord; > > > >typedef struct { > int max_keypermod; > KeyCode *modifiermap; >} XModifierKeymap; ># 519 "/usr/include/X11/Xlib.h" 3 4 >typedef struct _XDisplay Display; > > >struct _XPrivate; >struct _XrmHashBucketRec; > >typedef struct > > > >{ > XExtData *ext_data; > struct _XPrivate *private1; > int fd; > int private2; > int proto_major_version; > int proto_minor_version; > char *vendor; > XID private3; > XID private4; > XID private5; > int private6; > XID (*resource_alloc)( > struct _XDisplay* > ); > int byte_order; > int bitmap_unit; > int bitmap_pad; > int bitmap_bit_order; > int nformats; > ScreenFormat *pixmap_format; > int private8; > int release; > struct _XPrivate *private9, *private10; > int qlen; > unsigned long last_request_read; > unsigned long request; > XPointer private11; > XPointer private12; > XPointer private13; > XPointer private14; > unsigned max_request_size; > struct _XrmHashBucketRec *db; > int (*private15)( > struct _XDisplay* > ); > char *display_name; > int default_screen; > int nscreens; > Screen *screens; > unsigned long motion_buffer; > unsigned long private16; > int min_keycode; > int max_keycode; > XPointer private17; > XPointer private18; > int private19; > char *xdefaults; > >} > > > >*_XPrivDisplay; > > > > > > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window window; > Window root; > Window subwindow; > Time time; > int x, y; > int x_root, y_root; > unsigned int state; > unsigned int keycode; > int same_screen; >} XKeyEvent; >typedef XKeyEvent XKeyPressedEvent; >typedef XKeyEvent XKeyReleasedEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window window; > Window root; > Window subwindow; > Time time; > int x, y; > int x_root, y_root; > unsigned int state; > unsigned int button; > int same_screen; >} XButtonEvent; >typedef XButtonEvent XButtonPressedEvent; >typedef XButtonEvent XButtonReleasedEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window window; > Window root; > Window subwindow; > Time time; > int x, y; > int x_root, y_root; > unsigned int state; > char is_hint; > int same_screen; >} XMotionEvent; >typedef XMotionEvent XPointerMovedEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window window; > Window root; > Window subwindow; > Time time; > int x, y; > int x_root, y_root; > int mode; > int detail; > > > > > int same_screen; > int focus; > unsigned int state; >} XCrossingEvent; >typedef XCrossingEvent XEnterWindowEvent; >typedef XCrossingEvent XLeaveWindowEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window window; > int mode; > > int detail; > > > > > >} XFocusChangeEvent; >typedef XFocusChangeEvent XFocusInEvent; >typedef XFocusChangeEvent XFocusOutEvent; > > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window window; > char key_vector[32]; >} XKeymapEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window window; > int x, y; > int width, height; > int count; >} XExposeEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Drawable drawable; > int x, y; > int width, height; > int count; > int major_code; > int minor_code; >} XGraphicsExposeEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Drawable drawable; > int major_code; > int minor_code; >} XNoExposeEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window window; > int state; >} XVisibilityEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window parent; > Window window; > int x, y; > int width, height; > int border_width; > int override_redirect; >} XCreateWindowEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window event; > Window window; >} XDestroyWindowEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window event; > Window window; > int from_configure; >} XUnmapEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window event; > Window window; > int override_redirect; >} XMapEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window parent; > Window window; >} XMapRequestEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window event; > Window window; > Window parent; > int x, y; > int override_redirect; >} XReparentEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window event; > Window window; > int x, y; > int width, height; > int border_width; > Window above; > int override_redirect; >} XConfigureEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window event; > Window window; > int x, y; >} XGravityEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window window; > int width, height; >} XResizeRequestEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window parent; > Window window; > int x, y; > int width, height; > int border_width; > Window above; > int detail; > unsigned long value_mask; >} XConfigureRequestEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window event; > Window window; > int place; >} XCirculateEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window parent; > Window window; > int place; >} XCirculateRequestEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window window; > Atom atom; > Time time; > int state; >} XPropertyEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window window; > Atom selection; > Time time; >} XSelectionClearEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window owner; > Window requestor; > Atom selection; > Atom target; > Atom property; > Time time; >} XSelectionRequestEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window requestor; > Atom selection; > Atom target; > Atom property; > Time time; >} XSelectionEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window window; > Colormap colormap; > > > > int new; > > int state; >} XColormapEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window window; > Atom message_type; > int format; > union { > char b[20]; > short s[10]; > long l[5]; > } data; >} XClientMessageEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window window; > int request; > > int first_keycode; > int count; >} XMappingEvent; > >typedef struct { > int type; > Display *display; > XID resourceid; > unsigned long serial; > unsigned char error_code; > unsigned char request_code; > unsigned char minor_code; >} XErrorEvent; > >typedef struct { > int type; > unsigned long serial; > int send_event; > Display *display; > Window window; >} XAnyEvent; > > > > > >typedef union _XEvent { > int type; > XAnyEvent xany; > XKeyEvent xkey; > XButtonEvent xbutton; > XMotionEvent xmotion; > XCrossingEvent xcrossing; > XFocusChangeEvent xfocus; > XExposeEvent xexpose; > XGraphicsExposeEvent xgraphicsexpose; > XNoExposeEvent xnoexpose; > XVisibilityEvent xvisibility; > XCreateWindowEvent xcreatewindow; > XDestroyWindowEvent xdestroywindow; > XUnmapEvent xunmap; > XMapEvent xmap; > XMapRequestEvent xmaprequest; > XReparentEvent xreparent; > XConfigureEvent xconfigure; > XGravityEvent xgravity; > XResizeRequestEvent xresizerequest; > XConfigureRequestEvent xconfigurerequest; > XCirculateEvent xcirculate; > XCirculateRequestEvent xcirculaterequest; > XPropertyEvent xproperty; > XSelectionClearEvent xselectionclear; > XSelectionRequestEvent xselectionrequest; > XSelectionEvent xselection; > XColormapEvent xcolormap; > XClientMessageEvent xclient; > XMappingEvent xmapping; > XErrorEvent xerror; > XKeymapEvent xkeymap; > long pad[24]; >} XEvent; > > > > > > > >typedef struct { > short lbearing; > short rbearing; > short width; > short ascent; > short descent; > unsigned short attributes; >} XCharStruct; > > > > > >typedef struct { > Atom name; > unsigned long card32; >} XFontProp; > >typedef struct { > XExtData *ext_data; > Font fid; > unsigned direction; > unsigned min_char_or_byte2; > unsigned max_char_or_byte2; > unsigned min_byte1; > unsigned max_byte1; > int all_chars_exist; > unsigned default_char; > int n_properties; > XFontProp *properties; > XCharStruct min_bounds; > XCharStruct max_bounds; > XCharStruct *per_char; > int ascent; > int descent; >} XFontStruct; > > > > >typedef struct { > char *chars; > int nchars; > int delta; > Font font; >} XTextItem; > >typedef struct { > unsigned char byte1; > unsigned char byte2; >} XChar2b; > >typedef struct { > XChar2b *chars; > int nchars; > int delta; > Font font; >} XTextItem16; > > >typedef union { Display *display; > GC gc; > Visual *visual; > Screen *screen; > ScreenFormat *pixmap_format; > XFontStruct *font; } XEDataObject; > >typedef struct { > XRectangle max_ink_extent; > XRectangle max_logical_extent; >} XFontSetExtents; > > > > > >typedef struct _XOM *XOM; >typedef struct _XOC *XOC, *XFontSet; > >typedef struct { > char *chars; > int nchars; > int delta; > XFontSet font_set; >} XmbTextItem; > >typedef struct { > wchar_t *chars; > int nchars; > int delta; > XFontSet font_set; >} XwcTextItem; ># 1124 "/usr/include/X11/Xlib.h" 3 4 >typedef struct { > int charset_count; > char **charset_list; >} XOMCharSetList; > >typedef enum { > XOMOrientation_LTR_TTB, > XOMOrientation_RTL_TTB, > XOMOrientation_TTB_LTR, > XOMOrientation_TTB_RTL, > XOMOrientation_Context >} XOrientation; > >typedef struct { > int num_orientation; > XOrientation *orientation; >} XOMOrientation; > >typedef struct { > int num_font; > XFontStruct **font_struct_list; > char **font_name_list; >} XOMFontInfo; > >typedef struct _XIM *XIM; >typedef struct _XIC *XIC; > >typedef void (*XIMProc)( > XIM, > XPointer, > XPointer >); > >typedef int (*XICProc)( > XIC, > XPointer, > XPointer >); > >typedef void (*XIDProc)( > Display*, > XPointer, > XPointer >); > >typedef unsigned long XIMStyle; > >typedef struct { > unsigned short count_styles; > XIMStyle *supported_styles; >} XIMStyles; ># 1236 "/usr/include/X11/Xlib.h" 3 4 >typedef void *XVaNestedList; > >typedef struct { > XPointer client_data; > XIMProc callback; >} XIMCallback; > >typedef struct { > XPointer client_data; > XICProc callback; >} XICCallback; > >typedef unsigned long XIMFeedback; ># 1260 "/usr/include/X11/Xlib.h" 3 4 >typedef struct _XIMText { > unsigned short length; > XIMFeedback *feedback; > int encoding_is_wchar; > union { > char *multi_byte; > wchar_t *wide_char; > } string; >} XIMText; > >typedef unsigned long XIMPreeditState; > > > > > >typedef struct _XIMPreeditStateNotifyCallbackStruct { > XIMPreeditState state; >} XIMPreeditStateNotifyCallbackStruct; > >typedef unsigned long XIMResetState; > > > > >typedef unsigned long XIMStringConversionFeedback; ># 1294 "/usr/include/X11/Xlib.h" 3 4 >typedef struct _XIMStringConversionText { > unsigned short length; > XIMStringConversionFeedback *feedback; > int encoding_is_wchar; > union { > char *mbs; > wchar_t *wcs; > } string; >} XIMStringConversionText; > >typedef unsigned short XIMStringConversionPosition; > >typedef unsigned short XIMStringConversionType; > > > > > > >typedef unsigned short XIMStringConversionOperation; > > > > >typedef enum { > XIMForwardChar, XIMBackwardChar, > XIMForwardWord, XIMBackwardWord, > XIMCaretUp, XIMCaretDown, > XIMNextLine, XIMPreviousLine, > XIMLineStart, XIMLineEnd, > XIMAbsolutePosition, > XIMDontChange >} XIMCaretDirection; > >typedef struct _XIMStringConversionCallbackStruct { > XIMStringConversionPosition position; > XIMCaretDirection direction; > XIMStringConversionOperation operation; > unsigned short factor; > XIMStringConversionText *text; >} XIMStringConversionCallbackStruct; > >typedef struct _XIMPreeditDrawCallbackStruct { > int caret; > int chg_first; > int chg_length; > XIMText *text; >} XIMPreeditDrawCallbackStruct; > >typedef enum { > XIMIsInvisible, > XIMIsPrimary, > XIMIsSecondary >} XIMCaretStyle; > >typedef struct _XIMPreeditCaretCallbackStruct { > int position; > XIMCaretDirection direction; > XIMCaretStyle style; >} XIMPreeditCaretCallbackStruct; > >typedef enum { > XIMTextType, > XIMBitmapType >} XIMStatusDataType; > >typedef struct _XIMStatusDrawCallbackStruct { > XIMStatusDataType type; > union { > XIMText *text; > Pixmap bitmap; > } data; >} XIMStatusDrawCallbackStruct; > >typedef struct _XIMHotKeyTrigger { > KeySym keysym; > int modifier; > int modifier_mask; >} XIMHotKeyTrigger; > >typedef struct _XIMHotKeyTriggers { > int num_hot_key; > XIMHotKeyTrigger *key; >} XIMHotKeyTriggers; > >typedef unsigned long XIMHotKeyState; > > > > >typedef struct { > unsigned short count_values; > char **supported_values; >} XIMValuesList; > > > > > > > >extern int _Xdebug; > >extern XFontStruct *XLoadQueryFont( > Display* , > const char* >); > >extern XFontStruct *XQueryFont( > Display* , > XID >); > > >extern XTimeCoord *XGetMotionEvents( > Display* , > Window , > Time , > Time , > int* >); > >extern XModifierKeymap *XDeleteModifiermapEntry( > XModifierKeymap* , > > > > KeyCode , > > int >); > >extern XModifierKeymap *XGetModifierMapping( > Display* >); > >extern XModifierKeymap *XInsertModifiermapEntry( > XModifierKeymap* , > > > > KeyCode , > > int >); > >extern XModifierKeymap *XNewModifiermap( > int >); > >extern XImage *XCreateImage( > Display* , > Visual* , > unsigned int , > int , > int , > char* , > unsigned int , > unsigned int , > int , > int >); >extern int XInitImage( > XImage* >); >extern XImage *XGetImage( > Display* , > Drawable , > int , > int , > unsigned int , > unsigned int , > unsigned long , > int >); >extern XImage *XGetSubImage( > Display* , > Drawable , > int , > int , > unsigned int , > unsigned int , > unsigned long , > int , > XImage* , > int , > int >); > > > > >extern Display *XOpenDisplay( > const char* >); > >extern void XrmInitialize( > void >); > >extern char *XFetchBytes( > Display* , > int* >); >extern char *XFetchBuffer( > Display* , > int* , > int >); >extern char *XGetAtomName( > Display* , > Atom >); >extern int XGetAtomNames( > Display* , > Atom* , > int , > char** >); >extern char *XGetDefault( > Display* , > const char* , > const char* >); >extern char *XDisplayName( > const char* >); >extern char *XKeysymToString( > KeySym >); > >extern int (*XSynchronize( > Display* , > int >))( > Display* >); >extern int (*XSetAfterFunction( > Display* , > int (*) ( > Display* > ) >))( > Display* >); >extern Atom XInternAtom( > Display* , > const char* , > int >); >extern int XInternAtoms( > Display* , > char** , > int , > int , > Atom* >); >extern Colormap XCopyColormapAndFree( > Display* , > Colormap >); >extern Colormap XCreateColormap( > Display* , > Window , > Visual* , > int >); >extern Cursor XCreatePixmapCursor( > Display* , > Pixmap , > Pixmap , > XColor* , > XColor* , > unsigned int , > unsigned int >); >extern Cursor XCreateGlyphCursor( > Display* , > Font , > Font , > unsigned int , > unsigned int , > XColor const * , > XColor const * >); >extern Cursor XCreateFontCursor( > Display* , > unsigned int >); >extern Font XLoadFont( > Display* , > const char* >); >extern GC XCreateGC( > Display* , > Drawable , > unsigned long , > XGCValues* >); >extern GContext XGContextFromGC( > GC >); >extern void XFlushGC( > Display* , > GC >); >extern Pixmap XCreatePixmap( > Display* , > Drawable , > unsigned int , > unsigned int , > unsigned int >); >extern Pixmap XCreateBitmapFromData( > Display* , > Drawable , > const char* , > unsigned int , > unsigned int >); >extern Pixmap XCreatePixmapFromBitmapData( > Display* , > Drawable , > char* , > unsigned int , > unsigned int , > unsigned long , > unsigned long , > unsigned int >); >extern Window XCreateSimpleWindow( > Display* , > Window , > int , > int , > unsigned int , > unsigned int , > unsigned int , > unsigned long , > unsigned long >); >extern Window XGetSelectionOwner( > Display* , > Atom >); >extern Window XCreateWindow( > Display* , > Window , > int , > int , > unsigned int , > unsigned int , > unsigned int , > int , > unsigned int , > Visual* , > unsigned long , > XSetWindowAttributes* >); >extern Colormap *XListInstalledColormaps( > Display* , > Window , > int* >); >extern char **XListFonts( > Display* , > const char* , > int , > int* >); >extern char **XListFontsWithInfo( > Display* , > const char* , > int , > int* , > XFontStruct** >); >extern char **XGetFontPath( > Display* , > int* >); >extern char **XListExtensions( > Display* , > int* >); >extern Atom *XListProperties( > Display* , > Window , > int* >); >extern XHostAddress *XListHosts( > Display* , > int* , > int* >); >extern KeySym XKeycodeToKeysym( > Display* , > > > > KeyCode , > > int >); >extern KeySym XLookupKeysym( > XKeyEvent* , > int >); >extern KeySym *XGetKeyboardMapping( > Display* , > > > > KeyCode , > > int , > int* >); >extern KeySym XStringToKeysym( > const char* >); >extern long XMaxRequestSize( > Display* >); >extern long XExtendedMaxRequestSize( > Display* >); >extern char *XResourceManagerString( > Display* >); >extern char *XScreenResourceString( > Screen* >); >extern unsigned long XDisplayMotionBufferSize( > Display* >); >extern VisualID XVisualIDFromVisual( > Visual* >); > > > >extern int XInitThreads( > void >); > >extern void XLockDisplay( > Display* >); > >extern void XUnlockDisplay( > Display* >); > > > >extern XExtCodes *XInitExtension( > Display* , > const char* >); > >extern XExtCodes *XAddExtension( > Display* >); >extern XExtData *XFindOnExtensionList( > XExtData** , > int >); >extern XExtData **XEHeadOfExtensionList( > XEDataObject >); > > >extern Window XRootWindow( > Display* , > int >); >extern Window XDefaultRootWindow( > Display* >); >extern Window XRootWindowOfScreen( > Screen* >); >extern Visual *XDefaultVisual( > Display* , > int >); >extern Visual *XDefaultVisualOfScreen( > Screen* >); >extern GC XDefaultGC( > Display* , > int >); >extern GC XDefaultGCOfScreen( > Screen* >); >extern unsigned long XBlackPixel( > Display* , > int >); >extern unsigned long XWhitePixel( > Display* , > int >); >extern unsigned long XAllPlanes( > void >); >extern unsigned long XBlackPixelOfScreen( > Screen* >); >extern unsigned long XWhitePixelOfScreen( > Screen* >); >extern unsigned long XNextRequest( > Display* >); >extern unsigned long XLastKnownRequestProcessed( > Display* >); >extern char *XServerVendor( > Display* >); >extern char *XDisplayString( > Display* >); >extern Colormap XDefaultColormap( > Display* , > int >); >extern Colormap XDefaultColormapOfScreen( > Screen* >); >extern Display *XDisplayOfScreen( > Screen* >); >extern Screen *XScreenOfDisplay( > Display* , > int >); >extern Screen *XDefaultScreenOfDisplay( > Display* >); >extern long XEventMaskOfScreen( > Screen* >); > >extern int XScreenNumberOfScreen( > Screen* >); > >typedef int (*XErrorHandler) ( > Display* , > XErrorEvent* >); > >extern XErrorHandler XSetErrorHandler ( > XErrorHandler >); > > >typedef int (*XIOErrorHandler) ( > Display* >); > >extern XIOErrorHandler XSetIOErrorHandler ( > XIOErrorHandler >); > > >extern XPixmapFormatValues *XListPixmapFormats( > Display* , > int* >); >extern int *XListDepths( > Display* , > int , > int* >); > > > >extern int XReconfigureWMWindow( > Display* , > Window , > int , > unsigned int , > XWindowChanges* >); > >extern int XGetWMProtocols( > Display* , > Window , > Atom** , > int* >); >extern int XSetWMProtocols( > Display* , > Window , > Atom* , > int >); >extern int XIconifyWindow( > Display* , > Window , > int >); >extern int XWithdrawWindow( > Display* , > Window , > int >); >extern int XGetCommand( > Display* , > Window , > char*** , > int* >); >extern int XGetWMColormapWindows( > Display* , > Window , > Window** , > int* >); >extern int XSetWMColormapWindows( > Display* , > Window , > Window* , > int >); >extern void XFreeStringList( > char** >); >extern int XSetTransientForHint( > Display* , > Window , > Window >); > > > >extern int XActivateScreenSaver( > Display* >); > >extern int XAddHost( > Display* , > XHostAddress* >); > >extern int XAddHosts( > Display* , > XHostAddress* , > int >); > >extern int XAddToExtensionList( > struct _XExtData** , > XExtData* >); > >extern int XAddToSaveSet( > Display* , > Window >); > >extern int XAllocColor( > Display* , > Colormap , > XColor* >); > >extern int XAllocColorCells( > Display* , > Colormap , > int , > unsigned long* , > unsigned int , > unsigned long* , > unsigned int >); > >extern int XAllocColorPlanes( > Display* , > Colormap , > int , > unsigned long* , > int , > int , > int , > int , > unsigned long* , > unsigned long* , > unsigned long* >); > >extern int XAllocNamedColor( > Display* , > Colormap , > const char* , > XColor* , > XColor* >); > >extern int XAllowEvents( > Display* , > int , > Time >); > >extern int XAutoRepeatOff( > Display* >); > >extern int XAutoRepeatOn( > Display* >); > >extern int XBell( > Display* , > int >); > >extern int XBitmapBitOrder( > Display* >); > >extern int XBitmapPad( > Display* >); > >extern int XBitmapUnit( > Display* >); > >extern int XCellsOfScreen( > Screen* >); > >extern int XChangeActivePointerGrab( > Display* , > unsigned int , > Cursor , > Time >); > >extern int XChangeGC( > Display* , > GC , > unsigned long , > XGCValues* >); > >extern int XChangeKeyboardControl( > Display* , > unsigned long , > XKeyboardControl* >); > >extern int XChangeKeyboardMapping( > Display* , > int , > int , > KeySym* , > int >); > >extern int XChangePointerControl( > Display* , > int , > int , > int , > int , > int >); > >extern int XChangeProperty( > Display* , > Window , > Atom , > Atom , > int , > int , > const unsigned char* , > int >); > >extern int XChangeSaveSet( > Display* , > Window , > int >); > >extern int XChangeWindowAttributes( > Display* , > Window , > unsigned long , > XSetWindowAttributes* >); > >extern int XCheckIfEvent( > Display* , > XEvent* , > int (*) ( > Display* , > XEvent* , > XPointer > ) , > XPointer >); > >extern int XCheckMaskEvent( > Display* , > long , > XEvent* >); > >extern int XCheckTypedEvent( > Display* , > int , > XEvent* >); > >extern int XCheckTypedWindowEvent( > Display* , > Window , > int , > XEvent* >); > >extern int XCheckWindowEvent( > Display* , > Window , > long , > XEvent* >); > >extern int XCirculateSubwindows( > Display* , > Window , > int >); > >extern int XCirculateSubwindowsDown( > Display* , > Window >); > >extern int XCirculateSubwindowsUp( > Display* , > Window >); > >extern int XClearArea( > Display* , > Window , > int , > int , > unsigned int , > unsigned int , > int >); > >extern int XClearWindow( > Display* , > Window >); > >extern int XCloseDisplay( > Display* >); > >extern int XConfigureWindow( > Display* , > Window , > unsigned int , > XWindowChanges* >); > >extern int XConnectionNumber( > Display* >); > >extern int XConvertSelection( > Display* , > Atom , > Atom , > Atom , > Window , > Time >); > >extern int XCopyArea( > Display* , > Drawable , > Drawable , > GC , > int , > int , > unsigned int , > unsigned int , > int , > int >); > >extern int XCopyGC( > Display* , > GC , > unsigned long , > GC >); > >extern int XCopyPlane( > Display* , > Drawable , > Drawable , > GC , > int , > int , > unsigned int , > unsigned int , > int , > int , > unsigned long >); > >extern int XDefaultDepth( > Display* , > int >); > >extern int XDefaultDepthOfScreen( > Screen* >); > >extern int XDefaultScreen( > Display* >); > >extern int XDefineCursor( > Display* , > Window , > Cursor >); > >extern int XDeleteProperty( > Display* , > Window , > Atom >); > >extern int XDestroyWindow( > Display* , > Window >); > >extern int XDestroySubwindows( > Display* , > Window >); > >extern int XDoesBackingStore( > Screen* >); > >extern int XDoesSaveUnders( > Screen* >); > >extern int XDisableAccessControl( > Display* >); > > >extern int XDisplayCells( > Display* , > int >); > >extern int XDisplayHeight( > Display* , > int >); > >extern int XDisplayHeightMM( > Display* , > int >); > >extern int XDisplayKeycodes( > Display* , > int* , > int* >); > >extern int XDisplayPlanes( > Display* , > int >); > >extern int XDisplayWidth( > Display* , > int >); > >extern int XDisplayWidthMM( > Display* , > int >); > >extern int XDrawArc( > Display* , > Drawable , > GC , > int , > int , > unsigned int , > unsigned int , > int , > int >); > >extern int XDrawArcs( > Display* , > Drawable , > GC , > XArc* , > int >); > >extern int XDrawImageString( > Display* , > Drawable , > GC , > int , > int , > const char* , > int >); > >extern int XDrawImageString16( > Display* , > Drawable , > GC , > int , > int , > const XChar2b* , > int >); > >extern int XDrawLine( > Display* , > Drawable , > GC , > int , > int , > int , > int >); > >extern int XDrawLines( > Display* , > Drawable , > GC , > XPoint* , > int , > int >); > >extern int XDrawPoint( > Display* , > Drawable , > GC , > int , > int >); > >extern int XDrawPoints( > Display* , > Drawable , > GC , > XPoint* , > int , > int >); > >extern int XDrawRectangle( > Display* , > Drawable , > GC , > int , > int , > unsigned int , > unsigned int >); > >extern int XDrawRectangles( > Display* , > Drawable , > GC , > XRectangle* , > int >); > >extern int XDrawSegments( > Display* , > Drawable , > GC , > XSegment* , > int >); > >extern int XDrawString( > Display* , > Drawable , > GC , > int , > int , > const char* , > int >); > >extern int XDrawString16( > Display* , > Drawable , > GC , > int , > int , > const XChar2b* , > int >); > >extern int XDrawText( > Display* , > Drawable , > GC , > int , > int , > XTextItem* , > int >); > >extern int XDrawText16( > Display* , > Drawable , > GC , > int , > int , > XTextItem16* , > int >); > >extern int XEnableAccessControl( > Display* >); > >extern int XEventsQueued( > Display* , > int >); > >extern int XFetchName( > Display* , > Window , > char** >); > >extern int XFillArc( > Display* , > Drawable , > GC , > int , > int , > unsigned int , > unsigned int , > int , > int >); > >extern int XFillArcs( > Display* , > Drawable , > GC , > XArc* , > int >); > >extern int XFillPolygon( > Display* , > Drawable , > GC , > XPoint* , > int , > int , > int >); > >extern int XFillRectangle( > Display* , > Drawable , > GC , > int , > int , > unsigned int , > unsigned int >); > >extern int XFillRectangles( > Display* , > Drawable , > GC , > XRectangle* , > int >); > >extern int XFlush( > Display* >); > >extern int XForceScreenSaver( > Display* , > int >); > >extern int XFree( > void* >); > >extern int XFreeColormap( > Display* , > Colormap >); > >extern int XFreeColors( > Display* , > Colormap , > unsigned long* , > int , > unsigned long >); > >extern int XFreeCursor( > Display* , > Cursor >); > >extern int XFreeExtensionList( > char** >); > >extern int XFreeFont( > Display* , > XFontStruct* >); > >extern int XFreeFontInfo( > char** , > XFontStruct* , > int >); > >extern int XFreeFontNames( > char** >); > >extern int XFreeFontPath( > char** >); > >extern int XFreeGC( > Display* , > GC >); > >extern int XFreeModifiermap( > XModifierKeymap* >); > >extern int XFreePixmap( > Display* , > Pixmap >); > >extern int XGeometry( > Display* , > int , > const char* , > const char* , > unsigned int , > unsigned int , > unsigned int , > int , > int , > int* , > int* , > int* , > int* >); > >extern int XGetErrorDatabaseText( > Display* , > const char* , > const char* , > const char* , > char* , > int >); > >extern int XGetErrorText( > Display* , > int , > char* , > int >); > >extern int XGetFontProperty( > XFontStruct* , > Atom , > unsigned long* >); > >extern int XGetGCValues( > Display* , > GC , > unsigned long , > XGCValues* >); > >extern int XGetGeometry( > Display* , > Drawable , > Window* , > int* , > int* , > unsigned int* , > unsigned int* , > unsigned int* , > unsigned int* >); > >extern int XGetIconName( > Display* , > Window , > char** >); > >extern int XGetInputFocus( > Display* , > Window* , > int* >); > >extern int XGetKeyboardControl( > Display* , > XKeyboardState* >); > >extern int XGetPointerControl( > Display* , > int* , > int* , > int* >); > >extern int XGetPointerMapping( > Display* , > unsigned char* , > int >); > >extern int XGetScreenSaver( > Display* , > int* , > int* , > int* , > int* >); > >extern int XGetTransientForHint( > Display* , > Window , > Window* >); > >extern int XGetWindowProperty( > Display* , > Window , > Atom , > long , > long , > int , > Atom , > Atom* , > int* , > unsigned long* , > unsigned long* , > unsigned char** >); > >extern int XGetWindowAttributes( > Display* , > Window , > XWindowAttributes* >); > >extern int XGrabButton( > Display* , > unsigned int , > unsigned int , > Window , > int , > unsigned int , > int , > int , > Window , > Cursor >); > >extern int XGrabKey( > Display* , > int , > unsigned int , > Window , > int , > int , > int >); > >extern int XGrabKeyboard( > Display* , > Window , > int , > int , > int , > Time >); > >extern int XGrabPointer( > Display* , > Window , > int , > unsigned int , > int , > int , > Window , > Cursor , > Time >); > >extern int XGrabServer( > Display* >); > >extern int XHeightMMOfScreen( > Screen* >); > >extern int XHeightOfScreen( > Screen* >); > >extern int XIfEvent( > Display* , > XEvent* , > int (*) ( > Display* , > XEvent* , > XPointer > ) , > XPointer >); > >extern int XImageByteOrder( > Display* >); > >extern int XInstallColormap( > Display* , > Colormap >); > >extern KeyCode XKeysymToKeycode( > Display* , > KeySym >); > >extern int XKillClient( > Display* , > XID >); > >extern int XLookupColor( > Display* , > Colormap , > const char* , > XColor* , > XColor* >); > >extern int XLowerWindow( > Display* , > Window >); > >extern int XMapRaised( > Display* , > Window >); > >extern int XMapSubwindows( > Display* , > Window >); > >extern int XMapWindow( > Display* , > Window >); > >extern int XMaskEvent( > Display* , > long , > XEvent* >); > >extern int XMaxCmapsOfScreen( > Screen* >); > >extern int XMinCmapsOfScreen( > Screen* >); > >extern int XMoveResizeWindow( > Display* , > Window , > int , > int , > unsigned int , > unsigned int >); > >extern int XMoveWindow( > Display* , > Window , > int , > int >); > >extern int XNextEvent( > Display* , > XEvent* >); > >extern int XNoOp( > Display* >); > >extern int XParseColor( > Display* , > Colormap , > const char* , > XColor* >); > >extern int XParseGeometry( > const char* , > int* , > int* , > unsigned int* , > unsigned int* >); > >extern int XPeekEvent( > Display* , > XEvent* >); > >extern int XPeekIfEvent( > Display* , > XEvent* , > int (*) ( > Display* , > XEvent* , > XPointer > ) , > XPointer >); > >extern int XPending( > Display* >); > >extern int XPlanesOfScreen( > Screen* >); > >extern int XProtocolRevision( > Display* >); > >extern int XProtocolVersion( > Display* >); > > >extern int XPutBackEvent( > Display* , > XEvent* >); > >extern int XPutImage( > Display* , > Drawable , > GC , > XImage* , > int , > int , > int , > int , > unsigned int , > unsigned int >); > >extern int XQLength( > Display* >); > >extern int XQueryBestCursor( > Display* , > Drawable , > unsigned int , > unsigned int , > unsigned int* , > unsigned int* >); > >extern int XQueryBestSize( > Display* , > int , > Drawable , > unsigned int , > unsigned int , > unsigned int* , > unsigned int* >); > >extern int XQueryBestStipple( > Display* , > Drawable , > unsigned int , > unsigned int , > unsigned int* , > unsigned int* >); > >extern int XQueryBestTile( > Display* , > Drawable , > unsigned int , > unsigned int , > unsigned int* , > unsigned int* >); > >extern int XQueryColor( > Display* , > Colormap , > XColor* >); > >extern int XQueryColors( > Display* , > Colormap , > XColor* , > int >); > >extern int XQueryExtension( > Display* , > const char* , > int* , > int* , > int* >); > >extern int XQueryKeymap( > Display* , > char [32] >); > >extern int XQueryPointer( > Display* , > Window , > Window* , > Window* , > int* , > int* , > int* , > int* , > unsigned int* >); > >extern int XQueryTextExtents( > Display* , > XID , > const char* , > int , > int* , > int* , > int* , > XCharStruct* >); > >extern int XQueryTextExtents16( > Display* , > XID , > const XChar2b* , > int , > int* , > int* , > int* , > XCharStruct* >); > >extern int XQueryTree( > Display* , > Window , > Window* , > Window* , > Window** , > unsigned int* >); > >extern int XRaiseWindow( > Display* , > Window >); > >extern int XReadBitmapFile( > Display* , > Drawable , > const char* , > unsigned int* , > unsigned int* , > Pixmap* , > int* , > int* >); > >extern int XReadBitmapFileData( > const char* , > unsigned int* , > unsigned int* , > unsigned char** , > int* , > int* >); > >extern int XRebindKeysym( > Display* , > KeySym , > KeySym* , > int , > const unsigned char* , > int >); > >extern int XRecolorCursor( > Display* , > Cursor , > XColor* , > XColor* >); > >extern int XRefreshKeyboardMapping( > XMappingEvent* >); > >extern int XRemoveFromSaveSet( > Display* , > Window >); > >extern int XRemoveHost( > Display* , > XHostAddress* >); > >extern int XRemoveHosts( > Display* , > XHostAddress* , > int >); > >extern int XReparentWindow( > Display* , > Window , > Window , > int , > int >); > >extern int XResetScreenSaver( > Display* >); > >extern int XResizeWindow( > Display* , > Window , > unsigned int , > unsigned int >); > >extern int XRestackWindows( > Display* , > Window* , > int >); > >extern int XRotateBuffers( > Display* , > int >); > >extern int XRotateWindowProperties( > Display* , > Window , > Atom* , > int , > int >); > >extern int XScreenCount( > Display* >); > >extern int XSelectInput( > Display* , > Window , > long >); > >extern int XSendEvent( > Display* , > Window , > int , > long , > XEvent* >); > >extern int XSetAccessControl( > Display* , > int >); > >extern int XSetArcMode( > Display* , > GC , > int >); > >extern int XSetBackground( > Display* , > GC , > unsigned long >); > >extern int XSetClipMask( > Display* , > GC , > Pixmap >); > >extern int XSetClipOrigin( > Display* , > GC , > int , > int >); > >extern int XSetClipRectangles( > Display* , > GC , > int , > int , > XRectangle* , > int , > int >); > >extern int XSetCloseDownMode( > Display* , > int >); > >extern int XSetCommand( > Display* , > Window , > char** , > int >); > >extern int XSetDashes( > Display* , > GC , > int , > const char* , > int >); > >extern int XSetFillRule( > Display* , > GC , > int >); > >extern int XSetFillStyle( > Display* , > GC , > int >); > >extern int XSetFont( > Display* , > GC , > Font >); > >extern int XSetFontPath( > Display* , > char** , > int >); > >extern int XSetForeground( > Display* , > GC , > unsigned long >); > >extern int XSetFunction( > Display* , > GC , > int >); > >extern int XSetGraphicsExposures( > Display* , > GC , > int >); > >extern int XSetIconName( > Display* , > Window , > const char* >); > >extern int XSetInputFocus( > Display* , > Window , > int , > Time >); > >extern int XSetLineAttributes( > Display* , > GC , > unsigned int , > int , > int , > int >); > >extern int XSetModifierMapping( > Display* , > XModifierKeymap* >); > >extern int XSetPlaneMask( > Display* , > GC , > unsigned long >); > >extern int XSetPointerMapping( > Display* , > const unsigned char* , > int >); > >extern int XSetScreenSaver( > Display* , > int , > int , > int , > int >); > >extern int XSetSelectionOwner( > Display* , > Atom , > Window , > Time >); > >extern int XSetState( > Display* , > GC , > unsigned long , > unsigned long , > int , > unsigned long >); > >extern int XSetStipple( > Display* , > GC , > Pixmap >); > >extern int XSetSubwindowMode( > Display* , > GC , > int >); > >extern int XSetTSOrigin( > Display* , > GC , > int , > int >); > >extern int XSetTile( > Display* , > GC , > Pixmap >); > >extern int XSetWindowBackground( > Display* , > Window , > unsigned long >); > >extern int XSetWindowBackgroundPixmap( > Display* , > Window , > Pixmap >); > >extern int XSetWindowBorder( > Display* , > Window , > unsigned long >); > >extern int XSetWindowBorderPixmap( > Display* , > Window , > Pixmap >); > >extern int XSetWindowBorderWidth( > Display* , > Window , > unsigned int >); > >extern int XSetWindowColormap( > Display* , > Window , > Colormap >); > >extern int XStoreBuffer( > Display* , > const char* , > int , > int >); > >extern int XStoreBytes( > Display* , > const char* , > int >); > >extern int XStoreColor( > Display* , > Colormap , > XColor* >); > >extern int XStoreColors( > Display* , > Colormap , > XColor* , > int >); > >extern int XStoreName( > Display* , > Window , > const char* >); > >extern int XStoreNamedColor( > Display* , > Colormap , > const char* , > unsigned long , > int >); > >extern int XSync( > Display* , > int >); > >extern int XTextExtents( > XFontStruct* , > const char* , > int , > int* , > int* , > int* , > XCharStruct* >); > >extern int XTextExtents16( > XFontStruct* , > const XChar2b* , > int , > int* , > int* , > int* , > XCharStruct* >); > >extern int XTextWidth( > XFontStruct* , > const char* , > int >); > >extern int XTextWidth16( > XFontStruct* , > const XChar2b* , > int >); > >extern int XTranslateCoordinates( > Display* , > Window , > Window , > int , > int , > int* , > int* , > Window* >); > >extern int XUndefineCursor( > Display* , > Window >); > >extern int XUngrabButton( > Display* , > unsigned int , > unsigned int , > Window >); > >extern int XUngrabKey( > Display* , > int , > unsigned int , > Window >); > >extern int XUngrabKeyboard( > Display* , > Time >); > >extern int XUngrabPointer( > Display* , > Time >); > >extern int XUngrabServer( > Display* >); > >extern int XUninstallColormap( > Display* , > Colormap >); > >extern int XUnloadFont( > Display* , > Font >); > >extern int XUnmapSubwindows( > Display* , > Window >); > >extern int XUnmapWindow( > Display* , > Window >); > >extern int XVendorRelease( > Display* >); > >extern int XWarpPointer( > Display* , > Window , > Window , > int , > int , > unsigned int , > unsigned int , > int , > int >); > >extern int XWidthMMOfScreen( > Screen* >); > >extern int XWidthOfScreen( > Screen* >); > >extern int XWindowEvent( > Display* , > Window , > long , > XEvent* >); > >extern int XWriteBitmapFile( > Display* , > const char* , > Pixmap , > unsigned int , > unsigned int , > int , > int >); > >extern int XSupportsLocale (void); > >extern char *XSetLocaleModifiers( > const char* >); > >extern XOM XOpenOM( > Display* , > struct _XrmHashBucketRec* , > const char* , > const char* >); > >extern int XCloseOM( > XOM >); > >extern char *XSetOMValues( > XOM , > ... >) __attribute__ ((__sentinel__(0))); > >extern char *XGetOMValues( > XOM , > ... >) __attribute__ ((__sentinel__(0))); > >extern Display *XDisplayOfOM( > XOM >); > >extern char *XLocaleOfOM( > XOM >); > >extern XOC XCreateOC( > XOM , > ... >) __attribute__ ((__sentinel__(0))); > >extern void XDestroyOC( > XOC >); > >extern XOM XOMOfOC( > XOC >); > >extern char *XSetOCValues( > XOC , > ... >) __attribute__ ((__sentinel__(0))); > >extern char *XGetOCValues( > XOC , > ... >) __attribute__ ((__sentinel__(0))); > >extern XFontSet XCreateFontSet( > Display* , > const char* , > char*** , > int* , > char** >); > >extern void XFreeFontSet( > Display* , > XFontSet >); > >extern int XFontsOfFontSet( > XFontSet , > XFontStruct*** , > char*** >); > >extern char *XBaseFontNameListOfFontSet( > XFontSet >); > >extern char *XLocaleOfFontSet( > XFontSet >); > >extern int XContextDependentDrawing( > XFontSet >); > >extern int XDirectionalDependentDrawing( > XFontSet >); > >extern int XContextualDrawing( > XFontSet >); > >extern XFontSetExtents *XExtentsOfFontSet( > XFontSet >); > >extern int XmbTextEscapement( > XFontSet , > const char* , > int >); > >extern int XwcTextEscapement( > XFontSet , > const wchar_t* , > int >); > >extern int Xutf8TextEscapement( > XFontSet , > const char* , > int >); > >extern int XmbTextExtents( > XFontSet , > const char* , > int , > XRectangle* , > XRectangle* >); > >extern int XwcTextExtents( > XFontSet , > const wchar_t* , > int , > XRectangle* , > XRectangle* >); > >extern int Xutf8TextExtents( > XFontSet , > const char* , > int , > XRectangle* , > XRectangle* >); > >extern int XmbTextPerCharExtents( > XFontSet , > const char* , > int , > XRectangle* , > XRectangle* , > int , > int* , > XRectangle* , > XRectangle* >); > >extern int XwcTextPerCharExtents( > XFontSet , > const wchar_t* , > int , > XRectangle* , > XRectangle* , > int , > int* , > XRectangle* , > XRectangle* >); > >extern int Xutf8TextPerCharExtents( > XFontSet , > const char* , > int , > XRectangle* , > XRectangle* , > int , > int* , > XRectangle* , > XRectangle* >); > >extern void XmbDrawText( > Display* , > Drawable , > GC , > int , > int , > XmbTextItem* , > int >); > >extern void XwcDrawText( > Display* , > Drawable , > GC , > int , > int , > XwcTextItem* , > int >); > >extern void Xutf8DrawText( > Display* , > Drawable , > GC , > int , > int , > XmbTextItem* , > int >); > >extern void XmbDrawString( > Display* , > Drawable , > XFontSet , > GC , > int , > int , > const char* , > int >); > >extern void XwcDrawString( > Display* , > Drawable , > XFontSet , > GC , > int , > int , > const wchar_t* , > int >); > >extern void Xutf8DrawString( > Display* , > Drawable , > XFontSet , > GC , > int , > int , > const char* , > int >); > >extern void XmbDrawImageString( > Display* , > Drawable , > XFontSet , > GC , > int , > int , > const char* , > int >); > >extern void XwcDrawImageString( > Display* , > Drawable , > XFontSet , > GC , > int , > int , > const wchar_t* , > int >); > >extern void Xutf8DrawImageString( > Display* , > Drawable , > XFontSet , > GC , > int , > int , > const char* , > int >); > >extern XIM XOpenIM( > Display* , > struct _XrmHashBucketRec* , > char* , > char* >); > >extern int XCloseIM( > XIM >); > >extern char *XGetIMValues( > XIM , ... >) __attribute__ ((__sentinel__(0))); > >extern char *XSetIMValues( > XIM , ... >) __attribute__ ((__sentinel__(0))); > >extern Display *XDisplayOfIM( > XIM >); > >extern char *XLocaleOfIM( > XIM >); > >extern XIC XCreateIC( > XIM , ... >) __attribute__ ((__sentinel__(0))); > >extern void XDestroyIC( > XIC >); > >extern void XSetICFocus( > XIC >); > >extern void XUnsetICFocus( > XIC >); > >extern wchar_t *XwcResetIC( > XIC >); > >extern char *XmbResetIC( > XIC >); > >extern char *Xutf8ResetIC( > XIC >); > >extern char *XSetICValues( > XIC , ... >) __attribute__ ((__sentinel__(0))); > >extern char *XGetICValues( > XIC , ... >) __attribute__ ((__sentinel__(0))); > >extern XIM XIMOfIC( > XIC >); > >extern int XFilterEvent( > XEvent* , > Window >); > >extern int XmbLookupString( > XIC , > XKeyPressedEvent* , > char* , > int , > KeySym* , > int* >); > >extern int XwcLookupString( > XIC , > XKeyPressedEvent* , > wchar_t* , > int , > KeySym* , > int* >); > >extern int Xutf8LookupString( > XIC , > XKeyPressedEvent* , > char* , > int , > KeySym* , > int* >); > >extern XVaNestedList XVaCreateNestedList( > int , ... >) __attribute__ ((__sentinel__(0))); > > > >extern int XRegisterIMInstantiateCallback( > Display* , > struct _XrmHashBucketRec* , > char* , > char* , > XIDProc , > XPointer >); > >extern int XUnregisterIMInstantiateCallback( > Display* , > struct _XrmHashBucketRec* , > char* , > char* , > XIDProc , > XPointer >); > >typedef void (*XConnectionWatchProc)( > Display* , > XPointer , > int , > int , > XPointer* >); > > >extern int XInternalConnectionNumbers( > Display* , > int** , > int* >); > >extern void XProcessInternalConnection( > Display* , > int >); > >extern int XAddConnectionWatch( > Display* , > XConnectionWatchProc , > XPointer >); > >extern void XRemoveConnectionWatch( > Display* , > XConnectionWatchProc , > XPointer >); > >extern void XSetAuthorization( > char * , > int , > char * , > int >); > >extern int _Xmbtowc( > wchar_t * , > > > > > char * , > int > >); > >extern int _Xwctomb( > char * , > wchar_t >); > > ># 35 "fontP.h" 2 ># 109 "fontP.h" ># 1 "../inc/charset.h" 1 ># 110 "fontP.h" 2 > >struct fontabbrev { > char *abbrev; > enum font_type ft; > unsigned int italic: 1; > unsigned int bold: 1; > unsigned int dont_search: 1; > unsigned int searched: 1; > struct font_name *found; >}; > >struct kern_info { > int16 following; > int16 kern; > struct kern_info *next; >}; > > > > >struct font_data { > struct font_data *next; > struct font_name *parent; > int16 point_size; > int16 weight; > int16 x_height, cap_height; > enum font_style style; > enum charset map; > unichar_t *charmap_name; > char *localname; > char *fontfile, *metricsfile; > XFontStruct *info; > struct kern_info **kerns; > > uint32 scale_metrics_by; > > > > > unsigned int needsremap: 1; > unsigned int remapped: 1; > unsigned int includenoted: 1; > unsigned int copiedtoprinter: 1; > unsigned int needsprocessing: 1; > unsigned int copy_from_screen: 1; > unsigned int was_scaled: 1; > unsigned int is_scalable: 1; > struct font_data *screen_font; > struct font_data *base; > uint8 *exists; >}; > > > >struct font_name { > struct font_name *next; > unichar_t *family_name; > enum font_type ft; > int32 map_mask; > struct font_data *data[(em_max+1+17)]; > >}; > >struct family_info { > unichar_t *family_names; > int16 name_cnt; > enum font_type ft; > > struct font_name **fonts; > struct family_info *next; > struct font_instance *instanciations; > struct family_info *screen_fam; > >}; > >struct font_instance { > FontRequest rq; > struct family_info *fam; > struct font_instance *next; > struct font_data *fonts[(em_max+1+17)]; > struct font_data **smallcaps; > struct font_data **unifonts; > uint32 *level_masks; > > > > > > > GDisplay *mapped_to; >}; > >typedef struct font_state { > long mappings_avail; > int res, res_closer_to; > struct font_name *font_names[26]; > struct family_info *fam_hash[26]; > struct font_name *lastchance[(em_max+1+17)][ft_max]; > struct font_name *lastchance2[(em_max+1+17)][ft_max]; > > struct font_data *StolenFromScreen; > unsigned int allow_scaling: 1; > unsigned int names_loaded: 1; > unsigned int use_screen_fonts: 1; >} FState; > > >extern struct fontabbrev _gdraw_fontabbrev[]; > >extern int _GDraw_ClassifyFontName(unichar_t *fontname, int *italic, int *bold); >extern enum charset _GDraw_ParseMapping(unichar_t *setname); >extern int _GDraw_FontFigureWeights(unichar_t *weight_str); >extern struct font_name *_GDraw_HashFontFamily(FState *fonts,unichar_t *name, int prop); >extern void _GDraw_RemoveDuplicateFonts(FState *fonts); >extern void _GDraw_FillLastChance(FState *fonts); >extern void _GDraw_FreeFD(struct font_data *fd); ># 38 "gpsdraw.c" 2 ># 1 "../inc/ustring.h" 1 ># 29 "../inc/ustring.h" ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/stdarg.h" 1 3 4 ># 105 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/stdarg.h" 3 4 >typedef __gnuc_va_list va_list; ># 30 "../inc/ustring.h" 2 ># 1 "/usr/include/string.h" 1 3 4 ># 28 "/usr/include/string.h" 3 4 > > > > > ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/stddef.h" 1 3 4 ># 34 "/usr/include/string.h" 2 3 4 > > > > >extern void *memcpy (void *__restrict __dest, > __const void *__restrict __src, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern void *memmove (void *__dest, __const void *__src, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > > >extern void *memccpy (void *__restrict __dest, __const void *__restrict __src, > int __c, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > >extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int memcmp (__const void *__s1, __const void *__s2, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern void *memchr (__const void *__s, int __c, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > ># 82 "/usr/include/string.h" 3 4 > > >extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strncpy (char *__restrict __dest, > __const char *__restrict __src, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern char *strcat (char *__restrict __dest, __const char *__restrict __src) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strncat (char *__restrict __dest, __const char *__restrict __src, > size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int strcmp (__const char *__s1, __const char *__s2) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int strcoll (__const char *__s1, __const char *__s2) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern size_t strxfrm (char *__restrict __dest, > __const char *__restrict __src, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > ># 130 "/usr/include/string.h" 3 4 >extern char *strdup (__const char *__s) > __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); ># 165 "/usr/include/string.h" 3 4 > > >extern char *strchr (__const char *__s, int __c) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > >extern char *strrchr (__const char *__s, int __c) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > ># 181 "/usr/include/string.h" 3 4 > > > >extern size_t strcspn (__const char *__s, __const char *__reject) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern size_t strspn (__const char *__s, __const char *__accept) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strpbrk (__const char *__s, __const char *__accept) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strstr (__const char *__haystack, __const char *__needle) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > > >extern char *strtok (char *__restrict __s, __const char *__restrict __delim) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > > > > >extern char *__strtok_r (char *__restrict __s, > __const char *__restrict __delim, > char **__restrict __save_ptr) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); > >extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim, > char **__restrict __save_ptr) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); ># 240 "/usr/include/string.h" 3 4 > > >extern size_t strlen (__const char *__s) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > ># 254 "/usr/include/string.h" 3 4 > > >extern char *strerror (int __errnum) __attribute__ ((__nothrow__)); > ># 270 "/usr/include/string.h" 3 4 >extern int strerror_r (int __errnum, char *__buf, size_t __buflen) __asm__ ("" "__xpg_strerror_r") __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); ># 288 "/usr/include/string.h" 3 4 >extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern void bcopy (__const void *__src, void *__dest, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int bcmp (__const void *__s1, __const void *__s2, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern char *index (__const char *__s, int __c) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > >extern char *rindex (__const char *__s, int __c) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > >extern int ffs (int __i) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); ># 325 "/usr/include/string.h" 3 4 >extern int strcasecmp (__const char *__s1, __const char *__s2) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); ># 348 "/usr/include/string.h" 3 4 >extern char *strsep (char **__restrict __stringp, > __const char *__restrict __delim) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); ># 414 "/usr/include/string.h" 3 4 ># 1 "/usr/include/bits/string.h" 1 3 4 ># 415 "/usr/include/string.h" 2 3 4 > > ># 1 "/usr/include/bits/string2.h" 1 3 4 ># 394 "/usr/include/bits/string2.h" 3 4 >extern void *__rawmemchr (const void *__s, int __c); ># 969 "/usr/include/bits/string2.h" 3 4 >extern __inline__ size_t __strcspn_c1 (__const char *__s, int __reject); >extern __inline__ size_t >__strcspn_c1 (__const char *__s, int __reject) >{ > register size_t __result = 0; > while (__s[__result] != '\0' && __s[__result] != __reject) > ++__result; > return __result; >} > >extern __inline__ size_t __strcspn_c2 (__const char *__s, int __reject1, > int __reject2); >extern __inline__ size_t >__strcspn_c2 (__const char *__s, int __reject1, int __reject2) >{ > register size_t __result = 0; > while (__s[__result] != '\0' && __s[__result] != __reject1 > && __s[__result] != __reject2) > ++__result; > return __result; >} > >extern __inline__ size_t __strcspn_c3 (__const char *__s, int __reject1, > int __reject2, int __reject3); >extern __inline__ size_t >__strcspn_c3 (__const char *__s, int __reject1, int __reject2, > int __reject3) >{ > register size_t __result = 0; > while (__s[__result] != '\0' && __s[__result] != __reject1 > && __s[__result] != __reject2 && __s[__result] != __reject3) > ++__result; > return __result; >} ># 1045 "/usr/include/bits/string2.h" 3 4 >extern __inline__ size_t __strspn_c1 (__const char *__s, int __accept); >extern __inline__ size_t >__strspn_c1 (__const char *__s, int __accept) >{ > register size_t __result = 0; > > while (__s[__result] == __accept) > ++__result; > return __result; >} > >extern __inline__ size_t __strspn_c2 (__const char *__s, int __accept1, > int __accept2); >extern __inline__ size_t >__strspn_c2 (__const char *__s, int __accept1, int __accept2) >{ > register size_t __result = 0; > > while (__s[__result] == __accept1 || __s[__result] == __accept2) > ++__result; > return __result; >} > >extern __inline__ size_t __strspn_c3 (__const char *__s, int __accept1, > int __accept2, int __accept3); >extern __inline__ size_t >__strspn_c3 (__const char *__s, int __accept1, int __accept2, int __accept3) >{ > register size_t __result = 0; > > while (__s[__result] == __accept1 || __s[__result] == __accept2 > || __s[__result] == __accept3) > ++__result; > return __result; >} ># 1121 "/usr/include/bits/string2.h" 3 4 >extern __inline__ char *__strpbrk_c2 (__const char *__s, int __accept1, > int __accept2); >extern __inline__ char * >__strpbrk_c2 (__const char *__s, int __accept1, int __accept2) >{ > > while (*__s != '\0' && *__s != __accept1 && *__s != __accept2) > ++__s; > return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s; >} > >extern __inline__ char *__strpbrk_c3 (__const char *__s, int __accept1, > int __accept2, int __accept3); >extern __inline__ char * >__strpbrk_c3 (__const char *__s, int __accept1, int __accept2, > int __accept3) >{ > > while (*__s != '\0' && *__s != __accept1 && *__s != __accept2 > && *__s != __accept3) > ++__s; > return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s; >} ># 1173 "/usr/include/bits/string2.h" 3 4 >extern __inline__ char *__strtok_r_1c (char *__s, char __sep, char **__nextp); >extern __inline__ char * >__strtok_r_1c (char *__s, char __sep, char **__nextp) >{ > char *__result; > if (__s == ((void *)0)) > __s = *__nextp; > while (*__s == __sep) > ++__s; > __result = ((void *)0); > if (*__s != '\0') > { > __result = __s++; > while (*__s != '\0') > if (*__s++ == __sep) > { > __s[-1] = '\0'; > break; > } > *__nextp = __s; > } > return __result; >} ># 1205 "/usr/include/bits/string2.h" 3 4 >extern char *__strsep_g (char **__stringp, __const char *__delim); ># 1223 "/usr/include/bits/string2.h" 3 4 >extern __inline__ char *__strsep_1c (char **__s, char __reject); >extern __inline__ char * >__strsep_1c (char **__s, char __reject) >{ > register char *__retval = *__s; > if (__retval != ((void *)0) && (*__s = (__extension__ (__builtin_constant_p (__reject) && !__builtin_constant_p (__retval) && (__reject) == '\0' ? (char *) __rawmemchr (__retval, __reject) : __builtin_strchr (__retval, __reject)))) != ((void *)0)) > *(*__s)++ = '\0'; > return __retval; >} > >extern __inline__ char *__strsep_2c (char **__s, char __reject1, char __reject2); >extern __inline__ char * >__strsep_2c (char **__s, char __reject1, char __reject2) >{ > register char *__retval = *__s; > if (__retval != ((void *)0)) > { > register char *__cp = __retval; > while (1) > { > if (*__cp == '\0') > { > __cp = ((void *)0); > break; > } > if (*__cp == __reject1 || *__cp == __reject2) > { > *__cp++ = '\0'; > break; > } > ++__cp; > } > *__s = __cp; > } > return __retval; >} > >extern __inline__ char *__strsep_3c (char **__s, char __reject1, char __reject2, > char __reject3); >extern __inline__ char * >__strsep_3c (char **__s, char __reject1, char __reject2, char __reject3) >{ > register char *__retval = *__s; > if (__retval != ((void *)0)) > { > register char *__cp = __retval; > while (1) > { > if (*__cp == '\0') > { > __cp = ((void *)0); > break; > } > if (*__cp == __reject1 || *__cp == __reject2 || *__cp == __reject3) > { > *__cp++ = '\0'; > break; > } > ++__cp; > } > *__s = __cp; > } > return __retval; >} ># 1304 "/usr/include/bits/string2.h" 3 4 >extern char *__strdup (__const char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); ># 1323 "/usr/include/bits/string2.h" 3 4 >extern char *__strndup (__const char *__string, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); ># 418 "/usr/include/string.h" 2 3 4 ># 426 "/usr/include/string.h" 3 4 > ># 31 "../inc/ustring.h" 2 ># 1 "/usr/include/memory.h" 1 3 4 ># 32 "../inc/ustring.h" 2 > > > >extern char *copy(const char *); >extern char *copyn(const char *,long); >extern unichar_t *u_copy(const unichar_t*); >extern unichar_t *u_copyn(const unichar_t*, long); >extern unichar_t *uc_copyn(const char *, int); >extern unichar_t *uc_copy(const char*); >extern unichar_t *u_concat(const unichar_t*,const unichar_t*); >extern char *cu_copyn(const unichar_t *pt,int len); >extern char *cu_copy(const unichar_t*); > >extern long uc_strcmp(const unichar_t *,const char *); >extern long u_strcmp(const unichar_t *, const unichar_t *); >extern long uc_strncmp(const unichar_t *,const char *,int); >extern long u_strncmp(const unichar_t *, const unichar_t *,int); >extern long uc_strmatch(const unichar_t *,const char *); >extern long uc_strnmatch(const unichar_t *,const char *,int); >extern long u_strnmatch(const unichar_t *str1, const unichar_t *str2, int len); >extern long u_strmatch(const unichar_t *, const unichar_t *); >extern int strmatch(const char *,const char *); >extern int strnmatch(const char *str1, const char *str2, int n); >extern void uc_strcpy(unichar_t *, const char *); >extern void cu_strcpy(char *, const unichar_t *); >extern void u_strcpy(unichar_t *, const unichar_t *); >extern void u_strncpy(unichar_t *, const unichar_t *,int); >extern void cu_strncpy(char *to, const unichar_t *from, int len); >extern void uc_strncpy(unichar_t *to, const char *from, int len); >extern void uc_strcat(unichar_t *, const char *); >extern void uc_strncat(unichar_t *, const char *,int len); >extern void cu_strcat(char *, const unichar_t *); >extern void cu_strncat(char *, const unichar_t *,int len); >extern void u_strcat(unichar_t *, const unichar_t *); >extern void u_strncat(unichar_t *, const unichar_t *, int len); >extern int u_strlen(const unichar_t *); >extern unichar_t *u_strchr(const unichar_t *,unichar_t); >extern unichar_t *u_strrchr(const unichar_t *,unichar_t); >extern unichar_t *uc_strstr(const unichar_t *,const char *); >extern unichar_t *u_strstr(const unichar_t *,const unichar_t *); >extern unichar_t *uc_strstrmatch(const unichar_t *,const char *); >extern unichar_t *u_strstrmatch(const unichar_t *,const unichar_t *); >extern char * strstrmatch(const char *,const char *); > >extern char *u_to_c(const unichar_t *); >extern unichar_t *c_to_u(const char *); > >extern unsigned long u_strtoul(const unichar_t *,unichar_t **,int); >extern long u_strtol(const unichar_t *,unichar_t **,int); >extern double u_strtod(const unichar_t *,unichar_t **); > >extern char *strstart(const char *initial,const char *full); >extern char *strstartmatch(const char *initial,const char *full); >extern unichar_t *u_strstartmatch(const unichar_t *initial, const unichar_t *full); >extern unichar_t *cu_strstartmatch(const char *initial, const unichar_t *full); > >extern int32 *utf82u32_strncpy(int32 *ubuf,const char *utf8buf,int len); >extern int32 *utf82u32_copy(const char *utf8buf); >extern char *u322utf8_copy(const int32 *ubuf); >extern char *u322utf8_strncpy(char *utf8buf, const int32 *ubuf,int len); >extern int32 utf8_ildb(const char **utf8_text); >extern char *utf8_idpb(char *utf8_text,uint32 ch); >extern char *utf8_db(char *utf8_text); >extern char *utf8_ib(char *utf8_text); >extern int utf8_valid(const char *str); >extern char *latin1_2_utf8_strcpy(char *utf8buf,const char *lbuf); >extern char *latin1_2_utf8_copy(const char *lbuf); >extern char *utf8_2_latin1_copy(const char *utf8buf); >extern int utf8_strlen(const char *utf8_str); >extern int utf82u_strlen(const char *utf8_str); >extern char *def2utf8_copy(const char *from); >extern char *utf82def_copy(const char *ufrom); > >extern unichar_t *utf82u_strncpy(unichar_t *ubuf,const char *utf8buf,int len); >extern unichar_t *utf82u_strcpy(unichar_t *ubuf,const char *utf8buf); >extern void utf82u_strcat(unichar_t *ubuf,const char *utf8buf); >extern unichar_t *utf82u_copyn(const char *utf8buf,int len); >extern unichar_t *utf82u_copy(const char *utf8buf); >extern char *u2utf8_strcpy(char *utf8buf,const unichar_t *ubuf); >extern char *u2utf8_copy(const unichar_t *ubuf); >extern char *u2utf8_copyn(const unichar_t *ubuf,int len); >extern unichar_t *encoding2u_strncpy(unichar_t *uto, const char *from, int n, enum encoding cs); >extern char *u2encoding_strncpy(char *to, const unichar_t *ufrom, int n, enum encoding cs); >extern unichar_t *def2u_strncpy(unichar_t *uto, const char *from, int n); >extern char *u2def_strncpy(char *to, const unichar_t *ufrom, int n); >extern unichar_t *def2u_copy(const char *from); >extern char *u2def_copy(const unichar_t *ufrom); > >extern int u_sprintf(unichar_t *str, const unichar_t *format, ... ); >extern int u_snprintf(unichar_t *str, int len, const unichar_t *format, ... ); >extern int u_vsnprintf(unichar_t *str, int len, const unichar_t *format, va_list ap ); ># 39 "gpsdraw.c" 2 ># 1 "../inc/fileutil.h" 1 ># 30 "../inc/fileutil.h" >extern char *GFileGetAbsoluteName(char *name, char *result, int rsiz); >extern char *GFileBuildName(char *dir,char *fname,char *buffer,int size); >extern char *GFileReplaceName(char *oldname,char *fname,char *buffer,int size); >extern char *GFileNameTail(const char *oldname); >extern int GFileIsDir(const char *file); >extern int GFileExists(const char *file); >extern int GFileModifyable(const char *file); >extern int GFileModifyableDir(const char *file); >extern int GFileReadable(char *file); >extern int GFileMkDir(char *name); >extern int GFileRmDir(char *name); >extern int GFileUnlink(char *name); ># 40 "gpsdraw.c" 2 > > > > > >static void PSDrawInit(GDisplay *gdisp) { > > >} > >static void PSDrawTerm(GDisplay *gdisp) { >} > >static void *PSDrawNativeDisplay(GDisplay *gdisp) { >return( ((void *)0) ); >} > >static void PSDrawSetDefaultIcon(GWindow icon) { >} > >static GWindow PSDrawCreateSubWindow(GWindow w, GRect *pos, > int (*eh)(GWindow,GEvent *), void *user_data, GWindowAttrs *wattrs) { > fprintf( stderr, "CreateSubWindow not implemented for postscript\n" ); >return ((void *)0); >} > >static GWindow PSDrawCreatePixmap(GDisplay *gdisp, uint16 width, uint16 height) { > fprintf( stderr, "CreatePixmap not implemented for postscript\n" ); >return ((void *)0); >} > >static GWindow PSDrawCreateBitmap(GDisplay *gdisp, uint16 width, uint16 height, uint8 *data) { > fprintf( stderr, "CreateBitmap not implemented for postscript\n" ); >return ((void *)0); >} > >static GCursor PSDrawCreateCursor(GWindow src,GWindow mask,Color fg,Color bg, > int16 x, int16 y ) { > fprintf( stderr, "CreateCursor not implemented for postscript\n" ); >return 0; >} > >static void PSSetZoom(GWindow w,GRect *r, enum gzoom_flags flags ) { > fprintf( stderr, "SetZoom not implemented for postscript\n" ); >} > >static void PSDestroyCursor(GDisplay *gdisp,GCursor ct ) { > fprintf( stderr, "DestroyCursor not implemented for postscript\n" ); >} > >static int PSNativeWindowExists(GDisplay *gdisp,void *native ) { >return( 0 ); >} > >static void PSSetWindowBorder(GWindow w,int width, Color col ) { > fprintf( stderr, "SetWindowBorder not implemented for postscript\n" ); >} > >static int PSSetDither(GDisplay *gdisp,int dither ) { > fprintf( stderr, "SetDither not implemented for postscript\n" ); >return( 1 ); >} > >static void PSDrawReparentWindow(GWindow child,GWindow newparent, int x,int y) { > >} > >static void PSDrawSetVisible(GWindow w,int vis ) { > >} > >static void PSDrawMove(GWindow w, int32 x, int32 y) { > >} > >static void PSDrawResize(GWindow w, int32 width, int32 height) { > >} > >static void PSDrawMoveResize(GWindow w, int32 x, int32 y, int32 width, int32 height) { > >} > >static void PSDrawRaise(GWindow w) { > >} > >static void PSDrawRaiseAbove(GWindow w,GWindow below) { > >} > >static int PSDrawIsAbove(GWindow w,GWindow below) { >return( -1 ); >} > >static void PSDrawLower(GWindow w) { > >} > >static void PSDrawSetWindowTitles(GWindow w, const unichar_t *title, const unichar_t *icontit) { > >} > >static void PSDrawSetWindowTitles8(GWindow w, const char *title, const char *icontit) { > >} > >static void PSDrawGetPointerPosition(GWindow w, GEvent *ret) { > > > ret->u.mouse.state = 0; > ret->u.mouse.x = 0; > ret->u.mouse.y = 0; >} > >static void PSDrawSetCursor(GWindow w, GCursor ct) { > >} > >static GCursor PSDrawGetCursor(GWindow w) { > >return( ct_default ); >} > >static GWindow PSDrawGetRedirectWindow(GDisplay *gd) { > >return( ((void *)0) ); >} > >static unichar_t *PSDrawGetWindowTitle(GWindow w) { >return(((void *)0)); >} > >static char *PSDrawGetWindowTitle8(GWindow w) { >return(((void *)0)); >} > >static void PSDrawTranslateCoordinates(GWindow _from,GWindow _to, GPoint *pt) { > >} > >static void PSDrawScroll(GWindow w, GRect *rect, int32 hor, int32 vert) { > >} > >static void PSDrawBeep(GDisplay *gdisp) { > >} > >static void PSDrawFlush(GDisplay *gdisp) { > > if ( gdisp->groot!=((void *)0) ) > fflush(((GPSWindow) (gdisp->groot))->output_file); >} > >static GIC *PSDrawCreateInputContext(GWindow w,enum gic_style def_style) { > >return( ((void *)0) ); >} > >static void PSDrawSetGIC(GWindow w, GIC *gic, int x, int y) { > >} > >static void PSDrawPointerUngrab(GDisplay *gdisp) { > >} > >static void PSDrawPointerGrab(GWindow w) { > >} > >static void PSDrawGrabSelection(GWindow w,enum selnames sel) { > >} > >static void PSDrawAddSelectionType(GWindow w,enum selnames sel,char *type, > void *data,int32 len,int32 unitsize,void *(*gendata)(void *,int32 *len), > void (*freedata)(void *)) { > >} > >static void *PSDrawRequestSelection(GWindow w,enum selnames sn, char *typename, int32 *len) { > >return( ((void *)0) ); >} > >static int PSDrawSelectionHasType(GWindow w,enum selnames sn, char *typename) { > >return( 0 ); >} > >static void PSDrawRequestExpose(GWindow gw, GRect *rect,int doclear) { > >} > >static GTimer *PSDrawRequestTimer(GWindow w,int32 time_from_now,int32 frequency, > void *userdata) { >return( ((void *)0) ); >} > >static void PSDrawCancelTimer(GTimer *timer) { >} > >static void PSDrawSyncThread(GDisplay *gdisp, void (*func)(void *), void *data) { > (func)(data); >} > >static void PSDrawForceUpdate(GWindow gw) { >} > >static void PSDrawSync(GDisplay *gdisp) { >} > >static void PSDrawSkipMouseMoveEvents(GWindow gw, GEvent *last) { >} > >static void PSDrawProcessPendingEvents(GDisplay *gdisp) { >} > >static void PSDrawProcessWindowEvents(GWindow gw) { >} > >static void PSDrawEventLoop(GDisplay *gd) { >} > >static void PSDrawPostEvent(GEvent *e) { >} > >static void PSDrawPostDragEvent(GWindow w,GEvent *mouse,enum event_type et) { >} > >static int PSDrawRequestDeviceEvents(GWindow w,int devcnt,struct gdeveventmask *de) { >return( 0 ); >} > >static GImage *_PSDraw_CopyScreenToImage(GWindow w, GRect *rect) { >return( ((void *)0) ); >} > >static void _PSDraw_Pixmap( GWindow _w, GWindow _pixmap, GRect *src, int32 x, int32 y) { >} > >static void _PSDraw_TilePixmap( GWindow _w, GWindow _pixmap, GRect *src, int32 x, int32 y) { >} > > > > > >double _GSPDraw_Distance(GPSWindow ps,int x) { >return( 72.0*(double) x/(double)ps->display->res ); >} > >double _GSPDraw_XPos(GPSWindow ps,int x) { >return( 72.0*(double) x/(double)ps->display->res ); >} > >double _GSPDraw_YPos(GPSWindow ps,int y) { >return( -72.0*(double) y/(double)ps->display->res ); >} > >static void PSUnbufferLine(GPSWindow ps) { > if ( ps->buffered_line ) { > fprintf( ps->output_file," %g %g lineto\n", _GSPDraw_XPos(ps,ps->line_x), _GSPDraw_YPos(ps,ps->line_y) ); > ++ps->pnt_cnt; > ps->buffered_line = 0; > } >} > >void _GPSDraw_FlushPath(GPSWindow ps) { > if ( ps->buffered_line ) > PSUnbufferLine(ps); > if ( ps->pnt_cnt>0 ) { > fprintf( ps->output_file,"stroke\n" ); > ps->pnt_cnt = 0; > ps->cur_x = ps->cur_y = -1; > } >} > >static void PSDrawNewpath(GPSWindow ps) { > if ( ps->pnt_cnt!=0 ) { > _GPSDraw_FlushPath(ps); > fprintf( ps->output_file,"newpath\n" ); > ps->pnt_cnt = 0; > ps->cur_x = ps->cur_y = -1; > } >} > >static void PSMoveTo(GPSWindow ps, int x, int y) { > if ( ps->pnt_cnt>=20 ) > _GPSDraw_FlushPath(ps); > if ( ps->pnt_cnt==-1 ) > PSDrawNewpath(ps); > if ( ps->cur_x!=x || ps->cur_y!=y ) { > if ( ps->buffered_line ) > PSUnbufferLine(ps); > fprintf( ps->output_file," %g %g moveto\n", _GSPDraw_XPos(ps,x), _GSPDraw_YPos(ps,y) ); > ++ps->pnt_cnt; > ps->cur_x = x; ps->cur_y = y; > } >} > >static void PSLineTo(GPSWindow ps, int x, int y) { > if ( ps->pnt_cnt>=20 ) > _GPSDraw_FlushPath(ps); > if ( ps->pnt_cnt==-1 ) > PSDrawNewpath(ps); > if ( ps->cur_x!=x || ps->cur_y!=y ) { > if ( !ps->buffered_line && ps->cur_y==y ) { > ps->line_x = x; ps->line_y = y; > ps->buffered_line = 1; > } else if ( ps->buffered_line && ps->cur_y==y ) { > ps->line_x = x; > } else { > if ( ps->buffered_line ) > PSUnbufferLine(ps); > fprintf( ps->output_file," %g %g lineto\n", _GSPDraw_XPos(ps,x), _GSPDraw_YPos(ps,y) ); > ++ps->pnt_cnt; > } > ps->cur_x = x; ps->cur_y = y; > } >} ># 374 "gpsdraw.c" >static void PSDoArc(GPSWindow ps, double cx, double cy, double radx, double rady, > double sa, double ea ) { > double ss, sc, es, ec; > double lenx, leny; > double sx, sy, ex, ey; > double c1x, c1y, c2x, c2y; > > lenx = ((ea-sa)/90.0) * radx * .552; > leny = ((ea-sa)/90.0) * rady * .552; > sa *= 3.1415926535897932/180; ea *= 3.1415926535897932/180; > ss = -sin(sa); sc = cos(sa); es = -sin(ea); ec = cos(ea); > sx = cx+sc*radx; sy = cy+ss*rady; > PSMoveTo(ps,sx,sy); > ex = cx+ec*radx; ey = cy+es*rady; > c1x = sx + lenx*ss; c1y = sy - leny*sc; > c2x = ex - lenx*es; c2y = ey + leny*ec; > fprintf( ps->output_file, " %g %g %g %g %g %g curveto", > _GSPDraw_XPos(ps,c1x), _GSPDraw_YPos(ps,c1y), > _GSPDraw_XPos(ps,c2x), _GSPDraw_YPos(ps,c2y), > _GSPDraw_XPos(ps,ex), _GSPDraw_YPos(ps,ey) ); > ps->cur_x = ex; ps->cur_y = ey; >} > >static void PSMyArc(GPSWindow ps, double cx, double cy, double radx, double rady, > double sa, double ta ) { > double ea, temp; > > if ( ta<0 ) { > sa += ta; > ta = -ta; > } > if ( ta>360 ) ta = 360; > if ( ta==360 ) sa = 0; > while ( sa<0 ) sa+= 360; > while ( sa>=360 ) sa -= 360; > ea = sa+ta; > > while ( sa<ea ) { > temp = ((int) ((sa+90)/90))*90; > PSDoArc(ps,cx,cy,radx,rady,sa,ea<temp?ea:temp); > sa = temp; > } >} > >static void PSDrawElipse(GPSWindow ps, GRect *rct,char *command) { > float cx, cy, radx, rady; > > > > _GPSDraw_FlushPath(ps); > radx = rct->width/2.0; > rady = rct->height/2.0; > cx = rct->x + radx; > cy = rct->y + rady; > PSDrawNewpath(ps); > > > > > > > if ( radx!=rady ) > PSMyArc(ps,cx,cy,radx,rady,0,360); > else > fprintf( ps->output_file, " %g %g %g 0 360 arc", _GSPDraw_XPos(ps,cx), _GSPDraw_YPos(ps,cy), _GSPDraw_Distance(ps,radx)); > fprintf( ps->output_file, " closepath %s\n", command ); > ps->pnt_cnt = 0; > ps->cur_x = ps->cur_y = -1; >} > >static void PSDrawDoPoly(GPSWindow ps, GPoint *pt, int cnt, char *command) { > int i; > > if ( pt[cnt-1].x==pt[0].x && pt[cnt-1].y==pt[0].y ) > --cnt; > _GPSDraw_FlushPath(ps); > if ( cnt==4 ) { > fprintf( ps->output_file, " %g %g %g %g %g %g %g %g g_quad ", > _GSPDraw_XPos(ps,pt[3].x), _GSPDraw_YPos(ps,pt[3].y), > _GSPDraw_XPos(ps,pt[2].x), _GSPDraw_YPos(ps,pt[2].y), > _GSPDraw_XPos(ps,pt[1].x), _GSPDraw_YPos(ps,pt[1].y), > _GSPDraw_XPos(ps,pt[0].x), _GSPDraw_YPos(ps,pt[0].y)); > } else { > PSMoveTo(ps,pt[0].x,pt[0].y); > for ( i=1; i<cnt; ++i ) > PSLineTo(ps,pt[i].x,pt[i].y); > } > fprintf( ps->output_file, "closepath %s %%Polygon\n", command ); > ps->pnt_cnt = 0; > ps->cur_x = ps->cur_y = -1; >} > >void _GPSDraw_SetClip(GPSWindow ps) { > > if ( ps->ggc->clip.x!=ps->cur_clip.x || > ps->ggc->clip.width!=ps->cur_clip.width || > ps->ggc->clip.y!=ps->cur_clip.y || > ps->ggc->clip.height!=ps->cur_clip.height ) { > _GPSDraw_FlushPath(ps); > if ( ps->ggc->clip.x<ps->cur_clip.x || > ps->ggc->clip.x+ps->ggc->clip.width>ps->cur_clip.x+ps->cur_clip.width || > ps->ggc->clip.y<ps->cur_clip.y || > ps->ggc->clip.y+ps->ggc->clip.height>ps->cur_clip.y+ps->cur_clip.height ) > fprintf( ps->output_file, "initclip " ); > fprintf( ps->output_file, " %g %g %g %g %g %g %g %g g_quad clip newpath\n", > _GSPDraw_XPos(ps,ps->ggc->clip.x), _GSPDraw_YPos(ps,ps->ggc->clip.y+ps->ggc->clip.height), > _GSPDraw_XPos(ps,ps->ggc->clip.x+ps->ggc->clip.width), _GSPDraw_YPos(ps,ps->ggc->clip.y+ps->ggc->clip.height), > _GSPDraw_XPos(ps,ps->ggc->clip.x+ps->ggc->clip.width), _GSPDraw_YPos(ps,ps->ggc->clip.y), > _GSPDraw_XPos(ps,ps->ggc->clip.x), _GSPDraw_YPos(ps,ps->ggc->clip.y)); > ps->cur_clip = ps->ggc->clip; > } >} > >void _GPSDraw_SetColor(GPSWindow ps,Color fg) { > if ( ps->display->do_color ) { > fprintf( ps->output_file, "%g %g %g setrgbcolor\n", ((fg)>>16)/255.0, > (((fg)>>8) & 0xff)/255.0, ((fg)&0xff)/255.0 ); > } else { > fprintf( ps->output_file, "%g setgray\n", ((3*((fg)>>16)+6*(((fg)>>8) & 0xff)+2*((fg)&0xff))/((3 +6 +2)*255.0))); > } > ps->cur_fg = fg; >} > >static int PSDrawSetcol(GPSWindow ps) { > > _GPSDraw_SetClip(ps); > if ( ps->ggc->fg!=ps->cur_fg || ps->ggc->ts!=ps->cur_ts ) { > _GPSDraw_FlushPath(ps); > if ( ps->ggc->ts!=ps->cur_ts ) { > if ( ps->ggc->ts ) { > fprintf( ps->output_file, "currentcolor DotPattern setpattern\n" ); > ps->cur_ts = ps->ggc->ts; > } else { > fprintf( ps->output_file, "%s setcolorspace\n", > ps->display->do_color?"/DeviceRGB":"/DeviceGray" ); > ps->cur_ts = 0; > } > } > _GPSDraw_SetColor(ps,ps->ggc->fg); > } >return( 1 ); >} > >static int PSDrawSetline(GPSWindow ps) { > > PSDrawSetcol(ps); > if ( ps->ggc->line_width!=ps->cur_line_width ) { > _GPSDraw_FlushPath(ps); > fprintf( ps->output_file, "%g setlinewidth\n", _GSPDraw_XPos(ps,ps->ggc->line_width) ); > ps->cur_line_width = ps->ggc->line_width; > } > if ( ps->ggc->dash_len != ps->cur_dash_len || ps->ggc->skip_len != ps->cur_skip_len || > ps->ggc->dash_offset != ps->cur_dash_offset ) { > _GPSDraw_FlushPath(ps); > if ( ps->ggc->dash_len==0 ) { > fprintf( ps->output_file, "[] 0 setdash\n" ); > } else { > fprintf( ps->output_file, "[%d %d] %d setdash\n", > ps->ggc->dash_len, ps->ggc->skip_len, > (((ps->ggc->dash_offset)*72+(ps->res)/2)/(ps->res))%(ps->ggc->dash_len+ps->ggc->skip_len) ); > } > ps->cur_dash_offset = ps->ggc->dash_offset; > ps->cur_dash_len = ps->ggc->dash_len; > ps->cur_skip_len = ps->ggc->skip_len; > } >return( 1 ); >} > >static void PSDrawPushClip(GWindow w,GRect *rct, GRect *old) { > GPSWindow ps = (GPSWindow ) w; > > _GPSDraw_FlushPath(ps); > fprintf( ps->output_file,"gsave\n" ); > ps->last_dash_len = ps->cur_dash_len; > ps->last_skip_len = ps->cur_skip_len; > ps->last_dash_offset = ps->cur_dash_offset; > ps->last_line_width = ps->cur_line_width; > ps->last_ts = ps->cur_ts; > ps->last_fg = ps->cur_fg; > ps->last_font = ps->cur_font; > *old = ps->ggc->clip; > ps->ggc->clip = *rct; >} > >static void PSDrawPopClip(GWindow w,GRect *old) { > GPSWindow ps = (GPSWindow ) w; > > _GPSDraw_FlushPath(ps); > ps->cur_clip = *old; > fprintf( ps->output_file,"grestore\n" ); > ps->cur_dash_len = ps->last_dash_len; > ps->cur_skip_len = ps->last_skip_len; > ps->cur_line_width = ps->last_line_width; > ps->cur_dash_offset = ps->last_dash_offset; > ps->cur_ts = ps->last_ts; > ps->cur_fg = ps->last_fg; > ps->cur_font = ps->last_font; > ps->last_dash_len = -1; > ps->last_skip_len = -1; > ps->last_line_width = -1; > ps->last_dash_offset = -1; > ps->last_ts = -1; > ps->last_fg = -1; > ps->last_font = ((void *)0); > ps->ggc->clip = *old; >} > >static void PSDrawDrawLine(GWindow w, int32 x,int32 y,int32 xend,int32 yend,Color col) { > GPSWindow ps = (GPSWindow ) w; > > ps->ggc->fg = col; > PSDrawSetline(ps); > PSMoveTo(ps,x,y); > PSLineTo(ps,xend,yend); >} > >static void PSDrawArrow(GPSWindow ps, int32 x, int32 y, int32 xother, int32 yother ) { > GPoint points[3]; > double a; > int off1, off2; > double len; > int line_width = ps->ggc->line_width; > > if ( x==xother && y==yother ) >return; > a = atan2(y-yother,x-xother); > len = 72.0*sqrt((double) (x-xother)*(x-xother)+(y-yother)*(y-yother))/ps->res; > if ( len>30 ) len = 10+3*line_width/2; else len = (len+line_width)/3; > if ( len<2 ) >return; > len *= ps->res/72.0; > > points[0].x = x; points[0].y = y; > if ( line_width!=0 ) { > points[0].x += line_width*1.3*cos(a); points[0].y += line_width*1.3*sin(a); > } > off1 = len*sin(a+3.1415926535897932/8)+.5; off2 = len*cos(a+3.1415926535897932/8)+.5; > points[1].x = x-off2; points[1].y = y-off1; > off1 = len*sin(a-3.1415926535897932/8)+.5; off2 = len*cos(a-3.1415926535897932/8)+.5; > points[2].x = x-off2; points[2].y = y-off1; > PSDrawDoPoly(ps,points,3,"fill"); >} > >static void PSDrawDrawArrowLine(GWindow w, int32 x,int32 y,int32 xend,int32 yend,int16 arrows,Color col) { > GPSWindow ps = (GPSWindow ) w; > > ps->ggc->fg = col; > PSDrawSetline(ps); > PSMoveTo(ps,x,y); > PSLineTo(ps,xend,yend); > if ( arrows&1 ) > PSDrawArrow(ps,x,y,xend,yend); > if ( arrows&2 ) > PSDrawArrow(ps,xend,yend,x,y); >} > >static void PSDrawDrawRect(GWindow w, GRect *rct,Color col) { > GPSWindow ps = (GPSWindow ) w; > > ps->ggc->fg = col; > PSDrawSetline(ps); > fprintf( ps->output_file, " %g %g %g %g %g %g %g %g g_quad stroke\n", > _GSPDraw_XPos(ps,rct->x), _GSPDraw_YPos(ps,rct->y+rct->height), > _GSPDraw_XPos(ps,rct->x+rct->width), _GSPDraw_YPos(ps,rct->y+rct->height), > _GSPDraw_XPos(ps,rct->x+rct->width), _GSPDraw_YPos(ps,rct->y), > _GSPDraw_XPos(ps,rct->x), _GSPDraw_YPos(ps,rct->y)); > ps->pnt_cnt = 0; >} > >static void PSDrawFillRect(GWindow w, GRect *rct,Color col) { > GPSWindow ps = (GPSWindow ) w; > > ps->ggc->fg = col; > PSDrawSetcol(ps); > _GPSDraw_FlushPath(ps); > fprintf( ps->output_file, " %g %g %g %g %g %g %g %g g_quad fill\n", > _GSPDraw_XPos(ps,rct->x), _GSPDraw_YPos(ps,rct->y+rct->height), > _GSPDraw_XPos(ps,rct->x+rct->width), _GSPDraw_YPos(ps,rct->y+rct->height), > _GSPDraw_XPos(ps,rct->x+rct->width), _GSPDraw_YPos(ps,rct->y), > _GSPDraw_XPos(ps,rct->x), _GSPDraw_YPos(ps,rct->y)); > ps->pnt_cnt = 0; >} > >static void PSDrawClear(GWindow w,GRect *rect) { > GPSWindow ps = (GPSWindow ) w; > if ( rect==((void *)0) ) > rect = &ps->ggc->clip; > PSDrawFillRect(w,rect,(((255)<<16) | ((255)<<8) | (255))); >} > >static void PSDrawDrawCircle(GWindow w, GRect *rct,Color col) { > GPSWindow ps = (GPSWindow ) w; > > ps->ggc->fg = col; > PSDrawSetline(ps); > PSDrawElipse(ps,rct,"stroke"); >} > >static void PSDrawFillCircle(GWindow w, GRect *rct,Color col) { > GPSWindow ps = (GPSWindow ) w; > > ps->ggc->fg = col; > PSDrawSetcol(ps); > _GPSDraw_FlushPath(ps); > PSDrawElipse(ps,rct,"fill"); >} > >static void PSDrawDrawArc(GWindow w, GRect *rct,int32 sa, int32 ta, Color col) { > GPSWindow ps = (GPSWindow ) w; > float cx, cy, radx, rady; > > ps->ggc->fg = col; > PSDrawSetline(ps); > _GPSDraw_FlushPath(ps); > > radx = rct->width/2.0; > rady = rct->height/2.0; > cx = rct->x + radx; > cy = rct->y + rady; > if ( radx==0 || rady==0 ) >return; ># 712 "gpsdraw.c" > PSDrawNewpath(ps); > if ( radx!=rady ) > PSMyArc(ps,cx,cy,radx,rady,sa/64.0,ta/64.0); > else > fprintf( ps->output_file, " %g %g %g %g %g arc", _GSPDraw_XPos(ps,cx), _GSPDraw_YPos(ps,cy), _GSPDraw_Distance(ps,radx), > sa/64.0, (sa+ta)/64.0 ); > fprintf( ps->output_file, " stroke\n" ); > > ps->pnt_cnt = 0; > ps->cur_x = ps->cur_y = -1; >} > >static void PSDrawDrawPoly(GWindow w, GPoint *pt, int16 cnt,Color col) { > GPSWindow ps = (GPSWindow ) w; > > ps->ggc->fg = col; > PSDrawSetline(ps); > PSDrawDoPoly(ps,pt,cnt,"stroke"); >} > >static void PSDrawFillPoly(GWindow w, GPoint *pt, int16 cnt,Color col) { > GPSWindow ps = (GPSWindow ) w; > > ps->ggc->fg = col; > PSDrawSetcol(ps); > _GPSDraw_FlushPath(ps); > PSDrawDoPoly(ps,pt,cnt,"fill"); >} > >static void PSSetFontCol(GPSWindow ps, struct font_data *font, Color col) { > > ps->ggc->fg = col; > PSDrawSetcol(ps); > if ( font!=ps->cur_font ) { > if ( font->screen_font==((void *)0) ) > fprintf( ps->output_file, "MyFontDict /%s get setfont\n", font->localname ); > ps->cur_font = font; > } >} > >static int usehex(char *transbuf,int len) { > int i, norm, bad; > > norm=bad=0; > for ( i=0; i<len; ++i ) { > if ( transbuf[i]>=' ' && transbuf[i]<'\177' && transbuf[i]!='(' && transbuf[i]!=')' ) > ++norm; > else > ++bad; > } >return( 4*bad+norm>2*len ); >} > >static void _GPSDraw_Text1(GWindow gw, struct font_data *fd, > int32 x, int32 y, char *txt, int32 cnt, FontMods *mods, Color col) { > GPSWindow ps = (GPSWindow) gw; > int i; > > _GPSDraw_FlushPath(ps); > if ( fd->needsprocessing ) > _GPSDraw_ProcessFont(ps,fd); > PSSetFontCol(ps,fd,col); > if ( mods->letter_spacing!=0 ) > fprintf(ps->output_file,"%g 0 ", _GSPDraw_XPos(ps,mods->letter_spacing) ); > if ( usehex(txt,cnt)) { > fputc('<',ps->output_file); > for ( i=0; i<cnt; ++i ) > fprintf(ps->output_file,"%02X", ((unsigned char *) txt)[i]); > fputc('>',ps->output_file); > } else { > fputc('(',ps->output_file); > for ( i=0; i<cnt; ++i ) { > if ( txt[i]=='\\' ) > fprintf(ps->output_file,"\\\\"); > else if ( txt[i]>=' ' && txt[i]<'\177' && txt[i]!='(' && txt[i]!=')' ) > fputc(txt[i],ps->output_file); > else > fprintf(ps->output_file,"\\%03o", ((unsigned char *) txt)[i]); > } > fputc(')',ps->output_file); > } > fprintf( ps->output_file," %g %g %s\n", _GSPDraw_XPos(ps,x), _GSPDraw_YPos(ps,y), > mods->letter_spacing==0? "g_show": "g_ashow" ); > > ps->cur_x = ps->cur_y = -1; >} > >static void _GPSDraw_Text2(GWindow gw, struct font_data *fd, > int32 x, int32 y, GChar2b *txt, int32 cnt, FontMods *mods, Color col) { > _GPSDraw_Text1(gw,fd,x,y,(char *)txt,2*cnt,mods,col); >} > >static void PSPageSetup(GPSWindow ps,FILE *out, float thumbscale) { > GPSDisplay *gdisp = ps->display; > > > > fprintf( out, " %g %g translate\t\t%%Left & Top Margins\n", > gdisp->lmargin*72.0, (gdisp->yheight-gdisp->tmargin)*72.0 ); > fprintf( out, " %g %g %g %g %g %g %g %g g_quad clip newpath\t%%Clip to margins\n", > _GSPDraw_XPos(ps,0), _GSPDraw_YPos(ps,0), > _GSPDraw_XPos(ps,0), _GSPDraw_YPos(ps,(gdisp->yheight-gdisp->tmargin-gdisp->bmargin)*gdisp->res), > _GSPDraw_XPos(ps,(gdisp->xwidth-gdisp->lmargin-gdisp->rmargin)*gdisp->res), _GSPDraw_YPos(ps,(gdisp->yheight-gdisp->tmargin-gdisp->bmargin)*gdisp->res), > _GSPDraw_XPos(ps,(gdisp->xwidth-gdisp->lmargin-gdisp->rmargin)*gdisp->res), _GSPDraw_YPos(ps,0)); > if ( gdisp->scale*thumbscale!=1 ) > fprintf( out, " %g %g scale\n", gdisp->scale*thumbscale, gdisp->scale*thumbscale ); >} > >static void PSPageInit(GPSWindow ps) { > GPSDisplay *gdisp = (GPSDisplay *) (ps->display); > int thumb_per_page = gdisp->linear_thumb_cnt*gdisp->linear_thumb_cnt; > int real_page = ( ps->page_cnt%thumb_per_page == 0 ); > > ++ps->page_cnt; > if ( gdisp->eps ) { > fprintf( ps->output_file, "\n%%%%Page: 1 1\n" ); > fprintf( ps->output_file, "%%%%BeginPageSetup\n" ); > PSPageSetup(ps,ps->output_file,1.0); > fprintf( ps->output_file, "%%%%EndPageSetup\n" ); > } else if ( real_page ) { > int page = (ps->page_cnt+thumb_per_page-1)/thumb_per_page; > fprintf( ps->output_file, "\n%%%%Page: %d %d\n", page, page ); > fprintf( ps->output_file, "%%%%BeginPageSetup\n" ); > fprintf( ps->output_file, "g_startpage\n" ); > fprintf( ps->output_file, "%%%%EndPageSetup\n" ); > } else > fprintf( ps->output_file, "\n%% Psuedo Page: \ng_startpage\n" ); > ps->ggc->clip.y = ps->ggc->clip.x = 0; > ps->ggc->clip.height = ps->pos.height; ps->ggc->clip.width = ps->pos.width; > ps->cur_clip = ps->ggc->clip; > ps->cur_skip_len = ps->cur_dash_len = ps->cur_line_width = ps->cur_dash_offset = ps->cur_ts = 0; > ps->cur_font = ((void *)0); ps->cur_fg = 0; >} > >static void PSPageTerm(GPSWindow ps, int last) { > GPSDisplay *gdisp = (GPSDisplay *) (ps->display); > int thumb_per_page = gdisp->linear_thumb_cnt*gdisp->linear_thumb_cnt; > > _GPSDraw_FlushPath(ps); > if ( gdisp->eps ) >return; > if ( last || ps->page_cnt%thumb_per_page==0 ) { > fprintf( ps->output_file, "%%%%PageTrailer\n" ); > if ( last ) > fprintf( ps->output_file, "g_finalpage\t\t%%End of Page\n" ); > else > fprintf( ps->output_file, "g_endpage\t\t%%End of Page\n" ); > fprintf( ps->output_file, "%%%%EndPageTrailer\n" ); > } else > fprintf( ps->output_file, "g_endpage\t\t%%End of Psuedo Page\n" ); >} > >static void PSTrailer(GPSWindow ps) { > GPSDisplay *gdisp = (GPSDisplay *) (ps->display); > int thumb_per_page = gdisp->linear_thumb_cnt*gdisp->linear_thumb_cnt; > > fprintf( ps->output_file, "%%%%Trailer\n" ); > if ( !gdisp->eps ) > fprintf( ps->output_file, "%%%%Pages: %d\n", > (ps->page_cnt+thumb_per_page-1)/thumb_per_page); > _GPSDraw_ListNeededFonts(ps); > fprintf( ps->output_file, "%%%%EndTrailer\n" ); > fprintf( ps->output_file, "%%%%EOF\n" ); >} > >static void PSInitJob(GPSWindow ps, unichar_t *title) { > GPSDisplay *gdisp = ps->display; > char buf[200]; > time_t now; > > > if ( gdisp->eps ) { > fprintf( ps->init_file, "%%!PS-Adobe-3.0 EPSF-3.0\n" ); > fprintf( ps->init_file, "%%%%Pages: 1\n" ); > } else { > fprintf( ps->init_file, "%%!PS-Adobe-3.0%s\n", gdisp->eps?" EPSF-3.0":"" ); > fprintf( ps->init_file, "%%%%Pages: (atend)\n" ); > } > fprintf( ps->init_file, "%%%%BoundingBox: %g %g %g %g\n", > 72.0*gdisp->lmargin, 72.0*gdisp->bmargin, > 72.0*(gdisp->xwidth-gdisp->rmargin), 72.0*(gdisp->yheight-gdisp->tmargin)); > fprintf( ps->init_file, "%%%%Creator: %s\n", GResourceProgramName ); > time(&now); > fprintf( ps->init_file, "%%%%CreationDate: %s", ctime(&now) ); > if ( title!=((void *)0) ) > fprintf( ps->init_file, "%%%%Title: %s\n", u2def_strncpy(buf,title,sizeof(buf)) ); > fprintf( ps->init_file, "%%%%DocumentData: Clean7Bit\n" ); > fprintf( ps->init_file, "%%%%LanguageLevel: 2\n" ); > fprintf( ps->init_file, "%%%%Orientation: %s\n", gdisp->landscape? > "Landscape":"Portrait" ); > fprintf( ps->init_file, "%%%%PageOrder: Ascend\n" ); > fprintf( ps->init_file, "%%%%DocumentNeededResources: (atend)\n" ); > fprintf( ps->init_file, "%%%%DocumentSuppliedResources: (atend)\n" ); > fprintf( ps->init_file, "%%%%EndComments\n\n" ); > > > fprintf( ps->init_file, "%%%%BeginPrologue\n" ); > > > > fprintf( ps->init_file, "%% <font> <encoding> font_remap <font>\t; from the cookbook\n" ); > fprintf( ps->init_file, "/reencodedict 5 dict def\n" ); > fprintf( ps->init_file, "/g_font_remap { reencodedict begin\n" ); > fprintf( ps->init_file, " /newencoding exch def\n" ); > fprintf( ps->init_file, " /basefont exch def\n" ); > fprintf( ps->init_file, " /newfont basefont maxlength dict def\n" ); > fprintf( ps->init_file, " basefont {\n" ); > fprintf( ps->init_file, " exch dup dup /FID ne exch /Encoding ne and\n" ); > fprintf( ps->init_file, "\t{ exch newfont 3 1 roll put }\n" ); > fprintf( ps->init_file, "\t{ pop pop }\n" ); > fprintf( ps->init_file, " ifelse\n" ); > fprintf( ps->init_file, " } forall\n" ); > fprintf( ps->init_file, " newfont /Encoding newencoding put\n" ); > fprintf( ps->init_file, " newfont\t%%Leave on stack\n" ); > fprintf( ps->init_file, " end } def\n" ); > > fprintf( ps->init_file, "/g_show { moveto show } bind def\n" ); > fprintf( ps->init_file, "/g_ashow { moveto ashow } bind def\n" ); > fprintf( ps->init_file, "/g_quad { moveto lineto lineto lineto closepath } bind def\n" ); > > if ( gdisp->eps ) { > > } else if ( gdisp->linear_thumb_cnt <= 1 ) { > fprintf( ps->init_file, "/g_startpage { save \n" ); > PSPageSetup(ps,ps->init_file,1.0); > fprintf( ps->init_file, "} bind def\n" ); > fprintf( ps->init_file, "/g_endpage { restore showpage } bind def\n" ); > fprintf( ps->init_file, "/g_finalpage { g_endpage } bind def\n" ); > } else { > float stemp, thumbscale; > thumbscale = (gdisp->xwidth-gdisp->lmargin-gdisp->rmargin)/ > (gdisp->linear_thumb_cnt*gdisp->xwidth-gdisp->lmargin-gdisp->rmargin); > stemp = (gdisp->yheight-gdisp->tmargin-gdisp->bmargin)/ > (gdisp->linear_thumb_cnt*gdisp->yheight-gdisp->tmargin-gdisp->bmargin); > if ( stemp<thumbscale ) thumbscale = stemp; > thumbscale *= .97; > fprintf( ps->init_file, "/g_thumbnum 0 def\n" ); > fprintf( ps->init_file, "/g_startpage { \n" ); > fprintf( ps->init_file, " g_thumbnum %d mod 0 eq { save \n", > gdisp->linear_thumb_cnt*gdisp->linear_thumb_cnt ); > PSPageSetup(ps,ps->init_file,thumbscale); > fprintf( ps->init_file, " } if\n" ); > fprintf( ps->init_file, " save\n" ); > fprintf( ps->init_file, " g_thumbnum %d mod %d mul g_thumbnum %d idiv %d mul translate\n", > gdisp->linear_thumb_cnt, ps->pos.width, > gdisp->linear_thumb_cnt, -ps->pos.height ); > fprintf( ps->init_file, " %g %g %g %g %g %g %g %g g_quad clip newpath\n", > _GSPDraw_XPos(ps,0), _GSPDraw_YPos(ps,0), > _GSPDraw_XPos(ps,0), _GSPDraw_YPos(ps,ps->pos.height), > _GSPDraw_XPos(ps,ps->pos.width), _GSPDraw_YPos(ps,ps->pos.height), > _GSPDraw_XPos(ps,ps->pos.width), _GSPDraw_YPos(ps,0)); > fprintf(ps->init_file, "} bind def\n" ); > fprintf( ps->init_file, "/g_endpage { restore /g_thumbnum g_thumbnum 1 add def\n g_thumbnum %d eq { restore /g_thumbnum 0 def showpage } if\n } bind def\n", > gdisp->linear_thumb_cnt*gdisp->linear_thumb_cnt ); > fprintf( ps->init_file, "/g_finalpage { restore restore showpage } bind def\n" ); > } > _GPSDraw_InitPatterns(ps); > _GPSDraw_InitFonts(gdisp->fontstate); > > fprintf( ps->init_file, "%% Font Initialization (download needed fonts, remap locals)\n" ); > fprintf( ps->init_file, "/MyFontDict 100 dict def\n" ); > > fprintf( ps->output_file, "\n%%%%EndProlog\n\n" ); > fprintf( ps->output_file, "\n%%%%BeginSetup\n" ); > if ( !gdisp->eps ) > fprintf( ps->output_file, "<< /PageSize [%g %g] >> setpagedevice\n\n", > 72.0*gdisp->xwidth, 72.0*gdisp->yheight ); > > > fprintf( ps->output_file, "%%%%EndSetup\n\n" ); > ps->cur_clip.x = ps->cur_clip.y = 0; > ps->cur_clip.width = ps->pos.width; > ps->cur_clip.height = ps->pos.height; > ps->ggc->clip = ps->cur_clip; > PSPageInit(ps); >} > >static int PSQueueFile(GPSWindow ps) { > GPSDisplay *gdisp = ps->display; > int pid = fork(); > > rewind( ps->init_file ); > if ( pid==0 ) { > > int in = fileno(stdin); > char *prog; > char *argv[30]; > int argc=0; > char pbuf[200], cbuf[40]; > char buffer[1000]; > char *parg, *carg, *spt, *pt; > > close(in); > dup2(fileno(ps->init_file),in); > close(fileno(ps->init_file)); > > if ( gdisp->use_lpr ) { > prog = "lpr"; > parg = "P"; > carg = "#"; > } else { > prog = "lp"; > parg = "d"; > carg = "n"; > } > argv[argc++] = prog; > if ( !gdisp->use_lpr ) > argv[argc++] = "-s"; > if ( gdisp->printer_name!=((void *)0) ) { > sprintf(pbuf, "-%s%s ", parg, gdisp->printer_name ); > argv[argc++] = pbuf; > } > if ( gdisp->num_copies!=0 ) { > sprintf(cbuf, "-%s%d ", carg, gdisp->num_copies ); > argv[argc++] = pbuf; > } > if ( gdisp->lpr_args!=((void *)0) ) { > strcpy(buffer, gdisp->lpr_args ); > for ( spt = buffer; *spt==' '; ++spt ); > while ( (pt = (__extension__ (__builtin_constant_p (' ') && !__builtin_constant_p (spt) && (' ') == '\0' ? (char *) __rawmemchr (spt, ' ') : __builtin_strchr (spt, ' '))))!=((void *)0) ) { > argv[argc++] = spt; > *pt = '\0'; > for ( spt=pt+1; *spt==' '; ++spt ); > } > if ( *spt!='\0' ) > argv[argc++] = spt; > } > argv[argc] = ((void *)0); > if ( execvp(prog,argv)==-1 ) > _exit(1); > } else if ( pid==-1 ) >return( 0 ); > else { > > int status; > if ( waitpid(pid,&status,0)==-1 ) >return( 0 ); > if ( ((((__extension__ (((union { __typeof(status) __in; int __i; }) { .__in = (status) }).__i))) & 0x7f) == 0)) >return( 1 ); > } >return( 0 ); >} > >static int PSFinishJob(GPSWindow ps,int cancel) { > GPSDisplay *gdisp = ps->display; > int error = ferror(ps->output_file); > > if ( ps->output_file!=ps->init_file ) { > rewind(ps->output_file); > _GPSDraw_CopyFile(ps->init_file,ps->output_file); > fclose(ps->output_file); > } > error |= ferror(ps->init_file); > if ( error || cancel ) { > if ( !cancel ) > GDrawError("An error occured while saving the print job to disk.\nNot printed." ); > if ( gdisp->filename!=((void *)0) ) > GFileUnlink(gdisp->filename); > fclose(ps->init_file); >return(0); > } > if ( !gdisp->print_to_file ) { > if ( !PSQueueFile(ps)) { > GDrawError("Could not queue print job" ); > fclose(ps->init_file); >return( 0 ); > } > } > fclose(ps->init_file); >return( 1 ); >} > >static void PSDestroyContext(GPSDisplay *gd) { > gfree(gd->groot->ggc); > gfree(gd->groot); > gd->groot = ((void *)0); >} > >static GGC *_GPSDraw_NewGGC(GPSDisplay *ps) { > GGC *ggc = gcalloc(1,sizeof(GGC)); > ggc->clip.width = ggc->clip.height = 0x7fff; > ggc->fg = 0; > ggc->bg = 0xffffff; > ggc->line_width = ps->scale_screen_by; >return( ggc ); >} > >static GWindow GPSPrinterStartJob(GDisplay *gd,void *user_data,GPrinterAttrs *attrs) { > GPSDisplay *gdisp = (GPSDisplay *) gd; > double factor = 1; > char *oldpn, *oldea, *oldfn; > FILE *output, *init; > GPSWindow groot; > > if ( gd->groot!=((void *)0) ) { > GDrawError("Please wait for current print job to complete before starting a new one" ); >return( ((void *)0) ); > } > > if ( attrs!=((void *)0) ) { > if ( attrs->units==pu_mm ) > factor = 25.4; > else if ( attrs->units == pu_points ) > factor = 72; > > if ( attrs->mask&pam_pagesize ) { > gdisp->xwidth = attrs->width/factor; > gdisp->yheight = attrs->height/factor; > } > if ( attrs->mask&pam_margins ) { > gdisp->lmargin = attrs->lmargin/factor; > gdisp->rmargin = attrs->rmargin/factor; > gdisp->tmargin = attrs->tmargin/factor; > gdisp->bmargin = attrs->bmargin/factor; > } > if ( attrs->mask&pam_scale ) > gdisp->scale = attrs->scale; > if ( gdisp->scale<=0 ) gdisp->scale = 1.0; > gdisp->last_units = attrs->units; > if ( attrs->mask&pam_res ) > gdisp->res = attrs->res; > gdisp->scale_screen_by = gdisp->res/screen_display->res; > if ( gdisp->scale_screen_by==0 ) gdisp->scale_screen_by =1; > if ( attrs->mask&pam_copies ) > gdisp->num_copies = attrs->num_copies; > else > gdisp->num_copies = 1; > if ( attrs->mask&pam_thumbnails ) > gdisp->linear_thumb_cnt = attrs->thumbnails; > else > gdisp->linear_thumb_cnt = 1; > if ( gdisp->linear_thumb_cnt<=0 ) > gdisp->linear_thumb_cnt = 1; > if ( attrs->mask&pam_transparent ) > gdisp->do_transparent = attrs->do_transparent; > if ( attrs->mask&pam_color ) > gdisp->do_color = attrs->do_color; > if ( attrs->mask&pam_lpr ) > gdisp->use_lpr = attrs->use_lpr; > if ( attrs->mask&pam_queue ) > gdisp->print_to_file = attrs->donot_queue; > if ( attrs->mask&pam_eps ) > gdisp->eps = attrs->eps; > else > gdisp->eps = 0; > if ( gdisp->eps ) { > gdisp->print_to_file = 1; > gdisp->linear_thumb_cnt = 1; > gdisp->scale_screen_by =1; > } > if ( attrs->mask&pam_landscape ) > gdisp->landscape = attrs->landscape; > > oldpn = gdisp->printer_name; oldea = gdisp->lpr_args; oldfn = gdisp->filename; > if ( gdisp->print_to_file && (attrs->mask&pam_filename) ) > gdisp->filename = copy(attrs->file_name); > else > gdisp->filename = ((void *)0); > if ( attrs->mask&pam_printername ) > gdisp->printer_name = copy(attrs->printer_name); > else > oldpn = ((void *)0); > if ( attrs->mask&pam_args ) > gdisp->lpr_args = copy(attrs->extra_lpr_args); > else > oldea = ((void *)0); > gfree(oldfn); gfree(oldpn); gfree(oldea); > } > if ( gdisp->filename==((void *)0) ) { > init = tmpfile(); > if ( init==((void *)0) ) { > GDrawError("Can't open printer temporary file" ); >return( ((void *)0) ); > } > } else if (( init = fopen(gdisp->filename,"wb"))==((void *)0) ) { > GDrawError("Can't open %s: %s", gdisp->print_to_file?"user file":"printer spooling file", > gdisp->filename); >return( ((void *)0) ); > } > output = tmpfile(); > if ( output==((void *)0) ) > output = init; > > gdisp->fontstate->res = gdisp->res; > > gdisp->groot = gcalloc(1,sizeof(struct gpswindow)); > groot = (GPSWindow)(gdisp->groot); > groot->ggc = _GPSDraw_NewGGC(gdisp); > groot->display = gdisp; > groot->pos.width = (gdisp->xwidth-gdisp->lmargin-gdisp->rmargin)*gdisp->res/gdisp->scale; > groot->pos.height = (gdisp->yheight-gdisp->tmargin-gdisp->bmargin)*gdisp->res/gdisp->scale; > groot->user_data = user_data; > groot->output_file = output; > groot->init_file = init; > groot->cur_x = groot->cur_y = -1; > groot->cur_fg = ((Color) 0xffffffff); > groot->pnt_cnt = -1; > groot->res = gdisp->res; > groot->cur_dash_len = groot->cur_skip_len = -1; > groot->cur_line_width = -1; > groot->cur_dash_offset = -1; > groot->cur_ts = -1; > groot->last_dash_len = groot->last_skip_len = -1; > groot->last_line_width = -1; > groot->last_dash_offset = -1; > groot->last_ts = -1; > groot->last_fg = ((Color) 0xffffffff); > groot->is_toplevel = 1; > groot->is_visible = 1; > > PSInitJob(groot,(attrs->mask&pam_title)?attrs->title:((void *)0)); >return( (GWindow) groot); >} > >static void GPSPrinterNextPage(GWindow w) { > GPSWindow ps = (GPSWindow) w; > if (ps->display->eps ) > GDrawIError("Attempt to start a new page within an encapsulated postscript document"); > else { > PSPageTerm(ps,0); > PSPageInit(ps); > } >} > >static int GPSPrinterEndJob(GWindow w,int cancel) { > GPSWindow ps = (GPSWindow) w; > GPSDisplay *gdisp = ps->display; > int ret; > > PSPageTerm(ps,1); > PSTrailer(ps); > ret = PSFinishJob(ps,cancel); > _GPSDraw_ResetFonts(gdisp->fontstate); > PSDestroyContext(gdisp); > gfree(gdisp->filename); gdisp->filename=((void *)0); >return( ret ); >} > >static GWindow PSDrawCreateTopWindow(GDisplay *gdisp, GRect *pos, > int (*eh)(GWindow,GEvent *), void *user_data, GWindowAttrs *wattrs) { >return( GPSPrinterStartJob(gdisp,wattrs==((void *)0)?((void *)0):user_data,((void *)0))); >} > >static void PSDrawDestroyWindow(GWindow w) { > GPSPrinterEndJob(w,1); >} > >static struct displayfuncs psfuncs = { > PSDrawInit, > PSDrawTerm, > PSDrawNativeDisplay, > > PSDrawSetDefaultIcon, > > PSDrawCreateTopWindow, > PSDrawCreateSubWindow, > PSDrawCreatePixmap, > PSDrawCreateBitmap, > PSDrawCreateCursor, > PSDrawDestroyWindow, > PSDestroyCursor, > PSNativeWindowExists, > PSSetZoom, > PSSetWindowBorder, > PSSetDither, > > PSDrawReparentWindow, > PSDrawSetVisible, > PSDrawMove, > PSDrawMove, > PSDrawResize, > PSDrawMoveResize, > PSDrawRaise, > PSDrawRaiseAbove, > PSDrawIsAbove, > PSDrawLower, > PSDrawSetWindowTitles, > PSDrawSetWindowTitles8, > PSDrawGetWindowTitle, > PSDrawGetWindowTitle8, > PSDrawGetPointerPosition, > PSDrawSetCursor, > PSDrawGetCursor, > PSDrawGetRedirectWindow, > PSDrawTranslateCoordinates, > > PSDrawBeep, > PSDrawFlush, > > PSDrawPushClip, > PSDrawPopClip, > > PSDrawClear, > PSDrawDrawLine, > PSDrawDrawArrowLine, > PSDrawDrawRect, > PSDrawFillRect, > PSDrawDrawCircle, > PSDrawFillCircle, > PSDrawDrawArc, > PSDrawDrawPoly, > PSDrawFillPoly, > PSDrawScroll, > > _GPSDraw_Image, > _GPSDraw_TileImage, > _GPSDraw_ImageMagnified, > _PSDraw_CopyScreenToImage, > _PSDraw_Pixmap, > _PSDraw_TilePixmap, > > _GPSDraw_ScaleFont, > _GPSDraw_StylizeFont, > _GPSDraw_LoadFontMetrics, > _GPSDraw_Text1, > _GPSDraw_Text2, > > PSDrawCreateInputContext, > PSDrawSetGIC, > > PSDrawGrabSelection, > PSDrawAddSelectionType, > PSDrawRequestSelection, > PSDrawSelectionHasType, > > PSDrawPointerUngrab, > PSDrawPointerGrab, > PSDrawRequestExpose, > PSDrawForceUpdate, > PSDrawSync, > PSDrawSkipMouseMoveEvents, > PSDrawProcessPendingEvents, > PSDrawProcessWindowEvents, > PSDrawProcessPendingEvents, > PSDrawEventLoop, > PSDrawPostEvent, > PSDrawPostDragEvent, > PSDrawRequestDeviceEvents, > > PSDrawRequestTimer, > PSDrawCancelTimer, > > PSDrawSyncThread, > > GPSPrinterStartJob, > GPSPrinterNextPage, > GPSPrinterEndJob >}; > >GDisplay *_GPSDraw_CreateDisplay() { > GPSDisplay *gdisp; > > gdisp = gcalloc(1,sizeof(GPSDisplay)); > if ( gdisp==((void *)0) ) { >return( ((void *)0) ); > } > > gdisp->funcs = &psfuncs; > gdisp->res = 600; > if ( screen_display!=((void *)0) ) > gdisp->scale_screen_by = gdisp->res/screen_display->res; > if ( gdisp->scale_screen_by==0 ) gdisp->scale_screen_by =1; > > gdisp->scale = 1.; > gdisp->xwidth = 8.5; > gdisp->yheight = 11; > gdisp->lmargin = gdisp->rmargin = gdisp->tmargin = gdisp->bmargin = 1; > gdisp->use_lpr = 1; > gdisp->do_transparent = 1; > gdisp->num_copies = 1; > gdisp->linear_thumb_cnt = 1; > gdisp->fontstate = gcalloc(1,sizeof(FState)); > gdisp->fontstate->res = gdisp->res; > gdisp->fontstate->allow_scaling = 1; > gdisp->fontstate->use_screen_fonts = 1; > > gdisp->def_background = (((0xff)<<16) | ((0xff)<<8) | (0xff)); > gdisp->def_background = (((0x00)<<16) | ((0x00)<<8) | (0x00)); > > (gdisp->funcs->init)((GDisplay *) gdisp); >return( (GDisplay *) gdisp); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 130161
:
84773
|
84774
|
84775
|
90830