summaryrefslogtreecommitdiff
path: root/gcc/java/lex.h
diff options
context:
space:
mode:
authorapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-09 15:50:12 +0000
committerapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-09 15:50:12 +0000
commit1863706c76bee64a1c99bc8c6494701950446af7 (patch)
tree136a2facf7b183653374d398723981a6e03e7777 /gcc/java/lex.h
parentad15e58ea52453a4cd3d532ca3dab622d9f050d7 (diff)
downloadgcc-1863706c76bee64a1c99bc8c6494701950446af7.tar.gz
Wed Dec 9 15:37:05 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
* java-tree.def (NEW_ARRAY_INIT): New Java tree code. * lex.c (java_lex): Remember column position before advancing one token. Retain location information on OCB_TK. * lex.h (typedef struct java_lc): Added new field. * parse.h (GET_SKIP_TYPE): New macro. (QUAL_DECL_TYPE): Redefined using GET_SKIP_TYPE. * parse.y (build_new_array_init, patch_new_array_init, patch_array_constructor, maybe_build_array_element_wfl, array_constructor_check_entry): New function prototypes. (switch_block:): Tagged <node>. (OCB_TK): Tagged <operator>. (array_initializer:): Installed actions. (variable_initializer): Build location information on element if necessary. (switch_statement:): Fixed indentation typo. (switch_block:): Redefined default action. (java_complete_tree): Handle NEW_ARRAY_INIT in MODIFY_EXPR:. (patch_assignment): Removed duplicate code. (maybe_build_array_element_wfl, build_new_array_init, patch_new_array_init, patch_array_constructor, array_constructor_check_entry): New functions. Parse and walk array initializer nodes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24224 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/lex.h')
-rw-r--r--gcc/java/lex.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/java/lex.h b/gcc/java/lex.h
index 621cfa63e12..609251c8d39 100644
--- a/gcc/java/lex.h
+++ b/gcc/java/lex.h
@@ -92,6 +92,7 @@ struct java_error {
typedef struct _java_lc {
int line;
+ int prev_col;
int col;
} java_lc;