Lines Matching refs:charset

23 #include "charset.h"
53 The header file `charset.h' declares various functions that
95 struct charset {
98 struct charset *next;
109 /* Pointers to charset-specific functions that depend only on a
139 /* TARGET_CHAR is in the `from' charset.
140 Returns a string in the `to' charset. */
145 /* HOST_CHAR is in the `from' charset.
146 TARGET_CHAR points to a char in the `to' charset. */
190 static struct charset *all_charsets;
194 register_charset (struct charset *cs)
196 struct charset **ptr;
198 /* Put the new charset on the end, so that the list ends up in the
208 static struct charset *
211 struct charset *cs;
251 /* Allocate, initialize and return a straightforward charset.
254 having to tweak all the old charset descriptions. */
255 static struct charset *
265 struct charset *cs = xmalloc (sizeof (*cs));
323 static struct charset *
356 static struct charset *
374 struct charset *from, *to;
385 struct charset *from,
386 struct charset *to)
494 struct charset *from,
495 struct charset *to)
900 static struct charset *current_host_charset, *current_target_charset;
903 charset.h. */
934 static struct charset *
937 struct charset *cs = lookup_charset (name);
946 check_valid_host_charset (struct charset *cs)
954 set_host_and_target_charsets (struct charset *host, struct charset *target)
1040 /* Do the real work of setting the host charset. */
1042 set_host_charset (const char *charset)
1044 struct charset *cs = lookup_charset_or_error (charset);
1049 /* Do the real work of setting the target charset. */
1051 set_target_charset (const char *charset)
1053 struct charset *cs = lookup_charset_or_error (charset);
1060 /* 'Set charset', 'set host-charset', 'set target-charset', 'show
1061 charset' sfunc's. */
1063 /* This is the sfunc for the 'set charset' command. */
1065 set_charset_sfunc (char *charset, int from_tty, struct cmd_list_element *c)
1067 struct charset *cs = lookup_charset_or_error (host_charset_name);
1069 /* CAREFUL: set the target charset here as well. */
1074 /* 'set host-charset' command sfunc. We need a wrapper here because
1077 set_host_charset_sfunc (char *charset, int from_tty,
1083 /* Wrapper for the 'set target-charset' command. */
1085 set_target_charset_sfunc (char *charset, int from_tty,
1091 /* sfunc for the 'show charset' command. */
1183 /* The charset.c module initialization function. */
1239 new_cmd = add_set_enum_cmd ("charset",
1248 "To see a list of the character sets GDB supports, type `set charset <TAB>'.",
1252 the 'set charset' command sets two variables. */
1255 add_cmd ("charset", class_support, show_charset,
1261 "To see a list of the character sets GDB supports, type `set charset <TAB>'.",
1265 new_cmd = add_set_enum_cmd ("host-charset",
1273 "To see a list of the character sets GDB supports, type `set host-charset <TAB>'.",
1282 new_cmd = add_set_enum_cmd ("target-charset",
1290 "To see a list of the character sets GDB supports, type `set target-charset'<TAB>",