summaryrefslogtreecommitdiffstats
path: root/security/keynote/files/patch-af
blob: 5a56488f747cffa0d4ea81cb22b173edb65e63cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
--- keynote-orig.y	Wed Jun 14 08:28:23 2000
+++ keynote.y	Wed May 28 14:47:32 2003
@@ -90,17 +90,17 @@
              | PRIVATEKEY { keynote_exceptionflag = keynote_donteval = 0; }
                         STRING { keynote_lex_remove($3);
 			         keynote_privkey = $3;
-			       }
+			       };
     
 keypredicate: /* Nothing */   { keynote_returnvalue = 0;
                                 return 0; 
                               }
        | notemptykeypredicate { keynote_returnvalue = $1;
 				return 0;
-                              }
+                              };
 
 notemptykeypredicate:  key     { $$ = $1; }
-       		     | keyexp  { $$ = $1; }
+       		     | keyexp  { $$ = $1; };
 
 keyexp: notemptykeypredicate AND { if (($1 == 0) && !keynote_justrecord)
                                      keynote_donteval = 1;
@@ -137,7 +137,7 @@
 			      $$ = get_kth($1);
 			    else
 			      $$ = 0;
-			  }  /* K-th */
+			  };  /* K-th */
 
 keylist: key
 	    { /* Don't do anything if we're just recording */ 
@@ -154,7 +154,7 @@
 		  keynote_kth_array[$1]++;
 
 	      keylistcount++;
-            }
+            };
 
 key: str        {
 		   if (keynote_donteval)
@@ -192,10 +192,10 @@
 				 break;
 			 }
 		   }
-                 }
+                 };
 
 localinit: /* Nothing */
-         | localconstants
+         | localconstants;
 
 localconstants: VARIABLE EQQ STRING 
 	  {
@@ -264,12 +264,12 @@
 
 	    if (i != RESULT_TRUE)
 	      return -1;
-	  } localconstants
+	  } localconstants ;
 
 program: prog { 
 	        keynote_returnvalue = $1;
 		return 0;
-	      }
+	      };
 
 prog:   /* Nada */ { $$ = 0; }
        | notemptyprog {
@@ -284,7 +284,7 @@
 			$$ = $1;
 		      else
 			$$ = $4;
-                    } 
+                    };
 
 notemptyprog: expr HINT afterhint
               {
@@ -299,7 +299,7 @@
 		  $$ = keynote_current_session->ks_values_num - 1;
 		else
 		  $$ = 0;
-	      }
+	      };
 
 afterhint: str {  if (keynote_exceptionflag || keynote_donteval)
 		    $$ = 0;
@@ -314,7 +314,7 @@
 		      free($1);
 		  }
                 }
-         | OPENBLOCK prog CLOSEBLOCK { $$ = $2; }
+         | OPENBLOCK prog CLOSEBLOCK { $$ = $2; };
 
 
 expr:     OPENPAREN expr CLOSEPAREN 	{ $$ = $2; }
@@ -333,19 +333,19 @@
 	| floatexp			{ $$ = $1; }
 	| stringexp 			{ $$ = $1; }
         | TRUE	  		        { $$ = 1; }
-        | FALSE	  		        { $$ = 0; }
+        | FALSE	  		        { $$ = 0; };
 
 numexp:	  numex LT numex { $$ = $1 < $3; }
 	| numex GT numex { $$ = $1 > $3; }
 	| numex EQ numex { $$ = $1 == $3; }
 	| numex LE numex { $$ = $1 <= $3; }
 	| numex GE numex { $$ = $1 >= $3; }
-	| numex NE numex { $$ = $1 != $3; }
+	| numex NE numex { $$ = $1 != $3; };
 
 floatexp: floatex LT floatex { $$ = $1 < $3; }
 	| floatex GT floatex { $$ = $1 > $3; }
 	| floatex LE floatex { $$ = $1 <= $3; }
-	| floatex GE floatex { $$ = $1 >= $3; }
+	| floatex GE floatex { $$ = $1 >= $3; };
 
 numex:	  numex PLUS numex  { $$ = $1 + $3; }
 	| numex MINUS numex { $$ = $1 - $3; }
@@ -383,7 +383,7 @@
 						$$ = (int) floor(atof($2));
 					      free($2);
 					  }
-					}
+					};
 
 floatex:  floatex PLUS floatex  	{ $$ = ($1 + $3); }
 	| floatex MINUS floatex 	{ $$ = ($1 - $3); }
@@ -417,7 +417,7 @@
 						$$ = atof($2);
 					      free($2);
 					  }
-	                                }
+	                                };
 
 stringexp: str EQ str {
                         if (keynote_exceptionflag || keynote_donteval)
@@ -578,7 +578,7 @@
 		      free($1);
 		  }
 	      }
-	    }
+	    };
 
 str: str DOTT str    {  if (keynote_exceptionflag || keynote_donteval)
 			  $$ = (char *) NULL;
@@ -604,7 +604,7 @@
 			      return -1;
 			}
 		      }
-	| strnotconcat { $$ = $1; }
+	| strnotconcat { $$ = $1; };
 
 strnotconcat: STRING 	                { $$ = $1; }
         | OPENPAREN str CLOSEPAREN 	{ $$ = $2; }
@@ -659,7 +659,7 @@
 				if (keynote_lex_add($$, LEXTYPE_CHAR) == -1)
 				  return -1;
 			    }
-			 }
+			 };
 %%
 
 /*
OpenPOWER on IntegriCloud