M
[deliverable/binutils-gdb.git] / binutils / defparse.y
index 44b7a2aba0697637a1e8f53a128f7cf4ffed1347..1cb6360961533dc19df76a443324888d432ccc1d 100644 (file)
@@ -1,6 +1,6 @@
 %{ /* defparse.y - parser for .def files */
 
-/*   Copyright (C) 1995, 1997 Free Software Foundation, Inc.
+/*   Copyright (C) 1995, 1997, 1998 Free Software Foundation, Inc.
 
 This file is part of GNU Binutils.
 
@@ -130,6 +130,12 @@ opt_DATA:
        ;
 
 opt_name: ID           { $$ =$1; }
+       | ID '.' ID     
+         { 
+           char *name = xmalloc (strlen ($1) + 1 + strlen ($3) + 1);
+           sprintf (name, "%s.%s", $1, $3);
+           $$ = name;
+         }
        |               { $$=""; }
        ;
 
This page took 0.023313 seconds and 4 git commands to generate.