27 #define READLINE_LIBRARY 29 #if defined (HAVE_CONFIG_H) 36 #if defined (HAVE_STRING_H) 43 #if defined (HAVE_STDLIB_H) 58 #if defined (COLOR_SUPPORT) 60 static bool get_funky_string (
char **dest,
const char **src,
bool equals_end,
size_t *output_count);
108 ST_GND, ST_BACKSLASH, ST_OCTAL, ST_HEX, ST_CARET,
ST_END, ST_ERROR
132 state = ST_BACKSLASH;
209 if (state == ST_BACKSLASH)
219 if (*p < '0' || *p >
'7')
226 num = (num << 3) + (*(p++) -
'0');
242 num = (num << 4) + (*(p++) -
'0');
250 num = (num << 4) + (*(p++) -
'a') + 10;
258 num = (num << 4) + (*(p++) -
'A') + 10;
270 if (*p >=
'@' && *p <=
'~')
272 *(q++) = *(p++) & 037;
294 *output_count = count;
296 return state != ST_ERROR;
302 #if defined (COLOR_SUPPORT) 311 if (p == 0 || *p ==
'\0')
384 _rl_color_indicator[ind_no].
string = buf;
386 &_rl_color_indicator[ind_no].
len)
393 _rl_errmsg (
"LS_COLORS: unrecognized prefix: %s", label);
395 while (p && *p && *p !=
':')
399 else if (p && *p == 0)
426 _rl_errmsg (
"unparsable value for LS_COLORS environment variable");
char * sh_get_env_value()
static const char *const indicator_name[]
static _rl_bool_t get_funky_string(char **dest, const char **src, _rl_bool_t equals_end, size_t *output_count)
COLOR_EXT_TYPE * _rl_color_ext_list
char * savestring(const char *s)
struct bin_str _rl_color_indicator[]
void _rl_parse_colors(void)
struct _color_ext_type * next