Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 1 "readline.c"
- # 1 "<built-in>"
- # 1 "<command-line>"
- # 1 "readline.c"
- # 1 "saphire.h" 1
- # 9 "saphire.h"
- # 1 "saphire_vector.h" 1
- # 13 "saphire_vector.h"
- typedef struct {
- void** mTable;
- int mTableSize;
- int mCount;
- } vector_obj;
- # 31 "saphire_vector.h"
- vector_obj* vector_new(int first_size);
- void vector_delete(vector_obj* self);
- vector_obj* vector_clone(vector_obj* v);
- # 69 "saphire_vector.h"
- int vector_index(vector_obj* self, void* item);
- void vector_exchange(vector_obj* self, int n, void* item);
- void vector_add(vector_obj* self, void* item);
- void vector_insert(vector_obj* self, int n, void* item);
- void* vector_erase(vector_obj* self, int n);
- void* vector_pop_back(vector_obj* self);
- void* vector_pop_front(vector_obj* self);
- void vector_clear(vector_obj* self);
- typedef int (*sort_if)(void* left, void* right);
- int vector_sort(vector_obj* self, sort_if fun);
- # 10 "saphire.h" 2
- # 1 "saphire_list.h" 1
- # 13 "saphire_list.h"
- typedef struct _list_it {
- void* mItem;
- struct _list_it* mPrevIt;
- struct _list_it* mNextIt;
- } list_it;
- typedef struct {
- list_it* mEntryIt;
- list_it* mLastIt;
- int mCount;
- } list_obj;
- # 37 "saphire_list.h"
- list_obj* list_new();
- void list_delete(list_obj* self);
- int list_size(list_obj* self);
- int list_empty(list_obj* self);
- int list_index_of(list_obj* self, void* item);
- void list_push_front(list_obj* self, void* item);
- void list_push_back(list_obj* self, void* item);
- void* list_pop_front(list_obj* self);
- void* list_pop_back(list_obj* self);
- void list_clear(list_obj* self);
- list_it* list_begin(list_obj* self);
- list_it* list_last(list_obj* self);
- list_it* list_at(list_obj* self, int index);
- list_it* list_find(list_obj* self, void* item);
- void* list_item(list_it* self);
- list_it* list_next(list_it* self);
- list_it* list_prev(list_it* self);
- void list_replace(list_it* self, void* item);
- void list_erase(list_it* self, list_obj* owner);
- void list_insert_front(list_it* self, void* item, list_obj* owner);
- void list_insert_back(list_it* self, void* item, list_obj* owner);
- # 11 "saphire.h" 2
- # 1 "saphire_string.h" 1
- # 1 "saphire_kanji.h" 1
- # 9 "saphire_kanji.h"
- # 1 "saphire_extra.h" 1
- # 23 "saphire_extra.h"
- void mygetcwd( char* result);
- void parentname( char* result, char* path);
- void extname( char* result, char* name);
- void noextname( char* result, char* name);
- char* mystrcasestr(const char *haystack, const char *needle);
- void mystrtolower(char* result);
- int correct_path(char* current_path, char* path, char* path2);
- # 10 "saphire_kanji.h" 2
- # 1 "/usr/include/wchar.h" 1 3 4
- # 28 "/usr/include/wchar.h" 3 4
- # 1 "/usr/include/features.h" 1 3 4
- # 356 "/usr/include/features.h" 3 4
- # 1 "/usr/include/sys/cdefs.h" 1 3 4
- # 353 "/usr/include/sys/cdefs.h" 3 4
- # 1 "/usr/include/bits/wordsize.h" 1 3 4
- # 354 "/usr/include/sys/cdefs.h" 2 3 4
- # 357 "/usr/include/features.h" 2 3 4
- # 380 "/usr/include/features.h" 3 4
- # 1 "/usr/include/gnu/stubs.h" 1 3 4
- # 1 "/usr/include/bits/wordsize.h" 1 3 4
- # 5 "/usr/include/gnu/stubs.h" 2 3 4
- # 1 "/usr/include/gnu/stubs-64.h" 1 3 4
- # 10 "/usr/include/gnu/stubs.h" 2 3 4
- # 381 "/usr/include/features.h" 2 3 4
- # 29 "/usr/include/wchar.h" 2 3 4
- # 37 "/usr/include/wchar.h" 3 4
- # 1 "/usr/include/stdio.h" 1 3 4
- # 45 "/usr/include/stdio.h" 3 4
- struct _IO_FILE;
- typedef struct _IO_FILE FILE;
- # 65 "/usr/include/stdio.h" 3 4
- typedef struct _IO_FILE __FILE;
- # 38 "/usr/include/wchar.h" 2 3 4
- # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stdarg.h" 1 3 4
- # 40 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stdarg.h" 3 4
- typedef __builtin_va_list __gnuc_va_list;
- # 41 "/usr/include/wchar.h" 2 3 4
- # 1 "/usr/include/bits/wchar.h" 1 3 4
- # 43 "/usr/include/wchar.h" 2 3 4
- # 52 "/usr/include/wchar.h" 3 4
- # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 1 3 4
- # 211 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 3 4
- typedef long unsigned int size_t;
- # 323 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 3 4
- typedef int wchar_t;
- # 352 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 3 4
- typedef unsigned int wint_t;
- # 53 "/usr/include/wchar.h" 2 3 4
- # 83 "/usr/include/wchar.h" 3 4
- typedef struct
- {
- int __count;
- union
- {
- unsigned int __wch;
- char __wchb[4];
- } __value;
- } __mbstate_t;
- # 104 "/usr/include/wchar.h" 3 4
- typedef __mbstate_t mbstate_t;
- # 129 "/usr/include/wchar.h" 3 4
- struct tm;
- extern wchar_t *wcscpy (wchar_t *__restrict __dest,
- __const wchar_t *__restrict __src) __attribute__ ((__nothrow__));
- extern wchar_t *wcsncpy (wchar_t *__restrict __dest,
- __const wchar_t *__restrict __src, size_t __n)
- __attribute__ ((__nothrow__));
- extern wchar_t *wcscat (wchar_t *__restrict __dest,
- __const wchar_t *__restrict __src) __attribute__ ((__nothrow__));
- extern wchar_t *wcsncat (wchar_t *__restrict __dest,
- __const wchar_t *__restrict __src, size_t __n)
- __attribute__ ((__nothrow__));
- extern int wcscmp (__const wchar_t *__s1, __const wchar_t *__s2)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- extern int wcsncmp (__const wchar_t *__s1, __const wchar_t *__s2, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- extern int wcscasecmp (__const wchar_t *__s1, __const wchar_t *__s2) __attribute__ ((__nothrow__));
- extern int wcsncasecmp (__const wchar_t *__s1, __const wchar_t *__s2,
- size_t __n) __attribute__ ((__nothrow__));
- # 1 "/usr/include/xlocale.h" 1 3 4
- # 28 "/usr/include/xlocale.h" 3 4
- typedef struct __locale_struct
- {
- struct __locale_data *__locales[13];
- const unsigned short int *__ctype_b;
- const int *__ctype_tolower;
- const int *__ctype_toupper;
- const char *__names[13];
- } *__locale_t;
- typedef __locale_t locale_t;
- # 178 "/usr/include/wchar.h" 2 3 4
- extern int wcscasecmp_l (__const wchar_t *__s1, __const wchar_t *__s2,
- __locale_t __loc) __attribute__ ((__nothrow__));
- extern int wcsncasecmp_l (__const wchar_t *__s1, __const wchar_t *__s2,
- size_t __n, __locale_t __loc) __attribute__ ((__nothrow__));
- extern int wcscoll (__const wchar_t *__s1, __const wchar_t *__s2) __attribute__ ((__nothrow__));
- extern size_t wcsxfrm (wchar_t *__restrict __s1,
- __const wchar_t *__restrict __s2, size_t __n) __attribute__ ((__nothrow__));
- extern int wcscoll_l (__const wchar_t *__s1, __const wchar_t *__s2,
- __locale_t __loc) __attribute__ ((__nothrow__));
- extern size_t wcsxfrm_l (wchar_t *__s1, __const wchar_t *__s2,
- size_t __n, __locale_t __loc) __attribute__ ((__nothrow__));
- extern wchar_t *wcsdup (__const wchar_t *__s) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
- extern wchar_t *wcschr (__const wchar_t *__wcs, wchar_t __wc)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- # 234 "/usr/include/wchar.h" 3 4
- extern wchar_t *wcsrchr (__const wchar_t *__wcs, wchar_t __wc)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- # 246 "/usr/include/wchar.h" 3 4
- extern size_t wcscspn (__const wchar_t *__wcs, __const wchar_t *__reject)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- extern size_t wcsspn (__const wchar_t *__wcs, __const wchar_t *__accept)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- # 263 "/usr/include/wchar.h" 3 4
- extern wchar_t *wcspbrk (__const wchar_t *__wcs, __const wchar_t *__accept)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- # 274 "/usr/include/wchar.h" 3 4
- extern wchar_t *wcsstr (__const wchar_t *__haystack, __const wchar_t *__needle)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- extern wchar_t *wcstok (wchar_t *__restrict __s,
- __const wchar_t *__restrict __delim,
- wchar_t **__restrict __ptr) __attribute__ ((__nothrow__));
- extern size_t wcslen (__const wchar_t *__s) __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- # 303 "/usr/include/wchar.h" 3 4
- extern size_t wcsnlen (__const wchar_t *__s, size_t __maxlen)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- # 317 "/usr/include/wchar.h" 3 4
- extern wchar_t *wmemchr (__const wchar_t *__s, wchar_t __c, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- extern int wmemcmp (__const wchar_t *__restrict __s1,
- __const wchar_t *__restrict __s2, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- extern wchar_t *wmemcpy (wchar_t *__restrict __s1,
- __const wchar_t *__restrict __s2, size_t __n) __attribute__ ((__nothrow__));
- extern wchar_t *wmemmove (wchar_t *__s1, __const wchar_t *__s2, size_t __n)
- __attribute__ ((__nothrow__));
- extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) __attribute__ ((__nothrow__));
- # 348 "/usr/include/wchar.h" 3 4
- extern wint_t btowc (int __c) __attribute__ ((__nothrow__));
- extern int wctob (wint_t __c) __attribute__ ((__nothrow__));
- extern int mbsinit (__const mbstate_t *__ps) __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- extern size_t mbrtowc (wchar_t *__restrict __pwc,
- __const char *__restrict __s, size_t __n,
- mbstate_t *__p) __attribute__ ((__nothrow__));
- extern size_t wcrtomb (char *__restrict __s, wchar_t __wc,
- mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
- extern size_t __mbrlen (__const char *__restrict __s, size_t __n,
- mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
- extern size_t mbrlen (__const char *__restrict __s, size_t __n,
- mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
- extern wint_t __btowc_alias (int __c) __asm ("btowc");
- extern __inline wint_t
- __attribute__ ((__nothrow__)) btowc (int __c)
- { return (__builtin_constant_p (__c) && __c >= '\0' && __c <= '\x7f'
- ? (wint_t) __c : __btowc_alias (__c)); }
- extern int __wctob_alias (wint_t __c) __asm ("wctob");
- extern __inline int
- __attribute__ ((__nothrow__)) wctob (wint_t __wc)
- { return (__builtin_constant_p (__wc) && __wc >= L'\0' && __wc <= L'\x7f'
- ? (int) __wc : __wctob_alias (__wc)); }
- extern __inline size_t
- __attribute__ ((__nothrow__)) mbrlen (__const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps)
- { return (__ps != ((void *)0)
- ? mbrtowc (((void *)0), __s, __n, __ps) : __mbrlen (__s, __n, ((void *)0))); }
- extern size_t mbsrtowcs (wchar_t *__restrict __dst,
- __const char **__restrict __src, size_t __len,
- mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
- extern size_t wcsrtombs (char *__restrict __dst,
- __const wchar_t **__restrict __src, size_t __len,
- mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
- extern size_t mbsnrtowcs (wchar_t *__restrict __dst,
- __const char **__restrict __src, size_t __nmc,
- size_t __len, mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
- extern size_t wcsnrtombs (char *__restrict __dst,
- __const wchar_t **__restrict __src,
- size_t __nwc, size_t __len,
- mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
- # 445 "/usr/include/wchar.h" 3 4
- extern double wcstod (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr) __attribute__ ((__nothrow__));
- extern float wcstof (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr) __attribute__ ((__nothrow__));
- extern long double wcstold (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr) __attribute__ ((__nothrow__));
- extern long int wcstol (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr, int __base) __attribute__ ((__nothrow__));
- extern unsigned long int wcstoul (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr, int __base)
- __attribute__ ((__nothrow__));
- __extension__
- extern long long int wcstoll (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr, int __base)
- __attribute__ ((__nothrow__));
- __extension__
- extern unsigned long long int wcstoull (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr,
- int __base) __attribute__ ((__nothrow__));
- # 564 "/usr/include/wchar.h" 3 4
- extern wchar_t *wcpcpy (wchar_t *__dest, __const wchar_t *__src) __attribute__ ((__nothrow__));
- extern wchar_t *wcpncpy (wchar_t *__dest, __const wchar_t *__src, size_t __n)
- __attribute__ ((__nothrow__));
- # 578 "/usr/include/wchar.h" 3 4
- extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) __attribute__ ((__nothrow__));
- extern int fwide (__FILE *__fp, int __mode) __attribute__ ((__nothrow__));
- extern int fwprintf (__FILE *__restrict __stream,
- __const wchar_t *__restrict __format, ...)
- ;
- extern int wprintf (__const wchar_t *__restrict __format, ...)
- ;
- extern int swprintf (wchar_t *__restrict __s, size_t __n,
- __const wchar_t *__restrict __format, ...)
- __attribute__ ((__nothrow__)) ;
- extern int vfwprintf (__FILE *__restrict __s,
- __const wchar_t *__restrict __format,
- __gnuc_va_list __arg)
- ;
- extern int vwprintf (__const wchar_t *__restrict __format,
- __gnuc_va_list __arg)
- ;
- extern int vswprintf (wchar_t *__restrict __s, size_t __n,
- __const wchar_t *__restrict __format,
- __gnuc_va_list __arg)
- __attribute__ ((__nothrow__)) ;
- extern int fwscanf (__FILE *__restrict __stream,
- __const wchar_t *__restrict __format, ...)
- ;
- extern int wscanf (__const wchar_t *__restrict __format, ...)
- ;
- extern int swscanf (__const wchar_t *__restrict __s,
- __const wchar_t *__restrict __format, ...)
- __attribute__ ((__nothrow__)) ;
- # 654 "/usr/include/wchar.h" 3 4
- extern int fwscanf (__FILE *__restrict __stream, __const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc99_fwscanf")
- ;
- extern int wscanf (__const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc99_wscanf")
- ;
- extern int swscanf (__const wchar_t *__restrict __s, __const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc99_swscanf") __attribute__ ((__nothrow__))
- ;
- # 678 "/usr/include/wchar.h" 3 4
- extern int vfwscanf (__FILE *__restrict __s,
- __const wchar_t *__restrict __format,
- __gnuc_va_list __arg)
- ;
- extern int vwscanf (__const wchar_t *__restrict __format,
- __gnuc_va_list __arg)
- ;
- extern int vswscanf (__const wchar_t *__restrict __s,
- __const wchar_t *__restrict __format,
- __gnuc_va_list __arg)
- __attribute__ ((__nothrow__)) ;
- extern int vfwscanf (__FILE *__restrict __s, __const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfwscanf")
- ;
- extern int vwscanf (__const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vwscanf")
- ;
- extern int vswscanf (__const wchar_t *__restrict __s, __const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vswscanf") __attribute__ ((__nothrow__))
- ;
- # 734 "/usr/include/wchar.h" 3 4
- extern wint_t fgetwc (__FILE *__stream);
- extern wint_t getwc (__FILE *__stream);
- extern wint_t getwchar (void);
- extern wint_t fputwc (wchar_t __wc, __FILE *__stream);
- extern wint_t putwc (wchar_t __wc, __FILE *__stream);
- extern wint_t putwchar (wchar_t __wc);
- extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n,
- __FILE *__restrict __stream);
- extern int fputws (__const wchar_t *__restrict __ws,
- __FILE *__restrict __stream);
- extern wint_t ungetwc (wint_t __wc, __FILE *__stream);
- # 849 "/usr/include/wchar.h" 3 4
- extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize,
- __const wchar_t *__restrict __format,
- __const struct tm *__restrict __tp) __attribute__ ((__nothrow__));
- # 889 "/usr/include/wchar.h" 3 4
- # 11 "saphire_kanji.h" 2
- enum eKanjiCode { kEucjp, kSjis, kUtf8, kUtf8Mac, kUnknown };
- extern char* gKanjiCodeString[5];
- extern char* gIconvKanjiCodeName[5];
- void kanji_init();
- void kanji_final();
- int is_utf8_bytes(char* mbs);
- int str_pointer2kanjipos(enum eKanjiCode code, char* mbs, char* point);
- char* str_kanjipos2pointer(enum eKanjiCode code, char* mbs, int pos);
- int str_termlen_range(enum eKanjiCode code, char* mbs, int utfpos1, int utfpos2);
- extern int is_hankaku(enum eKanjiCode code, unsigned char c);
- extern int is_kanji(enum eKanjiCode code, unsigned char c);
- extern int is_all_ascii(char* buf);
- extern int str_termlen(enum eKanjiCode code, char* mbs);
- extern int str_termlen2(enum eKanjiCode code, char* mbs, int pos);
- extern int str_kanjilen(enum eKanjiCode code, char* mbs);
- extern void str_cut(enum eKanjiCode code, char* mbs, int termsize
- , char* dest_mbs, int dest_byte);
- extern void str_cut2(enum eKanjiCode code, char* mbs, int termsize
- , char* dest_mbs, int dest_byte);
- extern void str_cut3(enum eKanjiCode code, char* mbs, int termsize
- , char* dest_mbs, int dest_byte);
- # 9 "saphire_string.h" 2
- typedef struct
- {
- char* mStr;
- int mLen;
- int mMallocLen;
- } string_obj;
- # 31 "saphire_string.h"
- string_obj* string_new(char* str);
- void string_delete(string_obj* str);
- # 53 "saphire_string.h"
- char* string_c_str(string_obj* obj);
- # 67 "saphire_string.h"
- void string_push_back(string_obj* self, char* key);
- void string_push_back2(string_obj* self, char key);
- void string_push_back3(string_obj* self, char* str, int n);
- void string_put(string_obj* self, char* str);
- void string_put2(string_obj* self, char c);
- void string_trunc(string_obj* self, int n);
- void string_insert(string_obj* obj, int pos, char* str);
- void string_erase(string_obj* obj, int pos, int len);
- void string_toupper(string_obj* self, enum eKanjiCode code);
- void string_tolower(string_obj* self, enum eKanjiCode code);
- # 12 "saphire.h" 2
- # 1 "saphire_curses.h" 1
- # 9 "saphire_curses.h"
- # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stdarg.h" 1 3 4
- # 102 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stdarg.h" 3 4
- typedef __gnuc_va_list va_list;
- # 10 "saphire_curses.h" 2
- # 1 "/usr/include/sys/ioctl.h" 1 3 4
- # 24 "/usr/include/sys/ioctl.h" 3 4
- # 1 "/usr/include/bits/ioctls.h" 1 3 4
- # 24 "/usr/include/bits/ioctls.h" 3 4
- # 1 "/usr/include/asm/ioctls.h" 1 3 4
- # 1 "/usr/include/asm-generic/ioctls.h" 1 3 4
- # 1 "/usr/include/linux/ioctl.h" 1 3 4
- # 1 "/usr/include/asm/ioctl.h" 1 3 4
- # 1 "/usr/include/asm-generic/ioctl.h" 1 3 4
- # 1 "/usr/include/asm/ioctl.h" 2 3 4
- # 5 "/usr/include/linux/ioctl.h" 2 3 4
- # 5 "/usr/include/asm-generic/ioctls.h" 2 3 4
- # 1 "/usr/include/asm/ioctls.h" 2 3 4
- # 25 "/usr/include/bits/ioctls.h" 2 3 4
- # 28 "/usr/include/sys/ioctl.h" 2 3 4
- # 1 "/usr/include/bits/ioctl-types.h" 1 3 4
- # 25 "/usr/include/bits/ioctl-types.h" 3 4
- # 1 "/usr/include/asm/ioctls.h" 1 3 4
- # 26 "/usr/include/bits/ioctl-types.h" 2 3 4
- struct winsize
- {
- unsigned short int ws_row;
- unsigned short int ws_col;
- unsigned short int ws_xpixel;
- unsigned short int ws_ypixel;
- };
- struct termio
- {
- unsigned short int c_iflag;
- unsigned short int c_oflag;
- unsigned short int c_cflag;
- unsigned short int c_lflag;
- unsigned char c_line;
- unsigned char c_cc[8];
- };
- # 31 "/usr/include/sys/ioctl.h" 2 3 4
- # 1 "/usr/include/sys/ttydefaults.h" 1 3 4
- # 38 "/usr/include/sys/ioctl.h" 2 3 4
- extern int ioctl (int __fd, unsigned long int __request, ...) __attribute__ ((__nothrow__));
- # 11 "saphire_curses.h" 2
- # 1 "/usr/include/sys/types.h" 1 3 4
- # 28 "/usr/include/sys/types.h" 3 4
- # 1 "/usr/include/bits/types.h" 1 3 4
- # 28 "/usr/include/bits/types.h" 3 4
- # 1 "/usr/include/bits/wordsize.h" 1 3 4
- # 29 "/usr/include/bits/types.h" 2 3 4
- 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;
- typedef signed long int __int64_t;
- typedef unsigned long int __uint64_t;
- typedef long int __quad_t;
- typedef unsigned long int __u_quad_t;
- # 131 "/usr/include/bits/types.h" 3 4
- # 1 "/usr/include/bits/typesizes.h" 1 3 4
- # 132 "/usr/include/bits/types.h" 2 3 4
- typedef unsigned long int __dev_t;
- typedef unsigned int __uid_t;
- typedef unsigned int __gid_t;
- typedef unsigned long int __ino_t;
- typedef unsigned long int __ino64_t;
- typedef unsigned int __mode_t;
- typedef unsigned long int __nlink_t;
- typedef long int __off_t;
- typedef long int __off64_t;
- typedef int __pid_t;
- typedef struct { int __val[2]; } __fsid_t;
- typedef long int __clock_t;
- typedef unsigned long int __rlim_t;
- typedef unsigned long int __rlim64_t;
- typedef unsigned int __id_t;
- typedef long int __time_t;
- typedef unsigned int __useconds_t;
- typedef long int __suseconds_t;
- typedef int __daddr_t;
- typedef long int __swblk_t;
- typedef int __key_t;
- typedef int __clockid_t;
- typedef void * __timer_t;
- typedef long int __blksize_t;
- typedef long int __blkcnt_t;
- typedef long int __blkcnt64_t;
- typedef unsigned long int __fsblkcnt_t;
- typedef unsigned long int __fsblkcnt64_t;
- typedef unsigned long int __fsfilcnt_t;
- typedef unsigned long int __fsfilcnt64_t;
- typedef long int __ssize_t;
- typedef __off64_t __loff_t;
- typedef __quad_t *__qaddr_t;
- typedef char *__caddr_t;
- typedef long int __intptr_t;
- typedef unsigned int __socklen_t;
- # 31 "/usr/include/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;
- # 61 "/usr/include/sys/types.h" 3 4
- typedef __dev_t dev_t;
- typedef __gid_t gid_t;
- typedef __mode_t mode_t;
- typedef __nlink_t nlink_t;
- typedef __uid_t uid_t;
- typedef __off_t off_t;
- # 99 "/usr/include/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/sys/types.h" 3 4
- # 1 "/usr/include/time.h" 1 3 4
- # 58 "/usr/include/time.h" 3 4
- typedef __clock_t clock_t;
- # 74 "/usr/include/time.h" 3 4
- typedef __time_t time_t;
- # 92 "/usr/include/time.h" 3 4
- typedef __clockid_t clockid_t;
- # 104 "/usr/include/time.h" 3 4
- typedef __timer_t timer_t;
- # 134 "/usr/include/sys/types.h" 2 3 4
- # 147 "/usr/include/sys/types.h" 3 4
- # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 1 3 4
- # 148 "/usr/include/sys/types.h" 2 3 4
- typedef unsigned long int ulong;
- typedef unsigned short int ushort;
- typedef unsigned int uint;
- # 195 "/usr/include/sys/types.h" 3 4
- typedef int int8_t __attribute__ ((__mode__ (__QI__)));
- typedef int int16_t __attribute__ ((__mode__ (__HI__)));
- typedef int int32_t __attribute__ ((__mode__ (__SI__)));
- typedef int int64_t __attribute__ ((__mode__ (__DI__)));
- typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__)));
- typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
- typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__)));
- typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));
- typedef int register_t __attribute__ ((__mode__ (__word__)));
- # 217 "/usr/include/sys/types.h" 3 4
- # 1 "/usr/include/endian.h" 1 3 4
- # 37 "/usr/include/endian.h" 3 4
- # 1 "/usr/include/bits/endian.h" 1 3 4
- # 38 "/usr/include/endian.h" 2 3 4
- # 61 "/usr/include/endian.h" 3 4
- # 1 "/usr/include/bits/byteswap.h" 1 3 4
- # 28 "/usr/include/bits/byteswap.h" 3 4
- # 1 "/usr/include/bits/wordsize.h" 1 3 4
- # 29 "/usr/include/bits/byteswap.h" 2 3 4
- # 62 "/usr/include/endian.h" 2 3 4
- # 218 "/usr/include/sys/types.h" 2 3 4
- # 1 "/usr/include/sys/select.h" 1 3 4
- # 31 "/usr/include/sys/select.h" 3 4
- # 1 "/usr/include/bits/select.h" 1 3 4
- # 23 "/usr/include/bits/select.h" 3 4
- # 1 "/usr/include/bits/wordsize.h" 1 3 4
- # 24 "/usr/include/bits/select.h" 2 3 4
- # 32 "/usr/include/sys/select.h" 2 3 4
- # 1 "/usr/include/bits/sigset.h" 1 3 4
- # 24 "/usr/include/bits/sigset.h" 3 4
- typedef int __sig_atomic_t;
- typedef struct
- {
- unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
- } __sigset_t;
- # 35 "/usr/include/sys/select.h" 2 3 4
- typedef __sigset_t sigset_t;
- # 1 "/usr/include/time.h" 1 3 4
- # 120 "/usr/include/time.h" 3 4
- struct timespec
- {
- __time_t tv_sec;
- long int tv_nsec;
- };
- # 45 "/usr/include/sys/select.h" 2 3 4
- # 1 "/usr/include/bits/time.h" 1 3 4
- # 75 "/usr/include/bits/time.h" 3 4
- struct timeval
- {
- __time_t tv_sec;
- __suseconds_t tv_usec;
- };
- # 47 "/usr/include/sys/select.h" 2 3 4
- typedef __suseconds_t suseconds_t;
- typedef long int __fd_mask;
- # 67 "/usr/include/sys/select.h" 3 4
- typedef struct
- {
- __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))];
- } fd_set;
- typedef __fd_mask fd_mask;
- # 99 "/usr/include/sys/select.h" 3 4
- # 109 "/usr/include/sys/select.h" 3 4
- extern int select (int __nfds, fd_set *__restrict __readfds,
- fd_set *__restrict __writefds,
- fd_set *__restrict __exceptfds,
- struct timeval *__restrict __timeout);
- # 121 "/usr/include/sys/select.h" 3 4
- extern int pselect (int __nfds, fd_set *__restrict __readfds,
- fd_set *__restrict __writefds,
- fd_set *__restrict __exceptfds,
- const struct timespec *__restrict __timeout,
- const __sigset_t *__restrict __sigmask);
- # 221 "/usr/include/sys/types.h" 2 3 4
- # 1 "/usr/include/sys/sysmacros.h" 1 3 4
- # 30 "/usr/include/sys/sysmacros.h" 3 4
- __extension__
- extern unsigned int gnu_dev_major (unsigned long long int __dev)
- __attribute__ ((__nothrow__));
- __extension__
- extern unsigned int gnu_dev_minor (unsigned long long int __dev)
- __attribute__ ((__nothrow__));
- __extension__
- extern unsigned long long int gnu_dev_makedev (unsigned int __major,
- unsigned int __minor)
- __attribute__ ((__nothrow__));
- __extension__ extern __inline unsigned int
- __attribute__ ((__nothrow__)) gnu_dev_major (unsigned long long int __dev)
- {
- return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
- }
- __extension__ extern __inline unsigned int
- __attribute__ ((__nothrow__)) gnu_dev_minor (unsigned long long int __dev)
- {
- return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
- }
- __extension__ extern __inline unsigned long long int
- __attribute__ ((__nothrow__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor)
- {
- return ((__minor & 0xff) | ((__major & 0xfff) << 8)
- | (((unsigned long long int) (__minor & ~0xff)) << 12)
- | (((unsigned long long int) (__major & ~0xfff)) << 32));
- }
- # 224 "/usr/include/sys/types.h" 2 3 4
- typedef __blksize_t blksize_t;
- typedef __blkcnt_t blkcnt_t;
- typedef __fsblkcnt_t fsblkcnt_t;
- typedef __fsfilcnt_t fsfilcnt_t;
- # 271 "/usr/include/sys/types.h" 3 4
- # 1 "/usr/include/bits/pthreadtypes.h" 1 3 4
- # 23 "/usr/include/bits/pthreadtypes.h" 3 4
- # 1 "/usr/include/bits/wordsize.h" 1 3 4
- # 24 "/usr/include/bits/pthreadtypes.h" 2 3 4
- # 50 "/usr/include/bits/pthreadtypes.h" 3 4
- typedef unsigned long int pthread_t;
- typedef union
- {
- char __size[56];
- long int __align;
- } pthread_attr_t;
- typedef struct __pthread_internal_list
- {
- struct __pthread_internal_list *__prev;
- struct __pthread_internal_list *__next;
- } __pthread_list_t;
- # 76 "/usr/include/bits/pthreadtypes.h" 3 4
- typedef union
- {
- struct __pthread_mutex_s
- {
- int __lock;
- unsigned int __count;
- int __owner;
- unsigned int __nusers;
- int __kind;
- int __spins;
- __pthread_list_t __list;
- # 101 "/usr/include/bits/pthreadtypes.h" 3 4
- } __data;
- char __size[40];
- long int __align;
- } pthread_mutex_t;
- typedef union
- {
- char __size[4];
- 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];
- 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;
- int __writer;
- int __shared;
- unsigned long int __pad1;
- unsigned long int __pad2;
- unsigned int __flags;
- } __data;
- # 187 "/usr/include/bits/pthreadtypes.h" 3 4
- char __size[56];
- 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[32];
- long int __align;
- } pthread_barrier_t;
- typedef union
- {
- char __size[4];
- int __align;
- } pthread_barrierattr_t;
- # 272 "/usr/include/sys/types.h" 2 3 4
- # 12 "saphire_curses.h" 2
- enum eTerminalKanjiCode { kTKEucjp, kTKSjis, kTKUtf8 };
- extern enum eTerminalKanjiCode gTerminalKanjiCode;
- extern int gKeyEscapeWait;
- # 47 "saphire_curses.h"
- void mcurses_init(enum eTerminalKanjiCode code);
- void mcurses_final();
- void minitscr();
- void mendwin();
- void madd_keymap(int key, char keyes[10]);
- void mclear();
- void mclear_immediately();
- void mclear_online(int y);
- void mmove(int y, int x);
- void mmove_immediately(int y, int x);
- int mmvprintw(int y, int x, char* str, ...);
- int mmvprintw_immediately(int y, int x, char* str, ...);
- int mprintw_immediately(char* str, ...);
- int mprintw(char* str, ...);
- void mattron(int attrs);
- void mattroff();
- void mbox(int y, int x, int width, int height);
- void mrefresh();
- int mgetmaxx();
- int mgetmaxy();
- int mgetch(int* meta);
- int mgetch_nonblock(int* meta);
- int mkbuf_exist();
- int mis_raw_mode();
- void mreset_tty();
- void msave_screen();
- void mrestore_screen();
- void mrestore_ttysettings();
- void msave_ttysettings();
- void mbackspace_immediately();
- void mbackspace_head_of_line_immediately();
- void mmove_line_home_immediately();
- void mcursor_right_immediately(int n);
- void mcursor_left_immediately(int n);
- extern int gMCTtyFd;
- # 14 "saphire.h" 2
- # 1 "saphire_hash.h" 1
- # 13 "saphire_hash.h"
- typedef struct _hash_it {
- char* mKey;
- void* mItem;
- struct _hash_it* mCollisionIt;
- struct _hash_it* mNextIt;
- } hash_it;
- typedef struct {
- hash_it** mTable;
- int mTableSize;
- hash_it* mEntryIt;
- int mCounter;
- } hash_obj;
- # 43 "saphire_hash.h"
- hash_obj* hash_new(int size);
- void hash_delete(hash_obj* self);
- void hash_put(hash_obj* self, char* key, void* item);
- void hash_erase(hash_obj* self, char* key);
- void hash_clear(hash_obj* self);
- void hash_replace(hash_obj* self, char* key, void* item);
- void hash_show(hash_obj* self, char* fname);
- void* hash_item(hash_obj* self, char* key);
- void* hash_item_addr(hash_obj* self, char* key);
- char* hash_key(hash_obj* self, void* item);
- int hash_count(hash_obj* self);
- hash_it* hash_loop_begin(hash_obj* self);
- void* hash_loop_item(hash_it* it);
- char* hash_loop_key(hash_it* it);
- hash_it* hash_loop_next(hash_it* it);
- # 15 "saphire.h" 2
- # 1 "saphire_debug.h" 1
- # 9 "saphire_debug.h"
- # 1 "/usr/include/stdlib.h" 1 3 4
- # 33 "/usr/include/stdlib.h" 3 4
- # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 1 3 4
- # 34 "/usr/include/stdlib.h" 2 3 4
- # 1 "/usr/include/bits/waitflags.h" 1 3 4
- # 43 "/usr/include/stdlib.h" 2 3 4
- # 1 "/usr/include/bits/waitstatus.h" 1 3 4
- # 67 "/usr/include/bits/waitstatus.h" 3 4
- union wait
- {
- int w_status;
- struct
- {
- unsigned int __w_termsig:7;
- unsigned int __w_coredump:1;
- unsigned int __w_retcode:8;
- unsigned int:16;
- } __wait_terminated;
- struct
- {
- unsigned int __w_stopval:8;
- unsigned int __w_stopsig:8;
- unsigned int:16;
- } __wait_stopped;
- };
- # 44 "/usr/include/stdlib.h" 2 3 4
- # 68 "/usr/include/stdlib.h" 3 4
- typedef union
- {
- union wait *__uptr;
- int *__iptr;
- } __WAIT_STATUS __attribute__ ((__transparent_union__));
- # 96 "/usr/include/stdlib.h" 3 4
- typedef struct
- {
- int quot;
- int rem;
- } div_t;
- typedef struct
- {
- long int quot;
- long int rem;
- } ldiv_t;
- __extension__ typedef struct
- {
- long long int quot;
- long long int rem;
- } lldiv_t;
- # 140 "/usr/include/stdlib.h" 3 4
- extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__)) ;
- extern double atof (__const char *__nptr)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
- extern int atoi (__const char *__nptr)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
- extern long int atol (__const char *__nptr)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
- __extension__ extern long long int atoll (__const char *__nptr)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
- extern double strtod (__const char *__restrict __nptr,
- char **__restrict __endptr)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- extern float strtof (__const char *__restrict __nptr,
- char **__restrict __endptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- extern long double strtold (__const char *__restrict __nptr,
- char **__restrict __endptr)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- 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))) ;
- # 277 "/usr/include/stdlib.h" 3 4
- 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);
- }
- # 311 "/usr/include/stdlib.h" 3 4
- extern char *l64a (long int __n) __attribute__ ((__nothrow__)) ;
- extern long int a64l (__const char *__s)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
- # 327 "/usr/include/stdlib.h" 3 4
- extern long int random (void) __attribute__ ((__nothrow__));
- extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__));
- extern char *initstate (unsigned int __seed, char *__statebuf,
- size_t __statelen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
- extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- struct random_data
- {
- int32_t *fptr;
- int32_t *rptr;
- int32_t *state;
- int rand_type;
- int rand_deg;
- int rand_sep;
- int32_t *end_ptr;
- };
- extern int random_r (struct random_data *__restrict __buf,
- int32_t *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int srandom_r (unsigned int __seed, struct random_data *__buf)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
- extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
- size_t __statelen,
- struct random_data *__restrict __buf)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));
- extern int setstate_r (char *__restrict __statebuf,
- struct random_data *__restrict __buf)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int rand (void) __attribute__ ((__nothrow__));
- extern void srand (unsigned int __seed) __attribute__ ((__nothrow__));
- extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__));
- extern double drand48 (void) __attribute__ ((__nothrow__));
- extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern long int lrand48 (void) __attribute__ ((__nothrow__));
- extern long int nrand48 (unsigned short int __xsubi[3])
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern long int mrand48 (void) __attribute__ ((__nothrow__));
- extern long int jrand48 (unsigned short int __xsubi[3])
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern void srand48 (long int __seedval) __attribute__ ((__nothrow__));
- extern unsigned short int *seed48 (unsigned short int __seed16v[3])
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- struct drand48_data
- {
- unsigned short int __x[3];
- unsigned short int __old_x[3];
- unsigned short int __c;
- unsigned short int __init;
- unsigned long long int __a;
- };
- extern int drand48_r (struct drand48_data *__restrict __buffer,
- double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int erand48_r (unsigned short int __xsubi[3],
- struct drand48_data *__restrict __buffer,
- double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int lrand48_r (struct drand48_data *__restrict __buffer,
- long int *__restrict __result)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int nrand48_r (unsigned short int __xsubi[3],
- struct drand48_data *__restrict __buffer,
- long int *__restrict __result)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int mrand48_r (struct drand48_data *__restrict __buffer,
- long int *__restrict __result)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int jrand48_r (unsigned short int __xsubi[3],
- struct drand48_data *__restrict __buffer,
- long int *__restrict __result)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int srand48_r (long int __seedval, struct drand48_data *__buffer)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
- extern int seed48_r (unsigned short int __seed16v[3],
- struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int lcong48_r (unsigned short int __param[7],
- struct drand48_data *__buffer)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
- extern void *calloc (size_t __nmemb, size_t __size)
- __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
- extern void *realloc (void *__ptr, size_t __size)
- __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
- extern void free (void *__ptr) __attribute__ ((__nothrow__));
- extern void cfree (void *__ptr) __attribute__ ((__nothrow__));
- # 1 "/usr/include/alloca.h" 1 3 4
- # 25 "/usr/include/alloca.h" 3 4
- # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 1 3 4
- # 26 "/usr/include/alloca.h" 2 3 4
- extern void *alloca (size_t __size) __attribute__ ((__nothrow__));
- # 498 "/usr/include/stdlib.h" 2 3 4
- extern void *valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
- extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
- extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- # 531 "/usr/include/stdlib.h" 3 4
- 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__));
- # 554 "/usr/include/stdlib.h" 3 4
- extern void _Exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
- 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__)) __attribute__ ((__nonnull__ (1)));
- extern int clearenv (void) __attribute__ ((__nothrow__));
- # 606 "/usr/include/stdlib.h" 3 4
- extern char *mktemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- # 620 "/usr/include/stdlib.h" 3 4
- extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ;
- # 642 "/usr/include/stdlib.h" 3 4
- extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ;
- # 663 "/usr/include/stdlib.h" 3 4
- extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- # 712 "/usr/include/stdlib.h" 3 4
- extern int system (__const char *__command) ;
- # 734 "/usr/include/stdlib.h" 3 4
- extern char *realpath (__const char *__restrict __name,
- char *__restrict __resolved) __attribute__ ((__nothrow__)) ;
- typedef int (*__compar_fn_t) (__const void *, __const void *);
- # 752 "/usr/include/stdlib.h" 3 4
- 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)));
- # 771 "/usr/include/stdlib.h" 3 4
- extern int abs (int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
- extern long int labs (long int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
- __extension__ extern long long int llabs (long 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__)) ;
- __extension__ extern lldiv_t lldiv (long long int __numer,
- long long int __denom)
- __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
- # 808 "/usr/include/stdlib.h" 3 4
- extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt,
- int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
- extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt,
- int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
- extern char *gcvt (double __value, int __ndigit, char *__buf)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ;
- extern char *qecvt (long double __value, int __ndigit,
- int *__restrict __decpt, int *__restrict __sign)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
- extern char *qfcvt (long double __value, int __ndigit,
- int *__restrict __decpt, int *__restrict __sign)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
- extern char *qgcvt (long double __value, int __ndigit, char *__buf)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ;
- extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt,
- int *__restrict __sign, char *__restrict __buf,
- size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
- extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt,
- int *__restrict __sign, char *__restrict __buf,
- size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
- extern int qecvt_r (long double __value, int __ndigit,
- int *__restrict __decpt, int *__restrict __sign,
- char *__restrict __buf, size_t __len)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
- extern int qfcvt_r (long double __value, int __ndigit,
- int *__restrict __decpt, int *__restrict __sign,
- char *__restrict __buf, size_t __len)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
- extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__)) ;
- extern int mbtowc (wchar_t *__restrict __pwc,
- __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)) ;
- extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__)) ;
- extern size_t mbstowcs (wchar_t *__restrict __pwcs,
- __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__));
- extern size_t wcstombs (char *__restrict __s,
- __const wchar_t *__restrict __pwcs, size_t __n)
- __attribute__ ((__nothrow__));
- extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- # 896 "/usr/include/stdlib.h" 3 4
- extern int getsubopt (char **__restrict __optionp,
- char *__const *__restrict __tokens,
- char **__restrict __valuep)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3))) ;
- # 948 "/usr/include/stdlib.h" 3 4
- extern int getloadavg (double __loadavg[], int __nelem)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- # 964 "/usr/include/stdlib.h" 3 4
- # 10 "saphire_debug.h" 2
- # 16 "saphire.h" 2
- typedef struct {
- int mFd;
- char* mBuffer;
- char* mP;
- int mMallocSize;
- } sWFd;
- sWFd* sWFd_new(int fd);
- void sWFd_delete(sWFd* self);
- int sWFd_push_back(sWFd* self, char* str);
- int sWFd_flash(sWFd* self);
- int sWFd_close(sWFd* self);
- typedef struct {
- int mFd;
- string_obj* mBuffer;
- } sRFd;
- sRFd* sRFd_new(int fd);
- sRFd* sRFd_new2(int fd, char* str);
- void sRFd_delete(sRFd* self);
- int sRFd_close(sRFd* self);
- int sRFd_read_all(sRFd* self, string_obj* str);
- int sRFd_read_all_preserve(sRFd* self, string_obj* str);
- int sRFd_read_oneline(sRFd* self, string_obj* str);
- int sRFd_read_oneline_preserve(sRFd* self, string_obj* str);
- int sRFd_read_all_to_buffer(sRFd* self);
- extern enum eKanjiCode gKanjiCode;
- enum eLineField { kLF, kCRLF, kCR };
- extern enum eLineField gLineField;
- enum eAppType { kATOptC, kATXApp, kATCursesApp, kATConsoleApp };
- enum eRuntimeScript { kRSNoRead, kRSSource, kRSObject };
- void saphire_init(enum eAppType app_type, int job_control, enum eRuntimeScript runtime_script, int run_user_runtimescript);
- void saphire_final();
- void saphire_set_signal();
- # 89 "saphire.h"
- void saphire_restore_signal_default();
- extern void (*saphire_set_signal_other)();
- extern string_obj* gErrMsg;
- int saphire_shell(char* command, char* title, sWFd* pipeout, sRFd* pipein, int pipeerr);
- # 105 "saphire.h"
- int saphire_shell3(string_obj* result, char* command, char* title, sRFd* pipein);
- int saphire_load(char* fname, sWFd* pipeout, sRFd* pipein, int pipeerr);
- int saphire_compile(char* fname, char* out_fname);
- int saphire_load_obj(char* fname, sWFd* pipeout, sRFd* pipein, int pipeerr, vector_obj* parent_blocks);
- void saphire_wait_background_job();
- extern void (*saphire_job_done)(int job_num, char* job_title);
- int saphire_job_num();
- char* saphire_job_title(int num);
- void saphire_kill_job(int num);
- void saphire_kill_all_jobs();
- extern vector_obj* gPrograms;
- extern hash_obj* gGlobals;
- extern hash_obj* gArrays;
- extern hash_obj* gHashs;
- void saphire_rehash();
- extern int gKitutukiExit;
- extern void saphire_get_quoted_fname(char* fname, string_obj* quoted_fname);
- typedef int (*fInnerCommand)(int* rcode, vector_obj* argv, vector_obj* blocks, vector_obj* parent_blocks, sWFd* nextout, sRFd* nextin, int nexterr, char* title, int input);
- # 202 "saphire.h"
- void saphire_add_inner_command(char* name, fInnerCommand fun);
- extern volatile int gKitutukiSigInt;
- char* saphire_get_local_var(char* name);
- void saphire_set_local_var(char* name, char* value);
- void saphire_delete_local_var(char* name);
- char* saphire_get_global_var(char* name);
- void saphire_set_global_var(char* name, char* value);
- vector_obj* saphire_get_array(char* name);
- void saphire_set_array(char* name, vector_obj* array);
- hash_obj* saphire_get_hash(char* name);
- typedef struct
- {
- vector_obj* mStatments;
- } sStatments;
- sStatments* sStatments_new();
- void sStatments_delete(sStatments* self);
- int run(sStatments* statments, char* title, sWFd* pipeout, sRFd* pipein, int pipeerr, int finaly_exec, int in_loop, int* return_, vector_obj* blocks);
- int saphire_compile2(char* cmdline, char* fname, sStatments* statments);
- int saphire_run(sStatments* statments, char* title, sWFd* pipeout, sRFd* pipein, int pipeerr);
- # 268 "saphire.h"
- int statment_tree_internal_commands_write_nextout(sWFd* nextout, char* str);
- int statment_tree_internal_commands_read_nextin(sRFd* nextin, string_obj* str);
- int statment_tree_internal_commands_read_nextin_preserve(sRFd* nextin, string_obj* str);
- int statment_tree_internal_commands_read_nextin_oneline(sRFd* nextin, string_obj* str);
- int statment_tree_internal_commands_read_nextin_oneline_preserve(sRFd* nextin, string_obj* str);
- void saphire_sweep();
- # 2 "readline.c" 2
- # 1 "/usr/include/string.h" 1 3 4
- # 29 "/usr/include/string.h" 3 4
- # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 1 3 4
- # 35 "/usr/include/string.h" 2 3 4
- extern void *memcpy (void *__restrict __dest,
- __const void *__restrict __src, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern void *memmove (void *__dest, __const void *__src, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern void *memccpy (void *__restrict __dest, __const void *__restrict __src,
- int __c, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern int memcmp (__const void *__s1, __const void *__s2, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- # 95 "/usr/include/string.h" 3 4
- extern void *memchr (__const void *__s, int __c, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- # 126 "/usr/include/string.h" 3 4
- extern char *strcpy (char *__restrict __dest, __const char *__restrict __src)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern char *strncpy (char *__restrict __dest,
- __const char *__restrict __src, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern char *strcat (char *__restrict __dest, __const char *__restrict __src)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern char *strncat (char *__restrict __dest, __const char *__restrict __src,
- size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int strcmp (__const char *__s1, __const char *__s2)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int strcoll (__const char *__s1, __const char *__s2)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern size_t strxfrm (char *__restrict __dest,
- __const char *__restrict __src, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
- # 165 "/usr/include/string.h" 3 4
- extern int strcoll_l (__const char *__s1, __const char *__s2, __locale_t __l)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
- extern size_t strxfrm_l (char *__dest, __const char *__src, size_t __n,
- __locale_t __l) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));
- extern char *strdup (__const char *__s)
- __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
- extern char *strndup (__const char *__string, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
- # 210 "/usr/include/string.h" 3 4
- # 235 "/usr/include/string.h" 3 4
- extern char *strchr (__const char *__s, int __c)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- # 262 "/usr/include/string.h" 3 4
- extern char *strrchr (__const char *__s, int __c)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- # 281 "/usr/include/string.h" 3 4
- extern size_t strcspn (__const char *__s, __const char *__reject)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern size_t strspn (__const char *__s, __const char *__accept)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- # 314 "/usr/include/string.h" 3 4
- extern char *strpbrk (__const char *__s, __const char *__accept)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- # 342 "/usr/include/string.h" 3 4
- 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)));
- # 397 "/usr/include/string.h" 3 4
- extern size_t strlen (__const char *__s)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern size_t strnlen (__const char *__string, size_t __maxlen)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern char *strerror (int __errnum) __attribute__ ((__nothrow__));
- # 427 "/usr/include/string.h" 3 4
- extern int strerror_r (int __errnum, char *__buf, size_t __buflen) __asm__ ("" "__xpg_strerror_r") __attribute__ ((__nothrow__))
- __attribute__ ((__nonnull__ (2)));
- # 445 "/usr/include/string.h" 3 4
- extern char *strerror_l (int __errnum, __locale_t __l) __attribute__ ((__nothrow__));
- 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)));
- # 489 "/usr/include/string.h" 3 4
- extern char *index (__const char *__s, int __c)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- # 517 "/usr/include/string.h" 3 4
- extern char *rindex (__const char *__s, int __c)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern int ffs (int __i) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
- # 536 "/usr/include/string.h" 3 4
- extern int strcasecmp (__const char *__s1, __const char *__s2)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- # 559 "/usr/include/string.h" 3 4
- extern char *strsep (char **__restrict __stringp,
- __const char *__restrict __delim)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern char *strsignal (int __sig) __attribute__ ((__nothrow__));
- extern char *__stpcpy (char *__restrict __dest, __const char *__restrict __src)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern char *stpcpy (char *__restrict __dest, __const char *__restrict __src)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern char *__stpncpy (char *__restrict __dest,
- __const char *__restrict __src, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern char *stpncpy (char *__restrict __dest,
- __const char *__restrict __src, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- # 634 "/usr/include/string.h" 3 4
- # 1 "/usr/include/bits/string.h" 1 3 4
- # 635 "/usr/include/string.h" 2 3 4
- # 1 "/usr/include/bits/string2.h" 1 3 4
- # 394 "/usr/include/bits/string2.h" 3 4
- extern void *__rawmemchr (const void *__s, int __c);
- # 969 "/usr/include/bits/string2.h" 3 4
- extern __inline size_t __strcspn_c1 (__const char *__s, int __reject);
- extern __inline size_t
- __strcspn_c1 (__const char *__s, int __reject)
- {
- register size_t __result = 0;
- while (__s[__result] != '\0' && __s[__result] != __reject)
- ++__result;
- return __result;
- }
- extern __inline size_t __strcspn_c2 (__const char *__s, int __reject1,
- int __reject2);
- extern __inline size_t
- __strcspn_c2 (__const char *__s, int __reject1, int __reject2)
- {
- register size_t __result = 0;
- while (__s[__result] != '\0' && __s[__result] != __reject1
- && __s[__result] != __reject2)
- ++__result;
- return __result;
- }
- extern __inline size_t __strcspn_c3 (__const char *__s, int __reject1,
- int __reject2, int __reject3);
- extern __inline size_t
- __strcspn_c3 (__const char *__s, int __reject1, int __reject2,
- int __reject3)
- {
- register size_t __result = 0;
- while (__s[__result] != '\0' && __s[__result] != __reject1
- && __s[__result] != __reject2 && __s[__result] != __reject3)
- ++__result;
- return __result;
- }
- # 1045 "/usr/include/bits/string2.h" 3 4
- extern __inline size_t __strspn_c1 (__const char *__s, int __accept);
- extern __inline size_t
- __strspn_c1 (__const char *__s, int __accept)
- {
- register size_t __result = 0;
- while (__s[__result] == __accept)
- ++__result;
- return __result;
- }
- extern __inline size_t __strspn_c2 (__const char *__s, int __accept1,
- int __accept2);
- extern __inline size_t
- __strspn_c2 (__const char *__s, int __accept1, int __accept2)
- {
- register size_t __result = 0;
- while (__s[__result] == __accept1 || __s[__result] == __accept2)
- ++__result;
- return __result;
- }
- extern __inline size_t __strspn_c3 (__const char *__s, int __accept1,
- int __accept2, int __accept3);
- extern __inline size_t
- __strspn_c3 (__const char *__s, int __accept1, int __accept2, int __accept3)
- {
- register size_t __result = 0;
- while (__s[__result] == __accept1 || __s[__result] == __accept2
- || __s[__result] == __accept3)
- ++__result;
- return __result;
- }
- # 1121 "/usr/include/bits/string2.h" 3 4
- extern __inline char *__strpbrk_c2 (__const char *__s, int __accept1,
- int __accept2);
- extern __inline char *
- __strpbrk_c2 (__const char *__s, int __accept1, int __accept2)
- {
- while (*__s != '\0' && *__s != __accept1 && *__s != __accept2)
- ++__s;
- return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s;
- }
- extern __inline char *__strpbrk_c3 (__const char *__s, int __accept1,
- int __accept2, int __accept3);
- extern __inline char *
- __strpbrk_c3 (__const char *__s, int __accept1, int __accept2,
- int __accept3)
- {
- while (*__s != '\0' && *__s != __accept1 && *__s != __accept2
- && *__s != __accept3)
- ++__s;
- return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s;
- }
- # 1172 "/usr/include/bits/string2.h" 3 4
- extern __inline char *__strtok_r_1c (char *__s, char __sep, char **__nextp);
- extern __inline char *
- __strtok_r_1c (char *__s, char __sep, char **__nextp)
- {
- char *__result;
- if (__s == ((void *)0))
- __s = *__nextp;
- while (*__s == __sep)
- ++__s;
- __result = ((void *)0);
- if (*__s != '\0')
- {
- __result = __s++;
- while (*__s != '\0')
- if (*__s++ == __sep)
- {
- __s[-1] = '\0';
- break;
- }
- }
- *__nextp = __s;
- return __result;
- }
- # 1204 "/usr/include/bits/string2.h" 3 4
- extern char *__strsep_g (char **__stringp, __const char *__delim);
- # 1222 "/usr/include/bits/string2.h" 3 4
- extern __inline char *__strsep_1c (char **__s, char __reject);
- extern __inline char *
- __strsep_1c (char **__s, char __reject)
- {
- register char *__retval = *__s;
- if (__retval != ((void *)0) && (*__s = (__extension__ (__builtin_constant_p (__reject) && !__builtin_constant_p (__retval) && (__reject) == '\0' ? (char *) __rawmemchr (__retval, __reject) : __builtin_strchr (__retval, __reject)))) != ((void *)0))
- *(*__s)++ = '\0';
- return __retval;
- }
- extern __inline char *__strsep_2c (char **__s, char __reject1, char __reject2);
- extern __inline char *
- __strsep_2c (char **__s, char __reject1, char __reject2)
- {
- register char *__retval = *__s;
- if (__retval != ((void *)0))
- {
- register char *__cp = __retval;
- while (1)
- {
- if (*__cp == '\0')
- {
- __cp = ((void *)0);
- break;
- }
- if (*__cp == __reject1 || *__cp == __reject2)
- {
- *__cp++ = '\0';
- break;
- }
- ++__cp;
- }
- *__s = __cp;
- }
- return __retval;
- }
- extern __inline char *__strsep_3c (char **__s, char __reject1, char __reject2,
- char __reject3);
- extern __inline char *
- __strsep_3c (char **__s, char __reject1, char __reject2, char __reject3)
- {
- register char *__retval = *__s;
- if (__retval != ((void *)0))
- {
- register char *__cp = __retval;
- while (1)
- {
- if (*__cp == '\0')
- {
- __cp = ((void *)0);
- break;
- }
- if (*__cp == __reject1 || *__cp == __reject2 || *__cp == __reject3)
- {
- *__cp++ = '\0';
- break;
- }
- ++__cp;
- }
- *__s = __cp;
- }
- return __retval;
- }
- # 1303 "/usr/include/bits/string2.h" 3 4
- extern char *__strdup (__const char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
- # 1322 "/usr/include/bits/string2.h" 3 4
- extern char *__strndup (__const char *__string, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
- # 638 "/usr/include/string.h" 2 3 4
- # 646 "/usr/include/string.h" 3 4
- # 3 "readline.c" 2
- # 1 "/usr/include/strings.h" 1 3 4
- # 4 "readline.c" 2
- # 1 "/usr/include/stdio.h" 1 3 4
- # 30 "/usr/include/stdio.h" 3 4
- # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 1 3 4
- # 35 "/usr/include/stdio.h" 2 3 4
- # 75 "/usr/include/stdio.h" 3 4
- # 1 "/usr/include/libio.h" 1 3 4
- # 32 "/usr/include/libio.h" 3 4
- # 1 "/usr/include/_G_config.h" 1 3 4
- # 15 "/usr/include/_G_config.h" 3 4
- # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 1 3 4
- # 16 "/usr/include/_G_config.h" 2 3 4
- # 1 "/usr/include/wchar.h" 1 3 4
- # 21 "/usr/include/_G_config.h" 2 3 4
- typedef struct
- {
- __off_t __pos;
- __mbstate_t __state;
- } _G_fpos_t;
- typedef struct
- {
- __off64_t __pos;
- __mbstate_t __state;
- } _G_fpos64_t;
- # 53 "/usr/include/_G_config.h" 3 4
- typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
- typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
- typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
- typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
- # 33 "/usr/include/libio.h" 2 3 4
- # 170 "/usr/include/libio.h" 3 4
- struct _IO_jump_t; struct _IO_FILE;
- # 180 "/usr/include/libio.h" 3 4
- typedef void _IO_lock_t;
- struct _IO_marker {
- struct _IO_marker *_next;
- struct _IO_FILE *_sbuf;
- int _pos;
- # 203 "/usr/include/libio.h" 3 4
- };
- enum __codecvt_result
- {
- __codecvt_ok,
- __codecvt_partial,
- __codecvt_error,
- __codecvt_noconv
- };
- # 271 "/usr/include/libio.h" 3 4
- struct _IO_FILE {
- int _flags;
- char* _IO_read_ptr;
- char* _IO_read_end;
- char* _IO_read_base;
- char* _IO_write_base;
- char* _IO_write_ptr;
- char* _IO_write_end;
- char* _IO_buf_base;
- char* _IO_buf_end;
- char *_IO_save_base;
- char *_IO_backup_base;
- char *_IO_save_end;
- struct _IO_marker *_markers;
- struct _IO_FILE *_chain;
- int _fileno;
- int _flags2;
- __off_t _old_offset;
- unsigned short _cur_column;
- signed char _vtable_offset;
- char _shortbuf[1];
- _IO_lock_t *_lock;
- # 319 "/usr/include/libio.h" 3 4
- __off64_t _offset;
- # 328 "/usr/include/libio.h" 3 4
- void *__pad1;
- void *__pad2;
- void *__pad3;
- void *__pad4;
- size_t __pad5;
- int _mode;
- char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
- };
- typedef struct _IO_FILE _IO_FILE;
- struct _IO_FILE_plus;
- extern struct _IO_FILE_plus _IO_2_1_stdin_;
- extern struct _IO_FILE_plus _IO_2_1_stdout_;
- extern struct _IO_FILE_plus _IO_2_1_stderr_;
- # 364 "/usr/include/libio.h" 3 4
- typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
- typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf,
- size_t __n);
- typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);
- typedef int __io_close_fn (void *__cookie);
- # 416 "/usr/include/libio.h" 3 4
- extern int __underflow (_IO_FILE *);
- extern int __uflow (_IO_FILE *);
- extern int __overflow (_IO_FILE *, int);
- # 460 "/usr/include/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__));
- # 490 "/usr/include/libio.h" 3 4
- extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
- __gnuc_va_list, int *__restrict);
- extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict,
- __gnuc_va_list);
- extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t);
- 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__));
- # 76 "/usr/include/stdio.h" 2 3 4
- # 109 "/usr/include/stdio.h" 3 4
- typedef _G_fpos_t fpos_t;
- # 161 "/usr/include/stdio.h" 3 4
- # 1 "/usr/include/bits/stdio_lim.h" 1 3 4
- # 162 "/usr/include/stdio.h" 2 3 4
- extern struct _IO_FILE *stdin;
- extern struct _IO_FILE *stdout;
- extern struct _IO_FILE *stderr;
- extern int remove (__const char *__filename) __attribute__ ((__nothrow__));
- extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__));
- extern int renameat (int __oldfd, __const char *__old, int __newfd,
- __const char *__new) __attribute__ ((__nothrow__));
- extern FILE *tmpfile (void) ;
- # 206 "/usr/include/stdio.h" 3 4
- extern char *tmpnam (char *__s) __attribute__ ((__nothrow__)) ;
- extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__)) ;
- # 224 "/usr/include/stdio.h" 3 4
- extern char *tempnam (__const char *__dir, __const char *__pfx)
- __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
- extern int fclose (FILE *__stream);
- extern int fflush (FILE *__stream);
- # 249 "/usr/include/stdio.h" 3 4
- extern int fflush_unlocked (FILE *__stream);
- # 263 "/usr/include/stdio.h" 3 4
- extern FILE *fopen (__const char *__restrict __filename,
- __const char *__restrict __modes) ;
- extern FILE *freopen (__const char *__restrict __filename,
- __const char *__restrict __modes,
- FILE *__restrict __stream) ;
- # 292 "/usr/include/stdio.h" 3 4
- # 303 "/usr/include/stdio.h" 3 4
- extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__)) ;
- # 316 "/usr/include/stdio.h" 3 4
- extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes)
- __attribute__ ((__nothrow__)) ;
- extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __attribute__ ((__nothrow__)) ;
- 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)));
- # 414 "/usr/include/stdio.h" 3 4
- extern int vdprintf (int __fd, __const char *__restrict __fmt,
- __gnuc_va_list __arg)
- __attribute__ ((__format__ (__printf__, 2, 0)));
- extern int dprintf (int __fd, __const char *__restrict __fmt, ...)
- __attribute__ ((__format__ (__printf__, 2, 3)));
- 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__));
- # 445 "/usr/include/stdio.h" 3 4
- extern int fscanf (FILE *__restrict __stream, __const char *__restrict __format, ...) __asm__ ("" "__isoc99_fscanf")
- ;
- extern int scanf (__const char *__restrict __format, ...) __asm__ ("" "__isoc99_scanf")
- ;
- extern int sscanf (__const char *__restrict __s, __const char *__restrict __format, ...) __asm__ ("" "__isoc99_sscanf") __attribute__ ((__nothrow__))
- ;
- # 465 "/usr/include/stdio.h" 3 4
- extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format,
- __gnuc_va_list __arg)
- __attribute__ ((__format__ (__scanf__, 2, 0))) ;
- extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg)
- __attribute__ ((__format__ (__scanf__, 1, 0))) ;
- extern int vsscanf (__const char *__restrict __s,
- __const char *__restrict __format, __gnuc_va_list __arg)
- __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__scanf__, 2, 0)));
- # 496 "/usr/include/stdio.h" 3 4
- extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfscanf")
- __attribute__ ((__format__ (__scanf__, 2, 0))) ;
- extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vscanf")
- __attribute__ ((__format__ (__scanf__, 1, 0))) ;
- extern int vsscanf (__const char *__restrict __s, __const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vsscanf") __attribute__ ((__nothrow__))
- __attribute__ ((__format__ (__scanf__, 2, 0)));
- # 524 "/usr/include/stdio.h" 3 4
- extern int fgetc (FILE *__stream);
- extern int getc (FILE *__stream);
- extern int getchar (void);
- # 552 "/usr/include/stdio.h" 3 4
- extern int getc_unlocked (FILE *__stream);
- extern int getchar_unlocked (void);
- # 563 "/usr/include/stdio.h" 3 4
- extern int fgetc_unlocked (FILE *__stream);
- extern int fputc (int __c, FILE *__stream);
- extern int putc (int __c, FILE *__stream);
- extern int putchar (int __c);
- # 596 "/usr/include/stdio.h" 3 4
- extern int fputc_unlocked (int __c, FILE *__stream);
- extern int putc_unlocked (int __c, FILE *__stream);
- extern int putchar_unlocked (int __c);
- extern int getw (FILE *__stream);
- extern int putw (int __w, FILE *__stream);
- extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
- ;
- extern char *gets (char *__s) ;
- # 658 "/usr/include/stdio.h" 3 4
- extern __ssize_t __getdelim (char **__restrict __lineptr,
- size_t *__restrict __n, int __delimiter,
- FILE *__restrict __stream) ;
- extern __ssize_t getdelim (char **__restrict __lineptr,
- size_t *__restrict __n, int __delimiter,
- FILE *__restrict __stream) ;
- extern __ssize_t getline (char **__restrict __lineptr,
- size_t *__restrict __n,
- FILE *__restrict __stream) ;
- 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) ;
- # 730 "/usr/include/stdio.h" 3 4
- extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
- size_t __n, FILE *__restrict __stream) ;
- extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
- size_t __n, FILE *__restrict __stream) ;
- extern int fseek (FILE *__stream, long int __off, int __whence);
- extern long int ftell (FILE *__stream) ;
- extern void rewind (FILE *__stream);
- # 766 "/usr/include/stdio.h" 3 4
- extern int fseeko (FILE *__stream, __off_t __off, int __whence);
- extern __off_t ftello (FILE *__stream) ;
- # 785 "/usr/include/stdio.h" 3 4
- extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos);
- extern int fsetpos (FILE *__stream, __const fpos_t *__pos);
- # 808 "/usr/include/stdio.h" 3 4
- # 817 "/usr/include/stdio.h" 3 4
- extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__));
- extern int feof (FILE *__stream) __attribute__ ((__nothrow__)) ;
- extern int ferror (FILE *__stream) __attribute__ ((__nothrow__)) ;
- extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
- extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
- extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
- extern void perror (__const char *__s);
- # 1 "/usr/include/bits/sys_errlist.h" 1 3 4
- # 27 "/usr/include/bits/sys_errlist.h" 3 4
- extern int sys_nerr;
- extern __const char *__const sys_errlist[];
- # 847 "/usr/include/stdio.h" 2 3 4
- extern int fileno (FILE *__stream) __attribute__ ((__nothrow__)) ;
- extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
- # 866 "/usr/include/stdio.h" 3 4
- extern FILE *popen (__const char *__command, __const char *__modes) ;
- extern int pclose (FILE *__stream);
- extern char *ctermid (char *__s) __attribute__ ((__nothrow__));
- # 906 "/usr/include/stdio.h" 3 4
- extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__));
- extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__)) ;
- extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__));
- # 927 "/usr/include/stdio.h" 3 4
- # 1 "/usr/include/bits/stdio.h" 1 3 4
- # 36 "/usr/include/bits/stdio.h" 3 4
- extern __inline int
- vprintf (__const char *__restrict __fmt, __gnuc_va_list __arg)
- {
- return vfprintf (stdout, __fmt, __arg);
- }
- extern __inline int
- getchar (void)
- {
- return _IO_getc (stdin);
- }
- extern __inline int
- 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)));
- }
- # 125 "/usr/include/bits/stdio.h" 3 4
- extern __inline int
- __attribute__ ((__nothrow__)) feof_unlocked (FILE *__stream)
- {
- return (((__stream)->_flags & 0x10) != 0);
- }
- extern __inline int
- __attribute__ ((__nothrow__)) ferror_unlocked (FILE *__stream)
- {
- return (((__stream)->_flags & 0x20) != 0);
- }
- # 928 "/usr/include/stdio.h" 2 3 4
- # 936 "/usr/include/stdio.h" 3 4
- # 6 "readline.c" 2
- # 1 "/usr/include/unistd.h" 1 3 4
- # 28 "/usr/include/unistd.h" 3 4
- # 203 "/usr/include/unistd.h" 3 4
- # 1 "/usr/include/bits/posix_opt.h" 1 3 4
- # 204 "/usr/include/unistd.h" 2 3 4
- # 1 "/usr/include/bits/environments.h" 1 3 4
- # 23 "/usr/include/bits/environments.h" 3 4
- # 1 "/usr/include/bits/wordsize.h" 1 3 4
- # 24 "/usr/include/bits/environments.h" 2 3 4
- # 208 "/usr/include/unistd.h" 2 3 4
- # 227 "/usr/include/unistd.h" 3 4
- # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 1 3 4
- # 228 "/usr/include/unistd.h" 2 3 4
- # 256 "/usr/include/unistd.h" 3 4
- typedef __useconds_t useconds_t;
- # 268 "/usr/include/unistd.h" 3 4
- typedef __intptr_t intptr_t;
- typedef __socklen_t socklen_t;
- # 288 "/usr/include/unistd.h" 3 4
- extern int access (__const char *__name, int __type) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- # 305 "/usr/include/unistd.h" 3 4
- extern int faccessat (int __fd, __const char *__file, int __type, int __flag)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))) ;
- # 331 "/usr/include/unistd.h" 3 4
- extern __off_t lseek (int __fd, __off_t __offset, int __whence) __attribute__ ((__nothrow__));
- # 350 "/usr/include/unistd.h" 3 4
- extern int close (int __fd);
- extern ssize_t read (int __fd, void *__buf, size_t __nbytes) ;
- extern ssize_t write (int __fd, __const void *__buf, size_t __n) ;
- # 373 "/usr/include/unistd.h" 3 4
- extern ssize_t pread (int __fd, void *__buf, size_t __nbytes,
- __off_t __offset) ;
- extern ssize_t pwrite (int __fd, __const void *__buf, size_t __n,
- __off_t __offset) ;
- # 414 "/usr/include/unistd.h" 3 4
- extern int pipe (int __pipedes[2]) __attribute__ ((__nothrow__)) ;
- # 429 "/usr/include/unistd.h" 3 4
- extern unsigned int alarm (unsigned int __seconds) __attribute__ ((__nothrow__));
- # 441 "/usr/include/unistd.h" 3 4
- extern unsigned int sleep (unsigned int __seconds);
- extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval)
- __attribute__ ((__nothrow__));
- extern int usleep (__useconds_t __useconds);
- # 466 "/usr/include/unistd.h" 3 4
- extern int pause (void);
- extern int chown (__const char *__file, __uid_t __owner, __gid_t __group)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- extern int fchown (int __fd, __uid_t __owner, __gid_t __group) __attribute__ ((__nothrow__)) ;
- extern int lchown (__const char *__file, __uid_t __owner, __gid_t __group)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- extern int fchownat (int __fd, __const char *__file, __uid_t __owner,
- __gid_t __group, int __flag)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))) ;
- extern int chdir (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- extern int fchdir (int __fd) __attribute__ ((__nothrow__)) ;
- # 508 "/usr/include/unistd.h" 3 4
- extern char *getcwd (char *__buf, size_t __size) __attribute__ ((__nothrow__)) ;
- # 522 "/usr/include/unistd.h" 3 4
- extern char *getwd (char *__buf)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) ;
- extern int dup (int __fd) __attribute__ ((__nothrow__)) ;
- extern int dup2 (int __fd, int __fd2) __attribute__ ((__nothrow__));
- # 540 "/usr/include/unistd.h" 3 4
- extern char **__environ;
- extern int execve (__const char *__path, char *__const __argv[],
- char *__const __envp[]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int fexecve (int __fd, char *__const __argv[], char *__const __envp[])
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
- extern int execv (__const char *__path, char *__const __argv[])
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int execle (__const char *__path, __const char *__arg, ...)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int execl (__const char *__path, __const char *__arg, ...)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int execvp (__const char *__file, char *__const __argv[])
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int execlp (__const char *__file, __const char *__arg, ...)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- # 595 "/usr/include/unistd.h" 3 4
- extern int nice (int __inc) __attribute__ ((__nothrow__)) ;
- extern void _exit (int __status) __attribute__ ((__noreturn__));
- # 1 "/usr/include/bits/confname.h" 1 3 4
- # 26 "/usr/include/bits/confname.h" 3 4
- enum
- {
- _PC_LINK_MAX,
- _PC_MAX_CANON,
- _PC_MAX_INPUT,
- _PC_NAME_MAX,
- _PC_PATH_MAX,
- _PC_PIPE_BUF,
- _PC_CHOWN_RESTRICTED,
- _PC_NO_TRUNC,
- _PC_VDISABLE,
- _PC_SYNC_IO,
- _PC_ASYNC_IO,
- _PC_PRIO_IO,
- _PC_SOCK_MAXBUF,
- _PC_FILESIZEBITS,
- _PC_REC_INCR_XFER_SIZE,
- _PC_REC_MAX_XFER_SIZE,
- _PC_REC_MIN_XFER_SIZE,
- _PC_REC_XFER_ALIGN,
- _PC_ALLOC_SIZE_MIN,
- _PC_SYMLINK_MAX,
- _PC_2_SYMLINKS
- };
- enum
- {
- _SC_ARG_MAX,
- _SC_CHILD_MAX,
- _SC_CLK_TCK,
- _SC_NGROUPS_MAX,
- _SC_OPEN_MAX,
- _SC_STREAM_MAX,
- _SC_TZNAME_MAX,
- _SC_JOB_CONTROL,
- _SC_SAVED_IDS,
- _SC_REALTIME_SIGNALS,
- _SC_PRIORITY_SCHEDULING,
- _SC_TIMERS,
- _SC_ASYNCHRONOUS_IO,
- _SC_PRIORITIZED_IO,
- _SC_SYNCHRONIZED_IO,
- _SC_FSYNC,
- _SC_MAPPED_FILES,
- _SC_MEMLOCK,
- _SC_MEMLOCK_RANGE,
- _SC_MEMORY_PROTECTION,
- _SC_MESSAGE_PASSING,
- _SC_SEMAPHORES,
- _SC_SHARED_MEMORY_OBJECTS,
- _SC_AIO_LISTIO_MAX,
- _SC_AIO_MAX,
- _SC_AIO_PRIO_DELTA_MAX,
- _SC_DELAYTIMER_MAX,
- _SC_MQ_OPEN_MAX,
- _SC_MQ_PRIO_MAX,
- _SC_VERSION,
- _SC_PAGESIZE,
- _SC_RTSIG_MAX,
- _SC_SEM_NSEMS_MAX,
- _SC_SEM_VALUE_MAX,
- _SC_SIGQUEUE_MAX,
- _SC_TIMER_MAX,
- _SC_BC_BASE_MAX,
- _SC_BC_DIM_MAX,
- _SC_BC_SCALE_MAX,
- _SC_BC_STRING_MAX,
- _SC_COLL_WEIGHTS_MAX,
- _SC_EQUIV_CLASS_MAX,
- _SC_EXPR_NEST_MAX,
- _SC_LINE_MAX,
- _SC_RE_DUP_MAX,
- _SC_CHARCLASS_NAME_MAX,
- _SC_2_VERSION,
- _SC_2_C_BIND,
- _SC_2_C_DEV,
- _SC_2_FORT_DEV,
- _SC_2_FORT_RUN,
- _SC_2_SW_DEV,
- _SC_2_LOCALEDEF,
- _SC_PII,
- _SC_PII_XTI,
- _SC_PII_SOCKET,
- _SC_PII_INTERNET,
- _SC_PII_OSI,
- _SC_POLL,
- _SC_SELECT,
- _SC_UIO_MAXIOV,
- _SC_IOV_MAX = _SC_UIO_MAXIOV,
- _SC_PII_INTERNET_STREAM,
- _SC_PII_INTERNET_DGRAM,
- _SC_PII_OSI_COTS,
- _SC_PII_OSI_CLTS,
- _SC_PII_OSI_M,
- _SC_T_IOV_MAX,
- _SC_THREADS,
- _SC_THREAD_SAFE_FUNCTIONS,
- _SC_GETGR_R_SIZE_MAX,
- _SC_GETPW_R_SIZE_MAX,
- _SC_LOGIN_NAME_MAX,
- _SC_TTY_NAME_MAX,
- _SC_THREAD_DESTRUCTOR_ITERATIONS,
- _SC_THREAD_KEYS_MAX,
- _SC_THREAD_STACK_MIN,
- _SC_THREAD_THREADS_MAX,
- _SC_THREAD_ATTR_STACKADDR,
- _SC_THREAD_ATTR_STACKSIZE,
- _SC_THREAD_PRIORITY_SCHEDULING,
- _SC_THREAD_PRIO_INHERIT,
- _SC_THREAD_PRIO_PROTECT,
- _SC_THREAD_PROCESS_SHARED,
- _SC_NPROCESSORS_CONF,
- _SC_NPROCESSORS_ONLN,
- _SC_PHYS_PAGES,
- _SC_AVPHYS_PAGES,
- _SC_ATEXIT_MAX,
- _SC_PASS_MAX,
- _SC_XOPEN_VERSION,
- _SC_XOPEN_XCU_VERSION,
- _SC_XOPEN_UNIX,
- _SC_XOPEN_CRYPT,
- _SC_XOPEN_ENH_I18N,
- _SC_XOPEN_SHM,
- _SC_2_CHAR_TERM,
- _SC_2_C_VERSION,
- _SC_2_UPE,
- _SC_XOPEN_XPG2,
- _SC_XOPEN_XPG3,
- _SC_XOPEN_XPG4,
- _SC_CHAR_BIT,
- _SC_CHAR_MAX,
- _SC_CHAR_MIN,
- _SC_INT_MAX,
- _SC_INT_MIN,
- _SC_LONG_BIT,
- _SC_WORD_BIT,
- _SC_MB_LEN_MAX,
- _SC_NZERO,
- _SC_SSIZE_MAX,
- _SC_SCHAR_MAX,
- _SC_SCHAR_MIN,
- _SC_SHRT_MAX,
- _SC_SHRT_MIN,
- _SC_UCHAR_MAX,
- _SC_UINT_MAX,
- _SC_ULONG_MAX,
- _SC_USHRT_MAX,
- _SC_NL_ARGMAX,
- _SC_NL_LANGMAX,
- _SC_NL_MSGMAX,
- _SC_NL_NMAX,
- _SC_NL_SETMAX,
- _SC_NL_TEXTMAX,
- _SC_XBS5_ILP32_OFF32,
- _SC_XBS5_ILP32_OFFBIG,
- _SC_XBS5_LP64_OFF64,
- _SC_XBS5_LPBIG_OFFBIG,
- _SC_XOPEN_LEGACY,
- _SC_XOPEN_REALTIME,
- _SC_XOPEN_REALTIME_THREADS,
- _SC_ADVISORY_INFO,
- _SC_BARRIERS,
- _SC_BASE,
- _SC_C_LANG_SUPPORT,
- _SC_C_LANG_SUPPORT_R,
- _SC_CLOCK_SELECTION,
- _SC_CPUTIME,
- _SC_THREAD_CPUTIME,
- _SC_DEVICE_IO,
- _SC_DEVICE_SPECIFIC,
- _SC_DEVICE_SPECIFIC_R,
- _SC_FD_MGMT,
- _SC_FIFO,
- _SC_PIPE,
- _SC_FILE_ATTRIBUTES,
- _SC_FILE_LOCKING,
- _SC_FILE_SYSTEM,
- _SC_MONOTONIC_CLOCK,
- _SC_MULTI_PROCESS,
- _SC_SINGLE_PROCESS,
- _SC_NETWORKING,
- _SC_READER_WRITER_LOCKS,
- _SC_SPIN_LOCKS,
- _SC_REGEXP,
- _SC_REGEX_VERSION,
- _SC_SHELL,
- _SC_SIGNALS,
- _SC_SPAWN,
- _SC_SPORADIC_SERVER,
- _SC_THREAD_SPORADIC_SERVER,
- _SC_SYSTEM_DATABASE,
- _SC_SYSTEM_DATABASE_R,
- _SC_TIMEOUTS,
- _SC_TYPED_MEMORY_OBJECTS,
- _SC_USER_GROUPS,
- _SC_USER_GROUPS_R,
- _SC_2_PBS,
- _SC_2_PBS_ACCOUNTING,
- _SC_2_PBS_LOCATE,
- _SC_2_PBS_MESSAGE,
- _SC_2_PBS_TRACK,
- _SC_SYMLOOP_MAX,
- _SC_STREAMS,
- _SC_2_PBS_CHECKPOINT,
- _SC_V6_ILP32_OFF32,
- _SC_V6_ILP32_OFFBIG,
- _SC_V6_LP64_OFF64,
- _SC_V6_LPBIG_OFFBIG,
- _SC_HOST_NAME_MAX,
- _SC_TRACE,
- _SC_TRACE_EVENT_FILTER,
- _SC_TRACE_INHERIT,
- _SC_TRACE_LOG,
- _SC_LEVEL1_ICACHE_SIZE,
- _SC_LEVEL1_ICACHE_ASSOC,
- _SC_LEVEL1_ICACHE_LINESIZE,
- _SC_LEVEL1_DCACHE_SIZE,
- _SC_LEVEL1_DCACHE_ASSOC,
- _SC_LEVEL1_DCACHE_LINESIZE,
- _SC_LEVEL2_CACHE_SIZE,
- _SC_LEVEL2_CACHE_ASSOC,
- _SC_LEVEL2_CACHE_LINESIZE,
- _SC_LEVEL3_CACHE_SIZE,
- _SC_LEVEL3_CACHE_ASSOC,
- _SC_LEVEL3_CACHE_LINESIZE,
- _SC_LEVEL4_CACHE_SIZE,
- _SC_LEVEL4_CACHE_ASSOC,
- _SC_LEVEL4_CACHE_LINESIZE,
- _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50,
- _SC_RAW_SOCKETS,
- _SC_V7_ILP32_OFF32,
- _SC_V7_ILP32_OFFBIG,
- _SC_V7_LP64_OFF64,
- _SC_V7_LPBIG_OFFBIG,
- _SC_SS_REPL_MAX,
- _SC_TRACE_EVENT_NAME_MAX,
- _SC_TRACE_NAME_MAX,
- _SC_TRACE_SYS_MAX,
- _SC_TRACE_USER_EVENT_MAX,
- _SC_XOPEN_STREAMS,
- _SC_THREAD_ROBUST_PRIO_INHERIT,
- _SC_THREAD_ROBUST_PRIO_PROTECT
- };
- enum
- {
- _CS_PATH,
- _CS_V6_WIDTH_RESTRICTED_ENVS,
- _CS_GNU_LIBC_VERSION,
- _CS_GNU_LIBPTHREAD_VERSION,
- _CS_V5_WIDTH_RESTRICTED_ENVS,
- _CS_V7_WIDTH_RESTRICTED_ENVS,
- _CS_LFS_CFLAGS = 1000,
- _CS_LFS_LDFLAGS,
- _CS_LFS_LIBS,
- _CS_LFS_LINTFLAGS,
- _CS_LFS64_CFLAGS,
- _CS_LFS64_LDFLAGS,
- _CS_LFS64_LIBS,
- _CS_LFS64_LINTFLAGS,
- _CS_XBS5_ILP32_OFF32_CFLAGS = 1100,
- _CS_XBS5_ILP32_OFF32_LDFLAGS,
- _CS_XBS5_ILP32_OFF32_LIBS,
- _CS_XBS5_ILP32_OFF32_LINTFLAGS,
- _CS_XBS5_ILP32_OFFBIG_CFLAGS,
- _CS_XBS5_ILP32_OFFBIG_LDFLAGS,
- _CS_XBS5_ILP32_OFFBIG_LIBS,
- _CS_XBS5_ILP32_OFFBIG_LINTFLAGS,
- _CS_XBS5_LP64_OFF64_CFLAGS,
- _CS_XBS5_LP64_OFF64_LDFLAGS,
- _CS_XBS5_LP64_OFF64_LIBS,
- _CS_XBS5_LP64_OFF64_LINTFLAGS,
- _CS_XBS5_LPBIG_OFFBIG_CFLAGS,
- _CS_XBS5_LPBIG_OFFBIG_LDFLAGS,
- _CS_XBS5_LPBIG_OFFBIG_LIBS,
- _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS,
- _CS_POSIX_V6_ILP32_OFF32_CFLAGS,
- _CS_POSIX_V6_ILP32_OFF32_LDFLAGS,
- _CS_POSIX_V6_ILP32_OFF32_LIBS,
- _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS,
- _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS,
- _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS,
- _CS_POSIX_V6_ILP32_OFFBIG_LIBS,
- _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS,
- _CS_POSIX_V6_LP64_OFF64_CFLAGS,
- _CS_POSIX_V6_LP64_OFF64_LDFLAGS,
- _CS_POSIX_V6_LP64_OFF64_LIBS,
- _CS_POSIX_V6_LP64_OFF64_LINTFLAGS,
- _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS,
- _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS,
- _CS_POSIX_V6_LPBIG_OFFBIG_LIBS,
- _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS,
- _CS_POSIX_V7_ILP32_OFF32_CFLAGS,
- _CS_POSIX_V7_ILP32_OFF32_LDFLAGS,
- _CS_POSIX_V7_ILP32_OFF32_LIBS,
- _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS,
- _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS,
- _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS,
- _CS_POSIX_V7_ILP32_OFFBIG_LIBS,
- _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS,
- _CS_POSIX_V7_LP64_OFF64_CFLAGS,
- _CS_POSIX_V7_LP64_OFF64_LDFLAGS,
- _CS_POSIX_V7_LP64_OFF64_LIBS,
- _CS_POSIX_V7_LP64_OFF64_LINTFLAGS,
- _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS,
- _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS,
- _CS_POSIX_V7_LPBIG_OFFBIG_LIBS,
- _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS,
- _CS_V6_ENV,
- _CS_V7_ENV
- };
- # 607 "/usr/include/unistd.h" 2 3 4
- extern long int pathconf (__const char *__path, int __name)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern long int fpathconf (int __fd, int __name) __attribute__ ((__nothrow__));
- extern long int sysconf (int __name) __attribute__ ((__nothrow__));
- extern size_t confstr (int __name, char *__buf, size_t __len) __attribute__ ((__nothrow__));
- extern __pid_t getpid (void) __attribute__ ((__nothrow__));
- extern __pid_t getppid (void) __attribute__ ((__nothrow__));
- extern __pid_t getpgrp (void) __attribute__ ((__nothrow__));
- # 643 "/usr/include/unistd.h" 3 4
- extern __pid_t __getpgid (__pid_t __pid) __attribute__ ((__nothrow__));
- extern __pid_t getpgid (__pid_t __pid) __attribute__ ((__nothrow__));
- extern int setpgid (__pid_t __pid, __pid_t __pgid) __attribute__ ((__nothrow__));
- # 669 "/usr/include/unistd.h" 3 4
- extern int setpgrp (void) __attribute__ ((__nothrow__));
- # 686 "/usr/include/unistd.h" 3 4
- extern __pid_t setsid (void) __attribute__ ((__nothrow__));
- extern __pid_t getsid (__pid_t __pid) __attribute__ ((__nothrow__));
- extern __uid_t getuid (void) __attribute__ ((__nothrow__));
- extern __uid_t geteuid (void) __attribute__ ((__nothrow__));
- extern __gid_t getgid (void) __attribute__ ((__nothrow__));
- extern __gid_t getegid (void) __attribute__ ((__nothrow__));
- extern int getgroups (int __size, __gid_t __list[]) __attribute__ ((__nothrow__)) ;
- # 719 "/usr/include/unistd.h" 3 4
- extern int setuid (__uid_t __uid) __attribute__ ((__nothrow__));
- extern int setreuid (__uid_t __ruid, __uid_t __euid) __attribute__ ((__nothrow__));
- extern int seteuid (__uid_t __uid) __attribute__ ((__nothrow__));
- extern int setgid (__gid_t __gid) __attribute__ ((__nothrow__));
- extern int setregid (__gid_t __rgid, __gid_t __egid) __attribute__ ((__nothrow__));
- extern int setegid (__gid_t __gid) __attribute__ ((__nothrow__));
- # 775 "/usr/include/unistd.h" 3 4
- extern __pid_t fork (void) __attribute__ ((__nothrow__));
- extern __pid_t vfork (void) __attribute__ ((__nothrow__));
- extern char *ttyname (int __fd) __attribute__ ((__nothrow__));
- extern int ttyname_r (int __fd, char *__buf, size_t __buflen)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))) ;
- extern int isatty (int __fd) __attribute__ ((__nothrow__));
- extern int ttyslot (void) __attribute__ ((__nothrow__));
- extern int link (__const char *__from, __const char *__to)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))) ;
- extern int linkat (int __fromfd, __const char *__from, int __tofd,
- __const char *__to, int __flags)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4))) ;
- extern int symlink (__const char *__from, __const char *__to)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))) ;
- extern ssize_t readlink (__const char *__restrict __path,
- char *__restrict __buf, size_t __len)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))) ;
- extern int symlinkat (__const char *__from, int __tofd,
- __const char *__to) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3))) ;
- extern ssize_t readlinkat (int __fd, __const char *__restrict __path,
- char *__restrict __buf, size_t __len)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))) ;
- extern int unlink (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern int unlinkat (int __fd, __const char *__name, int __flag)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
- extern int rmdir (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern __pid_t tcgetpgrp (int __fd) __attribute__ ((__nothrow__));
- extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) __attribute__ ((__nothrow__));
- extern char *getlogin (void);
- extern int getlogin_r (char *__name, size_t __name_len) __attribute__ ((__nonnull__ (1)));
- extern int setlogin (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- # 890 "/usr/include/unistd.h" 3 4
- # 1 "/usr/include/getopt.h" 1 3 4
- # 59 "/usr/include/getopt.h" 3 4
- extern char *optarg;
- # 73 "/usr/include/getopt.h" 3 4
- extern int optind;
- extern int opterr;
- extern int optopt;
- # 152 "/usr/include/getopt.h" 3 4
- extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)
- __attribute__ ((__nothrow__));
- # 891 "/usr/include/unistd.h" 2 3 4
- extern int gethostname (char *__name, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern int sethostname (__const char *__name, size_t __len)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- extern int sethostid (long int __id) __attribute__ ((__nothrow__)) ;
- extern int getdomainname (char *__name, size_t __len)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- extern int setdomainname (__const char *__name, size_t __len)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- extern int vhangup (void) __attribute__ ((__nothrow__));
- extern int revoke (__const char *__file) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- extern int profil (unsigned short int *__sample_buffer, size_t __size,
- size_t __offset, unsigned int __scale)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern int acct (__const char *__name) __attribute__ ((__nothrow__));
- extern char *getusershell (void) __attribute__ ((__nothrow__));
- extern void endusershell (void) __attribute__ ((__nothrow__));
- extern void setusershell (void) __attribute__ ((__nothrow__));
- extern int daemon (int __nochdir, int __noclose) __attribute__ ((__nothrow__)) ;
- extern int chroot (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- extern char *getpass (__const char *__prompt) __attribute__ ((__nonnull__ (1)));
- # 976 "/usr/include/unistd.h" 3 4
- extern int fsync (int __fd);
- extern long int gethostid (void);
- extern void sync (void) __attribute__ ((__nothrow__));
- extern int getpagesize (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
- extern int getdtablesize (void) __attribute__ ((__nothrow__));
- # 1007 "/usr/include/unistd.h" 3 4
- extern int truncate (__const char *__file, __off_t __length)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- # 1026 "/usr/include/unistd.h" 3 4
- extern int ftruncate (int __fd, __off_t __length) __attribute__ ((__nothrow__)) ;
- # 1047 "/usr/include/unistd.h" 3 4
- extern int brk (void *__addr) __attribute__ ((__nothrow__)) ;
- extern void *sbrk (intptr_t __delta) __attribute__ ((__nothrow__));
- # 1068 "/usr/include/unistd.h" 3 4
- extern long int syscall (long int __sysno, ...) __attribute__ ((__nothrow__));
- # 1091 "/usr/include/unistd.h" 3 4
- extern int lockf (int __fd, int __cmd, __off_t __len) ;
- # 1122 "/usr/include/unistd.h" 3 4
- extern int fdatasync (int __fildes);
- # 1151 "/usr/include/unistd.h" 3 4
- extern char *ctermid (char *__s) __attribute__ ((__nothrow__));
- # 1160 "/usr/include/unistd.h" 3 4
- # 7 "readline.c" 2
- # 1 "/usr/include/errno.h" 1 3 4
- # 32 "/usr/include/errno.h" 3 4
- # 1 "/usr/include/bits/errno.h" 1 3 4
- # 25 "/usr/include/bits/errno.h" 3 4
- # 1 "/usr/include/linux/errno.h" 1 3 4
- # 1 "/usr/include/asm/errno.h" 1 3 4
- # 1 "/usr/include/asm-generic/errno.h" 1 3 4
- # 1 "/usr/include/asm-generic/errno-base.h" 1 3 4
- # 5 "/usr/include/asm-generic/errno.h" 2 3 4
- # 1 "/usr/include/asm/errno.h" 2 3 4
- # 5 "/usr/include/linux/errno.h" 2 3 4
- # 26 "/usr/include/bits/errno.h" 2 3 4
- # 47 "/usr/include/bits/errno.h" 3 4
- extern int *__errno_location (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
- # 37 "/usr/include/errno.h" 2 3 4
- # 59 "/usr/include/errno.h" 3 4
- # 8 "readline.c" 2
- # 1 "/usr/include/fcntl.h" 1 3 4
- # 30 "/usr/include/fcntl.h" 3 4
- # 1 "/usr/include/bits/fcntl.h" 1 3 4
- # 26 "/usr/include/bits/fcntl.h" 3 4
- # 1 "/usr/include/bits/wordsize.h" 1 3 4
- # 27 "/usr/include/bits/fcntl.h" 2 3 4
- # 165 "/usr/include/bits/fcntl.h" 3 4
- struct flock
- {
- short int l_type;
- short int l_whence;
- __off_t l_start;
- __off_t l_len;
- __pid_t l_pid;
- };
- # 250 "/usr/include/bits/fcntl.h" 3 4
- # 295 "/usr/include/bits/fcntl.h" 3 4
- # 35 "/usr/include/fcntl.h" 2 3 4
- # 1 "/usr/include/time.h" 1 3 4
- # 41 "/usr/include/fcntl.h" 2 3 4
- # 1 "/usr/include/bits/stat.h" 1 3 4
- # 46 "/usr/include/bits/stat.h" 3 4
- struct stat
- {
- __dev_t st_dev;
- __ino_t st_ino;
- __nlink_t st_nlink;
- __mode_t st_mode;
- __uid_t st_uid;
- __gid_t st_gid;
- int __pad0;
- __dev_t st_rdev;
- __off_t st_size;
- __blksize_t st_blksize;
- __blkcnt_t st_blocks;
- # 91 "/usr/include/bits/stat.h" 3 4
- struct timespec st_atim;
- struct timespec st_mtim;
- struct timespec st_ctim;
- # 106 "/usr/include/bits/stat.h" 3 4
- long int __unused[3];
- # 115 "/usr/include/bits/stat.h" 3 4
- };
- # 42 "/usr/include/fcntl.h" 2 3 4
- # 122 "/usr/include/fcntl.h" 3 4
- extern int fcntl (int __fd, int __cmd, ...);
- # 131 "/usr/include/fcntl.h" 3 4
- extern int open (__const char *__file, int __oflag, ...) __attribute__ ((__nonnull__ (1)));
- # 155 "/usr/include/fcntl.h" 3 4
- extern int openat (int __fd, __const char *__file, int __oflag, ...)
- __attribute__ ((__nonnull__ (2)));
- # 177 "/usr/include/fcntl.h" 3 4
- extern int creat (__const char *__file, __mode_t __mode) __attribute__ ((__nonnull__ (1)));
- # 223 "/usr/include/fcntl.h" 3 4
- extern int posix_fadvise (int __fd, __off_t __offset, __off_t __len,
- int __advise) __attribute__ ((__nothrow__));
- # 245 "/usr/include/fcntl.h" 3 4
- extern int posix_fallocate (int __fd, __off_t __offset, __off_t __len);
- # 267 "/usr/include/fcntl.h" 3 4
- # 9 "readline.c" 2
- # 1 "/usr/include/libgen.h" 1 3 4
- # 24 "/usr/include/libgen.h" 3 4
- extern char *dirname (char *__path) __attribute__ ((__nothrow__));
- extern char *__xpg_basename (char *__path) __attribute__ ((__nothrow__));
- # 10 "readline.c" 2
- # 1 "/usr/include/dirent.h" 1 3 4
- # 28 "/usr/include/dirent.h" 3 4
- # 62 "/usr/include/dirent.h" 3 4
- # 1 "/usr/include/bits/dirent.h" 1 3 4
- # 23 "/usr/include/bits/dirent.h" 3 4
- struct dirent
- {
- __ino_t d_ino;
- __off_t d_off;
- unsigned short int d_reclen;
- unsigned char d_type;
- char d_name[256];
- };
- # 63 "/usr/include/dirent.h" 2 3 4
- # 98 "/usr/include/dirent.h" 3 4
- enum
- {
- DT_UNKNOWN = 0,
- DT_FIFO = 1,
- DT_CHR = 2,
- DT_DIR = 4,
- DT_BLK = 6,
- DT_REG = 8,
- DT_LNK = 10,
- DT_SOCK = 12,
- DT_WHT = 14
- };
- # 128 "/usr/include/dirent.h" 3 4
- typedef struct __dirstream DIR;
- extern DIR *opendir (__const char *__name) __attribute__ ((__nonnull__ (1)));
- extern DIR *fdopendir (int __fd);
- extern int closedir (DIR *__dirp) __attribute__ ((__nonnull__ (1)));
- # 163 "/usr/include/dirent.h" 3 4
- extern struct dirent *readdir (DIR *__dirp) __attribute__ ((__nonnull__ (1)));
- # 184 "/usr/include/dirent.h" 3 4
- extern int readdir_r (DIR *__restrict __dirp,
- struct dirent *__restrict __entry,
- struct dirent **__restrict __result)
- __attribute__ ((__nonnull__ (1, 2, 3)));
- # 209 "/usr/include/dirent.h" 3 4
- extern void rewinddir (DIR *__dirp) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern void seekdir (DIR *__dirp, long int __pos) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern long int telldir (DIR *__dirp) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern int dirfd (DIR *__dirp) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- # 233 "/usr/include/dirent.h" 3 4
- # 1 "/usr/include/bits/posix1_lim.h" 1 3 4
- # 157 "/usr/include/bits/posix1_lim.h" 3 4
- # 1 "/usr/include/bits/local_lim.h" 1 3 4
- # 39 "/usr/include/bits/local_lim.h" 3 4
- # 1 "/usr/include/linux/limits.h" 1 3 4
- # 40 "/usr/include/bits/local_lim.h" 2 3 4
- # 158 "/usr/include/bits/posix1_lim.h" 2 3 4
- # 234 "/usr/include/dirent.h" 2 3 4
- # 245 "/usr/include/dirent.h" 3 4
- # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 1 3 4
- # 246 "/usr/include/dirent.h" 2 3 4
- extern int scandir (__const char *__restrict __dir,
- struct dirent ***__restrict __namelist,
- int (*__selector) (__const struct dirent *),
- int (*__cmp) (__const struct dirent **,
- __const struct dirent **))
- __attribute__ ((__nonnull__ (1, 2)));
- # 285 "/usr/include/dirent.h" 3 4
- extern int alphasort (__const struct dirent **__e1,
- __const struct dirent **__e2)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- # 313 "/usr/include/dirent.h" 3 4
- extern __ssize_t getdirentries (int __fd, char *__restrict __buf,
- size_t __nbytes,
- __off_t *__restrict __basep)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));
- # 362 "/usr/include/dirent.h" 3 4
- # 11 "readline.c" 2
- # 1 "/usr/include/readline/readline.h" 1 3 4
- # 35 "/usr/include/readline/readline.h" 3 4
- # 1 "/usr/include/readline/rlstdc.h" 1 3 4
- # 36 "/usr/include/readline/readline.h" 2 3 4
- # 1 "/usr/include/readline/rltypedefs.h" 1 3 4
- # 34 "/usr/include/readline/rltypedefs.h" 3 4
- typedef int Function ();
- typedef void VFunction ();
- typedef char *CPFunction ();
- typedef char **CPPFunction ();
- # 47 "/usr/include/readline/rltypedefs.h" 3 4
- typedef int rl_command_func_t (int, int);
- typedef char *rl_compentry_func_t (const char *, int);
- typedef char **rl_completion_func_t (const char *, int, int);
- typedef char *rl_quote_func_t (char *, int, char *);
- typedef char *rl_dequote_func_t (char *, int);
- typedef int rl_compignore_func_t (char **);
- typedef void rl_compdisp_func_t (char **, int, int);
- typedef int rl_hook_func_t (void);
- typedef int rl_getc_func_t (FILE *);
- typedef int rl_linebuf_func_t (char *, int);
- typedef int rl_intfunc_t (int);
- typedef int rl_icpfunc_t (char *);
- typedef int rl_icppfunc_t (char **);
- typedef void rl_voidfunc_t (void);
- typedef void rl_vintfunc_t (int);
- typedef void rl_vcpfunc_t (char *);
- typedef void rl_vcppfunc_t (char **);
- typedef char *rl_cpvfunc_t (void);
- typedef char *rl_cpifunc_t (int);
- typedef char *rl_cpcpfunc_t (char *);
- typedef char *rl_cpcppfunc_t (char **);
- # 37 "/usr/include/readline/readline.h" 2 3 4
- # 1 "/usr/include/readline/keymaps.h" 1 3 4
- # 35 "/usr/include/readline/keymaps.h" 3 4
- # 1 "/usr/include/readline/chardefs.h" 1 3 4
- # 25 "/usr/include/readline/chardefs.h" 3 4
- # 1 "/usr/include/ctype.h" 1 3 4
- # 30 "/usr/include/ctype.h" 3 4
- # 48 "/usr/include/ctype.h" 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/ctype.h" 3 4
- extern __const unsigned short int **__ctype_b_loc (void)
- __attribute__ ((__nothrow__)) __attribute__ ((__const));
- extern __const __int32_t **__ctype_tolower_loc (void)
- __attribute__ ((__nothrow__)) __attribute__ ((__const));
- extern __const __int32_t **__ctype_toupper_loc (void)
- __attribute__ ((__nothrow__)) __attribute__ ((__const));
- # 96 "/usr/include/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__));
- extern int isblank (int) __attribute__ ((__nothrow__));
- # 142 "/usr/include/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/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;
- }
- # 247 "/usr/include/ctype.h" 3 4
- extern int isalnum_l (int, __locale_t) __attribute__ ((__nothrow__));
- extern int isalpha_l (int, __locale_t) __attribute__ ((__nothrow__));
- extern int iscntrl_l (int, __locale_t) __attribute__ ((__nothrow__));
- extern int isdigit_l (int, __locale_t) __attribute__ ((__nothrow__));
- extern int islower_l (int, __locale_t) __attribute__ ((__nothrow__));
- extern int isgraph_l (int, __locale_t) __attribute__ ((__nothrow__));
- extern int isprint_l (int, __locale_t) __attribute__ ((__nothrow__));
- extern int ispunct_l (int, __locale_t) __attribute__ ((__nothrow__));
- extern int isspace_l (int, __locale_t) __attribute__ ((__nothrow__));
- extern int isupper_l (int, __locale_t) __attribute__ ((__nothrow__));
- extern int isxdigit_l (int, __locale_t) __attribute__ ((__nothrow__));
- extern int isblank_l (int, __locale_t) __attribute__ ((__nothrow__));
- extern int __tolower_l (int __c, __locale_t __l) __attribute__ ((__nothrow__));
- extern int tolower_l (int __c, __locale_t __l) __attribute__ ((__nothrow__));
- extern int __toupper_l (int __c, __locale_t __l) __attribute__ ((__nothrow__));
- extern int toupper_l (int __c, __locale_t __l) __attribute__ ((__nothrow__));
- # 323 "/usr/include/ctype.h" 3 4
- # 26 "/usr/include/readline/chardefs.h" 2 3 4
- # 36 "/usr/include/readline/keymaps.h" 2 3 4
- # 44 "/usr/include/readline/keymaps.h" 3 4
- typedef struct _keymap_entry {
- char type;
- rl_command_func_t *function;
- } KEYMAP_ENTRY;
- # 60 "/usr/include/readline/keymaps.h" 3 4
- typedef KEYMAP_ENTRY KEYMAP_ENTRY_ARRAY[257];
- typedef KEYMAP_ENTRY *Keymap;
- extern KEYMAP_ENTRY_ARRAY emacs_standard_keymap, emacs_meta_keymap, emacs_ctlx_keymap;
- extern KEYMAP_ENTRY_ARRAY vi_insertion_keymap, vi_movement_keymap;
- extern Keymap rl_make_bare_keymap (void);
- extern Keymap rl_copy_keymap (Keymap);
- extern Keymap rl_make_keymap (void);
- extern void rl_discard_keymap (Keymap);
- extern Keymap rl_get_keymap_by_name (const char *);
- extern Keymap rl_get_keymap (void);
- extern void rl_set_keymap (Keymap);
- # 38 "/usr/include/readline/readline.h" 2 3 4
- # 1 "/usr/include/readline/tilde.h" 1 3 4
- # 42 "/usr/include/readline/tilde.h" 3 4
- typedef char *tilde_hook_func_t (char *);
- extern tilde_hook_func_t *tilde_expansion_preexpansion_hook;
- extern tilde_hook_func_t *tilde_expansion_failure_hook;
- extern char **tilde_additional_prefixes;
- extern char **tilde_additional_suffixes;
- extern char *tilde_expand (const char *);
- extern char *tilde_expand_word (const char *);
- extern char *tilde_find_word (const char *, int, int *);
- # 39 "/usr/include/readline/readline.h" 2 3 4
- # 54 "/usr/include/readline/readline.h" 3 4
- enum undo_code { UNDO_DELETE, UNDO_INSERT, UNDO_BEGIN, UNDO_END };
- typedef struct undo_list {
- struct undo_list *next;
- int start, end;
- char *text;
- enum undo_code what;
- } UNDO_LIST;
- extern UNDO_LIST *rl_undo_list;
- typedef struct _funmap {
- const char *name;
- rl_command_func_t *function;
- } FUNMAP;
- extern FUNMAP **funmap;
- # 82 "/usr/include/readline/readline.h" 3 4
- extern int rl_digit_argument (int, int);
- extern int rl_universal_argument (int, int);
- extern int rl_forward_byte (int, int);
- extern int rl_forward_char (int, int);
- extern int rl_forward (int, int);
- extern int rl_backward_byte (int, int);
- extern int rl_backward_char (int, int);
- extern int rl_backward (int, int);
- extern int rl_beg_of_line (int, int);
- extern int rl_end_of_line (int, int);
- extern int rl_forward_word (int, int);
- extern int rl_backward_word (int, int);
- extern int rl_refresh_line (int, int);
- extern int rl_clear_screen (int, int);
- extern int rl_skip_csi_sequence (int, int);
- extern int rl_arrow_keys (int, int);
- extern int rl_insert (int, int);
- extern int rl_quoted_insert (int, int);
- extern int rl_tab_insert (int, int);
- extern int rl_newline (int, int);
- extern int rl_do_lowercase_version (int, int);
- extern int rl_rubout (int, int);
- extern int rl_delete (int, int);
- extern int rl_rubout_or_delete (int, int);
- extern int rl_delete_horizontal_space (int, int);
- extern int rl_delete_or_show_completions (int, int);
- extern int rl_insert_comment (int, int);
- extern int rl_upcase_word (int, int);
- extern int rl_downcase_word (int, int);
- extern int rl_capitalize_word (int, int);
- extern int rl_transpose_words (int, int);
- extern int rl_transpose_chars (int, int);
- extern int rl_char_search (int, int);
- extern int rl_backward_char_search (int, int);
- extern int rl_beginning_of_history (int, int);
- extern int rl_end_of_history (int, int);
- extern int rl_get_next_history (int, int);
- extern int rl_get_previous_history (int, int);
- extern int rl_set_mark (int, int);
- extern int rl_exchange_point_and_mark (int, int);
- extern int rl_vi_editing_mode (int, int);
- extern int rl_emacs_editing_mode (int, int);
- extern int rl_overwrite_mode (int, int);
- extern int rl_re_read_init_file (int, int);
- extern int rl_dump_functions (int, int);
- extern int rl_dump_macros (int, int);
- extern int rl_dump_variables (int, int);
- extern int rl_complete (int, int);
- extern int rl_possible_completions (int, int);
- extern int rl_insert_completions (int, int);
- extern int rl_old_menu_complete (int, int);
- extern int rl_menu_complete (int, int);
- extern int rl_backward_menu_complete (int, int);
- extern int rl_kill_word (int, int);
- extern int rl_backward_kill_word (int, int);
- extern int rl_kill_line (int, int);
- extern int rl_backward_kill_line (int, int);
- extern int rl_kill_full_line (int, int);
- extern int rl_unix_word_rubout (int, int);
- extern int rl_unix_filename_rubout (int, int);
- extern int rl_unix_line_discard (int, int);
- extern int rl_copy_region_to_kill (int, int);
- extern int rl_kill_region (int, int);
- extern int rl_copy_forward_word (int, int);
- extern int rl_copy_backward_word (int, int);
- extern int rl_yank (int, int);
- extern int rl_yank_pop (int, int);
- extern int rl_yank_nth_arg (int, int);
- extern int rl_yank_last_arg (int, int);
- extern int rl_reverse_search_history (int, int);
- extern int rl_forward_search_history (int, int);
- extern int rl_start_kbd_macro (int, int);
- extern int rl_end_kbd_macro (int, int);
- extern int rl_call_last_kbd_macro (int, int);
- extern int rl_revert_line (int, int);
- extern int rl_undo_command (int, int);
- extern int rl_tilde_expand (int, int);
- extern int rl_restart_output (int, int);
- extern int rl_stop_output (int, int);
- extern int rl_abort (int, int);
- extern int rl_tty_status (int, int);
- extern int rl_history_search_forward (int, int);
- extern int rl_history_search_backward (int, int);
- extern int rl_noninc_forward_search (int, int);
- extern int rl_noninc_reverse_search (int, int);
- extern int rl_noninc_forward_search_again (int, int);
- extern int rl_noninc_reverse_search_again (int, int);
- extern int rl_insert_close (int, int);
- extern void rl_callback_handler_install (const char *, rl_vcpfunc_t *);
- extern void rl_callback_read_char (void);
- extern void rl_callback_handler_remove (void);
- extern int rl_vi_redo (int, int);
- extern int rl_vi_undo (int, int);
- extern int rl_vi_yank_arg (int, int);
- extern int rl_vi_fetch_history (int, int);
- extern int rl_vi_search_again (int, int);
- extern int rl_vi_search (int, int);
- extern int rl_vi_complete (int, int);
- extern int rl_vi_tilde_expand (int, int);
- extern int rl_vi_prev_word (int, int);
- extern int rl_vi_next_word (int, int);
- extern int rl_vi_end_word (int, int);
- extern int rl_vi_insert_beg (int, int);
- extern int rl_vi_append_mode (int, int);
- extern int rl_vi_append_eol (int, int);
- extern int rl_vi_eof_maybe (int, int);
- extern int rl_vi_insertion_mode (int, int);
- extern int rl_vi_insert_mode (int, int);
- extern int rl_vi_movement_mode (int, int);
- extern int rl_vi_arg_digit (int, int);
- extern int rl_vi_change_case (int, int);
- extern int rl_vi_put (int, int);
- extern int rl_vi_column (int, int);
- extern int rl_vi_delete_to (int, int);
- extern int rl_vi_change_to (int, int);
- extern int rl_vi_yank_to (int, int);
- extern int rl_vi_rubout (int, int);
- extern int rl_vi_delete (int, int);
- extern int rl_vi_back_to_indent (int, int);
- extern int rl_vi_first_print (int, int);
- extern int rl_vi_char_search (int, int);
- extern int rl_vi_match (int, int);
- extern int rl_vi_change_char (int, int);
- extern int rl_vi_subst (int, int);
- extern int rl_vi_overstrike (int, int);
- extern int rl_vi_overstrike_delete (int, int);
- extern int rl_vi_replace (int, int);
- extern int rl_vi_set_mark (int, int);
- extern int rl_vi_goto_mark (int, int);
- extern int rl_vi_check (void);
- extern int rl_vi_domove (int, int *);
- extern int rl_vi_bracktype (int);
- extern void rl_vi_start_inserting (int, int, int);
- extern int rl_vi_fWord (int, int);
- extern int rl_vi_bWord (int, int);
- extern int rl_vi_eWord (int, int);
- extern int rl_vi_fword (int, int);
- extern int rl_vi_bword (int, int);
- extern int rl_vi_eword (int, int);
- # 284 "/usr/include/readline/readline.h" 3 4
- extern char *readline (const char *);
- extern int rl_set_prompt (const char *);
- extern int rl_expand_prompt (char *);
- extern int rl_initialize (void);
- extern int rl_discard_argument (void);
- extern int rl_add_defun (const char *, rl_command_func_t *, int);
- extern int rl_bind_key (int, rl_command_func_t *);
- extern int rl_bind_key_in_map (int, rl_command_func_t *, Keymap);
- extern int rl_unbind_key (int);
- extern int rl_unbind_key_in_map (int, Keymap);
- extern int rl_bind_key_if_unbound (int, rl_command_func_t *);
- extern int rl_bind_key_if_unbound_in_map (int, rl_command_func_t *, Keymap);
- extern int rl_unbind_function_in_map (rl_command_func_t *, Keymap);
- extern int rl_unbind_command_in_map (const char *, Keymap);
- extern int rl_bind_keyseq (const char *, rl_command_func_t *);
- extern int rl_bind_keyseq_in_map (const char *, rl_command_func_t *, Keymap);
- extern int rl_bind_keyseq_if_unbound (const char *, rl_command_func_t *);
- extern int rl_bind_keyseq_if_unbound_in_map (const char *, rl_command_func_t *, Keymap);
- extern int rl_generic_bind (int, const char *, char *, Keymap);
- extern char *rl_variable_value (const char *);
- extern int rl_variable_bind (const char *, const char *);
- extern int rl_set_key (const char *, rl_command_func_t *, Keymap);
- extern int rl_macro_bind (const char *, const char *, Keymap);
- extern int rl_translate_keyseq (const char *, char *, int *);
- extern char *rl_untranslate_keyseq (int);
- extern rl_command_func_t *rl_named_function (const char *);
- extern rl_command_func_t *rl_function_of_keyseq (const char *, Keymap, int *);
- extern void rl_list_funmap_names (void);
- extern char **rl_invoking_keyseqs_in_map (rl_command_func_t *, Keymap);
- extern char **rl_invoking_keyseqs (rl_command_func_t *);
- extern void rl_function_dumper (int);
- extern void rl_macro_dumper (int);
- extern void rl_variable_dumper (int);
- extern int rl_read_init_file (const char *);
- extern int rl_parse_and_bind (char *);
- extern Keymap rl_make_bare_keymap (void);
- extern Keymap rl_copy_keymap (Keymap);
- extern Keymap rl_make_keymap (void);
- extern void rl_discard_keymap (Keymap);
- extern Keymap rl_get_keymap_by_name (const char *);
- extern char *rl_get_keymap_name (Keymap);
- extern void rl_set_keymap (Keymap);
- extern Keymap rl_get_keymap (void);
- extern void rl_set_keymap_from_edit_mode (void);
- extern char *rl_get_keymap_name_from_edit_mode (void);
- extern int rl_add_funmap_entry (const char *, rl_command_func_t *);
- extern const char **rl_funmap_names (void);
- extern void rl_initialize_funmap (void);
- extern void rl_push_macro_input (char *);
- extern void rl_add_undo (enum undo_code, int, int, char *);
- extern void rl_free_undo_list (void);
- extern int rl_do_undo (void);
- extern int rl_begin_undo_group (void);
- extern int rl_end_undo_group (void);
- extern int rl_modifying (int, int);
- extern void rl_redisplay (void);
- extern int rl_on_new_line (void);
- extern int rl_on_new_line_with_prompt (void);
- extern int rl_forced_update_display (void);
- extern int rl_clear_message (void);
- extern int rl_reset_line_state (void);
- extern int rl_crlf (void);
- extern int rl_message ();
- extern int rl_show_char (int);
- extern int rl_character_len (int, int);
- extern void rl_save_prompt (void);
- extern void rl_restore_prompt (void);
- extern void rl_replace_line (const char *, int);
- extern int rl_insert_text (const char *);
- extern int rl_delete_text (int, int);
- extern int rl_kill_text (int, int);
- extern char *rl_copy_text (int, int);
- extern void rl_prep_terminal (int);
- extern void rl_deprep_terminal (void);
- extern void rl_tty_set_default_bindings (Keymap);
- extern void rl_tty_unset_default_bindings (Keymap);
- extern int rl_reset_terminal (const char *);
- extern void rl_resize_terminal (void);
- extern void rl_set_screen_size (int, int);
- extern void rl_get_screen_size (int *, int *);
- extern void rl_reset_screen_size (void);
- extern char *rl_get_termcap (const char *);
- extern int rl_stuff_char (int);
- extern int rl_execute_next (int);
- extern int rl_clear_pending_input (void);
- extern int rl_read_key (void);
- extern int rl_getc (FILE *);
- extern int rl_set_keyboard_input_timeout (int);
- extern void rl_extend_line_buffer (int);
- extern int rl_ding (void);
- extern int rl_alphabetic (int);
- extern void rl_free (void *);
- extern int rl_set_signals (void);
- extern int rl_clear_signals (void);
- extern void rl_cleanup_after_signal (void);
- extern void rl_reset_after_signal (void);
- extern void rl_free_line_state (void);
- extern void rl_echo_signal_char (int);
- extern int rl_set_paren_blink_timeout (int);
- extern int rl_maybe_save_line (void);
- extern int rl_maybe_unsave_line (void);
- extern int rl_maybe_replace_line (void);
- extern int rl_complete_internal (int);
- extern void rl_display_match_list (char **, int, int);
- extern char **rl_completion_matches (const char *, rl_compentry_func_t *);
- extern char *rl_username_completion_function (const char *, int);
- extern char *rl_filename_completion_function (const char *, int);
- extern int rl_completion_mode (rl_command_func_t *);
- # 477 "/usr/include/readline/readline.h" 3 4
- extern const char *rl_library_version;
- extern int rl_readline_version;
- extern int rl_gnu_readline_p;
- extern int rl_readline_state;
- extern int rl_editing_mode;
- extern int rl_insert_mode;
- extern const char *rl_readline_name;
- extern char *rl_prompt;
- extern char *rl_display_prompt;
- extern char *rl_line_buffer;
- extern int rl_point;
- extern int rl_end;
- extern int rl_mark;
- extern int rl_done;
- extern int rl_pending_input;
- extern int rl_dispatching;
- extern int rl_explicit_arg;
- extern int rl_numeric_arg;
- extern rl_command_func_t *rl_last_func;
- extern const char *rl_terminal_name;
- extern FILE *rl_instream;
- extern FILE *rl_outstream;
- extern int rl_prefer_env_winsize;
- extern rl_hook_func_t *rl_startup_hook;
- extern rl_hook_func_t *rl_pre_input_hook;
- extern rl_hook_func_t *rl_event_hook;
- extern rl_getc_func_t *rl_getc_function;
- extern rl_voidfunc_t *rl_redisplay_function;
- extern rl_vintfunc_t *rl_prep_term_function;
- extern rl_voidfunc_t *rl_deprep_term_function;
- extern Keymap rl_executing_keymap;
- extern Keymap rl_binding_keymap;
- extern int rl_erase_empty_line;
- extern int rl_already_prompted;
- extern int rl_num_chars_to_read;
- extern char *rl_executing_macro;
- extern int rl_catch_signals;
- extern int rl_catch_sigwinch;
- extern rl_compentry_func_t *rl_completion_entry_function;
- extern rl_compentry_func_t *rl_menu_completion_entry_function;
- extern rl_compignore_func_t *rl_ignore_some_completions_function;
- # 631 "/usr/include/readline/readline.h" 3 4
- extern rl_completion_func_t *rl_attempted_completion_function;
- extern const char *rl_basic_word_break_characters;
- extern char *rl_completer_word_break_characters;
- extern rl_cpvfunc_t *rl_completion_word_break_hook;
- extern const char *rl_completer_quote_characters;
- extern const char *rl_basic_quote_characters;
- extern const char *rl_filename_quote_characters;
- extern const char *rl_special_prefixes;
- extern rl_icppfunc_t *rl_directory_completion_hook;
- # 679 "/usr/include/readline/readline.h" 3 4
- extern rl_icppfunc_t *rl_directory_rewrite_hook;
- # 690 "/usr/include/readline/readline.h" 3 4
- extern rl_dequote_func_t *rl_filename_rewrite_hook;
- # 702 "/usr/include/readline/readline.h" 3 4
- extern rl_compdisp_func_t *rl_completion_display_matches_hook;
- extern int rl_filename_completion_desired;
- extern int rl_filename_quoting_desired;
- extern rl_quote_func_t *rl_filename_quoting_function;
- extern rl_dequote_func_t *rl_filename_dequoting_function;
- extern rl_linebuf_func_t *rl_char_is_quoted_p;
- extern int rl_attempted_completion_over;
- extern int rl_completion_type;
- extern int rl_completion_invoking_key;
- extern int rl_completion_query_items;
- extern int rl_completion_append_character;
- extern int rl_completion_suppress_append;
- extern int rl_completion_quote_character;
- extern int rl_completion_found_quote;
- extern int rl_completion_suppress_quote;
- extern int rl_sort_completion_matches;
- # 782 "/usr/include/readline/readline.h" 3 4
- extern int rl_completion_mark_symlink_dirs;
- extern int rl_ignore_completion_duplicates;
- extern int rl_inhibit_completion;
- # 839 "/usr/include/readline/readline.h" 3 4
- struct readline_state {
- int point;
- int end;
- int mark;
- char *buffer;
- int buflen;
- UNDO_LIST *ul;
- char *prompt;
- int rlstate;
- int done;
- Keymap kmap;
- rl_command_func_t *lastfunc;
- int insmode;
- int edmode;
- int kseqlen;
- FILE *inf;
- FILE *outf;
- int pendingin;
- char *macro;
- int catchsigs;
- int catchsigwinch;
- # 875 "/usr/include/readline/readline.h" 3 4
- char reserved[64];
- };
- extern int rl_save_state (struct readline_state *);
- extern int rl_restore_state (struct readline_state *);
- # 12 "readline.c" 2
- # 1 "/usr/include/readline/history.h" 1 3 4
- # 29 "/usr/include/readline/history.h" 3 4
- # 1 "/usr/include/time.h" 1 3 4
- # 30 "/usr/include/time.h" 3 4
- # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 1 3 4
- # 39 "/usr/include/time.h" 2 3 4
- # 1 "/usr/include/bits/time.h" 1 3 4
- # 43 "/usr/include/time.h" 2 3 4
- # 131 "/usr/include/time.h" 3 4
- struct tm
- {
- int tm_sec;
- int tm_min;
- int tm_hour;
- int tm_mday;
- int tm_mon;
- int tm_year;
- int tm_wday;
- int tm_yday;
- int tm_isdst;
- long int tm_gmtoff;
- __const char *tm_zone;
- };
- struct itimerspec
- {
- struct timespec it_interval;
- struct timespec it_value;
- };
- struct sigevent;
- # 180 "/usr/include/time.h" 3 4
- extern clock_t clock (void) __attribute__ ((__nothrow__));
- extern time_t time (time_t *__timer) __attribute__ ((__nothrow__));
- extern double difftime (time_t __time1, time_t __time0)
- __attribute__ ((__nothrow__)) __attribute__ ((__const__));
- extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__));
- extern size_t strftime (char *__restrict __s, size_t __maxsize,
- __const char *__restrict __format,
- __const struct tm *__restrict __tp) __attribute__ ((__nothrow__));
- # 217 "/usr/include/time.h" 3 4
- extern size_t strftime_l (char *__restrict __s, size_t __maxsize,
- __const char *__restrict __format,
- __const struct tm *__restrict __tp,
- __locale_t __loc) __attribute__ ((__nothrow__));
- # 230 "/usr/include/time.h" 3 4
- extern struct tm *gmtime (__const time_t *__timer) __attribute__ ((__nothrow__));
- extern struct tm *localtime (__const time_t *__timer) __attribute__ ((__nothrow__));
- extern struct tm *gmtime_r (__const time_t *__restrict __timer,
- struct tm *__restrict __tp) __attribute__ ((__nothrow__));
- extern struct tm *localtime_r (__const time_t *__restrict __timer,
- struct tm *__restrict __tp) __attribute__ ((__nothrow__));
- extern char *asctime (__const struct tm *__tp) __attribute__ ((__nothrow__));
- extern char *ctime (__const time_t *__timer) __attribute__ ((__nothrow__));
- extern char *asctime_r (__const struct tm *__restrict __tp,
- char *__restrict __buf) __attribute__ ((__nothrow__));
- extern char *ctime_r (__const time_t *__restrict __timer,
- char *__restrict __buf) __attribute__ ((__nothrow__));
- extern char *__tzname[2];
- extern int __daylight;
- extern long int __timezone;
- extern char *tzname[2];
- extern void tzset (void) __attribute__ ((__nothrow__));
- extern int daylight;
- extern long int timezone;
- extern int stime (__const time_t *__when) __attribute__ ((__nothrow__));
- # 313 "/usr/include/time.h" 3 4
- extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__));
- extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__));
- extern int dysize (int __year) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
- # 328 "/usr/include/time.h" 3 4
- extern int nanosleep (__const struct timespec *__requested_time,
- struct timespec *__remaining);
- extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__));
- extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__));
- extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp)
- __attribute__ ((__nothrow__));
- extern int clock_nanosleep (clockid_t __clock_id, int __flags,
- __const struct timespec *__req,
- struct timespec *__rem);
- extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __attribute__ ((__nothrow__));
- extern int timer_create (clockid_t __clock_id,
- struct sigevent *__restrict __evp,
- timer_t *__restrict __timerid) __attribute__ ((__nothrow__));
- extern int timer_delete (timer_t __timerid) __attribute__ ((__nothrow__));
- extern int timer_settime (timer_t __timerid, int __flags,
- __const struct itimerspec *__restrict __value,
- struct itimerspec *__restrict __ovalue) __attribute__ ((__nothrow__));
- extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
- __attribute__ ((__nothrow__));
- extern int timer_getoverrun (timer_t __timerid) __attribute__ ((__nothrow__));
- # 417 "/usr/include/time.h" 3 4
- # 30 "/usr/include/readline/history.h" 2 3 4
- # 40 "/usr/include/readline/history.h" 3 4
- typedef void *histdata_t;
- typedef struct _hist_entry {
- char *line;
- char *timestamp;
- histdata_t data;
- } HIST_ENTRY;
- typedef struct _hist_state {
- HIST_ENTRY **entries;
- int offset;
- int length;
- int size;
- int flags;
- } HISTORY_STATE;
- # 71 "/usr/include/readline/history.h" 3 4
- extern void using_history (void);
- extern HISTORY_STATE *history_get_history_state (void);
- extern void history_set_history_state (HISTORY_STATE *);
- extern void add_history (const char *);
- extern void add_history_time (const char *);
- extern HIST_ENTRY *remove_history (int);
- extern histdata_t free_history_entry (HIST_ENTRY *);
- extern HIST_ENTRY *replace_history_entry (int, const char *, histdata_t);
- extern void clear_history (void);
- extern void stifle_history (int);
- extern int unstifle_history (void);
- extern int history_is_stifled (void);
- extern HIST_ENTRY **history_list (void);
- extern int where_history (void);
- extern HIST_ENTRY *current_history (void);
- extern HIST_ENTRY *history_get (int);
- extern time_t history_get_time (HIST_ENTRY *);
- extern int history_total_bytes (void);
- extern int history_set_pos (int);
- extern HIST_ENTRY *previous_history (void);
- extern HIST_ENTRY *next_history (void);
- # 167 "/usr/include/readline/history.h" 3 4
- extern int history_search (const char *, int);
- extern int history_search_prefix (const char *, int);
- extern int history_search_pos (const char *, int, int);
- extern int read_history (const char *);
- extern int read_history_range (const char *, int, int);
- extern int write_history (const char *);
- extern int append_history (int, const char *);
- extern int history_truncate_file (const char *, int);
- # 221 "/usr/include/readline/history.h" 3 4
- extern int history_expand (char *, char **);
- extern char *history_arg_extract (int, int, const char *);
- extern char *get_history_event (const char *, int *, int);
- extern char **history_tokenize (const char *);
- extern int history_base;
- extern int history_length;
- extern int history_max_entries;
- extern char history_expansion_char;
- extern char history_subst_char;
- extern char *history_word_delimiters;
- extern char history_comment_char;
- extern char *history_no_expand_chars;
- extern char *history_search_delimiter_chars;
- extern int history_quotes_inhibit_expansion;
- extern int history_write_timestamps;
- extern int max_input_history;
- extern rl_linebuf_func_t *history_inhibit_expansion_function;
- # 13 "readline.c" 2
- # 1 "/usr/include/oniguruma.h" 1 3 4
- # 99 "/usr/include/oniguruma.h" 3 4
- typedef unsigned char OnigUChar;
- typedef unsigned long OnigCodePoint;
- typedef unsigned int OnigCtype;
- typedef unsigned int OnigDistance;
- typedef unsigned int OnigCaseFoldType;
- extern OnigCaseFoldType OnigDefaultCaseFoldFlag;
- # 128 "/usr/include/oniguruma.h" 3 4
- typedef struct {
- int byte_len;
- int code_len;
- OnigCodePoint code[3];
- } OnigCaseFoldCodeItem;
- typedef struct {
- OnigCodePoint esc;
- OnigCodePoint anychar;
- OnigCodePoint anytime;
- OnigCodePoint zero_or_one_time;
- OnigCodePoint one_or_more_time;
- OnigCodePoint anychar_anytime;
- } OnigMetaCharTableType;
- typedef int (*OnigApplyAllCaseFoldFunc)(OnigCodePoint from, OnigCodePoint* to, int to_len, void* arg);
- typedef struct OnigEncodingTypeST {
- int (*mbc_enc_len)(const OnigUChar* p);
- const char* name;
- int max_enc_len;
- int min_enc_len;
- int (*is_mbc_newline)(const OnigUChar* p, const OnigUChar* end);
- OnigCodePoint (*mbc_to_code)(const OnigUChar* p, const OnigUChar* end);
- int (*code_to_mbclen)(OnigCodePoint code);
- int (*code_to_mbc)(OnigCodePoint code, OnigUChar *buf);
- int (*mbc_case_fold)(OnigCaseFoldType flag, const OnigUChar** pp, const OnigUChar* end, OnigUChar* to);
- int (*apply_all_case_fold)(OnigCaseFoldType flag, OnigApplyAllCaseFoldFunc f, void* arg);
- int (*get_case_fold_codes_by_str)(OnigCaseFoldType flag, const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem acs[]);
- int (*property_name_to_ctype)(struct OnigEncodingTypeST* enc, OnigUChar* p, OnigUChar* end);
- int (*is_code_ctype)(OnigCodePoint code, OnigCtype ctype);
- int (*get_ctype_code_range)(OnigCtype ctype, OnigCodePoint* sb_out, const OnigCodePoint* ranges[]);
- OnigUChar* (*left_adjust_char_head)(const OnigUChar* start, const OnigUChar* p);
- int (*is_allowed_reverse_match)(const OnigUChar* p, const OnigUChar* end);
- } OnigEncodingType;
- typedef OnigEncodingType* OnigEncoding;
- extern OnigEncodingType OnigEncodingASCII;
- extern OnigEncodingType OnigEncodingISO_8859_1;
- extern OnigEncodingType OnigEncodingISO_8859_2;
- extern OnigEncodingType OnigEncodingISO_8859_3;
- extern OnigEncodingType OnigEncodingISO_8859_4;
- extern OnigEncodingType OnigEncodingISO_8859_5;
- extern OnigEncodingType OnigEncodingISO_8859_6;
- extern OnigEncodingType OnigEncodingISO_8859_7;
- extern OnigEncodingType OnigEncodingISO_8859_8;
- extern OnigEncodingType OnigEncodingISO_8859_9;
- extern OnigEncodingType OnigEncodingISO_8859_10;
- extern OnigEncodingType OnigEncodingISO_8859_11;
- extern OnigEncodingType OnigEncodingISO_8859_13;
- extern OnigEncodingType OnigEncodingISO_8859_14;
- extern OnigEncodingType OnigEncodingISO_8859_15;
- extern OnigEncodingType OnigEncodingISO_8859_16;
- extern OnigEncodingType OnigEncodingUTF8;
- extern OnigEncodingType OnigEncodingUTF16_BE;
- extern OnigEncodingType OnigEncodingUTF16_LE;
- extern OnigEncodingType OnigEncodingUTF32_BE;
- extern OnigEncodingType OnigEncodingUTF32_LE;
- extern OnigEncodingType OnigEncodingEUC_JP;
- extern OnigEncodingType OnigEncodingEUC_TW;
- extern OnigEncodingType OnigEncodingEUC_KR;
- extern OnigEncodingType OnigEncodingEUC_CN;
- extern OnigEncodingType OnigEncodingSJIS;
- extern OnigEncodingType OnigEncodingKOI8;
- extern OnigEncodingType OnigEncodingKOI8_R;
- extern OnigEncodingType OnigEncodingCP1251;
- extern OnigEncodingType OnigEncodingBIG5;
- extern OnigEncodingType OnigEncodingGB18030;
- # 328 "/usr/include/oniguruma.h" 3 4
- extern
- OnigUChar* onigenc_step_back (OnigEncoding enc, const OnigUChar* start, const OnigUChar* s, int n);
- extern
- int onigenc_init (void);
- extern
- int onigenc_set_default_encoding (OnigEncoding enc);
- extern
- OnigEncoding onigenc_get_default_encoding (void);
- extern
- void onigenc_set_default_caseconv_table (const OnigUChar* table);
- extern
- OnigUChar* onigenc_get_right_adjust_char_head_with_prev (OnigEncoding enc, const OnigUChar* start, const OnigUChar* s, const OnigUChar** prev);
- extern
- OnigUChar* onigenc_get_prev_char_head (OnigEncoding enc, const OnigUChar* start, const OnigUChar* s);
- extern
- OnigUChar* onigenc_get_left_adjust_char_head (OnigEncoding enc, const OnigUChar* start, const OnigUChar* s);
- extern
- OnigUChar* onigenc_get_right_adjust_char_head (OnigEncoding enc, const OnigUChar* start, const OnigUChar* s);
- extern
- int onigenc_strlen (OnigEncoding enc, const OnigUChar* p, const OnigUChar* end);
- extern
- int onigenc_strlen_null (OnigEncoding enc, const OnigUChar* p);
- extern
- int onigenc_str_bytelen_null (OnigEncoding enc, const OnigUChar* p);
- # 368 "/usr/include/oniguruma.h" 3 4
- typedef unsigned int OnigOptionType;
- # 394 "/usr/include/oniguruma.h" 3 4
- typedef struct {
- unsigned int op;
- unsigned int op2;
- unsigned int behavior;
- OnigOptionType options;
- OnigMetaCharTableType meta_char_table;
- } OnigSyntaxType;
- extern OnigSyntaxType OnigSyntaxASIS;
- extern OnigSyntaxType OnigSyntaxPosixBasic;
- extern OnigSyntaxType OnigSyntaxPosixExtended;
- extern OnigSyntaxType OnigSyntaxEmacs;
- extern OnigSyntaxType OnigSyntaxGrep;
- extern OnigSyntaxType OnigSyntaxGnuRegex;
- extern OnigSyntaxType OnigSyntaxJava;
- extern OnigSyntaxType OnigSyntaxPerl;
- extern OnigSyntaxType OnigSyntaxPerl_NG;
- extern OnigSyntaxType OnigSyntaxRuby;
- # 426 "/usr/include/oniguruma.h" 3 4
- extern OnigSyntaxType* OnigDefaultSyntax;
- # 595 "/usr/include/oniguruma.h" 3 4
- typedef struct OnigCaptureTreeNodeStruct {
- int group;
- int beg;
- int end;
- int allocated;
- int num_childs;
- struct OnigCaptureTreeNodeStruct** childs;
- } OnigCaptureTreeNode;
- struct re_registers {
- int allocated;
- int num_regs;
- int* beg;
- int* end;
- OnigCaptureTreeNode* history_root;
- };
- # 623 "/usr/include/oniguruma.h" 3 4
- typedef struct re_registers OnigRegion;
- typedef struct {
- OnigEncoding enc;
- OnigUChar* par;
- OnigUChar* par_end;
- } OnigErrorInfo;
- typedef struct {
- int lower;
- int upper;
- } OnigRepeatRange;
- typedef void (*OnigWarnFunc) (const char* s);
- extern void onig_null_warn (const char* s);
- # 651 "/usr/include/oniguruma.h" 3 4
- typedef struct re_pattern_buffer {
- unsigned char* p;
- unsigned int used;
- unsigned int alloc;
- int state;
- int num_mem;
- int num_repeat;
- int num_null_check;
- int num_comb_exp_check;
- int num_call;
- unsigned int capture_history;
- unsigned int bt_mem_start;
- unsigned int bt_mem_end;
- int stack_pop_level;
- int repeat_range_alloc;
- OnigRepeatRange* repeat_range;
- OnigEncoding enc;
- OnigOptionType options;
- OnigSyntaxType* syntax;
- OnigCaseFoldType case_fold_flag;
- void* name_table;
- int optimize;
- int threshold_len;
- int anchor;
- OnigDistance anchor_dmin;
- OnigDistance anchor_dmax;
- int sub_anchor;
- unsigned char *exact;
- unsigned char *exact_end;
- unsigned char map[256];
- int *int_map;
- int *int_map_backward;
- OnigDistance dmin;
- OnigDistance dmax;
- struct re_pattern_buffer* chain;
- } OnigRegexType;
- typedef OnigRegexType* OnigRegex;
- typedef OnigRegexType regex_t;
- typedef struct {
- int num_of_elements;
- OnigEncoding pattern_enc;
- OnigEncoding target_enc;
- OnigSyntaxType* syntax;
- OnigOptionType option;
- OnigCaseFoldType case_fold_flag;
- } OnigCompileInfo;
- extern
- int onig_init (void);
- extern
- int onig_error_code_to_str ();
- extern
- void onig_set_warn_func (OnigWarnFunc f);
- extern
- void onig_set_verb_warn_func (OnigWarnFunc f);
- extern
- int onig_new (OnigRegex*, const OnigUChar* pattern, const OnigUChar* pattern_end, OnigOptionType option, OnigEncoding enc, OnigSyntaxType* syntax, OnigErrorInfo* einfo);
- extern
- int onig_reg_init (regex_t* reg, OnigOptionType option, OnigCaseFoldType case_fold_flag, OnigEncoding enc, OnigSyntaxType* syntax);
- int onig_new_without_alloc (OnigRegex, const OnigUChar* pattern, const OnigUChar* pattern_end, OnigOptionType option, OnigEncoding enc, OnigSyntaxType* syntax, OnigErrorInfo* einfo);
- extern
- int onig_new_deluxe (OnigRegex* reg, const OnigUChar* pattern, const OnigUChar* pattern_end, OnigCompileInfo* ci, OnigErrorInfo* einfo);
- extern
- void onig_free (OnigRegex);
- extern
- void onig_free_body (OnigRegex);
- extern
- int onig_recompile (OnigRegex, const OnigUChar* pattern, const OnigUChar* pattern_end, OnigOptionType option, OnigEncoding enc, OnigSyntaxType* syntax, OnigErrorInfo* einfo);
- extern
- int onig_recompile_deluxe (OnigRegex reg, const OnigUChar* pattern, const OnigUChar* pattern_end, OnigCompileInfo* ci, OnigErrorInfo* einfo);
- extern
- int onig_search (OnigRegex, const OnigUChar* str, const OnigUChar* end, const OnigUChar* start, const OnigUChar* range, OnigRegion* region, OnigOptionType option);
- extern
- int onig_match (OnigRegex, const OnigUChar* str, const OnigUChar* end, const OnigUChar* at, OnigRegion* region, OnigOptionType option);
- extern
- OnigRegion* onig_region_new (void);
- extern
- void onig_region_init (OnigRegion* region);
- extern
- void onig_region_free (OnigRegion* region, int free_self);
- extern
- void onig_region_copy (OnigRegion* to, OnigRegion* from);
- extern
- void onig_region_clear (OnigRegion* region);
- extern
- int onig_region_resize (OnigRegion* region, int n);
- extern
- int onig_region_set (OnigRegion* region, int at, int beg, int end);
- extern
- int onig_name_to_group_numbers (OnigRegex reg, const OnigUChar* name, const OnigUChar* name_end, int** nums);
- extern
- int onig_name_to_backref_number (OnigRegex reg, const OnigUChar* name, const OnigUChar* name_end, OnigRegion *region);
- extern
- int onig_foreach_name (OnigRegex reg, int (*func)(const OnigUChar*, const OnigUChar*,int,int*,OnigRegex,void*), void* arg);
- extern
- int onig_number_of_names (OnigRegex reg);
- extern
- int onig_number_of_captures (OnigRegex reg);
- extern
- int onig_number_of_capture_histories (OnigRegex reg);
- extern
- OnigCaptureTreeNode* onig_get_capture_tree (OnigRegion* region);
- extern
- int onig_capture_tree_traverse (OnigRegion* region, int at, int(*callback_func)(int,int,int,int,int,void*), void* arg);
- extern
- int onig_noname_group_capture_is_active (OnigRegex reg);
- extern
- OnigEncoding onig_get_encoding (OnigRegex reg);
- extern
- OnigOptionType onig_get_options (OnigRegex reg);
- extern
- OnigCaseFoldType onig_get_case_fold_flag (OnigRegex reg);
- extern
- OnigSyntaxType* onig_get_syntax (OnigRegex reg);
- extern
- int onig_set_default_syntax (OnigSyntaxType* syntax);
- extern
- void onig_copy_syntax (OnigSyntaxType* to, OnigSyntaxType* from);
- extern
- unsigned int onig_get_syntax_op (OnigSyntaxType* syntax);
- extern
- unsigned int onig_get_syntax_op2 (OnigSyntaxType* syntax);
- extern
- unsigned int onig_get_syntax_behavior (OnigSyntaxType* syntax);
- extern
- OnigOptionType onig_get_syntax_options (OnigSyntaxType* syntax);
- extern
- void onig_set_syntax_op (OnigSyntaxType* syntax, unsigned int op);
- extern
- void onig_set_syntax_op2 (OnigSyntaxType* syntax, unsigned int op2);
- extern
- void onig_set_syntax_behavior (OnigSyntaxType* syntax, unsigned int behavior);
- extern
- void onig_set_syntax_options (OnigSyntaxType* syntax, OnigOptionType options);
- extern
- int onig_set_meta_char (OnigSyntaxType* syntax, unsigned int what, OnigCodePoint code);
- extern
- void onig_copy_encoding (OnigEncoding to, OnigEncoding from);
- extern
- OnigCaseFoldType onig_get_default_case_fold_flag (void);
- extern
- int onig_set_default_case_fold_flag (OnigCaseFoldType case_fold_flag);
- extern
- unsigned int onig_get_match_stack_limit_size (void);
- extern
- int onig_set_match_stack_limit_size (unsigned int size);
- extern
- int onig_end (void);
- extern
- const char* onig_version (void);
- extern
- const char* onig_copyright (void);
- # 14 "readline.c" 2
- # 1 "/usr/include/sys/stat.h" 1 3 4
- # 105 "/usr/include/sys/stat.h" 3 4
- # 1 "/usr/include/bits/stat.h" 1 3 4
- # 108 "/usr/include/sys/stat.h" 2 3 4
- # 211 "/usr/include/sys/stat.h" 3 4
- extern int stat (__const char *__restrict __file,
- struct stat *__restrict __buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int fstat (int __fd, struct stat *__buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
- # 240 "/usr/include/sys/stat.h" 3 4
- extern int fstatat (int __fd, __const char *__restrict __file,
- struct stat *__restrict __buf, int __flag)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
- # 265 "/usr/include/sys/stat.h" 3 4
- extern int lstat (__const char *__restrict __file,
- struct stat *__restrict __buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- # 286 "/usr/include/sys/stat.h" 3 4
- extern int chmod (__const char *__file, __mode_t __mode)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern int lchmod (__const char *__file, __mode_t __mode)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern int fchmod (int __fd, __mode_t __mode) __attribute__ ((__nothrow__));
- extern int fchmodat (int __fd, __const char *__file, __mode_t __mode,
- int __flag)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))) ;
- extern __mode_t umask (__mode_t __mask) __attribute__ ((__nothrow__));
- # 323 "/usr/include/sys/stat.h" 3 4
- extern int mkdir (__const char *__path, __mode_t __mode)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern int mkdirat (int __fd, __const char *__path, __mode_t __mode)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
- extern int mknod (__const char *__path, __mode_t __mode, __dev_t __dev)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern int mknodat (int __fd, __const char *__path, __mode_t __mode,
- __dev_t __dev) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
- extern int mkfifo (__const char *__path, __mode_t __mode)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern int mkfifoat (int __fd, __const char *__path, __mode_t __mode)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
- extern int utimensat (int __fd, __const char *__path,
- __const struct timespec __times[2],
- int __flags)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
- extern int futimens (int __fd, __const struct timespec __times[2]) __attribute__ ((__nothrow__));
- # 401 "/usr/include/sys/stat.h" 3 4
- extern int __fxstat (int __ver, int __fildes, struct stat *__stat_buf)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3)));
- extern int __xstat (int __ver, __const char *__filename,
- struct stat *__stat_buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
- extern int __lxstat (int __ver, __const char *__filename,
- struct stat *__stat_buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
- extern int __fxstatat (int __ver, int __fildes, __const char *__filename,
- struct stat *__stat_buf, int __flag)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4)));
- # 444 "/usr/include/sys/stat.h" 3 4
- extern int __xmknod (int __ver, __const char *__path, __mode_t __mode,
- __dev_t *__dev) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));
- extern int __xmknodat (int __ver, int __fd, __const char *__path,
- __mode_t __mode, __dev_t *__dev)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 5)));
- extern __inline int
- __attribute__ ((__nothrow__)) stat (__const char *__path, struct stat *__statbuf)
- {
- return __xstat (1, __path, __statbuf);
- }
- extern __inline int
- __attribute__ ((__nothrow__)) lstat (__const char *__path, struct stat *__statbuf)
- {
- return __lxstat (1, __path, __statbuf);
- }
- extern __inline int
- __attribute__ ((__nothrow__)) fstat (int __fd, struct stat *__statbuf)
- {
- return __fxstat (1, __fd, __statbuf);
- }
- extern __inline int
- __attribute__ ((__nothrow__)) fstatat (int __fd, __const char *__filename, struct stat *__statbuf, int __flag)
- {
- return __fxstatat (1, __fd, __filename, __statbuf, __flag);
- }
- extern __inline int
- __attribute__ ((__nothrow__)) mknod (__const char *__path, __mode_t __mode, __dev_t __dev)
- {
- return __xmknod (0, __path, __mode, &__dev);
- }
- extern __inline int
- __attribute__ ((__nothrow__)) mknodat (int __fd, __const char *__path, __mode_t __mode, __dev_t __dev)
- {
- return __xmknodat (0, __fd, __path, __mode, &__dev);
- }
- # 536 "/usr/include/sys/stat.h" 3 4
- # 15 "readline.c" 2
- # 1 "/usr/include/pwd.h" 1 3 4
- # 28 "/usr/include/pwd.h" 3 4
- # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 1 3 4
- # 34 "/usr/include/pwd.h" 2 3 4
- # 50 "/usr/include/pwd.h" 3 4
- struct passwd
- {
- char *pw_name;
- char *pw_passwd;
- __uid_t pw_uid;
- __gid_t pw_gid;
- char *pw_gecos;
- char *pw_dir;
- char *pw_shell;
- };
- # 73 "/usr/include/pwd.h" 3 4
- extern void setpwent (void);
- extern void endpwent (void);
- extern struct passwd *getpwent (void);
- # 95 "/usr/include/pwd.h" 3 4
- extern struct passwd *fgetpwent (FILE *__stream);
- extern int putpwent (__const struct passwd *__restrict __p,
- FILE *__restrict __f);
- extern struct passwd *getpwuid (__uid_t __uid);
- extern struct passwd *getpwnam (__const char *__name);
- # 140 "/usr/include/pwd.h" 3 4
- extern int getpwent_r (struct passwd *__restrict __resultbuf,
- char *__restrict __buffer, size_t __buflen,
- struct passwd **__restrict __result);
- extern int getpwuid_r (__uid_t __uid,
- struct passwd *__restrict __resultbuf,
- char *__restrict __buffer, size_t __buflen,
- struct passwd **__restrict __result);
- extern int getpwnam_r (__const char *__restrict __name,
- struct passwd *__restrict __resultbuf,
- char *__restrict __buffer, size_t __buflen,
- struct passwd **__restrict __result);
- # 164 "/usr/include/pwd.h" 3 4
- extern int fgetpwent_r (FILE *__restrict __stream,
- struct passwd *__restrict __resultbuf,
- char *__restrict __buffer, size_t __buflen,
- struct passwd **__restrict __result);
- # 184 "/usr/include/pwd.h" 3 4
- # 17 "readline.c" 2
- # 1 "config.h" 1
- # 19 "readline.c" 2
- # 1 "/usr/include/ncurses.h" 1 3 4
- # 66 "/usr/include/ncurses.h" 3 4
- # 1 "/usr/include/ncurses_dll.h" 1 3 4
- # 67 "/usr/include/ncurses.h" 2 3 4
- # 136 "/usr/include/ncurses.h" 3 4
- typedef unsigned int chtype;
- typedef unsigned long mmask_t;
- # 1 "/usr/include/unctrl.h" 1 3 4
- # 54 "/usr/include/unctrl.h" 3 4
- # 1 "/usr/include/curses.h" 1 3 4
- # 55 "/usr/include/unctrl.h" 2 3 4
- char * unctrl (chtype);
- # 142 "/usr/include/ncurses.h" 2 3 4
- # 165 "/usr/include/ncurses.h" 3 4
- typedef unsigned char NCURSES_BOOL;
- # 175 "/usr/include/ncurses.h" 3 4
- # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stdbool.h" 1 3 4
- # 176 "/usr/include/ncurses.h" 2 3 4
- # 231 "/usr/include/ncurses.h" 3 4
- extern chtype acs_map[];
- # 321 "/usr/include/ncurses.h" 3 4
- typedef struct screen SCREEN;
- typedef struct _win_st WINDOW;
- typedef chtype attr_t;
- # 363 "/usr/include/ncurses.h" 3 4
- struct ldat;
- struct _win_st
- {
- short _cury, _curx;
- short _maxy, _maxx;
- short _begy, _begx;
- short _flags;
- attr_t _attrs;
- chtype _bkgd;
- _Bool _notimeout;
- _Bool _clear;
- _Bool _leaveok;
- _Bool _scroll;
- _Bool _idlok;
- _Bool _idcok;
- _Bool _immed;
- _Bool _sync;
- _Bool _use_keypad;
- int _delay;
- struct ldat *_line;
- short _regtop;
- short _regbottom;
- int _parx;
- int _pary;
- WINDOW *_parent;
- struct pdat
- {
- short _pad_y, _pad_x;
- short _pad_top, _pad_left;
- short _pad_bottom, _pad_right;
- } _pad;
- short _yoffset;
- };
- # 520 "/usr/include/ncurses.h" 3 4
- extern int addch (const chtype);
- extern int addchnstr (const chtype *, int);
- extern int addchstr (const chtype *);
- extern int addnstr (const char *, int);
- extern int addstr (const char *);
- extern int attroff (int);
- extern int attron (int);
- extern int attrset (int);
- extern int attr_get (attr_t *, short *, void *);
- extern int attr_off (attr_t, void *);
- extern int attr_on (attr_t, void *);
- extern int attr_set (attr_t, short, void *);
- extern int baudrate (void);
- extern int beep (void);
- extern int bkgd (chtype);
- extern void bkgdset (chtype);
- extern int border (chtype,chtype,chtype,chtype,chtype,chtype,chtype,chtype);
- extern int box (WINDOW *, chtype, chtype);
- extern _Bool can_change_color (void);
- extern int cbreak (void);
- extern int chgat (int, attr_t, short, const void *);
- extern int clear (void);
- extern int clearok (WINDOW *,_Bool);
- extern int clrtobot (void);
- extern int clrtoeol (void);
- extern int color_content (short,short*,short*,short*);
- extern int color_set (short,void*);
- extern int COLOR_PAIR (int);
- extern int copywin (const WINDOW*,WINDOW*,int,int,int,int,int,int,int);
- extern int curs_set (int);
- extern int def_prog_mode (void);
- extern int def_shell_mode (void);
- extern int delay_output (int);
- extern int delch (void);
- extern void delscreen (SCREEN *);
- extern int delwin (WINDOW *);
- extern int deleteln (void);
- extern WINDOW * derwin (WINDOW *,int,int,int,int);
- extern int doupdate (void);
- extern WINDOW * dupwin (WINDOW *);
- extern int echo (void);
- extern int echochar (const chtype);
- extern int erase (void);
- extern int endwin (void);
- extern char erasechar (void);
- extern void filter (void);
- extern int flash (void);
- extern int flushinp (void);
- extern chtype getbkgd (WINDOW *);
- extern int getch (void);
- extern int getnstr (char *, int);
- extern int getstr (char *);
- extern WINDOW * getwin (FILE *);
- extern int halfdelay (int);
- extern _Bool has_colors (void);
- extern _Bool has_ic (void);
- extern _Bool has_il (void);
- extern int hline (chtype, int);
- extern void idcok (WINDOW *, _Bool);
- extern int idlok (WINDOW *, _Bool);
- extern void immedok (WINDOW *, _Bool);
- extern chtype inch (void);
- extern int inchnstr (chtype *, int);
- extern int inchstr (chtype *);
- extern WINDOW * initscr (void);
- extern int init_color (short,short,short,short);
- extern int init_pair (short,short,short);
- extern int innstr (char *, int);
- extern int insch (chtype);
- extern int insdelln (int);
- extern int insertln (void);
- extern int insnstr (const char *, int);
- extern int insstr (const char *);
- extern int instr (char *);
- extern int intrflush (WINDOW *,_Bool);
- extern _Bool isendwin (void);
- extern _Bool is_linetouched (WINDOW *,int);
- extern _Bool is_wintouched (WINDOW *);
- extern char * keyname (int);
- extern int keypad (WINDOW *,_Bool);
- extern char killchar (void);
- extern int leaveok (WINDOW *,_Bool);
- extern char * longname (void);
- extern int meta (WINDOW *,_Bool);
- extern int move (int, int);
- extern int mvaddch (int, int, const chtype);
- extern int mvaddchnstr (int, int, const chtype *, int);
- extern int mvaddchstr (int, int, const chtype *);
- extern int mvaddnstr (int, int, const char *, int);
- extern int mvaddstr (int, int, const char *);
- extern int mvchgat (int, int, int, attr_t, short, const void *);
- extern int mvcur (int,int,int,int);
- extern int mvdelch (int, int);
- extern int mvderwin (WINDOW *, int, int);
- extern int mvgetch (int, int);
- extern int mvgetnstr (int, int, char *, int);
- extern int mvgetstr (int, int, char *);
- extern int mvhline (int, int, chtype, int);
- extern chtype mvinch (int, int);
- extern int mvinchnstr (int, int, chtype *, int);
- extern int mvinchstr (int, int, chtype *);
- extern int mvinnstr (int, int, char *, int);
- extern int mvinsch (int, int, chtype);
- extern int mvinsnstr (int, int, const char *, int);
- extern int mvinsstr (int, int, const char *);
- extern int mvinstr (int, int, char *);
- extern int mvprintw (int,int, const char *,...)
- ;
- extern int mvscanw (int,int, char *,...)
- ;
- extern int mvvline (int, int, chtype, int);
- extern int mvwaddch (WINDOW *, int, int, const chtype);
- extern int mvwaddchnstr (WINDOW *, int, int, const chtype *, int);
- extern int mvwaddchstr (WINDOW *, int, int, const chtype *);
- extern int mvwaddnstr (WINDOW *, int, int, const char *, int);
- extern int mvwaddstr (WINDOW *, int, int, const char *);
- extern int mvwchgat (WINDOW *, int, int, int, attr_t, short, const void *);
- extern int mvwdelch (WINDOW *, int, int);
- extern int mvwgetch (WINDOW *, int, int);
- extern int mvwgetnstr (WINDOW *, int, int, char *, int);
- extern int mvwgetstr (WINDOW *, int, int, char *);
- extern int mvwhline (WINDOW *, int, int, chtype, int);
- extern int mvwin (WINDOW *,int,int);
- extern chtype mvwinch (WINDOW *, int, int);
- extern int mvwinchnstr (WINDOW *, int, int, chtype *, int);
- extern int mvwinchstr (WINDOW *, int, int, chtype *);
- extern int mvwinnstr (WINDOW *, int, int, char *, int);
- extern int mvwinsch (WINDOW *, int, int, chtype);
- extern int mvwinsnstr (WINDOW *, int, int, const char *, int);
- extern int mvwinsstr (WINDOW *, int, int, const char *);
- extern int mvwinstr (WINDOW *, int, int, char *);
- extern int mvwprintw (WINDOW*,int,int, const char *,...)
- ;
- extern int mvwscanw (WINDOW *,int,int, char *,...)
- ;
- extern int mvwvline (WINDOW *,int, int, chtype, int);
- extern int napms (int);
- extern WINDOW * newpad (int,int);
- extern SCREEN * newterm ( char *,FILE *,FILE *);
- extern WINDOW * newwin (int,int,int,int);
- extern int nl (void);
- extern int nocbreak (void);
- extern int nodelay (WINDOW *,_Bool);
- extern int noecho (void);
- extern int nonl (void);
- extern void noqiflush (void);
- extern int noraw (void);
- extern int notimeout (WINDOW *,_Bool);
- extern int overlay (const WINDOW*,WINDOW *);
- extern int overwrite (const WINDOW*,WINDOW *);
- extern int pair_content (short,short*,short*);
- extern int PAIR_NUMBER (int);
- extern int pechochar (WINDOW *, const chtype);
- extern int pnoutrefresh (WINDOW*,int,int,int,int,int,int);
- extern int prefresh (WINDOW *,int,int,int,int,int,int);
- extern int printw (const char *,...)
- ;
- extern int putwin (WINDOW *, FILE *);
- extern void qiflush (void);
- extern int raw (void);
- extern int redrawwin (WINDOW *);
- extern int refresh (void);
- extern int resetty (void);
- extern int reset_prog_mode (void);
- extern int reset_shell_mode (void);
- extern int ripoffline (int, int (*)(WINDOW *, int));
- extern int savetty (void);
- extern int scanw ( char *,...)
- ;
- extern int scr_dump (const char *);
- extern int scr_init (const char *);
- extern int scrl (int);
- extern int scroll (WINDOW *);
- extern int scrollok (WINDOW *,_Bool);
- extern int scr_restore (const char *);
- extern int scr_set (const char *);
- extern int setscrreg (int,int);
- extern SCREEN * set_term (SCREEN *);
- extern int slk_attroff (const chtype);
- extern int slk_attr_off (const attr_t, void *);
- extern int slk_attron (const chtype);
- extern int slk_attr_on (attr_t,void*);
- extern int slk_attrset (const chtype);
- extern attr_t slk_attr (void);
- extern int slk_attr_set (const attr_t,short,void*);
- extern int slk_clear (void);
- extern int slk_color (short);
- extern int slk_init (int);
- extern char * slk_label (int);
- extern int slk_noutrefresh (void);
- extern int slk_refresh (void);
- extern int slk_restore (void);
- extern int slk_set (int,const char *,int);
- extern int slk_touch (void);
- extern int standout (void);
- extern int standend (void);
- extern int start_color (void);
- extern WINDOW * subpad (WINDOW *, int, int, int, int);
- extern WINDOW * subwin (WINDOW *, int, int, int, int);
- extern int syncok (WINDOW *, _Bool);
- extern chtype termattrs (void);
- extern char * termname (void);
- extern void timeout (int);
- extern int touchline (WINDOW *, int, int);
- extern int touchwin (WINDOW *);
- extern int typeahead (int);
- extern int ungetch (int);
- extern int untouchwin (WINDOW *);
- extern void use_env (_Bool);
- extern int vidattr (chtype);
- extern int vidputs (chtype, int (*)(int));
- extern int vline (chtype, int);
- extern int vwprintw (WINDOW *, const char *,va_list);
- extern int vw_printw (WINDOW *, const char *,va_list);
- extern int vwscanw (WINDOW *, char *,va_list);
- extern int vw_scanw (WINDOW *, char *,va_list);
- extern int waddch (WINDOW *, const chtype);
- extern int waddchnstr (WINDOW *,const chtype *,int);
- extern int waddchstr (WINDOW *,const chtype *);
- extern int waddnstr (WINDOW *,const char *,int);
- extern int waddstr (WINDOW *,const char *);
- extern int wattron (WINDOW *, int);
- extern int wattroff (WINDOW *, int);
- extern int wattrset (WINDOW *, int);
- extern int wattr_get (WINDOW *, attr_t *, short *, void *);
- extern int wattr_on (WINDOW *, attr_t, void *);
- extern int wattr_off (WINDOW *, attr_t, void *);
- extern int wattr_set (WINDOW *, attr_t, short, void *);
- extern int wbkgd (WINDOW *, chtype);
- extern void wbkgdset (WINDOW *,chtype);
- extern int wborder (WINDOW *,chtype,chtype,chtype,chtype,chtype,chtype,chtype,chtype);
- extern int wchgat (WINDOW *, int, attr_t, short, const void *);
- extern int wclear (WINDOW *);
- extern int wclrtobot (WINDOW *);
- extern int wclrtoeol (WINDOW *);
- extern int wcolor_set (WINDOW*,short,void*);
- extern void wcursyncup (WINDOW *);
- extern int wdelch (WINDOW *);
- extern int wdeleteln (WINDOW *);
- extern int wechochar (WINDOW *, const chtype);
- extern int werase (WINDOW *);
- extern int wgetch (WINDOW *);
- extern int wgetnstr (WINDOW *,char *,int);
- extern int wgetstr (WINDOW *, char *);
- extern int whline (WINDOW *, chtype, int);
- extern chtype winch (WINDOW *);
- extern int winchnstr (WINDOW *, chtype *, int);
- extern int winchstr (WINDOW *, chtype *);
- extern int winnstr (WINDOW *, char *, int);
- extern int winsch (WINDOW *, chtype);
- extern int winsdelln (WINDOW *,int);
- extern int winsertln (WINDOW *);
- extern int winsnstr (WINDOW *, const char *,int);
- extern int winsstr (WINDOW *, const char *);
- extern int winstr (WINDOW *, char *);
- extern int wmove (WINDOW *,int,int);
- extern int wnoutrefresh (WINDOW *);
- extern int wprintw (WINDOW *, const char *,...)
- ;
- extern int wredrawln (WINDOW *,int,int);
- extern int wrefresh (WINDOW *);
- extern int wscanw (WINDOW *, char *,...)
- ;
- extern int wscrl (WINDOW *,int);
- extern int wsetscrreg (WINDOW *,int,int);
- extern int wstandout (WINDOW *);
- extern int wstandend (WINDOW *);
- extern void wsyncdown (WINDOW *);
- extern void wsyncup (WINDOW *);
- extern void wtimeout (WINDOW *,int);
- extern int wtouchln (WINDOW *,int,int,int);
- extern int wvline (WINDOW *,chtype,int);
- extern int tigetflag ( char *);
- extern int tigetnum ( char *);
- extern char * tigetstr ( char *);
- extern int putp (const char *);
- extern char * tparm ( char *, ...);
- # 811 "/usr/include/ncurses.h" 3 4
- extern int getattrs (const WINDOW *);
- extern int getcurx (const WINDOW *);
- extern int getcury (const WINDOW *);
- extern int getbegx (const WINDOW *);
- extern int getbegy (const WINDOW *);
- extern int getmaxx (const WINDOW *);
- extern int getmaxy (const WINDOW *);
- extern int getparx (const WINDOW *);
- extern int getpary (const WINDOW *);
- # 834 "/usr/include/ncurses.h" 3 4
- typedef int (*NCURSES_WINDOW_CB)(WINDOW *, void *);
- typedef int (*NCURSES_SCREEN_CB)(SCREEN *, void *);
- extern _Bool is_term_resized (int, int);
- extern char * keybound (int, int);
- extern const char * curses_version (void);
- extern int assume_default_colors (int, int);
- extern int define_key (const char *, int);
- extern int key_defined (const char *);
- extern int keyok (int, _Bool);
- extern int resize_term (int, int);
- extern int resizeterm (int, int);
- extern int set_escdelay (int);
- extern int set_tabsize (int);
- extern int use_default_colors (void);
- extern int use_extended_names (_Bool);
- extern int use_legacy_coding (int);
- extern int use_screen (SCREEN *, NCURSES_SCREEN_CB, void *);
- extern int use_window (WINDOW *, NCURSES_WINDOW_CB, void *);
- extern int wresize (WINDOW *, int, int);
- extern void nofilter(void);
- extern WINDOW * wgetparent (const WINDOW *);
- extern _Bool is_cleared (const WINDOW *);
- extern _Bool is_idcok (const WINDOW *);
- extern _Bool is_idlok (const WINDOW *);
- extern _Bool is_immedok (const WINDOW *);
- extern _Bool is_keypad (const WINDOW *);
- extern _Bool is_leaveok (const WINDOW *);
- extern _Bool is_nodelay (const WINDOW *);
- extern _Bool is_notimeout (const WINDOW *);
- extern _Bool is_scrollok (const WINDOW *);
- extern _Bool is_syncok (const WINDOW *);
- extern int wgetscrreg (const WINDOW *, int *, int *);
- # 1202 "/usr/include/ncurses.h" 3 4
- extern WINDOW * curscr;
- extern WINDOW * newscr;
- extern WINDOW * stdscr;
- extern char ttytype[];
- extern int COLORS;
- extern int COLOR_PAIRS;
- extern int COLS;
- extern int ESCDELAY;
- extern int LINES;
- extern int TABSIZE;
- # 1667 "/usr/include/ncurses.h" 3 4
- typedef struct
- {
- short id;
- int x, y, z;
- mmask_t bstate;
- }
- MEVENT;
- extern int getmouse (MEVENT *);
- extern int ungetmouse (MEVENT *);
- extern mmask_t mousemask (mmask_t, mmask_t *);
- extern _Bool wenclose (const WINDOW *, int, int);
- extern int mouseinterval (int);
- extern _Bool wmouse_trafo (const WINDOW*, int*, int*, _Bool);
- extern _Bool mouse_trafo (int*, int*, _Bool);
- extern int mcprint (char *, int);
- extern int has_key (int);
- extern void _tracef (const char *, ...) ;
- extern void _tracedump (const char *, WINDOW *);
- extern char * _traceattr (attr_t);
- extern char * _traceattr2 (int, chtype);
- extern char * _nc_tracebits (void);
- extern char * _tracechar (int);
- extern char * _tracechtype (chtype);
- extern char * _tracechtype2 (int, chtype);
- # 1709 "/usr/include/ncurses.h" 3 4
- extern char * _tracemouse (const MEVENT *);
- extern void trace (const unsigned int);
- # 25 "readline.c" 2
- # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include-fixed/limits.h" 1 3 4
- # 34 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include-fixed/limits.h" 3 4
- # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include-fixed/syslimits.h" 1 3 4
- # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include-fixed/limits.h" 1 3 4
- # 169 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include-fixed/limits.h" 3 4
- # 1 "/usr/include/limits.h" 1 3 4
- # 149 "/usr/include/limits.h" 3 4
- # 1 "/usr/include/bits/posix2_lim.h" 1 3 4
- # 150 "/usr/include/limits.h" 2 3 4
- # 170 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include-fixed/limits.h" 2 3 4
- # 8 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include-fixed/syslimits.h" 2 3 4
- # 35 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include-fixed/limits.h" 2 3 4
- # 30 "readline.c" 2
- # 42 "readline.c"
- static vector_obj* files = ((void *)0);
- static int name_sort(void* left, void* right)
- {
- string_obj* l = (string_obj*)left;
- string_obj* r = (string_obj*) right;
- char* lfname = ((string_obj*)l)->mStr;
- char* rfname = ((string_obj*)r)->mStr;
- if(__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (lfname) && __builtin_constant_p (".") && (__s1_len = strlen (lfname), __s2_len = strlen ("."), (!((size_t)(const void *)((lfname) + 1) - (size_t)(const void *)(lfname) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((".") + 1) - (size_t)(const void *)(".") == 1) || __s2_len >= 4)) ? __builtin_strcmp (lfname, ".") : (__builtin_constant_p (lfname) && ((size_t)(const void *)((lfname) + 1) - (size_t)(const void *)(lfname) == 1) && (__s1_len = strlen (lfname), __s1_len < 4) ? (__builtin_constant_p (".") && ((size_t)(const void *)((".") + 1) - (size_t)(const void *)(".") == 1) ? __builtin_strcmp (lfname, ".") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("."); register int __result = (((__const unsigned char *) (__const char *) (lfname))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (lfname))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (lfname))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (lfname))[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 (lfname) && ((size_t)(const void *)((lfname) + 1) - (size_t)(const void *)(lfname) == 1) ? __builtin_strcmp (lfname, ".") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (lfname); 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 (lfname, ".")))); }) == 0) return 1;
- if(__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (lfname) && __builtin_constant_p ("..") && (__s1_len = strlen (lfname), __s2_len = strlen (".."), (!((size_t)(const void *)((lfname) + 1) - (size_t)(const void *)(lfname) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("..") + 1) - (size_t)(const void *)("..") == 1) || __s2_len >= 4)) ? __builtin_strcmp (lfname, "..") : (__builtin_constant_p (lfname) && ((size_t)(const void *)((lfname) + 1) - (size_t)(const void *)(lfname) == 1) && (__s1_len = strlen (lfname), __s1_len < 4) ? (__builtin_constant_p ("..") && ((size_t)(const void *)(("..") + 1) - (size_t)(const void *)("..") == 1) ? __builtin_strcmp (lfname, "..") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (".."); register int __result = (((__const unsigned char *) (__const char *) (lfname))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (lfname))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (lfname))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (lfname))[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 (lfname) && ((size_t)(const void *)((lfname) + 1) - (size_t)(const void *)(lfname) == 1) ? __builtin_strcmp (lfname, "..") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (lfname); 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 (lfname, "..")))); }) == 0) {
- if(__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (rfname) && __builtin_constant_p (".") && (__s1_len = strlen (rfname), __s2_len = strlen ("."), (!((size_t)(const void *)((rfname) + 1) - (size_t)(const void *)(rfname) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((".") + 1) - (size_t)(const void *)(".") == 1) || __s2_len >= 4)) ? __builtin_strcmp (rfname, ".") : (__builtin_constant_p (rfname) && ((size_t)(const void *)((rfname) + 1) - (size_t)(const void *)(rfname) == 1) && (__s1_len = strlen (rfname), __s1_len < 4) ? (__builtin_constant_p (".") && ((size_t)(const void *)((".") + 1) - (size_t)(const void *)(".") == 1) ? __builtin_strcmp (rfname, ".") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("."); register int __result = (((__const unsigned char *) (__const char *) (rfname))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (rfname))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (rfname))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (rfname))[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 (rfname) && ((size_t)(const void *)((rfname) + 1) - (size_t)(const void *)(rfname) == 1) ? __builtin_strcmp (rfname, ".") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (rfname); 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 (rfname, ".")))); }) == 0) return 0;
- return 1;
- }
- if(__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (rfname) && __builtin_constant_p (".") && (__s1_len = strlen (rfname), __s2_len = strlen ("."), (!((size_t)(const void *)((rfname) + 1) - (size_t)(const void *)(rfname) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((".") + 1) - (size_t)(const void *)(".") == 1) || __s2_len >= 4)) ? __builtin_strcmp (rfname, ".") : (__builtin_constant_p (rfname) && ((size_t)(const void *)((rfname) + 1) - (size_t)(const void *)(rfname) == 1) && (__s1_len = strlen (rfname), __s1_len < 4) ? (__builtin_constant_p (".") && ((size_t)(const void *)((".") + 1) - (size_t)(const void *)(".") == 1) ? __builtin_strcmp (rfname, ".") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("."); register int __result = (((__const unsigned char *) (__const char *) (rfname))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (rfname))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (rfname))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (rfname))[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 (rfname) && ((size_t)(const void *)((rfname) + 1) - (size_t)(const void *)(rfname) == 1) ? __builtin_strcmp (rfname, ".") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (rfname); 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 (rfname, ".")))); }) == 0) return 0;
- if(__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (rfname) && __builtin_constant_p ("..") && (__s1_len = strlen (rfname), __s2_len = strlen (".."), (!((size_t)(const void *)((rfname) + 1) - (size_t)(const void *)(rfname) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("..") + 1) - (size_t)(const void *)("..") == 1) || __s2_len >= 4)) ? __builtin_strcmp (rfname, "..") : (__builtin_constant_p (rfname) && ((size_t)(const void *)((rfname) + 1) - (size_t)(const void *)(rfname) == 1) && (__s1_len = strlen (rfname), __s1_len < 4) ? (__builtin_constant_p ("..") && ((size_t)(const void *)(("..") + 1) - (size_t)(const void *)("..") == 1) ? __builtin_strcmp (rfname, "..") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (".."); register int __result = (((__const unsigned char *) (__const char *) (rfname))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (rfname))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (rfname))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (rfname))[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 (rfname) && ((size_t)(const void *)((rfname) + 1) - (size_t)(const void *)(rfname) == 1) ? __builtin_strcmp (rfname, "..") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (rfname); 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 (rfname, "..")))); }) == 0) return 0;
- return strcasecmp(lfname, rfname) < 0;
- }
- # 666 "readline.c"
- char* readline_program_completion(const char* text, int stat)
- {
- static int index, wordlen;
- if(stat == 0) {
- wordlen = strlen(text);
- index = 0;
- }
- while(index < ((vector_obj*)gPrograms)->mCount) {
- char* program = ((string_obj*)((vector_obj*)gPrograms)->mTable[index])->mStr;
- index++;
- if(!(__extension__ (__builtin_constant_p (wordlen) && ((__builtin_constant_p (text) && strlen (text) < ((size_t) (wordlen))) || (__builtin_constant_p (program) && strlen (program) < ((size_t) (wordlen)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (text) && __builtin_constant_p (program) && (__s1_len = strlen (text), __s2_len = strlen (program), (!((size_t)(const void *)((text) + 1) - (size_t)(const void *)(text) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((program) + 1) - (size_t)(const void *)(program) == 1) || __s2_len >= 4)) ? __builtin_strcmp (text, program) : (__builtin_constant_p (text) && ((size_t)(const void *)((text) + 1) - (size_t)(const void *)(text) == 1) && (__s1_len = strlen (text), __s1_len < 4) ? (__builtin_constant_p (program) && ((size_t)(const void *)((program) + 1) - (size_t)(const void *)(program) == 1) ? __builtin_strcmp (text, program) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (program); register int __result = (((__const unsigned char *) (__const char *) (text))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (text))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (text))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (text))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (program) && ((size_t)(const void *)((program) + 1) - (size_t)(const void *)(program) == 1) && (__s2_len = strlen (program), __s2_len < 4) ? (__builtin_constant_p (text) && ((size_t)(const void *)((text) + 1) - (size_t)(const void *)(text) == 1) ? __builtin_strcmp (text, program) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (text); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (program))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (program))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (program))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (program))[3]); } } __result; }))) : __builtin_strcmp (text, program)))); }) : strncmp (text, program, wordlen)))) {
- return (__extension__ (__builtin_constant_p (program) && ((size_t)(const void *)((program) + 1) - (size_t)(const void *)(program) == 1) ? (((__const char *) (program))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen (program) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, program, __len); __retval; })) : __strdup (program)));
- }
- }
- return ((void *)0);
- }
- static vector_obj* gCompList;
- static void readline_env_completion_make_completion_list()
- {
- int i;
- for(i=0; i<((vector_obj*)gCompList)->mCount; i++) {
- string_delete(((vector_obj*)gCompList)->mTable[i]);
- }
- vector_clear(gCompList);
- extern char **environ;
- char** p;
- for(p = environ; *p; p++) {
- char env_name[256];
- char* p2 = env_name;
- char* p3 = *p;
- *p2++ = '$';
- while(*p3 != '=') {
- *p2++ = *p3++;
- }
- *p2 = 0;
- vector_add(gCompList, string_new(env_name));
- }
- hash_it* it = hash_loop_begin(gGlobals);
- while(it) {
- char* key = hash_loop_key(it);
- char env_name[256];
- strcpy(env_name, "$");
- strcat(env_name, key);
- vector_add(gCompList, string_new(env_name));
- it = hash_loop_next(it);
- }
- it = hash_loop_begin(gArrays);
- while(it) {
- char* key = hash_loop_key(it);
- char env_name[256];
- strcpy(env_name, "$");
- strcat(env_name, key);
- vector_add(gCompList, string_new(env_name));
- it = hash_loop_next(it);
- }
- it = hash_loop_begin(gHashs);
- while(it) {
- char* key = hash_loop_key(it);
- char env_name[256];
- strcpy(env_name, "$");
- strcat(env_name, key);
- vector_add(gCompList, string_new(env_name));
- it = hash_loop_next(it);
- }
- (void)vector_sort(gCompList, name_sort);
- }
- char* readline_env_completion(const char* text, int stat)
- {
- static int index, wordlen;
- static hash_it* git;
- static hash_it* ait;
- static hash_it* hit;
- if(stat == 0) {
- wordlen = strlen(text);
- index = 0;
- readline_env_completion_make_completion_list();
- }
- while(1) {
- if(index < ((vector_obj*)gCompList)->mCount) {
- char* env = ((string_obj*)((vector_obj*)gCompList)->mTable[index])->mStr;
- index++;
- if((__extension__ (__builtin_constant_p (wordlen) && ((__builtin_constant_p (text) && strlen (text) < ((size_t) (wordlen))) || (__builtin_constant_p (env) && strlen (env) < ((size_t) (wordlen)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (text) && __builtin_constant_p (env) && (__s1_len = strlen (text), __s2_len = strlen (env), (!((size_t)(const void *)((text) + 1) - (size_t)(const void *)(text) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((env) + 1) - (size_t)(const void *)(env) == 1) || __s2_len >= 4)) ? __builtin_strcmp (text, env) : (__builtin_constant_p (text) && ((size_t)(const void *)((text) + 1) - (size_t)(const void *)(text) == 1) && (__s1_len = strlen (text), __s1_len < 4) ? (__builtin_constant_p (env) && ((size_t)(const void *)((env) + 1) - (size_t)(const void *)(env) == 1) ? __builtin_strcmp (text, env) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (env); register int __result = (((__const unsigned char *) (__const char *) (text))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (text))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (text))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (text))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (env) && ((size_t)(const void *)((env) + 1) - (size_t)(const void *)(env) == 1) && (__s2_len = strlen (env), __s2_len < 4) ? (__builtin_constant_p (text) && ((size_t)(const void *)((text) + 1) - (size_t)(const void *)(text) == 1) ? __builtin_strcmp (text, env) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (text); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (env))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (env))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (env))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (env))[3]); } } __result; }))) : __builtin_strcmp (text, env)))); }) : strncmp (text, env, wordlen))) == 0) {
- return (__extension__ (__builtin_constant_p (env) && ((size_t)(const void *)((env) + 1) - (size_t)(const void *)(env) == 1) ? (((__const char *) (env))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen (env) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, env, __len); __retval; })) : __strdup (env)));
- }
- }
- # 840 "readline.c"
- else {
- break;
- }
- }
- return ((void *)0);
- }
- char** readline_on_complete(const char* text, int start, int end)
- {
- int program = 1;
- int env = 0;
- int user = 0;
- char* p = rl_line_buffer;
- while(*p == ' ' || *p == '\t' || *p == '\n') {
- p++;
- }
- int squote = 0;
- int dquote = 0;
- while(p < rl_line_buffer + end) {
- if(*p == '\\' && *(p+1) == 't') {
- p+=2;
- env = 0;
- user = 0;
- }
- else if(*p == '\\' && *(p+1) == 'n') {
- p+=2;
- env = 0;
- user = 0;
- }
- else if(*p == '\\' && *(p+1) == 'r') {
- p+=2;
- env = 0;
- user = 0;
- }
- else if(*p == '\\') {
- p+=2;
- env = 0;
- user = 0;
- }
- else if(!dquote && *p == '\'') {
- p++;
- squote = !squote;
- env = 0;
- user = 0;
- }
- else if(!squote && *p == '"') {
- p++;
- dquote = !dquote;
- env = 0;
- user = 0;
- }
- else if(!squote && *p == '$' && *(p+1) == '$' && *(p+2) == '(') {
- p+=3;
- program = 1;
- while(*p == ' ' || *p == '\t' || *p == '\n') {
- p++;
- }
- env = 0;
- user = 0;
- }
- else if(!squote && *p == '$' && *(p+1) == '(') {
- p+=2;
- program = 1;
- while(*p == ' ' || *p == '\t' || *p == '\n') {
- p++;
- }
- env = 0;
- user = 0;
- }
- else if(!dquote && !squote && *p == ')') {
- p++;
- program = 0;
- while(*p == ' ' || *p == '\t' || *p == '\n') {
- p++;
- }
- env = 0;
- user = 0;
- }
- else if(!squote && *p == '$' && *(p+1) == '$') {
- p+=2;
- env = 1;
- user = 0;
- }
- else if(!squote && *p == '$') {
- p+=2;
- env = 1;
- user = 0;
- }
- else if(squote || dquote) {
- p++;
- }
- else if(*p == '~') {
- p++;
- env = 0;
- user = 1;
- }
- else if(*p == '*' || *p == '?' || *p =='[' && (*(p+1) != ' ' && *(p+1) != '\t' && *(p+1) == '\n'))
- {
- p++;
- env = 0;
- user = 0;
- }
- else if(*p == '<' && program) {
- p++;
- program = 0;
- env = 0;
- user = 0;
- }
- else if(*p == ' ' || *p == '\t') {
- while(*p == ' ' || *p == '\t') {
- p++;
- }
- if(program) program = 0;
- env = 0;
- user = 0;
- }
- else if(*p == ':' || *p == '{') {
- p++;
- program = 1;
- while(*p == ' ' || *p == '\t' || *p == '\n') {
- p++;
- }
- env = 0;
- user = 0;
- }
- else if(*p == '|' && *(p+1) == '~') {
- p+=2;
- program = 1;
- while(*p == ' ' || *p == '\t' || *p == '\n') {
- p++;
- }
- env = 0;
- user = 0;
- }
- else if(*p == '|' && *(p+1) != '|') {
- p++;
- program = 1;
- while(*p == ' ' || *p == '\t' || *p == '\n') {
- p++;
- }
- env = 0;
- user = 0;
- }
- else if(*p == '&' && *(p+1) == '&') {
- p+=2;
- program = 1;
- while(*p == ' ' || *p == '\t' || *p == '\n') {
- p++;
- }
- env = 0;
- user = 0;
- }
- else if(*p == '|' && *(p+1) == '|') {
- p+=2;
- program = 1;
- while(*p == ' ' || *p == '\t' || *p == '\n') {
- p++;
- }
- env = 0;
- user = 0;
- }
- else if(*p == '&' && *(p+1) != '&') {
- p++;
- program = 1;
- while(*p == ' ' || *p == '\t' || *p == '\n') {
- p++;
- }
- env = 0;
- user = 0;
- }
- else if(*p == ';') {
- p++;
- program = 1;
- while(*p == ' ' || *p == '\t' || *p == '\n') {
- p++;
- }
- env = 0;
- user = 0;
- }
- else if(*p == '\n') {
- p++;
- program = 1;
- while(*p == ' ' || *p == '\t' || *p == '\n') {
- p++;
- }
- env = 0;
- user = 0;
- }
- else if(*p == '#') {
- p++;
- while(*p) {
- if(*p == '\n') {
- p++;
- program = 1;
- break;
- }
- else {
- p++;
- }
- }
- while(*p == ' ' || *p == '\t' || *p == '\n') {
- p++;
- }
- env = 0;
- user = 0;
- }
- else if(*p == '/') {
- env = 0;
- user = 0;
- p++;
- }
- else if(*p == 0) {
- break;
- }
- else if(*p == '(') {
- p++;
- program = 1;
- env = 0;
- user = 0;
- while(*p == ' ' || *p == '\t' || *p == '\n') {
- p++;
- }
- }
- else {
- p++;
- }
- }
- if(user) {
- rl_completion_append_character= 0;
- return rl_completion_matches(text, rl_username_completion_function);
- }
- else if(env) {
- rl_completion_append_character= ' ';
- return rl_completion_matches(text, readline_env_completion);
- }
- else if(program) {
- rl_completion_append_character= ' ';
- return rl_completion_matches(text, readline_program_completion);
- }
- return ((void *)0);
- }
- static _Bool shell_cmd;
- static _Bool quote_glob;
- static _Bool inhibit_tilde;
- # 1174 "readline.c"
- # 1 "./config.h" 1
- # 1175 "readline.c" 2
- # 1186 "readline.c"
- char *
- mbschr (s, c)
- const char *s;
- int c;
- {
- # 1227 "readline.c"
- return ((__extension__ (__builtin_constant_p (c) && !__builtin_constant_p (s) && (c) == '\0' ? (char *) __rawmemchr (s, c) : __builtin_strchr (s, c))));
- }
- int
- file_exists (fn)
- char *fn;
- {
- struct stat sb;
- return (stat (fn, &sb) == 0);
- }
- static char *
- quote_word_break_chars (text)
- char *text;
- {
- char *ret, *r, *s;
- int l;
- l = strlen (text);
- ret = (char *)malloc ((2 * l) + 1);
- for (s = text, r = ret; *s; s++)
- {
- if (*s == '\\')
- {
- *r++ = '\\';
- *r++ = *++s;
- if (*s == '\0')
- break;
- continue;
- }
- if (mbschr (rl_completer_word_break_characters, *s)) *r++ = '\\';
- *r++ = *s;
- }
- *r = '\0';
- return ret;
- }
- static int completion_quoting_style = 3;
- char *
- sh_single_quote (string)
- char *string;
- {
- register int c;
- char *result, *r, *s;
- result = (char *)malloc (3 + (4 * strlen (string)));
- r = result;
- *r++ = '\'';
- for (s = string; s && (c = *s); s++)
- {
- *r++ = c;
- if (c == '\'')
- {
- *r++ = '\\';
- *r++ = '\'';
- *r++ = '\'';
- }
- }
- *r++ = '\'';
- *r = '\0';
- return (result);
- }
- # 1339 "readline.c"
- char *
- sh_mkdoublequoted (s, slen, flags)
- const char *s;
- int slen, flags;
- {
- char *r, *ret;
- int rlen;
- rlen = (flags == 0) ? slen + 3 : (2 * slen) + 1;
- ret = r = (char *)malloc (rlen);
- *r++ = '"';
- while (*s)
- {
- if (flags && *s == '"')
- *r++ = '\\';
- *r++ = *s++;
- }
- *r++ = '"';
- *r = '\0';
- return ret;
- }
- # 1403 "readline.c"
- char *
- sh_backslash_quote (string)
- char *string;
- {
- int c;
- char *result, *r, *s;
- result = (char *)malloc (2 * strlen (string) + 1);
- for (r = result, s = string; s && (c = *s); s++)
- {
- switch (c)
- {
- case ' ': case '\t': case '\n':
- case '\'': case '"': case '\\':
- case '|': case '&': case ';':
- case '(': case ')': case '<': case '>':
- case '!': case '{': case '}':
- case '*': case '[': case '?': case ']':
- case '^':
- case '$': case '`':
- case ',':
- *r++ = '\\';
- *r++ = c;
- break;
- # 1441 "readline.c"
- case '#':
- if (s == string)
- *r++ = '\\';
- default:
- *r++ = c;
- break;
- }
- }
- *r = '\0';
- return (result);
- }
- static char *
- bash_dequote_filename (const char *text, int quote_char)
- {
- char *ret;
- const char *p;
- char *r;
- int l, quoted;
- l = strlen (text);
- ret = (char*)malloc (l + 1);
- for (quoted = quote_char, p = text, r = ret; p && *p; p++)
- {
- if (*p == '\\')
- {
- *r++ = *++p;
- if (*p == '\0')
- break;
- continue;
- }
- if (quoted && *p == quoted)
- {
- quoted = 0;
- continue;
- }
- if (quoted == 0 && (*p == '\'' || *p == '"'))
- {
- quoted = *p;
- continue;
- }
- *r++ = *p;
- }
- *r = '\0';
- return ret;
- }
- static int skip_quoted(const char *s, int i, char q)
- {
- while(s[i] && s[i]!=q)
- {
- if(s[i]=='\\' && s[i+1])
- i++;
- i++;
- }
- if(s[i])
- i++;
- return i;
- }
- int lftp_char_is_quoted(const char *string,int eindex)
- {
- int i, pass_next;
- for (i = pass_next = 0; i <= eindex; i++)
- {
- if (pass_next)
- {
- pass_next = 0;
- if (i >= eindex)
- return 1;
- continue;
- }
- else if (string[i] == '"' || string[i] == '\'')
- {
- char quote = string[i];
- i = skip_quoted (string, ++i, quote);
- if (i > eindex)
- return 1;
- i--;
- }
- else if (string[i] == '\\')
- {
- pass_next = 1;
- continue;
- }
- }
- return (0);
- }
- # 1554 "readline.c"
- static char *
- double_quote (char *string)
- {
- register int c;
- char *result, *r, *s;
- result = (char *)malloc (3 + (2 * strlen (string)));
- r = result;
- *r++ = '"';
- for (s = string; s && (c = *s); s++)
- {
- switch (c)
- {
- case '$':
- case '`':
- if(!shell_cmd)
- goto def;
- case '"':
- case '\\':
- *r++ = '\\';
- default: def:
- *r++ = c;
- break;
- }
- }
- *r++ = '"';
- *r = '\0';
- return (result);
- }
- static char *
- single_quote (char *string)
- {
- register int c;
- char *result, *r, *s;
- result = (char *)malloc (3 + (4 * strlen (string)));
- r = result;
- *r++ = '\'';
- for (s = string; s && (c = *s); s++)
- {
- *r++ = c;
- if (c == '\'')
- {
- *r++ = '\\';
- *r++ = '\'';
- *r++ = '\'';
- }
- }
- *r++ = '\'';
- *r = '\0';
- return (result);
- }
- static char *
- backslash_quote (char *string)
- {
- int c;
- char *result, *r, *s;
- result = (char*)malloc (2 * strlen (string) + 1);
- for (r = result, s = string; s && (c = *s); s++)
- {
- switch (c)
- {
- case '(': case ')':
- case '{': case '}':
- case '^':
- case '$': case '`':
- if(!shell_cmd)
- goto def;
- case '*': case '[': case '?': case ']':
- if(!shell_cmd && !quote_glob)
- goto def;
- case ' ': case '\t': case '\n':
- case '"': case '\'': case '\\':
- case '|': case '&': case ';':
- case '<': case '>': case '!':
- *r++ = '\\';
- *r++ = c;
- break;
- case '#':
- if(!shell_cmd)
- goto def;
- if (s == string)
- *r++ = '\\';
- default: def:
- *r++ = c;
- break;
- }
- }
- *r = '\0';
- return (result);
- }
- static char *
- bash_quote_filename (char *s, int rtype, char *qcp)
- {
- char *rtext, *mtext, *ret;
- int rlen, cs;
- rtext = (char *)((void *)0);
- # 1690 "readline.c"
- mtext = s;
- cs = completion_quoting_style;
- if (*qcp == '"')
- cs = 1;
- else if (*qcp == '\'')
- cs = 2;
- # 1716 "readline.c"
- switch (cs)
- {
- case 1:
- rtext = double_quote (mtext);
- break;
- case 2:
- rtext = single_quote (mtext);
- break;
- case 3:
- rtext = backslash_quote (mtext);
- break;
- }
- if (mtext != s)
- free (mtext);
- if (rtext && cs == 3)
- {
- mtext = quote_word_break_chars (rtext);
- free (rtext);
- rtext = mtext;
- }
- rlen = strlen (rtext);
- ret = (char*)malloc (rlen + 1);
- strcpy (ret, rtext);
- if (rtype == 2 && cs != 3)
- ret[rlen - 1] = '\0';
- free (rtext);
- return ret;
- }
- # 1765 "readline.c"
- void readline_init()
- {
- rl_attempted_completion_function = readline_on_complete;
- rl_completer_quote_characters = "\"'";
- rl_completer_word_break_characters = " \t\n\"'|{}!&;()<>=%/";
- rl_filename_quote_characters = " \\\t\n\"|$*?[]!<>{}&;#()'%";
- rl_completion_append_character= ' ';
- rl_char_is_quoted_p = (rl_linebuf_func_t*)lftp_char_is_quoted;
- rl_filename_quoting_function = bash_quote_filename;
- rl_filename_dequoting_function = (rl_dequote_func_t*)bash_dequote_filename;
- gCompList = vector_new(100);
- gEditingDir = string_new("");
- }
- void readline_final()
- {
- string_delete(gEditingDir);
- int i;
- for(i=0; i<((vector_obj*)gCompList)->mCount; i++) {
- string_delete(((vector_obj*)gCompList)->mTable[i]);
- }
- vector_delete(gCompList);
- if(files) {
- int i;
- for(i=0; i<((vector_obj*)files)->mCount; i++) {
- string_delete(((vector_obj*)files)->mTable[i]);
- }
- vector_delete(files);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment