# 1 "frontends/yasm/yasm.c" # 1 "/root/ICEs/PRxxx/yasm-0.6.0//" # 1 "" # 1 "" # 1 "frontends/yasm/yasm.c" # 27 "frontends/yasm/yasm.c" # 1 "./util.h" 1 # 34 "./util.h" # 1 "./config.h" 1 # 35 "./util.h" 2 # 55 "./util.h" # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include-fixed/stdio.h" 1 3 4 # 14 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include-fixed/stdio.h" 3 4 # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include/stdarg.h" 1 3 4 # 43 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include/stdarg.h" 3 4 typedef __builtin_va_list __gnuc_va_list; # 15 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include-fixed/stdio.h" 2 3 4 # 1 "/usr/include/gentoo-multilib/x86/stdio.h" 1 3 4 # 28 "/usr/include/gentoo-multilib/x86/stdio.h" 3 4 # 1 "/usr/include/features.h" 1 3 4 # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include-fixed/gentoo-multilib/x86/features.h" 1 3 4 # 331 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include-fixed/gentoo-multilib/x86/features.h" 3 4 # 1 "/usr/include/sys/cdefs.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/sys/cdefs.h" 1 3 4 # 324 "/usr/include/gentoo-multilib/x86/sys/cdefs.h" 3 4 # 1 "/usr/include/bits/wordsize.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/bits/wordsize.h" 1 3 4 # 5 "/usr/include/bits/wordsize.h" 2 3 4 # 325 "/usr/include/gentoo-multilib/x86/sys/cdefs.h" 2 3 4 # 5 "/usr/include/sys/cdefs.h" 2 3 4 # 332 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include-fixed/gentoo-multilib/x86/features.h" 2 3 4 # 354 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include-fixed/gentoo-multilib/x86/features.h" 3 4 # 1 "/usr/include/gnu/stubs.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/gnu/stubs.h" 1 3 4 # 1 "/usr/include/bits/wordsize.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/bits/wordsize.h" 1 3 4 # 5 "/usr/include/bits/wordsize.h" 2 3 4 # 5 "/usr/include/gentoo-multilib/x86/gnu/stubs.h" 2 3 4 # 1 "/usr/include/gnu/stubs-32.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/gnu/stubs-32.h" 1 3 4 # 5 "/usr/include/gnu/stubs-32.h" 2 3 4 # 8 "/usr/include/gentoo-multilib/x86/gnu/stubs.h" 2 3 4 # 5 "/usr/include/gnu/stubs.h" 2 3 4 # 355 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include-fixed/gentoo-multilib/x86/features.h" 2 3 4 # 5 "/usr/include/features.h" 2 3 4 # 29 "/usr/include/gentoo-multilib/x86/stdio.h" 2 3 4 # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include/stddef.h" 1 3 4 # 214 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include/stddef.h" 3 4 typedef unsigned int size_t; # 35 "/usr/include/gentoo-multilib/x86/stdio.h" 2 3 4 # 1 "/usr/include/bits/types.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/bits/types.h" 1 3 4 # 27 "/usr/include/gentoo-multilib/x86/bits/types.h" 3 4 # 1 "/usr/include/features.h" 1 3 4 # 28 "/usr/include/gentoo-multilib/x86/bits/types.h" 2 3 4 # 1 "/usr/include/bits/wordsize.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/bits/wordsize.h" 1 3 4 # 5 "/usr/include/bits/wordsize.h" 2 3 4 # 29 "/usr/include/gentoo-multilib/x86/bits/types.h" 2 3 4 # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include/stddef.h" 1 3 4 # 32 "/usr/include/gentoo-multilib/x86/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/gentoo-multilib/x86/bits/types.h" 3 4 # 1 "/usr/include/bits/typesizes.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/bits/typesizes.h" 1 3 4 # 5 "/usr/include/bits/typesizes.h" 2 3 4 # 135 "/usr/include/gentoo-multilib/x86/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; # 5 "/usr/include/bits/types.h" 2 3 4 # 37 "/usr/include/gentoo-multilib/x86/stdio.h" 2 3 4 # 45 "/usr/include/gentoo-multilib/x86/stdio.h" 3 4 struct _IO_FILE; typedef struct _IO_FILE FILE; # 65 "/usr/include/gentoo-multilib/x86/stdio.h" 3 4 typedef struct _IO_FILE __FILE; # 75 "/usr/include/gentoo-multilib/x86/stdio.h" 3 4 # 1 "/usr/include/libio.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/libio.h" 1 3 4 # 32 "/usr/include/gentoo-multilib/x86/libio.h" 3 4 # 1 "/usr/include/_G_config.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/_G_config.h" 1 3 4 # 9 "/usr/include/gentoo-multilib/x86/_G_config.h" 3 4 # 1 "/usr/include/bits/types.h" 1 3 4 # 10 "/usr/include/gentoo-multilib/x86/_G_config.h" 2 3 4 # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include/stddef.h" 1 3 4 # 326 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include/stddef.h" 3 4 typedef int wchar_t; # 355 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include/stddef.h" 3 4 typedef unsigned int wint_t; # 15 "/usr/include/gentoo-multilib/x86/_G_config.h" 2 3 4 # 24 "/usr/include/gentoo-multilib/x86/_G_config.h" 3 4 # 1 "/usr/include/wchar.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/wchar.h" 1 3 4 # 48 "/usr/include/gentoo-multilib/x86/wchar.h" 3 4 # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include/stddef.h" 1 3 4 # 49 "/usr/include/gentoo-multilib/x86/wchar.h" 2 3 4 # 1 "/usr/include/bits/wchar.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/bits/wchar.h" 1 3 4 # 5 "/usr/include/bits/wchar.h" 2 3 4 # 51 "/usr/include/gentoo-multilib/x86/wchar.h" 2 3 4 # 76 "/usr/include/gentoo-multilib/x86/wchar.h" 3 4 typedef struct { int __count; union { wint_t __wch; char __wchb[4]; } __value; } __mbstate_t; # 5 "/usr/include/wchar.h" 2 3 4 # 25 "/usr/include/gentoo-multilib/x86/_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/gentoo-multilib/x86/_G_config.h" 3 4 # 1 "/usr/include/gconv.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/gconv.h" 1 3 4 # 26 "/usr/include/gentoo-multilib/x86/gconv.h" 3 4 # 1 "/usr/include/features.h" 1 3 4 # 27 "/usr/include/gentoo-multilib/x86/gconv.h" 2 3 4 # 1 "/usr/include/wchar.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/wchar.h" 1 3 4 # 48 "/usr/include/gentoo-multilib/x86/wchar.h" 3 4 # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include/stddef.h" 1 3 4 # 49 "/usr/include/gentoo-multilib/x86/wchar.h" 2 3 4 # 1 "/usr/include/bits/wchar.h" 1 3 4 # 51 "/usr/include/gentoo-multilib/x86/wchar.h" 2 3 4 # 5 "/usr/include/wchar.h" 2 3 4 # 29 "/usr/include/gentoo-multilib/x86/gconv.h" 2 3 4 # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include/stddef.h" 1 3 4 # 32 "/usr/include/gentoo-multilib/x86/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; # 5 "/usr/include/gconv.h" 2 3 4 # 45 "/usr/include/gentoo-multilib/x86/_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__))); # 5 "/usr/include/_G_config.h" 2 3 4 # 33 "/usr/include/gentoo-multilib/x86/libio.h" 2 3 4 # 53 "/usr/include/gentoo-multilib/x86/libio.h" 3 4 # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include/stdarg.h" 1 3 4 # 54 "/usr/include/gentoo-multilib/x86/libio.h" 2 3 4 # 167 "/usr/include/gentoo-multilib/x86/libio.h" 3 4 struct _IO_jump_t; struct _IO_FILE; # 177 "/usr/include/gentoo-multilib/x86/libio.h" 3 4 typedef void _IO_lock_t; struct _IO_marker { struct _IO_marker *_next; struct _IO_FILE *_sbuf; int _pos; # 200 "/usr/include/gentoo-multilib/x86/libio.h" 3 4 }; enum __codecvt_result { __codecvt_ok, __codecvt_partial, __codecvt_error, __codecvt_noconv }; # 268 "/usr/include/gentoo-multilib/x86/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; # 316 "/usr/include/gentoo-multilib/x86/libio.h" 3 4 __off64_t _offset; # 325 "/usr/include/gentoo-multilib/x86/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_; # 361 "/usr/include/gentoo-multilib/x86/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); # 413 "/usr/include/gentoo-multilib/x86/libio.h" 3 4 extern int __underflow (_IO_FILE *); extern int __uflow (_IO_FILE *); extern int __overflow (_IO_FILE *, int); extern wint_t __wunderflow (_IO_FILE *); extern wint_t __wuflow (_IO_FILE *); extern wint_t __woverflow (_IO_FILE *, wint_t); # 451 "/usr/include/gentoo-multilib/x86/libio.h" 3 4 extern int _IO_getc (_IO_FILE *__fp); extern int _IO_putc (int __c, _IO_FILE *__fp); 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); extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__)); extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__)); extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__)); # 481 "/usr/include/gentoo-multilib/x86/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); extern size_t _IO_sgetn (_IO_FILE *, void *, size_t); extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int); extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int); extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__)); # 5 "/usr/include/libio.h" 2 3 4 # 76 "/usr/include/gentoo-multilib/x86/stdio.h" 2 3 4 # 89 "/usr/include/gentoo-multilib/x86/stdio.h" 3 4 typedef _G_fpos_t fpos_t; # 141 "/usr/include/gentoo-multilib/x86/stdio.h" 3 4 # 1 "/usr/include/bits/stdio_lim.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/bits/stdio_lim.h" 1 3 4 # 5 "/usr/include/bits/stdio_lim.h" 2 3 4 # 142 "/usr/include/gentoo-multilib/x86/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) ; # 186 "/usr/include/gentoo-multilib/x86/stdio.h" 3 4 extern char *tmpnam (char *__s) __attribute__ ((__nothrow__)) ; extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__)) ; # 204 "/usr/include/gentoo-multilib/x86/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); # 229 "/usr/include/gentoo-multilib/x86/stdio.h" 3 4 extern int fflush_unlocked (FILE *__stream); # 243 "/usr/include/gentoo-multilib/x86/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) ; # 272 "/usr/include/gentoo-multilib/x86/stdio.h" 3 4 # 283 "/usr/include/gentoo-multilib/x86/stdio.h" 3 4 extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__)) ; # 304 "/usr/include/gentoo-multilib/x86/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/gentoo-multilib/x86/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/gentoo-multilib/x86/stdio.h" 3 4 extern int fgetc (FILE *__stream); extern int getc (FILE *__stream); extern int getchar (void); # 464 "/usr/include/gentoo-multilib/x86/stdio.h" 3 4 extern int getc_unlocked (FILE *__stream); extern int getchar_unlocked (void); # 475 "/usr/include/gentoo-multilib/x86/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/gentoo-multilib/x86/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/gentoo-multilib/x86/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/gentoo-multilib/x86/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/gentoo-multilib/x86/stdio.h" 3 4 extern int fseeko (FILE *__stream, __off_t __off, int __whence); extern __off_t ftello (FILE *__stream) ; # 697 "/usr/include/gentoo-multilib/x86/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/gentoo-multilib/x86/stdio.h" 3 4 # 729 "/usr/include/gentoo-multilib/x86/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 # 1 "/usr/include/gentoo-multilib/x86/bits/sys_errlist.h" 1 3 4 # 27 "/usr/include/gentoo-multilib/x86/bits/sys_errlist.h" 3 4 extern int sys_nerr; extern __const char *__const sys_errlist[]; # 5 "/usr/include/bits/sys_errlist.h" 2 3 4 # 759 "/usr/include/gentoo-multilib/x86/stdio.h" 2 3 4 extern int fileno (FILE *__stream) __attribute__ ((__nothrow__)) ; extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ; # 778 "/usr/include/gentoo-multilib/x86/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/gentoo-multilib/x86/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/gentoo-multilib/x86/stdio.h" 3 4 # 1 "/usr/include/bits/stdio.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/bits/stdio.h" 1 3 4 # 33 "/usr/include/gentoo-multilib/x86/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 fgetc_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 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))); } # 121 "/usr/include/gentoo-multilib/x86/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); } # 5 "/usr/include/bits/stdio.h" 2 3 4 # 840 "/usr/include/gentoo-multilib/x86/stdio.h" 2 3 4 # 848 "/usr/include/gentoo-multilib/x86/stdio.h" 3 4 # 19 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include-fixed/stdio.h" 2 3 4 # 56 "./util.h" 2 # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include/stdarg.h" 1 3 4 # 105 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include/stdarg.h" 3 4 typedef __gnuc_va_list va_list; # 57 "./util.h" 2 # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include/stddef.h" 1 3 4 # 152 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include/stddef.h" 3 4 typedef int ptrdiff_t; # 59 "./util.h" 2 # 1 "/usr/include/stdlib.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/stdlib.h" 1 3 4 # 25 "/usr/include/gentoo-multilib/x86/stdlib.h" 3 4 # 1 "/usr/include/features.h" 1 3 4 # 26 "/usr/include/gentoo-multilib/x86/stdlib.h" 2 3 4 # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include/stddef.h" 1 3 4 # 34 "/usr/include/gentoo-multilib/x86/stdlib.h" 2 3 4 # 96 "/usr/include/gentoo-multilib/x86/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/gentoo-multilib/x86/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/gentoo-multilib/x86/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/gentoo-multilib/x86/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/gentoo-multilib/x86/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/gentoo-multilib/x86/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))) ; # 1 "/usr/include/sys/types.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/sys/types.h" 1 3 4 # 27 "/usr/include/gentoo-multilib/x86/sys/types.h" 3 4 # 1 "/usr/include/features.h" 1 3 4 # 28 "/usr/include/gentoo-multilib/x86/sys/types.h" 2 3 4 # 1 "/usr/include/bits/types.h" 1 3 4 # 32 "/usr/include/gentoo-multilib/x86/sys/types.h" 2 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/gentoo-multilib/x86/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; # 100 "/usr/include/gentoo-multilib/x86/sys/types.h" 3 4 typedef __pid_t pid_t; 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; # 133 "/usr/include/gentoo-multilib/x86/sys/types.h" 3 4 # 1 "/usr/include/time.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/time.h" 1 3 4 # 73 "/usr/include/gentoo-multilib/x86/time.h" 3 4 # 1 "/usr/include/bits/types.h" 1 3 4 # 74 "/usr/include/gentoo-multilib/x86/time.h" 2 3 4 typedef __time_t time_t; # 90 "/usr/include/gentoo-multilib/x86/time.h" 3 4 # 1 "/usr/include/bits/types.h" 1 3 4 # 91 "/usr/include/gentoo-multilib/x86/time.h" 2 3 4 typedef __clockid_t clockid_t; # 102 "/usr/include/gentoo-multilib/x86/time.h" 3 4 # 1 "/usr/include/bits/types.h" 1 3 4 # 103 "/usr/include/gentoo-multilib/x86/time.h" 2 3 4 typedef __timer_t timer_t; # 5 "/usr/include/time.h" 2 3 4 # 134 "/usr/include/gentoo-multilib/x86/sys/types.h" 2 3 4 # 147 "/usr/include/gentoo-multilib/x86/sys/types.h" 3 4 # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include/stddef.h" 1 3 4 # 148 "/usr/include/gentoo-multilib/x86/sys/types.h" 2 3 4 typedef unsigned long int ulong; typedef unsigned short int ushort; typedef unsigned int uint; # 195 "/usr/include/gentoo-multilib/x86/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/gentoo-multilib/x86/sys/types.h" 3 4 # 1 "/usr/include/endian.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/endian.h" 1 3 4 # 22 "/usr/include/gentoo-multilib/x86/endian.h" 3 4 # 1 "/usr/include/features.h" 1 3 4 # 23 "/usr/include/gentoo-multilib/x86/endian.h" 2 3 4 # 37 "/usr/include/gentoo-multilib/x86/endian.h" 3 4 # 1 "/usr/include/bits/endian.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/bits/endian.h" 1 3 4 # 5 "/usr/include/bits/endian.h" 2 3 4 # 38 "/usr/include/gentoo-multilib/x86/endian.h" 2 3 4 # 5 "/usr/include/endian.h" 2 3 4 # 218 "/usr/include/gentoo-multilib/x86/sys/types.h" 2 3 4 # 1 "/usr/include/sys/select.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/sys/select.h" 1 3 4 # 25 "/usr/include/gentoo-multilib/x86/sys/select.h" 3 4 # 1 "/usr/include/features.h" 1 3 4 # 26 "/usr/include/gentoo-multilib/x86/sys/select.h" 2 3 4 # 1 "/usr/include/bits/types.h" 1 3 4 # 29 "/usr/include/gentoo-multilib/x86/sys/select.h" 2 3 4 # 1 "/usr/include/bits/select.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/bits/select.h" 1 3 4 # 5 "/usr/include/bits/select.h" 2 3 4 # 32 "/usr/include/gentoo-multilib/x86/sys/select.h" 2 3 4 # 1 "/usr/include/bits/sigset.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/bits/sigset.h" 1 3 4 # 24 "/usr/include/gentoo-multilib/x86/bits/sigset.h" 3 4 typedef int __sig_atomic_t; typedef struct { unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; } __sigset_t; # 5 "/usr/include/bits/sigset.h" 2 3 4 # 35 "/usr/include/gentoo-multilib/x86/sys/select.h" 2 3 4 typedef __sigset_t sigset_t; # 1 "/usr/include/time.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/time.h" 1 3 4 # 117 "/usr/include/gentoo-multilib/x86/time.h" 3 4 # 1 "/usr/include/bits/types.h" 1 3 4 # 118 "/usr/include/gentoo-multilib/x86/time.h" 2 3 4 struct timespec { __time_t tv_sec; long int tv_nsec; }; # 5 "/usr/include/time.h" 2 3 4 # 45 "/usr/include/gentoo-multilib/x86/sys/select.h" 2 3 4 # 1 "/usr/include/bits/time.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/bits/time.h" 1 3 4 # 65 "/usr/include/gentoo-multilib/x86/bits/time.h" 3 4 # 1 "/usr/include/bits/types.h" 1 3 4 # 66 "/usr/include/gentoo-multilib/x86/bits/time.h" 2 3 4 struct timeval { __time_t tv_sec; __suseconds_t tv_usec; }; # 5 "/usr/include/bits/time.h" 2 3 4 # 47 "/usr/include/gentoo-multilib/x86/sys/select.h" 2 3 4 typedef __suseconds_t suseconds_t; typedef long int __fd_mask; # 67 "/usr/include/gentoo-multilib/x86/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/gentoo-multilib/x86/sys/select.h" 3 4 # 109 "/usr/include/gentoo-multilib/x86/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/gentoo-multilib/x86/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); # 5 "/usr/include/sys/select.h" 2 3 4 # 221 "/usr/include/gentoo-multilib/x86/sys/types.h" 2 3 4 # 1 "/usr/include/sys/sysmacros.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/sys/sysmacros.h" 1 3 4 # 24 "/usr/include/gentoo-multilib/x86/sys/sysmacros.h" 3 4 # 1 "/usr/include/features.h" 1 3 4 # 25 "/usr/include/gentoo-multilib/x86/sys/sysmacros.h" 2 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)); } # 5 "/usr/include/sys/sysmacros.h" 2 3 4 # 224 "/usr/include/gentoo-multilib/x86/sys/types.h" 2 3 4 # 235 "/usr/include/gentoo-multilib/x86/sys/types.h" 3 4 typedef __blkcnt_t blkcnt_t; typedef __fsblkcnt_t fsblkcnt_t; typedef __fsfilcnt_t fsfilcnt_t; # 270 "/usr/include/gentoo-multilib/x86/sys/types.h" 3 4 # 1 "/usr/include/bits/pthreadtypes.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/bits/pthreadtypes.h" 1 3 4 # 36 "/usr/include/gentoo-multilib/x86/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; # 5 "/usr/include/bits/pthreadtypes.h" 2 3 4 # 271 "/usr/include/gentoo-multilib/x86/sys/types.h" 2 3 4 # 5 "/usr/include/sys/types.h" 2 3 4 # 439 "/usr/include/gentoo-multilib/x86/stdlib.h" 2 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 # 1 "/usr/include/gentoo-multilib/x86/alloca.h" 1 3 4 # 22 "/usr/include/gentoo-multilib/x86/alloca.h" 3 4 # 1 "/usr/include/features.h" 1 3 4 # 23 "/usr/include/gentoo-multilib/x86/alloca.h" 2 3 4 # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include/stddef.h" 1 3 4 # 26 "/usr/include/gentoo-multilib/x86/alloca.h" 2 3 4 extern void *alloca (size_t __size) __attribute__ ((__nothrow__)); # 5 "/usr/include/alloca.h" 2 3 4 # 613 "/usr/include/gentoo-multilib/x86/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/gentoo-multilib/x86/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/gentoo-multilib/x86/stdlib.h" 3 4 extern char *mktemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; # 709 "/usr/include/gentoo-multilib/x86/stdlib.h" 3 4 extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; # 729 "/usr/include/gentoo-multilib/x86/stdlib.h" 3 4 extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern int system (__const char *__command) ; # 755 "/usr/include/gentoo-multilib/x86/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__)) ; # 820 "/usr/include/gentoo-multilib/x86/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))) ; # 925 "/usr/include/gentoo-multilib/x86/stdlib.h" 3 4 extern int posix_openpt (int __oflag) ; # 960 "/usr/include/gentoo-multilib/x86/stdlib.h" 3 4 extern int getloadavg (double __loadavg[], int __nelem) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); # 976 "/usr/include/gentoo-multilib/x86/stdlib.h" 3 4 # 5 "/usr/include/stdlib.h" 2 3 4 # 60 "./util.h" 2 # 1 "/usr/include/string.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/string.h" 1 3 4 # 26 "/usr/include/gentoo-multilib/x86/string.h" 3 4 # 1 "/usr/include/features.h" 1 3 4 # 27 "/usr/include/gentoo-multilib/x86/string.h" 2 3 4 # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include/stddef.h" 1 3 4 # 34 "/usr/include/gentoo-multilib/x86/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/gentoo-multilib/x86/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/gentoo-multilib/x86/string.h" 3 4 extern char *strdup (__const char *__s) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); # 165 "/usr/include/gentoo-multilib/x86/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/gentoo-multilib/x86/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/gentoo-multilib/x86/string.h" 3 4 extern size_t strlen (__const char *__s) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); # 254 "/usr/include/gentoo-multilib/x86/string.h" 3 4 extern char *strerror (int __errnum) __attribute__ ((__nothrow__)); # 270 "/usr/include/gentoo-multilib/x86/string.h" 3 4 extern int strerror_r (int __errnum, char *__buf, size_t __buflen) __asm__ ("" "__xpg_strerror_r") __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); # 294 "/usr/include/gentoo-multilib/x86/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__)); # 331 "/usr/include/gentoo-multilib/x86/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))); # 354 "/usr/include/gentoo-multilib/x86/string.h" 3 4 extern char *strsep (char **__restrict __stringp, __const char *__restrict __delim) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); # 420 "/usr/include/gentoo-multilib/x86/string.h" 3 4 # 1 "/usr/include/bits/string.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/bits/string.h" 1 3 4 # 5 "/usr/include/bits/string.h" 2 3 4 # 421 "/usr/include/gentoo-multilib/x86/string.h" 2 3 4 # 1 "/usr/include/bits/string2.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/bits/string2.h" 1 3 4 # 52 "/usr/include/gentoo-multilib/x86/bits/string2.h" 3 4 # 1 "/usr/include/endian.h" 1 3 4 # 53 "/usr/include/gentoo-multilib/x86/bits/string2.h" 2 3 4 # 1 "/usr/include/bits/types.h" 1 3 4 # 54 "/usr/include/gentoo-multilib/x86/bits/string2.h" 2 3 4 # 394 "/usr/include/gentoo-multilib/x86/bits/string2.h" 3 4 extern void *__rawmemchr (const void *__s, int __c); # 969 "/usr/include/gentoo-multilib/x86/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/gentoo-multilib/x86/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/gentoo-multilib/x86/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/gentoo-multilib/x86/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/gentoo-multilib/x86/bits/string2.h" 3 4 extern char *__strsep_g (char **__stringp, __const char *__delim); # 1223 "/usr/include/gentoo-multilib/x86/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; } # 1299 "/usr/include/gentoo-multilib/x86/bits/string2.h" 3 4 # 1 "/usr/include/stdlib.h" 1 3 4 # 1300 "/usr/include/gentoo-multilib/x86/bits/string2.h" 2 3 4 extern char *__strdup (__const char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); # 1323 "/usr/include/gentoo-multilib/x86/bits/string2.h" 3 4 extern char *__strndup (__const char *__string, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); # 5 "/usr/include/bits/string2.h" 2 3 4 # 424 "/usr/include/gentoo-multilib/x86/string.h" 2 3 4 # 432 "/usr/include/gentoo-multilib/x86/string.h" 3 4 # 5 "/usr/include/string.h" 2 3 4 # 61 "./util.h" 2 # 1 "/usr/include/assert.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/assert.h" 1 3 4 # 37 "/usr/include/gentoo-multilib/x86/assert.h" 3 4 # 1 "/usr/include/features.h" 1 3 4 # 38 "/usr/include/gentoo-multilib/x86/assert.h" 2 3 4 # 5 "/usr/include/assert.h" 2 3 4 # 62 "./util.h" 2 # 1 "./libyasm/coretype.h" 1 # 38 "./libyasm/coretype.h" typedef struct yasm_arch yasm_arch; typedef struct yasm_preproc yasm_preproc; typedef struct yasm_parser yasm_parser; typedef struct yasm_objfmt yasm_objfmt; typedef struct yasm_dbgfmt yasm_dbgfmt; typedef struct yasm_listfmt yasm_listfmt; typedef struct yasm_assoc_data_callback { void (*destroy) ( void *data); void (*print) (void *data, FILE *f, int indent_level); } yasm_assoc_data_callback; typedef struct yasm_errwarns yasm_errwarns; typedef struct yasm_bytecode yasm_bytecode; typedef struct yasm_object yasm_object; typedef struct yasm_section yasm_section; typedef struct yasm_symtab yasm_symtab; typedef struct yasm_symrec yasm_symrec; typedef struct yasm_expr yasm_expr; typedef struct yasm_intnum yasm_intnum; typedef struct yasm_floatnum yasm_floatnum; typedef struct yasm_value { yasm_expr *abs; yasm_symrec *rel; yasm_symrec *wrt; unsigned int seg_of : 1; unsigned int rshift : 7; unsigned int curpos_rel : 1; unsigned int ip_rel : 1; unsigned int jump_target : 1; unsigned int section_rel : 1; unsigned int sign : 1; unsigned int size : 8; } yasm_value; typedef struct yasm_linemap yasm_linemap; typedef struct yasm_valparam yasm_valparam; typedef struct yasm_valparamhead yasm_valparamhead; typedef struct yasm_insn_operands yasm_insn_operands; typedef enum yasm_expr_op { YASM_EXPR_IDENT, YASM_EXPR_ADD, YASM_EXPR_SUB, YASM_EXPR_MUL, YASM_EXPR_DIV, YASM_EXPR_SIGNDIV, YASM_EXPR_MOD, YASM_EXPR_SIGNMOD, YASM_EXPR_NEG, YASM_EXPR_NOT, YASM_EXPR_OR, YASM_EXPR_AND, YASM_EXPR_XOR, YASM_EXPR_XNOR, YASM_EXPR_NOR, YASM_EXPR_SHL, YASM_EXPR_SHR, YASM_EXPR_LOR, YASM_EXPR_LAND, YASM_EXPR_LNOT, YASM_EXPR_LXOR, YASM_EXPR_LXNOR, YASM_EXPR_LNOR, YASM_EXPR_LT, YASM_EXPR_GT, YASM_EXPR_EQ, YASM_EXPR_LE, YASM_EXPR_GE, YASM_EXPR_NE, YASM_EXPR_NONNUM, YASM_EXPR_SEG, YASM_EXPR_WRT, YASM_EXPR_SEGOFF } yasm_expr_op; typedef enum yasm_sym_vis { YASM_SYM_LOCAL = 0, YASM_SYM_GLOBAL = 1 << 0, YASM_SYM_COMMON = 1 << 1, YASM_SYM_EXTERN = 1 << 2, YASM_SYM_DLOCAL = 1 << 3 } yasm_sym_vis; # 262 "./libyasm/coretype.h" typedef int (*yasm_output_value_func) (yasm_value *value, unsigned char *buf, unsigned int destsize, unsigned long offset, yasm_bytecode *bc, int warn, void *d); # 283 "./libyasm/coretype.h" typedef int (*yasm_output_reloc_func) (yasm_symrec *sym, yasm_bytecode *bc, unsigned char *buf, unsigned int destsize, unsigned int valsize, int warn, void *d); # 294 "./libyasm/coretype.h" int yasm__mergesort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *)); char *yasm__strsep(char **stringp, const char *delim); int yasm__strcasecmp(const char *s1, const char *s2); # 320 "./libyasm/coretype.h" int yasm__strncasecmp(const char *s1, const char *s2, size_t n); char *yasm__xstrdup(const char *str); char *yasm__xstrndup(const char *str, size_t len); extern void * (*yasm_xmalloc) (size_t size); # 352 "./libyasm/coretype.h" extern void * (*yasm_xcalloc) (size_t nelem, size_t elsize); # 361 "./libyasm/coretype.h" extern void * (*yasm_xrealloc) ( void *oldmem, size_t size) ; extern void (*yasm_xfree) ( void *p) ; # 64 "./util.h" 2 # 73 "./util.h" # 1 "/usr/include/libintl.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/libintl.h" 1 3 4 # 24 "/usr/include/gentoo-multilib/x86/libintl.h" 3 4 # 1 "/usr/include/features.h" 1 3 4 # 25 "/usr/include/gentoo-multilib/x86/libintl.h" 2 3 4 # 35 "/usr/include/gentoo-multilib/x86/libintl.h" 3 4 extern char *gettext (__const char *__msgid) __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (1))); extern char *dgettext (__const char *__domainname, __const char *__msgid) __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (2))); extern char *__dgettext (__const char *__domainname, __const char *__msgid) __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (2))); extern char *dcgettext (__const char *__domainname, __const char *__msgid, int __category) __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (2))); extern char *__dcgettext (__const char *__domainname, __const char *__msgid, int __category) __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (2))); extern char *ngettext (__const char *__msgid1, __const char *__msgid2, unsigned long int __n) __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (1))) __attribute__ ((__format_arg__ (2))); extern char *dngettext (__const char *__domainname, __const char *__msgid1, __const char *__msgid2, unsigned long int __n) __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (2))) __attribute__ ((__format_arg__ (3))); extern char *dcngettext (__const char *__domainname, __const char *__msgid1, __const char *__msgid2, unsigned long int __n, int __category) __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (2))) __attribute__ ((__format_arg__ (3))); extern char *textdomain (__const char *__domainname) __attribute__ ((__nothrow__)); extern char *bindtextdomain (__const char *__domainname, __const char *__dirname) __attribute__ ((__nothrow__)); extern char *bind_textdomain_codeset (__const char *__domainname, __const char *__codeset) __attribute__ ((__nothrow__)); # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include/stddef.h" 1 3 4 # 102 "/usr/include/gentoo-multilib/x86/libintl.h" 2 3 4 # 1 "/usr/include/locale.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/locale.h" 1 3 4 # 26 "/usr/include/gentoo-multilib/x86/locale.h" 3 4 # 1 "/usr/include/features.h" 1 3 4 # 27 "/usr/include/gentoo-multilib/x86/locale.h" 2 3 4 # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.0-alpha20070615/include/stddef.h" 1 3 4 # 30 "/usr/include/gentoo-multilib/x86/locale.h" 2 3 4 # 1 "/usr/include/bits/locale.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/bits/locale.h" 1 3 4 # 27 "/usr/include/gentoo-multilib/x86/bits/locale.h" 3 4 enum { __LC_CTYPE = 0, __LC_NUMERIC = 1, __LC_TIME = 2, __LC_COLLATE = 3, __LC_MONETARY = 4, __LC_MESSAGES = 5, __LC_ALL = 6, __LC_PAPER = 7, __LC_NAME = 8, __LC_ADDRESS = 9, __LC_TELEPHONE = 10, __LC_MEASUREMENT = 11, __LC_IDENTIFICATION = 12 }; # 5 "/usr/include/bits/locale.h" 2 3 4 # 31 "/usr/include/gentoo-multilib/x86/locale.h" 2 3 4 # 51 "/usr/include/gentoo-multilib/x86/locale.h" 3 4 struct lconv { char *decimal_point; char *thousands_sep; char *grouping; char *int_curr_symbol; char *currency_symbol; char *mon_decimal_point; char *mon_thousands_sep; char *mon_grouping; char *positive_sign; char *negative_sign; char int_frac_digits; char frac_digits; char p_cs_precedes; char p_sep_by_space; char n_cs_precedes; char n_sep_by_space; char p_sign_posn; char n_sign_posn; # 114 "/usr/include/gentoo-multilib/x86/locale.h" 3 4 char __int_p_cs_precedes; char __int_p_sep_by_space; char __int_n_cs_precedes; char __int_n_sep_by_space; char __int_p_sign_posn; char __int_n_sign_posn; }; extern char *setlocale (int __category, __const char *__locale) __attribute__ ((__nothrow__)); extern struct lconv *localeconv (void) __attribute__ ((__nothrow__)); # 208 "/usr/include/gentoo-multilib/x86/locale.h" 3 4 # 5 "/usr/include/locale.h" 2 3 4 # 105 "/usr/include/gentoo-multilib/x86/libintl.h" 2 3 4 # 122 "/usr/include/gentoo-multilib/x86/libintl.h" 3 4 # 5 "/usr/include/libintl.h" 2 3 4 # 74 "./util.h" 2 # 119 "./util.h" # 1 "./libyasm/compat-queue.h" 1 # 120 "./util.h" 2 # 28 "frontends/yasm/yasm.c" 2 __asm__(".ident\t\"" "$Id: yasm.c 1760 2007-02-08 05:02:37Z peter $" "\""); # 1 "/usr/include/ctype.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/ctype.h" 1 3 4 # 27 "/usr/include/gentoo-multilib/x86/ctype.h" 3 4 # 1 "/usr/include/features.h" 1 3 4 # 28 "/usr/include/gentoo-multilib/x86/ctype.h" 2 3 4 # 1 "/usr/include/bits/types.h" 1 3 4 # 29 "/usr/include/gentoo-multilib/x86/ctype.h" 2 3 4 # 41 "/usr/include/gentoo-multilib/x86/ctype.h" 3 4 # 1 "/usr/include/endian.h" 1 3 4 # 42 "/usr/include/gentoo-multilib/x86/ctype.h" 2 3 4 enum { _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) }; # 81 "/usr/include/gentoo-multilib/x86/ctype.h" 3 4 extern __const unsigned short int **__ctype_b_loc (void) __attribute__ ((__const)); extern __const __int32_t **__ctype_tolower_loc (void) __attribute__ ((__const)); extern __const __int32_t **__ctype_toupper_loc (void) __attribute__ ((__const)); # 96 "/usr/include/gentoo-multilib/x86/ctype.h" 3 4 extern int isalnum (int) __attribute__ ((__nothrow__)); extern int isalpha (int) __attribute__ ((__nothrow__)); extern int iscntrl (int) __attribute__ ((__nothrow__)); extern int isdigit (int) __attribute__ ((__nothrow__)); extern int islower (int) __attribute__ ((__nothrow__)); extern int isgraph (int) __attribute__ ((__nothrow__)); extern int isprint (int) __attribute__ ((__nothrow__)); extern int ispunct (int) __attribute__ ((__nothrow__)); extern int isspace (int) __attribute__ ((__nothrow__)); extern int isupper (int) __attribute__ ((__nothrow__)); extern int isxdigit (int) __attribute__ ((__nothrow__)); extern int tolower (int __c) __attribute__ ((__nothrow__)); extern int toupper (int __c) __attribute__ ((__nothrow__)); # 142 "/usr/include/gentoo-multilib/x86/ctype.h" 3 4 extern int isascii (int __c) __attribute__ ((__nothrow__)); extern int toascii (int __c) __attribute__ ((__nothrow__)); extern int _toupper (int) __attribute__ ((__nothrow__)); extern int _tolower (int) __attribute__ ((__nothrow__)); # 190 "/usr/include/gentoo-multilib/x86/ctype.h" 3 4 extern __inline int __attribute__ ((__nothrow__)) tolower (int __c) { return __c >= -128 && __c < 256 ? (*__ctype_tolower_loc ())[__c] : __c; } extern __inline int __attribute__ ((__nothrow__)) toupper (int __c) { return __c >= -128 && __c < 256 ? (*__ctype_toupper_loc ())[__c] : __c; } # 323 "/usr/include/gentoo-multilib/x86/ctype.h" 3 4 # 5 "/usr/include/ctype.h" 2 3 4 # 31 "frontends/yasm/yasm.c" 2 # 1 "./libyasm/bitvect.h" 1 # 19 "./libyasm/bitvect.h" typedef unsigned char N_char; typedef unsigned char N_byte; typedef unsigned short N_short; typedef unsigned short N_shortword; typedef unsigned int N_int; typedef unsigned int N_word; typedef unsigned long N_long; typedef unsigned long N_longword; typedef signed char Z_char; typedef signed char Z_byte; typedef signed short Z_short; typedef signed short Z_shortword; typedef signed int Z_int; typedef signed int Z_word; typedef signed long Z_long; typedef signed long Z_longword; typedef void *voidptr; typedef N_char *charptr; typedef N_byte *byteptr; typedef N_short *shortptr; typedef N_shortword *shortwordptr; typedef N_int *intptr; typedef N_word *wordptr; typedef N_long *longptr; typedef N_longword *longwordptr; typedef N_char *N_charptr; typedef N_byte *N_byteptr; typedef N_short *N_shortptr; typedef N_shortword *N_shortwordptr; typedef N_int *N_intptr; typedef N_word *N_wordptr; typedef N_long *N_longptr; typedef N_longword *N_longwordptr; typedef Z_char *Z_charptr; typedef Z_byte *Z_byteptr; typedef Z_short *Z_shortptr; typedef Z_shortword *Z_shortwordptr; typedef Z_int *Z_intptr; typedef Z_word *Z_wordptr; typedef Z_long *Z_longptr; typedef Z_longword *Z_longwordptr; # 85 "./libyasm/bitvect.h" typedef enum boolean { false = (0!=0), true = (0==0) } boolean; typedef enum ErrCode { ErrCode_Ok = 0, ErrCode_Type, ErrCode_Bits, ErrCode_Word, ErrCode_Long, ErrCode_Powr, ErrCode_Loga, ErrCode_Null, ErrCode_Indx, ErrCode_Ordr, ErrCode_Size, ErrCode_Pars, ErrCode_Ovfl, ErrCode_Same, ErrCode_Expo, ErrCode_Zero } ErrCode; typedef wordptr *listptr; const char * BitVector_Error (ErrCode error); ErrCode BitVector_Boot (void); void BitVector_Shutdown (void); N_word BitVector_Size (N_int bits); N_word BitVector_Mask (N_int bits); const char * BitVector_Version (void); N_int BitVector_Word_Bits (void); N_int BitVector_Long_Bits (void); wordptr BitVector_Create (N_int bits, boolean clear); listptr BitVector_Create_List(N_int bits, boolean clear, N_int count); wordptr BitVector_Resize (wordptr oldaddr, N_int bits); wordptr BitVector_Shadow (wordptr addr); wordptr BitVector_Clone (wordptr addr); wordptr BitVector_Concat (wordptr X, wordptr Y); void BitVector_Dispose ( charptr string); void BitVector_Destroy ( wordptr addr); void BitVector_Destroy_List (listptr list, N_int count); void BitVector_Copy (wordptr X, wordptr Y); void BitVector_Empty (wordptr addr); void BitVector_Fill (wordptr addr); void BitVector_Flip (wordptr addr); void BitVector_Primes (wordptr addr); void BitVector_Reverse (wordptr X, wordptr Y); void BitVector_Interval_Empty ( wordptr addr, N_int lower, N_int upper); void BitVector_Interval_Fill ( wordptr addr, N_int lower, N_int upper); void BitVector_Interval_Flip ( wordptr addr, N_int lower, N_int upper); void BitVector_Interval_Reverse ( wordptr addr, N_int lower, N_int upper); boolean BitVector_interval_scan_inc (wordptr addr, N_int start, N_intptr min, N_intptr max); boolean BitVector_interval_scan_dec (wordptr addr, N_int start, N_intptr min, N_intptr max); void BitVector_Interval_Copy ( wordptr X, wordptr Y, N_int Xoffset, N_int Yoffset, N_int length); wordptr BitVector_Interval_Substitute( wordptr X, wordptr Y, N_int Xoffset, N_int Xlength, N_int Yoffset, N_int Ylength); boolean BitVector_is_empty (wordptr addr); boolean BitVector_is_full (wordptr addr); boolean BitVector_equal (wordptr X, wordptr Y); Z_int BitVector_Lexicompare(wordptr X, wordptr Y); Z_int BitVector_Compare (wordptr X, wordptr Y); charptr BitVector_to_Hex (wordptr addr); ErrCode BitVector_from_Hex ( wordptr addr, charptr string); ErrCode BitVector_from_Oct( wordptr addr, charptr string); charptr BitVector_to_Bin (wordptr addr); ErrCode BitVector_from_Bin ( wordptr addr, charptr string); charptr BitVector_to_Dec (wordptr addr); ErrCode BitVector_from_Dec ( wordptr addr, charptr string); typedef struct BitVector_from_Dec_static_data BitVector_from_Dec_static_data; BitVector_from_Dec_static_data *BitVector_from_Dec_static_Boot(N_word bits); void BitVector_from_Dec_static_Shutdown( BitVector_from_Dec_static_data *data); ErrCode BitVector_from_Dec_static(BitVector_from_Dec_static_data *data, wordptr addr, charptr string); charptr BitVector_to_Enum (wordptr addr); ErrCode BitVector_from_Enum ( wordptr addr, charptr string); void BitVector_Bit_Off ( wordptr addr, N_int indx); void BitVector_Bit_On ( wordptr addr, N_int indx); boolean BitVector_bit_flip ( wordptr addr, N_int indx); boolean BitVector_bit_test (wordptr addr, N_int indx); void BitVector_Bit_Copy ( wordptr addr, N_int indx, boolean bit); void BitVector_LSB ( wordptr addr, boolean bit); void BitVector_MSB ( wordptr addr, boolean bit); boolean BitVector_lsb_ (wordptr addr); boolean BitVector_msb_ (wordptr addr); boolean BitVector_rotate_left (wordptr addr); boolean BitVector_rotate_right (wordptr addr); boolean BitVector_shift_left (wordptr addr, boolean carry_in); boolean BitVector_shift_right (wordptr addr, boolean carry_in); void BitVector_Move_Left (wordptr addr, N_int bits); void BitVector_Move_Right (wordptr addr, N_int bits); void BitVector_Insert (wordptr addr, N_int offset, N_int count, boolean clear); void BitVector_Delete (wordptr addr, N_int offset, N_int count, boolean clear); boolean BitVector_increment (wordptr addr); boolean BitVector_decrement (wordptr addr); boolean BitVector_compute (wordptr X, wordptr Y, wordptr Z, boolean minus, boolean *carry); boolean BitVector_add (wordptr X, wordptr Y, wordptr Z, boolean *carry); boolean BitVector_sub (wordptr X, wordptr Y, wordptr Z, boolean *carry); boolean BitVector_inc (wordptr X, wordptr Y); boolean BitVector_dec (wordptr X, wordptr Y); void BitVector_Negate (wordptr X, wordptr Y); void BitVector_Absolute (wordptr X, wordptr Y); Z_int BitVector_Sign (wordptr addr); ErrCode BitVector_Mul_Pos (wordptr X, wordptr Y, wordptr Z, boolean strict); ErrCode BitVector_Multiply (wordptr X, wordptr Y, wordptr Z); ErrCode BitVector_Div_Pos (wordptr Q, wordptr X, wordptr Y, wordptr R); ErrCode BitVector_Divide (wordptr Q, wordptr X, wordptr Y, wordptr R); ErrCode BitVector_GCD (wordptr X, wordptr Y, wordptr Z); ErrCode BitVector_GCD2 (wordptr U, wordptr V, wordptr W, wordptr X, wordptr Y); ErrCode BitVector_Power (wordptr X, wordptr Y, wordptr Z); void BitVector_Block_Store(wordptr addr, charptr buffer, N_int length); charptr BitVector_Block_Read (wordptr addr, N_intptr length); void BitVector_Word_Store (wordptr addr, N_int offset, N_int value); N_int BitVector_Word_Read (wordptr addr, N_int offset); void BitVector_Word_Insert(wordptr addr, N_int offset, N_int count, boolean clear); void BitVector_Word_Delete(wordptr addr, N_int offset, N_int count, boolean clear); void BitVector_Chunk_Store(wordptr addr, N_int chunksize, N_int offset, N_long value); N_long BitVector_Chunk_Read (wordptr addr, N_int chunksize, N_int offset); void Set_Union (wordptr X, wordptr Y, wordptr Z); void Set_Intersection (wordptr X, wordptr Y, wordptr Z); void Set_Difference (wordptr X, wordptr Y, wordptr Z); void Set_ExclusiveOr (wordptr X, wordptr Y, wordptr Z); void Set_Complement (wordptr X, wordptr Y); boolean Set_subset (wordptr X, wordptr Y); N_int Set_Norm (wordptr addr); N_int Set_Norm2 (wordptr addr); N_int Set_Norm3 (wordptr addr); Z_long Set_Min (wordptr addr); Z_long Set_Max (wordptr addr); void Matrix_Multiplication(wordptr X, N_int rowsX, N_int colsX, wordptr Y, N_int rowsY, N_int colsY, wordptr Z, N_int rowsZ, N_int colsZ); void Matrix_Product (wordptr X, N_int rowsX, N_int colsX, wordptr Y, N_int rowsY, N_int colsY, wordptr Z, N_int rowsZ, N_int colsZ); void Matrix_Closure (wordptr addr, N_int rows, N_int cols); void Matrix_Transpose (wordptr X, N_int rowsX, N_int colsX, wordptr Y, N_int rowsY, N_int colsY); # 33 "frontends/yasm/yasm.c" 2 # 1 "./libyasm.h" 1 # 55 "./libyasm.h" # 1 "./libyasm-stdint.h" 1 # 1 "/usr/include/stdint.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/stdint.h" 1 3 4 # 26 "/usr/include/gentoo-multilib/x86/stdint.h" 3 4 # 1 "/usr/include/features.h" 1 3 4 # 27 "/usr/include/gentoo-multilib/x86/stdint.h" 2 3 4 # 1 "/usr/include/bits/wchar.h" 1 3 4 # 28 "/usr/include/gentoo-multilib/x86/stdint.h" 2 3 4 # 1 "/usr/include/bits/wordsize.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/bits/wordsize.h" 1 3 4 # 5 "/usr/include/bits/wordsize.h" 2 3 4 # 29 "/usr/include/gentoo-multilib/x86/stdint.h" 2 3 4 # 49 "/usr/include/gentoo-multilib/x86/stdint.h" 3 4 typedef unsigned char uint8_t; typedef unsigned short int uint16_t; typedef unsigned int uint32_t; __extension__ typedef unsigned long long int uint64_t; typedef signed char int_least8_t; typedef short int int_least16_t; typedef int int_least32_t; __extension__ typedef long long int int_least64_t; typedef unsigned char uint_least8_t; typedef unsigned short int uint_least16_t; typedef unsigned int uint_least32_t; __extension__ typedef unsigned long long int uint_least64_t; typedef signed char int_fast8_t; typedef int int_fast16_t; typedef int int_fast32_t; __extension__ typedef long long int int_fast64_t; typedef unsigned char uint_fast8_t; typedef unsigned int uint_fast16_t; typedef unsigned int uint_fast32_t; __extension__ typedef unsigned long long int uint_fast64_t; # 126 "/usr/include/gentoo-multilib/x86/stdint.h" 3 4 typedef int intptr_t; typedef unsigned int uintptr_t; # 138 "/usr/include/gentoo-multilib/x86/stdint.h" 3 4 __extension__ typedef long long int intmax_t; __extension__ typedef unsigned long long int uintmax_t; # 5 "/usr/include/stdint.h" 2 3 4 # 8 "./libyasm-stdint.h" 2 # 56 "./libyasm.h" 2 # 1 "./libyasm/valparam.h" 1 # 54 "./libyasm/valparam.h" yasm_valparam *yasm_vp_create( char *v, yasm_expr *p); yasm_valparamhead *yasm_vps_create(void); void yasm_vps_destroy(yasm_valparamhead *headp); # 84 "./libyasm/valparam.h" void yasm_vps_append(yasm_valparamhead *headp, yasm_valparam *vp); # 96 "./libyasm/valparam.h" yasm_valparam *yasm_vps_first (yasm_valparamhead *headp); # 106 "./libyasm/valparam.h" yasm_valparam *yasm_vps_next(yasm_valparam *cur); # 122 "./libyasm/valparam.h" void yasm_vps_print( const yasm_valparamhead *headp, FILE *f); # 64 "./libyasm.h" 2 # 1 "./libyasm/linemap.h" 1 # 40 "./libyasm/linemap.h" yasm_linemap *yasm_linemap_create(void); void yasm_linemap_destroy(yasm_linemap *linemap); unsigned long yasm_linemap_get_current(yasm_linemap *linemap); # 62 "./libyasm/linemap.h" int yasm_linemap_get_source(yasm_linemap *linemap, unsigned long line, yasm_bytecode **bcp, const char **sourcep); # 74 "./libyasm/linemap.h" void yasm_linemap_add_source(yasm_linemap *linemap, yasm_bytecode *bc, const char *source); unsigned long yasm_linemap_goto_next(yasm_linemap *linemap); # 92 "./libyasm/linemap.h" void yasm_linemap_set(yasm_linemap *linemap, const char *filename, unsigned long file_line, unsigned long line_inc); # 103 "./libyasm/linemap.h" unsigned long yasm_linemap_poke(yasm_linemap *linemap, const char *filename, unsigned long file_line); void yasm_linemap_lookup(yasm_linemap *linemap, unsigned long line, const char **filename, unsigned long *file_line); # 125 "./libyasm/linemap.h" int yasm_linemap_traverse_filenames (yasm_linemap *linemap, void *d, int (*func) (const char *filename, void *d)); # 66 "./libyasm.h" 2 # 1 "./libyasm/errwarn.h" 1 # 38 "./libyasm/errwarn.h" typedef enum yasm_warn_class { YASM_WARN_NONE = 0, YASM_WARN_GENERAL, YASM_WARN_UNREC_CHAR, YASM_WARN_PREPROC, YASM_WARN_ORPHAN_LABEL, YASM_WARN_UNINIT_CONTENTS } yasm_warn_class; typedef enum yasm_error_class { YASM_ERROR_NONE = 0x0000, YASM_ERROR_GENERAL = 0xFFFF, YASM_ERROR_ARITHMETIC = 0x0001, YASM_ERROR_OVERFLOW = 0x8001, YASM_ERROR_FLOATING_POINT = 0x4001, YASM_ERROR_ZERO_DIVISION = 0x2001, YASM_ERROR_ASSERTION = 0x0002, YASM_ERROR_VALUE = 0x0004, YASM_ERROR_NOT_ABSOLUTE = 0x8004, YASM_ERROR_TOO_COMPLEX = 0x4004, YASM_ERROR_NOT_CONSTANT = 0x2004, YASM_ERROR_IO = 0x0008, YASM_ERROR_NOT_IMPLEMENTED = 0x0010, YASM_ERROR_TYPE = 0x0020, YASM_ERROR_SYNTAX = 0x0040, YASM_ERROR_PARSE = 0x8040 } yasm_error_class; void yasm_errwarn_initialize(void); void yasm_errwarn_cleanup(void); # 84 "./libyasm/errwarn.h" extern void (*yasm_internal_error_) (const char *file, unsigned int line, const char *message); # 100 "./libyasm/errwarn.h" extern void (*yasm_fatal) (const char *message, va_list va); void yasm__fatal(const char *message, ...); void yasm_error_clear(void); yasm_error_class yasm_error_occurred(void); # 129 "./libyasm/errwarn.h" int yasm_error_matches(yasm_error_class eclass); extern yasm_error_class yasm_eclass; # 142 "./libyasm/errwarn.h" void yasm_error_set_va(yasm_error_class eclass, const char *format, va_list va); void yasm_error_set(yasm_error_class eclass, const char *format, ...) ; # 160 "./libyasm/errwarn.h" void yasm_error_set_xref_va(unsigned long xrefline, const char *format, va_list va); # 170 "./libyasm/errwarn.h" void yasm_error_set_xref(unsigned long xrefline, const char *format, ...) ; # 185 "./libyasm/errwarn.h" void yasm_error_fetch( yasm_error_class *eclass, char **str, unsigned long *xrefline, char **xrefstr); void yasm_warn_clear(void); yasm_warn_class yasm_warn_occurred(void); void yasm_warn_set_va(yasm_warn_class wclass, const char *format, va_list va); void yasm_warn_set(yasm_warn_class wclass, const char *format, ...) ; # 227 "./libyasm/errwarn.h" void yasm_warn_fetch( yasm_warn_class *wclass, char **str); void yasm_warn_enable(yasm_warn_class wclass); void yasm_warn_disable(yasm_warn_class wclass); void yasm_warn_disable_all(void); yasm_errwarns *yasm_errwarns_create(void); void yasm_errwarns_destroy( yasm_errwarns *errwarns); # 263 "./libyasm/errwarn.h" void yasm_errwarn_propagate(yasm_errwarns *errwarns, unsigned long line); unsigned int yasm_errwarns_num_errors(yasm_errwarns *errwarns, int warning_as_error); # 281 "./libyasm/errwarn.h" typedef void (*yasm_print_error_func) (const char *fn, unsigned long line, const char *msg, const char *xref_fn, unsigned long xref_line, const char *xref_msg); typedef void (*yasm_print_warning_func) (const char *fn, unsigned long line, const char *msg); # 301 "./libyasm/errwarn.h" void yasm_errwarns_output_all (yasm_errwarns *errwarns, yasm_linemap *lm, int warning_as_error, yasm_print_error_func print_error, yasm_print_warning_func print_warning); char *yasm__conv_unprint(int ch); extern const char * (*yasm_gettext_hook) (const char *msgid); # 68 "./libyasm.h" 2 # 1 "./libyasm/intnum.h" 1 # 38 "./libyasm/intnum.h" void yasm_intnum_initialize(void); void yasm_intnum_cleanup(void); yasm_intnum *yasm_intnum_create_dec(char *str); yasm_intnum *yasm_intnum_create_bin(char *str); yasm_intnum *yasm_intnum_create_oct(char *str); yasm_intnum *yasm_intnum_create_hex(char *str); yasm_intnum *yasm_intnum_create_charconst_nasm(const char *str); yasm_intnum *yasm_intnum_create_uint(unsigned long i); yasm_intnum *yasm_intnum_create_int(long i); # 94 "./libyasm/intnum.h" yasm_intnum *yasm_intnum_create_leb128 (const unsigned char *ptr, int sign, unsigned long *size); # 104 "./libyasm/intnum.h" yasm_intnum *yasm_intnum_create_sized (unsigned char *ptr, int sign, size_t srcsize, int bigendian); yasm_intnum *yasm_intnum_copy(const yasm_intnum *intn); void yasm_intnum_destroy( yasm_intnum *intn); # 126 "./libyasm/intnum.h" int yasm_intnum_calc(yasm_intnum *acc, yasm_expr_op op, yasm_intnum *operand); void yasm_intnum_zero(yasm_intnum *intn); void yasm_intnum_set_uint(yasm_intnum *intn, unsigned long val); void yasm_intnum_set_int(yasm_intnum *intn, long val); int yasm_intnum_is_zero(const yasm_intnum *acc); int yasm_intnum_is_pos1(const yasm_intnum *acc); int yasm_intnum_is_neg1(const yasm_intnum *acc); int yasm_intnum_sign(const yasm_intnum *acc); # 176 "./libyasm/intnum.h" unsigned long yasm_intnum_get_uint(const yasm_intnum *intn); # 185 "./libyasm/intnum.h" long yasm_intnum_get_int(const yasm_intnum *intn); # 201 "./libyasm/intnum.h" void yasm_intnum_get_sized(const yasm_intnum *intn, unsigned char *ptr, size_t destsize, size_t valsize, int shift, int bigendian, int warn); # 215 "./libyasm/intnum.h" int yasm_intnum_check_size(const yasm_intnum *intn, size_t size, size_t rshift, int rangetype); int yasm_intnum_in_range(const yasm_intnum *intn, long low, long high); unsigned long yasm_intnum_get_leb128(const yasm_intnum *intn, unsigned char *ptr, int sign); unsigned long yasm_intnum_size_leb128(const yasm_intnum *intn, int sign); unsigned long yasm_get_sleb128(long v, unsigned char *ptr); unsigned long yasm_size_sleb128(long v); unsigned long yasm_get_uleb128(unsigned long v, unsigned char *ptr); unsigned long yasm_size_uleb128(unsigned long v); char *yasm_intnum_get_str(const yasm_intnum *intn); void yasm_intnum_print(const yasm_intnum *intn, FILE *f); # 69 "./libyasm.h" 2 # 1 "./libyasm/floatnum.h" 1 # 40 "./libyasm/floatnum.h" void yasm_floatnum_initialize(void); void yasm_floatnum_cleanup(void); yasm_floatnum *yasm_floatnum_create(const char *str); yasm_floatnum *yasm_floatnum_copy(const yasm_floatnum *flt); void yasm_floatnum_destroy( yasm_floatnum *flt); # 71 "./libyasm/floatnum.h" int yasm_floatnum_calc(yasm_floatnum *acc, yasm_expr_op op, yasm_floatnum *operand); # 81 "./libyasm/floatnum.h" int yasm_floatnum_get_int(const yasm_floatnum *flt, unsigned long *ret_val); # 101 "./libyasm/floatnum.h" int yasm_floatnum_get_sized(const yasm_floatnum *flt, unsigned char *ptr, size_t destsize, size_t valsize, size_t shift, int bigendian, int warn); # 113 "./libyasm/floatnum.h" int yasm_floatnum_check_size(const yasm_floatnum *flt, size_t size); void yasm_floatnum_print(const yasm_floatnum *flt, FILE *f); # 70 "./libyasm.h" 2 # 1 "./libyasm/expr.h" 1 # 38 "./libyasm/expr.h" typedef struct yasm_expr__item yasm_expr__item; # 47 "./libyasm/expr.h" yasm_expr *yasm_expr_create (yasm_expr_op op, yasm_expr__item *a, yasm_expr__item *b, unsigned long line); yasm_expr__item *yasm_expr_precbc( yasm_bytecode *precbc); yasm_expr__item *yasm_expr_sym( yasm_symrec *sym); yasm_expr__item *yasm_expr_expr( yasm_expr *e); yasm_expr__item *yasm_expr_int( yasm_intnum *intn); yasm_expr__item *yasm_expr_float( yasm_floatnum *flt); yasm_expr__item *yasm_expr_reg(uintptr_t reg); # 118 "./libyasm/expr.h" yasm_expr *yasm_expr_copy(const yasm_expr *e); void yasm_expr_destroy( yasm_expr *e); int yasm_expr_is_op(const yasm_expr *e, yasm_expr_op op); typedef yasm_expr * (*yasm_expr_xform_func) ( yasm_expr *e, void *d); # 154 "./libyasm/expr.h" yasm_expr *yasm_expr__level_tree ( yasm_expr *e, int fold_const, int simplify_ident, int simplify_reg_mul, int calc_bc_dist, yasm_expr_xform_func expr_xform_extra, void *expr_xform_extra_data); # 178 "./libyasm/expr.h" yasm_expr *yasm_expr_extract_deep_segoff(yasm_expr **ep); # 187 "./libyasm/expr.h" yasm_expr *yasm_expr_extract_segoff(yasm_expr **ep); # 197 "./libyasm/expr.h" yasm_expr *yasm_expr_extract_wrt(yasm_expr **ep); # 207 "./libyasm/expr.h" yasm_intnum *yasm_expr_get_intnum (yasm_expr **ep, int calc_bc_dist); const yasm_symrec *yasm_expr_get_symrec (yasm_expr **ep, int simplify); const uintptr_t *yasm_expr_get_reg (yasm_expr **ep, int simplify); void yasm_expr_print( const yasm_expr *e, FILE *f); # 71 "./libyasm.h" 2 # 1 "./libyasm/value.h" 1 # 48 "./libyasm/value.h" void yasm_value_initialize( yasm_value *value, yasm_expr *e, unsigned int size); # 59 "./libyasm/value.h" void yasm_value_init_sym( yasm_value *value, yasm_symrec *sym, unsigned int size); void yasm_value_init_copy(yasm_value *value, const yasm_value *orig); void yasm_value_delete(yasm_value *value); # 83 "./libyasm/value.h" void yasm_value_set_curpos_rel(yasm_value *value, yasm_bytecode *bc, unsigned int ip_rel); int yasm_value_finalize(yasm_value *value, yasm_bytecode *precbc); # 113 "./libyasm/value.h" int yasm_value_finalize_expr( yasm_value *value, yasm_expr *e, yasm_bytecode *precbc, unsigned int size); # 129 "./libyasm/value.h" yasm_intnum *yasm_value_get_intnum (yasm_value *value, yasm_bytecode *bc, int calc_bc_dist); # 151 "./libyasm/value.h" int yasm_value_output_basic (yasm_value *value, unsigned char *buf, size_t destsize, yasm_bytecode *bc, int warn, yasm_arch *arch); void yasm_value_print(const yasm_value *value, FILE *f, int indent_level); # 72 "./libyasm.h" 2 # 1 "./libyasm/symrec.h" 1 # 41 "./libyasm/symrec.h" typedef enum yasm_sym_status { YASM_SYM_NOSTATUS = 0, YASM_SYM_USED = 1 << 0, YASM_SYM_DEFINED = 1 << 1, YASM_SYM_VALUED = 1 << 2, YASM_SYM_NOTINTABLE = 1 << 3 } yasm_sym_status; yasm_symtab *yasm_symtab_create(void); void yasm_symtab_destroy( yasm_symtab *symtab); # 67 "./libyasm/symrec.h" yasm_symrec *yasm_symtab_abs_sym(yasm_symtab *symtab); # 76 "./libyasm/symrec.h" yasm_symrec *yasm_symtab_use (yasm_symtab *symtab, const char *name, unsigned long line); # 87 "./libyasm/symrec.h" yasm_symrec *yasm_symtab_get (yasm_symtab *symtab, const char *name); # 97 "./libyasm/symrec.h" yasm_symrec *yasm_symtab_define_equ (yasm_symtab *symtab, const char *name, yasm_expr *e, unsigned long line); # 110 "./libyasm/symrec.h" yasm_symrec *yasm_symtab_define_label (yasm_symtab *symtab, const char *name, yasm_bytecode *precbc, int in_table, unsigned long line); # 124 "./libyasm/symrec.h" yasm_symrec *yasm_symtab_define_curpos (yasm_symtab *symtab, const char *name, yasm_bytecode *precbc, unsigned long line); # 136 "./libyasm/symrec.h" yasm_symrec *yasm_symtab_define_special (yasm_symtab *symtab, const char *name, yasm_sym_vis vis); # 147 "./libyasm/symrec.h" yasm_symrec *yasm_symtab_declare (yasm_symtab *symtab, const char *name, yasm_sym_vis vis, unsigned long line); void yasm_symrec_declare(yasm_symrec *symrec, yasm_sym_vis vis, unsigned long line); typedef int (*yasm_symtab_traverse_callback) (yasm_symrec *sym, void *d); # 175 "./libyasm/symrec.h" int yasm_symtab_traverse (yasm_symtab *symtab, void *d, yasm_symtab_traverse_callback func); typedef struct yasm_symtab_iter yasm_symtab_iter; const yasm_symtab_iter *yasm_symtab_first(const yasm_symtab *symtab); const yasm_symtab_iter *yasm_symtab_next (const yasm_symtab_iter *prev); yasm_symrec *yasm_symtab_iter_value(const yasm_symtab_iter *cur); # 210 "./libyasm/symrec.h" void yasm_symtab_parser_finalize(yasm_symtab *symtab, int undef_extern, yasm_objfmt *objfmt, yasm_errwarns *errwarns); void yasm_symtab_print(yasm_symtab *symtab, FILE *f, int indent_level); const char *yasm_symrec_get_name(const yasm_symrec *sym); yasm_sym_vis yasm_symrec_get_visibility(const yasm_symrec *sym); yasm_sym_status yasm_symrec_get_status(const yasm_symrec *sym); unsigned long yasm_symrec_get_line(const yasm_symrec *sym); const yasm_expr *yasm_symrec_get_equ (const yasm_symrec *sym); typedef yasm_bytecode *yasm_symrec_get_label_bytecodep; int yasm_symrec_get_label(const yasm_symrec *sym, yasm_symrec_get_label_bytecodep *precbc); int yasm_symrec_is_abs(const yasm_symrec *sym); int yasm_symrec_is_special(const yasm_symrec *sym); int yasm_symrec_is_curpos(const yasm_symrec *sym); void *yasm_symrec_get_data (yasm_symrec *sym, const yasm_assoc_data_callback *callback); void yasm_symrec_add_data(yasm_symrec *sym, const yasm_assoc_data_callback *callback, void *data); void yasm_symrec_print(const yasm_symrec *sym, FILE *f, int indent_level); # 73 "./libyasm.h" 2 # 1 "./libyasm/bytecode.h" 1 # 38 "./libyasm/bytecode.h" typedef struct yasm_effaddr yasm_effaddr; typedef struct yasm_effaddr_callback { void (*destroy) ( yasm_effaddr *ea); void (*print) (const yasm_effaddr *ea, FILE *f, int indent_level); } yasm_effaddr_callback; struct yasm_effaddr { const yasm_effaddr_callback *callback; yasm_value disp; uintptr_t segreg; unsigned char need_nonzero_len; unsigned char need_disp; unsigned char nosplit; unsigned char strong; }; typedef struct yasm_dataval yasm_dataval; typedef struct yasm_datavalhead yasm_datavalhead; # 89 "./libyasm/bytecode.h" const yasm_expr *yasm_ea_get_disp(const yasm_effaddr *ea); void yasm_ea_set_len(yasm_effaddr *ea, unsigned int len); # 106 "./libyasm/bytecode.h" void yasm_ea_set_nosplit(yasm_effaddr *ea, unsigned int nosplit); # 116 "./libyasm/bytecode.h" void yasm_ea_set_strong(yasm_effaddr *ea, unsigned int strong); void yasm_ea_set_segreg(yasm_effaddr *ea, uintptr_t segreg); void yasm_ea_destroy( yasm_effaddr *ea); void yasm_ea_print(const yasm_effaddr *ea, FILE *f, int indent_level); void yasm_bc_set_multiple(yasm_bytecode *bc, yasm_expr *e); # 156 "./libyasm/bytecode.h" yasm_bytecode *yasm_bc_create_data (yasm_datavalhead *datahead, unsigned int size, int append_zero, yasm_arch *arch, unsigned long line); yasm_bytecode *yasm_bc_create_leb128 (yasm_datavalhead *datahead, int sign, unsigned long line); yasm_bytecode *yasm_bc_create_reserve ( yasm_expr *numitems, unsigned int itemsize, unsigned long line); # 189 "./libyasm/bytecode.h" yasm_bytecode *yasm_bc_create_incbin ( char *filename, yasm_expr *start, yasm_expr *maxlen, yasm_linemap *linemap, unsigned long line); # 206 "./libyasm/bytecode.h" yasm_bytecode *yasm_bc_create_align ( yasm_expr *boundary, yasm_expr *fill, yasm_expr *maxskip, const unsigned char **code_fill, unsigned long line); yasm_bytecode *yasm_bc_create_org (unsigned long start, unsigned long line); # 230 "./libyasm/bytecode.h" yasm_bytecode *yasm_bc_create_insn (yasm_arch *arch, const uintptr_t insn_data[4], int num_operands, yasm_insn_operands *operands, unsigned long line); yasm_bytecode *yasm_bc_create_empty_insn(yasm_arch *arch, unsigned long line); void yasm_bc_insn_add_prefix(yasm_bytecode *bc, const uintptr_t prefix_data[4]); void yasm_bc_insn_add_seg_prefix(yasm_bytecode *bc, uintptr_t segreg); yasm_section *yasm_bc_get_section (yasm_bytecode *bc); # 276 "./libyasm/bytecode.h" void yasm_bc_destroy( yasm_bytecode *bc); void yasm_bc_print(const yasm_bytecode *bc, FILE *f, int indent_level); void yasm_bc_finalize(yasm_bytecode *bc, yasm_bytecode *prev_bc); # 298 "./libyasm/bytecode.h" yasm_intnum *yasm_calc_bc_dist (yasm_bytecode *precbc1, yasm_bytecode *precbc2); unsigned long yasm_bc_next_offset(yasm_bytecode *precbc); # 319 "./libyasm/bytecode.h" typedef void (*yasm_bc_add_span_func) (void *add_span_data, yasm_bytecode *bc, int id, const yasm_value *value, long neg_thres, long pos_thres); # 335 "./libyasm/bytecode.h" int yasm_bc_calc_len(yasm_bytecode *bc, yasm_bc_add_span_func add_span, void *add_span_data); # 352 "./libyasm/bytecode.h" int yasm_bc_expand(yasm_bytecode *bc, int span, long old_val, long new_val, long *neg_thres, long *pos_thres); # 375 "./libyasm/bytecode.h" unsigned char *yasm_bc_tobytes (yasm_bytecode *bc, unsigned char *buf, unsigned long *bufsize, int *gap, void *d, yasm_output_value_func output_value, yasm_output_reloc_func output_reloc) ; # 388 "./libyasm/bytecode.h" int yasm_bc_get_multiple(yasm_bytecode *bc, long *multiple, int calc_bc_dist); yasm_dataval *yasm_dv_create_expr( yasm_expr *expn); yasm_dataval *yasm_dv_create_string( char *contents, size_t len); yasm_dataval *yasm_dv_create_raw( unsigned char *contents, unsigned long len); # 420 "./libyasm/bytecode.h" void yasm_dvs_initialize(yasm_datavalhead *headp); void yasm_dvs_delete(yasm_datavalhead *headp); # 439 "./libyasm/bytecode.h" yasm_dataval *yasm_dvs_append (yasm_datavalhead *headp, yasm_dataval *dv); void yasm_dvs_print(const yasm_datavalhead *headp, FILE *f, int indent_level); # 75 "./libyasm.h" 2 # 1 "./libyasm/section.h" 1 # 40 "./libyasm/section.h" typedef struct yasm_reloc yasm_reloc; # 57 "./libyasm/section.h" yasm_object *yasm_object_create(const char *src_filename, const char *obj_filename); # 76 "./libyasm/section.h" yasm_section *yasm_object_get_general (yasm_object *object, const char *name, yasm_expr *start, unsigned long align, int code, int res_only, int *isnew, unsigned long line); # 88 "./libyasm/section.h" yasm_section *yasm_object_create_absolute (yasm_object *object, yasm_expr *start, unsigned long line); void yasm_object_destroy( yasm_object *object); void yasm_object_print(const yasm_object *object, FILE *f, int indent_level); void yasm_object_finalize(yasm_object *object, yasm_errwarns *errwarns); # 118 "./libyasm/section.h" int yasm_object_sections_traverse (yasm_object *object, void *d, int (*func) (yasm_section *sect, void *d)); yasm_section *yasm_object_find_general (yasm_object *object, const char *name); void yasm_object_set_source_fn(yasm_object *object, const char *src_filename); const char *yasm_object_get_source_fn(const yasm_object *object); const char *yasm_object_get_object_fn(const yasm_object *object); yasm_symtab *yasm_object_get_symtab(const yasm_object *object); yasm_linemap *yasm_object_get_linemap (const yasm_object *object); # 168 "./libyasm/section.h" void yasm_object_optimize(yasm_object *object, yasm_arch *arch, yasm_errwarns *errwarns); int yasm_section_is_absolute(yasm_section *sect); int yasm_section_is_code(yasm_section *sect); unsigned long yasm_section_get_opt_flags(const yasm_section *sect); void yasm_section_set_opt_flags(yasm_section *sect, unsigned long opt_flags); int yasm_section_is_default(const yasm_section *sect); void yasm_section_set_default(yasm_section *sect, int def); yasm_object *yasm_section_get_object(const yasm_section *sect); void *yasm_section_get_data (yasm_section *sect, const yasm_assoc_data_callback *callback); void yasm_section_add_data(yasm_section *sect, const yasm_assoc_data_callback *callback, void *data); # 241 "./libyasm/section.h" void yasm_section_add_reloc(yasm_section *sect, yasm_reloc *reloc, void (*destroy_func) ( void *reloc)); yasm_reloc *yasm_section_relocs_first(yasm_section *sect); yasm_reloc *yasm_section_reloc_next(yasm_reloc *reloc); # 265 "./libyasm/section.h" void yasm_reloc_get(yasm_reloc *reloc, yasm_intnum **addrp, yasm_symrec **symp); yasm_bytecode *yasm_section_bcs_first(yasm_section *sect); yasm_bytecode *yasm_section_bcs_last(yasm_section *sect); # 291 "./libyasm/section.h" yasm_bytecode *yasm_section_bcs_append (yasm_section *sect, yasm_bytecode *bc); # 305 "./libyasm/section.h" int yasm_section_bcs_traverse (yasm_section *sect, yasm_errwarns *errwarns, void *d, int (*func) (yasm_bytecode *bc, void *d)); const char *yasm_section_get_name (const yasm_section *sect); yasm_symrec *yasm_section_abs_get_sym (const yasm_section *sect); void yasm_section_set_start(yasm_section *sect, yasm_expr *start, unsigned long line); const yasm_expr *yasm_section_get_start (const yasm_section *sect); void yasm_section_set_align(yasm_section *sect, unsigned long align, unsigned long line); unsigned long yasm_section_get_align(const yasm_section *sect); void yasm_section_print( const yasm_section *sect, FILE *f, int indent_level, int print_bcs); # 76 "./libyasm.h" 2 # 1 "./libyasm/arch.h" 1 # 38 "./libyasm/arch.h" typedef enum yasm_arch_create_error { YASM_ARCH_CREATE_OK = 0, YASM_ARCH_CREATE_BAD_MACHINE, YASM_ARCH_CREATE_BAD_PARSER } yasm_arch_create_error; typedef enum yasm_arch_insnprefix { YASM_ARCH_NOTINSNPREFIX = 0, YASM_ARCH_INSN, YASM_ARCH_PREFIX } yasm_arch_insnprefix; typedef enum yasm_arch_regtmod { YASM_ARCH_NOTREGTMOD = 0, YASM_ARCH_REG, YASM_ARCH_REGGROUP, YASM_ARCH_SEGREG, YASM_ARCH_TARGETMOD } yasm_arch_regtmod; typedef struct yasm_insn_operand yasm_insn_operand; # 72 "./libyasm/arch.h" typedef struct yasm_arch_base { const struct yasm_arch_module *module; } yasm_arch_base; # 84 "./libyasm/arch.h" typedef struct yasm_arch_machine { const char *name; const char *keyword; } yasm_arch_machine; typedef struct yasm_arch_module { const char *name; const char *keyword; yasm_arch * (*create) (const char *machine, const char *parser, yasm_arch_create_error *error); void (*destroy) ( yasm_arch *arch); const char * (*get_machine) (const yasm_arch *arch); unsigned int (*get_address_size) (const yasm_arch *arch); int (*set_var) (yasm_arch *arch, const char *var, unsigned long val); void (*parse_cpu) (yasm_arch *arch, const char *cpuid, size_t cpuid_len); yasm_arch_insnprefix (*parse_check_insnprefix) (yasm_arch *arch, uintptr_t data[4], const char *id, size_t id_len); yasm_arch_regtmod (*parse_check_regtmod) (yasm_arch *arch, uintptr_t *data, const char *id, size_t id_len); int (*parse_directive) (yasm_arch *arch, const char *name, yasm_valparamhead *valparams, yasm_valparamhead *objext_valparams, yasm_object *object, unsigned long line); const unsigned char ** (*get_fill) (const yasm_arch *arch); void (*finalize_insn) (yasm_arch *arch, yasm_bytecode *bc, yasm_bytecode *prev_bc, const uintptr_t data[4], int num_operands, yasm_insn_operands *operands, int num_prefixes, uintptr_t **prefixes, int num_segregs, const uintptr_t *segregs); int (*floatnum_tobytes) (yasm_arch *arch, const yasm_floatnum *flt, unsigned char *buf, size_t destsize, size_t valsize, size_t shift, int warn); int (*intnum_tobytes) (yasm_arch *arch, const yasm_intnum *intn, unsigned char *buf, size_t destsize, size_t valsize, int shift, const yasm_bytecode *bc, int warn); unsigned int (*get_reg_size) (yasm_arch *arch, uintptr_t reg); uintptr_t (*reggroup_get_reg) (yasm_arch *arch, uintptr_t reggroup, unsigned long regindex); void (*reg_print) (yasm_arch *arch, uintptr_t reg, FILE *f); void (*segreg_print) (yasm_arch *arch, uintptr_t segreg, FILE *f); yasm_effaddr * (*ea_create) (yasm_arch *arch, yasm_expr *e); yasm_arch_machine *machines; const char *default_machine_keyword; unsigned int wordsize; unsigned int min_insn_len; } yasm_arch_module; # 297 "./libyasm/arch.h" const char *yasm_arch_name(const yasm_arch *arch); const char *yasm_arch_keyword(const yasm_arch *arch); unsigned int yasm_arch_wordsize(const yasm_arch *arch); unsigned int yasm_arch_min_insn_len(const yasm_arch *arch); # 326 "./libyasm/arch.h" yasm_arch *yasm_arch_create(const yasm_arch_module *module, const char *machine, const char *parser, yasm_arch_create_error *error); void yasm_arch_destroy( yasm_arch *arch); const char *yasm_arch_get_machine(const yasm_arch *arch); unsigned int yasm_arch_get_address_size(const yasm_arch *arch); int yasm_arch_set_var(yasm_arch *arch, const char *var, unsigned long val); # 362 "./libyasm/arch.h" void yasm_arch_parse_cpu(yasm_arch *arch, const char *cpuid, size_t cpuid_len); # 376 "./libyasm/arch.h" yasm_arch_insnprefix yasm_arch_parse_check_insnprefix (yasm_arch *arch, uintptr_t data[4], const char *id, size_t id_len); # 392 "./libyasm/arch.h" yasm_arch_regtmod yasm_arch_parse_check_regtmod (yasm_arch *arch, uintptr_t *data, const char *id, size_t id_len); # 408 "./libyasm/arch.h" int yasm_arch_parse_directive(yasm_arch *arch, const char *name, yasm_valparamhead *valparams, yasm_valparamhead *objext_valparams, yasm_object *object, unsigned long line); const unsigned char **yasm_arch_get_fill(const yasm_arch *arch); # 436 "./libyasm/arch.h" void yasm_arch_finalize_insn (yasm_arch *arch, yasm_bytecode *bc, yasm_bytecode *prev_bc, const uintptr_t data[4], int num_operands, yasm_insn_operands *operands, int num_prefixes, const uintptr_t **prefixes, int num_segregs, const uintptr_t *segregs); # 456 "./libyasm/arch.h" int yasm_arch_floatnum_tobytes(yasm_arch *arch, const yasm_floatnum *flt, unsigned char *buf, size_t destsize, size_t valsize, size_t shift, int warn); # 476 "./libyasm/arch.h" int yasm_arch_intnum_tobytes(yasm_arch *arch, const yasm_intnum *intn, unsigned char *buf, size_t destsize, size_t valsize, int shift, const yasm_bytecode *bc, int warn); unsigned int yasm_arch_get_reg_size(yasm_arch *arch, uintptr_t reg); # 496 "./libyasm/arch.h" uintptr_t yasm_arch_reggroup_get_reg(yasm_arch *arch, uintptr_t reggroup, unsigned long regindex); void yasm_arch_reg_print(yasm_arch *arch, uintptr_t reg, FILE *f); void yasm_arch_segreg_print(yasm_arch *arch, uintptr_t segreg, FILE *f); yasm_effaddr *yasm_arch_ea_create(yasm_arch *arch, yasm_expr *e); # 590 "./libyasm/arch.h" yasm_insn_operand *yasm_operand_create_reg(uintptr_t reg); yasm_insn_operand *yasm_operand_create_segreg(uintptr_t segreg); yasm_insn_operand *yasm_operand_create_mem( yasm_effaddr *ea); yasm_insn_operand *yasm_operand_create_imm( yasm_expr *val); void yasm_operand_print(const yasm_insn_operand *op, FILE *f, int indent_level, yasm_arch *arch); yasm_insn_operands *yasm_ops_create(void); void yasm_ops_destroy(yasm_insn_operands *headp, int content); yasm_insn_operand *yasm_ops_first(yasm_insn_operands *headp); yasm_insn_operand *yasm_operand_next(yasm_insn_operand *cur); # 666 "./libyasm/arch.h" yasm_insn_operand *yasm_ops_append (yasm_insn_operands *headp, yasm_insn_operand *op); void yasm_ops_print(const yasm_insn_operands *headp, FILE *f, int indent_level, yasm_arch *arch); # 78 "./libyasm.h" 2 # 1 "./libyasm/dbgfmt.h" 1 # 41 "./libyasm/dbgfmt.h" typedef struct yasm_dbgfmt_base { const struct yasm_dbgfmt_module *module; } yasm_dbgfmt_base; typedef struct yasm_dbgfmt_module { const char *name; const char *keyword; # 63 "./libyasm/dbgfmt.h" yasm_dbgfmt * (*create) (yasm_object *object, yasm_objfmt *of, yasm_arch *a); void (*destroy) ( yasm_dbgfmt *dbgfmt); int (*directive) (yasm_dbgfmt *dbgfmt, const char *name, yasm_section *sect, yasm_valparamhead *valparams, unsigned long line); void (*generate) (yasm_dbgfmt *dbgfmt, yasm_errwarns *errwarns); } yasm_dbgfmt_module; const char *yasm_dbgfmt_keyword(const yasm_dbgfmt *dbgfmt); # 100 "./libyasm/dbgfmt.h" yasm_dbgfmt *yasm_dbgfmt_create (const yasm_dbgfmt_module *module, yasm_object *object, yasm_objfmt *of, yasm_arch *a); void yasm_dbgfmt_destroy( yasm_dbgfmt *dbgfmt); # 118 "./libyasm/dbgfmt.h" int yasm_dbgfmt_directive(yasm_dbgfmt *dbgfmt, const char *name, yasm_section *sect, yasm_valparamhead *valparams, unsigned long line); void yasm_dbgfmt_generate(yasm_dbgfmt *dbgfmt, yasm_errwarns *errwarns); # 79 "./libyasm.h" 2 # 1 "./libyasm/objfmt.h" 1 # 41 "./libyasm/objfmt.h" typedef struct yasm_objfmt_base { const struct yasm_objfmt_module *module; } yasm_objfmt_base; typedef struct yasm_objfmt_module { const char *name; const char *keyword; const char *extension; const unsigned char default_x86_mode_bits; const char **dbgfmt_keywords; const char *default_dbgfmt_keyword; # 84 "./libyasm/objfmt.h" yasm_objfmt * (*create) (yasm_object *object, yasm_arch *a); void (*output) (yasm_objfmt *of, FILE *f, int all_syms, yasm_dbgfmt *df, yasm_errwarns *errwarns); void (*destroy) ( yasm_objfmt *objfmt); yasm_section * (*add_default_section) (yasm_objfmt *objfmt); yasm_section * (*section_switch)(yasm_objfmt *objfmt, yasm_valparamhead *valparams, yasm_valparamhead *objext_valparams, unsigned long line); yasm_symrec * (*extern_declare) (yasm_objfmt *objfmt, const char *name, yasm_valparamhead *objext_valparams, unsigned long line); yasm_symrec * (*global_declare) (yasm_objfmt *objfmt, const char *name, yasm_valparamhead *objext_valparams, unsigned long line); yasm_symrec * (*common_declare) (yasm_objfmt *objfmt, const char *name, yasm_expr *size, yasm_valparamhead *objext_valparams, unsigned long line); int (*directive) (yasm_objfmt *objfmt, const char *name, yasm_valparamhead *valparams, yasm_valparamhead *objext_valparams, unsigned long line); } yasm_objfmt_module; yasm_objfmt *yasm_objfmt_create (const yasm_objfmt_module *module, yasm_object *object, yasm_arch *a); # 161 "./libyasm/objfmt.h" void yasm_objfmt_output(yasm_objfmt *objfmt, FILE *f, int all_syms, yasm_dbgfmt *df, yasm_errwarns *errwarns); void yasm_objfmt_destroy( yasm_objfmt *objfmt); yasm_section *yasm_objfmt_add_default_section(yasm_objfmt *objfmt); # 184 "./libyasm/objfmt.h" yasm_section *yasm_objfmt_section_switch (yasm_objfmt *objfmt, yasm_valparamhead *valparams, yasm_valparamhead *objext_valparams, unsigned long line); # 196 "./libyasm/objfmt.h" yasm_symrec *yasm_objfmt_extern_declare (yasm_objfmt *objfmt, const char *name, yasm_valparamhead *objext_valparams, unsigned long line); # 208 "./libyasm/objfmt.h" yasm_symrec *yasm_objfmt_global_declare (yasm_objfmt *objfmt, const char *name, yasm_valparamhead *objext_valparams, unsigned long line); # 222 "./libyasm/objfmt.h" yasm_symrec *yasm_objfmt_common_declare (yasm_objfmt *objfmt, const char *name, yasm_expr *size, yasm_valparamhead *objext_valparams, unsigned long line); # 235 "./libyasm/objfmt.h" int yasm_objfmt_directive(yasm_objfmt *objfmt, const char *name, yasm_valparamhead *valparams, yasm_valparamhead *objext_valparams, unsigned long line); # 80 "./libyasm.h" 2 # 1 "./libyasm/listfmt.h" 1 # 41 "./libyasm/listfmt.h" typedef struct yasm_listfmt_base { const struct yasm_listfmt_module *module; } yasm_listfmt_base; typedef struct yasm_listfmt_module { const char *name; const char *keyword; # 62 "./libyasm/listfmt.h" yasm_listfmt * (*create) (const char *in_filename, const char *obj_filename); void (*destroy) ( yasm_listfmt *listfmt); void (*output) (yasm_listfmt *listfmt, FILE *f, yasm_linemap *linemap, yasm_arch *arch); } yasm_listfmt_module; const char *yasm_listfmt_keyword(const yasm_listfmt *listfmt); # 91 "./libyasm/listfmt.h" yasm_listfmt *yasm_listfmt_create (const yasm_listfmt_module *module, const char *in_filename, const char *obj_filename); void yasm_listfmt_destroy( yasm_listfmt *listfmt); # 107 "./libyasm/listfmt.h" void yasm_listfmt_output(yasm_listfmt *listfmt, FILE *f, yasm_linemap *linemap, yasm_arch *arch); # 81 "./libyasm.h" 2 # 1 "./libyasm/parser.h" 1 # 38 "./libyasm/parser.h" typedef struct yasm_parser_module { const char *name; const char *keyword; const char **preproc_keywords; const char *default_preproc_keyword; # 70 "./libyasm/parser.h" void (*do_parse) (yasm_object *object, yasm_preproc *pp, yasm_arch *a, yasm_objfmt *of, yasm_dbgfmt *df, FILE *f, const char *in_filename, int save_input, yasm_section *def_sect, yasm_errwarns *errwarns); } yasm_parser_module; # 82 "./libyasm.h" 2 # 1 "./libyasm/preproc.h" 1 # 41 "./libyasm/preproc.h" typedef struct yasm_preproc_base { const struct yasm_preproc_module *module; } yasm_preproc_base; typedef struct yasm_preproc_module { const char *name; const char *keyword; # 67 "./libyasm/preproc.h" yasm_preproc * (*create) (FILE *f, const char *in_filename, yasm_linemap *lm, yasm_errwarns *errwarns); void (*destroy) ( yasm_preproc *preproc); size_t (*input) (yasm_preproc *preproc, char *buf, size_t max_size); size_t (*get_included_file) (yasm_preproc *preproc, char *buf, size_t max_size); void (*add_include_file) (yasm_preproc *preproc, const char *filename); void (*predefine_macro) (yasm_preproc *preproc, const char *macronameval); void (*undefine_macro) (yasm_preproc *preproc, const char *macroname); void (*define_builtin) (yasm_preproc *preproc, const char *macronameval); } yasm_preproc_module; # 120 "./libyasm/preproc.h" yasm_preproc *yasm_preproc_create (yasm_preproc_module *module, FILE *f, const char *in_filename, yasm_linemap *lm, yasm_errwarns *errwarns); void yasm_preproc_destroy( yasm_preproc *preproc); # 136 "./libyasm/preproc.h" size_t yasm_preproc_input(yasm_preproc *preproc, char *buf, size_t max_size); size_t yasm_preproc_get_included_file(yasm_preproc *preproc, char *buf, size_t max_size); void yasm_preproc_add_include_file(yasm_preproc *preproc, const char *filename); void yasm_preproc_predefine_macro(yasm_preproc *preproc, const char *macronameval); void yasm_preproc_undefine_macro(yasm_preproc *preproc, const char *macroname); void yasm_preproc_define_builtin(yasm_preproc *preproc, const char *macronameval); # 83 "./libyasm.h" 2 # 1 "./libyasm/file.h" 1 # 38 "./libyasm/file.h" typedef struct yasm_scanner { unsigned char *bot; unsigned char *tok; unsigned char *ptr; unsigned char *cur; unsigned char *lim; unsigned char *top; unsigned char *eof; } yasm_scanner; void yasm_scanner_initialize(yasm_scanner *scanner); void yasm_scanner_delete(yasm_scanner *scanner); # 67 "./libyasm/file.h" int yasm_fill_helper (yasm_scanner *scanner, unsigned char **cursor, size_t (*input_func) (void *d, unsigned char *buf, size_t max), void *input_func_data); # 81 "./libyasm/file.h" void yasm_unescape_cstring(unsigned char *str, size_t *len); # 90 "./libyasm/file.h" size_t yasm__splitpath_unix(const char *path, const char **tail); # 99 "./libyasm/file.h" size_t yasm__splitpath_win(const char *path, const char **tail); # 123 "./libyasm/file.h" char *yasm__abspath_unix(const char *path); char *yasm__abspath_win(const char *path); # 156 "./libyasm/file.h" char *yasm__combpath_unix(const char *from, const char *to); # 166 "./libyasm/file.h" char *yasm__combpath_win(const char *from, const char *to); # 205 "./libyasm/file.h" FILE *yasm_fopen_include (const char *iname, const char *from, const char *mode, char **oname); void yasm_delete_include_paths(void); void yasm_add_include_path(const char *path); # 349 "./libyasm/file.h" size_t yasm_fwrite_16_l(unsigned short val, FILE *f); # 358 "./libyasm/file.h" size_t yasm_fwrite_32_l(unsigned long val, FILE *f); # 367 "./libyasm/file.h" size_t yasm_fwrite_16_b(unsigned short val, FILE *f); # 376 "./libyasm/file.h" size_t yasm_fwrite_32_b(unsigned long val, FILE *f); # 85 "./libyasm.h" 2 # 1 "./libyasm/module.h" 1 # 30 "./libyasm/module.h" typedef enum yasm_module_type { YASM_MODULE_ARCH = 0, YASM_MODULE_DBGFMT, YASM_MODULE_OBJFMT, YASM_MODULE_LISTFMT, YASM_MODULE_PARSER, YASM_MODULE_PREPROC } yasm_module_type; void *yasm_load_module (yasm_module_type type, const char *keyword); # 55 "./libyasm/module.h" void yasm_list_modules (yasm_module_type type, void (*printfunc) (const char *name, const char *keyword)); # 86 "./libyasm.h" 2 # 34 "frontends/yasm/yasm.c" 2 # 1 "/usr/include/libgen.h" 1 3 4 # 1 "/usr/include/gentoo-multilib/x86/libgen.h" 1 3 4 # 22 "/usr/include/gentoo-multilib/x86/libgen.h" 3 4 # 1 "/usr/include/features.h" 1 3 4 # 23 "/usr/include/gentoo-multilib/x86/libgen.h" 2 3 4 extern char *dirname (char *__path) __attribute__ ((__nothrow__)); extern char *__xpg_basename (char *__path) __attribute__ ((__nothrow__)); # 5 "/usr/include/libgen.h" 2 3 4 # 37 "frontends/yasm/yasm.c" 2 # 1 "frontends/yasm/yasm-options.h" 1 # 33 "frontends/yasm/yasm-options.h" typedef struct opt_option_s { char sopt; const char *lopt; int takes_param; int (*handler) (char *cmd, char *param, int extra); int extra; const char *description; const char *param_desc; } opt_option; int not_an_option_handler(char *param); int other_option_handler(char *option); int parse_cmdline(int argc, char **argv, opt_option *options, size_t nopts, void (*print_error) (const char *fmt, ...)); void help_msg(const char *msg, const char *tail, opt_option *options, size_t nopts); # 40 "frontends/yasm/yasm.c" 2 # 1 "./license.c" 1 static const char *license_msg[] = { "Yasm is Copyright (c) 2001-2007 Peter Johnson and other Yasm developers.", "", "Yasm developers and/or contributors include:", " Peter Johnson", " Michael Urman", " Brian Gladman (VC8 build files, other fixes)", " Stanislav Karchebny (options parser)", " Mathieu Monnier (SSE4 instruction patches)", " Anonymous \"NASM64\" developer (NASM preprocessor fixes)", " Stephen Polkowski (x86 instruction patches)", " Henryk Richter (Mach-O object format)", " Ben Skeggs (patches, bug reports)", "", "-----------------------------------", "Yasm licensing overview and summary", "-----------------------------------", "", "Note: This document does not provide legal advice nor is it the actual", "license of any part of Yasm. See the individual licenses for complete", "details. Consult a lawyer for legal advice.", "", "The primary license of Yasm is the 2-clause BSD license. Please use this", "license if you plan on submitting code to the project.", "", "Yasm has absolutely no warranty; not even for merchantibility or fitness", "for a particular purpose.", "", "-------", "Libyasm", "-------", "Libyasm is 2-clause or 3-clause BSD licensed, with the exception of", "bitvect, which is triple-licensed under the Artistic license, GPL, and", "LGPL. Libyasm is thus GPL and LGPL compatible. In addition, this also", "means that libyasm is free for binary-only distribution as long as the", "terms of the 3-clause BSD license and Artistic license (as it applies to", "bitvect) are fulfilled.", "", "-------", "Modules", "-------", "The modules are 2-clause or 3-clause BSD licensed, with the exception of:", " preprocs/nasm - LGPL licensed", "", "---------", "Frontends", "---------", "The frontends are 2-clause BSD licensed.", "", "-------------", "License Texts", "-------------", "The full text of all licenses are provided in separate files in the source", "distribution. Each source file may include the entire license (in the case", "of the BSD and Artistic licenses), or may reference the GPL or LGPL license", "file.", "", "BSD.txt - 2-clause and 3-clause BSD licenses", "Artistic.txt - Artistic license", "GNU_GPL-2.0 - GNU General Public License", "GNU_LGPL-2.0 - GNU Library General Public License", }; # 42 "frontends/yasm/yasm.c" 2 static char *obj_filename = ((void *)0), *in_filename = ((void *)0); static char *list_filename = ((void *)0); static char *machine_name = ((void *)0); static int special_options = 0; static yasm_arch *cur_arch = ((void *)0); static const yasm_arch_module * cur_arch_module = ((void *)0); static const yasm_parser_module * cur_parser_module = ((void *)0); static yasm_preproc *cur_preproc = ((void *)0); static const yasm_preproc_module * cur_preproc_module = ((void *)0); static char *objfmt_keyword = ((void *)0); static yasm_objfmt *cur_objfmt = ((void *)0); static const yasm_objfmt_module * cur_objfmt_module = ((void *)0); static yasm_dbgfmt *cur_dbgfmt = ((void *)0); static const yasm_dbgfmt_module * cur_dbgfmt_module = ((void *)0); static yasm_listfmt *cur_listfmt = ((void *)0); static const yasm_listfmt_module * cur_listfmt_module = ((void *)0); static int preproc_only = 0; static unsigned int force_strict = 0; static int generate_make_dependencies = 0; static int warning_error = 0; static enum { EWSTYLE_GNU = 0, EWSTYLE_VC } ewmsg_style = EWSTYLE_GNU; static FILE *open_file(const char *filename, const char *mode); static void check_errors( yasm_errwarns *errwarns, yasm_object *object); static void cleanup( yasm_object *object); static int opt_special_handler(char *cmd, char *param, int extra); static int opt_arch_handler(char *cmd, char *param, int extra); static int opt_parser_handler(char *cmd, char *param, int extra); static int opt_preproc_handler(char *cmd, char *param, int extra); static int opt_objfmt_handler(char *cmd, char *param, int extra); static int opt_dbgfmt_handler(char *cmd, char *param, int extra); static int opt_listfmt_handler(char *cmd, char *param, int extra); static int opt_listfile_handler(char *cmd, char *param, int extra); static int opt_objfile_handler(char *cmd, char *param, int extra); static int opt_machine_handler(char *cmd, char *param, int extra); static int opt_strict_handler(char *cmd, char *param, int extra); static int opt_warning_handler(char *cmd, char *param, int extra); static int preproc_only_handler(char *cmd, char *param, int extra); static int opt_include_option(char *cmd, char *param, int extra); static int opt_preproc_option(char *cmd, char *param, int extra); static int opt_ewmsg_handler(char *cmd, char *param, int extra); static int opt_makedep_handler(char *cmd, char *param, int extra); static char *replace_extension(const char *orig, const char *ext, const char *def); static void print_error(const char *fmt, ...); static void handle_yasm_int_error(const char *file, unsigned int line, const char *message); static void handle_yasm_fatal(const char *message, va_list va); static const char *handle_yasm_gettext(const char *msgid); static void print_yasm_error(const char *filename, unsigned long line, const char *msg, const char *xref_fn, unsigned long xref_line, const char *xref_msg); static void print_yasm_warning(const char *filename, unsigned long line, const char *msg); static void apply_preproc_builtins(void); static void apply_preproc_saved_options(void); static void print_list_keyword_desc(const char *name, const char *keyword); # 129 "frontends/yasm/yasm.c" static opt_option options[] = { { 0, "version", 0, opt_special_handler, 0x02, ("show version text"), ((void *)0) }, { 0, "license", 0, opt_special_handler, 0x04, ("show license text"), ((void *)0) }, { 'h', "help", 0, opt_special_handler, 0x01, ("show help text"), ((void *)0) }, { 'a', "arch", 1, opt_arch_handler, 0, ("select architecture (list with -a help)"), ("arch") }, { 'p', "parser", 1, opt_parser_handler, 0, ("select parser (list with -p help)"), ("parser") }, { 'r', "preproc", 1, opt_preproc_handler, 0, ("select preprocessor (list with -r help)"), ("preproc") }, { 'f', "oformat", 1, opt_objfmt_handler, 0, ("select object format (list with -f help)"), ("format") }, { 'g', "dformat", 1, opt_dbgfmt_handler, 0, ("select debugging format (list with -g help)"), ("debug") }, { 'L', "lformat", 1, opt_listfmt_handler, 0, ("select list format (list with -L help)"), ("list") }, { 'l', "list", 1, opt_listfile_handler, 0, ("name of list-file output"), ("listfile") }, { 'o', "objfile", 1, opt_objfile_handler, 0, ("name of object-file output"), ("filename") }, { 'm', "machine", 1, opt_machine_handler, 0, ("select machine (list with -m help)"), ("machine") }, { 0, "force-strict", 0, opt_strict_handler, 0, ("treat all sized operands as if `strict' was used"), ((void *)0) }, { 'w', ((void *)0), 0, opt_warning_handler, 1, ("inhibits warning messages"), ((void *)0) }, { 'W', ((void *)0), 0, opt_warning_handler, 0, ("enables/disables warning"), ((void *)0) }, { 'M', ((void *)0), 0, opt_makedep_handler, 0, ("generate Makefile dependencies on stdout"), ((void *)0) }, { 'e', "preproc-only", 0, preproc_only_handler, 0, ("preprocess only (writes output to stdout by default)"), ((void *)0) }, { 'i', ((void *)0), 1, opt_include_option, 0, ("add include path"), ("path") }, { 'I', ((void *)0), 1, opt_include_option, 0, ("add include path"), ("path") }, { 'P', ((void *)0), 1, opt_preproc_option, 0, ("pre-include file"), ("filename") }, { 'D', ((void *)0), 1, opt_preproc_option, 1, ("pre-define a macro, optionally to value"), ("macro[=value]") }, { 'U', ((void *)0), 1, opt_preproc_option, 2, ("undefine a macro"), ("macro") }, { 'X', ((void *)0), 1, opt_ewmsg_handler, 0, ("select error/warning message style (`gnu' or `vc')"), ("style") }, }; static const char *version_msg[] = { "yasm" " " "0.6.0" "." "1798", "Compiled on " "Jun 22 2007" ".", "Copyright (c) 2001-2007 Peter Johnson and other Yasm developers.", "Run yasm --license for licensing overview and summary." }; static const char *help_head = ("usage: yasm [option]* file\n" "Options:\n"); static const char *help_tail = ("\n" "Files are asm sources to be assembled.\n" "\n" "Sample invocation:\n" " yasm -f elf -o object.o source.asm\n" "\n" "Report bugs to bug-yasm@tortall.net\n"); # 201 "frontends/yasm/yasm.c" typedef struct constcharparam_head { struct constcharparam *stqh_first; struct constcharparam **stqh_last; } constcharparam_head; typedef struct constcharparam { struct { struct constcharparam *stqe_next; } link; const char *param; int id; } constcharparam; static constcharparam_head preproc_options; static int do_preproc_only(FILE *in) { yasm_linemap *linemap; char *preproc_buf = yasm_xmalloc(16384); size_t got; const char *base_filename; FILE *out = ((void *)0); yasm_errwarns *errwarns = yasm_errwarns_create(); linemap = yasm_linemap_create(); yasm_linemap_set(linemap, in_filename, 1, 1); if (!obj_filename || generate_make_dependencies) { out = stdout; if (generate_make_dependencies && !obj_filename) { if (in == stdin) obj_filename = yasm__xstrdup("yasm.out"); else { yasm__splitpath_unix(in_filename, &base_filename); if (base_filename[0] == '\0') obj_filename = yasm__xstrdup("yasm.out"); else obj_filename = replace_extension(base_filename, cur_objfmt_module->extension, "yasm.out"); } } } else { out = open_file(obj_filename, "wt"); if (!out) { yasm_xfree(preproc_buf); return 1; } } cur_preproc = cur_preproc_module->create(in, in_filename, linemap, errwarns); apply_preproc_builtins(); apply_preproc_saved_options(); if (generate_make_dependencies) { size_t totlen; fprintf(stdout, "%s: %s", obj_filename, in_filename); totlen = strlen(obj_filename)+2+strlen(in_filename); while ((got = ((yasm_preproc_base *)cur_preproc)->module->get_included_file(cur_preproc, preproc_buf, 16384)) != 0) { totlen += got; if (totlen > 72) { fputs(" \\\n ", stdout); totlen = 2; } fputc(' ', stdout); fwrite(preproc_buf, got, 1, stdout); } fputc('\n', stdout); } else { while ((got = ((yasm_preproc_base *)cur_preproc)->module->input(cur_preproc, preproc_buf, 16384)) != 0) fwrite(preproc_buf, got, 1, out); } if (in != stdin) fclose(in); if (out != stdout) fclose(out); if (yasm_errwarns_num_errors(errwarns, warning_error) > 0) { yasm_errwarns_output_all(errwarns, linemap, warning_error, print_yasm_error, print_yasm_warning); if (out != stdout) remove(obj_filename); yasm_xfree(preproc_buf); yasm_linemap_destroy(linemap); yasm_errwarns_destroy(errwarns); cleanup(((void *)0)); return 1; } yasm_errwarns_output_all(errwarns, linemap, warning_error, print_yasm_error, print_yasm_warning); yasm_xfree(preproc_buf); yasm_linemap_destroy(linemap); yasm_errwarns_destroy(errwarns); cleanup(((void *)0)); return 0; } static int do_assemble(FILE *in) { yasm_object *object; yasm_section *def_sect; const char *base_filename; FILE *obj = ((void *)0); yasm_arch_create_error arch_error; yasm_errwarns *errwarns = yasm_errwarns_create(); int i, matched; if (!obj_filename) { if (in == stdin) obj_filename = yasm__xstrdup("yasm.out"); else { yasm__splitpath_unix(in_filename, &base_filename); if (base_filename[0] == '\0') obj_filename = yasm__xstrdup("yasm.out"); else obj_filename = replace_extension(base_filename, cur_objfmt_module->extension, "yasm.out"); } } if (!machine_name) { if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (cur_arch_module->keyword) && __builtin_constant_p ("x86") && (__s1_len = strlen (cur_arch_module->keyword), __s2_len = strlen ("x86"), (!((size_t)(const void *)((cur_arch_module->keyword) + 1) - (size_t)(const void *)(cur_arch_module->keyword) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("x86") + 1) - (size_t)(const void *)("x86") == 1) || __s2_len >= 4)) ? __builtin_strcmp (cur_arch_module->keyword, "x86") : (__builtin_constant_p (cur_arch_module->keyword) && ((size_t)(const void *)((cur_arch_module->keyword) + 1) - (size_t)(const void *)(cur_arch_module->keyword) == 1) && (__s1_len = strlen (cur_arch_module->keyword), __s1_len < 4) ? (__builtin_constant_p ("x86") && ((size_t)(const void *)(("x86") + 1) - (size_t)(const void *)("x86") == 1) ? __builtin_strcmp (cur_arch_module->keyword, "x86") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("x86"); register int __result = (((__const unsigned char *) (__const char *) (cur_arch_module->keyword))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (cur_arch_module->keyword))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (cur_arch_module->keyword))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (cur_arch_module->keyword))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("x86") && ((size_t)(const void *)(("x86") + 1) - (size_t)(const void *)("x86") == 1) && (__s2_len = strlen ("x86"), __s2_len < 4) ? (__builtin_constant_p (cur_arch_module->keyword) && ((size_t)(const void *)((cur_arch_module->keyword) + 1) - (size_t)(const void *)(cur_arch_module->keyword) == 1) ? __builtin_strcmp (cur_arch_module->keyword, "x86") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (cur_arch_module->keyword); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("x86"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("x86"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("x86"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("x86"))[3]); } } __result; }))) : __builtin_strcmp (cur_arch_module->keyword, "x86")))); }) == 0 && cur_objfmt_module->default_x86_mode_bits == 64) machine_name = yasm__xstrdup("amd64"); else machine_name = yasm__xstrdup(cur_arch_module->default_machine_keyword); } cur_arch = cur_arch_module->create(machine_name, cur_parser_module->keyword, &arch_error); if (!cur_arch) { switch (arch_error) { case YASM_ARCH_CREATE_BAD_MACHINE: print_error(dcgettext (((void *)0), "%s: `%s' is not a valid %s for %s `%s'", __LC_MESSAGES), dcgettext (((void *)0), "FATAL", __LC_MESSAGES), machine_name, dcgettext (((void *)0), "machine", __LC_MESSAGES), dcgettext (((void *)0), "architecture", __LC_MESSAGES), cur_arch_module->keyword); break; case YASM_ARCH_CREATE_BAD_PARSER: print_error(dcgettext (((void *)0), "%s: `%s' is not a valid %s for %s `%s'", __LC_MESSAGES), dcgettext (((void *)0), "FATAL", __LC_MESSAGES), cur_parser_module->keyword, dcgettext (((void *)0), "parser", __LC_MESSAGES), dcgettext (((void *)0), "architecture", __LC_MESSAGES), cur_arch_module->keyword); break; default: print_error(dcgettext (((void *)0), "%s: unknown architecture error", __LC_MESSAGES), dcgettext (((void *)0), "FATAL", __LC_MESSAGES)); } return 1; } object = yasm_object_create(in_filename, obj_filename); yasm_linemap_set(yasm_object_get_linemap(object), in_filename, 1, 1); cur_objfmt = cur_objfmt_module->create(object, cur_arch); if (!cur_objfmt) { print_error( dcgettext (((void *)0), "%s: object format `%s' does not support architecture `%s' machine `%s'", __LC_MESSAGES), dcgettext (((void *)0), "FATAL", __LC_MESSAGES), cur_objfmt_module->keyword, cur_arch_module->keyword, machine_name); if (in != stdin) fclose(in); cleanup(object); return 1; } cur_objfmt_module = ((yasm_objfmt_base *)cur_objfmt)->module; def_sect = ((yasm_objfmt_base *)cur_objfmt)->module->add_default_section(cur_objfmt); matched = 0; for (i=0; cur_objfmt_module->dbgfmt_keywords[i]; i++) if (strcasecmp(cur_objfmt_module->dbgfmt_keywords[i], cur_dbgfmt_module->keyword) == 0) matched = 1; if (!matched) { print_error(dcgettext (((void *)0), "%s: `%s' is not a valid %s for %s `%s'", __LC_MESSAGES), dcgettext (((void *)0), "FATAL", __LC_MESSAGES), cur_dbgfmt_module->keyword, dcgettext (((void *)0), "debug format", __LC_MESSAGES), dcgettext (((void *)0), "object format", __LC_MESSAGES), cur_objfmt_module->keyword); if (in != stdin) fclose(in); cleanup(object); return 1; } cur_dbgfmt = cur_dbgfmt_module->create(object, cur_objfmt, cur_arch); if (!cur_dbgfmt) { print_error( dcgettext (((void *)0), "%s: debug format `%s' does not work with object format `%s'", __LC_MESSAGES), dcgettext (((void *)0), "FATAL", __LC_MESSAGES), cur_dbgfmt_module->keyword, cur_objfmt_module->keyword); if (in != stdin) fclose(in); return 1; } matched = 0; for (i=0; cur_parser_module->preproc_keywords[i]; i++) if (strcasecmp(cur_parser_module->preproc_keywords[i], cur_preproc_module->keyword) == 0) matched = 1; if (!matched) { print_error(dcgettext (((void *)0), "%s: `%s' is not a valid %s for %s `%s'", __LC_MESSAGES), dcgettext (((void *)0), "FATAL", __LC_MESSAGES), cur_preproc_module->keyword, dcgettext (((void *)0), "preprocessor", __LC_MESSAGES), dcgettext (((void *)0), "parser", __LC_MESSAGES), cur_parser_module->keyword); if (in != stdin) fclose(in); cleanup(object); return 1; } cur_preproc = cur_preproc_module->create(in, in_filename, yasm_object_get_linemap(object), errwarns); apply_preproc_builtins(); apply_preproc_saved_options(); if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (cur_arch_module->keyword) && __builtin_constant_p ("x86") && (__s1_len = strlen (cur_arch_module->keyword), __s2_len = strlen ("x86"), (!((size_t)(const void *)((cur_arch_module->keyword) + 1) - (size_t)(const void *)(cur_arch_module->keyword) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("x86") + 1) - (size_t)(const void *)("x86") == 1) || __s2_len >= 4)) ? __builtin_strcmp (cur_arch_module->keyword, "x86") : (__builtin_constant_p (cur_arch_module->keyword) && ((size_t)(const void *)((cur_arch_module->keyword) + 1) - (size_t)(const void *)(cur_arch_module->keyword) == 1) && (__s1_len = strlen (cur_arch_module->keyword), __s1_len < 4) ? (__builtin_constant_p ("x86") && ((size_t)(const void *)(("x86") + 1) - (size_t)(const void *)("x86") == 1) ? __builtin_strcmp (cur_arch_module->keyword, "x86") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("x86"); register int __result = (((__const unsigned char *) (__const char *) (cur_arch_module->keyword))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (cur_arch_module->keyword))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (cur_arch_module->keyword))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (cur_arch_module->keyword))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("x86") && ((size_t)(const void *)(("x86") + 1) - (size_t)(const void *)("x86") == 1) && (__s2_len = strlen ("x86"), __s2_len < 4) ? (__builtin_constant_p (cur_arch_module->keyword) && ((size_t)(const void *)((cur_arch_module->keyword) + 1) - (size_t)(const void *)(cur_arch_module->keyword) == 1) ? __builtin_strcmp (cur_arch_module->keyword, "x86") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (cur_arch_module->keyword); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("x86"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("x86"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("x86"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("x86"))[3]); } } __result; }))) : __builtin_strcmp (cur_arch_module->keyword, "x86")))); }) == 0) { ((yasm_arch_base *)cur_arch)->module->set_var(cur_arch, "mode_bits", cur_objfmt_module->default_x86_mode_bits); } ((yasm_arch_base *)cur_arch)->module->set_var(cur_arch, "force_strict", force_strict); cur_parser_module->do_parse(object, cur_preproc, cur_arch, cur_objfmt, cur_dbgfmt, in, in_filename, list_filename != ((void *)0), def_sect, errwarns); if (in != stdin) fclose(in); check_errors(errwarns, object); yasm_symtab_parser_finalize(yasm_object_get_symtab(object), __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (cur_parser_module->keyword) && __builtin_constant_p ("gas") && (__s1_len = strlen (cur_parser_module->keyword), __s2_len = strlen ("gas"), (!((size_t)(const void *)((cur_parser_module->keyword) + 1) - (size_t)(const void *)(cur_parser_module->keyword) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("gas") + 1) - (size_t)(const void *)("gas") == 1) || __s2_len >= 4)) ? __builtin_strcmp (cur_parser_module->keyword, "gas") : (__builtin_constant_p (cur_parser_module->keyword) && ((size_t)(const void *)((cur_parser_module->keyword) + 1) - (size_t)(const void *)(cur_parser_module->keyword) == 1) && (__s1_len = strlen (cur_parser_module->keyword), __s1_len < 4) ? (__builtin_constant_p ("gas") && ((size_t)(const void *)(("gas") + 1) - (size_t)(const void *)("gas") == 1) ? __builtin_strcmp (cur_parser_module->keyword, "gas") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("gas"); register int __result = (((__const unsigned char *) (__const char *) (cur_parser_module->keyword))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (cur_parser_module->keyword))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (cur_parser_module->keyword))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (cur_parser_module->keyword))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("gas") && ((size_t)(const void *)(("gas") + 1) - (size_t)(const void *)("gas") == 1) && (__s2_len = strlen ("gas"), __s2_len < 4) ? (__builtin_constant_p (cur_parser_module->keyword) && ((size_t)(const void *)((cur_parser_module->keyword) + 1) - (size_t)(const void *)(cur_parser_module->keyword) == 1) ? __builtin_strcmp (cur_parser_module->keyword, "gas") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (cur_parser_module->keyword); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("gas"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("gas"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("gas"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("gas"))[3]); } } __result; }))) : __builtin_strcmp (cur_parser_module->keyword, "gas")))); })==0 || __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (cur_parser_module->keyword) && __builtin_constant_p ("gnu") && (__s1_len = strlen (cur_parser_module->keyword), __s2_len = strlen ("gnu"), (!((size_t)(const void *)((cur_parser_module->keyword) + 1) - (size_t)(const void *)(cur_parser_module->keyword) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("gnu") + 1) - (size_t)(const void *)("gnu") == 1) || __s2_len >= 4)) ? __builtin_strcmp (cur_parser_module->keyword, "gnu") : (__builtin_constant_p (cur_parser_module->keyword) && ((size_t)(const void *)((cur_parser_module->keyword) + 1) - (size_t)(const void *)(cur_parser_module->keyword) == 1) && (__s1_len = strlen (cur_parser_module->keyword), __s1_len < 4) ? (__builtin_constant_p ("gnu") && ((size_t)(const void *)(("gnu") + 1) - (size_t)(const void *)("gnu") == 1) ? __builtin_strcmp (cur_parser_module->keyword, "gnu") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("gnu"); register int __result = (((__const unsigned char *) (__const char *) (cur_parser_module->keyword))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (cur_parser_module->keyword))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (cur_parser_module->keyword))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (cur_parser_module->keyword))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("gnu") && ((size_t)(const void *)(("gnu") + 1) - (size_t)(const void *)("gnu") == 1) && (__s2_len = strlen ("gnu"), __s2_len < 4) ? (__builtin_constant_p (cur_parser_module->keyword) && ((size_t)(const void *)((cur_parser_module->keyword) + 1) - (size_t)(const void *)(cur_parser_module->keyword) == 1) ? __builtin_strcmp (cur_parser_module->keyword, "gnu") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (cur_parser_module->keyword); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("gnu"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("gnu"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("gnu"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("gnu"))[3]); } } __result; }))) : __builtin_strcmp (cur_parser_module->keyword, "gnu")))); })==0, cur_objfmt, errwarns); check_errors(errwarns, object); yasm_object_finalize(object, errwarns); check_errors(errwarns, object); yasm_object_optimize(object, cur_arch, errwarns); check_errors(errwarns, object); ((yasm_dbgfmt_base *)cur_dbgfmt)->module->generate(cur_dbgfmt, errwarns); check_errors(errwarns, object); if (!obj && __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (cur_objfmt_module->keyword) && __builtin_constant_p ("dbg") && (__s1_len = strlen (cur_objfmt_module->keyword), __s2_len = strlen ("dbg"), (!((size_t)(const void *)((cur_objfmt_module->keyword) + 1) - (size_t)(const void *)(cur_objfmt_module->keyword) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("dbg") + 1) - (size_t)(const void *)("dbg") == 1) || __s2_len >= 4)) ? __builtin_strcmp (cur_objfmt_module->keyword, "dbg") : (__builtin_constant_p (cur_objfmt_module->keyword) && ((size_t)(const void *)((cur_objfmt_module->keyword) + 1) - (size_t)(const void *)(cur_objfmt_module->keyword) == 1) && (__s1_len = strlen (cur_objfmt_module->keyword), __s1_len < 4) ? (__builtin_constant_p ("dbg") && ((size_t)(const void *)(("dbg") + 1) - (size_t)(const void *)("dbg") == 1) ? __builtin_strcmp (cur_objfmt_module->keyword, "dbg") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("dbg"); register int __result = (((__const unsigned char *) (__const char *) (cur_objfmt_module->keyword))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (cur_objfmt_module->keyword))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (cur_objfmt_module->keyword))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (cur_objfmt_module->keyword))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("dbg") && ((size_t)(const void *)(("dbg") + 1) - (size_t)(const void *)("dbg") == 1) && (__s2_len = strlen ("dbg"), __s2_len < 4) ? (__builtin_constant_p (cur_objfmt_module->keyword) && ((size_t)(const void *)((cur_objfmt_module->keyword) + 1) - (size_t)(const void *)(cur_objfmt_module->keyword) == 1) ? __builtin_strcmp (cur_objfmt_module->keyword, "dbg") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (cur_objfmt_module->keyword); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("dbg"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("dbg"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("dbg"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("dbg"))[3]); } } __result; }))) : __builtin_strcmp (cur_objfmt_module->keyword, "dbg")))); }) != 0) { obj = open_file(obj_filename, "wb"); if (!obj) { cleanup(object); return 1; } } ((yasm_objfmt_base *)cur_objfmt)->module->output(cur_objfmt, obj?obj:stderr, __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (cur_dbgfmt_module->keyword) && __builtin_constant_p ("null") && (__s1_len = strlen (cur_dbgfmt_module->keyword), __s2_len = strlen ("null"), (!((size_t)(const void *)((cur_dbgfmt_module->keyword) + 1) - (size_t)(const void *)(cur_dbgfmt_module->keyword) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("null") + 1) - (size_t)(const void *)("null") == 1) || __s2_len >= 4)) ? __builtin_strcmp (cur_dbgfmt_module->keyword, "null") : (__builtin_constant_p (cur_dbgfmt_module->keyword) && ((size_t)(const void *)((cur_dbgfmt_module->keyword) + 1) - (size_t)(const void *)(cur_dbgfmt_module->keyword) == 1) && (__s1_len = strlen (cur_dbgfmt_module->keyword), __s1_len < 4) ? (__builtin_constant_p ("null") && ((size_t)(const void *)(("null") + 1) - (size_t)(const void *)("null") == 1) ? __builtin_strcmp (cur_dbgfmt_module->keyword, "null") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("null"); register int __result = (((__const unsigned char *) (__const char *) (cur_dbgfmt_module->keyword))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (cur_dbgfmt_module->keyword))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (cur_dbgfmt_module->keyword))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (cur_dbgfmt_module->keyword))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("null") && ((size_t)(const void *)(("null") + 1) - (size_t)(const void *)("null") == 1) && (__s2_len = strlen ("null"), __s2_len < 4) ? (__builtin_constant_p (cur_dbgfmt_module->keyword) && ((size_t)(const void *)((cur_dbgfmt_module->keyword) + 1) - (size_t)(const void *)(cur_dbgfmt_module->keyword) == 1) ? __builtin_strcmp (cur_dbgfmt_module->keyword, "null") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (cur_dbgfmt_module->keyword); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("null"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("null"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("null"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("null"))[3]); } } __result; }))) : __builtin_strcmp (cur_dbgfmt_module->keyword, "null")))); }), cur_dbgfmt, errwarns); if (obj) fclose(obj); if (yasm_errwarns_num_errors(errwarns, warning_error) > 0) remove(obj_filename); check_errors(errwarns, object); if (list_filename) { FILE *list = open_file(list_filename, "wt"); if (!list) { cleanup(object); return 1; } cur_listfmt = cur_listfmt_module->create(in_filename, obj_filename); ((yasm_listfmt_base *)cur_listfmt)->module->output(cur_listfmt, list, yasm_object_get_linemap(object), cur_arch); fclose(list); } yasm_errwarns_output_all(errwarns, yasm_object_get_linemap(object), warning_error, print_yasm_error, print_yasm_warning); yasm_errwarns_destroy(errwarns); cleanup(object); return 0; } int main(int argc, char *argv[]) { FILE *in = ((void *)0); size_t i; textdomain("yasm"); yasm_internal_error_ = handle_yasm_int_error; yasm_fatal = handle_yasm_fatal; yasm_gettext_hook = handle_yasm_gettext; yasm_errwarn_initialize(); do { (((&preproc_options))->stqh_first) = ((void *)0); (&preproc_options)->stqh_last = &(((&preproc_options))->stqh_first); } while (0); if (parse_cmdline(argc, argv, options, (sizeof(options) / sizeof(options[0])), print_error)) return 1; switch (special_options) { case 0x01: help_msg(help_head, help_tail, options, (sizeof(options) / sizeof(options[0]))); return 0; case 0x02: for (i=0; i<(sizeof(version_msg) / sizeof(version_msg[0])); i++) printf("%s\n", version_msg[i]); return 0; case 0x04: for (i=0; i<(sizeof(license_msg) / sizeof(license_msg[0])); i++) printf("%s\n", license_msg[i]); return 0; case 0x08: return 0; } if (BitVector_Boot() != ErrCode_Ok) { print_error(dcgettext (((void *)0), "%s: could not initialize BitVector", __LC_MESSAGES), dcgettext (((void *)0), "FATAL", __LC_MESSAGES)); return 1; } yasm_intnum_initialize(); yasm_floatnum_initialize(); if (!cur_objfmt_module) { if (!objfmt_keyword) objfmt_keyword = yasm__xstrdup("bin"); cur_objfmt_module = yasm_load_module(YASM_MODULE_OBJFMT, objfmt_keyword); if (!cur_objfmt_module) { print_error(dcgettext (((void *)0), "%s: could not load default %s", __LC_MESSAGES), dcgettext (((void *)0), "FATAL", __LC_MESSAGES), dcgettext (((void *)0), "object format", __LC_MESSAGES)); return 1; } } if (!cur_arch_module) { cur_arch_module = yasm_load_module(YASM_MODULE_ARCH, "x86"); if (!cur_arch_module) { print_error(dcgettext (((void *)0), "%s: could not load default %s", __LC_MESSAGES), dcgettext (((void *)0), "FATAL", __LC_MESSAGES), dcgettext (((void *)0), "architecture", __LC_MESSAGES)); return 1; } } if (machine_name && __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (machine_name) && __builtin_constant_p ("help") && (__s1_len = strlen (machine_name), __s2_len = strlen ("help"), (!((size_t)(const void *)((machine_name) + 1) - (size_t)(const void *)(machine_name) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("help") + 1) - (size_t)(const void *)("help") == 1) || __s2_len >= 4)) ? __builtin_strcmp (machine_name, "help") : (__builtin_constant_p (machine_name) && ((size_t)(const void *)((machine_name) + 1) - (size_t)(const void *)(machine_name) == 1) && (__s1_len = strlen (machine_name), __s1_len < 4) ? (__builtin_constant_p ("help") && ((size_t)(const void *)(("help") + 1) - (size_t)(const void *)("help") == 1) ? __builtin_strcmp (machine_name, "help") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("help"); register int __result = (((__const unsigned char *) (__const char *) (machine_name))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (machine_name))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (machine_name))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (machine_name))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("help") && ((size_t)(const void *)(("help") + 1) - (size_t)(const void *)("help") == 1) && (__s2_len = strlen ("help"), __s2_len < 4) ? (__builtin_constant_p (machine_name) && ((size_t)(const void *)((machine_name) + 1) - (size_t)(const void *)(machine_name) == 1) ? __builtin_strcmp (machine_name, "help") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (machine_name); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("help"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("help"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("help"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("help"))[3]); } } __result; }))) : __builtin_strcmp (machine_name, "help")))); }) == 0) { yasm_arch_machine *m = cur_arch_module->machines; printf(dcgettext (((void *)0), "Available %s for %s `%s':\n", __LC_MESSAGES), dcgettext (((void *)0), "machines", __LC_MESSAGES), dcgettext (((void *)0), "architecture", __LC_MESSAGES), cur_arch_module->keyword); while (m->keyword && m->name) { print_list_keyword_desc(m->name, m->keyword); m++; } return 0; } if (!cur_parser_module) { cur_parser_module = yasm_load_module(YASM_MODULE_PARSER, "nasm"); if (!cur_parser_module) { print_error(dcgettext (((void *)0), "%s: could not load default %s", __LC_MESSAGES), dcgettext (((void *)0), "FATAL", __LC_MESSAGES), dcgettext (((void *)0), "parser", __LC_MESSAGES)); cleanup(((void *)0)); return 1; } } if (!cur_preproc_module) { cur_preproc_module = yasm_load_module(YASM_MODULE_PREPROC, cur_parser_module->default_preproc_keyword); if (!cur_preproc_module) { print_error(dcgettext (((void *)0), "%s: could not load default %s", __LC_MESSAGES), dcgettext (((void *)0), "FATAL", __LC_MESSAGES), dcgettext (((void *)0), "preprocessor", __LC_MESSAGES)); cleanup(((void *)0)); return 1; } } if (!in_filename) { print_error(dcgettext (((void *)0), "No input files specified", __LC_MESSAGES)); return 1; } else if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (in_filename) && __builtin_constant_p ("-") && (__s1_len = strlen (in_filename), __s2_len = strlen ("-"), (!((size_t)(const void *)((in_filename) + 1) - (size_t)(const void *)(in_filename) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("-") + 1) - (size_t)(const void *)("-") == 1) || __s2_len >= 4)) ? __builtin_strcmp (in_filename, "-") : (__builtin_constant_p (in_filename) && ((size_t)(const void *)((in_filename) + 1) - (size_t)(const void *)(in_filename) == 1) && (__s1_len = strlen (in_filename), __s1_len < 4) ? (__builtin_constant_p ("-") && ((size_t)(const void *)(("-") + 1) - (size_t)(const void *)("-") == 1) ? __builtin_strcmp (in_filename, "-") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("-"); register int __result = (((__const unsigned char *) (__const char *) (in_filename))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (in_filename))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (in_filename))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (in_filename))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("-") && ((size_t)(const void *)(("-") + 1) - (size_t)(const void *)("-") == 1) && (__s2_len = strlen ("-"), __s2_len < 4) ? (__builtin_constant_p (in_filename) && ((size_t)(const void *)((in_filename) + 1) - (size_t)(const void *)(in_filename) == 1) ? __builtin_strcmp (in_filename, "-") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (in_filename); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("-"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("-"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("-"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("-"))[3]); } } __result; }))) : __builtin_strcmp (in_filename, "-")))); }) != 0) { in = fopen(in_filename, "rt"); if (!in) { print_error(dcgettext (((void *)0), "%s: could not open file `%s'", __LC_MESSAGES), dcgettext (((void *)0), "FATAL", __LC_MESSAGES), in_filename); yasm_xfree(in_filename); if (obj_filename) yasm_xfree(obj_filename); return 1; } } else { in = stdin; } if (preproc_only) return do_preproc_only(in); if (list_filename) { if (!cur_listfmt_module) { cur_listfmt_module = yasm_load_module(YASM_MODULE_LISTFMT, "nasm"); if (!cur_listfmt_module) { print_error(dcgettext (((void *)0), "%s: could not load default %s", __LC_MESSAGES), dcgettext (((void *)0), "FATAL", __LC_MESSAGES), dcgettext (((void *)0), "list format", __LC_MESSAGES)); return 1; } } } if (!cur_dbgfmt_module) { cur_dbgfmt_module = yasm_load_module(YASM_MODULE_DBGFMT, "null"); if (!cur_dbgfmt_module) { print_error(dcgettext (((void *)0), "%s: could not load default %s", __LC_MESSAGES), dcgettext (((void *)0), "FATAL", __LC_MESSAGES), dcgettext (((void *)0), "debug format", __LC_MESSAGES)); return 1; } } return do_assemble(in); } static FILE * open_file(const char *filename, const char *mode) { FILE *f; f = fopen(filename, mode); if (!f) print_error(dcgettext (((void *)0), "could not open file `%s'", __LC_MESSAGES), filename); return f; } static void check_errors(yasm_errwarns *errwarns, yasm_object *object) { if (yasm_errwarns_num_errors(errwarns, warning_error) > 0) { yasm_errwarns_output_all(errwarns, yasm_object_get_linemap(object), warning_error, print_yasm_error, print_yasm_warning); yasm_errwarns_destroy(errwarns); cleanup(object); exit(1); } } # 739 "frontends/yasm/yasm.c" static void cleanup(yasm_object *object) { if (1) { if (cur_objfmt) ((yasm_objfmt_base *)cur_objfmt)->module->destroy(cur_objfmt); if (cur_dbgfmt) ((yasm_dbgfmt_base *)cur_dbgfmt)->module->destroy(cur_dbgfmt); if (cur_listfmt) ((yasm_listfmt_base *)cur_listfmt)->module->destroy(cur_listfmt); if (cur_preproc) ((yasm_preproc_base *)cur_preproc)->module->destroy(cur_preproc); if (object) yasm_object_destroy(object); if (cur_arch) ((yasm_arch_base *)cur_arch)->module->destroy(cur_arch); yasm_floatnum_cleanup(); yasm_intnum_cleanup(); yasm_errwarn_cleanup(); BitVector_Shutdown(); } if (1) { if (in_filename) yasm_xfree(in_filename); if (obj_filename) yasm_xfree(obj_filename); if (list_filename) yasm_xfree(list_filename); if (machine_name) yasm_xfree(machine_name); if (objfmt_keyword) yasm_xfree(objfmt_keyword); } } int not_an_option_handler(char *param) { if (in_filename) { print_error( dcgettext (((void *)0), "warning: can open only one input file, only the last file will be processed", __LC_MESSAGES)); yasm_xfree(in_filename); } in_filename = yasm__xstrdup(param); return 0; } int other_option_handler(char *option) { if (option[0] == '-' && option[1] == 'O') { int n = 2; for (;;) { if (option[n] == '\0') return 0; if (!((*__ctype_b_loc ())[(int) ((option[n]))] & (unsigned short int) _ISdigit)) return 1; n++; } } return 1; } static int opt_special_handler( char *cmd, char *param, int extra) { if (special_options == 0) special_options = extra; return 0; } static int opt_arch_handler( char *cmd, char *param, int extra) { ((void) (0)); cur_arch_module = yasm_load_module(YASM_MODULE_ARCH, param); if (!cur_arch_module) { if (!__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ("help") && __builtin_constant_p (param) && (__s1_len = strlen ("help"), __s2_len = strlen (param), (!((size_t)(const void *)(("help") + 1) - (size_t)(const void *)("help") == 1) || __s1_len >= 4) && (!((size_t)(const void *)((param) + 1) - (size_t)(const void *)(param) == 1) || __s2_len >= 4)) ? __builtin_strcmp ("help", param) : (__builtin_constant_p ("help") && ((size_t)(const void *)(("help") + 1) - (size_t)(const void *)("help") == 1) && (__s1_len = strlen ("help"), __s1_len < 4) ? (__builtin_constant_p (param) && ((size_t)(const void *)((param) + 1) - (size_t)(const void *)(param) == 1) ? __builtin_strcmp ("help", param) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (param); register int __result = (((__const unsigned char *) (__const char *) ("help"))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) ("help"))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) ("help"))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) ("help"))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (param) && ((size_t)(const void *)((param) + 1) - (size_t)(const void *)(param) == 1) && (__s2_len = strlen (param), __s2_len < 4) ? (__builtin_constant_p ("help") && ((size_t)(const void *)(("help") + 1) - (size_t)(const void *)("help") == 1) ? __builtin_strcmp ("help", param) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) ("help"); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (param))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (param))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (param))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (param))[3]); } } __result; }))) : __builtin_strcmp ("help", param)))); })) { printf(dcgettext (((void *)0), "Available yasm %s:\n", __LC_MESSAGES), dcgettext (((void *)0), "architectures", __LC_MESSAGES)); yasm_list_modules(YASM_MODULE_ARCH, print_list_keyword_desc); special_options = 0x08; return 0; } print_error(dcgettext (((void *)0), "%s: unrecognized %s `%s'", __LC_MESSAGES), dcgettext (((void *)0), "FATAL", __LC_MESSAGES), dcgettext (((void *)0), "architecture", __LC_MESSAGES), param); exit(1); } return 0; } static int opt_parser_handler( char *cmd, char *param, int extra) { ((void) (0)); cur_parser_module = yasm_load_module(YASM_MODULE_PARSER, param); if (!cur_parser_module) { if (!__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ("help") && __builtin_constant_p (param) && (__s1_len = strlen ("help"), __s2_len = strlen (param), (!((size_t)(const void *)(("help") + 1) - (size_t)(const void *)("help") == 1) || __s1_len >= 4) && (!((size_t)(const void *)((param) + 1) - (size_t)(const void *)(param) == 1) || __s2_len >= 4)) ? __builtin_strcmp ("help", param) : (__builtin_constant_p ("help") && ((size_t)(const void *)(("help") + 1) - (size_t)(const void *)("help") == 1) && (__s1_len = strlen ("help"), __s1_len < 4) ? (__builtin_constant_p (param) && ((size_t)(const void *)((param) + 1) - (size_t)(const void *)(param) == 1) ? __builtin_strcmp ("help", param) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (param); register int __result = (((__const unsigned char *) (__const char *) ("help"))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) ("help"))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) ("help"))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) ("help"))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (param) && ((size_t)(const void *)((param) + 1) - (size_t)(const void *)(param) == 1) && (__s2_len = strlen (param), __s2_len < 4) ? (__builtin_constant_p ("help") && ((size_t)(const void *)(("help") + 1) - (size_t)(const void *)("help") == 1) ? __builtin_strcmp ("help", param) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) ("help"); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (param))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (param))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (param))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (param))[3]); } } __result; }))) : __builtin_strcmp ("help", param)))); })) { printf(dcgettext (((void *)0), "Available yasm %s:\n", __LC_MESSAGES), dcgettext (((void *)0), "parsers", __LC_MESSAGES)); yasm_list_modules(YASM_MODULE_PARSER, print_list_keyword_desc); special_options = 0x08; return 0; } print_error(dcgettext (((void *)0), "%s: unrecognized %s `%s'", __LC_MESSAGES), dcgettext (((void *)0), "FATAL", __LC_MESSAGES), dcgettext (((void *)0), "parser", __LC_MESSAGES), param); exit(1); } return 0; } static int opt_preproc_handler( char *cmd, char *param, int extra) { ((void) (0)); cur_preproc_module = yasm_load_module(YASM_MODULE_PREPROC, param); if (!cur_preproc_module) { if (!__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ("help") && __builtin_constant_p (param) && (__s1_len = strlen ("help"), __s2_len = strlen (param), (!((size_t)(const void *)(("help") + 1) - (size_t)(const void *)("help") == 1) || __s1_len >= 4) && (!((size_t)(const void *)((param) + 1) - (size_t)(const void *)(param) == 1) || __s2_len >= 4)) ? __builtin_strcmp ("help", param) : (__builtin_constant_p ("help") && ((size_t)(const void *)(("help") + 1) - (size_t)(const void *)("help") == 1) && (__s1_len = strlen ("help"), __s1_len < 4) ? (__builtin_constant_p (param) && ((size_t)(const void *)((param) + 1) - (size_t)(const void *)(param) == 1) ? __builtin_strcmp ("help", param) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (param); register int __result = (((__const unsigned char *) (__const char *) ("help"))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) ("help"))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) ("help"))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) ("help"))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (param) && ((size_t)(const void *)((param) + 1) - (size_t)(const void *)(param) == 1) && (__s2_len = strlen (param), __s2_len < 4) ? (__builtin_constant_p ("help") && ((size_t)(const void *)(("help") + 1) - (size_t)(const void *)("help") == 1) ? __builtin_strcmp ("help", param) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) ("help"); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (param))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (param))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (param))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (param))[3]); } } __result; }))) : __builtin_strcmp ("help", param)))); })) { printf(dcgettext (((void *)0), "Available yasm %s:\n", __LC_MESSAGES), dcgettext (((void *)0), "preprocessors", __LC_MESSAGES)); yasm_list_modules(YASM_MODULE_PREPROC, print_list_keyword_desc); special_options = 0x08; return 0; } print_error(dcgettext (((void *)0), "%s: unrecognized %s `%s'", __LC_MESSAGES), dcgettext (((void *)0), "FATAL", __LC_MESSAGES), dcgettext (((void *)0), "preprocessor", __LC_MESSAGES), param); exit(1); } return 0; } static int opt_objfmt_handler( char *cmd, char *param, int extra) { size_t i; ((void) (0)); cur_objfmt_module = yasm_load_module(YASM_MODULE_OBJFMT, param); if (!cur_objfmt_module) { if (!__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ("help") && __builtin_constant_p (param) && (__s1_len = strlen ("help"), __s2_len = strlen (param), (!((size_t)(const void *)(("help") + 1) - (size_t)(const void *)("help") == 1) || __s1_len >= 4) && (!((size_t)(const void *)((param) + 1) - (size_t)(const void *)(param) == 1) || __s2_len >= 4)) ? __builtin_strcmp ("help", param) : (__builtin_constant_p ("help") && ((size_t)(const void *)(("help") + 1) - (size_t)(const void *)("help") == 1) && (__s1_len = strlen ("help"), __s1_len < 4) ? (__builtin_constant_p (param) && ((size_t)(const void *)((param) + 1) - (size_t)(const void *)(param) == 1) ? __builtin_strcmp ("help", param) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (param); register int __result = (((__const unsigned char *) (__const char *) ("help"))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) ("help"))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) ("help"))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) ("help"))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (param) && ((size_t)(const void *)((param) + 1) - (size_t)(const void *)(param) == 1) && (__s2_len = strlen (param), __s2_len < 4) ? (__builtin_constant_p ("help") && ((size_t)(const void *)(("help") + 1) - (size_t)(const void *)("help") == 1) ? __builtin_strcmp ("help", param) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) ("help"); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (param))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (param))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (param))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (param))[3]); } } __result; }))) : __builtin_strcmp ("help", param)))); })) { printf(dcgettext (((void *)0), "Available yasm %s:\n", __LC_MESSAGES), dcgettext (((void *)0), "object formats", __LC_MESSAGES)); yasm_list_modules(YASM_MODULE_OBJFMT, print_list_keyword_desc); special_options = 0x08; return 0; } print_error(dcgettext (((void *)0), "%s: unrecognized %s `%s'", __LC_MESSAGES), dcgettext (((void *)0), "FATAL", __LC_MESSAGES), dcgettext (((void *)0), "object format", __LC_MESSAGES), param); exit(1); } if (objfmt_keyword) yasm_xfree(objfmt_keyword); objfmt_keyword = yasm__xstrdup(param); for (i=0; i 1) { if (__builtin_constant_p (objfmt_keyword[i])) { int __c = (objfmt_keyword[i]); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower (objfmt_keyword[i]); } else __res = (*__ctype_tolower_loc ())[(int) (objfmt_keyword[i])]; __res; })); return 0; } static int opt_dbgfmt_handler( char *cmd, char *param, int extra) { ((void) (0)); cur_dbgfmt_module = yasm_load_module(YASM_MODULE_DBGFMT, param); if (!cur_dbgfmt_module) { if (!__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ("help") && __builtin_constant_p (param) && (__s1_len = strlen ("help"), __s2_len = strlen (param), (!((size_t)(const void *)(("help") + 1) - (size_t)(const void *)("help") == 1) || __s1_len >= 4) && (!((size_t)(const void *)((param) + 1) - (size_t)(const void *)(param) == 1) || __s2_len >= 4)) ? __builtin_strcmp ("help", param) : (__builtin_constant_p ("help") && ((size_t)(const void *)(("help") + 1) - (size_t)(const void *)("help") == 1) && (__s1_len = strlen ("help"), __s1_len < 4) ? (__builtin_constant_p (param) && ((size_t)(const void *)((param) + 1) - (size_t)(const void *)(param) == 1) ? __builtin_strcmp ("help", param) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (param); register int __result = (((__const unsigned char *) (__const char *) ("help"))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) ("help"))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) ("help"))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) ("help"))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (param) && ((size_t)(const void *)((param) + 1) - (size_t)(const void *)(param) == 1) && (__s2_len = strlen (param), __s2_len < 4) ? (__builtin_constant_p ("help") && ((size_t)(const void *)(("help") + 1) - (size_t)(const void *)("help") == 1) ? __builtin_strcmp ("help", param) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) ("help"); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (param))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (param))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (param))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (param))[3]); } } __result; }))) : __builtin_strcmp ("help", param)))); })) { printf(dcgettext (((void *)0), "Available yasm %s:\n", __LC_MESSAGES), dcgettext (((void *)0), "debug formats", __LC_MESSAGES)); yasm_list_modules(YASM_MODULE_DBGFMT, print_list_keyword_desc); special_options = 0x08; return 0; } print_error(dcgettext (((void *)0), "%s: unrecognized %s `%s'", __LC_MESSAGES), dcgettext (((void *)0), "FATAL", __LC_MESSAGES), dcgettext (((void *)0), "debug format", __LC_MESSAGES), param); exit(1); } return 0; } static int opt_listfmt_handler( char *cmd, char *param, int extra) { ((void) (0)); cur_listfmt_module = yasm_load_module(YASM_MODULE_LISTFMT, param); if (!cur_listfmt_module) { if (!__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ("help") && __builtin_constant_p (param) && (__s1_len = strlen ("help"), __s2_len = strlen (param), (!((size_t)(const void *)(("help") + 1) - (size_t)(const void *)("help") == 1) || __s1_len >= 4) && (!((size_t)(const void *)((param) + 1) - (size_t)(const void *)(param) == 1) || __s2_len >= 4)) ? __builtin_strcmp ("help", param) : (__builtin_constant_p ("help") && ((size_t)(const void *)(("help") + 1) - (size_t)(const void *)("help") == 1) && (__s1_len = strlen ("help"), __s1_len < 4) ? (__builtin_constant_p (param) && ((size_t)(const void *)((param) + 1) - (size_t)(const void *)(param) == 1) ? __builtin_strcmp ("help", param) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (param); register int __result = (((__const unsigned char *) (__const char *) ("help"))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) ("help"))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) ("help"))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) ("help"))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (param) && ((size_t)(const void *)((param) + 1) - (size_t)(const void *)(param) == 1) && (__s2_len = strlen (param), __s2_len < 4) ? (__builtin_constant_p ("help") && ((size_t)(const void *)(("help") + 1) - (size_t)(const void *)("help") == 1) ? __builtin_strcmp ("help", param) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) ("help"); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (param))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (param))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (param))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (param))[3]); } } __result; }))) : __builtin_strcmp ("help", param)))); })) { printf(dcgettext (((void *)0), "Available yasm %s:\n", __LC_MESSAGES), dcgettext (((void *)0), "list formats", __LC_MESSAGES)); yasm_list_modules(YASM_MODULE_LISTFMT, print_list_keyword_desc); special_options = 0x08; return 0; } print_error(dcgettext (((void *)0), "%s: unrecognized %s `%s'", __LC_MESSAGES), dcgettext (((void *)0), "FATAL", __LC_MESSAGES), dcgettext (((void *)0), "list format", __LC_MESSAGES), param); exit(1); } return 0; } static int opt_listfile_handler( char *cmd, char *param, int extra) { if (list_filename) { print_error( dcgettext (((void *)0), "warning: can output to only one list file, last specified used", __LC_MESSAGES)); yasm_xfree(list_filename); } ((void) (0)); list_filename = yasm__xstrdup(param); return 0; } static int opt_objfile_handler( char *cmd, char *param, int extra) { if (obj_filename) { print_error( dcgettext (((void *)0), "warning: can output to only one object file, last specified used", __LC_MESSAGES)); yasm_xfree(obj_filename); } ((void) (0)); obj_filename = yasm__xstrdup(param); return 0; } static int opt_machine_handler( char *cmd, char *param, int extra) { if (machine_name) yasm_xfree(machine_name); ((void) (0)); machine_name = yasm__xstrdup(param); return 0; } static int opt_strict_handler( char *cmd, char *param, int extra) { force_strict = 1; return 0; } static int opt_warning_handler(char *cmd, char *param, int extra) { void (*action)(yasm_warn_class wclass) = yasm_warn_enable; if (extra == 1) { yasm_warn_disable_all(); return 0; } cmd++; if (cmd[0] == 'n' && cmd[1] == 'o' && cmd[2] == '-') { action = yasm_warn_disable; cmd += 3; } if (cmd[0] == '\0') return 1; else if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (cmd) && __builtin_constant_p ("error") && (__s1_len = strlen (cmd), __s2_len = strlen ("error"), (!((size_t)(const void *)((cmd) + 1) - (size_t)(const void *)(cmd) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("error") + 1) - (size_t)(const void *)("error") == 1) || __s2_len >= 4)) ? __builtin_strcmp (cmd, "error") : (__builtin_constant_p (cmd) && ((size_t)(const void *)((cmd) + 1) - (size_t)(const void *)(cmd) == 1) && (__s1_len = strlen (cmd), __s1_len < 4) ? (__builtin_constant_p ("error") && ((size_t)(const void *)(("error") + 1) - (size_t)(const void *)("error") == 1) ? __builtin_strcmp (cmd, "error") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("error"); register int __result = (((__const unsigned char *) (__const char *) (cmd))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (cmd))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (cmd))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (cmd))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("error") && ((size_t)(const void *)(("error") + 1) - (size_t)(const void *)("error") == 1) && (__s2_len = strlen ("error"), __s2_len < 4) ? (__builtin_constant_p (cmd) && ((size_t)(const void *)((cmd) + 1) - (size_t)(const void *)(cmd) == 1) ? __builtin_strcmp (cmd, "error") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (cmd); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("error"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("error"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("error"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("error"))[3]); } } __result; }))) : __builtin_strcmp (cmd, "error")))); }) == 0) warning_error = (action == yasm_warn_enable); else if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (cmd) && __builtin_constant_p ("unrecognized-char") && (__s1_len = strlen (cmd), __s2_len = strlen ("unrecognized-char"), (!((size_t)(const void *)((cmd) + 1) - (size_t)(const void *)(cmd) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("unrecognized-char") + 1) - (size_t)(const void *)("unrecognized-char") == 1) || __s2_len >= 4)) ? __builtin_strcmp (cmd, "unrecognized-char") : (__builtin_constant_p (cmd) && ((size_t)(const void *)((cmd) + 1) - (size_t)(const void *)(cmd) == 1) && (__s1_len = strlen (cmd), __s1_len < 4) ? (__builtin_constant_p ("unrecognized-char") && ((size_t)(const void *)(("unrecognized-char") + 1) - (size_t)(const void *)("unrecognized-char") == 1) ? __builtin_strcmp (cmd, "unrecognized-char") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("unrecognized-char"); register int __result = (((__const unsigned char *) (__const char *) (cmd))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (cmd))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (cmd))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (cmd))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("unrecognized-char") && ((size_t)(const void *)(("unrecognized-char") + 1) - (size_t)(const void *)("unrecognized-char") == 1) && (__s2_len = strlen ("unrecognized-char"), __s2_len < 4) ? (__builtin_constant_p (cmd) && ((size_t)(const void *)((cmd) + 1) - (size_t)(const void *)(cmd) == 1) ? __builtin_strcmp (cmd, "unrecognized-char") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (cmd); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("unrecognized-char"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("unrecognized-char"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("unrecognized-char"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("unrecognized-char"))[3]); } } __result; }))) : __builtin_strcmp (cmd, "unrecognized-char")))); }) == 0) action(YASM_WARN_UNREC_CHAR); else if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (cmd) && __builtin_constant_p ("orphan-labels") && (__s1_len = strlen (cmd), __s2_len = strlen ("orphan-labels"), (!((size_t)(const void *)((cmd) + 1) - (size_t)(const void *)(cmd) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("orphan-labels") + 1) - (size_t)(const void *)("orphan-labels") == 1) || __s2_len >= 4)) ? __builtin_strcmp (cmd, "orphan-labels") : (__builtin_constant_p (cmd) && ((size_t)(const void *)((cmd) + 1) - (size_t)(const void *)(cmd) == 1) && (__s1_len = strlen (cmd), __s1_len < 4) ? (__builtin_constant_p ("orphan-labels") && ((size_t)(const void *)(("orphan-labels") + 1) - (size_t)(const void *)("orphan-labels") == 1) ? __builtin_strcmp (cmd, "orphan-labels") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("orphan-labels"); register int __result = (((__const unsigned char *) (__const char *) (cmd))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (cmd))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (cmd))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (cmd))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("orphan-labels") && ((size_t)(const void *)(("orphan-labels") + 1) - (size_t)(const void *)("orphan-labels") == 1) && (__s2_len = strlen ("orphan-labels"), __s2_len < 4) ? (__builtin_constant_p (cmd) && ((size_t)(const void *)((cmd) + 1) - (size_t)(const void *)(cmd) == 1) ? __builtin_strcmp (cmd, "orphan-labels") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (cmd); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("orphan-labels"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("orphan-labels"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("orphan-labels"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("orphan-labels"))[3]); } } __result; }))) : __builtin_strcmp (cmd, "orphan-labels")))); }) == 0) action(YASM_WARN_ORPHAN_LABEL); else if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (cmd) && __builtin_constant_p ("uninit-contents") && (__s1_len = strlen (cmd), __s2_len = strlen ("uninit-contents"), (!((size_t)(const void *)((cmd) + 1) - (size_t)(const void *)(cmd) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("uninit-contents") + 1) - (size_t)(const void *)("uninit-contents") == 1) || __s2_len >= 4)) ? __builtin_strcmp (cmd, "uninit-contents") : (__builtin_constant_p (cmd) && ((size_t)(const void *)((cmd) + 1) - (size_t)(const void *)(cmd) == 1) && (__s1_len = strlen (cmd), __s1_len < 4) ? (__builtin_constant_p ("uninit-contents") && ((size_t)(const void *)(("uninit-contents") + 1) - (size_t)(const void *)("uninit-contents") == 1) ? __builtin_strcmp (cmd, "uninit-contents") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("uninit-contents"); register int __result = (((__const unsigned char *) (__const char *) (cmd))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (cmd))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (cmd))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (cmd))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("uninit-contents") && ((size_t)(const void *)(("uninit-contents") + 1) - (size_t)(const void *)("uninit-contents") == 1) && (__s2_len = strlen ("uninit-contents"), __s2_len < 4) ? (__builtin_constant_p (cmd) && ((size_t)(const void *)((cmd) + 1) - (size_t)(const void *)(cmd) == 1) ? __builtin_strcmp (cmd, "uninit-contents") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (cmd); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("uninit-contents"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("uninit-contents"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("uninit-contents"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("uninit-contents"))[3]); } } __result; }))) : __builtin_strcmp (cmd, "uninit-contents")))); }) == 0) action(YASM_WARN_UNINIT_CONTENTS); else return 1; return 0; } static int preproc_only_handler( char *cmd, char *param, int extra) { preproc_only = 1; return 0; } static int opt_include_option( char *cmd, char *param, int extra) { yasm_add_include_path(param); return 0; } static int opt_preproc_option( char *cmd, char *param, int extra) { constcharparam *cp; cp = yasm_xmalloc(sizeof(constcharparam)); cp->param = param; cp->id = extra; do { (((cp))->link.stqe_next) = ((void *)0); *(&preproc_options)->stqh_last = (cp); (&preproc_options)->stqh_last = &(((cp))->link.stqe_next); } while (0); return 0; } static int opt_ewmsg_handler( char *cmd, char *param, int extra) { if (strcasecmp(param, "gnu") == 0 || strcasecmp(param, "gcc") == 0) { ewmsg_style = EWSTYLE_GNU; } else if (strcasecmp(param, "vc") == 0) { ewmsg_style = EWSTYLE_VC; } else print_error(dcgettext (((void *)0), "warning: unrecognized message style `%s'", __LC_MESSAGES), param); return 0; } static int opt_makedep_handler( char *cmd, char *param, int extra) { preproc_only = 1; generate_make_dependencies = 1; return 0; } static void apply_preproc_builtins() { char *predef; predef = yasm_xmalloc(strlen("__YASM_OBJFMT__=") + strlen(objfmt_keyword) + 1); strcpy(predef, "__YASM_OBJFMT__="); strcat(predef, objfmt_keyword); ((yasm_preproc_base *)cur_preproc)->module->define_builtin(cur_preproc, predef); yasm_xfree(predef); } static void apply_preproc_saved_options() { constcharparam *cp, *cpnext; void (*funcs[3])(yasm_preproc *, const char *); funcs[0] = cur_preproc_module->add_include_file; funcs[1] = cur_preproc_module->predefine_macro; funcs[2] = cur_preproc_module->undefine_macro; for((cp) = (((&preproc_options))->stqh_first); (cp); (cp) = (((cp))->link.stqe_next)) { if (0 <= cp->id && cp->id < 3 && funcs[cp->id]) funcs[cp->id](cur_preproc, cp->param); } cp = ((&preproc_options)->stqh_first); while (cp != ((void *)0)) { cpnext = ((cp)->link.stqe_next); yasm_xfree(cp); cp = cpnext; } do { (((&preproc_options))->stqh_first) = ((void *)0); (&preproc_options)->stqh_last = &(((&preproc_options))->stqh_first); } while (0); } static char * replace_extension(const char *orig, const char *ext, const char *def) { char *out, *outext; out = yasm_xmalloc(strlen(orig)+(ext ? (strlen(ext)+2) : 1)); strcpy(out, orig); outext = strrchr(out, '.'); if (outext) { outext++; if (ext && __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (outext) && __builtin_constant_p (ext) && (__s1_len = strlen (outext), __s2_len = strlen (ext), (!((size_t)(const void *)((outext) + 1) - (size_t)(const void *)(outext) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((ext) + 1) - (size_t)(const void *)(ext) == 1) || __s2_len >= 4)) ? __builtin_strcmp (outext, ext) : (__builtin_constant_p (outext) && ((size_t)(const void *)((outext) + 1) - (size_t)(const void *)(outext) == 1) && (__s1_len = strlen (outext), __s1_len < 4) ? (__builtin_constant_p (ext) && ((size_t)(const void *)((ext) + 1) - (size_t)(const void *)(ext) == 1) ? __builtin_strcmp (outext, ext) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (ext); register int __result = (((__const unsigned char *) (__const char *) (outext))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (outext))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (outext))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (outext))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (ext) && ((size_t)(const void *)((ext) + 1) - (size_t)(const void *)(ext) == 1) && (__s2_len = strlen (ext), __s2_len < 4) ? (__builtin_constant_p (outext) && ((size_t)(const void *)((outext) + 1) - (size_t)(const void *)(outext) == 1) ? __builtin_strcmp (outext, ext) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (outext); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (ext))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (ext))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (ext))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (ext))[3]); } } __result; }))) : __builtin_strcmp (outext, ext)))); }) == 0) { outext = ((void *)0); print_error( dcgettext (((void *)0), "file name already ends in `.%s': output will be in `%s'", __LC_MESSAGES), ext, def); } } else { if (!ext) print_error( dcgettext (((void *)0), "file name already has no extension: output will be in `%s'", __LC_MESSAGES), def); else { outext = strrchr(out, '\0'); *outext++ = '.'; } } if (outext) { if (!ext) { outext--; *outext = '\0'; } else strcpy(outext, ext); } else strcpy(out, def); return out; } void print_list_keyword_desc(const char *name, const char *keyword) { printf("%4s%-12s%s\n", "", keyword, name); } static void print_error(const char *fmt, ...) { va_list va; fprintf(stderr, "yasm: "); __builtin_va_start(va,fmt); vfprintf(stderr, fmt, va); __builtin_va_end(va); fputc('\n', stderr); } static void handle_yasm_int_error(const char *file, unsigned int line, const char *message) { fprintf(stderr, dcgettext (((void *)0), "INTERNAL ERROR at %s, line %u: %s\n", __LC_MESSAGES), file, line, dcgettext (((void *)0), message, __LC_MESSAGES)); abort(); } static void handle_yasm_fatal(const char *fmt, va_list va) { fprintf(stderr, "yasm: %s: ", dcgettext (((void *)0), "FATAL", __LC_MESSAGES)); vfprintf(stderr, dcgettext (((void *)0), fmt, __LC_MESSAGES), va); fputc('\n', stderr); exit(1); } static const char * handle_yasm_gettext(const char *msgid) { return dcgettext (((void *)0), msgid, __LC_MESSAGES); } static const char *fmt[2] = { "%s:%lu: %s%s\n", "%s(%lu) : %s%s\n" }; static const char *fmt_noline[2] = { "%s: %s%s\n", "%s : %s%s\n" }; static void print_yasm_error(const char *filename, unsigned long line, const char *msg, const char *xref_fn, unsigned long xref_line, const char *xref_msg) { if (line) fprintf(stderr, fmt[ewmsg_style], filename, line, "", msg); else fprintf(stderr, fmt_noline[ewmsg_style], filename, "", msg); if (xref_fn && xref_msg) { if (xref_line) fprintf(stderr, fmt[ewmsg_style], xref_fn, xref_line, "", xref_msg); else fprintf(stderr, fmt_noline[ewmsg_style], xref_fn, "", xref_msg); } } static void print_yasm_warning(const char *filename, unsigned long line, const char *msg) { if (line) fprintf(stderr, fmt[ewmsg_style], filename, line, dcgettext (((void *)0), "warning: ", __LC_MESSAGES), msg); else fprintf(stderr, fmt_noline[ewmsg_style], filename, dcgettext (((void *)0), "warning: ", __LC_MESSAGES), msg); }