* ch-exp.c: Rename FIELD_NAME to DOT_FIELD_NAME (to avoid conflict).
authorPer Bothner <per@bothner.com>
Tue, 21 Oct 1997 21:15:52 +0000 (21:15 +0000)
committerPer Bothner <per@bothner.com>
Tue, 21 Oct 1997 21:15:52 +0000 (21:15 +0000)
gdb/ChangeLog
gdb/ch-exp.c

index 9c0c114132b475df8ced44e931cd8b41f449f45e..81070fa61d67130cfbe8322e3ed64c962e23922d 100644 (file)
@@ -1,3 +1,7 @@
+Tue Oct 21 14:15:26 1997  Per Bothner  <bothner@cygnus.com>
+
+       * ch-exp.c:  Rename FIELD_NAME to DOT_FIELD_NAME (to avoid conflict).
+
 Fri Oct 17 13:22:02 1997  Stan Shebs  <shebs@andros.cygnus.com>
 
        * infcmd.c: Improve grammar of "set args" help.
index cc7d7f75148eaacc521d957412269b29921db97d..45436a3bee8f2316eea816f2d64ab53cd1cdf430 100644 (file)
@@ -91,7 +91,7 @@ enum ch_terminal {
   CHARACTER_STRING_LITERAL,
   BIT_STRING_LITERAL,
   TYPENAME,
-  FIELD_NAME,
+  DOT_FIELD_NAME, /* '.' followed by <field name> */
   CASE,
   OF,
   ESAC,
@@ -537,7 +537,7 @@ parse_named_record_element ()
 
   label = PEEK_LVAL ().sval;
   sprintf (buf, "expected a field name here `%s'", lexptr);
-  expect (FIELD_NAME, buf);
+  expect (DOT_FIELD_NAME, buf);
   if (check_token (','))
     parse_named_record_element ();
   else if (check_token (':'))
@@ -555,7 +555,7 @@ static void
 parse_tuple_element (type)
      struct type *type;
 {
-  if (PEEK_TOKEN () == FIELD_NAME)
+  if (PEEK_TOKEN () == DOT_FIELD_NAME)
     {
       /* Parse a labelled structure tuple. */
       parse_named_record_element ();
@@ -845,7 +845,7 @@ parse_primval ()
     {
       switch (PEEK_TOKEN ())
        {
-       case FIELD_NAME:
+       case DOT_FIELD_NAME:
          write_exp_elt_opcode (STRUCTOP_STRUCT);
          write_exp_string (PEEK_LVAL ().sval);
          write_exp_elt_opcode (STRUCTOP_STRUCT);
@@ -2137,7 +2137,7 @@ ch_lex ()
          inputname = match_simple_name_string ();
          if (!inputname)
            return '.';
-         return FIELD_NAME;
+         return DOT_FIELD_NAME;
       }
 
     return (ILLEGAL_TOKEN);
This page took 0.027518 seconds and 4 git commands to generate.