* language.h (language_defn): new field, la_word_break_characters.

* language.c (unknown_language_defn): Set new field to
        default_word_break_characters.
        (auto_language_defn): Likewise.
        (local_language_defn): Likewise.
        * ada-lang.c (ada_language_defn): Likewise.
        * c-lang.c (c_language_defn): Likewise.
        (cplus_language_defn): Likewise.
        (asm_language_defn): Likewise.
        (minimal_language_defn): Likewise.
        * f-lang.c (f_language_defn): Likewise.
        * jv-lang.c (java_language_defn): Likewise.
        * m2-lang.c (m2_language_defn): Likewise.
        * objc-lang.c (objc_language_defn): Likewise.
        * p-lang.c (pascal_language_defn): Likewise.
        * scm-lang.c (scm_language_defn): Likewise.
This commit is contained in:
Joel Brobecker 2003-10-06 22:38:03 +00:00
parent 944fcfab56
commit 6084f43ac2
11 changed files with 36 additions and 0 deletions

View File

@ -1,3 +1,22 @@
2003-10-06 J. Brobecker <brobecker@gnat.com>
* language.h (language_defn): new field, la_word_break_characters.
* language.c (unknown_language_defn): Set new field to
default_word_break_characters.
(auto_language_defn): Likewise.
(local_language_defn): Likewise.
* ada-lang.c (ada_language_defn): Likewise.
* c-lang.c (c_language_defn): Likewise.
(cplus_language_defn): Likewise.
(asm_language_defn): Likewise.
(minimal_language_defn): Likewise.
* f-lang.c (f_language_defn): Likewise.
* jv-lang.c (java_language_defn): Likewise.
* m2-lang.c (m2_language_defn): Likewise.
* objc-lang.c (objc_language_defn): Likewise.
* p-lang.c (pascal_language_defn): Likewise.
* scm-lang.c (scm_language_defn): Likewise.
2003-10-06 Andrew Cagney <cagney@redhat.com>
* ppc-sysv-tdep.c: Re-indent.

View File

@ -8035,6 +8035,7 @@ const struct language_defn ada_language_defn = {
1, /* c-style arrays (FIXME?) */
0, /* String lower bound (FIXME?) */
&builtin_type_ada_char,
default_word_break_characters,
LANG_MAGIC
};

View File

@ -565,6 +565,7 @@ const struct language_defn c_language_defn =
1, /* c-style arrays */
0, /* String lower bound */
&builtin_type_char, /* Type of string elements */
default_word_break_characters,
LANG_MAGIC
};
@ -621,6 +622,7 @@ const struct language_defn cplus_language_defn =
1, /* c-style arrays */
0, /* String lower bound */
&builtin_type_char, /* Type of string elements */
default_word_break_characters,
LANG_MAGIC
};
@ -654,6 +656,7 @@ const struct language_defn asm_language_defn =
1, /* c-style arrays */
0, /* String lower bound */
&builtin_type_char, /* Type of string elements */
default_word_break_characters,
LANG_MAGIC
};
@ -692,6 +695,7 @@ const struct language_defn minimal_language_defn =
1, /* c-style arrays */
0, /* String lower bound */
&builtin_type_char, /* Type of string elements */
default_word_break_characters,
LANG_MAGIC
};

View File

@ -484,6 +484,7 @@ const struct language_defn f_language_defn =
0, /* arrays are first-class (not c-style) */
1, /* String lower bound */
&builtin_type_f_character, /* Type of string elements */
default_word_break_characters,
LANG_MAGIC
};

View File

@ -1069,6 +1069,7 @@ const struct language_defn java_language_defn =
0, /* not c-style arrays */
0, /* String lower bound */
&builtin_type_char, /* Type of string elements */
default_word_break_characters,
LANG_MAGIC
};

View File

@ -1298,6 +1298,7 @@ const struct language_defn unknown_language_defn =
1, /* c-style arrays */
0, /* String lower bound */
&builtin_type_char, /* Type of string elements */
default_word_break_characters,
LANG_MAGIC
};
@ -1332,6 +1333,7 @@ const struct language_defn auto_language_defn =
1, /* c-style arrays */
0, /* String lower bound */
&builtin_type_char, /* Type of string elements */
default_word_break_characters,
LANG_MAGIC
};
@ -1365,6 +1367,7 @@ const struct language_defn local_language_defn =
1, /* c-style arrays */
0, /* String lower bound */
&builtin_type_char, /* Type of string elements */
default_word_break_characters,
LANG_MAGIC
};

View File

@ -267,6 +267,9 @@ struct language_defn
/* Type of elements of strings. */
struct type **string_char_type;
/* The list of characters forming word boundaries. */
char *(*la_word_break_characters) (void);
/* Add fields above this point, so the magic number is always last. */
/* Magic number for compat checking */

View File

@ -437,6 +437,7 @@ const struct language_defn m2_language_defn =
0, /* arrays are first-class (not c-style) */
0, /* String lower bound */
&builtin_type_m2_char, /* Type of string elements */
default_word_break_characters,
LANG_MAGIC
};

View File

@ -681,6 +681,7 @@ const struct language_defn objc_language_defn = {
1, /* C-style arrays */
0, /* String lower bound */
&builtin_type_char, /* Type of string elements */
default_word_break_characters,
LANG_MAGIC
};

View File

@ -473,6 +473,7 @@ const struct language_defn pascal_language_defn =
1, /* c-style arrays */
0, /* String lower bound */
&builtin_type_char, /* Type of string elements */
default_word_break_characters,
LANG_MAGIC
};

View File

@ -272,6 +272,7 @@ const struct language_defn scm_language_defn =
1, /* c-style arrays */
0, /* String lower bound */
&builtin_type_char, /* Type of string elements */
default_word_break_characters,
LANG_MAGIC
};