Guest User

Untitled

a guest
Dec 17th, 2010
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 204.67 KB | None | 0 0
  1. # 1 "readline.c"
  2. # 1 "<built-in>"
  3. # 1 "<command-line>"
  4. # 1 "readline.c"
  5. # 1 "saphire.h" 1
  6. # 9 "saphire.h"
  7. # 1 "saphire_vector.h" 1
  8. # 13 "saphire_vector.h"
  9. typedef struct {
  10. void** mTable;
  11. int mTableSize;
  12.  
  13. int mCount;
  14. } vector_obj;
  15. # 31 "saphire_vector.h"
  16. vector_obj* vector_new(int first_size);
  17.  
  18.  
  19.  
  20.  
  21. void vector_delete(vector_obj* self);
  22.  
  23. vector_obj* vector_clone(vector_obj* v);
  24. # 69 "saphire_vector.h"
  25. int vector_index(vector_obj* self, void* item);
  26.  
  27. void vector_exchange(vector_obj* self, int n, void* item);
  28. void vector_add(vector_obj* self, void* item);
  29. void vector_insert(vector_obj* self, int n, void* item);
  30. void* vector_erase(vector_obj* self, int n);
  31. void* vector_pop_back(vector_obj* self);
  32. void* vector_pop_front(vector_obj* self);
  33. void vector_clear(vector_obj* self);
  34.  
  35. typedef int (*sort_if)(void* left, void* right);
  36. int vector_sort(vector_obj* self, sort_if fun);
  37. # 10 "saphire.h" 2
  38. # 1 "saphire_list.h" 1
  39. # 13 "saphire_list.h"
  40. typedef struct _list_it {
  41. void* mItem;
  42.  
  43. struct _list_it* mPrevIt;
  44. struct _list_it* mNextIt;
  45. } list_it;
  46.  
  47. typedef struct {
  48. list_it* mEntryIt;
  49. list_it* mLastIt;
  50. int mCount;
  51. } list_obj;
  52. # 37 "saphire_list.h"
  53. list_obj* list_new();
  54.  
  55.  
  56.  
  57.  
  58. void list_delete(list_obj* self);
  59.  
  60. int list_size(list_obj* self);
  61. int list_empty(list_obj* self);
  62. int list_index_of(list_obj* self, void* item);
  63. void list_push_front(list_obj* self, void* item);
  64. void list_push_back(list_obj* self, void* item);
  65. void* list_pop_front(list_obj* self);
  66. void* list_pop_back(list_obj* self);
  67. void list_clear(list_obj* self);
  68.  
  69. list_it* list_begin(list_obj* self);
  70. list_it* list_last(list_obj* self);
  71. list_it* list_at(list_obj* self, int index);
  72. list_it* list_find(list_obj* self, void* item);
  73. void* list_item(list_it* self);
  74. list_it* list_next(list_it* self);
  75. list_it* list_prev(list_it* self);
  76. void list_replace(list_it* self, void* item);
  77. void list_erase(list_it* self, list_obj* owner);
  78. void list_insert_front(list_it* self, void* item, list_obj* owner);
  79. void list_insert_back(list_it* self, void* item, list_obj* owner);
  80. # 11 "saphire.h" 2
  81. # 1 "saphire_string.h" 1
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89. # 1 "saphire_kanji.h" 1
  90. # 9 "saphire_kanji.h"
  91. # 1 "saphire_extra.h" 1
  92. # 23 "saphire_extra.h"
  93. void mygetcwd( char* result);
  94. void parentname( char* result, char* path);
  95. void extname( char* result, char* name);
  96. void noextname( char* result, char* name);
  97.  
  98. char* mystrcasestr(const char *haystack, const char *needle);
  99. void mystrtolower(char* result);
  100.  
  101. int correct_path(char* current_path, char* path, char* path2);
  102. # 10 "saphire_kanji.h" 2
  103. # 1 "/usr/include/wchar.h" 1 3 4
  104. # 28 "/usr/include/wchar.h" 3 4
  105. # 1 "/usr/include/features.h" 1 3 4
  106. # 356 "/usr/include/features.h" 3 4
  107. # 1 "/usr/include/sys/cdefs.h" 1 3 4
  108. # 353 "/usr/include/sys/cdefs.h" 3 4
  109. # 1 "/usr/include/bits/wordsize.h" 1 3 4
  110. # 354 "/usr/include/sys/cdefs.h" 2 3 4
  111. # 357 "/usr/include/features.h" 2 3 4
  112. # 380 "/usr/include/features.h" 3 4
  113. # 1 "/usr/include/gnu/stubs.h" 1 3 4
  114.  
  115.  
  116.  
  117. # 1 "/usr/include/bits/wordsize.h" 1 3 4
  118. # 5 "/usr/include/gnu/stubs.h" 2 3 4
  119.  
  120.  
  121.  
  122.  
  123. # 1 "/usr/include/gnu/stubs-64.h" 1 3 4
  124. # 10 "/usr/include/gnu/stubs.h" 2 3 4
  125. # 381 "/usr/include/features.h" 2 3 4
  126. # 29 "/usr/include/wchar.h" 2 3 4
  127. # 37 "/usr/include/wchar.h" 3 4
  128. # 1 "/usr/include/stdio.h" 1 3 4
  129. # 45 "/usr/include/stdio.h" 3 4
  130. struct _IO_FILE;
  131.  
  132.  
  133.  
  134. typedef struct _IO_FILE FILE;
  135.  
  136.  
  137.  
  138.  
  139.  
  140. # 65 "/usr/include/stdio.h" 3 4
  141. typedef struct _IO_FILE __FILE;
  142. # 38 "/usr/include/wchar.h" 2 3 4
  143.  
  144.  
  145. # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stdarg.h" 1 3 4
  146. # 40 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stdarg.h" 3 4
  147. typedef __builtin_va_list __gnuc_va_list;
  148. # 41 "/usr/include/wchar.h" 2 3 4
  149.  
  150. # 1 "/usr/include/bits/wchar.h" 1 3 4
  151. # 43 "/usr/include/wchar.h" 2 3 4
  152. # 52 "/usr/include/wchar.h" 3 4
  153. # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 1 3 4
  154. # 211 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 3 4
  155. typedef long unsigned int size_t;
  156. # 323 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 3 4
  157. typedef int wchar_t;
  158. # 352 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 3 4
  159. typedef unsigned int wint_t;
  160. # 53 "/usr/include/wchar.h" 2 3 4
  161. # 83 "/usr/include/wchar.h" 3 4
  162. typedef struct
  163. {
  164. int __count;
  165. union
  166. {
  167.  
  168. unsigned int __wch;
  169.  
  170.  
  171.  
  172. char __wchb[4];
  173. } __value;
  174. } __mbstate_t;
  175. # 104 "/usr/include/wchar.h" 3 4
  176.  
  177.  
  178. typedef __mbstate_t mbstate_t;
  179.  
  180. # 129 "/usr/include/wchar.h" 3 4
  181.  
  182.  
  183.  
  184.  
  185.  
  186. struct tm;
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196. extern wchar_t *wcscpy (wchar_t *__restrict __dest,
  197. __const wchar_t *__restrict __src) __attribute__ ((__nothrow__));
  198.  
  199. extern wchar_t *wcsncpy (wchar_t *__restrict __dest,
  200. __const wchar_t *__restrict __src, size_t __n)
  201. __attribute__ ((__nothrow__));
  202.  
  203.  
  204. extern wchar_t *wcscat (wchar_t *__restrict __dest,
  205. __const wchar_t *__restrict __src) __attribute__ ((__nothrow__));
  206.  
  207. extern wchar_t *wcsncat (wchar_t *__restrict __dest,
  208. __const wchar_t *__restrict __src, size_t __n)
  209. __attribute__ ((__nothrow__));
  210.  
  211.  
  212. extern int wcscmp (__const wchar_t *__s1, __const wchar_t *__s2)
  213. __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  214.  
  215. extern int wcsncmp (__const wchar_t *__s1, __const wchar_t *__s2, size_t __n)
  216. __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  217.  
  218.  
  219.  
  220.  
  221. extern int wcscasecmp (__const wchar_t *__s1, __const wchar_t *__s2) __attribute__ ((__nothrow__));
  222.  
  223.  
  224. extern int wcsncasecmp (__const wchar_t *__s1, __const wchar_t *__s2,
  225. size_t __n) __attribute__ ((__nothrow__));
  226.  
  227.  
  228.  
  229. # 1 "/usr/include/xlocale.h" 1 3 4
  230. # 28 "/usr/include/xlocale.h" 3 4
  231. typedef struct __locale_struct
  232. {
  233.  
  234. struct __locale_data *__locales[13];
  235.  
  236.  
  237. const unsigned short int *__ctype_b;
  238. const int *__ctype_tolower;
  239. const int *__ctype_toupper;
  240.  
  241.  
  242. const char *__names[13];
  243. } *__locale_t;
  244.  
  245.  
  246. typedef __locale_t locale_t;
  247. # 178 "/usr/include/wchar.h" 2 3 4
  248.  
  249. extern int wcscasecmp_l (__const wchar_t *__s1, __const wchar_t *__s2,
  250. __locale_t __loc) __attribute__ ((__nothrow__));
  251.  
  252. extern int wcsncasecmp_l (__const wchar_t *__s1, __const wchar_t *__s2,
  253. size_t __n, __locale_t __loc) __attribute__ ((__nothrow__));
  254.  
  255.  
  256.  
  257.  
  258.  
  259. extern int wcscoll (__const wchar_t *__s1, __const wchar_t *__s2) __attribute__ ((__nothrow__));
  260.  
  261.  
  262.  
  263. extern size_t wcsxfrm (wchar_t *__restrict __s1,
  264. __const wchar_t *__restrict __s2, size_t __n) __attribute__ ((__nothrow__));
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273. extern int wcscoll_l (__const wchar_t *__s1, __const wchar_t *__s2,
  274. __locale_t __loc) __attribute__ ((__nothrow__));
  275.  
  276.  
  277.  
  278.  
  279. extern size_t wcsxfrm_l (wchar_t *__s1, __const wchar_t *__s2,
  280. size_t __n, __locale_t __loc) __attribute__ ((__nothrow__));
  281.  
  282.  
  283. extern wchar_t *wcsdup (__const wchar_t *__s) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294. extern wchar_t *wcschr (__const wchar_t *__wcs, wchar_t __wc)
  295. __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  296. # 234 "/usr/include/wchar.h" 3 4
  297. extern wchar_t *wcsrchr (__const wchar_t *__wcs, wchar_t __wc)
  298. __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  299.  
  300.  
  301. # 246 "/usr/include/wchar.h" 3 4
  302.  
  303.  
  304.  
  305. extern size_t wcscspn (__const wchar_t *__wcs, __const wchar_t *__reject)
  306. __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  307.  
  308.  
  309. extern size_t wcsspn (__const wchar_t *__wcs, __const wchar_t *__accept)
  310. __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  311. # 263 "/usr/include/wchar.h" 3 4
  312. extern wchar_t *wcspbrk (__const wchar_t *__wcs, __const wchar_t *__accept)
  313. __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  314. # 274 "/usr/include/wchar.h" 3 4
  315. extern wchar_t *wcsstr (__const wchar_t *__haystack, __const wchar_t *__needle)
  316. __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  317.  
  318.  
  319.  
  320. extern wchar_t *wcstok (wchar_t *__restrict __s,
  321. __const wchar_t *__restrict __delim,
  322. wchar_t **__restrict __ptr) __attribute__ ((__nothrow__));
  323.  
  324.  
  325. extern size_t wcslen (__const wchar_t *__s) __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  326.  
  327. # 303 "/usr/include/wchar.h" 3 4
  328. extern size_t wcsnlen (__const wchar_t *__s, size_t __maxlen)
  329. __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  330.  
  331.  
  332.  
  333.  
  334. # 317 "/usr/include/wchar.h" 3 4
  335. extern wchar_t *wmemchr (__const wchar_t *__s, wchar_t __c, size_t __n)
  336. __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  337.  
  338.  
  339.  
  340. extern int wmemcmp (__const wchar_t *__restrict __s1,
  341. __const wchar_t *__restrict __s2, size_t __n)
  342. __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  343.  
  344.  
  345. extern wchar_t *wmemcpy (wchar_t *__restrict __s1,
  346. __const wchar_t *__restrict __s2, size_t __n) __attribute__ ((__nothrow__));
  347.  
  348.  
  349.  
  350. extern wchar_t *wmemmove (wchar_t *__s1, __const wchar_t *__s2, size_t __n)
  351. __attribute__ ((__nothrow__));
  352.  
  353.  
  354. extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) __attribute__ ((__nothrow__));
  355.  
  356. # 348 "/usr/include/wchar.h" 3 4
  357.  
  358.  
  359.  
  360. extern wint_t btowc (int __c) __attribute__ ((__nothrow__));
  361.  
  362.  
  363.  
  364. extern int wctob (wint_t __c) __attribute__ ((__nothrow__));
  365.  
  366.  
  367.  
  368. extern int mbsinit (__const mbstate_t *__ps) __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  369.  
  370.  
  371.  
  372. extern size_t mbrtowc (wchar_t *__restrict __pwc,
  373. __const char *__restrict __s, size_t __n,
  374. mbstate_t *__p) __attribute__ ((__nothrow__));
  375.  
  376.  
  377. extern size_t wcrtomb (char *__restrict __s, wchar_t __wc,
  378. mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
  379.  
  380.  
  381. extern size_t __mbrlen (__const char *__restrict __s, size_t __n,
  382. mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
  383. extern size_t mbrlen (__const char *__restrict __s, size_t __n,
  384. mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393. extern wint_t __btowc_alias (int __c) __asm ("btowc");
  394. extern __inline wint_t
  395. __attribute__ ((__nothrow__)) btowc (int __c)
  396. { return (__builtin_constant_p (__c) && __c >= '\0' && __c <= '\x7f'
  397. ? (wint_t) __c : __btowc_alias (__c)); }
  398.  
  399. extern int __wctob_alias (wint_t __c) __asm ("wctob");
  400. extern __inline int
  401. __attribute__ ((__nothrow__)) wctob (wint_t __wc)
  402. { return (__builtin_constant_p (__wc) && __wc >= L'\0' && __wc <= L'\x7f'
  403. ? (int) __wc : __wctob_alias (__wc)); }
  404.  
  405. extern __inline size_t
  406. __attribute__ ((__nothrow__)) mbrlen (__const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps)
  407.  
  408. { return (__ps != ((void *)0)
  409. ? mbrtowc (((void *)0), __s, __n, __ps) : __mbrlen (__s, __n, ((void *)0))); }
  410.  
  411.  
  412.  
  413.  
  414.  
  415. extern size_t mbsrtowcs (wchar_t *__restrict __dst,
  416. __const char **__restrict __src, size_t __len,
  417. mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
  418.  
  419.  
  420.  
  421. extern size_t wcsrtombs (char *__restrict __dst,
  422. __const wchar_t **__restrict __src, size_t __len,
  423. mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430. extern size_t mbsnrtowcs (wchar_t *__restrict __dst,
  431. __const char **__restrict __src, size_t __nmc,
  432. size_t __len, mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
  433.  
  434.  
  435.  
  436. extern size_t wcsnrtombs (char *__restrict __dst,
  437. __const wchar_t **__restrict __src,
  438. size_t __nwc, size_t __len,
  439. mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
  440. # 445 "/usr/include/wchar.h" 3 4
  441.  
  442.  
  443.  
  444. extern double wcstod (__const wchar_t *__restrict __nptr,
  445. wchar_t **__restrict __endptr) __attribute__ ((__nothrow__));
  446.  
  447.  
  448.  
  449.  
  450.  
  451. extern float wcstof (__const wchar_t *__restrict __nptr,
  452. wchar_t **__restrict __endptr) __attribute__ ((__nothrow__));
  453. extern long double wcstold (__const wchar_t *__restrict __nptr,
  454. wchar_t **__restrict __endptr) __attribute__ ((__nothrow__));
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462. extern long int wcstol (__const wchar_t *__restrict __nptr,
  463. wchar_t **__restrict __endptr, int __base) __attribute__ ((__nothrow__));
  464.  
  465.  
  466.  
  467. extern unsigned long int wcstoul (__const wchar_t *__restrict __nptr,
  468. wchar_t **__restrict __endptr, int __base)
  469. __attribute__ ((__nothrow__));
  470.  
  471.  
  472.  
  473.  
  474.  
  475.  
  476. __extension__
  477. extern long long int wcstoll (__const wchar_t *__restrict __nptr,
  478. wchar_t **__restrict __endptr, int __base)
  479. __attribute__ ((__nothrow__));
  480.  
  481.  
  482.  
  483. __extension__
  484. extern unsigned long long int wcstoull (__const wchar_t *__restrict __nptr,
  485. wchar_t **__restrict __endptr,
  486. int __base) __attribute__ ((__nothrow__));
  487.  
  488. # 564 "/usr/include/wchar.h" 3 4
  489. extern wchar_t *wcpcpy (wchar_t *__dest, __const wchar_t *__src) __attribute__ ((__nothrow__));
  490.  
  491.  
  492.  
  493. extern wchar_t *wcpncpy (wchar_t *__dest, __const wchar_t *__src, size_t __n)
  494. __attribute__ ((__nothrow__));
  495. # 578 "/usr/include/wchar.h" 3 4
  496. extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) __attribute__ ((__nothrow__));
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503. extern int fwide (__FILE *__fp, int __mode) __attribute__ ((__nothrow__));
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510. extern int fwprintf (__FILE *__restrict __stream,
  511. __const wchar_t *__restrict __format, ...)
  512. ;
  513.  
  514.  
  515.  
  516.  
  517. extern int wprintf (__const wchar_t *__restrict __format, ...)
  518. ;
  519.  
  520. extern int swprintf (wchar_t *__restrict __s, size_t __n,
  521. __const wchar_t *__restrict __format, ...)
  522. __attribute__ ((__nothrow__)) ;
  523.  
  524.  
  525.  
  526.  
  527.  
  528. extern int vfwprintf (__FILE *__restrict __s,
  529. __const wchar_t *__restrict __format,
  530. __gnuc_va_list __arg)
  531. ;
  532.  
  533.  
  534.  
  535.  
  536. extern int vwprintf (__const wchar_t *__restrict __format,
  537. __gnuc_va_list __arg)
  538. ;
  539.  
  540.  
  541. extern int vswprintf (wchar_t *__restrict __s, size_t __n,
  542. __const wchar_t *__restrict __format,
  543. __gnuc_va_list __arg)
  544. __attribute__ ((__nothrow__)) ;
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551. extern int fwscanf (__FILE *__restrict __stream,
  552. __const wchar_t *__restrict __format, ...)
  553. ;
  554.  
  555.  
  556.  
  557.  
  558. extern int wscanf (__const wchar_t *__restrict __format, ...)
  559. ;
  560.  
  561. extern int swscanf (__const wchar_t *__restrict __s,
  562. __const wchar_t *__restrict __format, ...)
  563. __attribute__ ((__nothrow__)) ;
  564. # 654 "/usr/include/wchar.h" 3 4
  565. extern int fwscanf (__FILE *__restrict __stream, __const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc99_fwscanf")
  566.  
  567.  
  568. ;
  569. extern int wscanf (__const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc99_wscanf")
  570.  
  571. ;
  572. extern int swscanf (__const wchar_t *__restrict __s, __const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc99_swscanf") __attribute__ ((__nothrow__))
  573.  
  574.  
  575. ;
  576. # 678 "/usr/include/wchar.h" 3 4
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586. extern int vfwscanf (__FILE *__restrict __s,
  587. __const wchar_t *__restrict __format,
  588. __gnuc_va_list __arg)
  589. ;
  590.  
  591.  
  592.  
  593.  
  594. extern int vwscanf (__const wchar_t *__restrict __format,
  595. __gnuc_va_list __arg)
  596. ;
  597.  
  598. extern int vswscanf (__const wchar_t *__restrict __s,
  599. __const wchar_t *__restrict __format,
  600. __gnuc_va_list __arg)
  601. __attribute__ ((__nothrow__)) ;
  602.  
  603.  
  604.  
  605.  
  606.  
  607. extern int vfwscanf (__FILE *__restrict __s, __const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfwscanf")
  608.  
  609.  
  610. ;
  611. extern int vwscanf (__const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vwscanf")
  612.  
  613. ;
  614. extern int vswscanf (__const wchar_t *__restrict __s, __const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vswscanf") __attribute__ ((__nothrow__))
  615.  
  616.  
  617. ;
  618. # 734 "/usr/include/wchar.h" 3 4
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628. extern wint_t fgetwc (__FILE *__stream);
  629. extern wint_t getwc (__FILE *__stream);
  630.  
  631.  
  632.  
  633.  
  634.  
  635. extern wint_t getwchar (void);
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642. extern wint_t fputwc (wchar_t __wc, __FILE *__stream);
  643. extern wint_t putwc (wchar_t __wc, __FILE *__stream);
  644.  
  645.  
  646.  
  647.  
  648.  
  649. extern wint_t putwchar (wchar_t __wc);
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657. extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n,
  658. __FILE *__restrict __stream);
  659.  
  660.  
  661.  
  662.  
  663.  
  664. extern int fputws (__const wchar_t *__restrict __ws,
  665. __FILE *__restrict __stream);
  666.  
  667.  
  668.  
  669.  
  670.  
  671.  
  672. extern wint_t ungetwc (wint_t __wc, __FILE *__stream);
  673.  
  674. # 849 "/usr/include/wchar.h" 3 4
  675.  
  676.  
  677.  
  678.  
  679. extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize,
  680. __const wchar_t *__restrict __format,
  681. __const struct tm *__restrict __tp) __attribute__ ((__nothrow__));
  682.  
  683. # 889 "/usr/include/wchar.h" 3 4
  684.  
  685. # 11 "saphire_kanji.h" 2
  686.  
  687. enum eKanjiCode { kEucjp, kSjis, kUtf8, kUtf8Mac, kUnknown };
  688. extern char* gKanjiCodeString[5];
  689. extern char* gIconvKanjiCodeName[5];
  690.  
  691. void kanji_init();
  692. void kanji_final();
  693.  
  694. int is_utf8_bytes(char* mbs);
  695.  
  696. int str_pointer2kanjipos(enum eKanjiCode code, char* mbs, char* point);
  697.  
  698. char* str_kanjipos2pointer(enum eKanjiCode code, char* mbs, int pos);
  699.  
  700. int str_termlen_range(enum eKanjiCode code, char* mbs, int utfpos1, int utfpos2);
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708. extern int is_hankaku(enum eKanjiCode code, unsigned char c);
  709.  
  710. extern int is_kanji(enum eKanjiCode code, unsigned char c);
  711.  
  712. extern int is_all_ascii(char* buf);
  713.  
  714.  
  715. extern int str_termlen(enum eKanjiCode code, char* mbs);
  716.  
  717. extern int str_termlen2(enum eKanjiCode code, char* mbs, int pos);
  718.  
  719. extern int str_kanjilen(enum eKanjiCode code, char* mbs);
  720.  
  721.  
  722.  
  723. extern void str_cut(enum eKanjiCode code, char* mbs, int termsize
  724. , char* dest_mbs, int dest_byte);
  725.  
  726.  
  727. extern void str_cut2(enum eKanjiCode code, char* mbs, int termsize
  728. , char* dest_mbs, int dest_byte);
  729.  
  730.  
  731.  
  732. extern void str_cut3(enum eKanjiCode code, char* mbs, int termsize
  733. , char* dest_mbs, int dest_byte);
  734. # 9 "saphire_string.h" 2
  735.  
  736.  
  737. typedef struct
  738. {
  739. char* mStr;
  740. int mLen;
  741.  
  742. int mMallocLen;
  743. } string_obj;
  744. # 31 "saphire_string.h"
  745. string_obj* string_new(char* str);
  746.  
  747.  
  748.  
  749.  
  750.  
  751. void string_delete(string_obj* str);
  752. # 53 "saphire_string.h"
  753. char* string_c_str(string_obj* obj);
  754. # 67 "saphire_string.h"
  755. void string_push_back(string_obj* self, char* key);
  756. void string_push_back2(string_obj* self, char key);
  757. void string_push_back3(string_obj* self, char* str, int n);
  758.  
  759.  
  760. void string_put(string_obj* self, char* str);
  761.  
  762. void string_put2(string_obj* self, char c);
  763.  
  764. void string_trunc(string_obj* self, int n);
  765.  
  766.  
  767. void string_insert(string_obj* obj, int pos, char* str);
  768. void string_erase(string_obj* obj, int pos, int len);
  769.  
  770. void string_toupper(string_obj* self, enum eKanjiCode code);
  771. void string_tolower(string_obj* self, enum eKanjiCode code);
  772. # 12 "saphire.h" 2
  773.  
  774. # 1 "saphire_curses.h" 1
  775. # 9 "saphire_curses.h"
  776. # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stdarg.h" 1 3 4
  777. # 102 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stdarg.h" 3 4
  778. typedef __gnuc_va_list va_list;
  779. # 10 "saphire_curses.h" 2
  780. # 1 "/usr/include/sys/ioctl.h" 1 3 4
  781. # 24 "/usr/include/sys/ioctl.h" 3 4
  782.  
  783.  
  784.  
  785. # 1 "/usr/include/bits/ioctls.h" 1 3 4
  786. # 24 "/usr/include/bits/ioctls.h" 3 4
  787. # 1 "/usr/include/asm/ioctls.h" 1 3 4
  788. # 1 "/usr/include/asm-generic/ioctls.h" 1 3 4
  789.  
  790.  
  791.  
  792. # 1 "/usr/include/linux/ioctl.h" 1 3 4
  793.  
  794.  
  795.  
  796. # 1 "/usr/include/asm/ioctl.h" 1 3 4
  797. # 1 "/usr/include/asm-generic/ioctl.h" 1 3 4
  798. # 1 "/usr/include/asm/ioctl.h" 2 3 4
  799. # 5 "/usr/include/linux/ioctl.h" 2 3 4
  800. # 5 "/usr/include/asm-generic/ioctls.h" 2 3 4
  801. # 1 "/usr/include/asm/ioctls.h" 2 3 4
  802. # 25 "/usr/include/bits/ioctls.h" 2 3 4
  803. # 28 "/usr/include/sys/ioctl.h" 2 3 4
  804.  
  805.  
  806. # 1 "/usr/include/bits/ioctl-types.h" 1 3 4
  807. # 25 "/usr/include/bits/ioctl-types.h" 3 4
  808. # 1 "/usr/include/asm/ioctls.h" 1 3 4
  809. # 26 "/usr/include/bits/ioctl-types.h" 2 3 4
  810.  
  811.  
  812. struct winsize
  813. {
  814. unsigned short int ws_row;
  815. unsigned short int ws_col;
  816. unsigned short int ws_xpixel;
  817. unsigned short int ws_ypixel;
  818. };
  819.  
  820.  
  821. struct termio
  822. {
  823. unsigned short int c_iflag;
  824. unsigned short int c_oflag;
  825. unsigned short int c_cflag;
  826. unsigned short int c_lflag;
  827. unsigned char c_line;
  828. unsigned char c_cc[8];
  829. };
  830. # 31 "/usr/include/sys/ioctl.h" 2 3 4
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837. # 1 "/usr/include/sys/ttydefaults.h" 1 3 4
  838. # 38 "/usr/include/sys/ioctl.h" 2 3 4
  839.  
  840.  
  841.  
  842.  
  843. extern int ioctl (int __fd, unsigned long int __request, ...) __attribute__ ((__nothrow__));
  844.  
  845.  
  846. # 11 "saphire_curses.h" 2
  847. # 1 "/usr/include/sys/types.h" 1 3 4
  848. # 28 "/usr/include/sys/types.h" 3 4
  849.  
  850.  
  851. # 1 "/usr/include/bits/types.h" 1 3 4
  852. # 28 "/usr/include/bits/types.h" 3 4
  853. # 1 "/usr/include/bits/wordsize.h" 1 3 4
  854. # 29 "/usr/include/bits/types.h" 2 3 4
  855.  
  856.  
  857. typedef unsigned char __u_char;
  858. typedef unsigned short int __u_short;
  859. typedef unsigned int __u_int;
  860. typedef unsigned long int __u_long;
  861.  
  862.  
  863. typedef signed char __int8_t;
  864. typedef unsigned char __uint8_t;
  865. typedef signed short int __int16_t;
  866. typedef unsigned short int __uint16_t;
  867. typedef signed int __int32_t;
  868. typedef unsigned int __uint32_t;
  869.  
  870. typedef signed long int __int64_t;
  871. typedef unsigned long int __uint64_t;
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879. typedef long int __quad_t;
  880. typedef unsigned long int __u_quad_t;
  881. # 131 "/usr/include/bits/types.h" 3 4
  882. # 1 "/usr/include/bits/typesizes.h" 1 3 4
  883. # 132 "/usr/include/bits/types.h" 2 3 4
  884.  
  885.  
  886. typedef unsigned long int __dev_t;
  887. typedef unsigned int __uid_t;
  888. typedef unsigned int __gid_t;
  889. typedef unsigned long int __ino_t;
  890. typedef unsigned long int __ino64_t;
  891. typedef unsigned int __mode_t;
  892. typedef unsigned long int __nlink_t;
  893. typedef long int __off_t;
  894. typedef long int __off64_t;
  895. typedef int __pid_t;
  896. typedef struct { int __val[2]; } __fsid_t;
  897. typedef long int __clock_t;
  898. typedef unsigned long int __rlim_t;
  899. typedef unsigned long int __rlim64_t;
  900. typedef unsigned int __id_t;
  901. typedef long int __time_t;
  902. typedef unsigned int __useconds_t;
  903. typedef long int __suseconds_t;
  904.  
  905. typedef int __daddr_t;
  906. typedef long int __swblk_t;
  907. typedef int __key_t;
  908.  
  909.  
  910. typedef int __clockid_t;
  911.  
  912.  
  913. typedef void * __timer_t;
  914.  
  915.  
  916. typedef long int __blksize_t;
  917.  
  918.  
  919.  
  920.  
  921. typedef long int __blkcnt_t;
  922. typedef long int __blkcnt64_t;
  923.  
  924.  
  925. typedef unsigned long int __fsblkcnt_t;
  926. typedef unsigned long int __fsblkcnt64_t;
  927.  
  928.  
  929. typedef unsigned long int __fsfilcnt_t;
  930. typedef unsigned long int __fsfilcnt64_t;
  931.  
  932. typedef long int __ssize_t;
  933.  
  934.  
  935.  
  936. typedef __off64_t __loff_t;
  937. typedef __quad_t *__qaddr_t;
  938. typedef char *__caddr_t;
  939.  
  940.  
  941. typedef long int __intptr_t;
  942.  
  943.  
  944. typedef unsigned int __socklen_t;
  945. # 31 "/usr/include/sys/types.h" 2 3 4
  946.  
  947.  
  948.  
  949. typedef __u_char u_char;
  950. typedef __u_short u_short;
  951. typedef __u_int u_int;
  952. typedef __u_long u_long;
  953. typedef __quad_t quad_t;
  954. typedef __u_quad_t u_quad_t;
  955. typedef __fsid_t fsid_t;
  956.  
  957.  
  958.  
  959.  
  960. typedef __loff_t loff_t;
  961.  
  962.  
  963.  
  964. typedef __ino_t ino_t;
  965. # 61 "/usr/include/sys/types.h" 3 4
  966. typedef __dev_t dev_t;
  967.  
  968.  
  969.  
  970.  
  971. typedef __gid_t gid_t;
  972.  
  973.  
  974.  
  975.  
  976. typedef __mode_t mode_t;
  977.  
  978.  
  979.  
  980.  
  981. typedef __nlink_t nlink_t;
  982.  
  983.  
  984.  
  985.  
  986. typedef __uid_t uid_t;
  987.  
  988.  
  989.  
  990.  
  991.  
  992. typedef __off_t off_t;
  993. # 99 "/usr/include/sys/types.h" 3 4
  994. typedef __pid_t pid_t;
  995.  
  996.  
  997.  
  998.  
  999.  
  1000. typedef __id_t id_t;
  1001.  
  1002.  
  1003.  
  1004.  
  1005. typedef __ssize_t ssize_t;
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011. typedef __daddr_t daddr_t;
  1012. typedef __caddr_t caddr_t;
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018. typedef __key_t key_t;
  1019. # 133 "/usr/include/sys/types.h" 3 4
  1020. # 1 "/usr/include/time.h" 1 3 4
  1021. # 58 "/usr/include/time.h" 3 4
  1022.  
  1023.  
  1024. typedef __clock_t clock_t;
  1025.  
  1026.  
  1027.  
  1028. # 74 "/usr/include/time.h" 3 4
  1029.  
  1030.  
  1031. typedef __time_t time_t;
  1032.  
  1033.  
  1034.  
  1035. # 92 "/usr/include/time.h" 3 4
  1036. typedef __clockid_t clockid_t;
  1037. # 104 "/usr/include/time.h" 3 4
  1038. typedef __timer_t timer_t;
  1039. # 134 "/usr/include/sys/types.h" 2 3 4
  1040. # 147 "/usr/include/sys/types.h" 3 4
  1041. # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 1 3 4
  1042. # 148 "/usr/include/sys/types.h" 2 3 4
  1043.  
  1044.  
  1045.  
  1046. typedef unsigned long int ulong;
  1047. typedef unsigned short int ushort;
  1048. typedef unsigned int uint;
  1049. # 195 "/usr/include/sys/types.h" 3 4
  1050. typedef int int8_t __attribute__ ((__mode__ (__QI__)));
  1051. typedef int int16_t __attribute__ ((__mode__ (__HI__)));
  1052. typedef int int32_t __attribute__ ((__mode__ (__SI__)));
  1053. typedef int int64_t __attribute__ ((__mode__ (__DI__)));
  1054.  
  1055.  
  1056. typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__)));
  1057. typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
  1058. typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__)));
  1059. typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));
  1060.  
  1061. typedef int register_t __attribute__ ((__mode__ (__word__)));
  1062. # 217 "/usr/include/sys/types.h" 3 4
  1063. # 1 "/usr/include/endian.h" 1 3 4
  1064. # 37 "/usr/include/endian.h" 3 4
  1065. # 1 "/usr/include/bits/endian.h" 1 3 4
  1066. # 38 "/usr/include/endian.h" 2 3 4
  1067. # 61 "/usr/include/endian.h" 3 4
  1068. # 1 "/usr/include/bits/byteswap.h" 1 3 4
  1069. # 28 "/usr/include/bits/byteswap.h" 3 4
  1070. # 1 "/usr/include/bits/wordsize.h" 1 3 4
  1071. # 29 "/usr/include/bits/byteswap.h" 2 3 4
  1072. # 62 "/usr/include/endian.h" 2 3 4
  1073. # 218 "/usr/include/sys/types.h" 2 3 4
  1074.  
  1075.  
  1076. # 1 "/usr/include/sys/select.h" 1 3 4
  1077. # 31 "/usr/include/sys/select.h" 3 4
  1078. # 1 "/usr/include/bits/select.h" 1 3 4
  1079. # 23 "/usr/include/bits/select.h" 3 4
  1080. # 1 "/usr/include/bits/wordsize.h" 1 3 4
  1081. # 24 "/usr/include/bits/select.h" 2 3 4
  1082. # 32 "/usr/include/sys/select.h" 2 3 4
  1083.  
  1084.  
  1085. # 1 "/usr/include/bits/sigset.h" 1 3 4
  1086. # 24 "/usr/include/bits/sigset.h" 3 4
  1087. typedef int __sig_atomic_t;
  1088.  
  1089.  
  1090.  
  1091.  
  1092. typedef struct
  1093. {
  1094. unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
  1095. } __sigset_t;
  1096. # 35 "/usr/include/sys/select.h" 2 3 4
  1097.  
  1098.  
  1099.  
  1100. typedef __sigset_t sigset_t;
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106. # 1 "/usr/include/time.h" 1 3 4
  1107. # 120 "/usr/include/time.h" 3 4
  1108. struct timespec
  1109. {
  1110. __time_t tv_sec;
  1111. long int tv_nsec;
  1112. };
  1113. # 45 "/usr/include/sys/select.h" 2 3 4
  1114.  
  1115. # 1 "/usr/include/bits/time.h" 1 3 4
  1116. # 75 "/usr/include/bits/time.h" 3 4
  1117. struct timeval
  1118. {
  1119. __time_t tv_sec;
  1120. __suseconds_t tv_usec;
  1121. };
  1122. # 47 "/usr/include/sys/select.h" 2 3 4
  1123.  
  1124.  
  1125. typedef __suseconds_t suseconds_t;
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131. typedef long int __fd_mask;
  1132. # 67 "/usr/include/sys/select.h" 3 4
  1133. typedef struct
  1134. {
  1135.  
  1136.  
  1137.  
  1138.  
  1139.  
  1140.  
  1141. __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))];
  1142.  
  1143.  
  1144. } fd_set;
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151. typedef __fd_mask fd_mask;
  1152. # 99 "/usr/include/sys/select.h" 3 4
  1153.  
  1154. # 109 "/usr/include/sys/select.h" 3 4
  1155. extern int select (int __nfds, fd_set *__restrict __readfds,
  1156. fd_set *__restrict __writefds,
  1157. fd_set *__restrict __exceptfds,
  1158. struct timeval *__restrict __timeout);
  1159. # 121 "/usr/include/sys/select.h" 3 4
  1160. extern int pselect (int __nfds, fd_set *__restrict __readfds,
  1161. fd_set *__restrict __writefds,
  1162. fd_set *__restrict __exceptfds,
  1163. const struct timespec *__restrict __timeout,
  1164. const __sigset_t *__restrict __sigmask);
  1165.  
  1166.  
  1167.  
  1168. # 221 "/usr/include/sys/types.h" 2 3 4
  1169.  
  1170.  
  1171. # 1 "/usr/include/sys/sysmacros.h" 1 3 4
  1172. # 30 "/usr/include/sys/sysmacros.h" 3 4
  1173. __extension__
  1174. extern unsigned int gnu_dev_major (unsigned long long int __dev)
  1175. __attribute__ ((__nothrow__));
  1176. __extension__
  1177. extern unsigned int gnu_dev_minor (unsigned long long int __dev)
  1178. __attribute__ ((__nothrow__));
  1179. __extension__
  1180. extern unsigned long long int gnu_dev_makedev (unsigned int __major,
  1181. unsigned int __minor)
  1182. __attribute__ ((__nothrow__));
  1183.  
  1184.  
  1185. __extension__ extern __inline unsigned int
  1186. __attribute__ ((__nothrow__)) gnu_dev_major (unsigned long long int __dev)
  1187. {
  1188. return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
  1189. }
  1190.  
  1191. __extension__ extern __inline unsigned int
  1192. __attribute__ ((__nothrow__)) gnu_dev_minor (unsigned long long int __dev)
  1193. {
  1194. return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
  1195. }
  1196.  
  1197. __extension__ extern __inline unsigned long long int
  1198. __attribute__ ((__nothrow__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor)
  1199. {
  1200. return ((__minor & 0xff) | ((__major & 0xfff) << 8)
  1201. | (((unsigned long long int) (__minor & ~0xff)) << 12)
  1202. | (((unsigned long long int) (__major & ~0xfff)) << 32));
  1203. }
  1204. # 224 "/usr/include/sys/types.h" 2 3 4
  1205.  
  1206.  
  1207.  
  1208.  
  1209.  
  1210. typedef __blksize_t blksize_t;
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217. typedef __blkcnt_t blkcnt_t;
  1218.  
  1219.  
  1220.  
  1221. typedef __fsblkcnt_t fsblkcnt_t;
  1222.  
  1223.  
  1224.  
  1225. typedef __fsfilcnt_t fsfilcnt_t;
  1226. # 271 "/usr/include/sys/types.h" 3 4
  1227. # 1 "/usr/include/bits/pthreadtypes.h" 1 3 4
  1228. # 23 "/usr/include/bits/pthreadtypes.h" 3 4
  1229. # 1 "/usr/include/bits/wordsize.h" 1 3 4
  1230. # 24 "/usr/include/bits/pthreadtypes.h" 2 3 4
  1231. # 50 "/usr/include/bits/pthreadtypes.h" 3 4
  1232. typedef unsigned long int pthread_t;
  1233.  
  1234.  
  1235. typedef union
  1236. {
  1237. char __size[56];
  1238. long int __align;
  1239. } pthread_attr_t;
  1240.  
  1241.  
  1242.  
  1243. typedef struct __pthread_internal_list
  1244. {
  1245. struct __pthread_internal_list *__prev;
  1246. struct __pthread_internal_list *__next;
  1247. } __pthread_list_t;
  1248. # 76 "/usr/include/bits/pthreadtypes.h" 3 4
  1249. typedef union
  1250. {
  1251. struct __pthread_mutex_s
  1252. {
  1253. int __lock;
  1254. unsigned int __count;
  1255. int __owner;
  1256.  
  1257. unsigned int __nusers;
  1258.  
  1259.  
  1260.  
  1261. int __kind;
  1262.  
  1263. int __spins;
  1264. __pthread_list_t __list;
  1265. # 101 "/usr/include/bits/pthreadtypes.h" 3 4
  1266. } __data;
  1267. char __size[40];
  1268. long int __align;
  1269. } pthread_mutex_t;
  1270.  
  1271. typedef union
  1272. {
  1273. char __size[4];
  1274. int __align;
  1275. } pthread_mutexattr_t;
  1276.  
  1277.  
  1278.  
  1279.  
  1280. typedef union
  1281. {
  1282. struct
  1283. {
  1284. int __lock;
  1285. unsigned int __futex;
  1286. __extension__ unsigned long long int __total_seq;
  1287. __extension__ unsigned long long int __wakeup_seq;
  1288. __extension__ unsigned long long int __woken_seq;
  1289. void *__mutex;
  1290. unsigned int __nwaiters;
  1291. unsigned int __broadcast_seq;
  1292. } __data;
  1293. char __size[48];
  1294. __extension__ long long int __align;
  1295. } pthread_cond_t;
  1296.  
  1297. typedef union
  1298. {
  1299. char __size[4];
  1300. int __align;
  1301. } pthread_condattr_t;
  1302.  
  1303.  
  1304.  
  1305. typedef unsigned int pthread_key_t;
  1306.  
  1307.  
  1308.  
  1309. typedef int pthread_once_t;
  1310.  
  1311.  
  1312.  
  1313.  
  1314.  
  1315. typedef union
  1316. {
  1317.  
  1318. struct
  1319. {
  1320. int __lock;
  1321. unsigned int __nr_readers;
  1322. unsigned int __readers_wakeup;
  1323. unsigned int __writer_wakeup;
  1324. unsigned int __nr_readers_queued;
  1325. unsigned int __nr_writers_queued;
  1326. int __writer;
  1327. int __shared;
  1328. unsigned long int __pad1;
  1329. unsigned long int __pad2;
  1330.  
  1331.  
  1332. unsigned int __flags;
  1333. } __data;
  1334. # 187 "/usr/include/bits/pthreadtypes.h" 3 4
  1335. char __size[56];
  1336. long int __align;
  1337. } pthread_rwlock_t;
  1338.  
  1339. typedef union
  1340. {
  1341. char __size[8];
  1342. long int __align;
  1343. } pthread_rwlockattr_t;
  1344.  
  1345.  
  1346.  
  1347.  
  1348.  
  1349. typedef volatile int pthread_spinlock_t;
  1350.  
  1351.  
  1352.  
  1353.  
  1354. typedef union
  1355. {
  1356. char __size[32];
  1357. long int __align;
  1358. } pthread_barrier_t;
  1359.  
  1360. typedef union
  1361. {
  1362. char __size[4];
  1363. int __align;
  1364. } pthread_barrierattr_t;
  1365. # 272 "/usr/include/sys/types.h" 2 3 4
  1366.  
  1367.  
  1368.  
  1369. # 12 "saphire_curses.h" 2
  1370.  
  1371.  
  1372.  
  1373.  
  1374. enum eTerminalKanjiCode { kTKEucjp, kTKSjis, kTKUtf8 };
  1375. extern enum eTerminalKanjiCode gTerminalKanjiCode;
  1376.  
  1377. extern int gKeyEscapeWait;
  1378. # 47 "saphire_curses.h"
  1379. void mcurses_init(enum eTerminalKanjiCode code);
  1380.  
  1381. void mcurses_final();
  1382.  
  1383.  
  1384. void minitscr();
  1385. void mendwin();
  1386.  
  1387.  
  1388.  
  1389. void madd_keymap(int key, char keyes[10]);
  1390.  
  1391. void mclear();
  1392. void mclear_immediately();
  1393. void mclear_online(int y);
  1394.  
  1395. void mmove(int y, int x);
  1396. void mmove_immediately(int y, int x);
  1397. int mmvprintw(int y, int x, char* str, ...);
  1398. int mmvprintw_immediately(int y, int x, char* str, ...);
  1399.  
  1400. int mprintw_immediately(char* str, ...);
  1401. int mprintw(char* str, ...);
  1402.  
  1403. void mattron(int attrs);
  1404. void mattroff();
  1405.  
  1406. void mbox(int y, int x, int width, int height);
  1407. void mrefresh();
  1408.  
  1409. int mgetmaxx();
  1410. int mgetmaxy();
  1411.  
  1412. int mgetch(int* meta);
  1413. int mgetch_nonblock(int* meta);
  1414.  
  1415. int mkbuf_exist();
  1416.  
  1417. int mis_raw_mode();
  1418. void mreset_tty();
  1419. void msave_screen();
  1420. void mrestore_screen();
  1421. void mrestore_ttysettings();
  1422. void msave_ttysettings();
  1423.  
  1424. void mbackspace_immediately();
  1425. void mbackspace_head_of_line_immediately();
  1426. void mmove_line_home_immediately();
  1427. void mcursor_right_immediately(int n);
  1428. void mcursor_left_immediately(int n);
  1429.  
  1430. extern int gMCTtyFd;
  1431. # 14 "saphire.h" 2
  1432. # 1 "saphire_hash.h" 1
  1433. # 13 "saphire_hash.h"
  1434. typedef struct _hash_it {
  1435. char* mKey;
  1436.  
  1437. void* mItem;
  1438. struct _hash_it* mCollisionIt;
  1439.  
  1440. struct _hash_it* mNextIt;
  1441. } hash_it;
  1442.  
  1443. typedef struct {
  1444. hash_it** mTable;
  1445. int mTableSize;
  1446.  
  1447. hash_it* mEntryIt;
  1448.  
  1449. int mCounter;
  1450. } hash_obj;
  1451. # 43 "saphire_hash.h"
  1452. hash_obj* hash_new(int size);
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458. void hash_delete(hash_obj* self);
  1459.  
  1460. void hash_put(hash_obj* self, char* key, void* item);
  1461. void hash_erase(hash_obj* self, char* key);
  1462. void hash_clear(hash_obj* self);
  1463. void hash_replace(hash_obj* self, char* key, void* item);
  1464.  
  1465. void hash_show(hash_obj* self, char* fname);
  1466.  
  1467. void* hash_item(hash_obj* self, char* key);
  1468. void* hash_item_addr(hash_obj* self, char* key);
  1469. char* hash_key(hash_obj* self, void* item);
  1470. int hash_count(hash_obj* self);
  1471.  
  1472.  
  1473.  
  1474. hash_it* hash_loop_begin(hash_obj* self);
  1475. void* hash_loop_item(hash_it* it);
  1476. char* hash_loop_key(hash_it* it);
  1477. hash_it* hash_loop_next(hash_it* it);
  1478. # 15 "saphire.h" 2
  1479. # 1 "saphire_debug.h" 1
  1480. # 9 "saphire_debug.h"
  1481. # 1 "/usr/include/stdlib.h" 1 3 4
  1482. # 33 "/usr/include/stdlib.h" 3 4
  1483. # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 1 3 4
  1484. # 34 "/usr/include/stdlib.h" 2 3 4
  1485.  
  1486.  
  1487.  
  1488.  
  1489.  
  1490.  
  1491.  
  1492.  
  1493. # 1 "/usr/include/bits/waitflags.h" 1 3 4
  1494. # 43 "/usr/include/stdlib.h" 2 3 4
  1495. # 1 "/usr/include/bits/waitstatus.h" 1 3 4
  1496. # 67 "/usr/include/bits/waitstatus.h" 3 4
  1497. union wait
  1498. {
  1499. int w_status;
  1500. struct
  1501. {
  1502.  
  1503. unsigned int __w_termsig:7;
  1504. unsigned int __w_coredump:1;
  1505. unsigned int __w_retcode:8;
  1506. unsigned int:16;
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514. } __wait_terminated;
  1515. struct
  1516. {
  1517.  
  1518. unsigned int __w_stopval:8;
  1519. unsigned int __w_stopsig:8;
  1520. unsigned int:16;
  1521.  
  1522.  
  1523.  
  1524.  
  1525.  
  1526.  
  1527. } __wait_stopped;
  1528. };
  1529. # 44 "/usr/include/stdlib.h" 2 3 4
  1530. # 68 "/usr/include/stdlib.h" 3 4
  1531. typedef union
  1532. {
  1533. union wait *__uptr;
  1534. int *__iptr;
  1535. } __WAIT_STATUS __attribute__ ((__transparent_union__));
  1536. # 96 "/usr/include/stdlib.h" 3 4
  1537.  
  1538.  
  1539. typedef struct
  1540. {
  1541. int quot;
  1542. int rem;
  1543. } div_t;
  1544.  
  1545.  
  1546.  
  1547. typedef struct
  1548. {
  1549. long int quot;
  1550. long int rem;
  1551. } ldiv_t;
  1552.  
  1553.  
  1554.  
  1555.  
  1556.  
  1557.  
  1558.  
  1559. __extension__ typedef struct
  1560. {
  1561. long long int quot;
  1562. long long int rem;
  1563. } lldiv_t;
  1564.  
  1565.  
  1566. # 140 "/usr/include/stdlib.h" 3 4
  1567. extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__)) ;
  1568.  
  1569.  
  1570.  
  1571.  
  1572. extern double atof (__const char *__nptr)
  1573. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
  1574.  
  1575. extern int atoi (__const char *__nptr)
  1576. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
  1577.  
  1578. extern long int atol (__const char *__nptr)
  1579. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585. __extension__ extern long long int atoll (__const char *__nptr)
  1586. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592. extern double strtod (__const char *__restrict __nptr,
  1593. char **__restrict __endptr)
  1594. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1595.  
  1596.  
  1597.  
  1598.  
  1599.  
  1600. extern float strtof (__const char *__restrict __nptr,
  1601. char **__restrict __endptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1602.  
  1603. extern long double strtold (__const char *__restrict __nptr,
  1604. char **__restrict __endptr)
  1605. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1606.  
  1607.  
  1608.  
  1609.  
  1610.  
  1611. extern long int strtol (__const char *__restrict __nptr,
  1612. char **__restrict __endptr, int __base)
  1613. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1614.  
  1615. extern unsigned long int strtoul (__const char *__restrict __nptr,
  1616. char **__restrict __endptr, int __base)
  1617. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1618.  
  1619.  
  1620.  
  1621.  
  1622. __extension__
  1623. extern long long int strtoq (__const char *__restrict __nptr,
  1624. char **__restrict __endptr, int __base)
  1625. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1626.  
  1627. __extension__
  1628. extern unsigned long long int strtouq (__const char *__restrict __nptr,
  1629. char **__restrict __endptr, int __base)
  1630. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1631.  
  1632.  
  1633.  
  1634.  
  1635.  
  1636. __extension__
  1637. extern long long int strtoll (__const char *__restrict __nptr,
  1638. char **__restrict __endptr, int __base)
  1639. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1640.  
  1641. __extension__
  1642. extern unsigned long long int strtoull (__const char *__restrict __nptr,
  1643. char **__restrict __endptr, int __base)
  1644. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1645.  
  1646. # 277 "/usr/include/stdlib.h" 3 4
  1647.  
  1648. extern __inline double
  1649. __attribute__ ((__nothrow__)) atof (__const char *__nptr)
  1650. {
  1651. return strtod (__nptr, (char **) ((void *)0));
  1652. }
  1653. extern __inline int
  1654. __attribute__ ((__nothrow__)) atoi (__const char *__nptr)
  1655. {
  1656. return (int) strtol (__nptr, (char **) ((void *)0), 10);
  1657. }
  1658. extern __inline long int
  1659. __attribute__ ((__nothrow__)) atol (__const char *__nptr)
  1660. {
  1661. return strtol (__nptr, (char **) ((void *)0), 10);
  1662. }
  1663.  
  1664.  
  1665.  
  1666.  
  1667. __extension__ extern __inline long long int
  1668. __attribute__ ((__nothrow__)) atoll (__const char *__nptr)
  1669. {
  1670. return strtoll (__nptr, (char **) ((void *)0), 10);
  1671. }
  1672.  
  1673. # 311 "/usr/include/stdlib.h" 3 4
  1674. extern char *l64a (long int __n) __attribute__ ((__nothrow__)) ;
  1675.  
  1676.  
  1677. extern long int a64l (__const char *__s)
  1678. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
  1679. # 327 "/usr/include/stdlib.h" 3 4
  1680. extern long int random (void) __attribute__ ((__nothrow__));
  1681.  
  1682.  
  1683. extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__));
  1684.  
  1685.  
  1686.  
  1687.  
  1688.  
  1689. extern char *initstate (unsigned int __seed, char *__statebuf,
  1690. size_t __statelen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
  1691.  
  1692.  
  1693.  
  1694. extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  1695.  
  1696.  
  1697.  
  1698.  
  1699.  
  1700.  
  1701.  
  1702. struct random_data
  1703. {
  1704. int32_t *fptr;
  1705. int32_t *rptr;
  1706. int32_t *state;
  1707. int rand_type;
  1708. int rand_deg;
  1709. int rand_sep;
  1710. int32_t *end_ptr;
  1711. };
  1712.  
  1713. extern int random_r (struct random_data *__restrict __buf,
  1714. int32_t *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1715.  
  1716. extern int srandom_r (unsigned int __seed, struct random_data *__buf)
  1717. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
  1718.  
  1719. extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
  1720. size_t __statelen,
  1721. struct random_data *__restrict __buf)
  1722. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));
  1723.  
  1724. extern int setstate_r (char *__restrict __statebuf,
  1725. struct random_data *__restrict __buf)
  1726. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1727.  
  1728.  
  1729.  
  1730.  
  1731.  
  1732.  
  1733. extern int rand (void) __attribute__ ((__nothrow__));
  1734.  
  1735. extern void srand (unsigned int __seed) __attribute__ ((__nothrow__));
  1736.  
  1737.  
  1738.  
  1739.  
  1740. extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__));
  1741.  
  1742.  
  1743.  
  1744.  
  1745.  
  1746.  
  1747.  
  1748. extern double drand48 (void) __attribute__ ((__nothrow__));
  1749. extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  1750.  
  1751.  
  1752. extern long int lrand48 (void) __attribute__ ((__nothrow__));
  1753. extern long int nrand48 (unsigned short int __xsubi[3])
  1754. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  1755.  
  1756.  
  1757. extern long int mrand48 (void) __attribute__ ((__nothrow__));
  1758. extern long int jrand48 (unsigned short int __xsubi[3])
  1759. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  1760.  
  1761.  
  1762. extern void srand48 (long int __seedval) __attribute__ ((__nothrow__));
  1763. extern unsigned short int *seed48 (unsigned short int __seed16v[3])
  1764. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  1765. extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  1766.  
  1767.  
  1768.  
  1769.  
  1770.  
  1771. struct drand48_data
  1772. {
  1773. unsigned short int __x[3];
  1774. unsigned short int __old_x[3];
  1775. unsigned short int __c;
  1776. unsigned short int __init;
  1777. unsigned long long int __a;
  1778. };
  1779.  
  1780.  
  1781. extern int drand48_r (struct drand48_data *__restrict __buffer,
  1782. double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1783. extern int erand48_r (unsigned short int __xsubi[3],
  1784. struct drand48_data *__restrict __buffer,
  1785. double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1786.  
  1787.  
  1788. extern int lrand48_r (struct drand48_data *__restrict __buffer,
  1789. long int *__restrict __result)
  1790. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1791. extern int nrand48_r (unsigned short int __xsubi[3],
  1792. struct drand48_data *__restrict __buffer,
  1793. long int *__restrict __result)
  1794. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1795.  
  1796.  
  1797. extern int mrand48_r (struct drand48_data *__restrict __buffer,
  1798. long int *__restrict __result)
  1799. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1800. extern int jrand48_r (unsigned short int __xsubi[3],
  1801. struct drand48_data *__restrict __buffer,
  1802. long int *__restrict __result)
  1803. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1804.  
  1805.  
  1806. extern int srand48_r (long int __seedval, struct drand48_data *__buffer)
  1807. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
  1808.  
  1809. extern int seed48_r (unsigned short int __seed16v[3],
  1810. struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1811.  
  1812. extern int lcong48_r (unsigned short int __param[7],
  1813. struct drand48_data *__buffer)
  1814. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1815.  
  1816.  
  1817.  
  1818.  
  1819.  
  1820.  
  1821.  
  1822.  
  1823.  
  1824. extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
  1825.  
  1826. extern void *calloc (size_t __nmemb, size_t __size)
  1827. __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
  1828.  
  1829.  
  1830.  
  1831.  
  1832.  
  1833.  
  1834.  
  1835.  
  1836.  
  1837.  
  1838. extern void *realloc (void *__ptr, size_t __size)
  1839. __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
  1840.  
  1841. extern void free (void *__ptr) __attribute__ ((__nothrow__));
  1842.  
  1843.  
  1844.  
  1845.  
  1846. extern void cfree (void *__ptr) __attribute__ ((__nothrow__));
  1847.  
  1848.  
  1849.  
  1850. # 1 "/usr/include/alloca.h" 1 3 4
  1851. # 25 "/usr/include/alloca.h" 3 4
  1852. # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 1 3 4
  1853. # 26 "/usr/include/alloca.h" 2 3 4
  1854.  
  1855.  
  1856.  
  1857.  
  1858.  
  1859.  
  1860.  
  1861. extern void *alloca (size_t __size) __attribute__ ((__nothrow__));
  1862.  
  1863.  
  1864.  
  1865.  
  1866.  
  1867.  
  1868. # 498 "/usr/include/stdlib.h" 2 3 4
  1869.  
  1870.  
  1871.  
  1872.  
  1873.  
  1874. extern void *valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
  1875.  
  1876.  
  1877.  
  1878.  
  1879. extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
  1880. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1881.  
  1882.  
  1883.  
  1884.  
  1885. extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
  1886.  
  1887.  
  1888.  
  1889. extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  1890. # 531 "/usr/include/stdlib.h" 3 4
  1891.  
  1892.  
  1893.  
  1894.  
  1895.  
  1896. extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
  1897. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  1898.  
  1899.  
  1900.  
  1901.  
  1902.  
  1903.  
  1904. extern void exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
  1905. # 554 "/usr/include/stdlib.h" 3 4
  1906.  
  1907.  
  1908.  
  1909.  
  1910.  
  1911.  
  1912. extern void _Exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919. extern char *getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1920.  
  1921.  
  1922.  
  1923.  
  1924. extern char *__secure_getenv (__const char *__name)
  1925. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1926.  
  1927.  
  1928.  
  1929.  
  1930.  
  1931. extern int putenv (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  1932.  
  1933.  
  1934.  
  1935.  
  1936.  
  1937. extern int setenv (__const char *__name, __const char *__value, int __replace)
  1938. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
  1939.  
  1940.  
  1941. extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  1942.  
  1943.  
  1944.  
  1945.  
  1946.  
  1947.  
  1948. extern int clearenv (void) __attribute__ ((__nothrow__));
  1949. # 606 "/usr/include/stdlib.h" 3 4
  1950. extern char *mktemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1951. # 620 "/usr/include/stdlib.h" 3 4
  1952. extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ;
  1953. # 642 "/usr/include/stdlib.h" 3 4
  1954. extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ;
  1955. # 663 "/usr/include/stdlib.h" 3 4
  1956. extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1957. # 712 "/usr/include/stdlib.h" 3 4
  1958.  
  1959.  
  1960.  
  1961.  
  1962.  
  1963. extern int system (__const char *__command) ;
  1964.  
  1965. # 734 "/usr/include/stdlib.h" 3 4
  1966. extern char *realpath (__const char *__restrict __name,
  1967. char *__restrict __resolved) __attribute__ ((__nothrow__)) ;
  1968.  
  1969.  
  1970.  
  1971.  
  1972.  
  1973.  
  1974. typedef int (*__compar_fn_t) (__const void *, __const void *);
  1975. # 752 "/usr/include/stdlib.h" 3 4
  1976.  
  1977.  
  1978.  
  1979. extern void *bsearch (__const void *__key, __const void *__base,
  1980. size_t __nmemb, size_t __size, __compar_fn_t __compar)
  1981. __attribute__ ((__nonnull__ (1, 2, 5))) ;
  1982.  
  1983.  
  1984.  
  1985. extern void qsort (void *__base, size_t __nmemb, size_t __size,
  1986. __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4)));
  1987. # 771 "/usr/include/stdlib.h" 3 4
  1988. extern int abs (int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
  1989. extern long int labs (long int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
  1990.  
  1991.  
  1992.  
  1993. __extension__ extern long long int llabs (long long int __x)
  1994. __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
  1995.  
  1996.  
  1997.  
  1998.  
  1999.  
  2000.  
  2001.  
  2002. extern div_t div (int __numer, int __denom)
  2003. __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
  2004. extern ldiv_t ldiv (long int __numer, long int __denom)
  2005. __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
  2006.  
  2007.  
  2008.  
  2009.  
  2010. __extension__ extern lldiv_t lldiv (long long int __numer,
  2011. long long int __denom)
  2012. __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
  2013.  
  2014. # 808 "/usr/include/stdlib.h" 3 4
  2015. extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt,
  2016. int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
  2017.  
  2018.  
  2019.  
  2020.  
  2021. extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt,
  2022. int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
  2023.  
  2024.  
  2025.  
  2026.  
  2027. extern char *gcvt (double __value, int __ndigit, char *__buf)
  2028. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ;
  2029.  
  2030.  
  2031.  
  2032.  
  2033. extern char *qecvt (long double __value, int __ndigit,
  2034. int *__restrict __decpt, int *__restrict __sign)
  2035. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
  2036. extern char *qfcvt (long double __value, int __ndigit,
  2037. int *__restrict __decpt, int *__restrict __sign)
  2038. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
  2039. extern char *qgcvt (long double __value, int __ndigit, char *__buf)
  2040. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ;
  2041.  
  2042.  
  2043.  
  2044.  
  2045. extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt,
  2046. int *__restrict __sign, char *__restrict __buf,
  2047. size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
  2048. extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt,
  2049. int *__restrict __sign, char *__restrict __buf,
  2050. size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
  2051.  
  2052. extern int qecvt_r (long double __value, int __ndigit,
  2053. int *__restrict __decpt, int *__restrict __sign,
  2054. char *__restrict __buf, size_t __len)
  2055. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
  2056. extern int qfcvt_r (long double __value, int __ndigit,
  2057. int *__restrict __decpt, int *__restrict __sign,
  2058. char *__restrict __buf, size_t __len)
  2059. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
  2060.  
  2061.  
  2062.  
  2063.  
  2064.  
  2065.  
  2066.  
  2067. extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__)) ;
  2068.  
  2069.  
  2070. extern int mbtowc (wchar_t *__restrict __pwc,
  2071. __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)) ;
  2072.  
  2073.  
  2074. extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__)) ;
  2075.  
  2076.  
  2077.  
  2078. extern size_t mbstowcs (wchar_t *__restrict __pwcs,
  2079. __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__));
  2080.  
  2081. extern size_t wcstombs (char *__restrict __s,
  2082. __const wchar_t *__restrict __pwcs, size_t __n)
  2083. __attribute__ ((__nothrow__));
  2084.  
  2085.  
  2086.  
  2087.  
  2088.  
  2089.  
  2090.  
  2091.  
  2092. extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  2093. # 896 "/usr/include/stdlib.h" 3 4
  2094. extern int getsubopt (char **__restrict __optionp,
  2095. char *__const *__restrict __tokens,
  2096. char **__restrict __valuep)
  2097. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3))) ;
  2098. # 948 "/usr/include/stdlib.h" 3 4
  2099. extern int getloadavg (double __loadavg[], int __nelem)
  2100. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  2101. # 964 "/usr/include/stdlib.h" 3 4
  2102.  
  2103. # 10 "saphire_debug.h" 2
  2104. # 16 "saphire.h" 2
  2105.  
  2106.  
  2107.  
  2108.  
  2109.  
  2110.  
  2111. typedef struct {
  2112. int mFd;
  2113. char* mBuffer;
  2114. char* mP;
  2115. int mMallocSize;
  2116. } sWFd;
  2117.  
  2118. sWFd* sWFd_new(int fd);
  2119. void sWFd_delete(sWFd* self);
  2120. int sWFd_push_back(sWFd* self, char* str);
  2121. int sWFd_flash(sWFd* self);
  2122. int sWFd_close(sWFd* self);
  2123.  
  2124. typedef struct {
  2125. int mFd;
  2126. string_obj* mBuffer;
  2127. } sRFd;
  2128.  
  2129. sRFd* sRFd_new(int fd);
  2130. sRFd* sRFd_new2(int fd, char* str);
  2131. void sRFd_delete(sRFd* self);
  2132. int sRFd_close(sRFd* self);
  2133. int sRFd_read_all(sRFd* self, string_obj* str);
  2134. int sRFd_read_all_preserve(sRFd* self, string_obj* str);
  2135. int sRFd_read_oneline(sRFd* self, string_obj* str);
  2136. int sRFd_read_oneline_preserve(sRFd* self, string_obj* str);
  2137. int sRFd_read_all_to_buffer(sRFd* self);
  2138.  
  2139. extern enum eKanjiCode gKanjiCode;
  2140.  
  2141.  
  2142.  
  2143. enum eLineField { kLF, kCRLF, kCR };
  2144. extern enum eLineField gLineField;
  2145.  
  2146. enum eAppType { kATOptC, kATXApp, kATCursesApp, kATConsoleApp };
  2147.  
  2148.  
  2149.  
  2150.  
  2151.  
  2152.  
  2153.  
  2154. enum eRuntimeScript { kRSNoRead, kRSSource, kRSObject };
  2155.  
  2156.  
  2157.  
  2158.  
  2159.  
  2160.  
  2161. void saphire_init(enum eAppType app_type, int job_control, enum eRuntimeScript runtime_script, int run_user_runtimescript);
  2162.  
  2163.  
  2164.  
  2165.  
  2166. void saphire_final();
  2167.  
  2168. void saphire_set_signal();
  2169. # 89 "saphire.h"
  2170. void saphire_restore_signal_default();
  2171.  
  2172. extern void (*saphire_set_signal_other)();
  2173.  
  2174.  
  2175. extern string_obj* gErrMsg;
  2176.  
  2177. int saphire_shell(char* command, char* title, sWFd* pipeout, sRFd* pipein, int pipeerr);
  2178. # 105 "saphire.h"
  2179. int saphire_shell3(string_obj* result, char* command, char* title, sRFd* pipein);
  2180.  
  2181.  
  2182.  
  2183.  
  2184.  
  2185.  
  2186.  
  2187. int saphire_load(char* fname, sWFd* pipeout, sRFd* pipein, int pipeerr);
  2188.  
  2189.  
  2190.  
  2191.  
  2192.  
  2193.  
  2194.  
  2195. int saphire_compile(char* fname, char* out_fname);
  2196.  
  2197.  
  2198.  
  2199.  
  2200. int saphire_load_obj(char* fname, sWFd* pipeout, sRFd* pipein, int pipeerr, vector_obj* parent_blocks);
  2201.  
  2202.  
  2203.  
  2204.  
  2205.  
  2206.  
  2207.  
  2208. void saphire_wait_background_job();
  2209.  
  2210.  
  2211. extern void (*saphire_job_done)(int job_num, char* job_title);
  2212.  
  2213.  
  2214.  
  2215. int saphire_job_num();
  2216.  
  2217. char* saphire_job_title(int num);
  2218.  
  2219. void saphire_kill_job(int num);
  2220.  
  2221. void saphire_kill_all_jobs();
  2222.  
  2223.  
  2224.  
  2225.  
  2226.  
  2227.  
  2228. extern vector_obj* gPrograms;
  2229.  
  2230. extern hash_obj* gGlobals;
  2231.  
  2232. extern hash_obj* gArrays;
  2233.  
  2234.  
  2235.  
  2236. extern hash_obj* gHashs;
  2237.  
  2238.  
  2239.  
  2240.  
  2241. void saphire_rehash();
  2242.  
  2243.  
  2244.  
  2245.  
  2246. extern int gKitutukiExit;
  2247.  
  2248.  
  2249.  
  2250. extern void saphire_get_quoted_fname(char* fname, string_obj* quoted_fname);
  2251.  
  2252.  
  2253.  
  2254. 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);
  2255. # 202 "saphire.h"
  2256. void saphire_add_inner_command(char* name, fInnerCommand fun);
  2257.  
  2258.  
  2259.  
  2260. extern volatile int gKitutukiSigInt;
  2261.  
  2262. char* saphire_get_local_var(char* name);
  2263.  
  2264.  
  2265.  
  2266. void saphire_set_local_var(char* name, char* value);
  2267.  
  2268. void saphire_delete_local_var(char* name);
  2269.  
  2270.  
  2271. char* saphire_get_global_var(char* name);
  2272.  
  2273.  
  2274. void saphire_set_global_var(char* name, char* value);
  2275.  
  2276.  
  2277. vector_obj* saphire_get_array(char* name);
  2278.  
  2279.  
  2280. void saphire_set_array(char* name, vector_obj* array);
  2281.  
  2282.  
  2283. hash_obj* saphire_get_hash(char* name);
  2284.  
  2285.  
  2286.  
  2287. typedef struct
  2288. {
  2289. vector_obj* mStatments;
  2290. } sStatments;
  2291.  
  2292. sStatments* sStatments_new();
  2293. void sStatments_delete(sStatments* self);
  2294. int run(sStatments* statments, char* title, sWFd* pipeout, sRFd* pipein, int pipeerr, int finaly_exec, int in_loop, int* return_, vector_obj* blocks);
  2295.  
  2296.  
  2297. int saphire_compile2(char* cmdline, char* fname, sStatments* statments);
  2298.  
  2299.  
  2300.  
  2301.  
  2302.  
  2303.  
  2304. int saphire_run(sStatments* statments, char* title, sWFd* pipeout, sRFd* pipein, int pipeerr);
  2305. # 268 "saphire.h"
  2306. int statment_tree_internal_commands_write_nextout(sWFd* nextout, char* str);
  2307.  
  2308.  
  2309.  
  2310.  
  2311.  
  2312. int statment_tree_internal_commands_read_nextin(sRFd* nextin, string_obj* str);
  2313.  
  2314.  
  2315.  
  2316.  
  2317.  
  2318.  
  2319. int statment_tree_internal_commands_read_nextin_preserve(sRFd* nextin, string_obj* str);
  2320.  
  2321.  
  2322.  
  2323.  
  2324.  
  2325. int statment_tree_internal_commands_read_nextin_oneline(sRFd* nextin, string_obj* str);
  2326.  
  2327.  
  2328.  
  2329.  
  2330.  
  2331.  
  2332. int statment_tree_internal_commands_read_nextin_oneline_preserve(sRFd* nextin, string_obj* str);
  2333.  
  2334. void saphire_sweep();
  2335. # 2 "readline.c" 2
  2336. # 1 "/usr/include/string.h" 1 3 4
  2337. # 29 "/usr/include/string.h" 3 4
  2338.  
  2339.  
  2340.  
  2341.  
  2342.  
  2343. # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 1 3 4
  2344. # 35 "/usr/include/string.h" 2 3 4
  2345.  
  2346.  
  2347.  
  2348.  
  2349.  
  2350.  
  2351.  
  2352.  
  2353.  
  2354. extern void *memcpy (void *__restrict __dest,
  2355. __const void *__restrict __src, size_t __n)
  2356. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  2357.  
  2358.  
  2359. extern void *memmove (void *__dest, __const void *__src, size_t __n)
  2360. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  2361.  
  2362.  
  2363.  
  2364.  
  2365.  
  2366.  
  2367. extern void *memccpy (void *__restrict __dest, __const void *__restrict __src,
  2368. int __c, size_t __n)
  2369. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  2370.  
  2371.  
  2372.  
  2373.  
  2374.  
  2375. extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  2376.  
  2377.  
  2378. extern int memcmp (__const void *__s1, __const void *__s2, size_t __n)
  2379. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
  2380. # 95 "/usr/include/string.h" 3 4
  2381. extern void *memchr (__const void *__s, int __c, size_t __n)
  2382. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
  2383.  
  2384.  
  2385. # 126 "/usr/include/string.h" 3 4
  2386.  
  2387.  
  2388. extern char *strcpy (char *__restrict __dest, __const char *__restrict __src)
  2389. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  2390.  
  2391. extern char *strncpy (char *__restrict __dest,
  2392. __const char *__restrict __src, size_t __n)
  2393. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  2394.  
  2395.  
  2396. extern char *strcat (char *__restrict __dest, __const char *__restrict __src)
  2397. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  2398.  
  2399. extern char *strncat (char *__restrict __dest, __const char *__restrict __src,
  2400. size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  2401.  
  2402.  
  2403. extern int strcmp (__const char *__s1, __const char *__s2)
  2404. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
  2405.  
  2406. extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
  2407. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
  2408.  
  2409.  
  2410. extern int strcoll (__const char *__s1, __const char *__s2)
  2411. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
  2412.  
  2413. extern size_t strxfrm (char *__restrict __dest,
  2414. __const char *__restrict __src, size_t __n)
  2415. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
  2416.  
  2417. # 165 "/usr/include/string.h" 3 4
  2418. extern int strcoll_l (__const char *__s1, __const char *__s2, __locale_t __l)
  2419. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
  2420.  
  2421. extern size_t strxfrm_l (char *__dest, __const char *__src, size_t __n,
  2422. __locale_t __l) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));
  2423.  
  2424.  
  2425.  
  2426.  
  2427.  
  2428. extern char *strdup (__const char *__s)
  2429. __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
  2430.  
  2431.  
  2432.  
  2433.  
  2434.  
  2435.  
  2436. extern char *strndup (__const char *__string, size_t __n)
  2437. __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
  2438. # 210 "/usr/include/string.h" 3 4
  2439.  
  2440. # 235 "/usr/include/string.h" 3 4
  2441. extern char *strchr (__const char *__s, int __c)
  2442. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
  2443. # 262 "/usr/include/string.h" 3 4
  2444. extern char *strrchr (__const char *__s, int __c)
  2445. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
  2446.  
  2447.  
  2448. # 281 "/usr/include/string.h" 3 4
  2449.  
  2450.  
  2451.  
  2452. extern size_t strcspn (__const char *__s, __const char *__reject)
  2453. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
  2454.  
  2455.  
  2456. extern size_t strspn (__const char *__s, __const char *__accept)
  2457. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
  2458. # 314 "/usr/include/string.h" 3 4
  2459. extern char *strpbrk (__const char *__s, __const char *__accept)
  2460. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
  2461. # 342 "/usr/include/string.h" 3 4
  2462. extern char *strstr (__const char *__haystack, __const char *__needle)
  2463. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
  2464.  
  2465.  
  2466.  
  2467.  
  2468. extern char *strtok (char *__restrict __s, __const char *__restrict __delim)
  2469. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
  2470.  
  2471.  
  2472.  
  2473.  
  2474. extern char *__strtok_r (char *__restrict __s,
  2475. __const char *__restrict __delim,
  2476. char **__restrict __save_ptr)
  2477. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
  2478.  
  2479. extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim,
  2480. char **__restrict __save_ptr)
  2481. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
  2482. # 397 "/usr/include/string.h" 3 4
  2483.  
  2484.  
  2485. extern size_t strlen (__const char *__s)
  2486. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
  2487.  
  2488.  
  2489.  
  2490.  
  2491.  
  2492. extern size_t strnlen (__const char *__string, size_t __maxlen)
  2493. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
  2494.  
  2495.  
  2496.  
  2497.  
  2498.  
  2499. extern char *strerror (int __errnum) __attribute__ ((__nothrow__));
  2500.  
  2501. # 427 "/usr/include/string.h" 3 4
  2502. extern int strerror_r (int __errnum, char *__buf, size_t __buflen) __asm__ ("" "__xpg_strerror_r") __attribute__ ((__nothrow__))
  2503.  
  2504. __attribute__ ((__nonnull__ (2)));
  2505. # 445 "/usr/include/string.h" 3 4
  2506. extern char *strerror_l (int __errnum, __locale_t __l) __attribute__ ((__nothrow__));
  2507.  
  2508.  
  2509.  
  2510.  
  2511.  
  2512. extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  2513.  
  2514.  
  2515.  
  2516. extern void bcopy (__const void *__src, void *__dest, size_t __n)
  2517. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  2518.  
  2519.  
  2520. extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  2521.  
  2522.  
  2523. extern int bcmp (__const void *__s1, __const void *__s2, size_t __n)
  2524. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
  2525. # 489 "/usr/include/string.h" 3 4
  2526. extern char *index (__const char *__s, int __c)
  2527. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
  2528. # 517 "/usr/include/string.h" 3 4
  2529. extern char *rindex (__const char *__s, int __c)
  2530. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
  2531.  
  2532.  
  2533.  
  2534.  
  2535. extern int ffs (int __i) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
  2536. # 536 "/usr/include/string.h" 3 4
  2537. extern int strcasecmp (__const char *__s1, __const char *__s2)
  2538. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
  2539.  
  2540.  
  2541. extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n)
  2542. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
  2543. # 559 "/usr/include/string.h" 3 4
  2544. extern char *strsep (char **__restrict __stringp,
  2545. __const char *__restrict __delim)
  2546. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  2547.  
  2548.  
  2549.  
  2550.  
  2551. extern char *strsignal (int __sig) __attribute__ ((__nothrow__));
  2552.  
  2553.  
  2554. extern char *__stpcpy (char *__restrict __dest, __const char *__restrict __src)
  2555. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  2556. extern char *stpcpy (char *__restrict __dest, __const char *__restrict __src)
  2557. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  2558.  
  2559.  
  2560.  
  2561. extern char *__stpncpy (char *__restrict __dest,
  2562. __const char *__restrict __src, size_t __n)
  2563. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  2564. extern char *stpncpy (char *__restrict __dest,
  2565. __const char *__restrict __src, size_t __n)
  2566. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  2567. # 634 "/usr/include/string.h" 3 4
  2568. # 1 "/usr/include/bits/string.h" 1 3 4
  2569. # 635 "/usr/include/string.h" 2 3 4
  2570.  
  2571.  
  2572. # 1 "/usr/include/bits/string2.h" 1 3 4
  2573. # 394 "/usr/include/bits/string2.h" 3 4
  2574. extern void *__rawmemchr (const void *__s, int __c);
  2575. # 969 "/usr/include/bits/string2.h" 3 4
  2576. extern __inline size_t __strcspn_c1 (__const char *__s, int __reject);
  2577. extern __inline size_t
  2578. __strcspn_c1 (__const char *__s, int __reject)
  2579. {
  2580. register size_t __result = 0;
  2581. while (__s[__result] != '\0' && __s[__result] != __reject)
  2582. ++__result;
  2583. return __result;
  2584. }
  2585.  
  2586. extern __inline size_t __strcspn_c2 (__const char *__s, int __reject1,
  2587. int __reject2);
  2588. extern __inline size_t
  2589. __strcspn_c2 (__const char *__s, int __reject1, int __reject2)
  2590. {
  2591. register size_t __result = 0;
  2592. while (__s[__result] != '\0' && __s[__result] != __reject1
  2593. && __s[__result] != __reject2)
  2594. ++__result;
  2595. return __result;
  2596. }
  2597.  
  2598. extern __inline size_t __strcspn_c3 (__const char *__s, int __reject1,
  2599. int __reject2, int __reject3);
  2600. extern __inline size_t
  2601. __strcspn_c3 (__const char *__s, int __reject1, int __reject2,
  2602. int __reject3)
  2603. {
  2604. register size_t __result = 0;
  2605. while (__s[__result] != '\0' && __s[__result] != __reject1
  2606. && __s[__result] != __reject2 && __s[__result] != __reject3)
  2607. ++__result;
  2608. return __result;
  2609. }
  2610. # 1045 "/usr/include/bits/string2.h" 3 4
  2611. extern __inline size_t __strspn_c1 (__const char *__s, int __accept);
  2612. extern __inline size_t
  2613. __strspn_c1 (__const char *__s, int __accept)
  2614. {
  2615. register size_t __result = 0;
  2616.  
  2617. while (__s[__result] == __accept)
  2618. ++__result;
  2619. return __result;
  2620. }
  2621.  
  2622. extern __inline size_t __strspn_c2 (__const char *__s, int __accept1,
  2623. int __accept2);
  2624. extern __inline size_t
  2625. __strspn_c2 (__const char *__s, int __accept1, int __accept2)
  2626. {
  2627. register size_t __result = 0;
  2628.  
  2629. while (__s[__result] == __accept1 || __s[__result] == __accept2)
  2630. ++__result;
  2631. return __result;
  2632. }
  2633.  
  2634. extern __inline size_t __strspn_c3 (__const char *__s, int __accept1,
  2635. int __accept2, int __accept3);
  2636. extern __inline size_t
  2637. __strspn_c3 (__const char *__s, int __accept1, int __accept2, int __accept3)
  2638. {
  2639. register size_t __result = 0;
  2640.  
  2641. while (__s[__result] == __accept1 || __s[__result] == __accept2
  2642. || __s[__result] == __accept3)
  2643. ++__result;
  2644. return __result;
  2645. }
  2646. # 1121 "/usr/include/bits/string2.h" 3 4
  2647. extern __inline char *__strpbrk_c2 (__const char *__s, int __accept1,
  2648. int __accept2);
  2649. extern __inline char *
  2650. __strpbrk_c2 (__const char *__s, int __accept1, int __accept2)
  2651. {
  2652.  
  2653. while (*__s != '\0' && *__s != __accept1 && *__s != __accept2)
  2654. ++__s;
  2655. return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s;
  2656. }
  2657.  
  2658. extern __inline char *__strpbrk_c3 (__const char *__s, int __accept1,
  2659. int __accept2, int __accept3);
  2660. extern __inline char *
  2661. __strpbrk_c3 (__const char *__s, int __accept1, int __accept2,
  2662. int __accept3)
  2663. {
  2664.  
  2665. while (*__s != '\0' && *__s != __accept1 && *__s != __accept2
  2666. && *__s != __accept3)
  2667. ++__s;
  2668. return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s;
  2669. }
  2670. # 1172 "/usr/include/bits/string2.h" 3 4
  2671. extern __inline char *__strtok_r_1c (char *__s, char __sep, char **__nextp);
  2672. extern __inline char *
  2673. __strtok_r_1c (char *__s, char __sep, char **__nextp)
  2674. {
  2675. char *__result;
  2676. if (__s == ((void *)0))
  2677. __s = *__nextp;
  2678. while (*__s == __sep)
  2679. ++__s;
  2680. __result = ((void *)0);
  2681. if (*__s != '\0')
  2682. {
  2683. __result = __s++;
  2684. while (*__s != '\0')
  2685. if (*__s++ == __sep)
  2686. {
  2687. __s[-1] = '\0';
  2688. break;
  2689. }
  2690. }
  2691. *__nextp = __s;
  2692. return __result;
  2693. }
  2694. # 1204 "/usr/include/bits/string2.h" 3 4
  2695. extern char *__strsep_g (char **__stringp, __const char *__delim);
  2696. # 1222 "/usr/include/bits/string2.h" 3 4
  2697. extern __inline char *__strsep_1c (char **__s, char __reject);
  2698. extern __inline char *
  2699. __strsep_1c (char **__s, char __reject)
  2700. {
  2701. register char *__retval = *__s;
  2702. 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))
  2703. *(*__s)++ = '\0';
  2704. return __retval;
  2705. }
  2706.  
  2707. extern __inline char *__strsep_2c (char **__s, char __reject1, char __reject2);
  2708. extern __inline char *
  2709. __strsep_2c (char **__s, char __reject1, char __reject2)
  2710. {
  2711. register char *__retval = *__s;
  2712. if (__retval != ((void *)0))
  2713. {
  2714. register char *__cp = __retval;
  2715. while (1)
  2716. {
  2717. if (*__cp == '\0')
  2718. {
  2719. __cp = ((void *)0);
  2720. break;
  2721. }
  2722. if (*__cp == __reject1 || *__cp == __reject2)
  2723. {
  2724. *__cp++ = '\0';
  2725. break;
  2726. }
  2727. ++__cp;
  2728. }
  2729. *__s = __cp;
  2730. }
  2731. return __retval;
  2732. }
  2733.  
  2734. extern __inline char *__strsep_3c (char **__s, char __reject1, char __reject2,
  2735. char __reject3);
  2736. extern __inline char *
  2737. __strsep_3c (char **__s, char __reject1, char __reject2, char __reject3)
  2738. {
  2739. register char *__retval = *__s;
  2740. if (__retval != ((void *)0))
  2741. {
  2742. register char *__cp = __retval;
  2743. while (1)
  2744. {
  2745. if (*__cp == '\0')
  2746. {
  2747. __cp = ((void *)0);
  2748. break;
  2749. }
  2750. if (*__cp == __reject1 || *__cp == __reject2 || *__cp == __reject3)
  2751. {
  2752. *__cp++ = '\0';
  2753. break;
  2754. }
  2755. ++__cp;
  2756. }
  2757. *__s = __cp;
  2758. }
  2759. return __retval;
  2760. }
  2761. # 1303 "/usr/include/bits/string2.h" 3 4
  2762. extern char *__strdup (__const char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
  2763. # 1322 "/usr/include/bits/string2.h" 3 4
  2764. extern char *__strndup (__const char *__string, size_t __n)
  2765. __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
  2766. # 638 "/usr/include/string.h" 2 3 4
  2767. # 646 "/usr/include/string.h" 3 4
  2768.  
  2769. # 3 "readline.c" 2
  2770. # 1 "/usr/include/strings.h" 1 3 4
  2771. # 4 "readline.c" 2
  2772.  
  2773. # 1 "/usr/include/stdio.h" 1 3 4
  2774. # 30 "/usr/include/stdio.h" 3 4
  2775.  
  2776.  
  2777.  
  2778.  
  2779. # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 1 3 4
  2780. # 35 "/usr/include/stdio.h" 2 3 4
  2781. # 75 "/usr/include/stdio.h" 3 4
  2782. # 1 "/usr/include/libio.h" 1 3 4
  2783. # 32 "/usr/include/libio.h" 3 4
  2784. # 1 "/usr/include/_G_config.h" 1 3 4
  2785. # 15 "/usr/include/_G_config.h" 3 4
  2786. # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 1 3 4
  2787. # 16 "/usr/include/_G_config.h" 2 3 4
  2788.  
  2789.  
  2790.  
  2791.  
  2792. # 1 "/usr/include/wchar.h" 1 3 4
  2793. # 21 "/usr/include/_G_config.h" 2 3 4
  2794.  
  2795. typedef struct
  2796. {
  2797. __off_t __pos;
  2798. __mbstate_t __state;
  2799. } _G_fpos_t;
  2800. typedef struct
  2801. {
  2802. __off64_t __pos;
  2803. __mbstate_t __state;
  2804. } _G_fpos64_t;
  2805. # 53 "/usr/include/_G_config.h" 3 4
  2806. typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
  2807. typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
  2808. typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
  2809. typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
  2810. # 33 "/usr/include/libio.h" 2 3 4
  2811. # 170 "/usr/include/libio.h" 3 4
  2812. struct _IO_jump_t; struct _IO_FILE;
  2813. # 180 "/usr/include/libio.h" 3 4
  2814. typedef void _IO_lock_t;
  2815.  
  2816.  
  2817.  
  2818.  
  2819.  
  2820. struct _IO_marker {
  2821. struct _IO_marker *_next;
  2822. struct _IO_FILE *_sbuf;
  2823.  
  2824.  
  2825.  
  2826. int _pos;
  2827. # 203 "/usr/include/libio.h" 3 4
  2828. };
  2829.  
  2830.  
  2831. enum __codecvt_result
  2832. {
  2833. __codecvt_ok,
  2834. __codecvt_partial,
  2835. __codecvt_error,
  2836. __codecvt_noconv
  2837. };
  2838. # 271 "/usr/include/libio.h" 3 4
  2839. struct _IO_FILE {
  2840. int _flags;
  2841.  
  2842.  
  2843.  
  2844.  
  2845. char* _IO_read_ptr;
  2846. char* _IO_read_end;
  2847. char* _IO_read_base;
  2848. char* _IO_write_base;
  2849. char* _IO_write_ptr;
  2850. char* _IO_write_end;
  2851. char* _IO_buf_base;
  2852. char* _IO_buf_end;
  2853.  
  2854. char *_IO_save_base;
  2855. char *_IO_backup_base;
  2856. char *_IO_save_end;
  2857.  
  2858. struct _IO_marker *_markers;
  2859.  
  2860. struct _IO_FILE *_chain;
  2861.  
  2862. int _fileno;
  2863.  
  2864.  
  2865.  
  2866. int _flags2;
  2867.  
  2868. __off_t _old_offset;
  2869.  
  2870.  
  2871.  
  2872. unsigned short _cur_column;
  2873. signed char _vtable_offset;
  2874. char _shortbuf[1];
  2875.  
  2876.  
  2877.  
  2878. _IO_lock_t *_lock;
  2879. # 319 "/usr/include/libio.h" 3 4
  2880. __off64_t _offset;
  2881. # 328 "/usr/include/libio.h" 3 4
  2882. void *__pad1;
  2883. void *__pad2;
  2884. void *__pad3;
  2885. void *__pad4;
  2886. size_t __pad5;
  2887.  
  2888. int _mode;
  2889.  
  2890. char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
  2891.  
  2892. };
  2893.  
  2894.  
  2895. typedef struct _IO_FILE _IO_FILE;
  2896.  
  2897.  
  2898. struct _IO_FILE_plus;
  2899.  
  2900. extern struct _IO_FILE_plus _IO_2_1_stdin_;
  2901. extern struct _IO_FILE_plus _IO_2_1_stdout_;
  2902. extern struct _IO_FILE_plus _IO_2_1_stderr_;
  2903. # 364 "/usr/include/libio.h" 3 4
  2904. typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
  2905.  
  2906.  
  2907.  
  2908.  
  2909.  
  2910.  
  2911.  
  2912. typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf,
  2913. size_t __n);
  2914.  
  2915.  
  2916.  
  2917.  
  2918.  
  2919.  
  2920.  
  2921. typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);
  2922.  
  2923.  
  2924. typedef int __io_close_fn (void *__cookie);
  2925. # 416 "/usr/include/libio.h" 3 4
  2926. extern int __underflow (_IO_FILE *);
  2927. extern int __uflow (_IO_FILE *);
  2928. extern int __overflow (_IO_FILE *, int);
  2929. # 460 "/usr/include/libio.h" 3 4
  2930. extern int _IO_getc (_IO_FILE *__fp);
  2931. extern int _IO_putc (int __c, _IO_FILE *__fp);
  2932. extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__));
  2933. extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__));
  2934.  
  2935. extern int _IO_peekc_locked (_IO_FILE *__fp);
  2936.  
  2937.  
  2938.  
  2939.  
  2940.  
  2941. extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__));
  2942. extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__));
  2943. extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__));
  2944. # 490 "/usr/include/libio.h" 3 4
  2945. extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
  2946. __gnuc_va_list, int *__restrict);
  2947. extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict,
  2948. __gnuc_va_list);
  2949. extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t);
  2950. extern size_t _IO_sgetn (_IO_FILE *, void *, size_t);
  2951.  
  2952. extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int);
  2953. extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int);
  2954.  
  2955. extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__));
  2956. # 76 "/usr/include/stdio.h" 2 3 4
  2957. # 109 "/usr/include/stdio.h" 3 4
  2958.  
  2959.  
  2960. typedef _G_fpos_t fpos_t;
  2961.  
  2962.  
  2963.  
  2964.  
  2965. # 161 "/usr/include/stdio.h" 3 4
  2966. # 1 "/usr/include/bits/stdio_lim.h" 1 3 4
  2967. # 162 "/usr/include/stdio.h" 2 3 4
  2968.  
  2969.  
  2970.  
  2971. extern struct _IO_FILE *stdin;
  2972. extern struct _IO_FILE *stdout;
  2973. extern struct _IO_FILE *stderr;
  2974.  
  2975.  
  2976.  
  2977.  
  2978.  
  2979.  
  2980.  
  2981. extern int remove (__const char *__filename) __attribute__ ((__nothrow__));
  2982.  
  2983. extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__));
  2984.  
  2985.  
  2986.  
  2987.  
  2988. extern int renameat (int __oldfd, __const char *__old, int __newfd,
  2989. __const char *__new) __attribute__ ((__nothrow__));
  2990.  
  2991.  
  2992.  
  2993.  
  2994.  
  2995.  
  2996.  
  2997.  
  2998. extern FILE *tmpfile (void) ;
  2999. # 206 "/usr/include/stdio.h" 3 4
  3000. extern char *tmpnam (char *__s) __attribute__ ((__nothrow__)) ;
  3001.  
  3002.  
  3003.  
  3004.  
  3005.  
  3006. extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__)) ;
  3007. # 224 "/usr/include/stdio.h" 3 4
  3008. extern char *tempnam (__const char *__dir, __const char *__pfx)
  3009. __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
  3010.  
  3011.  
  3012.  
  3013.  
  3014.  
  3015.  
  3016.  
  3017.  
  3018. extern int fclose (FILE *__stream);
  3019.  
  3020.  
  3021.  
  3022.  
  3023. extern int fflush (FILE *__stream);
  3024.  
  3025. # 249 "/usr/include/stdio.h" 3 4
  3026. extern int fflush_unlocked (FILE *__stream);
  3027. # 263 "/usr/include/stdio.h" 3 4
  3028.  
  3029.  
  3030.  
  3031.  
  3032.  
  3033.  
  3034. extern FILE *fopen (__const char *__restrict __filename,
  3035. __const char *__restrict __modes) ;
  3036.  
  3037.  
  3038.  
  3039.  
  3040. extern FILE *freopen (__const char *__restrict __filename,
  3041. __const char *__restrict __modes,
  3042. FILE *__restrict __stream) ;
  3043. # 292 "/usr/include/stdio.h" 3 4
  3044.  
  3045. # 303 "/usr/include/stdio.h" 3 4
  3046. extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__)) ;
  3047. # 316 "/usr/include/stdio.h" 3 4
  3048. extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes)
  3049. __attribute__ ((__nothrow__)) ;
  3050.  
  3051.  
  3052.  
  3053.  
  3054. extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __attribute__ ((__nothrow__)) ;
  3055.  
  3056.  
  3057.  
  3058.  
  3059.  
  3060.  
  3061. extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__));
  3062.  
  3063.  
  3064.  
  3065. extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
  3066. int __modes, size_t __n) __attribute__ ((__nothrow__));
  3067.  
  3068.  
  3069.  
  3070.  
  3071.  
  3072. extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
  3073. size_t __size) __attribute__ ((__nothrow__));
  3074.  
  3075.  
  3076. extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__));
  3077.  
  3078.  
  3079.  
  3080.  
  3081.  
  3082.  
  3083.  
  3084.  
  3085. extern int fprintf (FILE *__restrict __stream,
  3086. __const char *__restrict __format, ...);
  3087.  
  3088.  
  3089.  
  3090.  
  3091. extern int printf (__const char *__restrict __format, ...);
  3092.  
  3093. extern int sprintf (char *__restrict __s,
  3094. __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
  3095.  
  3096.  
  3097.  
  3098.  
  3099.  
  3100. extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format,
  3101. __gnuc_va_list __arg);
  3102.  
  3103.  
  3104.  
  3105.  
  3106. extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg);
  3107.  
  3108. extern int vsprintf (char *__restrict __s, __const char *__restrict __format,
  3109. __gnuc_va_list __arg) __attribute__ ((__nothrow__));
  3110.  
  3111.  
  3112.  
  3113.  
  3114.  
  3115. extern int snprintf (char *__restrict __s, size_t __maxlen,
  3116. __const char *__restrict __format, ...)
  3117. __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4)));
  3118.  
  3119. extern int vsnprintf (char *__restrict __s, size_t __maxlen,
  3120. __const char *__restrict __format, __gnuc_va_list __arg)
  3121. __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0)));
  3122.  
  3123. # 414 "/usr/include/stdio.h" 3 4
  3124. extern int vdprintf (int __fd, __const char *__restrict __fmt,
  3125. __gnuc_va_list __arg)
  3126. __attribute__ ((__format__ (__printf__, 2, 0)));
  3127. extern int dprintf (int __fd, __const char *__restrict __fmt, ...)
  3128. __attribute__ ((__format__ (__printf__, 2, 3)));
  3129.  
  3130.  
  3131.  
  3132.  
  3133.  
  3134.  
  3135.  
  3136.  
  3137. extern int fscanf (FILE *__restrict __stream,
  3138. __const char *__restrict __format, ...) ;
  3139.  
  3140.  
  3141.  
  3142.  
  3143. extern int scanf (__const char *__restrict __format, ...) ;
  3144.  
  3145. extern int sscanf (__const char *__restrict __s,
  3146. __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
  3147. # 445 "/usr/include/stdio.h" 3 4
  3148. extern int fscanf (FILE *__restrict __stream, __const char *__restrict __format, ...) __asm__ ("" "__isoc99_fscanf")
  3149.  
  3150. ;
  3151. extern int scanf (__const char *__restrict __format, ...) __asm__ ("" "__isoc99_scanf")
  3152. ;
  3153. extern int sscanf (__const char *__restrict __s, __const char *__restrict __format, ...) __asm__ ("" "__isoc99_sscanf") __attribute__ ((__nothrow__))
  3154.  
  3155. ;
  3156. # 465 "/usr/include/stdio.h" 3 4
  3157.  
  3158.  
  3159.  
  3160.  
  3161.  
  3162.  
  3163.  
  3164.  
  3165. extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format,
  3166. __gnuc_va_list __arg)
  3167. __attribute__ ((__format__ (__scanf__, 2, 0))) ;
  3168.  
  3169.  
  3170.  
  3171.  
  3172.  
  3173. extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg)
  3174. __attribute__ ((__format__ (__scanf__, 1, 0))) ;
  3175.  
  3176.  
  3177. extern int vsscanf (__const char *__restrict __s,
  3178. __const char *__restrict __format, __gnuc_va_list __arg)
  3179. __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__scanf__, 2, 0)));
  3180. # 496 "/usr/include/stdio.h" 3 4
  3181. extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfscanf")
  3182.  
  3183.  
  3184.  
  3185. __attribute__ ((__format__ (__scanf__, 2, 0))) ;
  3186. extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vscanf")
  3187.  
  3188. __attribute__ ((__format__ (__scanf__, 1, 0))) ;
  3189. extern int vsscanf (__const char *__restrict __s, __const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vsscanf") __attribute__ ((__nothrow__))
  3190.  
  3191.  
  3192.  
  3193. __attribute__ ((__format__ (__scanf__, 2, 0)));
  3194. # 524 "/usr/include/stdio.h" 3 4
  3195.  
  3196.  
  3197.  
  3198.  
  3199.  
  3200.  
  3201.  
  3202.  
  3203.  
  3204. extern int fgetc (FILE *__stream);
  3205. extern int getc (FILE *__stream);
  3206.  
  3207.  
  3208.  
  3209.  
  3210.  
  3211. extern int getchar (void);
  3212.  
  3213. # 552 "/usr/include/stdio.h" 3 4
  3214. extern int getc_unlocked (FILE *__stream);
  3215. extern int getchar_unlocked (void);
  3216. # 563 "/usr/include/stdio.h" 3 4
  3217. extern int fgetc_unlocked (FILE *__stream);
  3218.  
  3219.  
  3220.  
  3221.  
  3222.  
  3223.  
  3224.  
  3225.  
  3226.  
  3227.  
  3228.  
  3229. extern int fputc (int __c, FILE *__stream);
  3230. extern int putc (int __c, FILE *__stream);
  3231.  
  3232.  
  3233.  
  3234.  
  3235.  
  3236. extern int putchar (int __c);
  3237.  
  3238. # 596 "/usr/include/stdio.h" 3 4
  3239. extern int fputc_unlocked (int __c, FILE *__stream);
  3240.  
  3241.  
  3242.  
  3243.  
  3244.  
  3245.  
  3246.  
  3247. extern int putc_unlocked (int __c, FILE *__stream);
  3248. extern int putchar_unlocked (int __c);
  3249.  
  3250.  
  3251.  
  3252.  
  3253.  
  3254.  
  3255. extern int getw (FILE *__stream);
  3256.  
  3257.  
  3258. extern int putw (int __w, FILE *__stream);
  3259.  
  3260.  
  3261.  
  3262.  
  3263.  
  3264.  
  3265.  
  3266.  
  3267. extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
  3268. ;
  3269.  
  3270.  
  3271.  
  3272.  
  3273.  
  3274.  
  3275. extern char *gets (char *__s) ;
  3276.  
  3277. # 658 "/usr/include/stdio.h" 3 4
  3278. extern __ssize_t __getdelim (char **__restrict __lineptr,
  3279. size_t *__restrict __n, int __delimiter,
  3280. FILE *__restrict __stream) ;
  3281. extern __ssize_t getdelim (char **__restrict __lineptr,
  3282. size_t *__restrict __n, int __delimiter,
  3283. FILE *__restrict __stream) ;
  3284.  
  3285.  
  3286.  
  3287.  
  3288.  
  3289.  
  3290.  
  3291. extern __ssize_t getline (char **__restrict __lineptr,
  3292. size_t *__restrict __n,
  3293. FILE *__restrict __stream) ;
  3294.  
  3295.  
  3296.  
  3297.  
  3298.  
  3299.  
  3300.  
  3301.  
  3302. extern int fputs (__const char *__restrict __s, FILE *__restrict __stream);
  3303.  
  3304.  
  3305.  
  3306.  
  3307.  
  3308. extern int puts (__const char *__s);
  3309.  
  3310.  
  3311.  
  3312.  
  3313.  
  3314.  
  3315. extern int ungetc (int __c, FILE *__stream);
  3316.  
  3317.  
  3318.  
  3319.  
  3320.  
  3321.  
  3322. extern size_t fread (void *__restrict __ptr, size_t __size,
  3323. size_t __n, FILE *__restrict __stream) ;
  3324.  
  3325.  
  3326.  
  3327.  
  3328. extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
  3329. size_t __n, FILE *__restrict __s) ;
  3330.  
  3331. # 730 "/usr/include/stdio.h" 3 4
  3332. extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
  3333. size_t __n, FILE *__restrict __stream) ;
  3334. extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
  3335. size_t __n, FILE *__restrict __stream) ;
  3336.  
  3337.  
  3338.  
  3339.  
  3340.  
  3341.  
  3342.  
  3343.  
  3344. extern int fseek (FILE *__stream, long int __off, int __whence);
  3345.  
  3346.  
  3347.  
  3348.  
  3349. extern long int ftell (FILE *__stream) ;
  3350.  
  3351.  
  3352.  
  3353.  
  3354. extern void rewind (FILE *__stream);
  3355.  
  3356. # 766 "/usr/include/stdio.h" 3 4
  3357. extern int fseeko (FILE *__stream, __off_t __off, int __whence);
  3358.  
  3359.  
  3360.  
  3361.  
  3362. extern __off_t ftello (FILE *__stream) ;
  3363. # 785 "/usr/include/stdio.h" 3 4
  3364.  
  3365.  
  3366.  
  3367.  
  3368.  
  3369.  
  3370. extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos);
  3371.  
  3372.  
  3373.  
  3374.  
  3375. extern int fsetpos (FILE *__stream, __const fpos_t *__pos);
  3376. # 808 "/usr/include/stdio.h" 3 4
  3377.  
  3378. # 817 "/usr/include/stdio.h" 3 4
  3379.  
  3380.  
  3381. extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__));
  3382.  
  3383. extern int feof (FILE *__stream) __attribute__ ((__nothrow__)) ;
  3384.  
  3385. extern int ferror (FILE *__stream) __attribute__ ((__nothrow__)) ;
  3386.  
  3387.  
  3388.  
  3389.  
  3390. extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
  3391. extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
  3392. extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
  3393.  
  3394.  
  3395.  
  3396.  
  3397.  
  3398.  
  3399.  
  3400.  
  3401. extern void perror (__const char *__s);
  3402.  
  3403.  
  3404.  
  3405.  
  3406.  
  3407.  
  3408. # 1 "/usr/include/bits/sys_errlist.h" 1 3 4
  3409. # 27 "/usr/include/bits/sys_errlist.h" 3 4
  3410. extern int sys_nerr;
  3411. extern __const char *__const sys_errlist[];
  3412. # 847 "/usr/include/stdio.h" 2 3 4
  3413.  
  3414.  
  3415.  
  3416.  
  3417. extern int fileno (FILE *__stream) __attribute__ ((__nothrow__)) ;
  3418.  
  3419.  
  3420.  
  3421.  
  3422. extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
  3423. # 866 "/usr/include/stdio.h" 3 4
  3424. extern FILE *popen (__const char *__command, __const char *__modes) ;
  3425.  
  3426.  
  3427.  
  3428.  
  3429.  
  3430. extern int pclose (FILE *__stream);
  3431.  
  3432.  
  3433.  
  3434.  
  3435.  
  3436. extern char *ctermid (char *__s) __attribute__ ((__nothrow__));
  3437. # 906 "/usr/include/stdio.h" 3 4
  3438. extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__));
  3439.  
  3440.  
  3441.  
  3442. extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__)) ;
  3443.  
  3444.  
  3445. extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__));
  3446. # 927 "/usr/include/stdio.h" 3 4
  3447. # 1 "/usr/include/bits/stdio.h" 1 3 4
  3448. # 36 "/usr/include/bits/stdio.h" 3 4
  3449. extern __inline int
  3450. vprintf (__const char *__restrict __fmt, __gnuc_va_list __arg)
  3451. {
  3452. return vfprintf (stdout, __fmt, __arg);
  3453. }
  3454.  
  3455.  
  3456.  
  3457. extern __inline int
  3458. getchar (void)
  3459. {
  3460. return _IO_getc (stdin);
  3461. }
  3462.  
  3463.  
  3464.  
  3465.  
  3466. extern __inline int
  3467. fgetc_unlocked (FILE *__fp)
  3468. {
  3469. return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++);
  3470. }
  3471.  
  3472.  
  3473.  
  3474.  
  3475.  
  3476. extern __inline int
  3477. getc_unlocked (FILE *__fp)
  3478. {
  3479. return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++);
  3480. }
  3481.  
  3482.  
  3483. extern __inline int
  3484. getchar_unlocked (void)
  3485. {
  3486. return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++);
  3487. }
  3488.  
  3489.  
  3490.  
  3491.  
  3492. extern __inline int
  3493. putchar (int __c)
  3494. {
  3495. return _IO_putc (__c, stdout);
  3496. }
  3497.  
  3498.  
  3499.  
  3500.  
  3501. extern __inline int
  3502. fputc_unlocked (int __c, FILE *__stream)
  3503. {
  3504. return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
  3505. }
  3506.  
  3507.  
  3508.  
  3509.  
  3510.  
  3511. extern __inline int
  3512. putc_unlocked (int __c, FILE *__stream)
  3513. {
  3514. return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
  3515. }
  3516.  
  3517.  
  3518. extern __inline int
  3519. putchar_unlocked (int __c)
  3520. {
  3521. return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c)));
  3522. }
  3523. # 125 "/usr/include/bits/stdio.h" 3 4
  3524. extern __inline int
  3525. __attribute__ ((__nothrow__)) feof_unlocked (FILE *__stream)
  3526. {
  3527. return (((__stream)->_flags & 0x10) != 0);
  3528. }
  3529.  
  3530.  
  3531. extern __inline int
  3532. __attribute__ ((__nothrow__)) ferror_unlocked (FILE *__stream)
  3533. {
  3534. return (((__stream)->_flags & 0x20) != 0);
  3535. }
  3536. # 928 "/usr/include/stdio.h" 2 3 4
  3537. # 936 "/usr/include/stdio.h" 3 4
  3538.  
  3539. # 6 "readline.c" 2
  3540. # 1 "/usr/include/unistd.h" 1 3 4
  3541. # 28 "/usr/include/unistd.h" 3 4
  3542.  
  3543. # 203 "/usr/include/unistd.h" 3 4
  3544. # 1 "/usr/include/bits/posix_opt.h" 1 3 4
  3545. # 204 "/usr/include/unistd.h" 2 3 4
  3546.  
  3547.  
  3548.  
  3549. # 1 "/usr/include/bits/environments.h" 1 3 4
  3550. # 23 "/usr/include/bits/environments.h" 3 4
  3551. # 1 "/usr/include/bits/wordsize.h" 1 3 4
  3552. # 24 "/usr/include/bits/environments.h" 2 3 4
  3553. # 208 "/usr/include/unistd.h" 2 3 4
  3554. # 227 "/usr/include/unistd.h" 3 4
  3555. # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 1 3 4
  3556. # 228 "/usr/include/unistd.h" 2 3 4
  3557. # 256 "/usr/include/unistd.h" 3 4
  3558. typedef __useconds_t useconds_t;
  3559. # 268 "/usr/include/unistd.h" 3 4
  3560. typedef __intptr_t intptr_t;
  3561.  
  3562.  
  3563.  
  3564.  
  3565.  
  3566.  
  3567. typedef __socklen_t socklen_t;
  3568. # 288 "/usr/include/unistd.h" 3 4
  3569. extern int access (__const char *__name, int __type) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  3570. # 305 "/usr/include/unistd.h" 3 4
  3571. extern int faccessat (int __fd, __const char *__file, int __type, int __flag)
  3572. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))) ;
  3573. # 331 "/usr/include/unistd.h" 3 4
  3574. extern __off_t lseek (int __fd, __off_t __offset, int __whence) __attribute__ ((__nothrow__));
  3575. # 350 "/usr/include/unistd.h" 3 4
  3576. extern int close (int __fd);
  3577.  
  3578.  
  3579.  
  3580.  
  3581.  
  3582.  
  3583. extern ssize_t read (int __fd, void *__buf, size_t __nbytes) ;
  3584.  
  3585.  
  3586.  
  3587.  
  3588.  
  3589. extern ssize_t write (int __fd, __const void *__buf, size_t __n) ;
  3590. # 373 "/usr/include/unistd.h" 3 4
  3591. extern ssize_t pread (int __fd, void *__buf, size_t __nbytes,
  3592. __off_t __offset) ;
  3593.  
  3594.  
  3595.  
  3596.  
  3597.  
  3598.  
  3599. extern ssize_t pwrite (int __fd, __const void *__buf, size_t __n,
  3600. __off_t __offset) ;
  3601. # 414 "/usr/include/unistd.h" 3 4
  3602. extern int pipe (int __pipedes[2]) __attribute__ ((__nothrow__)) ;
  3603. # 429 "/usr/include/unistd.h" 3 4
  3604. extern unsigned int alarm (unsigned int __seconds) __attribute__ ((__nothrow__));
  3605. # 441 "/usr/include/unistd.h" 3 4
  3606. extern unsigned int sleep (unsigned int __seconds);
  3607.  
  3608.  
  3609.  
  3610.  
  3611.  
  3612.  
  3613.  
  3614. extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval)
  3615. __attribute__ ((__nothrow__));
  3616.  
  3617.  
  3618.  
  3619.  
  3620.  
  3621.  
  3622. extern int usleep (__useconds_t __useconds);
  3623. # 466 "/usr/include/unistd.h" 3 4
  3624. extern int pause (void);
  3625.  
  3626.  
  3627.  
  3628. extern int chown (__const char *__file, __uid_t __owner, __gid_t __group)
  3629. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  3630.  
  3631.  
  3632.  
  3633. extern int fchown (int __fd, __uid_t __owner, __gid_t __group) __attribute__ ((__nothrow__)) ;
  3634.  
  3635.  
  3636.  
  3637.  
  3638. extern int lchown (__const char *__file, __uid_t __owner, __gid_t __group)
  3639. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  3640.  
  3641.  
  3642.  
  3643.  
  3644.  
  3645.  
  3646. extern int fchownat (int __fd, __const char *__file, __uid_t __owner,
  3647. __gid_t __group, int __flag)
  3648. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))) ;
  3649.  
  3650.  
  3651.  
  3652. extern int chdir (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  3653.  
  3654.  
  3655.  
  3656. extern int fchdir (int __fd) __attribute__ ((__nothrow__)) ;
  3657. # 508 "/usr/include/unistd.h" 3 4
  3658. extern char *getcwd (char *__buf, size_t __size) __attribute__ ((__nothrow__)) ;
  3659. # 522 "/usr/include/unistd.h" 3 4
  3660. extern char *getwd (char *__buf)
  3661. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) ;
  3662.  
  3663.  
  3664.  
  3665.  
  3666. extern int dup (int __fd) __attribute__ ((__nothrow__)) ;
  3667.  
  3668.  
  3669. extern int dup2 (int __fd, int __fd2) __attribute__ ((__nothrow__));
  3670. # 540 "/usr/include/unistd.h" 3 4
  3671. extern char **__environ;
  3672.  
  3673.  
  3674.  
  3675.  
  3676.  
  3677.  
  3678.  
  3679. extern int execve (__const char *__path, char *__const __argv[],
  3680. char *__const __envp[]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  3681.  
  3682.  
  3683.  
  3684.  
  3685. extern int fexecve (int __fd, char *__const __argv[], char *__const __envp[])
  3686. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
  3687.  
  3688.  
  3689.  
  3690.  
  3691. extern int execv (__const char *__path, char *__const __argv[])
  3692. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  3693.  
  3694.  
  3695.  
  3696. extern int execle (__const char *__path, __const char *__arg, ...)
  3697. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  3698.  
  3699.  
  3700.  
  3701. extern int execl (__const char *__path, __const char *__arg, ...)
  3702. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  3703.  
  3704.  
  3705.  
  3706. extern int execvp (__const char *__file, char *__const __argv[])
  3707. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  3708.  
  3709.  
  3710.  
  3711.  
  3712. extern int execlp (__const char *__file, __const char *__arg, ...)
  3713. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  3714. # 595 "/usr/include/unistd.h" 3 4
  3715. extern int nice (int __inc) __attribute__ ((__nothrow__)) ;
  3716.  
  3717.  
  3718.  
  3719.  
  3720. extern void _exit (int __status) __attribute__ ((__noreturn__));
  3721.  
  3722.  
  3723.  
  3724.  
  3725.  
  3726. # 1 "/usr/include/bits/confname.h" 1 3 4
  3727. # 26 "/usr/include/bits/confname.h" 3 4
  3728. enum
  3729. {
  3730. _PC_LINK_MAX,
  3731.  
  3732. _PC_MAX_CANON,
  3733.  
  3734. _PC_MAX_INPUT,
  3735.  
  3736. _PC_NAME_MAX,
  3737.  
  3738. _PC_PATH_MAX,
  3739.  
  3740. _PC_PIPE_BUF,
  3741.  
  3742. _PC_CHOWN_RESTRICTED,
  3743.  
  3744. _PC_NO_TRUNC,
  3745.  
  3746. _PC_VDISABLE,
  3747.  
  3748. _PC_SYNC_IO,
  3749.  
  3750. _PC_ASYNC_IO,
  3751.  
  3752. _PC_PRIO_IO,
  3753.  
  3754. _PC_SOCK_MAXBUF,
  3755.  
  3756. _PC_FILESIZEBITS,
  3757.  
  3758. _PC_REC_INCR_XFER_SIZE,
  3759.  
  3760. _PC_REC_MAX_XFER_SIZE,
  3761.  
  3762. _PC_REC_MIN_XFER_SIZE,
  3763.  
  3764. _PC_REC_XFER_ALIGN,
  3765.  
  3766. _PC_ALLOC_SIZE_MIN,
  3767.  
  3768. _PC_SYMLINK_MAX,
  3769.  
  3770. _PC_2_SYMLINKS
  3771.  
  3772. };
  3773.  
  3774.  
  3775. enum
  3776. {
  3777. _SC_ARG_MAX,
  3778.  
  3779. _SC_CHILD_MAX,
  3780.  
  3781. _SC_CLK_TCK,
  3782.  
  3783. _SC_NGROUPS_MAX,
  3784.  
  3785. _SC_OPEN_MAX,
  3786.  
  3787. _SC_STREAM_MAX,
  3788.  
  3789. _SC_TZNAME_MAX,
  3790.  
  3791. _SC_JOB_CONTROL,
  3792.  
  3793. _SC_SAVED_IDS,
  3794.  
  3795. _SC_REALTIME_SIGNALS,
  3796.  
  3797. _SC_PRIORITY_SCHEDULING,
  3798.  
  3799. _SC_TIMERS,
  3800.  
  3801. _SC_ASYNCHRONOUS_IO,
  3802.  
  3803. _SC_PRIORITIZED_IO,
  3804.  
  3805. _SC_SYNCHRONIZED_IO,
  3806.  
  3807. _SC_FSYNC,
  3808.  
  3809. _SC_MAPPED_FILES,
  3810.  
  3811. _SC_MEMLOCK,
  3812.  
  3813. _SC_MEMLOCK_RANGE,
  3814.  
  3815. _SC_MEMORY_PROTECTION,
  3816.  
  3817. _SC_MESSAGE_PASSING,
  3818.  
  3819. _SC_SEMAPHORES,
  3820.  
  3821. _SC_SHARED_MEMORY_OBJECTS,
  3822.  
  3823. _SC_AIO_LISTIO_MAX,
  3824.  
  3825. _SC_AIO_MAX,
  3826.  
  3827. _SC_AIO_PRIO_DELTA_MAX,
  3828.  
  3829. _SC_DELAYTIMER_MAX,
  3830.  
  3831. _SC_MQ_OPEN_MAX,
  3832.  
  3833. _SC_MQ_PRIO_MAX,
  3834.  
  3835. _SC_VERSION,
  3836.  
  3837. _SC_PAGESIZE,
  3838.  
  3839.  
  3840. _SC_RTSIG_MAX,
  3841.  
  3842. _SC_SEM_NSEMS_MAX,
  3843.  
  3844. _SC_SEM_VALUE_MAX,
  3845.  
  3846. _SC_SIGQUEUE_MAX,
  3847.  
  3848. _SC_TIMER_MAX,
  3849.  
  3850.  
  3851.  
  3852.  
  3853. _SC_BC_BASE_MAX,
  3854.  
  3855. _SC_BC_DIM_MAX,
  3856.  
  3857. _SC_BC_SCALE_MAX,
  3858.  
  3859. _SC_BC_STRING_MAX,
  3860.  
  3861. _SC_COLL_WEIGHTS_MAX,
  3862.  
  3863. _SC_EQUIV_CLASS_MAX,
  3864.  
  3865. _SC_EXPR_NEST_MAX,
  3866.  
  3867. _SC_LINE_MAX,
  3868.  
  3869. _SC_RE_DUP_MAX,
  3870.  
  3871. _SC_CHARCLASS_NAME_MAX,
  3872.  
  3873.  
  3874. _SC_2_VERSION,
  3875.  
  3876. _SC_2_C_BIND,
  3877.  
  3878. _SC_2_C_DEV,
  3879.  
  3880. _SC_2_FORT_DEV,
  3881.  
  3882. _SC_2_FORT_RUN,
  3883.  
  3884. _SC_2_SW_DEV,
  3885.  
  3886. _SC_2_LOCALEDEF,
  3887.  
  3888.  
  3889. _SC_PII,
  3890.  
  3891. _SC_PII_XTI,
  3892.  
  3893. _SC_PII_SOCKET,
  3894.  
  3895. _SC_PII_INTERNET,
  3896.  
  3897. _SC_PII_OSI,
  3898.  
  3899. _SC_POLL,
  3900.  
  3901. _SC_SELECT,
  3902.  
  3903. _SC_UIO_MAXIOV,
  3904.  
  3905. _SC_IOV_MAX = _SC_UIO_MAXIOV,
  3906.  
  3907. _SC_PII_INTERNET_STREAM,
  3908.  
  3909. _SC_PII_INTERNET_DGRAM,
  3910.  
  3911. _SC_PII_OSI_COTS,
  3912.  
  3913. _SC_PII_OSI_CLTS,
  3914.  
  3915. _SC_PII_OSI_M,
  3916.  
  3917. _SC_T_IOV_MAX,
  3918.  
  3919.  
  3920.  
  3921. _SC_THREADS,
  3922.  
  3923. _SC_THREAD_SAFE_FUNCTIONS,
  3924.  
  3925. _SC_GETGR_R_SIZE_MAX,
  3926.  
  3927. _SC_GETPW_R_SIZE_MAX,
  3928.  
  3929. _SC_LOGIN_NAME_MAX,
  3930.  
  3931. _SC_TTY_NAME_MAX,
  3932.  
  3933. _SC_THREAD_DESTRUCTOR_ITERATIONS,
  3934.  
  3935. _SC_THREAD_KEYS_MAX,
  3936.  
  3937. _SC_THREAD_STACK_MIN,
  3938.  
  3939. _SC_THREAD_THREADS_MAX,
  3940.  
  3941. _SC_THREAD_ATTR_STACKADDR,
  3942.  
  3943. _SC_THREAD_ATTR_STACKSIZE,
  3944.  
  3945. _SC_THREAD_PRIORITY_SCHEDULING,
  3946.  
  3947. _SC_THREAD_PRIO_INHERIT,
  3948.  
  3949. _SC_THREAD_PRIO_PROTECT,
  3950.  
  3951. _SC_THREAD_PROCESS_SHARED,
  3952.  
  3953.  
  3954. _SC_NPROCESSORS_CONF,
  3955.  
  3956. _SC_NPROCESSORS_ONLN,
  3957.  
  3958. _SC_PHYS_PAGES,
  3959.  
  3960. _SC_AVPHYS_PAGES,
  3961.  
  3962. _SC_ATEXIT_MAX,
  3963.  
  3964. _SC_PASS_MAX,
  3965.  
  3966.  
  3967. _SC_XOPEN_VERSION,
  3968.  
  3969. _SC_XOPEN_XCU_VERSION,
  3970.  
  3971. _SC_XOPEN_UNIX,
  3972.  
  3973. _SC_XOPEN_CRYPT,
  3974.  
  3975. _SC_XOPEN_ENH_I18N,
  3976.  
  3977. _SC_XOPEN_SHM,
  3978.  
  3979.  
  3980. _SC_2_CHAR_TERM,
  3981.  
  3982. _SC_2_C_VERSION,
  3983.  
  3984. _SC_2_UPE,
  3985.  
  3986.  
  3987. _SC_XOPEN_XPG2,
  3988.  
  3989. _SC_XOPEN_XPG3,
  3990.  
  3991. _SC_XOPEN_XPG4,
  3992.  
  3993.  
  3994. _SC_CHAR_BIT,
  3995.  
  3996. _SC_CHAR_MAX,
  3997.  
  3998. _SC_CHAR_MIN,
  3999.  
  4000. _SC_INT_MAX,
  4001.  
  4002. _SC_INT_MIN,
  4003.  
  4004. _SC_LONG_BIT,
  4005.  
  4006. _SC_WORD_BIT,
  4007.  
  4008. _SC_MB_LEN_MAX,
  4009.  
  4010. _SC_NZERO,
  4011.  
  4012. _SC_SSIZE_MAX,
  4013.  
  4014. _SC_SCHAR_MAX,
  4015.  
  4016. _SC_SCHAR_MIN,
  4017.  
  4018. _SC_SHRT_MAX,
  4019.  
  4020. _SC_SHRT_MIN,
  4021.  
  4022. _SC_UCHAR_MAX,
  4023.  
  4024. _SC_UINT_MAX,
  4025.  
  4026. _SC_ULONG_MAX,
  4027.  
  4028. _SC_USHRT_MAX,
  4029.  
  4030.  
  4031. _SC_NL_ARGMAX,
  4032.  
  4033. _SC_NL_LANGMAX,
  4034.  
  4035. _SC_NL_MSGMAX,
  4036.  
  4037. _SC_NL_NMAX,
  4038.  
  4039. _SC_NL_SETMAX,
  4040.  
  4041. _SC_NL_TEXTMAX,
  4042.  
  4043.  
  4044. _SC_XBS5_ILP32_OFF32,
  4045.  
  4046. _SC_XBS5_ILP32_OFFBIG,
  4047.  
  4048. _SC_XBS5_LP64_OFF64,
  4049.  
  4050. _SC_XBS5_LPBIG_OFFBIG,
  4051.  
  4052.  
  4053. _SC_XOPEN_LEGACY,
  4054.  
  4055. _SC_XOPEN_REALTIME,
  4056.  
  4057. _SC_XOPEN_REALTIME_THREADS,
  4058.  
  4059.  
  4060. _SC_ADVISORY_INFO,
  4061.  
  4062. _SC_BARRIERS,
  4063.  
  4064. _SC_BASE,
  4065.  
  4066. _SC_C_LANG_SUPPORT,
  4067.  
  4068. _SC_C_LANG_SUPPORT_R,
  4069.  
  4070. _SC_CLOCK_SELECTION,
  4071.  
  4072. _SC_CPUTIME,
  4073.  
  4074. _SC_THREAD_CPUTIME,
  4075.  
  4076. _SC_DEVICE_IO,
  4077.  
  4078. _SC_DEVICE_SPECIFIC,
  4079.  
  4080. _SC_DEVICE_SPECIFIC_R,
  4081.  
  4082. _SC_FD_MGMT,
  4083.  
  4084. _SC_FIFO,
  4085.  
  4086. _SC_PIPE,
  4087.  
  4088. _SC_FILE_ATTRIBUTES,
  4089.  
  4090. _SC_FILE_LOCKING,
  4091.  
  4092. _SC_FILE_SYSTEM,
  4093.  
  4094. _SC_MONOTONIC_CLOCK,
  4095.  
  4096. _SC_MULTI_PROCESS,
  4097.  
  4098. _SC_SINGLE_PROCESS,
  4099.  
  4100. _SC_NETWORKING,
  4101.  
  4102. _SC_READER_WRITER_LOCKS,
  4103.  
  4104. _SC_SPIN_LOCKS,
  4105.  
  4106. _SC_REGEXP,
  4107.  
  4108. _SC_REGEX_VERSION,
  4109.  
  4110. _SC_SHELL,
  4111.  
  4112. _SC_SIGNALS,
  4113.  
  4114. _SC_SPAWN,
  4115.  
  4116. _SC_SPORADIC_SERVER,
  4117.  
  4118. _SC_THREAD_SPORADIC_SERVER,
  4119.  
  4120. _SC_SYSTEM_DATABASE,
  4121.  
  4122. _SC_SYSTEM_DATABASE_R,
  4123.  
  4124. _SC_TIMEOUTS,
  4125.  
  4126. _SC_TYPED_MEMORY_OBJECTS,
  4127.  
  4128. _SC_USER_GROUPS,
  4129.  
  4130. _SC_USER_GROUPS_R,
  4131.  
  4132. _SC_2_PBS,
  4133.  
  4134. _SC_2_PBS_ACCOUNTING,
  4135.  
  4136. _SC_2_PBS_LOCATE,
  4137.  
  4138. _SC_2_PBS_MESSAGE,
  4139.  
  4140. _SC_2_PBS_TRACK,
  4141.  
  4142. _SC_SYMLOOP_MAX,
  4143.  
  4144. _SC_STREAMS,
  4145.  
  4146. _SC_2_PBS_CHECKPOINT,
  4147.  
  4148.  
  4149. _SC_V6_ILP32_OFF32,
  4150.  
  4151. _SC_V6_ILP32_OFFBIG,
  4152.  
  4153. _SC_V6_LP64_OFF64,
  4154.  
  4155. _SC_V6_LPBIG_OFFBIG,
  4156.  
  4157.  
  4158. _SC_HOST_NAME_MAX,
  4159.  
  4160. _SC_TRACE,
  4161.  
  4162. _SC_TRACE_EVENT_FILTER,
  4163.  
  4164. _SC_TRACE_INHERIT,
  4165.  
  4166. _SC_TRACE_LOG,
  4167.  
  4168.  
  4169. _SC_LEVEL1_ICACHE_SIZE,
  4170.  
  4171. _SC_LEVEL1_ICACHE_ASSOC,
  4172.  
  4173. _SC_LEVEL1_ICACHE_LINESIZE,
  4174.  
  4175. _SC_LEVEL1_DCACHE_SIZE,
  4176.  
  4177. _SC_LEVEL1_DCACHE_ASSOC,
  4178.  
  4179. _SC_LEVEL1_DCACHE_LINESIZE,
  4180.  
  4181. _SC_LEVEL2_CACHE_SIZE,
  4182.  
  4183. _SC_LEVEL2_CACHE_ASSOC,
  4184.  
  4185. _SC_LEVEL2_CACHE_LINESIZE,
  4186.  
  4187. _SC_LEVEL3_CACHE_SIZE,
  4188.  
  4189. _SC_LEVEL3_CACHE_ASSOC,
  4190.  
  4191. _SC_LEVEL3_CACHE_LINESIZE,
  4192.  
  4193. _SC_LEVEL4_CACHE_SIZE,
  4194.  
  4195. _SC_LEVEL4_CACHE_ASSOC,
  4196.  
  4197. _SC_LEVEL4_CACHE_LINESIZE,
  4198.  
  4199.  
  4200.  
  4201. _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50,
  4202.  
  4203. _SC_RAW_SOCKETS,
  4204.  
  4205.  
  4206. _SC_V7_ILP32_OFF32,
  4207.  
  4208. _SC_V7_ILP32_OFFBIG,
  4209.  
  4210. _SC_V7_LP64_OFF64,
  4211.  
  4212. _SC_V7_LPBIG_OFFBIG,
  4213.  
  4214.  
  4215. _SC_SS_REPL_MAX,
  4216.  
  4217.  
  4218. _SC_TRACE_EVENT_NAME_MAX,
  4219.  
  4220. _SC_TRACE_NAME_MAX,
  4221.  
  4222. _SC_TRACE_SYS_MAX,
  4223.  
  4224. _SC_TRACE_USER_EVENT_MAX,
  4225.  
  4226.  
  4227. _SC_XOPEN_STREAMS,
  4228.  
  4229.  
  4230. _SC_THREAD_ROBUST_PRIO_INHERIT,
  4231.  
  4232. _SC_THREAD_ROBUST_PRIO_PROTECT
  4233.  
  4234. };
  4235.  
  4236.  
  4237. enum
  4238. {
  4239. _CS_PATH,
  4240.  
  4241.  
  4242. _CS_V6_WIDTH_RESTRICTED_ENVS,
  4243.  
  4244.  
  4245.  
  4246. _CS_GNU_LIBC_VERSION,
  4247.  
  4248. _CS_GNU_LIBPTHREAD_VERSION,
  4249.  
  4250.  
  4251. _CS_V5_WIDTH_RESTRICTED_ENVS,
  4252.  
  4253.  
  4254.  
  4255. _CS_V7_WIDTH_RESTRICTED_ENVS,
  4256.  
  4257.  
  4258.  
  4259. _CS_LFS_CFLAGS = 1000,
  4260.  
  4261. _CS_LFS_LDFLAGS,
  4262.  
  4263. _CS_LFS_LIBS,
  4264.  
  4265. _CS_LFS_LINTFLAGS,
  4266.  
  4267. _CS_LFS64_CFLAGS,
  4268.  
  4269. _CS_LFS64_LDFLAGS,
  4270.  
  4271. _CS_LFS64_LIBS,
  4272.  
  4273. _CS_LFS64_LINTFLAGS,
  4274.  
  4275.  
  4276. _CS_XBS5_ILP32_OFF32_CFLAGS = 1100,
  4277.  
  4278. _CS_XBS5_ILP32_OFF32_LDFLAGS,
  4279.  
  4280. _CS_XBS5_ILP32_OFF32_LIBS,
  4281.  
  4282. _CS_XBS5_ILP32_OFF32_LINTFLAGS,
  4283.  
  4284. _CS_XBS5_ILP32_OFFBIG_CFLAGS,
  4285.  
  4286. _CS_XBS5_ILP32_OFFBIG_LDFLAGS,
  4287.  
  4288. _CS_XBS5_ILP32_OFFBIG_LIBS,
  4289.  
  4290. _CS_XBS5_ILP32_OFFBIG_LINTFLAGS,
  4291.  
  4292. _CS_XBS5_LP64_OFF64_CFLAGS,
  4293.  
  4294. _CS_XBS5_LP64_OFF64_LDFLAGS,
  4295.  
  4296. _CS_XBS5_LP64_OFF64_LIBS,
  4297.  
  4298. _CS_XBS5_LP64_OFF64_LINTFLAGS,
  4299.  
  4300. _CS_XBS5_LPBIG_OFFBIG_CFLAGS,
  4301.  
  4302. _CS_XBS5_LPBIG_OFFBIG_LDFLAGS,
  4303.  
  4304. _CS_XBS5_LPBIG_OFFBIG_LIBS,
  4305.  
  4306. _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS,
  4307.  
  4308.  
  4309. _CS_POSIX_V6_ILP32_OFF32_CFLAGS,
  4310.  
  4311. _CS_POSIX_V6_ILP32_OFF32_LDFLAGS,
  4312.  
  4313. _CS_POSIX_V6_ILP32_OFF32_LIBS,
  4314.  
  4315. _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS,
  4316.  
  4317. _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS,
  4318.  
  4319. _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS,
  4320.  
  4321. _CS_POSIX_V6_ILP32_OFFBIG_LIBS,
  4322.  
  4323. _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS,
  4324.  
  4325. _CS_POSIX_V6_LP64_OFF64_CFLAGS,
  4326.  
  4327. _CS_POSIX_V6_LP64_OFF64_LDFLAGS,
  4328.  
  4329. _CS_POSIX_V6_LP64_OFF64_LIBS,
  4330.  
  4331. _CS_POSIX_V6_LP64_OFF64_LINTFLAGS,
  4332.  
  4333. _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS,
  4334.  
  4335. _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS,
  4336.  
  4337. _CS_POSIX_V6_LPBIG_OFFBIG_LIBS,
  4338.  
  4339. _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS,
  4340.  
  4341.  
  4342. _CS_POSIX_V7_ILP32_OFF32_CFLAGS,
  4343.  
  4344. _CS_POSIX_V7_ILP32_OFF32_LDFLAGS,
  4345.  
  4346. _CS_POSIX_V7_ILP32_OFF32_LIBS,
  4347.  
  4348. _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS,
  4349.  
  4350. _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS,
  4351.  
  4352. _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS,
  4353.  
  4354. _CS_POSIX_V7_ILP32_OFFBIG_LIBS,
  4355.  
  4356. _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS,
  4357.  
  4358. _CS_POSIX_V7_LP64_OFF64_CFLAGS,
  4359.  
  4360. _CS_POSIX_V7_LP64_OFF64_LDFLAGS,
  4361.  
  4362. _CS_POSIX_V7_LP64_OFF64_LIBS,
  4363.  
  4364. _CS_POSIX_V7_LP64_OFF64_LINTFLAGS,
  4365.  
  4366. _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS,
  4367.  
  4368. _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS,
  4369.  
  4370. _CS_POSIX_V7_LPBIG_OFFBIG_LIBS,
  4371.  
  4372. _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS,
  4373.  
  4374.  
  4375. _CS_V6_ENV,
  4376.  
  4377. _CS_V7_ENV
  4378.  
  4379. };
  4380. # 607 "/usr/include/unistd.h" 2 3 4
  4381.  
  4382.  
  4383. extern long int pathconf (__const char *__path, int __name)
  4384. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  4385.  
  4386.  
  4387. extern long int fpathconf (int __fd, int __name) __attribute__ ((__nothrow__));
  4388.  
  4389.  
  4390. extern long int sysconf (int __name) __attribute__ ((__nothrow__));
  4391.  
  4392.  
  4393.  
  4394. extern size_t confstr (int __name, char *__buf, size_t __len) __attribute__ ((__nothrow__));
  4395.  
  4396.  
  4397.  
  4398.  
  4399. extern __pid_t getpid (void) __attribute__ ((__nothrow__));
  4400.  
  4401.  
  4402. extern __pid_t getppid (void) __attribute__ ((__nothrow__));
  4403.  
  4404.  
  4405.  
  4406.  
  4407. extern __pid_t getpgrp (void) __attribute__ ((__nothrow__));
  4408. # 643 "/usr/include/unistd.h" 3 4
  4409. extern __pid_t __getpgid (__pid_t __pid) __attribute__ ((__nothrow__));
  4410.  
  4411. extern __pid_t getpgid (__pid_t __pid) __attribute__ ((__nothrow__));
  4412.  
  4413.  
  4414.  
  4415.  
  4416.  
  4417.  
  4418. extern int setpgid (__pid_t __pid, __pid_t __pgid) __attribute__ ((__nothrow__));
  4419. # 669 "/usr/include/unistd.h" 3 4
  4420. extern int setpgrp (void) __attribute__ ((__nothrow__));
  4421. # 686 "/usr/include/unistd.h" 3 4
  4422. extern __pid_t setsid (void) __attribute__ ((__nothrow__));
  4423.  
  4424.  
  4425.  
  4426. extern __pid_t getsid (__pid_t __pid) __attribute__ ((__nothrow__));
  4427.  
  4428.  
  4429.  
  4430. extern __uid_t getuid (void) __attribute__ ((__nothrow__));
  4431.  
  4432.  
  4433. extern __uid_t geteuid (void) __attribute__ ((__nothrow__));
  4434.  
  4435.  
  4436. extern __gid_t getgid (void) __attribute__ ((__nothrow__));
  4437.  
  4438.  
  4439. extern __gid_t getegid (void) __attribute__ ((__nothrow__));
  4440.  
  4441.  
  4442.  
  4443.  
  4444. extern int getgroups (int __size, __gid_t __list[]) __attribute__ ((__nothrow__)) ;
  4445. # 719 "/usr/include/unistd.h" 3 4
  4446. extern int setuid (__uid_t __uid) __attribute__ ((__nothrow__));
  4447.  
  4448.  
  4449.  
  4450.  
  4451. extern int setreuid (__uid_t __ruid, __uid_t __euid) __attribute__ ((__nothrow__));
  4452.  
  4453.  
  4454.  
  4455.  
  4456. extern int seteuid (__uid_t __uid) __attribute__ ((__nothrow__));
  4457.  
  4458.  
  4459.  
  4460.  
  4461.  
  4462.  
  4463. extern int setgid (__gid_t __gid) __attribute__ ((__nothrow__));
  4464.  
  4465.  
  4466.  
  4467.  
  4468. extern int setregid (__gid_t __rgid, __gid_t __egid) __attribute__ ((__nothrow__));
  4469.  
  4470.  
  4471.  
  4472.  
  4473. extern int setegid (__gid_t __gid) __attribute__ ((__nothrow__));
  4474. # 775 "/usr/include/unistd.h" 3 4
  4475. extern __pid_t fork (void) __attribute__ ((__nothrow__));
  4476.  
  4477.  
  4478.  
  4479.  
  4480.  
  4481.  
  4482.  
  4483. extern __pid_t vfork (void) __attribute__ ((__nothrow__));
  4484.  
  4485.  
  4486.  
  4487.  
  4488.  
  4489. extern char *ttyname (int __fd) __attribute__ ((__nothrow__));
  4490.  
  4491.  
  4492.  
  4493. extern int ttyname_r (int __fd, char *__buf, size_t __buflen)
  4494. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))) ;
  4495.  
  4496.  
  4497.  
  4498. extern int isatty (int __fd) __attribute__ ((__nothrow__));
  4499.  
  4500.  
  4501.  
  4502.  
  4503.  
  4504. extern int ttyslot (void) __attribute__ ((__nothrow__));
  4505.  
  4506.  
  4507.  
  4508.  
  4509. extern int link (__const char *__from, __const char *__to)
  4510. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))) ;
  4511.  
  4512.  
  4513.  
  4514.  
  4515. extern int linkat (int __fromfd, __const char *__from, int __tofd,
  4516. __const char *__to, int __flags)
  4517. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4))) ;
  4518.  
  4519.  
  4520.  
  4521.  
  4522. extern int symlink (__const char *__from, __const char *__to)
  4523. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))) ;
  4524.  
  4525.  
  4526.  
  4527.  
  4528. extern ssize_t readlink (__const char *__restrict __path,
  4529. char *__restrict __buf, size_t __len)
  4530. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))) ;
  4531.  
  4532.  
  4533.  
  4534.  
  4535. extern int symlinkat (__const char *__from, int __tofd,
  4536. __const char *__to) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3))) ;
  4537.  
  4538.  
  4539. extern ssize_t readlinkat (int __fd, __const char *__restrict __path,
  4540. char *__restrict __buf, size_t __len)
  4541. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))) ;
  4542.  
  4543.  
  4544.  
  4545. extern int unlink (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  4546.  
  4547.  
  4548.  
  4549. extern int unlinkat (int __fd, __const char *__name, int __flag)
  4550. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
  4551.  
  4552.  
  4553.  
  4554. extern int rmdir (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  4555.  
  4556.  
  4557.  
  4558. extern __pid_t tcgetpgrp (int __fd) __attribute__ ((__nothrow__));
  4559.  
  4560.  
  4561. extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) __attribute__ ((__nothrow__));
  4562.  
  4563.  
  4564.  
  4565.  
  4566.  
  4567.  
  4568. extern char *getlogin (void);
  4569.  
  4570.  
  4571.  
  4572.  
  4573.  
  4574.  
  4575.  
  4576. extern int getlogin_r (char *__name, size_t __name_len) __attribute__ ((__nonnull__ (1)));
  4577.  
  4578.  
  4579.  
  4580.  
  4581. extern int setlogin (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  4582. # 890 "/usr/include/unistd.h" 3 4
  4583. # 1 "/usr/include/getopt.h" 1 3 4
  4584. # 59 "/usr/include/getopt.h" 3 4
  4585. extern char *optarg;
  4586. # 73 "/usr/include/getopt.h" 3 4
  4587. extern int optind;
  4588.  
  4589.  
  4590.  
  4591.  
  4592. extern int opterr;
  4593.  
  4594.  
  4595.  
  4596. extern int optopt;
  4597. # 152 "/usr/include/getopt.h" 3 4
  4598. extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)
  4599. __attribute__ ((__nothrow__));
  4600. # 891 "/usr/include/unistd.h" 2 3 4
  4601.  
  4602.  
  4603.  
  4604.  
  4605.  
  4606.  
  4607.  
  4608. extern int gethostname (char *__name, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  4609.  
  4610.  
  4611.  
  4612.  
  4613.  
  4614.  
  4615. extern int sethostname (__const char *__name, size_t __len)
  4616. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  4617.  
  4618.  
  4619.  
  4620. extern int sethostid (long int __id) __attribute__ ((__nothrow__)) ;
  4621.  
  4622.  
  4623.  
  4624.  
  4625.  
  4626. extern int getdomainname (char *__name, size_t __len)
  4627. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  4628. extern int setdomainname (__const char *__name, size_t __len)
  4629. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  4630.  
  4631.  
  4632.  
  4633.  
  4634.  
  4635. extern int vhangup (void) __attribute__ ((__nothrow__));
  4636.  
  4637.  
  4638. extern int revoke (__const char *__file) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  4639.  
  4640.  
  4641.  
  4642.  
  4643.  
  4644.  
  4645.  
  4646. extern int profil (unsigned short int *__sample_buffer, size_t __size,
  4647. size_t __offset, unsigned int __scale)
  4648. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  4649.  
  4650.  
  4651.  
  4652.  
  4653.  
  4654. extern int acct (__const char *__name) __attribute__ ((__nothrow__));
  4655.  
  4656.  
  4657.  
  4658. extern char *getusershell (void) __attribute__ ((__nothrow__));
  4659. extern void endusershell (void) __attribute__ ((__nothrow__));
  4660. extern void setusershell (void) __attribute__ ((__nothrow__));
  4661.  
  4662.  
  4663.  
  4664.  
  4665.  
  4666. extern int daemon (int __nochdir, int __noclose) __attribute__ ((__nothrow__)) ;
  4667.  
  4668.  
  4669.  
  4670.  
  4671.  
  4672.  
  4673. extern int chroot (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  4674.  
  4675.  
  4676.  
  4677. extern char *getpass (__const char *__prompt) __attribute__ ((__nonnull__ (1)));
  4678. # 976 "/usr/include/unistd.h" 3 4
  4679. extern int fsync (int __fd);
  4680.  
  4681.  
  4682.  
  4683.  
  4684.  
  4685.  
  4686. extern long int gethostid (void);
  4687.  
  4688.  
  4689. extern void sync (void) __attribute__ ((__nothrow__));
  4690.  
  4691.  
  4692.  
  4693.  
  4694.  
  4695. extern int getpagesize (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
  4696.  
  4697.  
  4698.  
  4699.  
  4700. extern int getdtablesize (void) __attribute__ ((__nothrow__));
  4701. # 1007 "/usr/include/unistd.h" 3 4
  4702. extern int truncate (__const char *__file, __off_t __length)
  4703. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  4704. # 1026 "/usr/include/unistd.h" 3 4
  4705. extern int ftruncate (int __fd, __off_t __length) __attribute__ ((__nothrow__)) ;
  4706. # 1047 "/usr/include/unistd.h" 3 4
  4707. extern int brk (void *__addr) __attribute__ ((__nothrow__)) ;
  4708.  
  4709.  
  4710.  
  4711.  
  4712.  
  4713. extern void *sbrk (intptr_t __delta) __attribute__ ((__nothrow__));
  4714. # 1068 "/usr/include/unistd.h" 3 4
  4715. extern long int syscall (long int __sysno, ...) __attribute__ ((__nothrow__));
  4716. # 1091 "/usr/include/unistd.h" 3 4
  4717. extern int lockf (int __fd, int __cmd, __off_t __len) ;
  4718. # 1122 "/usr/include/unistd.h" 3 4
  4719. extern int fdatasync (int __fildes);
  4720. # 1151 "/usr/include/unistd.h" 3 4
  4721. extern char *ctermid (char *__s) __attribute__ ((__nothrow__));
  4722. # 1160 "/usr/include/unistd.h" 3 4
  4723.  
  4724. # 7 "readline.c" 2
  4725. # 1 "/usr/include/errno.h" 1 3 4
  4726. # 32 "/usr/include/errno.h" 3 4
  4727.  
  4728.  
  4729.  
  4730.  
  4731. # 1 "/usr/include/bits/errno.h" 1 3 4
  4732. # 25 "/usr/include/bits/errno.h" 3 4
  4733. # 1 "/usr/include/linux/errno.h" 1 3 4
  4734.  
  4735.  
  4736.  
  4737. # 1 "/usr/include/asm/errno.h" 1 3 4
  4738. # 1 "/usr/include/asm-generic/errno.h" 1 3 4
  4739.  
  4740.  
  4741.  
  4742. # 1 "/usr/include/asm-generic/errno-base.h" 1 3 4
  4743. # 5 "/usr/include/asm-generic/errno.h" 2 3 4
  4744. # 1 "/usr/include/asm/errno.h" 2 3 4
  4745. # 5 "/usr/include/linux/errno.h" 2 3 4
  4746. # 26 "/usr/include/bits/errno.h" 2 3 4
  4747. # 47 "/usr/include/bits/errno.h" 3 4
  4748. extern int *__errno_location (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
  4749. # 37 "/usr/include/errno.h" 2 3 4
  4750. # 59 "/usr/include/errno.h" 3 4
  4751.  
  4752. # 8 "readline.c" 2
  4753. # 1 "/usr/include/fcntl.h" 1 3 4
  4754. # 30 "/usr/include/fcntl.h" 3 4
  4755.  
  4756.  
  4757.  
  4758.  
  4759. # 1 "/usr/include/bits/fcntl.h" 1 3 4
  4760. # 26 "/usr/include/bits/fcntl.h" 3 4
  4761. # 1 "/usr/include/bits/wordsize.h" 1 3 4
  4762. # 27 "/usr/include/bits/fcntl.h" 2 3 4
  4763. # 165 "/usr/include/bits/fcntl.h" 3 4
  4764. struct flock
  4765. {
  4766. short int l_type;
  4767. short int l_whence;
  4768.  
  4769. __off_t l_start;
  4770. __off_t l_len;
  4771.  
  4772.  
  4773.  
  4774.  
  4775. __pid_t l_pid;
  4776. };
  4777. # 250 "/usr/include/bits/fcntl.h" 3 4
  4778.  
  4779. # 295 "/usr/include/bits/fcntl.h" 3 4
  4780.  
  4781. # 35 "/usr/include/fcntl.h" 2 3 4
  4782.  
  4783.  
  4784.  
  4785.  
  4786.  
  4787. # 1 "/usr/include/time.h" 1 3 4
  4788. # 41 "/usr/include/fcntl.h" 2 3 4
  4789. # 1 "/usr/include/bits/stat.h" 1 3 4
  4790. # 46 "/usr/include/bits/stat.h" 3 4
  4791. struct stat
  4792. {
  4793. __dev_t st_dev;
  4794.  
  4795.  
  4796.  
  4797.  
  4798. __ino_t st_ino;
  4799.  
  4800.  
  4801.  
  4802.  
  4803.  
  4804.  
  4805.  
  4806. __nlink_t st_nlink;
  4807. __mode_t st_mode;
  4808.  
  4809. __uid_t st_uid;
  4810. __gid_t st_gid;
  4811.  
  4812. int __pad0;
  4813.  
  4814. __dev_t st_rdev;
  4815.  
  4816.  
  4817.  
  4818.  
  4819. __off_t st_size;
  4820.  
  4821.  
  4822.  
  4823. __blksize_t st_blksize;
  4824.  
  4825. __blkcnt_t st_blocks;
  4826. # 91 "/usr/include/bits/stat.h" 3 4
  4827. struct timespec st_atim;
  4828. struct timespec st_mtim;
  4829. struct timespec st_ctim;
  4830. # 106 "/usr/include/bits/stat.h" 3 4
  4831. long int __unused[3];
  4832. # 115 "/usr/include/bits/stat.h" 3 4
  4833. };
  4834. # 42 "/usr/include/fcntl.h" 2 3 4
  4835. # 122 "/usr/include/fcntl.h" 3 4
  4836. extern int fcntl (int __fd, int __cmd, ...);
  4837. # 131 "/usr/include/fcntl.h" 3 4
  4838. extern int open (__const char *__file, int __oflag, ...) __attribute__ ((__nonnull__ (1)));
  4839. # 155 "/usr/include/fcntl.h" 3 4
  4840. extern int openat (int __fd, __const char *__file, int __oflag, ...)
  4841. __attribute__ ((__nonnull__ (2)));
  4842. # 177 "/usr/include/fcntl.h" 3 4
  4843. extern int creat (__const char *__file, __mode_t __mode) __attribute__ ((__nonnull__ (1)));
  4844. # 223 "/usr/include/fcntl.h" 3 4
  4845. extern int posix_fadvise (int __fd, __off_t __offset, __off_t __len,
  4846. int __advise) __attribute__ ((__nothrow__));
  4847. # 245 "/usr/include/fcntl.h" 3 4
  4848. extern int posix_fallocate (int __fd, __off_t __offset, __off_t __len);
  4849. # 267 "/usr/include/fcntl.h" 3 4
  4850.  
  4851. # 9 "readline.c" 2
  4852. # 1 "/usr/include/libgen.h" 1 3 4
  4853. # 24 "/usr/include/libgen.h" 3 4
  4854.  
  4855.  
  4856.  
  4857. extern char *dirname (char *__path) __attribute__ ((__nothrow__));
  4858.  
  4859.  
  4860.  
  4861.  
  4862.  
  4863.  
  4864.  
  4865. extern char *__xpg_basename (char *__path) __attribute__ ((__nothrow__));
  4866.  
  4867.  
  4868.  
  4869. # 10 "readline.c" 2
  4870. # 1 "/usr/include/dirent.h" 1 3 4
  4871. # 28 "/usr/include/dirent.h" 3 4
  4872.  
  4873. # 62 "/usr/include/dirent.h" 3 4
  4874. # 1 "/usr/include/bits/dirent.h" 1 3 4
  4875. # 23 "/usr/include/bits/dirent.h" 3 4
  4876. struct dirent
  4877. {
  4878.  
  4879. __ino_t d_ino;
  4880. __off_t d_off;
  4881.  
  4882.  
  4883.  
  4884.  
  4885. unsigned short int d_reclen;
  4886. unsigned char d_type;
  4887. char d_name[256];
  4888. };
  4889. # 63 "/usr/include/dirent.h" 2 3 4
  4890. # 98 "/usr/include/dirent.h" 3 4
  4891. enum
  4892. {
  4893. DT_UNKNOWN = 0,
  4894.  
  4895. DT_FIFO = 1,
  4896.  
  4897. DT_CHR = 2,
  4898.  
  4899. DT_DIR = 4,
  4900.  
  4901. DT_BLK = 6,
  4902.  
  4903. DT_REG = 8,
  4904.  
  4905. DT_LNK = 10,
  4906.  
  4907. DT_SOCK = 12,
  4908.  
  4909. DT_WHT = 14
  4910.  
  4911. };
  4912. # 128 "/usr/include/dirent.h" 3 4
  4913. typedef struct __dirstream DIR;
  4914.  
  4915.  
  4916.  
  4917.  
  4918.  
  4919.  
  4920. extern DIR *opendir (__const char *__name) __attribute__ ((__nonnull__ (1)));
  4921.  
  4922.  
  4923.  
  4924.  
  4925.  
  4926.  
  4927. extern DIR *fdopendir (int __fd);
  4928.  
  4929.  
  4930.  
  4931.  
  4932.  
  4933.  
  4934.  
  4935. extern int closedir (DIR *__dirp) __attribute__ ((__nonnull__ (1)));
  4936. # 163 "/usr/include/dirent.h" 3 4
  4937. extern struct dirent *readdir (DIR *__dirp) __attribute__ ((__nonnull__ (1)));
  4938. # 184 "/usr/include/dirent.h" 3 4
  4939. extern int readdir_r (DIR *__restrict __dirp,
  4940. struct dirent *__restrict __entry,
  4941. struct dirent **__restrict __result)
  4942. __attribute__ ((__nonnull__ (1, 2, 3)));
  4943. # 209 "/usr/include/dirent.h" 3 4
  4944. extern void rewinddir (DIR *__dirp) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  4945.  
  4946.  
  4947.  
  4948.  
  4949.  
  4950. extern void seekdir (DIR *__dirp, long int __pos) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  4951.  
  4952.  
  4953. extern long int telldir (DIR *__dirp) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  4954.  
  4955.  
  4956.  
  4957.  
  4958.  
  4959. extern int dirfd (DIR *__dirp) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  4960. # 233 "/usr/include/dirent.h" 3 4
  4961. # 1 "/usr/include/bits/posix1_lim.h" 1 3 4
  4962. # 157 "/usr/include/bits/posix1_lim.h" 3 4
  4963. # 1 "/usr/include/bits/local_lim.h" 1 3 4
  4964. # 39 "/usr/include/bits/local_lim.h" 3 4
  4965. # 1 "/usr/include/linux/limits.h" 1 3 4
  4966. # 40 "/usr/include/bits/local_lim.h" 2 3 4
  4967. # 158 "/usr/include/bits/posix1_lim.h" 2 3 4
  4968. # 234 "/usr/include/dirent.h" 2 3 4
  4969. # 245 "/usr/include/dirent.h" 3 4
  4970. # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 1 3 4
  4971. # 246 "/usr/include/dirent.h" 2 3 4
  4972.  
  4973.  
  4974.  
  4975.  
  4976.  
  4977.  
  4978. extern int scandir (__const char *__restrict __dir,
  4979. struct dirent ***__restrict __namelist,
  4980. int (*__selector) (__const struct dirent *),
  4981. int (*__cmp) (__const struct dirent **,
  4982. __const struct dirent **))
  4983. __attribute__ ((__nonnull__ (1, 2)));
  4984. # 285 "/usr/include/dirent.h" 3 4
  4985. extern int alphasort (__const struct dirent **__e1,
  4986. __const struct dirent **__e2)
  4987. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
  4988. # 313 "/usr/include/dirent.h" 3 4
  4989. extern __ssize_t getdirentries (int __fd, char *__restrict __buf,
  4990. size_t __nbytes,
  4991. __off_t *__restrict __basep)
  4992. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));
  4993. # 362 "/usr/include/dirent.h" 3 4
  4994.  
  4995. # 11 "readline.c" 2
  4996. # 1 "/usr/include/readline/readline.h" 1 3 4
  4997. # 35 "/usr/include/readline/readline.h" 3 4
  4998. # 1 "/usr/include/readline/rlstdc.h" 1 3 4
  4999. # 36 "/usr/include/readline/readline.h" 2 3 4
  5000. # 1 "/usr/include/readline/rltypedefs.h" 1 3 4
  5001. # 34 "/usr/include/readline/rltypedefs.h" 3 4
  5002. typedef int Function ();
  5003. typedef void VFunction ();
  5004. typedef char *CPFunction ();
  5005. typedef char **CPPFunction ();
  5006. # 47 "/usr/include/readline/rltypedefs.h" 3 4
  5007. typedef int rl_command_func_t (int, int);
  5008.  
  5009.  
  5010. typedef char *rl_compentry_func_t (const char *, int);
  5011. typedef char **rl_completion_func_t (const char *, int, int);
  5012.  
  5013. typedef char *rl_quote_func_t (char *, int, char *);
  5014. typedef char *rl_dequote_func_t (char *, int);
  5015.  
  5016. typedef int rl_compignore_func_t (char **);
  5017.  
  5018. typedef void rl_compdisp_func_t (char **, int, int);
  5019.  
  5020.  
  5021. typedef int rl_hook_func_t (void);
  5022.  
  5023.  
  5024. typedef int rl_getc_func_t (FILE *);
  5025.  
  5026.  
  5027.  
  5028.  
  5029. typedef int rl_linebuf_func_t (char *, int);
  5030.  
  5031.  
  5032. typedef int rl_intfunc_t (int);
  5033.  
  5034. typedef int rl_icpfunc_t (char *);
  5035. typedef int rl_icppfunc_t (char **);
  5036.  
  5037. typedef void rl_voidfunc_t (void);
  5038. typedef void rl_vintfunc_t (int);
  5039. typedef void rl_vcpfunc_t (char *);
  5040. typedef void rl_vcppfunc_t (char **);
  5041.  
  5042. typedef char *rl_cpvfunc_t (void);
  5043. typedef char *rl_cpifunc_t (int);
  5044. typedef char *rl_cpcpfunc_t (char *);
  5045. typedef char *rl_cpcppfunc_t (char **);
  5046. # 37 "/usr/include/readline/readline.h" 2 3 4
  5047. # 1 "/usr/include/readline/keymaps.h" 1 3 4
  5048. # 35 "/usr/include/readline/keymaps.h" 3 4
  5049. # 1 "/usr/include/readline/chardefs.h" 1 3 4
  5050. # 25 "/usr/include/readline/chardefs.h" 3 4
  5051. # 1 "/usr/include/ctype.h" 1 3 4
  5052. # 30 "/usr/include/ctype.h" 3 4
  5053.  
  5054. # 48 "/usr/include/ctype.h" 3 4
  5055. enum
  5056. {
  5057. _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)),
  5058. _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)),
  5059. _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)),
  5060. _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)),
  5061. _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)),
  5062. _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)),
  5063. _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)),
  5064. _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)),
  5065. _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)),
  5066. _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)),
  5067. _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)),
  5068. _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8))
  5069. };
  5070. # 81 "/usr/include/ctype.h" 3 4
  5071. extern __const unsigned short int **__ctype_b_loc (void)
  5072. __attribute__ ((__nothrow__)) __attribute__ ((__const));
  5073. extern __const __int32_t **__ctype_tolower_loc (void)
  5074. __attribute__ ((__nothrow__)) __attribute__ ((__const));
  5075. extern __const __int32_t **__ctype_toupper_loc (void)
  5076. __attribute__ ((__nothrow__)) __attribute__ ((__const));
  5077. # 96 "/usr/include/ctype.h" 3 4
  5078.  
  5079.  
  5080.  
  5081.  
  5082.  
  5083.  
  5084. extern int isalnum (int) __attribute__ ((__nothrow__));
  5085. extern int isalpha (int) __attribute__ ((__nothrow__));
  5086. extern int iscntrl (int) __attribute__ ((__nothrow__));
  5087. extern int isdigit (int) __attribute__ ((__nothrow__));
  5088. extern int islower (int) __attribute__ ((__nothrow__));
  5089. extern int isgraph (int) __attribute__ ((__nothrow__));
  5090. extern int isprint (int) __attribute__ ((__nothrow__));
  5091. extern int ispunct (int) __attribute__ ((__nothrow__));
  5092. extern int isspace (int) __attribute__ ((__nothrow__));
  5093. extern int isupper (int) __attribute__ ((__nothrow__));
  5094. extern int isxdigit (int) __attribute__ ((__nothrow__));
  5095.  
  5096.  
  5097.  
  5098. extern int tolower (int __c) __attribute__ ((__nothrow__));
  5099.  
  5100.  
  5101. extern int toupper (int __c) __attribute__ ((__nothrow__));
  5102.  
  5103.  
  5104.  
  5105.  
  5106.  
  5107.  
  5108.  
  5109.  
  5110. extern int isblank (int) __attribute__ ((__nothrow__));
  5111.  
  5112.  
  5113. # 142 "/usr/include/ctype.h" 3 4
  5114. extern int isascii (int __c) __attribute__ ((__nothrow__));
  5115.  
  5116.  
  5117.  
  5118. extern int toascii (int __c) __attribute__ ((__nothrow__));
  5119.  
  5120.  
  5121.  
  5122. extern int _toupper (int) __attribute__ ((__nothrow__));
  5123. extern int _tolower (int) __attribute__ ((__nothrow__));
  5124. # 190 "/usr/include/ctype.h" 3 4
  5125. extern __inline int
  5126. __attribute__ ((__nothrow__)) tolower (int __c)
  5127. {
  5128. return __c >= -128 && __c < 256 ? (*__ctype_tolower_loc ())[__c] : __c;
  5129. }
  5130.  
  5131. extern __inline int
  5132. __attribute__ ((__nothrow__)) toupper (int __c)
  5133. {
  5134. return __c >= -128 && __c < 256 ? (*__ctype_toupper_loc ())[__c] : __c;
  5135. }
  5136. # 247 "/usr/include/ctype.h" 3 4
  5137. extern int isalnum_l (int, __locale_t) __attribute__ ((__nothrow__));
  5138. extern int isalpha_l (int, __locale_t) __attribute__ ((__nothrow__));
  5139. extern int iscntrl_l (int, __locale_t) __attribute__ ((__nothrow__));
  5140. extern int isdigit_l (int, __locale_t) __attribute__ ((__nothrow__));
  5141. extern int islower_l (int, __locale_t) __attribute__ ((__nothrow__));
  5142. extern int isgraph_l (int, __locale_t) __attribute__ ((__nothrow__));
  5143. extern int isprint_l (int, __locale_t) __attribute__ ((__nothrow__));
  5144. extern int ispunct_l (int, __locale_t) __attribute__ ((__nothrow__));
  5145. extern int isspace_l (int, __locale_t) __attribute__ ((__nothrow__));
  5146. extern int isupper_l (int, __locale_t) __attribute__ ((__nothrow__));
  5147. extern int isxdigit_l (int, __locale_t) __attribute__ ((__nothrow__));
  5148.  
  5149. extern int isblank_l (int, __locale_t) __attribute__ ((__nothrow__));
  5150.  
  5151.  
  5152.  
  5153. extern int __tolower_l (int __c, __locale_t __l) __attribute__ ((__nothrow__));
  5154. extern int tolower_l (int __c, __locale_t __l) __attribute__ ((__nothrow__));
  5155.  
  5156.  
  5157. extern int __toupper_l (int __c, __locale_t __l) __attribute__ ((__nothrow__));
  5158. extern int toupper_l (int __c, __locale_t __l) __attribute__ ((__nothrow__));
  5159. # 323 "/usr/include/ctype.h" 3 4
  5160.  
  5161. # 26 "/usr/include/readline/chardefs.h" 2 3 4
  5162. # 36 "/usr/include/readline/keymaps.h" 2 3 4
  5163. # 44 "/usr/include/readline/keymaps.h" 3 4
  5164. typedef struct _keymap_entry {
  5165. char type;
  5166. rl_command_func_t *function;
  5167. } KEYMAP_ENTRY;
  5168. # 60 "/usr/include/readline/keymaps.h" 3 4
  5169. typedef KEYMAP_ENTRY KEYMAP_ENTRY_ARRAY[257];
  5170. typedef KEYMAP_ENTRY *Keymap;
  5171.  
  5172.  
  5173.  
  5174.  
  5175.  
  5176.  
  5177. extern KEYMAP_ENTRY_ARRAY emacs_standard_keymap, emacs_meta_keymap, emacs_ctlx_keymap;
  5178. extern KEYMAP_ENTRY_ARRAY vi_insertion_keymap, vi_movement_keymap;
  5179.  
  5180.  
  5181.  
  5182. extern Keymap rl_make_bare_keymap (void);
  5183.  
  5184.  
  5185. extern Keymap rl_copy_keymap (Keymap);
  5186.  
  5187.  
  5188.  
  5189.  
  5190. extern Keymap rl_make_keymap (void);
  5191.  
  5192.  
  5193. extern void rl_discard_keymap (Keymap);
  5194.  
  5195.  
  5196.  
  5197.  
  5198.  
  5199. extern Keymap rl_get_keymap_by_name (const char *);
  5200.  
  5201.  
  5202. extern Keymap rl_get_keymap (void);
  5203.  
  5204.  
  5205. extern void rl_set_keymap (Keymap);
  5206. # 38 "/usr/include/readline/readline.h" 2 3 4
  5207. # 1 "/usr/include/readline/tilde.h" 1 3 4
  5208. # 42 "/usr/include/readline/tilde.h" 3 4
  5209. typedef char *tilde_hook_func_t (char *);
  5210.  
  5211.  
  5212.  
  5213.  
  5214.  
  5215. extern tilde_hook_func_t *tilde_expansion_preexpansion_hook;
  5216.  
  5217.  
  5218.  
  5219.  
  5220.  
  5221. extern tilde_hook_func_t *tilde_expansion_failure_hook;
  5222.  
  5223.  
  5224.  
  5225.  
  5226. extern char **tilde_additional_prefixes;
  5227.  
  5228.  
  5229.  
  5230.  
  5231. extern char **tilde_additional_suffixes;
  5232.  
  5233.  
  5234. extern char *tilde_expand (const char *);
  5235.  
  5236.  
  5237.  
  5238. extern char *tilde_expand_word (const char *);
  5239.  
  5240.  
  5241. extern char *tilde_find_word (const char *, int, int *);
  5242. # 39 "/usr/include/readline/readline.h" 2 3 4
  5243. # 54 "/usr/include/readline/readline.h" 3 4
  5244. enum undo_code { UNDO_DELETE, UNDO_INSERT, UNDO_BEGIN, UNDO_END };
  5245.  
  5246.  
  5247. typedef struct undo_list {
  5248. struct undo_list *next;
  5249. int start, end;
  5250. char *text;
  5251. enum undo_code what;
  5252. } UNDO_LIST;
  5253.  
  5254.  
  5255. extern UNDO_LIST *rl_undo_list;
  5256.  
  5257.  
  5258. typedef struct _funmap {
  5259. const char *name;
  5260. rl_command_func_t *function;
  5261. } FUNMAP;
  5262.  
  5263. extern FUNMAP **funmap;
  5264. # 82 "/usr/include/readline/readline.h" 3 4
  5265. extern int rl_digit_argument (int, int);
  5266. extern int rl_universal_argument (int, int);
  5267.  
  5268.  
  5269. extern int rl_forward_byte (int, int);
  5270. extern int rl_forward_char (int, int);
  5271. extern int rl_forward (int, int);
  5272. extern int rl_backward_byte (int, int);
  5273. extern int rl_backward_char (int, int);
  5274. extern int rl_backward (int, int);
  5275. extern int rl_beg_of_line (int, int);
  5276. extern int rl_end_of_line (int, int);
  5277. extern int rl_forward_word (int, int);
  5278. extern int rl_backward_word (int, int);
  5279. extern int rl_refresh_line (int, int);
  5280. extern int rl_clear_screen (int, int);
  5281. extern int rl_skip_csi_sequence (int, int);
  5282. extern int rl_arrow_keys (int, int);
  5283.  
  5284.  
  5285. extern int rl_insert (int, int);
  5286. extern int rl_quoted_insert (int, int);
  5287. extern int rl_tab_insert (int, int);
  5288. extern int rl_newline (int, int);
  5289. extern int rl_do_lowercase_version (int, int);
  5290. extern int rl_rubout (int, int);
  5291. extern int rl_delete (int, int);
  5292. extern int rl_rubout_or_delete (int, int);
  5293. extern int rl_delete_horizontal_space (int, int);
  5294. extern int rl_delete_or_show_completions (int, int);
  5295. extern int rl_insert_comment (int, int);
  5296.  
  5297.  
  5298. extern int rl_upcase_word (int, int);
  5299. extern int rl_downcase_word (int, int);
  5300. extern int rl_capitalize_word (int, int);
  5301.  
  5302.  
  5303. extern int rl_transpose_words (int, int);
  5304. extern int rl_transpose_chars (int, int);
  5305.  
  5306.  
  5307. extern int rl_char_search (int, int);
  5308. extern int rl_backward_char_search (int, int);
  5309.  
  5310.  
  5311. extern int rl_beginning_of_history (int, int);
  5312. extern int rl_end_of_history (int, int);
  5313. extern int rl_get_next_history (int, int);
  5314. extern int rl_get_previous_history (int, int);
  5315.  
  5316.  
  5317. extern int rl_set_mark (int, int);
  5318. extern int rl_exchange_point_and_mark (int, int);
  5319.  
  5320.  
  5321. extern int rl_vi_editing_mode (int, int);
  5322. extern int rl_emacs_editing_mode (int, int);
  5323.  
  5324.  
  5325. extern int rl_overwrite_mode (int, int);
  5326.  
  5327.  
  5328. extern int rl_re_read_init_file (int, int);
  5329. extern int rl_dump_functions (int, int);
  5330. extern int rl_dump_macros (int, int);
  5331. extern int rl_dump_variables (int, int);
  5332.  
  5333.  
  5334. extern int rl_complete (int, int);
  5335. extern int rl_possible_completions (int, int);
  5336. extern int rl_insert_completions (int, int);
  5337. extern int rl_old_menu_complete (int, int);
  5338. extern int rl_menu_complete (int, int);
  5339. extern int rl_backward_menu_complete (int, int);
  5340.  
  5341.  
  5342. extern int rl_kill_word (int, int);
  5343. extern int rl_backward_kill_word (int, int);
  5344. extern int rl_kill_line (int, int);
  5345. extern int rl_backward_kill_line (int, int);
  5346. extern int rl_kill_full_line (int, int);
  5347. extern int rl_unix_word_rubout (int, int);
  5348. extern int rl_unix_filename_rubout (int, int);
  5349. extern int rl_unix_line_discard (int, int);
  5350. extern int rl_copy_region_to_kill (int, int);
  5351. extern int rl_kill_region (int, int);
  5352. extern int rl_copy_forward_word (int, int);
  5353. extern int rl_copy_backward_word (int, int);
  5354. extern int rl_yank (int, int);
  5355. extern int rl_yank_pop (int, int);
  5356. extern int rl_yank_nth_arg (int, int);
  5357. extern int rl_yank_last_arg (int, int);
  5358.  
  5359.  
  5360.  
  5361.  
  5362.  
  5363.  
  5364. extern int rl_reverse_search_history (int, int);
  5365. extern int rl_forward_search_history (int, int);
  5366.  
  5367.  
  5368. extern int rl_start_kbd_macro (int, int);
  5369. extern int rl_end_kbd_macro (int, int);
  5370. extern int rl_call_last_kbd_macro (int, int);
  5371.  
  5372.  
  5373. extern int rl_revert_line (int, int);
  5374. extern int rl_undo_command (int, int);
  5375.  
  5376.  
  5377. extern int rl_tilde_expand (int, int);
  5378.  
  5379.  
  5380. extern int rl_restart_output (int, int);
  5381. extern int rl_stop_output (int, int);
  5382.  
  5383.  
  5384. extern int rl_abort (int, int);
  5385. extern int rl_tty_status (int, int);
  5386.  
  5387.  
  5388. extern int rl_history_search_forward (int, int);
  5389. extern int rl_history_search_backward (int, int);
  5390. extern int rl_noninc_forward_search (int, int);
  5391. extern int rl_noninc_reverse_search (int, int);
  5392. extern int rl_noninc_forward_search_again (int, int);
  5393. extern int rl_noninc_reverse_search_again (int, int);
  5394.  
  5395.  
  5396. extern int rl_insert_close (int, int);
  5397.  
  5398.  
  5399. extern void rl_callback_handler_install (const char *, rl_vcpfunc_t *);
  5400. extern void rl_callback_read_char (void);
  5401. extern void rl_callback_handler_remove (void);
  5402.  
  5403.  
  5404.  
  5405. extern int rl_vi_redo (int, int);
  5406. extern int rl_vi_undo (int, int);
  5407. extern int rl_vi_yank_arg (int, int);
  5408. extern int rl_vi_fetch_history (int, int);
  5409. extern int rl_vi_search_again (int, int);
  5410. extern int rl_vi_search (int, int);
  5411. extern int rl_vi_complete (int, int);
  5412. extern int rl_vi_tilde_expand (int, int);
  5413. extern int rl_vi_prev_word (int, int);
  5414. extern int rl_vi_next_word (int, int);
  5415. extern int rl_vi_end_word (int, int);
  5416. extern int rl_vi_insert_beg (int, int);
  5417. extern int rl_vi_append_mode (int, int);
  5418. extern int rl_vi_append_eol (int, int);
  5419. extern int rl_vi_eof_maybe (int, int);
  5420. extern int rl_vi_insertion_mode (int, int);
  5421. extern int rl_vi_insert_mode (int, int);
  5422. extern int rl_vi_movement_mode (int, int);
  5423. extern int rl_vi_arg_digit (int, int);
  5424. extern int rl_vi_change_case (int, int);
  5425. extern int rl_vi_put (int, int);
  5426. extern int rl_vi_column (int, int);
  5427. extern int rl_vi_delete_to (int, int);
  5428. extern int rl_vi_change_to (int, int);
  5429. extern int rl_vi_yank_to (int, int);
  5430. extern int rl_vi_rubout (int, int);
  5431. extern int rl_vi_delete (int, int);
  5432. extern int rl_vi_back_to_indent (int, int);
  5433. extern int rl_vi_first_print (int, int);
  5434. extern int rl_vi_char_search (int, int);
  5435. extern int rl_vi_match (int, int);
  5436. extern int rl_vi_change_char (int, int);
  5437. extern int rl_vi_subst (int, int);
  5438. extern int rl_vi_overstrike (int, int);
  5439. extern int rl_vi_overstrike_delete (int, int);
  5440. extern int rl_vi_replace (int, int);
  5441. extern int rl_vi_set_mark (int, int);
  5442. extern int rl_vi_goto_mark (int, int);
  5443.  
  5444.  
  5445. extern int rl_vi_check (void);
  5446. extern int rl_vi_domove (int, int *);
  5447. extern int rl_vi_bracktype (int);
  5448.  
  5449. extern void rl_vi_start_inserting (int, int, int);
  5450.  
  5451.  
  5452. extern int rl_vi_fWord (int, int);
  5453. extern int rl_vi_bWord (int, int);
  5454. extern int rl_vi_eWord (int, int);
  5455. extern int rl_vi_fword (int, int);
  5456. extern int rl_vi_bword (int, int);
  5457. extern int rl_vi_eword (int, int);
  5458. # 284 "/usr/include/readline/readline.h" 3 4
  5459. extern char *readline (const char *);
  5460.  
  5461. extern int rl_set_prompt (const char *);
  5462. extern int rl_expand_prompt (char *);
  5463.  
  5464. extern int rl_initialize (void);
  5465.  
  5466.  
  5467. extern int rl_discard_argument (void);
  5468.  
  5469.  
  5470. extern int rl_add_defun (const char *, rl_command_func_t *, int);
  5471. extern int rl_bind_key (int, rl_command_func_t *);
  5472. extern int rl_bind_key_in_map (int, rl_command_func_t *, Keymap);
  5473. extern int rl_unbind_key (int);
  5474. extern int rl_unbind_key_in_map (int, Keymap);
  5475. extern int rl_bind_key_if_unbound (int, rl_command_func_t *);
  5476. extern int rl_bind_key_if_unbound_in_map (int, rl_command_func_t *, Keymap);
  5477. extern int rl_unbind_function_in_map (rl_command_func_t *, Keymap);
  5478. extern int rl_unbind_command_in_map (const char *, Keymap);
  5479. extern int rl_bind_keyseq (const char *, rl_command_func_t *);
  5480. extern int rl_bind_keyseq_in_map (const char *, rl_command_func_t *, Keymap);
  5481. extern int rl_bind_keyseq_if_unbound (const char *, rl_command_func_t *);
  5482. extern int rl_bind_keyseq_if_unbound_in_map (const char *, rl_command_func_t *, Keymap);
  5483. extern int rl_generic_bind (int, const char *, char *, Keymap);
  5484.  
  5485. extern char *rl_variable_value (const char *);
  5486. extern int rl_variable_bind (const char *, const char *);
  5487.  
  5488.  
  5489. extern int rl_set_key (const char *, rl_command_func_t *, Keymap);
  5490.  
  5491.  
  5492. extern int rl_macro_bind (const char *, const char *, Keymap);
  5493.  
  5494.  
  5495. extern int rl_translate_keyseq (const char *, char *, int *);
  5496. extern char *rl_untranslate_keyseq (int);
  5497.  
  5498. extern rl_command_func_t *rl_named_function (const char *);
  5499. extern rl_command_func_t *rl_function_of_keyseq (const char *, Keymap, int *);
  5500.  
  5501. extern void rl_list_funmap_names (void);
  5502. extern char **rl_invoking_keyseqs_in_map (rl_command_func_t *, Keymap);
  5503. extern char **rl_invoking_keyseqs (rl_command_func_t *);
  5504.  
  5505. extern void rl_function_dumper (int);
  5506. extern void rl_macro_dumper (int);
  5507. extern void rl_variable_dumper (int);
  5508.  
  5509. extern int rl_read_init_file (const char *);
  5510. extern int rl_parse_and_bind (char *);
  5511.  
  5512.  
  5513. extern Keymap rl_make_bare_keymap (void);
  5514. extern Keymap rl_copy_keymap (Keymap);
  5515. extern Keymap rl_make_keymap (void);
  5516. extern void rl_discard_keymap (Keymap);
  5517.  
  5518. extern Keymap rl_get_keymap_by_name (const char *);
  5519. extern char *rl_get_keymap_name (Keymap);
  5520. extern void rl_set_keymap (Keymap);
  5521. extern Keymap rl_get_keymap (void);
  5522.  
  5523. extern void rl_set_keymap_from_edit_mode (void);
  5524. extern char *rl_get_keymap_name_from_edit_mode (void);
  5525.  
  5526.  
  5527. extern int rl_add_funmap_entry (const char *, rl_command_func_t *);
  5528. extern const char **rl_funmap_names (void);
  5529.  
  5530.  
  5531. extern void rl_initialize_funmap (void);
  5532.  
  5533.  
  5534. extern void rl_push_macro_input (char *);
  5535.  
  5536.  
  5537. extern void rl_add_undo (enum undo_code, int, int, char *);
  5538. extern void rl_free_undo_list (void);
  5539. extern int rl_do_undo (void);
  5540. extern int rl_begin_undo_group (void);
  5541. extern int rl_end_undo_group (void);
  5542. extern int rl_modifying (int, int);
  5543.  
  5544.  
  5545. extern void rl_redisplay (void);
  5546. extern int rl_on_new_line (void);
  5547. extern int rl_on_new_line_with_prompt (void);
  5548. extern int rl_forced_update_display (void);
  5549. extern int rl_clear_message (void);
  5550. extern int rl_reset_line_state (void);
  5551. extern int rl_crlf (void);
  5552.  
  5553.  
  5554.  
  5555.  
  5556. extern int rl_message ();
  5557.  
  5558.  
  5559. extern int rl_show_char (int);
  5560.  
  5561.  
  5562. extern int rl_character_len (int, int);
  5563.  
  5564.  
  5565. extern void rl_save_prompt (void);
  5566. extern void rl_restore_prompt (void);
  5567.  
  5568.  
  5569. extern void rl_replace_line (const char *, int);
  5570. extern int rl_insert_text (const char *);
  5571. extern int rl_delete_text (int, int);
  5572. extern int rl_kill_text (int, int);
  5573. extern char *rl_copy_text (int, int);
  5574.  
  5575.  
  5576. extern void rl_prep_terminal (int);
  5577. extern void rl_deprep_terminal (void);
  5578. extern void rl_tty_set_default_bindings (Keymap);
  5579. extern void rl_tty_unset_default_bindings (Keymap);
  5580.  
  5581. extern int rl_reset_terminal (const char *);
  5582. extern void rl_resize_terminal (void);
  5583. extern void rl_set_screen_size (int, int);
  5584. extern void rl_get_screen_size (int *, int *);
  5585. extern void rl_reset_screen_size (void);
  5586.  
  5587. extern char *rl_get_termcap (const char *);
  5588.  
  5589.  
  5590. extern int rl_stuff_char (int);
  5591. extern int rl_execute_next (int);
  5592. extern int rl_clear_pending_input (void);
  5593. extern int rl_read_key (void);
  5594. extern int rl_getc (FILE *);
  5595. extern int rl_set_keyboard_input_timeout (int);
  5596.  
  5597.  
  5598. extern void rl_extend_line_buffer (int);
  5599. extern int rl_ding (void);
  5600. extern int rl_alphabetic (int);
  5601. extern void rl_free (void *);
  5602.  
  5603.  
  5604. extern int rl_set_signals (void);
  5605. extern int rl_clear_signals (void);
  5606. extern void rl_cleanup_after_signal (void);
  5607. extern void rl_reset_after_signal (void);
  5608. extern void rl_free_line_state (void);
  5609.  
  5610. extern void rl_echo_signal_char (int);
  5611.  
  5612. extern int rl_set_paren_blink_timeout (int);
  5613.  
  5614.  
  5615. extern int rl_maybe_save_line (void);
  5616. extern int rl_maybe_unsave_line (void);
  5617. extern int rl_maybe_replace_line (void);
  5618.  
  5619.  
  5620. extern int rl_complete_internal (int);
  5621. extern void rl_display_match_list (char **, int, int);
  5622.  
  5623. extern char **rl_completion_matches (const char *, rl_compentry_func_t *);
  5624. extern char *rl_username_completion_function (const char *, int);
  5625. extern char *rl_filename_completion_function (const char *, int);
  5626.  
  5627. extern int rl_completion_mode (rl_command_func_t *);
  5628. # 477 "/usr/include/readline/readline.h" 3 4
  5629. extern const char *rl_library_version;
  5630. extern int rl_readline_version;
  5631.  
  5632.  
  5633. extern int rl_gnu_readline_p;
  5634.  
  5635.  
  5636. extern int rl_readline_state;
  5637.  
  5638.  
  5639.  
  5640. extern int rl_editing_mode;
  5641.  
  5642.  
  5643.  
  5644. extern int rl_insert_mode;
  5645.  
  5646.  
  5647.  
  5648. extern const char *rl_readline_name;
  5649.  
  5650.  
  5651.  
  5652. extern char *rl_prompt;
  5653.  
  5654.  
  5655.  
  5656. extern char *rl_display_prompt;
  5657.  
  5658.  
  5659. extern char *rl_line_buffer;
  5660.  
  5661.  
  5662. extern int rl_point;
  5663. extern int rl_end;
  5664.  
  5665.  
  5666. extern int rl_mark;
  5667.  
  5668.  
  5669.  
  5670. extern int rl_done;
  5671.  
  5672.  
  5673. extern int rl_pending_input;
  5674.  
  5675.  
  5676.  
  5677.  
  5678. extern int rl_dispatching;
  5679.  
  5680.  
  5681.  
  5682. extern int rl_explicit_arg;
  5683.  
  5684.  
  5685. extern int rl_numeric_arg;
  5686.  
  5687.  
  5688. extern rl_command_func_t *rl_last_func;
  5689.  
  5690.  
  5691. extern const char *rl_terminal_name;
  5692.  
  5693.  
  5694. extern FILE *rl_instream;
  5695. extern FILE *rl_outstream;
  5696.  
  5697.  
  5698.  
  5699.  
  5700. extern int rl_prefer_env_winsize;
  5701.  
  5702.  
  5703.  
  5704. extern rl_hook_func_t *rl_startup_hook;
  5705.  
  5706.  
  5707.  
  5708.  
  5709. extern rl_hook_func_t *rl_pre_input_hook;
  5710.  
  5711.  
  5712.  
  5713. extern rl_hook_func_t *rl_event_hook;
  5714.  
  5715.  
  5716.  
  5717. extern rl_getc_func_t *rl_getc_function;
  5718.  
  5719. extern rl_voidfunc_t *rl_redisplay_function;
  5720.  
  5721. extern rl_vintfunc_t *rl_prep_term_function;
  5722. extern rl_voidfunc_t *rl_deprep_term_function;
  5723.  
  5724.  
  5725. extern Keymap rl_executing_keymap;
  5726. extern Keymap rl_binding_keymap;
  5727.  
  5728.  
  5729.  
  5730.  
  5731.  
  5732. extern int rl_erase_empty_line;
  5733.  
  5734.  
  5735.  
  5736.  
  5737. extern int rl_already_prompted;
  5738.  
  5739.  
  5740.  
  5741. extern int rl_num_chars_to_read;
  5742.  
  5743.  
  5744. extern char *rl_executing_macro;
  5745.  
  5746.  
  5747.  
  5748.  
  5749. extern int rl_catch_signals;
  5750.  
  5751.  
  5752.  
  5753.  
  5754.  
  5755.  
  5756. extern int rl_catch_sigwinch;
  5757.  
  5758.  
  5759.  
  5760.  
  5761.  
  5762. extern rl_compentry_func_t *rl_completion_entry_function;
  5763.  
  5764.  
  5765.  
  5766. extern rl_compentry_func_t *rl_menu_completion_entry_function;
  5767.  
  5768.  
  5769.  
  5770.  
  5771.  
  5772.  
  5773.  
  5774. extern rl_compignore_func_t *rl_ignore_some_completions_function;
  5775. # 631 "/usr/include/readline/readline.h" 3 4
  5776. extern rl_completion_func_t *rl_attempted_completion_function;
  5777.  
  5778.  
  5779.  
  5780.  
  5781. extern const char *rl_basic_word_break_characters;
  5782.  
  5783.  
  5784.  
  5785.  
  5786. extern char *rl_completer_word_break_characters;
  5787.  
  5788.  
  5789.  
  5790.  
  5791. extern rl_cpvfunc_t *rl_completion_word_break_hook;
  5792.  
  5793.  
  5794.  
  5795.  
  5796.  
  5797. extern const char *rl_completer_quote_characters;
  5798.  
  5799.  
  5800. extern const char *rl_basic_quote_characters;
  5801.  
  5802.  
  5803. extern const char *rl_filename_quote_characters;
  5804.  
  5805.  
  5806.  
  5807.  
  5808. extern const char *rl_special_prefixes;
  5809.  
  5810.  
  5811.  
  5812.  
  5813.  
  5814.  
  5815. extern rl_icppfunc_t *rl_directory_completion_hook;
  5816. # 679 "/usr/include/readline/readline.h" 3 4
  5817. extern rl_icppfunc_t *rl_directory_rewrite_hook;
  5818. # 690 "/usr/include/readline/readline.h" 3 4
  5819. extern rl_dequote_func_t *rl_filename_rewrite_hook;
  5820. # 702 "/usr/include/readline/readline.h" 3 4
  5821. extern rl_compdisp_func_t *rl_completion_display_matches_hook;
  5822.  
  5823.  
  5824.  
  5825.  
  5826. extern int rl_filename_completion_desired;
  5827.  
  5828.  
  5829.  
  5830.  
  5831.  
  5832.  
  5833. extern int rl_filename_quoting_desired;
  5834.  
  5835.  
  5836.  
  5837.  
  5838.  
  5839. extern rl_quote_func_t *rl_filename_quoting_function;
  5840.  
  5841.  
  5842.  
  5843.  
  5844. extern rl_dequote_func_t *rl_filename_dequoting_function;
  5845.  
  5846.  
  5847.  
  5848.  
  5849. extern rl_linebuf_func_t *rl_char_is_quoted_p;
  5850.  
  5851.  
  5852.  
  5853. extern int rl_attempted_completion_over;
  5854.  
  5855.  
  5856.  
  5857.  
  5858. extern int rl_completion_type;
  5859.  
  5860.  
  5861. extern int rl_completion_invoking_key;
  5862.  
  5863.  
  5864.  
  5865.  
  5866. extern int rl_completion_query_items;
  5867.  
  5868.  
  5869.  
  5870. extern int rl_completion_append_character;
  5871.  
  5872.  
  5873.  
  5874. extern int rl_completion_suppress_append;
  5875.  
  5876.  
  5877.  
  5878. extern int rl_completion_quote_character;
  5879.  
  5880.  
  5881.  
  5882. extern int rl_completion_found_quote;
  5883.  
  5884.  
  5885.  
  5886.  
  5887. extern int rl_completion_suppress_quote;
  5888.  
  5889.  
  5890. extern int rl_sort_completion_matches;
  5891. # 782 "/usr/include/readline/readline.h" 3 4
  5892. extern int rl_completion_mark_symlink_dirs;
  5893.  
  5894.  
  5895. extern int rl_ignore_completion_duplicates;
  5896.  
  5897.  
  5898.  
  5899. extern int rl_inhibit_completion;
  5900. # 839 "/usr/include/readline/readline.h" 3 4
  5901. struct readline_state {
  5902.  
  5903. int point;
  5904. int end;
  5905. int mark;
  5906. char *buffer;
  5907. int buflen;
  5908. UNDO_LIST *ul;
  5909. char *prompt;
  5910.  
  5911.  
  5912. int rlstate;
  5913. int done;
  5914. Keymap kmap;
  5915.  
  5916.  
  5917. rl_command_func_t *lastfunc;
  5918. int insmode;
  5919. int edmode;
  5920. int kseqlen;
  5921. FILE *inf;
  5922. FILE *outf;
  5923. int pendingin;
  5924. char *macro;
  5925.  
  5926.  
  5927. int catchsigs;
  5928. int catchsigwinch;
  5929. # 875 "/usr/include/readline/readline.h" 3 4
  5930. char reserved[64];
  5931. };
  5932.  
  5933. extern int rl_save_state (struct readline_state *);
  5934. extern int rl_restore_state (struct readline_state *);
  5935. # 12 "readline.c" 2
  5936. # 1 "/usr/include/readline/history.h" 1 3 4
  5937. # 29 "/usr/include/readline/history.h" 3 4
  5938. # 1 "/usr/include/time.h" 1 3 4
  5939. # 30 "/usr/include/time.h" 3 4
  5940.  
  5941.  
  5942.  
  5943.  
  5944.  
  5945.  
  5946.  
  5947.  
  5948. # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 1 3 4
  5949. # 39 "/usr/include/time.h" 2 3 4
  5950.  
  5951.  
  5952.  
  5953. # 1 "/usr/include/bits/time.h" 1 3 4
  5954. # 43 "/usr/include/time.h" 2 3 4
  5955. # 131 "/usr/include/time.h" 3 4
  5956.  
  5957.  
  5958. struct tm
  5959. {
  5960. int tm_sec;
  5961. int tm_min;
  5962. int tm_hour;
  5963. int tm_mday;
  5964. int tm_mon;
  5965. int tm_year;
  5966. int tm_wday;
  5967. int tm_yday;
  5968. int tm_isdst;
  5969.  
  5970.  
  5971. long int tm_gmtoff;
  5972. __const char *tm_zone;
  5973.  
  5974.  
  5975.  
  5976.  
  5977. };
  5978.  
  5979.  
  5980.  
  5981.  
  5982.  
  5983.  
  5984.  
  5985.  
  5986. struct itimerspec
  5987. {
  5988. struct timespec it_interval;
  5989. struct timespec it_value;
  5990. };
  5991.  
  5992.  
  5993. struct sigevent;
  5994. # 180 "/usr/include/time.h" 3 4
  5995.  
  5996.  
  5997.  
  5998. extern clock_t clock (void) __attribute__ ((__nothrow__));
  5999.  
  6000.  
  6001. extern time_t time (time_t *__timer) __attribute__ ((__nothrow__));
  6002.  
  6003.  
  6004. extern double difftime (time_t __time1, time_t __time0)
  6005. __attribute__ ((__nothrow__)) __attribute__ ((__const__));
  6006.  
  6007.  
  6008. extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__));
  6009.  
  6010.  
  6011.  
  6012.  
  6013.  
  6014. extern size_t strftime (char *__restrict __s, size_t __maxsize,
  6015. __const char *__restrict __format,
  6016. __const struct tm *__restrict __tp) __attribute__ ((__nothrow__));
  6017.  
  6018. # 217 "/usr/include/time.h" 3 4
  6019. extern size_t strftime_l (char *__restrict __s, size_t __maxsize,
  6020. __const char *__restrict __format,
  6021. __const struct tm *__restrict __tp,
  6022. __locale_t __loc) __attribute__ ((__nothrow__));
  6023. # 230 "/usr/include/time.h" 3 4
  6024.  
  6025.  
  6026.  
  6027. extern struct tm *gmtime (__const time_t *__timer) __attribute__ ((__nothrow__));
  6028.  
  6029.  
  6030.  
  6031. extern struct tm *localtime (__const time_t *__timer) __attribute__ ((__nothrow__));
  6032.  
  6033.  
  6034.  
  6035.  
  6036.  
  6037. extern struct tm *gmtime_r (__const time_t *__restrict __timer,
  6038. struct tm *__restrict __tp) __attribute__ ((__nothrow__));
  6039.  
  6040.  
  6041.  
  6042. extern struct tm *localtime_r (__const time_t *__restrict __timer,
  6043. struct tm *__restrict __tp) __attribute__ ((__nothrow__));
  6044.  
  6045.  
  6046.  
  6047.  
  6048.  
  6049. extern char *asctime (__const struct tm *__tp) __attribute__ ((__nothrow__));
  6050.  
  6051.  
  6052. extern char *ctime (__const time_t *__timer) __attribute__ ((__nothrow__));
  6053.  
  6054.  
  6055.  
  6056.  
  6057.  
  6058.  
  6059.  
  6060. extern char *asctime_r (__const struct tm *__restrict __tp,
  6061. char *__restrict __buf) __attribute__ ((__nothrow__));
  6062.  
  6063.  
  6064. extern char *ctime_r (__const time_t *__restrict __timer,
  6065. char *__restrict __buf) __attribute__ ((__nothrow__));
  6066.  
  6067.  
  6068.  
  6069.  
  6070. extern char *__tzname[2];
  6071. extern int __daylight;
  6072. extern long int __timezone;
  6073.  
  6074.  
  6075.  
  6076.  
  6077. extern char *tzname[2];
  6078.  
  6079.  
  6080.  
  6081. extern void tzset (void) __attribute__ ((__nothrow__));
  6082.  
  6083.  
  6084.  
  6085. extern int daylight;
  6086. extern long int timezone;
  6087.  
  6088.  
  6089.  
  6090.  
  6091.  
  6092. extern int stime (__const time_t *__when) __attribute__ ((__nothrow__));
  6093. # 313 "/usr/include/time.h" 3 4
  6094. extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__));
  6095.  
  6096.  
  6097. extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__));
  6098.  
  6099.  
  6100. extern int dysize (int __year) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
  6101. # 328 "/usr/include/time.h" 3 4
  6102. extern int nanosleep (__const struct timespec *__requested_time,
  6103. struct timespec *__remaining);
  6104.  
  6105.  
  6106.  
  6107. extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__));
  6108.  
  6109.  
  6110. extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__));
  6111.  
  6112.  
  6113. extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp)
  6114. __attribute__ ((__nothrow__));
  6115.  
  6116.  
  6117.  
  6118.  
  6119.  
  6120.  
  6121. extern int clock_nanosleep (clockid_t __clock_id, int __flags,
  6122. __const struct timespec *__req,
  6123. struct timespec *__rem);
  6124.  
  6125.  
  6126. extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __attribute__ ((__nothrow__));
  6127.  
  6128.  
  6129.  
  6130.  
  6131. extern int timer_create (clockid_t __clock_id,
  6132. struct sigevent *__restrict __evp,
  6133. timer_t *__restrict __timerid) __attribute__ ((__nothrow__));
  6134.  
  6135.  
  6136. extern int timer_delete (timer_t __timerid) __attribute__ ((__nothrow__));
  6137.  
  6138.  
  6139. extern int timer_settime (timer_t __timerid, int __flags,
  6140. __const struct itimerspec *__restrict __value,
  6141. struct itimerspec *__restrict __ovalue) __attribute__ ((__nothrow__));
  6142.  
  6143.  
  6144. extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
  6145. __attribute__ ((__nothrow__));
  6146.  
  6147.  
  6148. extern int timer_getoverrun (timer_t __timerid) __attribute__ ((__nothrow__));
  6149. # 417 "/usr/include/time.h" 3 4
  6150.  
  6151. # 30 "/usr/include/readline/history.h" 2 3 4
  6152. # 40 "/usr/include/readline/history.h" 3 4
  6153. typedef void *histdata_t;
  6154.  
  6155.  
  6156.  
  6157.  
  6158.  
  6159. typedef struct _hist_entry {
  6160. char *line;
  6161. char *timestamp;
  6162. histdata_t data;
  6163. } HIST_ENTRY;
  6164.  
  6165.  
  6166.  
  6167.  
  6168.  
  6169. typedef struct _hist_state {
  6170. HIST_ENTRY **entries;
  6171. int offset;
  6172. int length;
  6173. int size;
  6174. int flags;
  6175. } HISTORY_STATE;
  6176. # 71 "/usr/include/readline/history.h" 3 4
  6177. extern void using_history (void);
  6178.  
  6179.  
  6180. extern HISTORY_STATE *history_get_history_state (void);
  6181.  
  6182.  
  6183. extern void history_set_history_state (HISTORY_STATE *);
  6184.  
  6185.  
  6186.  
  6187.  
  6188.  
  6189. extern void add_history (const char *);
  6190.  
  6191.  
  6192.  
  6193. extern void add_history_time (const char *);
  6194.  
  6195.  
  6196.  
  6197.  
  6198. extern HIST_ENTRY *remove_history (int);
  6199.  
  6200.  
  6201.  
  6202. extern histdata_t free_history_entry (HIST_ENTRY *);
  6203.  
  6204.  
  6205.  
  6206.  
  6207. extern HIST_ENTRY *replace_history_entry (int, const char *, histdata_t);
  6208.  
  6209.  
  6210. extern void clear_history (void);
  6211.  
  6212.  
  6213. extern void stifle_history (int);
  6214.  
  6215.  
  6216.  
  6217.  
  6218. extern int unstifle_history (void);
  6219.  
  6220.  
  6221. extern int history_is_stifled (void);
  6222.  
  6223.  
  6224.  
  6225.  
  6226.  
  6227.  
  6228. extern HIST_ENTRY **history_list (void);
  6229.  
  6230.  
  6231.  
  6232. extern int where_history (void);
  6233.  
  6234.  
  6235.  
  6236. extern HIST_ENTRY *current_history (void);
  6237.  
  6238.  
  6239.  
  6240. extern HIST_ENTRY *history_get (int);
  6241.  
  6242.  
  6243.  
  6244. extern time_t history_get_time (HIST_ENTRY *);
  6245.  
  6246.  
  6247.  
  6248. extern int history_total_bytes (void);
  6249.  
  6250.  
  6251.  
  6252.  
  6253. extern int history_set_pos (int);
  6254.  
  6255.  
  6256.  
  6257.  
  6258. extern HIST_ENTRY *previous_history (void);
  6259.  
  6260.  
  6261.  
  6262.  
  6263. extern HIST_ENTRY *next_history (void);
  6264. # 167 "/usr/include/readline/history.h" 3 4
  6265. extern int history_search (const char *, int);
  6266.  
  6267.  
  6268.  
  6269.  
  6270. extern int history_search_prefix (const char *, int);
  6271.  
  6272.  
  6273.  
  6274.  
  6275.  
  6276.  
  6277. extern int history_search_pos (const char *, int, int);
  6278.  
  6279.  
  6280.  
  6281.  
  6282.  
  6283.  
  6284. extern int read_history (const char *);
  6285.  
  6286.  
  6287.  
  6288.  
  6289.  
  6290.  
  6291. extern int read_history_range (const char *, int, int);
  6292.  
  6293.  
  6294.  
  6295.  
  6296. extern int write_history (const char *);
  6297.  
  6298.  
  6299.  
  6300. extern int append_history (int, const char *);
  6301.  
  6302.  
  6303. extern int history_truncate_file (const char *, int);
  6304. # 221 "/usr/include/readline/history.h" 3 4
  6305. extern int history_expand (char *, char **);
  6306.  
  6307.  
  6308.  
  6309.  
  6310. extern char *history_arg_extract (int, int, const char *);
  6311.  
  6312.  
  6313.  
  6314.  
  6315.  
  6316.  
  6317.  
  6318. extern char *get_history_event (const char *, int *, int);
  6319.  
  6320.  
  6321.  
  6322. extern char **history_tokenize (const char *);
  6323.  
  6324.  
  6325. extern int history_base;
  6326. extern int history_length;
  6327. extern int history_max_entries;
  6328. extern char history_expansion_char;
  6329. extern char history_subst_char;
  6330. extern char *history_word_delimiters;
  6331. extern char history_comment_char;
  6332. extern char *history_no_expand_chars;
  6333. extern char *history_search_delimiter_chars;
  6334. extern int history_quotes_inhibit_expansion;
  6335.  
  6336. extern int history_write_timestamps;
  6337.  
  6338.  
  6339. extern int max_input_history;
  6340.  
  6341.  
  6342.  
  6343.  
  6344. extern rl_linebuf_func_t *history_inhibit_expansion_function;
  6345. # 13 "readline.c" 2
  6346. # 1 "/usr/include/oniguruma.h" 1 3 4
  6347. # 99 "/usr/include/oniguruma.h" 3 4
  6348. typedef unsigned char OnigUChar;
  6349. typedef unsigned long OnigCodePoint;
  6350. typedef unsigned int OnigCtype;
  6351. typedef unsigned int OnigDistance;
  6352.  
  6353.  
  6354.  
  6355. typedef unsigned int OnigCaseFoldType;
  6356.  
  6357. extern OnigCaseFoldType OnigDefaultCaseFoldFlag;
  6358. # 128 "/usr/include/oniguruma.h" 3 4
  6359. typedef struct {
  6360. int byte_len;
  6361. int code_len;
  6362. OnigCodePoint code[3];
  6363. } OnigCaseFoldCodeItem;
  6364.  
  6365. typedef struct {
  6366. OnigCodePoint esc;
  6367. OnigCodePoint anychar;
  6368. OnigCodePoint anytime;
  6369. OnigCodePoint zero_or_one_time;
  6370. OnigCodePoint one_or_more_time;
  6371. OnigCodePoint anychar_anytime;
  6372. } OnigMetaCharTableType;
  6373.  
  6374. typedef int (*OnigApplyAllCaseFoldFunc)(OnigCodePoint from, OnigCodePoint* to, int to_len, void* arg);
  6375.  
  6376. typedef struct OnigEncodingTypeST {
  6377. int (*mbc_enc_len)(const OnigUChar* p);
  6378. const char* name;
  6379. int max_enc_len;
  6380. int min_enc_len;
  6381. int (*is_mbc_newline)(const OnigUChar* p, const OnigUChar* end);
  6382. OnigCodePoint (*mbc_to_code)(const OnigUChar* p, const OnigUChar* end);
  6383. int (*code_to_mbclen)(OnigCodePoint code);
  6384. int (*code_to_mbc)(OnigCodePoint code, OnigUChar *buf);
  6385. int (*mbc_case_fold)(OnigCaseFoldType flag, const OnigUChar** pp, const OnigUChar* end, OnigUChar* to);
  6386. int (*apply_all_case_fold)(OnigCaseFoldType flag, OnigApplyAllCaseFoldFunc f, void* arg);
  6387. int (*get_case_fold_codes_by_str)(OnigCaseFoldType flag, const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem acs[]);
  6388. int (*property_name_to_ctype)(struct OnigEncodingTypeST* enc, OnigUChar* p, OnigUChar* end);
  6389. int (*is_code_ctype)(OnigCodePoint code, OnigCtype ctype);
  6390. int (*get_ctype_code_range)(OnigCtype ctype, OnigCodePoint* sb_out, const OnigCodePoint* ranges[]);
  6391. OnigUChar* (*left_adjust_char_head)(const OnigUChar* start, const OnigUChar* p);
  6392. int (*is_allowed_reverse_match)(const OnigUChar* p, const OnigUChar* end);
  6393. } OnigEncodingType;
  6394.  
  6395. typedef OnigEncodingType* OnigEncoding;
  6396.  
  6397. extern OnigEncodingType OnigEncodingASCII;
  6398. extern OnigEncodingType OnigEncodingISO_8859_1;
  6399. extern OnigEncodingType OnigEncodingISO_8859_2;
  6400. extern OnigEncodingType OnigEncodingISO_8859_3;
  6401. extern OnigEncodingType OnigEncodingISO_8859_4;
  6402. extern OnigEncodingType OnigEncodingISO_8859_5;
  6403. extern OnigEncodingType OnigEncodingISO_8859_6;
  6404. extern OnigEncodingType OnigEncodingISO_8859_7;
  6405. extern OnigEncodingType OnigEncodingISO_8859_8;
  6406. extern OnigEncodingType OnigEncodingISO_8859_9;
  6407. extern OnigEncodingType OnigEncodingISO_8859_10;
  6408. extern OnigEncodingType OnigEncodingISO_8859_11;
  6409. extern OnigEncodingType OnigEncodingISO_8859_13;
  6410. extern OnigEncodingType OnigEncodingISO_8859_14;
  6411. extern OnigEncodingType OnigEncodingISO_8859_15;
  6412. extern OnigEncodingType OnigEncodingISO_8859_16;
  6413. extern OnigEncodingType OnigEncodingUTF8;
  6414. extern OnigEncodingType OnigEncodingUTF16_BE;
  6415. extern OnigEncodingType OnigEncodingUTF16_LE;
  6416. extern OnigEncodingType OnigEncodingUTF32_BE;
  6417. extern OnigEncodingType OnigEncodingUTF32_LE;
  6418. extern OnigEncodingType OnigEncodingEUC_JP;
  6419. extern OnigEncodingType OnigEncodingEUC_TW;
  6420. extern OnigEncodingType OnigEncodingEUC_KR;
  6421. extern OnigEncodingType OnigEncodingEUC_CN;
  6422. extern OnigEncodingType OnigEncodingSJIS;
  6423. extern OnigEncodingType OnigEncodingKOI8;
  6424. extern OnigEncodingType OnigEncodingKOI8_R;
  6425. extern OnigEncodingType OnigEncodingCP1251;
  6426. extern OnigEncodingType OnigEncodingBIG5;
  6427. extern OnigEncodingType OnigEncodingGB18030;
  6428. # 328 "/usr/include/oniguruma.h" 3 4
  6429. extern
  6430. OnigUChar* onigenc_step_back (OnigEncoding enc, const OnigUChar* start, const OnigUChar* s, int n);
  6431.  
  6432.  
  6433.  
  6434. extern
  6435. int onigenc_init (void);
  6436. extern
  6437. int onigenc_set_default_encoding (OnigEncoding enc);
  6438. extern
  6439. OnigEncoding onigenc_get_default_encoding (void);
  6440. extern
  6441. void onigenc_set_default_caseconv_table (const OnigUChar* table);
  6442. extern
  6443. OnigUChar* onigenc_get_right_adjust_char_head_with_prev (OnigEncoding enc, const OnigUChar* start, const OnigUChar* s, const OnigUChar** prev);
  6444. extern
  6445. OnigUChar* onigenc_get_prev_char_head (OnigEncoding enc, const OnigUChar* start, const OnigUChar* s);
  6446. extern
  6447. OnigUChar* onigenc_get_left_adjust_char_head (OnigEncoding enc, const OnigUChar* start, const OnigUChar* s);
  6448. extern
  6449. OnigUChar* onigenc_get_right_adjust_char_head (OnigEncoding enc, const OnigUChar* start, const OnigUChar* s);
  6450. extern
  6451. int onigenc_strlen (OnigEncoding enc, const OnigUChar* p, const OnigUChar* end);
  6452. extern
  6453. int onigenc_strlen_null (OnigEncoding enc, const OnigUChar* p);
  6454. extern
  6455. int onigenc_str_bytelen_null (OnigEncoding enc, const OnigUChar* p);
  6456. # 368 "/usr/include/oniguruma.h" 3 4
  6457. typedef unsigned int OnigOptionType;
  6458. # 394 "/usr/include/oniguruma.h" 3 4
  6459. typedef struct {
  6460. unsigned int op;
  6461. unsigned int op2;
  6462. unsigned int behavior;
  6463. OnigOptionType options;
  6464. OnigMetaCharTableType meta_char_table;
  6465. } OnigSyntaxType;
  6466.  
  6467. extern OnigSyntaxType OnigSyntaxASIS;
  6468. extern OnigSyntaxType OnigSyntaxPosixBasic;
  6469. extern OnigSyntaxType OnigSyntaxPosixExtended;
  6470. extern OnigSyntaxType OnigSyntaxEmacs;
  6471. extern OnigSyntaxType OnigSyntaxGrep;
  6472. extern OnigSyntaxType OnigSyntaxGnuRegex;
  6473. extern OnigSyntaxType OnigSyntaxJava;
  6474. extern OnigSyntaxType OnigSyntaxPerl;
  6475. extern OnigSyntaxType OnigSyntaxPerl_NG;
  6476. extern OnigSyntaxType OnigSyntaxRuby;
  6477. # 426 "/usr/include/oniguruma.h" 3 4
  6478. extern OnigSyntaxType* OnigDefaultSyntax;
  6479. # 595 "/usr/include/oniguruma.h" 3 4
  6480. typedef struct OnigCaptureTreeNodeStruct {
  6481. int group;
  6482. int beg;
  6483. int end;
  6484. int allocated;
  6485. int num_childs;
  6486. struct OnigCaptureTreeNodeStruct** childs;
  6487. } OnigCaptureTreeNode;
  6488.  
  6489.  
  6490. struct re_registers {
  6491. int allocated;
  6492. int num_regs;
  6493. int* beg;
  6494. int* end;
  6495.  
  6496. OnigCaptureTreeNode* history_root;
  6497. };
  6498. # 623 "/usr/include/oniguruma.h" 3 4
  6499. typedef struct re_registers OnigRegion;
  6500.  
  6501. typedef struct {
  6502. OnigEncoding enc;
  6503. OnigUChar* par;
  6504. OnigUChar* par_end;
  6505. } OnigErrorInfo;
  6506.  
  6507. typedef struct {
  6508. int lower;
  6509. int upper;
  6510. } OnigRepeatRange;
  6511.  
  6512. typedef void (*OnigWarnFunc) (const char* s);
  6513. extern void onig_null_warn (const char* s);
  6514. # 651 "/usr/include/oniguruma.h" 3 4
  6515. typedef struct re_pattern_buffer {
  6516.  
  6517. unsigned char* p;
  6518. unsigned int used;
  6519. unsigned int alloc;
  6520.  
  6521. int state;
  6522. int num_mem;
  6523. int num_repeat;
  6524. int num_null_check;
  6525. int num_comb_exp_check;
  6526. int num_call;
  6527. unsigned int capture_history;
  6528. unsigned int bt_mem_start;
  6529. unsigned int bt_mem_end;
  6530. int stack_pop_level;
  6531. int repeat_range_alloc;
  6532. OnigRepeatRange* repeat_range;
  6533.  
  6534. OnigEncoding enc;
  6535. OnigOptionType options;
  6536. OnigSyntaxType* syntax;
  6537. OnigCaseFoldType case_fold_flag;
  6538. void* name_table;
  6539.  
  6540.  
  6541. int optimize;
  6542. int threshold_len;
  6543. int anchor;
  6544. OnigDistance anchor_dmin;
  6545. OnigDistance anchor_dmax;
  6546. int sub_anchor;
  6547. unsigned char *exact;
  6548. unsigned char *exact_end;
  6549. unsigned char map[256];
  6550. int *int_map;
  6551. int *int_map_backward;
  6552. OnigDistance dmin;
  6553. OnigDistance dmax;
  6554.  
  6555.  
  6556. struct re_pattern_buffer* chain;
  6557. } OnigRegexType;
  6558.  
  6559. typedef OnigRegexType* OnigRegex;
  6560.  
  6561.  
  6562. typedef OnigRegexType regex_t;
  6563.  
  6564.  
  6565.  
  6566. typedef struct {
  6567. int num_of_elements;
  6568. OnigEncoding pattern_enc;
  6569. OnigEncoding target_enc;
  6570. OnigSyntaxType* syntax;
  6571. OnigOptionType option;
  6572. OnigCaseFoldType case_fold_flag;
  6573. } OnigCompileInfo;
  6574.  
  6575.  
  6576. extern
  6577. int onig_init (void);
  6578. extern
  6579. int onig_error_code_to_str ();
  6580. extern
  6581. void onig_set_warn_func (OnigWarnFunc f);
  6582. extern
  6583. void onig_set_verb_warn_func (OnigWarnFunc f);
  6584. extern
  6585. int onig_new (OnigRegex*, const OnigUChar* pattern, const OnigUChar* pattern_end, OnigOptionType option, OnigEncoding enc, OnigSyntaxType* syntax, OnigErrorInfo* einfo);
  6586. extern
  6587. int onig_reg_init (regex_t* reg, OnigOptionType option, OnigCaseFoldType case_fold_flag, OnigEncoding enc, OnigSyntaxType* syntax);
  6588. int onig_new_without_alloc (OnigRegex, const OnigUChar* pattern, const OnigUChar* pattern_end, OnigOptionType option, OnigEncoding enc, OnigSyntaxType* syntax, OnigErrorInfo* einfo);
  6589. extern
  6590. int onig_new_deluxe (OnigRegex* reg, const OnigUChar* pattern, const OnigUChar* pattern_end, OnigCompileInfo* ci, OnigErrorInfo* einfo);
  6591. extern
  6592. void onig_free (OnigRegex);
  6593. extern
  6594. void onig_free_body (OnigRegex);
  6595. extern
  6596. int onig_recompile (OnigRegex, const OnigUChar* pattern, const OnigUChar* pattern_end, OnigOptionType option, OnigEncoding enc, OnigSyntaxType* syntax, OnigErrorInfo* einfo);
  6597. extern
  6598. int onig_recompile_deluxe (OnigRegex reg, const OnigUChar* pattern, const OnigUChar* pattern_end, OnigCompileInfo* ci, OnigErrorInfo* einfo);
  6599. extern
  6600. int onig_search (OnigRegex, const OnigUChar* str, const OnigUChar* end, const OnigUChar* start, const OnigUChar* range, OnigRegion* region, OnigOptionType option);
  6601. extern
  6602. int onig_match (OnigRegex, const OnigUChar* str, const OnigUChar* end, const OnigUChar* at, OnigRegion* region, OnigOptionType option);
  6603. extern
  6604. OnigRegion* onig_region_new (void);
  6605. extern
  6606. void onig_region_init (OnigRegion* region);
  6607. extern
  6608. void onig_region_free (OnigRegion* region, int free_self);
  6609. extern
  6610. void onig_region_copy (OnigRegion* to, OnigRegion* from);
  6611. extern
  6612. void onig_region_clear (OnigRegion* region);
  6613. extern
  6614. int onig_region_resize (OnigRegion* region, int n);
  6615. extern
  6616. int onig_region_set (OnigRegion* region, int at, int beg, int end);
  6617. extern
  6618. int onig_name_to_group_numbers (OnigRegex reg, const OnigUChar* name, const OnigUChar* name_end, int** nums);
  6619. extern
  6620. int onig_name_to_backref_number (OnigRegex reg, const OnigUChar* name, const OnigUChar* name_end, OnigRegion *region);
  6621. extern
  6622. int onig_foreach_name (OnigRegex reg, int (*func)(const OnigUChar*, const OnigUChar*,int,int*,OnigRegex,void*), void* arg);
  6623. extern
  6624. int onig_number_of_names (OnigRegex reg);
  6625. extern
  6626. int onig_number_of_captures (OnigRegex reg);
  6627. extern
  6628. int onig_number_of_capture_histories (OnigRegex reg);
  6629. extern
  6630. OnigCaptureTreeNode* onig_get_capture_tree (OnigRegion* region);
  6631. extern
  6632. int onig_capture_tree_traverse (OnigRegion* region, int at, int(*callback_func)(int,int,int,int,int,void*), void* arg);
  6633. extern
  6634. int onig_noname_group_capture_is_active (OnigRegex reg);
  6635. extern
  6636. OnigEncoding onig_get_encoding (OnigRegex reg);
  6637. extern
  6638. OnigOptionType onig_get_options (OnigRegex reg);
  6639. extern
  6640. OnigCaseFoldType onig_get_case_fold_flag (OnigRegex reg);
  6641. extern
  6642. OnigSyntaxType* onig_get_syntax (OnigRegex reg);
  6643. extern
  6644. int onig_set_default_syntax (OnigSyntaxType* syntax);
  6645. extern
  6646. void onig_copy_syntax (OnigSyntaxType* to, OnigSyntaxType* from);
  6647. extern
  6648. unsigned int onig_get_syntax_op (OnigSyntaxType* syntax);
  6649. extern
  6650. unsigned int onig_get_syntax_op2 (OnigSyntaxType* syntax);
  6651. extern
  6652. unsigned int onig_get_syntax_behavior (OnigSyntaxType* syntax);
  6653. extern
  6654. OnigOptionType onig_get_syntax_options (OnigSyntaxType* syntax);
  6655. extern
  6656. void onig_set_syntax_op (OnigSyntaxType* syntax, unsigned int op);
  6657. extern
  6658. void onig_set_syntax_op2 (OnigSyntaxType* syntax, unsigned int op2);
  6659. extern
  6660. void onig_set_syntax_behavior (OnigSyntaxType* syntax, unsigned int behavior);
  6661. extern
  6662. void onig_set_syntax_options (OnigSyntaxType* syntax, OnigOptionType options);
  6663. extern
  6664. int onig_set_meta_char (OnigSyntaxType* syntax, unsigned int what, OnigCodePoint code);
  6665. extern
  6666. void onig_copy_encoding (OnigEncoding to, OnigEncoding from);
  6667. extern
  6668. OnigCaseFoldType onig_get_default_case_fold_flag (void);
  6669. extern
  6670. int onig_set_default_case_fold_flag (OnigCaseFoldType case_fold_flag);
  6671. extern
  6672. unsigned int onig_get_match_stack_limit_size (void);
  6673. extern
  6674. int onig_set_match_stack_limit_size (unsigned int size);
  6675. extern
  6676. int onig_end (void);
  6677. extern
  6678. const char* onig_version (void);
  6679. extern
  6680. const char* onig_copyright (void);
  6681. # 14 "readline.c" 2
  6682. # 1 "/usr/include/sys/stat.h" 1 3 4
  6683. # 105 "/usr/include/sys/stat.h" 3 4
  6684.  
  6685.  
  6686. # 1 "/usr/include/bits/stat.h" 1 3 4
  6687. # 108 "/usr/include/sys/stat.h" 2 3 4
  6688. # 211 "/usr/include/sys/stat.h" 3 4
  6689. extern int stat (__const char *__restrict __file,
  6690. struct stat *__restrict __buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  6691.  
  6692.  
  6693.  
  6694. extern int fstat (int __fd, struct stat *__buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
  6695. # 240 "/usr/include/sys/stat.h" 3 4
  6696. extern int fstatat (int __fd, __const char *__restrict __file,
  6697. struct stat *__restrict __buf, int __flag)
  6698. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
  6699. # 265 "/usr/include/sys/stat.h" 3 4
  6700. extern int lstat (__const char *__restrict __file,
  6701. struct stat *__restrict __buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  6702. # 286 "/usr/include/sys/stat.h" 3 4
  6703. extern int chmod (__const char *__file, __mode_t __mode)
  6704. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  6705.  
  6706.  
  6707.  
  6708.  
  6709.  
  6710. extern int lchmod (__const char *__file, __mode_t __mode)
  6711. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  6712.  
  6713.  
  6714.  
  6715.  
  6716. extern int fchmod (int __fd, __mode_t __mode) __attribute__ ((__nothrow__));
  6717.  
  6718.  
  6719.  
  6720.  
  6721.  
  6722. extern int fchmodat (int __fd, __const char *__file, __mode_t __mode,
  6723. int __flag)
  6724. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))) ;
  6725.  
  6726.  
  6727.  
  6728.  
  6729.  
  6730.  
  6731. extern __mode_t umask (__mode_t __mask) __attribute__ ((__nothrow__));
  6732. # 323 "/usr/include/sys/stat.h" 3 4
  6733. extern int mkdir (__const char *__path, __mode_t __mode)
  6734. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  6735.  
  6736.  
  6737.  
  6738.  
  6739.  
  6740. extern int mkdirat (int __fd, __const char *__path, __mode_t __mode)
  6741. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
  6742.  
  6743.  
  6744.  
  6745.  
  6746.  
  6747.  
  6748. extern int mknod (__const char *__path, __mode_t __mode, __dev_t __dev)
  6749. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  6750.  
  6751.  
  6752.  
  6753.  
  6754.  
  6755. extern int mknodat (int __fd, __const char *__path, __mode_t __mode,
  6756. __dev_t __dev) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
  6757.  
  6758.  
  6759.  
  6760.  
  6761.  
  6762. extern int mkfifo (__const char *__path, __mode_t __mode)
  6763. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  6764.  
  6765.  
  6766.  
  6767.  
  6768.  
  6769. extern int mkfifoat (int __fd, __const char *__path, __mode_t __mode)
  6770. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
  6771.  
  6772.  
  6773.  
  6774.  
  6775.  
  6776. extern int utimensat (int __fd, __const char *__path,
  6777. __const struct timespec __times[2],
  6778. int __flags)
  6779. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
  6780.  
  6781.  
  6782.  
  6783.  
  6784. extern int futimens (int __fd, __const struct timespec __times[2]) __attribute__ ((__nothrow__));
  6785. # 401 "/usr/include/sys/stat.h" 3 4
  6786. extern int __fxstat (int __ver, int __fildes, struct stat *__stat_buf)
  6787. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3)));
  6788. extern int __xstat (int __ver, __const char *__filename,
  6789. struct stat *__stat_buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
  6790. extern int __lxstat (int __ver, __const char *__filename,
  6791. struct stat *__stat_buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
  6792. extern int __fxstatat (int __ver, int __fildes, __const char *__filename,
  6793. struct stat *__stat_buf, int __flag)
  6794. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4)));
  6795. # 444 "/usr/include/sys/stat.h" 3 4
  6796. extern int __xmknod (int __ver, __const char *__path, __mode_t __mode,
  6797. __dev_t *__dev) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));
  6798.  
  6799. extern int __xmknodat (int __ver, int __fd, __const char *__path,
  6800. __mode_t __mode, __dev_t *__dev)
  6801. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 5)));
  6802.  
  6803.  
  6804.  
  6805.  
  6806. extern __inline int
  6807. __attribute__ ((__nothrow__)) stat (__const char *__path, struct stat *__statbuf)
  6808. {
  6809. return __xstat (1, __path, __statbuf);
  6810. }
  6811.  
  6812.  
  6813. extern __inline int
  6814. __attribute__ ((__nothrow__)) lstat (__const char *__path, struct stat *__statbuf)
  6815. {
  6816. return __lxstat (1, __path, __statbuf);
  6817. }
  6818.  
  6819.  
  6820. extern __inline int
  6821. __attribute__ ((__nothrow__)) fstat (int __fd, struct stat *__statbuf)
  6822. {
  6823. return __fxstat (1, __fd, __statbuf);
  6824. }
  6825.  
  6826.  
  6827. extern __inline int
  6828. __attribute__ ((__nothrow__)) fstatat (int __fd, __const char *__filename, struct stat *__statbuf, int __flag)
  6829.  
  6830. {
  6831. return __fxstatat (1, __fd, __filename, __statbuf, __flag);
  6832. }
  6833.  
  6834.  
  6835.  
  6836. extern __inline int
  6837. __attribute__ ((__nothrow__)) mknod (__const char *__path, __mode_t __mode, __dev_t __dev)
  6838. {
  6839. return __xmknod (0, __path, __mode, &__dev);
  6840. }
  6841.  
  6842.  
  6843.  
  6844. extern __inline int
  6845. __attribute__ ((__nothrow__)) mknodat (int __fd, __const char *__path, __mode_t __mode, __dev_t __dev)
  6846.  
  6847. {
  6848. return __xmknodat (0, __fd, __path, __mode, &__dev);
  6849. }
  6850. # 536 "/usr/include/sys/stat.h" 3 4
  6851.  
  6852. # 15 "readline.c" 2
  6853.  
  6854. # 1 "/usr/include/pwd.h" 1 3 4
  6855. # 28 "/usr/include/pwd.h" 3 4
  6856.  
  6857.  
  6858.  
  6859.  
  6860.  
  6861. # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stddef.h" 1 3 4
  6862. # 34 "/usr/include/pwd.h" 2 3 4
  6863. # 50 "/usr/include/pwd.h" 3 4
  6864. struct passwd
  6865. {
  6866. char *pw_name;
  6867. char *pw_passwd;
  6868. __uid_t pw_uid;
  6869. __gid_t pw_gid;
  6870. char *pw_gecos;
  6871. char *pw_dir;
  6872. char *pw_shell;
  6873. };
  6874. # 73 "/usr/include/pwd.h" 3 4
  6875. extern void setpwent (void);
  6876.  
  6877.  
  6878.  
  6879.  
  6880.  
  6881. extern void endpwent (void);
  6882.  
  6883.  
  6884.  
  6885.  
  6886.  
  6887. extern struct passwd *getpwent (void);
  6888. # 95 "/usr/include/pwd.h" 3 4
  6889. extern struct passwd *fgetpwent (FILE *__stream);
  6890.  
  6891.  
  6892.  
  6893.  
  6894.  
  6895.  
  6896.  
  6897. extern int putpwent (__const struct passwd *__restrict __p,
  6898. FILE *__restrict __f);
  6899.  
  6900.  
  6901.  
  6902.  
  6903.  
  6904.  
  6905. extern struct passwd *getpwuid (__uid_t __uid);
  6906.  
  6907.  
  6908.  
  6909.  
  6910.  
  6911. extern struct passwd *getpwnam (__const char *__name);
  6912. # 140 "/usr/include/pwd.h" 3 4
  6913. extern int getpwent_r (struct passwd *__restrict __resultbuf,
  6914. char *__restrict __buffer, size_t __buflen,
  6915. struct passwd **__restrict __result);
  6916.  
  6917.  
  6918. extern int getpwuid_r (__uid_t __uid,
  6919. struct passwd *__restrict __resultbuf,
  6920. char *__restrict __buffer, size_t __buflen,
  6921. struct passwd **__restrict __result);
  6922.  
  6923. extern int getpwnam_r (__const char *__restrict __name,
  6924. struct passwd *__restrict __resultbuf,
  6925. char *__restrict __buffer, size_t __buflen,
  6926. struct passwd **__restrict __result);
  6927. # 164 "/usr/include/pwd.h" 3 4
  6928. extern int fgetpwent_r (FILE *__restrict __stream,
  6929. struct passwd *__restrict __resultbuf,
  6930. char *__restrict __buffer, size_t __buflen,
  6931. struct passwd **__restrict __result);
  6932. # 184 "/usr/include/pwd.h" 3 4
  6933.  
  6934. # 17 "readline.c" 2
  6935.  
  6936. # 1 "config.h" 1
  6937. # 19 "readline.c" 2
  6938.  
  6939.  
  6940.  
  6941.  
  6942.  
  6943. # 1 "/usr/include/ncurses.h" 1 3 4
  6944. # 66 "/usr/include/ncurses.h" 3 4
  6945. # 1 "/usr/include/ncurses_dll.h" 1 3 4
  6946. # 67 "/usr/include/ncurses.h" 2 3 4
  6947. # 136 "/usr/include/ncurses.h" 3 4
  6948. typedef unsigned int chtype;
  6949. typedef unsigned long mmask_t;
  6950.  
  6951.  
  6952.  
  6953. # 1 "/usr/include/unctrl.h" 1 3 4
  6954. # 54 "/usr/include/unctrl.h" 3 4
  6955. # 1 "/usr/include/curses.h" 1 3 4
  6956. # 55 "/usr/include/unctrl.h" 2 3 4
  6957.  
  6958.  
  6959. char * unctrl (chtype);
  6960. # 142 "/usr/include/ncurses.h" 2 3 4
  6961. # 165 "/usr/include/ncurses.h" 3 4
  6962. typedef unsigned char NCURSES_BOOL;
  6963. # 175 "/usr/include/ncurses.h" 3 4
  6964. # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include/stdbool.h" 1 3 4
  6965. # 176 "/usr/include/ncurses.h" 2 3 4
  6966. # 231 "/usr/include/ncurses.h" 3 4
  6967. extern chtype acs_map[];
  6968. # 321 "/usr/include/ncurses.h" 3 4
  6969. typedef struct screen SCREEN;
  6970. typedef struct _win_st WINDOW;
  6971.  
  6972. typedef chtype attr_t;
  6973. # 363 "/usr/include/ncurses.h" 3 4
  6974. struct ldat;
  6975.  
  6976. struct _win_st
  6977. {
  6978. short _cury, _curx;
  6979.  
  6980.  
  6981. short _maxy, _maxx;
  6982. short _begy, _begx;
  6983.  
  6984. short _flags;
  6985.  
  6986.  
  6987. attr_t _attrs;
  6988. chtype _bkgd;
  6989.  
  6990.  
  6991. _Bool _notimeout;
  6992. _Bool _clear;
  6993. _Bool _leaveok;
  6994. _Bool _scroll;
  6995. _Bool _idlok;
  6996. _Bool _idcok;
  6997. _Bool _immed;
  6998. _Bool _sync;
  6999. _Bool _use_keypad;
  7000. int _delay;
  7001.  
  7002. struct ldat *_line;
  7003.  
  7004.  
  7005. short _regtop;
  7006. short _regbottom;
  7007.  
  7008.  
  7009. int _parx;
  7010. int _pary;
  7011. WINDOW *_parent;
  7012.  
  7013.  
  7014. struct pdat
  7015. {
  7016. short _pad_y, _pad_x;
  7017. short _pad_top, _pad_left;
  7018. short _pad_bottom, _pad_right;
  7019. } _pad;
  7020.  
  7021. short _yoffset;
  7022.  
  7023.  
  7024.  
  7025.  
  7026.  
  7027.  
  7028.  
  7029. };
  7030. # 520 "/usr/include/ncurses.h" 3 4
  7031. extern int addch (const chtype);
  7032. extern int addchnstr (const chtype *, int);
  7033. extern int addchstr (const chtype *);
  7034. extern int addnstr (const char *, int);
  7035. extern int addstr (const char *);
  7036. extern int attroff (int);
  7037. extern int attron (int);
  7038. extern int attrset (int);
  7039. extern int attr_get (attr_t *, short *, void *);
  7040. extern int attr_off (attr_t, void *);
  7041. extern int attr_on (attr_t, void *);
  7042. extern int attr_set (attr_t, short, void *);
  7043. extern int baudrate (void);
  7044. extern int beep (void);
  7045. extern int bkgd (chtype);
  7046. extern void bkgdset (chtype);
  7047. extern int border (chtype,chtype,chtype,chtype,chtype,chtype,chtype,chtype);
  7048. extern int box (WINDOW *, chtype, chtype);
  7049. extern _Bool can_change_color (void);
  7050. extern int cbreak (void);
  7051. extern int chgat (int, attr_t, short, const void *);
  7052. extern int clear (void);
  7053. extern int clearok (WINDOW *,_Bool);
  7054. extern int clrtobot (void);
  7055. extern int clrtoeol (void);
  7056. extern int color_content (short,short*,short*,short*);
  7057. extern int color_set (short,void*);
  7058. extern int COLOR_PAIR (int);
  7059. extern int copywin (const WINDOW*,WINDOW*,int,int,int,int,int,int,int);
  7060. extern int curs_set (int);
  7061. extern int def_prog_mode (void);
  7062. extern int def_shell_mode (void);
  7063. extern int delay_output (int);
  7064. extern int delch (void);
  7065. extern void delscreen (SCREEN *);
  7066. extern int delwin (WINDOW *);
  7067. extern int deleteln (void);
  7068. extern WINDOW * derwin (WINDOW *,int,int,int,int);
  7069. extern int doupdate (void);
  7070. extern WINDOW * dupwin (WINDOW *);
  7071. extern int echo (void);
  7072. extern int echochar (const chtype);
  7073. extern int erase (void);
  7074. extern int endwin (void);
  7075. extern char erasechar (void);
  7076. extern void filter (void);
  7077. extern int flash (void);
  7078. extern int flushinp (void);
  7079. extern chtype getbkgd (WINDOW *);
  7080. extern int getch (void);
  7081. extern int getnstr (char *, int);
  7082. extern int getstr (char *);
  7083. extern WINDOW * getwin (FILE *);
  7084. extern int halfdelay (int);
  7085. extern _Bool has_colors (void);
  7086. extern _Bool has_ic (void);
  7087. extern _Bool has_il (void);
  7088. extern int hline (chtype, int);
  7089. extern void idcok (WINDOW *, _Bool);
  7090. extern int idlok (WINDOW *, _Bool);
  7091. extern void immedok (WINDOW *, _Bool);
  7092. extern chtype inch (void);
  7093. extern int inchnstr (chtype *, int);
  7094. extern int inchstr (chtype *);
  7095. extern WINDOW * initscr (void);
  7096. extern int init_color (short,short,short,short);
  7097. extern int init_pair (short,short,short);
  7098. extern int innstr (char *, int);
  7099. extern int insch (chtype);
  7100. extern int insdelln (int);
  7101. extern int insertln (void);
  7102. extern int insnstr (const char *, int);
  7103. extern int insstr (const char *);
  7104. extern int instr (char *);
  7105. extern int intrflush (WINDOW *,_Bool);
  7106. extern _Bool isendwin (void);
  7107. extern _Bool is_linetouched (WINDOW *,int);
  7108. extern _Bool is_wintouched (WINDOW *);
  7109. extern char * keyname (int);
  7110. extern int keypad (WINDOW *,_Bool);
  7111. extern char killchar (void);
  7112. extern int leaveok (WINDOW *,_Bool);
  7113. extern char * longname (void);
  7114. extern int meta (WINDOW *,_Bool);
  7115. extern int move (int, int);
  7116. extern int mvaddch (int, int, const chtype);
  7117. extern int mvaddchnstr (int, int, const chtype *, int);
  7118. extern int mvaddchstr (int, int, const chtype *);
  7119. extern int mvaddnstr (int, int, const char *, int);
  7120. extern int mvaddstr (int, int, const char *);
  7121. extern int mvchgat (int, int, int, attr_t, short, const void *);
  7122. extern int mvcur (int,int,int,int);
  7123. extern int mvdelch (int, int);
  7124. extern int mvderwin (WINDOW *, int, int);
  7125. extern int mvgetch (int, int);
  7126. extern int mvgetnstr (int, int, char *, int);
  7127. extern int mvgetstr (int, int, char *);
  7128. extern int mvhline (int, int, chtype, int);
  7129. extern chtype mvinch (int, int);
  7130. extern int mvinchnstr (int, int, chtype *, int);
  7131. extern int mvinchstr (int, int, chtype *);
  7132. extern int mvinnstr (int, int, char *, int);
  7133. extern int mvinsch (int, int, chtype);
  7134. extern int mvinsnstr (int, int, const char *, int);
  7135. extern int mvinsstr (int, int, const char *);
  7136. extern int mvinstr (int, int, char *);
  7137. extern int mvprintw (int,int, const char *,...)
  7138. ;
  7139. extern int mvscanw (int,int, char *,...)
  7140. ;
  7141. extern int mvvline (int, int, chtype, int);
  7142. extern int mvwaddch (WINDOW *, int, int, const chtype);
  7143. extern int mvwaddchnstr (WINDOW *, int, int, const chtype *, int);
  7144. extern int mvwaddchstr (WINDOW *, int, int, const chtype *);
  7145. extern int mvwaddnstr (WINDOW *, int, int, const char *, int);
  7146. extern int mvwaddstr (WINDOW *, int, int, const char *);
  7147. extern int mvwchgat (WINDOW *, int, int, int, attr_t, short, const void *);
  7148. extern int mvwdelch (WINDOW *, int, int);
  7149. extern int mvwgetch (WINDOW *, int, int);
  7150. extern int mvwgetnstr (WINDOW *, int, int, char *, int);
  7151. extern int mvwgetstr (WINDOW *, int, int, char *);
  7152. extern int mvwhline (WINDOW *, int, int, chtype, int);
  7153. extern int mvwin (WINDOW *,int,int);
  7154. extern chtype mvwinch (WINDOW *, int, int);
  7155. extern int mvwinchnstr (WINDOW *, int, int, chtype *, int);
  7156. extern int mvwinchstr (WINDOW *, int, int, chtype *);
  7157. extern int mvwinnstr (WINDOW *, int, int, char *, int);
  7158. extern int mvwinsch (WINDOW *, int, int, chtype);
  7159. extern int mvwinsnstr (WINDOW *, int, int, const char *, int);
  7160. extern int mvwinsstr (WINDOW *, int, int, const char *);
  7161. extern int mvwinstr (WINDOW *, int, int, char *);
  7162. extern int mvwprintw (WINDOW*,int,int, const char *,...)
  7163. ;
  7164. extern int mvwscanw (WINDOW *,int,int, char *,...)
  7165. ;
  7166. extern int mvwvline (WINDOW *,int, int, chtype, int);
  7167. extern int napms (int);
  7168. extern WINDOW * newpad (int,int);
  7169. extern SCREEN * newterm ( char *,FILE *,FILE *);
  7170. extern WINDOW * newwin (int,int,int,int);
  7171. extern int nl (void);
  7172. extern int nocbreak (void);
  7173. extern int nodelay (WINDOW *,_Bool);
  7174. extern int noecho (void);
  7175. extern int nonl (void);
  7176. extern void noqiflush (void);
  7177. extern int noraw (void);
  7178. extern int notimeout (WINDOW *,_Bool);
  7179. extern int overlay (const WINDOW*,WINDOW *);
  7180. extern int overwrite (const WINDOW*,WINDOW *);
  7181. extern int pair_content (short,short*,short*);
  7182. extern int PAIR_NUMBER (int);
  7183. extern int pechochar (WINDOW *, const chtype);
  7184. extern int pnoutrefresh (WINDOW*,int,int,int,int,int,int);
  7185. extern int prefresh (WINDOW *,int,int,int,int,int,int);
  7186. extern int printw (const char *,...)
  7187. ;
  7188. extern int putwin (WINDOW *, FILE *);
  7189. extern void qiflush (void);
  7190. extern int raw (void);
  7191. extern int redrawwin (WINDOW *);
  7192. extern int refresh (void);
  7193. extern int resetty (void);
  7194. extern int reset_prog_mode (void);
  7195. extern int reset_shell_mode (void);
  7196. extern int ripoffline (int, int (*)(WINDOW *, int));
  7197. extern int savetty (void);
  7198. extern int scanw ( char *,...)
  7199. ;
  7200. extern int scr_dump (const char *);
  7201. extern int scr_init (const char *);
  7202. extern int scrl (int);
  7203. extern int scroll (WINDOW *);
  7204. extern int scrollok (WINDOW *,_Bool);
  7205. extern int scr_restore (const char *);
  7206. extern int scr_set (const char *);
  7207. extern int setscrreg (int,int);
  7208. extern SCREEN * set_term (SCREEN *);
  7209. extern int slk_attroff (const chtype);
  7210. extern int slk_attr_off (const attr_t, void *);
  7211. extern int slk_attron (const chtype);
  7212. extern int slk_attr_on (attr_t,void*);
  7213. extern int slk_attrset (const chtype);
  7214. extern attr_t slk_attr (void);
  7215. extern int slk_attr_set (const attr_t,short,void*);
  7216. extern int slk_clear (void);
  7217. extern int slk_color (short);
  7218. extern int slk_init (int);
  7219. extern char * slk_label (int);
  7220. extern int slk_noutrefresh (void);
  7221. extern int slk_refresh (void);
  7222. extern int slk_restore (void);
  7223. extern int slk_set (int,const char *,int);
  7224. extern int slk_touch (void);
  7225. extern int standout (void);
  7226. extern int standend (void);
  7227. extern int start_color (void);
  7228. extern WINDOW * subpad (WINDOW *, int, int, int, int);
  7229. extern WINDOW * subwin (WINDOW *, int, int, int, int);
  7230. extern int syncok (WINDOW *, _Bool);
  7231. extern chtype termattrs (void);
  7232. extern char * termname (void);
  7233. extern void timeout (int);
  7234. extern int touchline (WINDOW *, int, int);
  7235. extern int touchwin (WINDOW *);
  7236. extern int typeahead (int);
  7237. extern int ungetch (int);
  7238. extern int untouchwin (WINDOW *);
  7239. extern void use_env (_Bool);
  7240. extern int vidattr (chtype);
  7241. extern int vidputs (chtype, int (*)(int));
  7242. extern int vline (chtype, int);
  7243. extern int vwprintw (WINDOW *, const char *,va_list);
  7244. extern int vw_printw (WINDOW *, const char *,va_list);
  7245. extern int vwscanw (WINDOW *, char *,va_list);
  7246. extern int vw_scanw (WINDOW *, char *,va_list);
  7247. extern int waddch (WINDOW *, const chtype);
  7248. extern int waddchnstr (WINDOW *,const chtype *,int);
  7249. extern int waddchstr (WINDOW *,const chtype *);
  7250. extern int waddnstr (WINDOW *,const char *,int);
  7251. extern int waddstr (WINDOW *,const char *);
  7252. extern int wattron (WINDOW *, int);
  7253. extern int wattroff (WINDOW *, int);
  7254. extern int wattrset (WINDOW *, int);
  7255. extern int wattr_get (WINDOW *, attr_t *, short *, void *);
  7256. extern int wattr_on (WINDOW *, attr_t, void *);
  7257. extern int wattr_off (WINDOW *, attr_t, void *);
  7258. extern int wattr_set (WINDOW *, attr_t, short, void *);
  7259. extern int wbkgd (WINDOW *, chtype);
  7260. extern void wbkgdset (WINDOW *,chtype);
  7261. extern int wborder (WINDOW *,chtype,chtype,chtype,chtype,chtype,chtype,chtype,chtype);
  7262. extern int wchgat (WINDOW *, int, attr_t, short, const void *);
  7263. extern int wclear (WINDOW *);
  7264. extern int wclrtobot (WINDOW *);
  7265. extern int wclrtoeol (WINDOW *);
  7266. extern int wcolor_set (WINDOW*,short,void*);
  7267. extern void wcursyncup (WINDOW *);
  7268. extern int wdelch (WINDOW *);
  7269. extern int wdeleteln (WINDOW *);
  7270. extern int wechochar (WINDOW *, const chtype);
  7271. extern int werase (WINDOW *);
  7272. extern int wgetch (WINDOW *);
  7273. extern int wgetnstr (WINDOW *,char *,int);
  7274. extern int wgetstr (WINDOW *, char *);
  7275. extern int whline (WINDOW *, chtype, int);
  7276. extern chtype winch (WINDOW *);
  7277. extern int winchnstr (WINDOW *, chtype *, int);
  7278. extern int winchstr (WINDOW *, chtype *);
  7279. extern int winnstr (WINDOW *, char *, int);
  7280. extern int winsch (WINDOW *, chtype);
  7281. extern int winsdelln (WINDOW *,int);
  7282. extern int winsertln (WINDOW *);
  7283. extern int winsnstr (WINDOW *, const char *,int);
  7284. extern int winsstr (WINDOW *, const char *);
  7285. extern int winstr (WINDOW *, char *);
  7286. extern int wmove (WINDOW *,int,int);
  7287. extern int wnoutrefresh (WINDOW *);
  7288. extern int wprintw (WINDOW *, const char *,...)
  7289. ;
  7290. extern int wredrawln (WINDOW *,int,int);
  7291. extern int wrefresh (WINDOW *);
  7292. extern int wscanw (WINDOW *, char *,...)
  7293. ;
  7294. extern int wscrl (WINDOW *,int);
  7295. extern int wsetscrreg (WINDOW *,int,int);
  7296. extern int wstandout (WINDOW *);
  7297. extern int wstandend (WINDOW *);
  7298. extern void wsyncdown (WINDOW *);
  7299. extern void wsyncup (WINDOW *);
  7300. extern void wtimeout (WINDOW *,int);
  7301. extern int wtouchln (WINDOW *,int,int,int);
  7302. extern int wvline (WINDOW *,chtype,int);
  7303.  
  7304.  
  7305.  
  7306.  
  7307. extern int tigetflag ( char *);
  7308. extern int tigetnum ( char *);
  7309. extern char * tigetstr ( char *);
  7310. extern int putp (const char *);
  7311.  
  7312.  
  7313. extern char * tparm ( char *, ...);
  7314. # 811 "/usr/include/ncurses.h" 3 4
  7315. extern int getattrs (const WINDOW *);
  7316. extern int getcurx (const WINDOW *);
  7317. extern int getcury (const WINDOW *);
  7318. extern int getbegx (const WINDOW *);
  7319. extern int getbegy (const WINDOW *);
  7320. extern int getmaxx (const WINDOW *);
  7321. extern int getmaxy (const WINDOW *);
  7322. extern int getparx (const WINDOW *);
  7323. extern int getpary (const WINDOW *);
  7324. # 834 "/usr/include/ncurses.h" 3 4
  7325. typedef int (*NCURSES_WINDOW_CB)(WINDOW *, void *);
  7326. typedef int (*NCURSES_SCREEN_CB)(SCREEN *, void *);
  7327. extern _Bool is_term_resized (int, int);
  7328. extern char * keybound (int, int);
  7329. extern const char * curses_version (void);
  7330. extern int assume_default_colors (int, int);
  7331. extern int define_key (const char *, int);
  7332. extern int key_defined (const char *);
  7333. extern int keyok (int, _Bool);
  7334. extern int resize_term (int, int);
  7335. extern int resizeterm (int, int);
  7336. extern int set_escdelay (int);
  7337. extern int set_tabsize (int);
  7338. extern int use_default_colors (void);
  7339. extern int use_extended_names (_Bool);
  7340. extern int use_legacy_coding (int);
  7341. extern int use_screen (SCREEN *, NCURSES_SCREEN_CB, void *);
  7342. extern int use_window (WINDOW *, NCURSES_WINDOW_CB, void *);
  7343. extern int wresize (WINDOW *, int, int);
  7344. extern void nofilter(void);
  7345.  
  7346.  
  7347.  
  7348.  
  7349.  
  7350. extern WINDOW * wgetparent (const WINDOW *);
  7351. extern _Bool is_cleared (const WINDOW *);
  7352. extern _Bool is_idcok (const WINDOW *);
  7353. extern _Bool is_idlok (const WINDOW *);
  7354. extern _Bool is_immedok (const WINDOW *);
  7355. extern _Bool is_keypad (const WINDOW *);
  7356. extern _Bool is_leaveok (const WINDOW *);
  7357. extern _Bool is_nodelay (const WINDOW *);
  7358. extern _Bool is_notimeout (const WINDOW *);
  7359. extern _Bool is_scrollok (const WINDOW *);
  7360. extern _Bool is_syncok (const WINDOW *);
  7361. extern int wgetscrreg (const WINDOW *, int *, int *);
  7362. # 1202 "/usr/include/ncurses.h" 3 4
  7363. extern WINDOW * curscr;
  7364. extern WINDOW * newscr;
  7365. extern WINDOW * stdscr;
  7366. extern char ttytype[];
  7367. extern int COLORS;
  7368. extern int COLOR_PAIRS;
  7369. extern int COLS;
  7370. extern int ESCDELAY;
  7371. extern int LINES;
  7372. extern int TABSIZE;
  7373. # 1667 "/usr/include/ncurses.h" 3 4
  7374. typedef struct
  7375. {
  7376. short id;
  7377. int x, y, z;
  7378. mmask_t bstate;
  7379. }
  7380. MEVENT;
  7381.  
  7382. extern int getmouse (MEVENT *);
  7383. extern int ungetmouse (MEVENT *);
  7384. extern mmask_t mousemask (mmask_t, mmask_t *);
  7385. extern _Bool wenclose (const WINDOW *, int, int);
  7386. extern int mouseinterval (int);
  7387. extern _Bool wmouse_trafo (const WINDOW*, int*, int*, _Bool);
  7388. extern _Bool mouse_trafo (int*, int*, _Bool);
  7389.  
  7390.  
  7391.  
  7392.  
  7393.  
  7394. extern int mcprint (char *, int);
  7395. extern int has_key (int);
  7396.  
  7397.  
  7398.  
  7399. extern void _tracef (const char *, ...) ;
  7400. extern void _tracedump (const char *, WINDOW *);
  7401. extern char * _traceattr (attr_t);
  7402. extern char * _traceattr2 (int, chtype);
  7403. extern char * _nc_tracebits (void);
  7404. extern char * _tracechar (int);
  7405. extern char * _tracechtype (chtype);
  7406. extern char * _tracechtype2 (int, chtype);
  7407. # 1709 "/usr/include/ncurses.h" 3 4
  7408. extern char * _tracemouse (const MEVENT *);
  7409. extern void trace (const unsigned int);
  7410. # 25 "readline.c" 2
  7411.  
  7412.  
  7413.  
  7414.  
  7415. # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include-fixed/limits.h" 1 3 4
  7416. # 34 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include-fixed/limits.h" 3 4
  7417. # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include-fixed/syslimits.h" 1 3 4
  7418.  
  7419.  
  7420.  
  7421.  
  7422.  
  7423.  
  7424. # 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include-fixed/limits.h" 1 3 4
  7425. # 169 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include-fixed/limits.h" 3 4
  7426. # 1 "/usr/include/limits.h" 1 3 4
  7427. # 149 "/usr/include/limits.h" 3 4
  7428. # 1 "/usr/include/bits/posix2_lim.h" 1 3 4
  7429. # 150 "/usr/include/limits.h" 2 3 4
  7430. # 170 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include-fixed/limits.h" 2 3 4
  7431. # 8 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include-fixed/syslimits.h" 2 3 4
  7432. # 35 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include-fixed/limits.h" 2 3 4
  7433. # 30 "readline.c" 2
  7434. # 42 "readline.c"
  7435. static vector_obj* files = ((void *)0);
  7436.  
  7437.  
  7438.  
  7439.  
  7440. static int name_sort(void* left, void* right)
  7441. {
  7442. string_obj* l = (string_obj*)left;
  7443. string_obj* r = (string_obj*) right;
  7444.  
  7445. char* lfname = ((string_obj*)l)->mStr;
  7446. char* rfname = ((string_obj*)r)->mStr;
  7447.  
  7448. 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;
  7449. 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) {
  7450. 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;
  7451.  
  7452. return 1;
  7453. }
  7454. 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;
  7455. 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;
  7456.  
  7457. return strcasecmp(lfname, rfname) < 0;
  7458. }
  7459. # 666 "readline.c"
  7460. char* readline_program_completion(const char* text, int stat)
  7461. {
  7462. static int index, wordlen;
  7463.  
  7464. if(stat == 0) {
  7465. wordlen = strlen(text);
  7466. index = 0;
  7467. }
  7468.  
  7469. while(index < ((vector_obj*)gPrograms)->mCount) {
  7470. char* program = ((string_obj*)((vector_obj*)gPrograms)->mTable[index])->mStr;
  7471. index++;
  7472.  
  7473. 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)))) {
  7474. 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)));
  7475. }
  7476. }
  7477.  
  7478. return ((void *)0);
  7479. }
  7480.  
  7481. static vector_obj* gCompList;
  7482.  
  7483. static void readline_env_completion_make_completion_list()
  7484. {
  7485. int i;
  7486. for(i=0; i<((vector_obj*)gCompList)->mCount; i++) {
  7487. string_delete(((vector_obj*)gCompList)->mTable[i]);
  7488. }
  7489. vector_clear(gCompList);
  7490.  
  7491.  
  7492.  
  7493. extern char **environ;
  7494.  
  7495. char** p;
  7496. for(p = environ; *p; p++) {
  7497. char env_name[256];
  7498.  
  7499. char* p2 = env_name;
  7500. char* p3 = *p;
  7501.  
  7502. *p2++ = '$';
  7503. while(*p3 != '=') {
  7504. *p2++ = *p3++;
  7505. }
  7506. *p2 = 0;
  7507.  
  7508. vector_add(gCompList, string_new(env_name));
  7509. }
  7510.  
  7511.  
  7512. hash_it* it = hash_loop_begin(gGlobals);
  7513. while(it) {
  7514. char* key = hash_loop_key(it);
  7515.  
  7516. char env_name[256];
  7517. strcpy(env_name, "$");
  7518. strcat(env_name, key);
  7519.  
  7520. vector_add(gCompList, string_new(env_name));
  7521.  
  7522. it = hash_loop_next(it);
  7523. }
  7524.  
  7525. it = hash_loop_begin(gArrays);
  7526. while(it) {
  7527. char* key = hash_loop_key(it);
  7528.  
  7529. char env_name[256];
  7530. strcpy(env_name, "$");
  7531. strcat(env_name, key);
  7532.  
  7533. vector_add(gCompList, string_new(env_name));
  7534.  
  7535. it = hash_loop_next(it);
  7536. }
  7537.  
  7538. it = hash_loop_begin(gHashs);
  7539. while(it) {
  7540. char* key = hash_loop_key(it);
  7541.  
  7542. char env_name[256];
  7543. strcpy(env_name, "$");
  7544. strcat(env_name, key);
  7545.  
  7546. vector_add(gCompList, string_new(env_name));
  7547.  
  7548. it = hash_loop_next(it);
  7549. }
  7550.  
  7551. (void)vector_sort(gCompList, name_sort);
  7552. }
  7553.  
  7554. char* readline_env_completion(const char* text, int stat)
  7555. {
  7556. static int index, wordlen;
  7557. static hash_it* git;
  7558. static hash_it* ait;
  7559. static hash_it* hit;
  7560.  
  7561. if(stat == 0) {
  7562. wordlen = strlen(text);
  7563. index = 0;
  7564.  
  7565. readline_env_completion_make_completion_list();
  7566. }
  7567. while(1) {
  7568. if(index < ((vector_obj*)gCompList)->mCount) {
  7569. char* env = ((string_obj*)((vector_obj*)gCompList)->mTable[index])->mStr;
  7570. index++;
  7571. 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) {
  7572. 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)));
  7573. }
  7574. }
  7575. # 840 "readline.c"
  7576. else {
  7577. break;
  7578. }
  7579. }
  7580.  
  7581. return ((void *)0);
  7582. }
  7583.  
  7584. char** readline_on_complete(const char* text, int start, int end)
  7585. {
  7586.  
  7587.  
  7588. int program = 1;
  7589. int env = 0;
  7590. int user = 0;
  7591.  
  7592. char* p = rl_line_buffer;
  7593.  
  7594. while(*p == ' ' || *p == '\t' || *p == '\n') {
  7595. p++;
  7596. }
  7597.  
  7598. int squote = 0;
  7599. int dquote = 0;
  7600. while(p < rl_line_buffer + end) {
  7601.  
  7602. if(*p == '\\' && *(p+1) == 't') {
  7603. p+=2;
  7604. env = 0;
  7605. user = 0;
  7606. }
  7607. else if(*p == '\\' && *(p+1) == 'n') {
  7608. p+=2;
  7609. env = 0;
  7610. user = 0;
  7611. }
  7612. else if(*p == '\\' && *(p+1) == 'r') {
  7613. p+=2;
  7614. env = 0;
  7615. user = 0;
  7616. }
  7617. else if(*p == '\\') {
  7618. p+=2;
  7619. env = 0;
  7620. user = 0;
  7621. }
  7622.  
  7623.  
  7624. else if(!dquote && *p == '\'') {
  7625. p++;
  7626. squote = !squote;
  7627. env = 0;
  7628. user = 0;
  7629. }
  7630.  
  7631. else if(!squote && *p == '"') {
  7632. p++;
  7633. dquote = !dquote;
  7634. env = 0;
  7635. user = 0;
  7636. }
  7637.  
  7638. else if(!squote && *p == '$' && *(p+1) == '$' && *(p+2) == '(') {
  7639. p+=3;
  7640.  
  7641. program = 1;
  7642.  
  7643. while(*p == ' ' || *p == '\t' || *p == '\n') {
  7644. p++;
  7645. }
  7646. env = 0;
  7647. user = 0;
  7648. }
  7649.  
  7650. else if(!squote && *p == '$' && *(p+1) == '(') {
  7651. p+=2;
  7652.  
  7653. program = 1;
  7654. while(*p == ' ' || *p == '\t' || *p == '\n') {
  7655. p++;
  7656. }
  7657. env = 0;
  7658. user = 0;
  7659. }
  7660. else if(!dquote && !squote && *p == ')') {
  7661. p++;
  7662. program = 0;
  7663. while(*p == ' ' || *p == '\t' || *p == '\n') {
  7664. p++;
  7665. }
  7666. env = 0;
  7667. user = 0;
  7668. }
  7669.  
  7670.  
  7671. else if(!squote && *p == '$' && *(p+1) == '$') {
  7672. p+=2;
  7673. env = 1;
  7674. user = 0;
  7675. }
  7676.  
  7677. else if(!squote && *p == '$') {
  7678. p+=2;
  7679. env = 1;
  7680. user = 0;
  7681. }
  7682.  
  7683. else if(squote || dquote) {
  7684. p++;
  7685. }
  7686. else if(*p == '~') {
  7687. p++;
  7688. env = 0;
  7689. user = 1;
  7690. }
  7691.  
  7692. else if(*p == '*' || *p == '?' || *p =='[' && (*(p+1) != ' ' && *(p+1) != '\t' && *(p+1) == '\n'))
  7693. {
  7694. p++;
  7695. env = 0;
  7696. user = 0;
  7697. }
  7698. else if(*p == '<' && program) {
  7699. p++;
  7700.  
  7701. program = 0;
  7702. env = 0;
  7703. user = 0;
  7704. }
  7705.  
  7706.  
  7707.  
  7708. else if(*p == ' ' || *p == '\t') {
  7709. while(*p == ' ' || *p == '\t') {
  7710. p++;
  7711. }
  7712.  
  7713. if(program) program = 0;
  7714. env = 0;
  7715. user = 0;
  7716. }
  7717.  
  7718. else if(*p == ':' || *p == '{') {
  7719. p++;
  7720. program = 1;
  7721. while(*p == ' ' || *p == '\t' || *p == '\n') {
  7722. p++;
  7723. }
  7724. env = 0;
  7725. user = 0;
  7726. }
  7727.  
  7728.  
  7729.  
  7730.  
  7731. else if(*p == '|' && *(p+1) == '~') {
  7732. p+=2;
  7733.  
  7734. program = 1;
  7735. while(*p == ' ' || *p == '\t' || *p == '\n') {
  7736. p++;
  7737. }
  7738. env = 0;
  7739. user = 0;
  7740. }
  7741.  
  7742.  
  7743. else if(*p == '|' && *(p+1) != '|') {
  7744. p++;
  7745.  
  7746. program = 1;
  7747. while(*p == ' ' || *p == '\t' || *p == '\n') {
  7748. p++;
  7749. }
  7750. env = 0;
  7751. user = 0;
  7752. }
  7753.  
  7754.  
  7755.  
  7756.  
  7757. else if(*p == '&' && *(p+1) == '&') {
  7758. p+=2;
  7759.  
  7760. program = 1;
  7761. while(*p == ' ' || *p == '\t' || *p == '\n') {
  7762. p++;
  7763. }
  7764. env = 0;
  7765. user = 0;
  7766. }
  7767.  
  7768. else if(*p == '|' && *(p+1) == '|') {
  7769. p+=2;
  7770.  
  7771. program = 1;
  7772. while(*p == ' ' || *p == '\t' || *p == '\n') {
  7773. p++;
  7774. }
  7775. env = 0;
  7776. user = 0;
  7777. }
  7778.  
  7779. else if(*p == '&' && *(p+1) != '&') {
  7780. p++;
  7781.  
  7782. program = 1;
  7783. while(*p == ' ' || *p == '\t' || *p == '\n') {
  7784. p++;
  7785. }
  7786. env = 0;
  7787. user = 0;
  7788. }
  7789.  
  7790. else if(*p == ';') {
  7791. p++;
  7792.  
  7793. program = 1;
  7794. while(*p == ' ' || *p == '\t' || *p == '\n') {
  7795. p++;
  7796. }
  7797. env = 0;
  7798. user = 0;
  7799. }
  7800.  
  7801. else if(*p == '\n') {
  7802. p++;
  7803.  
  7804. program = 1;
  7805. while(*p == ' ' || *p == '\t' || *p == '\n') {
  7806. p++;
  7807. }
  7808. env = 0;
  7809. user = 0;
  7810. }
  7811.  
  7812. else if(*p == '#') {
  7813. p++;
  7814.  
  7815. while(*p) {
  7816. if(*p == '\n') {
  7817. p++;
  7818. program = 1;
  7819. break;
  7820. }
  7821. else {
  7822. p++;
  7823. }
  7824. }
  7825. while(*p == ' ' || *p == '\t' || *p == '\n') {
  7826. p++;
  7827. }
  7828. env = 0;
  7829. user = 0;
  7830. }
  7831. else if(*p == '/') {
  7832. env = 0;
  7833. user = 0;
  7834. p++;
  7835. }
  7836.  
  7837. else if(*p == 0) {
  7838. break;
  7839. }
  7840.  
  7841.  
  7842.  
  7843.  
  7844. else if(*p == '(') {
  7845. p++;
  7846. program = 1;
  7847. env = 0;
  7848. user = 0;
  7849. while(*p == ' ' || *p == '\t' || *p == '\n') {
  7850. p++;
  7851. }
  7852. }
  7853. else {
  7854. p++;
  7855. }
  7856. }
  7857.  
  7858. if(user) {
  7859. rl_completion_append_character= 0;
  7860. return rl_completion_matches(text, rl_username_completion_function);
  7861. }
  7862. else if(env) {
  7863. rl_completion_append_character= ' ';
  7864. return rl_completion_matches(text, readline_env_completion);
  7865. }
  7866. else if(program) {
  7867. rl_completion_append_character= ' ';
  7868. return rl_completion_matches(text, readline_program_completion);
  7869. }
  7870.  
  7871.  
  7872.  
  7873.  
  7874.  
  7875.  
  7876.  
  7877. return ((void *)0);
  7878. }
  7879.  
  7880.  
  7881.  
  7882.  
  7883.  
  7884.  
  7885.  
  7886. static _Bool shell_cmd;
  7887. static _Bool quote_glob;
  7888. static _Bool inhibit_tilde;
  7889. # 1174 "readline.c"
  7890. # 1 "./config.h" 1
  7891. # 1175 "readline.c" 2
  7892. # 1186 "readline.c"
  7893. char *
  7894.  
  7895.  
  7896.  
  7897. mbschr (s, c)
  7898. const char *s;
  7899. int c;
  7900.  
  7901. {
  7902. # 1227 "readline.c"
  7903. return ((__extension__ (__builtin_constant_p (c) && !__builtin_constant_p (s) && (c) == '\0' ? (char *) __rawmemchr (s, c) : __builtin_strchr (s, c))));
  7904. }
  7905.  
  7906. int
  7907. file_exists (fn)
  7908. char *fn;
  7909. {
  7910. struct stat sb;
  7911.  
  7912. return (stat (fn, &sb) == 0);
  7913. }
  7914.  
  7915. static char *
  7916. quote_word_break_chars (text)
  7917. char *text;
  7918. {
  7919. char *ret, *r, *s;
  7920. int l;
  7921.  
  7922. l = strlen (text);
  7923. ret = (char *)malloc ((2 * l) + 1);
  7924. for (s = text, r = ret; *s; s++)
  7925. {
  7926.  
  7927. if (*s == '\\')
  7928. {
  7929. *r++ = '\\';
  7930. *r++ = *++s;
  7931. if (*s == '\0')
  7932. break;
  7933. continue;
  7934. }
  7935.  
  7936.  
  7937. if (mbschr (rl_completer_word_break_characters, *s)) *r++ = '\\';
  7938.  
  7939.  
  7940. *r++ = *s;
  7941.  
  7942. }
  7943. *r = '\0';
  7944. return ret;
  7945. }
  7946.  
  7947.  
  7948.  
  7949.  
  7950.  
  7951. static int completion_quoting_style = 3;
  7952.  
  7953. char *
  7954. sh_single_quote (string)
  7955. char *string;
  7956. {
  7957. register int c;
  7958. char *result, *r, *s;
  7959.  
  7960. result = (char *)malloc (3 + (4 * strlen (string)));
  7961. r = result;
  7962. *r++ = '\'';
  7963.  
  7964. for (s = string; s && (c = *s); s++)
  7965. {
  7966. *r++ = c;
  7967.  
  7968. if (c == '\'')
  7969. {
  7970. *r++ = '\\';
  7971. *r++ = '\'';
  7972. *r++ = '\'';
  7973. }
  7974. }
  7975.  
  7976. *r++ = '\'';
  7977. *r = '\0';
  7978.  
  7979. return (result);
  7980. }
  7981. # 1339 "readline.c"
  7982. char *
  7983. sh_mkdoublequoted (s, slen, flags)
  7984. const char *s;
  7985. int slen, flags;
  7986. {
  7987. char *r, *ret;
  7988. int rlen;
  7989.  
  7990. rlen = (flags == 0) ? slen + 3 : (2 * slen) + 1;
  7991. ret = r = (char *)malloc (rlen);
  7992.  
  7993. *r++ = '"';
  7994. while (*s)
  7995. {
  7996. if (flags && *s == '"')
  7997. *r++ = '\\';
  7998. *r++ = *s++;
  7999. }
  8000. *r++ = '"';
  8001. *r = '\0';
  8002.  
  8003. return ret;
  8004. }
  8005. # 1403 "readline.c"
  8006. char *
  8007. sh_backslash_quote (string)
  8008. char *string;
  8009. {
  8010. int c;
  8011. char *result, *r, *s;
  8012.  
  8013. result = (char *)malloc (2 * strlen (string) + 1);
  8014.  
  8015. for (r = result, s = string; s && (c = *s); s++)
  8016. {
  8017. switch (c)
  8018. {
  8019. case ' ': case '\t': case '\n':
  8020. case '\'': case '"': case '\\':
  8021. case '|': case '&': case ';':
  8022. case '(': case ')': case '<': case '>':
  8023. case '!': case '{': case '}':
  8024. case '*': case '[': case '?': case ']':
  8025. case '^':
  8026. case '$': case '`':
  8027. case ',':
  8028. *r++ = '\\';
  8029. *r++ = c;
  8030. break;
  8031. # 1441 "readline.c"
  8032. case '#':
  8033. if (s == string)
  8034. *r++ = '\\';
  8035.  
  8036. default:
  8037. *r++ = c;
  8038. break;
  8039. }
  8040. }
  8041.  
  8042. *r = '\0';
  8043. return (result);
  8044. }
  8045.  
  8046.  
  8047.  
  8048.  
  8049.  
  8050. static char *
  8051. bash_dequote_filename (const char *text, int quote_char)
  8052. {
  8053. char *ret;
  8054. const char *p;
  8055. char *r;
  8056. int l, quoted;
  8057.  
  8058. l = strlen (text);
  8059. ret = (char*)malloc (l + 1);
  8060. for (quoted = quote_char, p = text, r = ret; p && *p; p++)
  8061. {
  8062.  
  8063. if (*p == '\\')
  8064. {
  8065. *r++ = *++p;
  8066. if (*p == '\0')
  8067. break;
  8068. continue;
  8069. }
  8070.  
  8071. if (quoted && *p == quoted)
  8072. {
  8073. quoted = 0;
  8074. continue;
  8075. }
  8076.  
  8077. if (quoted == 0 && (*p == '\'' || *p == '"'))
  8078. {
  8079. quoted = *p;
  8080. continue;
  8081. }
  8082. *r++ = *p;
  8083. }
  8084. *r = '\0';
  8085. return ret;
  8086. }
  8087.  
  8088.  
  8089.  
  8090.  
  8091. static int skip_quoted(const char *s, int i, char q)
  8092. {
  8093. while(s[i] && s[i]!=q)
  8094. {
  8095. if(s[i]=='\\' && s[i+1])
  8096. i++;
  8097. i++;
  8098. }
  8099. if(s[i])
  8100. i++;
  8101. return i;
  8102. }
  8103.  
  8104.  
  8105. int lftp_char_is_quoted(const char *string,int eindex)
  8106. {
  8107. int i, pass_next;
  8108.  
  8109. for (i = pass_next = 0; i <= eindex; i++)
  8110. {
  8111. if (pass_next)
  8112. {
  8113. pass_next = 0;
  8114. if (i >= eindex)
  8115. return 1;
  8116. continue;
  8117. }
  8118. else if (string[i] == '"' || string[i] == '\'')
  8119. {
  8120. char quote = string[i];
  8121. i = skip_quoted (string, ++i, quote);
  8122. if (i > eindex)
  8123. return 1;
  8124. i--;
  8125. }
  8126. else if (string[i] == '\\')
  8127. {
  8128. pass_next = 1;
  8129. continue;
  8130. }
  8131. }
  8132. return (0);
  8133. }
  8134. # 1554 "readline.c"
  8135. static char *
  8136. double_quote (char *string)
  8137. {
  8138. register int c;
  8139. char *result, *r, *s;
  8140.  
  8141. result = (char *)malloc (3 + (2 * strlen (string)));
  8142. r = result;
  8143. *r++ = '"';
  8144.  
  8145. for (s = string; s && (c = *s); s++)
  8146. {
  8147. switch (c)
  8148. {
  8149. case '$':
  8150. case '`':
  8151. if(!shell_cmd)
  8152. goto def;
  8153. case '"':
  8154. case '\\':
  8155. *r++ = '\\';
  8156. default: def:
  8157. *r++ = c;
  8158. break;
  8159. }
  8160. }
  8161.  
  8162. *r++ = '"';
  8163. *r = '\0';
  8164.  
  8165. return (result);
  8166. }
  8167.  
  8168.  
  8169.  
  8170.  
  8171. static char *
  8172. single_quote (char *string)
  8173. {
  8174. register int c;
  8175. char *result, *r, *s;
  8176.  
  8177. result = (char *)malloc (3 + (4 * strlen (string)));
  8178. r = result;
  8179. *r++ = '\'';
  8180.  
  8181. for (s = string; s && (c = *s); s++)
  8182. {
  8183. *r++ = c;
  8184.  
  8185. if (c == '\'')
  8186. {
  8187. *r++ = '\\';
  8188. *r++ = '\'';
  8189. *r++ = '\'';
  8190. }
  8191. }
  8192.  
  8193. *r++ = '\'';
  8194. *r = '\0';
  8195.  
  8196. return (result);
  8197. }
  8198.  
  8199.  
  8200.  
  8201. static char *
  8202. backslash_quote (char *string)
  8203. {
  8204. int c;
  8205. char *result, *r, *s;
  8206.  
  8207. result = (char*)malloc (2 * strlen (string) + 1);
  8208.  
  8209. for (r = result, s = string; s && (c = *s); s++)
  8210. {
  8211. switch (c)
  8212. {
  8213. case '(': case ')':
  8214. case '{': case '}':
  8215. case '^':
  8216. case '$': case '`':
  8217. if(!shell_cmd)
  8218. goto def;
  8219. case '*': case '[': case '?': case ']':
  8220. if(!shell_cmd && !quote_glob)
  8221. goto def;
  8222. case ' ': case '\t': case '\n':
  8223. case '"': case '\'': case '\\':
  8224. case '|': case '&': case ';':
  8225. case '<': case '>': case '!':
  8226. *r++ = '\\';
  8227. *r++ = c;
  8228. break;
  8229.  
  8230.  
  8231.  
  8232.  
  8233.  
  8234.  
  8235. case '#':
  8236. if(!shell_cmd)
  8237. goto def;
  8238. if (s == string)
  8239. *r++ = '\\';
  8240.  
  8241. default: def:
  8242. *r++ = c;
  8243. break;
  8244. }
  8245. }
  8246.  
  8247. *r = '\0';
  8248. return (result);
  8249. }
  8250.  
  8251.  
  8252.  
  8253.  
  8254.  
  8255.  
  8256. static char *
  8257. bash_quote_filename (char *s, int rtype, char *qcp)
  8258. {
  8259. char *rtext, *mtext, *ret;
  8260. int rlen, cs;
  8261.  
  8262. rtext = (char *)((void *)0);
  8263. # 1690 "readline.c"
  8264. mtext = s;
  8265.  
  8266.  
  8267.  
  8268.  
  8269.  
  8270. cs = completion_quoting_style;
  8271.  
  8272.  
  8273. if (*qcp == '"')
  8274. cs = 1;
  8275. else if (*qcp == '\'')
  8276. cs = 2;
  8277. # 1716 "readline.c"
  8278. switch (cs)
  8279. {
  8280. case 1:
  8281. rtext = double_quote (mtext);
  8282. break;
  8283. case 2:
  8284. rtext = single_quote (mtext);
  8285. break;
  8286. case 3:
  8287. rtext = backslash_quote (mtext);
  8288. break;
  8289. }
  8290.  
  8291. if (mtext != s)
  8292. free (mtext);
  8293.  
  8294.  
  8295.  
  8296. if (rtext && cs == 3)
  8297. {
  8298. mtext = quote_word_break_chars (rtext);
  8299. free (rtext);
  8300. rtext = mtext;
  8301. }
  8302.  
  8303.  
  8304.  
  8305. rlen = strlen (rtext);
  8306. ret = (char*)malloc (rlen + 1);
  8307. strcpy (ret, rtext);
  8308.  
  8309.  
  8310. if (rtype == 2 && cs != 3)
  8311. ret[rlen - 1] = '\0';
  8312. free (rtext);
  8313. return ret;
  8314. }
  8315. # 1765 "readline.c"
  8316. void readline_init()
  8317. {
  8318. rl_attempted_completion_function = readline_on_complete;
  8319. rl_completer_quote_characters = "\"'";
  8320. rl_completer_word_break_characters = " \t\n\"'|{}!&;()<>=%/";
  8321. rl_filename_quote_characters = " \\\t\n\"|$*?[]!<>{}&;#()'%";
  8322. rl_completion_append_character= ' ';
  8323. rl_char_is_quoted_p = (rl_linebuf_func_t*)lftp_char_is_quoted;
  8324. rl_filename_quoting_function = bash_quote_filename;
  8325. rl_filename_dequoting_function = (rl_dequote_func_t*)bash_dequote_filename;
  8326.  
  8327.  
  8328.  
  8329.  
  8330.  
  8331. gCompList = vector_new(100);
  8332. gEditingDir = string_new("");
  8333. }
  8334.  
  8335. void readline_final()
  8336. {
  8337. string_delete(gEditingDir);
  8338. int i;
  8339. for(i=0; i<((vector_obj*)gCompList)->mCount; i++) {
  8340. string_delete(((vector_obj*)gCompList)->mTable[i]);
  8341. }
  8342. vector_delete(gCompList);
  8343. if(files) {
  8344. int i;
  8345. for(i=0; i<((vector_obj*)files)->mCount; i++) {
  8346. string_delete(((vector_obj*)files)->mTable[i]);
  8347. }
  8348. vector_delete(files);
  8349. }
  8350.  
  8351.  
  8352.  
  8353. }
Advertisement
Add Comment
Please, Sign In to add comment