diff options
Diffstat (limited to 'scripts/kconfig/lex.zconf.c_shipped')
| -rw-r--r-- | scripts/kconfig/lex.zconf.c_shipped | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/scripts/kconfig/lex.zconf.c_shipped b/scripts/kconfig/lex.zconf.c_shipped index dc3e81807d13..fdc7113b08d1 100644 --- a/scripts/kconfig/lex.zconf.c_shipped +++ b/scripts/kconfig/lex.zconf.c_shipped | |||
| @@ -160,7 +160,15 @@ typedef unsigned int flex_uint32_t; | |||
| 160 | 160 | ||
| 161 | /* Size of default input buffer. */ | 161 | /* Size of default input buffer. */ |
| 162 | #ifndef YY_BUF_SIZE | 162 | #ifndef YY_BUF_SIZE |
| 163 | #ifdef __ia64__ | ||
| 164 | /* On IA-64, the buffer size is 16k, not 8k. | ||
| 165 | * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. | ||
| 166 | * Ditto for the __ia64__ case accordingly. | ||
| 167 | */ | ||
| 168 | #define YY_BUF_SIZE 32768 | ||
| 169 | #else | ||
| 163 | #define YY_BUF_SIZE 16384 | 170 | #define YY_BUF_SIZE 16384 |
| 171 | #endif /* __ia64__ */ | ||
| 164 | #endif | 172 | #endif |
| 165 | 173 | ||
| 166 | /* The state buf must be large enough to hold one state per character in the main buffer. | 174 | /* The state buf must be large enough to hold one state per character in the main buffer. |
| @@ -802,7 +810,7 @@ static int last_ts, first_ts; | |||
| 802 | static void zconf_endhelp(void); | 810 | static void zconf_endhelp(void); |
| 803 | static void zconf_endfile(void); | 811 | static void zconf_endfile(void); |
| 804 | 812 | ||
| 805 | void new_string(void) | 813 | static void new_string(void) |
| 806 | { | 814 | { |
| 807 | text = malloc(START_STRSIZE); | 815 | text = malloc(START_STRSIZE); |
| 808 | text_asize = START_STRSIZE; | 816 | text_asize = START_STRSIZE; |
| @@ -810,7 +818,7 @@ void new_string(void) | |||
| 810 | *text = 0; | 818 | *text = 0; |
| 811 | } | 819 | } |
| 812 | 820 | ||
| 813 | void append_string(const char *str, int size) | 821 | static void append_string(const char *str, int size) |
| 814 | { | 822 | { |
| 815 | int new_size = text_size + size + 1; | 823 | int new_size = text_size + size + 1; |
| 816 | if (new_size > text_asize) { | 824 | if (new_size > text_asize) { |
| @@ -824,7 +832,7 @@ void append_string(const char *str, int size) | |||
| 824 | text[text_size] = 0; | 832 | text[text_size] = 0; |
| 825 | } | 833 | } |
| 826 | 834 | ||
| 827 | void alloc_string(const char *str, int size) | 835 | static void alloc_string(const char *str, int size) |
| 828 | { | 836 | { |
| 829 | text = malloc(size + 1); | 837 | text = malloc(size + 1); |
| 830 | memcpy(text, str, size); | 838 | memcpy(text, str, size); |
| @@ -914,7 +922,12 @@ static int input (void ); | |||
| 914 | 922 | ||
| 915 | /* Amount of stuff to slurp up with each read. */ | 923 | /* Amount of stuff to slurp up with each read. */ |
| 916 | #ifndef YY_READ_BUF_SIZE | 924 | #ifndef YY_READ_BUF_SIZE |
| 925 | #ifdef __ia64__ | ||
| 926 | /* On IA-64, the buffer size is 16k, not 8k */ | ||
| 927 | #define YY_READ_BUF_SIZE 16384 | ||
| 928 | #else | ||
| 917 | #define YY_READ_BUF_SIZE 8192 | 929 | #define YY_READ_BUF_SIZE 8192 |
| 930 | #endif /* __ia64__ */ | ||
| 918 | #endif | 931 | #endif |
| 919 | 932 | ||
| 920 | /* Copy whatever the last rule matched to the standard output. */ | 933 | /* Copy whatever the last rule matched to the standard output. */ |
| @@ -922,7 +935,7 @@ static int input (void ); | |||
| 922 | /* This used to be an fputs(), but since the string might contain NUL's, | 935 | /* This used to be an fputs(), but since the string might contain NUL's, |
| 923 | * we now use fwrite(). | 936 | * we now use fwrite(). |
| 924 | */ | 937 | */ |
| 925 | #define ECHO fwrite( zconftext, zconfleng, 1, zconfout ) | 938 | #define ECHO do { if (fwrite( zconftext, zconfleng, 1, zconfout )) {} } while (0) |
| 926 | #endif | 939 | #endif |
| 927 | 940 | ||
| 928 | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, | 941 | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, |
| @@ -2060,8 +2073,8 @@ YY_BUFFER_STATE zconf_scan_string (yyconst char * yystr ) | |||
| 2060 | 2073 | ||
| 2061 | /** Setup the input buffer state to scan the given bytes. The next call to zconflex() will | 2074 | /** Setup the input buffer state to scan the given bytes. The next call to zconflex() will |
| 2062 | * scan from a @e copy of @a bytes. | 2075 | * scan from a @e copy of @a bytes. |
| 2063 | * @param bytes the byte buffer to scan | 2076 | * @param yybytes the byte buffer to scan |
| 2064 | * @param len the number of bytes in the buffer pointed to by @a bytes. | 2077 | * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. |
| 2065 | * | 2078 | * |
| 2066 | * @return the newly allocated buffer state object. | 2079 | * @return the newly allocated buffer state object. |
| 2067 | */ | 2080 | */ |
