]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - binutils/arparse.y
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / binutils / arparse.y
index 113c5483b914aa780ef2649c4b2b14ed64e1f2f9..5fee56262a1d6cb7d7f55c565944a2618d9065ab 100644 (file)
@@ -1,8 +1,7 @@
 %{
-/* arparse.y - Stange script language parser */
+/* arparse.y - Strange script language parser */
 
-/* Copyright 1992, 1993, 1995, 1997, 1999, 2002, 2003, 2005, 2007
-   Free Software Foundation, Inc.
+/* Copyright (C) 1992-2021 Free Software Foundation, Inc.
 
    This file is part of GNU Binutils.
 
@@ -60,7 +59,7 @@ struct list *list ;
 %token SAVE
 %token OPEN
 
-%type <list> modulelist 
+%type <list> modulelist
 %type <list> modulename
 %type <name> optional_filename
 %%
@@ -79,8 +78,8 @@ command_line:
        ;
 
 command:
-               open_command    
-       |       create_command  
+               open_command
+       |       create_command
        |       verbose_command
        |       directory_command
        |       addlib_command
@@ -103,11 +102,11 @@ extract_command:
                { ar_extract($2); }
        ;
 
-replace_command:       
+replace_command:
                REPLACE modulename
                { ar_replace($2); }
        ;
-       
+
 clear_command:
                CLEAR
                { ar_clear(); }
@@ -122,12 +121,12 @@ addmod_command:
                { ar_addmod($2); }
        ;
 
-list_command:  
+list_command:
                LIST
                { ar_list(); }
        ;
 
-save_command:  
+save_command:
                SAVE
                { ar_save(); }
        ;
@@ -135,12 +134,12 @@ save_command:
 
 
 open_command:
-               OPEN FILENAME 
+               OPEN FILENAME
                { ar_open($2,0); }
        ;
 
 create_command:
-               CREATE FILENAME 
+               CREATE FILENAME
                { ar_open($2,1); }
        ;
 
@@ -163,7 +162,7 @@ optional_filename:
        ;
 
 modulelist:
-       '(' modulename ')' 
+       '(' modulename ')'
                { $$ = $2; }
        |
                { $$ = 0; }
@@ -172,22 +171,22 @@ modulelist:
 modulename:
                modulename optcomma FILENAME
                {       struct list *n  = (struct list *) malloc(sizeof(struct list));
-                       n->next = $1; 
+                       n->next = $1;
                        n->name = $3;
                        $$ = n;
                 }
        |       { $$ = 0; }
        ;
-       
+
 
 optcomma:
                ','
        |
        ;
-       
-               
+
+
 verbose_command:
-       VERBOSE 
+       VERBOSE
                { verbose = !verbose; }
        ;