Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 198269 Details for
Bug 211507
sys-apps/groff-1.19.2-r2 fails to build on IRIX
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Preprocessor output from pfbtops.c
pfbtops.i (text/plain), 24.48 KB, created by
Stuart Shelton
on 2009-07-17 09:33:38 UTC
(
hide
)
Description:
Preprocessor output from pfbtops.c
Filename:
MIME Type:
Creator:
Stuart Shelton
Created:
2009-07-17 09:33:38 UTC
Size:
24.48 KB
patch
obsolete
>#line 1 "pfbtops.c" > > > > > > > > > > > > > > > > > > > > > >#line 1 "/usr/opt/gentoo/var/tmp/portage/sys-apps/groff-1.19.2-r3/work/groff-1.19.2/src/include/config.h" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >#line 24 "pfbtops.c" > > >#line 1 "/usr/include/stdio.h" > > > >#line 1 "/usr/include/internal/stdio_core.h" > > >#ident "$Revision: 1.13 $" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >#line 1 "/usr/include/standards.h" > > > > > > > > > > > > > > > > > > >#ident "$Id: standards.h,v 1.22 2002/08/07 14:51:48 raji Exp $" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >#line 85 "/usr/include/standards.h" > > > > > > > > > > > > > > > > > >#line 111 "/usr/include/standards.h" > > > > > > > > > > > > > > > > > > > > > > > > > > >#line 143 "/usr/include/standards.h" > > > > > > > > >#line 157 "/usr/include/standards.h" > > > >#line 166 "/usr/include/standards.h" > > > > > > > > > >#line 182 "/usr/include/standards.h" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >#line 235 "/usr/include/standards.h" > > > > > > > > > > > > > > > >#line 34 "/usr/include/internal/stdio_core.h" >#line 1 "/usr/include/sgidefs.h" > > > > > > > > > > > > > > > > > > >#ident "$Revision: 1.11 $" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >#line 135 "/usr/include/sgidefs.h" > >typedef int __int32_t; >typedef unsigned __uint32_t; > >#line 145 "/usr/include/sgidefs.h" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >typedef long long __int64_t; >typedef unsigned long long __uint64_t; > >#line 215 "/usr/include/sgidefs.h" > > > > >typedef __int32_t __psint_t; >typedef __uint32_t __psunsigned_t; > > > > > > > > > > > >#line 239 "/usr/include/sgidefs.h" > > >typedef __int32_t __scint_t; >typedef __uint32_t __scunsigned_t; > > > > > > > > > >#line 35 "/usr/include/internal/stdio_core.h" >#line 1 "/usr/include/internal/sgimacros.h" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >#line 82 "/usr/include/internal/sgimacros.h" > >#line 98 "/usr/include/internal/sgimacros.h" > >#line 107 "/usr/include/internal/sgimacros.h" > >#line 36 "/usr/include/internal/stdio_core.h" > > > > > > > > > > >typedef unsigned int size_t; > > > > > > > > > > >typedef int ssize_t; > > > > > > > > >typedef __int64_t fpos_t; > > > > > > > > > > > >typedef __int64_t off64_t; > > >#line 88 "/usr/include/internal/stdio_core.h" >typedef __int64_t off_t; > > > > > > > > > > > >typedef __int64_t fpos64_t; > > > > > > > > > >typedef char *va_list; > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >#line 148 "/usr/include/internal/stdio_core.h" > > > > > > >#line 160 "/usr/include/internal/stdio_core.h" > > > > > > > >#line 178 "/usr/include/internal/stdio_core.h" > > > > > > > > > > >#line 194 "/usr/include/internal/stdio_core.h" > > > > > > > > > > > > > > > > >typedef struct > > > > > > > > > >__file_s > >{ > > int _cnt; > > > > > unsigned char *_ptr; > unsigned char *_base; >#line 237 "/usr/include/internal/stdio_core.h" > unsigned char _flag; > unsigned char _xflag; > unsigned short _file; > > > > >} FILE; > >extern FILE __iob[100]; > >extern FILE *_lastbuf; >extern unsigned char *_bufendtab[]; >extern unsigned char _sibuf[], _sobuf[]; > > > >extern int remove(const char *); >extern int rename(const char *, const char *); >extern FILE *tmpfile(void); >extern char *tmpnam(char *); >extern int fclose(FILE *); >extern int fflush(FILE *); >extern FILE *fopen(const char * restrict, const char * restrict); >extern FILE *freopen(const char * restrict, const char * restrict, FILE * restrict); >extern void setbuf(FILE * restrict, char * restrict); >extern int setvbuf(FILE * restrict, char * restrict, int, size_t); > >extern int fprintf(FILE * restrict, const char * restrict, ...); > >extern int fscanf(FILE * restrict, const char * restrict, ...); > >extern int printf(const char * restrict, ...); > >extern int scanf(const char * restrict, ...); > > > > > >extern int vsnprintf(char * restrict, > size_t, > const char * restrict, char *); >#line 294 "/usr/include/internal/stdio_core.h" > > > >extern int snprintf(char * restrict, > size_t, > const char * restrict, ...); >#line 319 "/usr/include/internal/stdio_core.h" > > > > > >extern int sprintf(char * restrict, const char * restrict, ...); > >extern int sscanf(const char * restrict, const char * restrict, ...); >extern int vfprintf(FILE * restrict, const char * restrict, char *); >extern int vprintf(const char * restrict, char *); > > > >extern int vsprintf(char * restrict, const char * restrict, char *); > > >extern int vsscanf(const char * restrict, const char * restrict, char *); > > > > >#pragma intrinsic (printf) >#pragma intrinsic (fprintf) >#pragma intrinsic (sprintf) >#pragma intrinsic (scanf) >#pragma intrinsic (fscanf) >#pragma intrinsic (sscanf) > > > > >extern int fgetc(FILE *); >extern char *fgets(char * restrict, int, FILE * restrict); >extern int fputc(int, FILE *); >extern int fputs(const char * restrict, FILE * restrict); >extern int getc(FILE *); >extern int getchar(void); >extern char *gets(char *); >extern int putc(int, FILE *); >extern int putchar(int); >extern int puts(const char *); >extern int ungetc(int, FILE *); >extern size_t fread(void * restrict, size_t, size_t, FILE * restrict); >#pragma int_to_unsigned fread >extern size_t fwrite(const void * restrict, size_t, size_t, FILE * restrict); >#pragma int_to_unsigned fwrite >extern int fgetpos(FILE * restrict, fpos_t * restrict); >extern int fseek(FILE *, long, int); >extern int fsetpos(FILE *, const fpos_t *); >extern long ftell(FILE *); >extern void rewind(FILE *); >extern void clearerr(FILE *); >extern int feof(FILE *); >extern int ferror(FILE *); >extern void perror(const char *); > > >extern int vfscanf(FILE * restrict, const char * restrict, va_list); >extern int vscanf(const char * restrict, va_list); >extern int vsscanf(const char * restrict, const char * restrict, va_list); > >#pragma optional vfscanf >#pragma optional vscanf >#pragma optional vsscanf > > > > > >extern int __filbuf(FILE *); >extern int __flsbuf(int, FILE *); > > > >extern FILE *fdopen(int, const char *); >extern int fileno(FILE *); > > > > >extern void flockfile(FILE *); >extern int ftrylockfile(FILE *); >extern void funlockfile(FILE *); >extern int getc_unlocked(FILE *); >extern int putc_unlocked(int, FILE *); >extern int getchar_unlocked(void); >extern int putchar_unlocked(int); > > > >extern FILE *popen(const char *, const char *); >extern int pclose(FILE *); > > > > >#line 1 "/usr/opt/gentoo/var/tmp/portage/sys-apps/groff-1.19.2-r3/work/groff-1.19.2/src/include/getopt.h" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >#line 59 "/usr/opt/gentoo/var/tmp/portage/sys-apps/groff-1.19.2-r3/work/groff-1.19.2/src/include/getopt.h" > > > > > > > > > > > > > > > > > >#line 83 "/usr/opt/gentoo/var/tmp/portage/sys-apps/groff-1.19.2-r3/work/groff-1.19.2/src/include/getopt.h" > > > > > > > > >#line 1 "/usr/include/ctype.h" > > > >#line 1 "/usr/include/internal/ctype_core.h" > > >#ident "$Revision: 1.4 $" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >#line 44 "/usr/include/internal/ctype_core.h" > > > > > > >#line 62 "/usr/include/internal/ctype_core.h" > > > > >extern int isalnum(int); >extern int isalpha(int); > > >extern int isblank(int); > >#pragma optional isblank > > >extern int __isblank(int); > >extern int iscntrl(int); >extern int isdigit(int); >extern int isgraph(int); >extern int islower(int); >extern int isprint(int); >extern int ispunct(int); >extern int isspace(int); >extern int isupper(int); >extern int isxdigit(int); >extern int tolower(int); >extern int toupper(int); > > > >extern int isascii(int); >extern int toascii(int); > >extern int _tolower(int); >extern int _toupper(int); > > > > > > >#line 1 "/usr/include/internal/locale_attr_core.h" > > > > > > > > > > > > > > > > > > >#ident "$Revision: 1.2 $" > > > > > > > > > > > > > > > > > > > > > > > > > >typedef struct { > > unsigned int _class [ 257 ]; > signed short _lower [ 257 ]; > signed short _upper [ 257 ]; > > char _cswidth [ 7 ]; > char _fill [ 1 ]; > > > >} __ctype_t; > > >typedef int (*__isset_func_t)(int); > > > > > > typedef long wint_t; > > > > > > > > >typedef int (*__iscodeset_func_t)(int, wint_t); > > >typedef struct __attr { > > __ctype_t * _ctype_tbl; > > struct _csinfo { > unsigned char _eucwidth[3]; > unsigned char _scrwidth[3]; > unsigned char _mb_cur_max; > } _csinfo; > > struct _euc_func { > int _is_euc; > __isset_func_t _isset2; > __isset_func_t _isset3; > __iscodeset_func_t _iscodeset; > } _euc_func; > > struct _collate_res { > unsigned char _coll_as_cmp; > } _collate_res; > > void * _fill[15]; >} __attr_t; > > > > >extern __attr_t __libc_attr; > > > >#line 103 "/usr/include/internal/ctype_core.h" > > > >#line 121 "/usr/include/internal/ctype_core.h" > >#line 128 "/usr/include/internal/ctype_core.h" > > > >#line 163 "/usr/include/internal/ctype_core.h" > >#line 189 "/usr/include/internal/ctype_core.h" > >#line 5 "/usr/include/ctype.h" > > > > > > > > > > > > > > > > > > > >#line 93 "/usr/opt/gentoo/var/tmp/portage/sys-apps/groff-1.19.2-r3/work/groff-1.19.2/src/include/getopt.h" > > >#line 105 "/usr/opt/gentoo/var/tmp/portage/sys-apps/groff-1.19.2-r3/work/groff-1.19.2/src/include/getopt.h" > > > > > > > > > > > >extern char *optarg; > > > > > > > > > > > > > >extern int optind; > > > > >extern int opterr; > > > >extern int optopt; > > > > > > > > > > > > > > > > > > > > > > > >struct option >{ > const char *name; > > > int has_arg; > int *flag; > int val; >}; > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) > ; > > >extern int getopt_long (int ___argc, char *const *___argv, > const char *__shortopts, > const struct option *__longopts, int *__longind) > ; >extern int getopt_long_only (int ___argc, char *const *___argv, > const char *__shortopts, > const struct option *__longopts, int *__longind) > ; > > > > > > > > > > >#line 416 "/usr/include/internal/stdio_core.h" > >extern char *ctermid(char *); >extern char *cuserid(char *); >extern char *tempnam(const char *, const char *); >extern int getw(FILE *); >extern int putw(int, FILE *); > > > > > >extern char *mktemp(char *); >extern int mkstemp(char *); >extern int setbuffer(FILE *, char *, int); >extern int setlinebuf(FILE *); > >extern int system(const char *); > > > > > >extern off_t ftello(FILE *); >extern int fseeko(FILE *, off_t, int); > > > > >extern int fgetpos64(FILE *, fpos64_t *); >extern FILE *fopen64(const char *, const char *); >extern FILE *freopen64(const char *, const char *, FILE *); >extern int fseek64(FILE *, __int64_t, int); >extern int fseeko64(FILE *, off64_t, int); >extern int fsetpos64(FILE *, const fpos64_t *); >extern __int64_t ftell64(FILE *); >extern off64_t ftello64(FILE *); >extern FILE *tmpfile64(void); > > > >extern int __semputc(int, FILE *); >extern int __semgetc(FILE *); >extern int __us_rsthread_stdio; > > > >extern char *ctermid_r(char *); > > > > > > > > > > > > > > > > > > > > > > > > > > > > >#line 502 "/usr/include/internal/stdio_core.h" > > >#line 513 "/usr/include/internal/stdio_core.h" > >#line 558 "/usr/include/internal/stdio_core.h" > > > > > > > >#line 5 "/usr/include/stdio.h" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >#line 27 "pfbtops.c" >#line 1 "/usr/include/stdlib.h" > > > >#line 1 "/usr/include/internal/stdlib_core.h" > > >#ident "$Revision: 1.6 $" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >#line 64 "/usr/include/internal/stdlib_core.h" > > > > > > > > > > > >#line 87 "/usr/include/internal/stdlib_core.h" > > > > > > >#line 102 "/usr/include/internal/stdlib_core.h" > > > > >typedef long wchar_t; > > > > > > > > >typedef struct { > int quot; > int rem; > } div_t; > >typedef struct { > long quot; > long rem; > } ldiv_t; > > > >typedef struct { > long long quot; > long long rem; > } lldiv_t; > > > >#line 145 "/usr/include/internal/stdlib_core.h" > > > > > > > > > > > > > > > > > > >extern double atof(const char *); > >extern int atoi(const char *); >extern long int atol(const char *); > >extern long long atoll(const char *); > > >extern double strtod(const char * restrict, char ** restrict); > >extern float strtof(const char * restrict, char ** restrict); > >#pragma optional strtof > > > >extern long double strtold(const char * restrict, char ** restrict); > > >extern long int strtol(const char * restrict, char ** restrict, int); > >extern long long strtoll(const char * restrict, char ** restrict, int); > >extern unsigned long int strtoul(const char * restrict, char ** restrict, int); > > >extern unsigned long long strtoull(const char * restrict, char ** restrict, int); > > > > > >extern int rand(void); > >extern void srand(unsigned int); > > > >extern void *calloc(size_t, size_t); > >extern void free(void *); > >extern void *malloc(size_t); > >extern void *realloc(void *, size_t); > > > >#pragma intrinsic (calloc) >#pragma intrinsic (free) >#pragma intrinsic (malloc) >#pragma intrinsic (realloc) > > > > >extern void abort(void); > >extern int atexit(void (*)(void)); > >extern void exit(int); > > >#pragma intrinsic (exit) > > > >extern void _Exit(int); > > >extern char *getenv(const char *); > >extern int system(const char *); > > > >extern void *bsearch(const void *, const void *, size_t, size_t, > int (*)(const void *, const void *)); > >extern void qsort(void *, size_t, size_t, > int (*)(const void *, const void *)); > > > >#line 253 "/usr/include/internal/stdlib_core.h" >extern int abs(int); > >extern long int labs(long); > >extern long long llabs(long long); > > > > >#pragma intrinsic (abs) > >#pragma intrinsic (labs) > >#pragma intrinsic (llabs) > > > >extern div_t div(int, int); >extern ldiv_t ldiv(long, long); > >extern lldiv_t lldiv(long long, long long); > > > > >extern int mblen(const char *, size_t); > >extern int mbtowc(wchar_t * restrict, const char * restrict, size_t); > >extern int wctomb(char *, wchar_t); > > > >extern size_t mbstowcs(wchar_t * restrict, const char * restrict, size_t); > >extern size_t wcstombs(char * restrict, const wchar_t * restrict, size_t); > > > > > > > > >extern int putenv(const char *); > >extern double drand48(void); >extern double erand48(unsigned short [3]); >extern long lrand48(void); >extern long nrand48(unsigned short [3]); >extern long mrand48(void); >extern long jrand48(unsigned short [3]); >extern void srand48(long); >extern void lcong48(unsigned short int [7]); >extern void setkey(const char *); >extern unsigned short * seed48(unsigned short int [3]); > > > > >extern long a64l(const char *); >extern char *ecvt(double, int, int *, int *); >extern char *fcvt(double, int, int *, int *); >extern char *gcvt(double, int, char *); >extern int getsubopt(char **, char * const *, char **); >extern int grantpt(int); >extern char *initstate(unsigned int, char *, size_t); >extern char *l64a(long); >extern char *mktemp(char *); >extern int mkstemp(char *); >extern char *ptsname(int); >extern long random(void); >extern char *realpath(const char *, char *); >extern char *setstate(const char *); >extern void srandom(unsigned); >extern int ttyslot(void); >extern int unlockpt(int); >extern void *valloc( size_t); > > >#pragma intrinsic (valloc) > > > > >extern int rand_r(unsigned int *); > > > > > > > >extern int atcheckpoint(void (*)(void)); >extern int atrestart(void (*)(void)); >extern int dup2(int, int); >extern int getpw(int, char *); >extern char *getcwd(char *, size_t); >extern char *getlogin(void); >extern char *getpass(const char *); >extern int isatty(int); >extern void l3tol(long *, const char *, int); >extern void ltol3(char *, const long *, int); >extern void *memalign( size_t, size_t); > > >#pragma intrinsic (memalign) >extern void swab(const void *, void *, ssize_t); >extern char *ttyname(int); > > > > >extern long double atold(const char *); >extern char *qecvt(long double, int, int *, int *); >extern char *qfcvt(long double, int, int *, int *); >extern char *qgcvt(long double, int, char *); >extern char *ecvtl(long double, int, int *, int *); >extern char *fcvtl(long double, int, int *, int *); >extern char *gcvtl(long double, int, char *); > > > > > > > > > > >extern char *ecvt_r(double, int, int *, int *, char *); >extern char *fcvt_r(double, int, int *, int *, char *); > >extern char *qecvt_r(long double, int, int *, int *, char *); >extern char *qfcvt_r(long double, int, int *, int *, char *); >extern char *ecvtl_r(long double, int, int *, int *, char *); >extern char *fcvtl_r(long double, int, int *, int *, char *); > > > > > > >#line 414 "/usr/include/internal/stdlib_core.h" > >#line 5 "/usr/include/stdlib.h" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >#line 28 "pfbtops.c" >#line 1 "/usr/include/limits.h" > > > >#line 1 "/usr/include/internal/limits_core.h" > > > > > > > > > > > > > > > > > > > > > > > > > > >#ident "$Revision: 1.3 $" > > > > > > > > > > > > > >#line 49 "/usr/include/internal/limits_core.h" > > > > >#line 67 "/usr/include/internal/limits_core.h" > > > > > > > > > > > > > > > > > > > > > >#line 102 "/usr/include/internal/limits_core.h" > > > > > >#line 115 "/usr/include/internal/limits_core.h" > > > > > > > >#line 132 "/usr/include/internal/limits_core.h" > > > > > > > > > > > >#line 149 "/usr/include/internal/limits_core.h" > > > >extern long _sysconf(int); > > > > > > > > > > >#line 173 "/usr/include/internal/limits_core.h" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >#line 220 "/usr/include/internal/limits_core.h" > > > > > > > > > > > > > > > > > > > >#line 250 "/usr/include/internal/limits_core.h" > >#line 258 "/usr/include/internal/limits_core.h" > >#line 270 "/usr/include/internal/limits_core.h" > > > > > > > > > >#line 291 "/usr/include/internal/limits_core.h" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >typedef union _h_val { > > unsigned long i[2]; > > > > > double d; >} _h_val; > >extern const _h_val __huge_val; > > > > > > > >#line 5 "/usr/include/limits.h" > > > >#line 29 "pfbtops.c" > > > > >#line 1 "/usr/opt/gentoo/var/tmp/portage/sys-apps/groff-1.19.2-r3/work/groff-1.19.2/src/include/nonposix.h" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >#line 133 "/usr/opt/gentoo/var/tmp/portage/sys-apps/groff-1.19.2-r3/work/groff-1.19.2/src/include/nonposix.h" > >#line 167 "/usr/opt/gentoo/var/tmp/portage/sys-apps/groff-1.19.2-r3/work/groff-1.19.2/src/include/nonposix.h" > > > > > > > >#line 34 "pfbtops.c" > > > > > > >extern const char *Version_string; > >static char *program_name; > >static void error(const char *s) >{ > fprintf((&__iob[2]), "%s: %s\n", program_name, s); > exit(2); >} > >static void usage(FILE *stream) >{ > fprintf(stream, "usage: %s [-v] [pfb_file]\n", program_name); >} > >static void get_text(int n) >{ > int c = 0, c1; > int in_string = 0; > int is_comment = 0; > int count = 0; > > while (--n >= 0) { > c = (__us_rsthread_stdio ? __semgetc((&__iob[0])) : (--((&__iob[0]))->_cnt < 0 ? __filbuf((&__iob[0])) : (int)*((&__iob[0]))->_ptr++)); > if (c == '(' && !is_comment) > in_string++; > else if (c == ')' && !is_comment) > in_string--; > else if (c == '%' && !in_string) > is_comment = 1; > else if (c == '\\' && in_string) { > count++; > (__us_rsthread_stdio ? __semputc((c),(&__iob[1])) : (--((&__iob[1]))->_cnt < 0 ? __flsbuf(((c)), ((&__iob[1]))) : (int)(*((&__iob[1]))->_ptr++ = (unsigned char)((c))))); > if (n-- == 0) > break; > c = (__us_rsthread_stdio ? __semgetc((&__iob[0])) : (--((&__iob[0]))->_cnt < 0 ? __filbuf((&__iob[0])) : (int)*((&__iob[0]))->_ptr++)); > > if (c >= '0' && c <= '7') { > count++; > (__us_rsthread_stdio ? __semputc((c),(&__iob[1])) : (--((&__iob[1]))->_cnt < 0 ? __flsbuf(((c)), ((&__iob[1]))) : (int)(*((&__iob[1]))->_ptr++ = (unsigned char)((c))))); > if (n-- == 0) > break; > c = (__us_rsthread_stdio ? __semgetc((&__iob[0])) : (--((&__iob[0]))->_cnt < 0 ? __filbuf((&__iob[0])) : (int)*((&__iob[0]))->_ptr++)); > if (c >= '0' && c <= '7') { > count++; > (__us_rsthread_stdio ? __semputc((c),(&__iob[1])) : (--((&__iob[1]))->_cnt < 0 ? __flsbuf(((c)), ((&__iob[1]))) : (int)(*((&__iob[1]))->_ptr++ = (unsigned char)((c))))); > if (n-- == 0) > break; > c = (__us_rsthread_stdio ? __semgetc((&__iob[0])) : (--((&__iob[0]))->_cnt < 0 ? __filbuf((&__iob[0])) : (int)*((&__iob[0]))->_ptr++)); > if (c >= '0' && c <= '7') { > count++; > (__us_rsthread_stdio ? __semputc((c),(&__iob[1])) : (--((&__iob[1]))->_cnt < 0 ? __flsbuf(((c)), ((&__iob[1]))) : (int)(*((&__iob[1]))->_ptr++ = (unsigned char)((c))))); > if (n-- == 0) > break; > c = (__us_rsthread_stdio ? __semgetc((&__iob[0])) : (--((&__iob[0]))->_cnt < 0 ? __filbuf((&__iob[0])) : (int)*((&__iob[0]))->_ptr++)); > } > } > } > } > if (c == (-1)) > error("end of file in text packet"); > else if (c == '\r') { > if (n-- == 0) > break; > c1 = (__us_rsthread_stdio ? __semgetc((&__iob[0])) : (--((&__iob[0]))->_cnt < 0 ? __filbuf((&__iob[0])) : (int)*((&__iob[0]))->_ptr++)); > if (c1 != '\n') { > ungetc(c1, (&__iob[0])); > n++; > } > c = '\n'; > } > if (c == '\n') { > count = 0; > is_comment = 0; > } > else if (count >= 78) { > if (in_string > 0) { > count = 1; > (__us_rsthread_stdio ? __semputc(('\\'),(&__iob[1])) : (--((&__iob[1]))->_cnt < 0 ? __flsbuf((('\\')), ((&__iob[1]))) : (int)(*((&__iob[1]))->_ptr++ = (unsigned char)(('\\'))))); > (__us_rsthread_stdio ? __semputc(('\n'),(&__iob[1])) : (--((&__iob[1]))->_cnt < 0 ? __flsbuf((('\n')), ((&__iob[1]))) : (int)(*((&__iob[1]))->_ptr++ = (unsigned char)(('\n'))))); > } > else if (is_comment) { > count = 2; > (__us_rsthread_stdio ? __semputc(('\n'),(&__iob[1])) : (--((&__iob[1]))->_cnt < 0 ? __flsbuf((('\n')), ((&__iob[1]))) : (int)(*((&__iob[1]))->_ptr++ = (unsigned char)(('\n'))))); > (__us_rsthread_stdio ? __semputc(('%'),(&__iob[1])) : (--((&__iob[1]))->_cnt < 0 ? __flsbuf((('%')), ((&__iob[1]))) : (int)(*((&__iob[1]))->_ptr++ = (unsigned char)(('%'))))); > } > else { > > while (c != ' ' && c != '\t' && c != '\f') { > (__us_rsthread_stdio ? __semputc((c),(&__iob[1])) : (--((&__iob[1]))->_cnt < 0 ? __flsbuf(((c)), ((&__iob[1]))) : (int)(*((&__iob[1]))->_ptr++ = (unsigned char)((c))))); > if (n-- == 0) > break; > c = (__us_rsthread_stdio ? __semgetc((&__iob[0])) : (--((&__iob[0]))->_cnt < 0 ? __filbuf((&__iob[0])) : (int)*((&__iob[0]))->_ptr++)); > } > count = 0; > (__us_rsthread_stdio ? __semputc(('\n'),(&__iob[1])) : (--((&__iob[1]))->_cnt < 0 ? __flsbuf((('\n')), ((&__iob[1]))) : (int)(*((&__iob[1]))->_ptr++ = (unsigned char)(('\n'))))); > continue; > } > } > count++; > (__us_rsthread_stdio ? __semputc((c),(&__iob[1])) : (--((&__iob[1]))->_cnt < 0 ? __flsbuf(((c)), ((&__iob[1]))) : (int)(*((&__iob[1]))->_ptr++ = (unsigned char)((c))))); > } > if (c != '\n') > (__us_rsthread_stdio ? __semputc(('\n'),(&__iob[1])) : (--((&__iob[1]))->_cnt < 0 ? __flsbuf((('\n')), ((&__iob[1]))) : (int)(*((&__iob[1]))->_ptr++ = (unsigned char)(('\n'))))); >} > >static void get_binary(int n) >{ > int c; > int count = 0; > > while (--n >= 0) { > c = (__us_rsthread_stdio ? __semgetc((&__iob[0])) : (--((&__iob[0]))->_cnt < 0 ? __filbuf((&__iob[0])) : (int)*((&__iob[0]))->_ptr++)); > if (c == (-1)) > error("end of file in binary packet"); > if (count >= (64/2)) { > (__us_rsthread_stdio ? __semputc(('\n'),(&__iob[1])) : (--((&__iob[1]))->_cnt < 0 ? __flsbuf((('\n')), ((&__iob[1]))) : (int)(*((&__iob[1]))->_ptr++ = (unsigned char)(('\n'))))); > count = 0; > } > count++; > (__us_rsthread_stdio ? __semputc(("0123456789abcdef"[(c >> 4) & 0xf]),(&__iob[1])) : (--((&__iob[1]))->_cnt < 0 ? __flsbuf((("0123456789abcdef"[(c >> 4) & 0xf])), ((&__iob[1]))) : (int)(*((&__iob[1]))->_ptr++ = (unsigned char)(("0123456789abcdef"[(c >> 4) & 0xf]))))); > (__us_rsthread_stdio ? __semputc(("0123456789abcdef"[c & 0xf]),(&__iob[1])) : (--((&__iob[1]))->_cnt < 0 ? __flsbuf((("0123456789abcdef"[c & 0xf])), ((&__iob[1]))) : (int)(*((&__iob[1]))->_ptr++ = (unsigned char)(("0123456789abcdef"[c & 0xf]))))); > } > (__us_rsthread_stdio ? __semputc(('\n'),(&__iob[1])) : (--((&__iob[1]))->_cnt < 0 ? __flsbuf((('\n')), ((&__iob[1]))) : (int)(*((&__iob[1]))->_ptr++ = (unsigned char)(('\n'))))); >} > >int main(int argc, char **argv) >{ > int opt; > static const struct option long_options[] = { > { "help", 0, 0, 255U + 1 }, > { "version", 0, 0, 'v' }, > { 0L, 0, 0, 0 } > }; > > program_name = argv[0]; > > while ((opt = getopt_long(argc, argv, "v", long_options, 0L)) != (-1)) { > switch (opt) { > case 'v': > printf("GNU pfbtops (groff) version %s\n", Version_string); > exit(0); > break; > case 255U + 1: > usage((&__iob[1])); > exit(0); > break; > case '?': > usage((&__iob[2])); > exit(1); > break; > } > } > > if (argc - optind > 1) { > usage((&__iob[2])); > exit(1); > } > if (argc > optind && !freopen(argv[optind], "r", (&__iob[0]))) { > perror(argv[optind]); > exit(1); > } > do {} while(0); > for (;;) { > int type, c, i; > long n; > > c = (__us_rsthread_stdio ? __semgetc((&__iob[0])) : (--((&__iob[0]))->_cnt < 0 ? __filbuf((&__iob[0])) : (int)*((&__iob[0]))->_ptr++)); > if (c != 0x80) > error("first byte of packet not 0x80"); > type = (__us_rsthread_stdio ? __semgetc((&__iob[0])) : (--((&__iob[0]))->_cnt < 0 ? __filbuf((&__iob[0])) : (int)*((&__iob[0]))->_ptr++)); > if (type == 3) > break; > if (type != 1 && type != 2) > error("bad packet type"); > n = 0; > for (i = 0; i < 4; i++) { > c = (__us_rsthread_stdio ? __semgetc((&__iob[0])) : (--((&__iob[0]))->_cnt < 0 ? __filbuf((&__iob[0])) : (int)*((&__iob[0]))->_ptr++)); > if (c == (-1)) > error("end of file in packet header"); > n |= (long)c << (i << 3); > } > if (n < 0) > error("negative packet length"); > if (type == 1) > get_text(n); > else > get_binary(n); > } > exit(0); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 211507
:
198264
|
198265
| 198269 |
198291