summaryrefslogtreecommitdiff
path: root/etc/Svc_Conf_l.cpp.diff
blob: 61559490d3add1604b512f431b2adb8c9352f9a8 (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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
--- Svc_Conf_l.cpp.orig	Thu Oct 30 21:08:12 1997
+++ Svc_Conf_l.cpp	Thu Oct 30 21:09:58 1997
@@ -1,3 +1,6 @@
+// $Id$
+
+#define ACE_BUILD_DLL
 #include "ace/config.h"
 #if defined (ACE_HAS_TERM_IOCTLS) /* to avoid conflict with sys/termios.h ECHO */
 #undef ACE_HAS_TERM_IOCTLS
@@ -8,7 +11,7 @@
 /* A lexical scanner generated by flex */
 
 /* Scanner skeleton version:
- * $Header: /home/daffy/u0/vern/flex/flex-2.4.7/RCS/flex.skl,v 1.2 94/08/03 11:13:24 vern Exp $
+ * $Header$
  */
 
 #define FLEX_SCANNER
@@ -141,7 +144,9 @@
 		} \
 	while ( 0 )
 
+#if 0
 #define unput(c) ace_yyunput( c, ace_yytext_ptr )
+#endif /* 0 */
 
 
 struct ace_yy_buffer_state
@@ -216,7 +221,9 @@
  */
 static int ace_yy_did_buffer_switch_on_eof;
 
+#if 0
 static void ace_yyunput YY_PROTO(( int c, char *buf_ptr ));
+#endif /* 0 */
 void ace_yyrestart YY_PROTO(( FILE *input_file ));
 void ace_yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
 void ace_yy_load_buffer_state YY_PROTO(( void ));
@@ -224,12 +231,14 @@
 void ace_yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
 void ace_yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
 
+#if 0
 static int ace_yy_start_stack_ptr = 0;
 static int ace_yy_start_stack_depth = 0;
 static int *ace_yy_start_stack = 0;
 static void ace_yy_push_state YY_PROTO(( int new_state ));
 static void ace_yy_pop_state YY_PROTO(( void ));
 static int ace_yy_top_state YY_PROTO(( void ));
+#endif /* 0 */
 
 static void *ace_yy_flex_alloc YY_PROTO(( unsigned int ));
 static void *ace_yy_flex_realloc YY_PROTO(( void *, unsigned int ));
@@ -466,7 +475,7 @@
 #include "ace/Svc_Conf.h"
 #include "ace/Svc_Conf_Tokens.h"
 
-// Keeps track of the current line for debugging output. 
+// Keeps track of the current line for debugging output.
 int ace_yylineno = 1;
 
 // Keeps track of the number of errors encountered so far.
@@ -661,112 +670,112 @@
 YY_USER_ACTION
 # line 35 "Svc_Conf.l"
 { return token (ACE_DYNAMIC); }
-	YY_BREAK
+	/* YY_BREAK */
 case 3:
 YY_USER_ACTION
 # line 36 "Svc_Conf.l"
 { return token (ACE_STATIC); }
-	YY_BREAK
+	/* YY_BREAK */
 case 4:
 YY_USER_ACTION
 # line 37 "Svc_Conf.l"
 { return token (ACE_SUSPEND); }
-	YY_BREAK
+	/* YY_BREAK */
 case 5:
 YY_USER_ACTION
 # line 38 "Svc_Conf.l"
 { return token (ACE_RESUME); }
-	YY_BREAK
+	/* YY_BREAK */
 case 6:
 YY_USER_ACTION
 # line 39 "Svc_Conf.l"
 { return token (ACE_REMOVE); }
-	YY_BREAK
+	/* YY_BREAK */
 case 7:
 YY_USER_ACTION
 # line 40 "Svc_Conf.l"
 { return token (ACE_USTREAM); }
-	YY_BREAK
+	/* YY_BREAK */
 case 8:
 YY_USER_ACTION
 # line 41 "Svc_Conf.l"
 { return token (ACE_MODULE_T); }
-	YY_BREAK
+	/* YY_BREAK */
 case 9:
 YY_USER_ACTION
 # line 42 "Svc_Conf.l"
 { return token (ACE_SVC_OBJ_T); }
-	YY_BREAK
+	/* YY_BREAK */
 case 10:
 YY_USER_ACTION
 # line 43 "Svc_Conf.l"
 { return token (ACE_STREAM_T); }
-	YY_BREAK
+	/* YY_BREAK */
 case 11:
 YY_USER_ACTION
 # line 44 "Svc_Conf.l"
 { return token (ACE_ACTIVE); }
-	YY_BREAK
+	/* YY_BREAK */
 case 12:
 YY_USER_ACTION
 # line 45 "Svc_Conf.l"
 { return token (ACE_INACTIVE); }
-	YY_BREAK
+	/* YY_BREAK */
 case 13:
 YY_USER_ACTION
 # line 46 "Svc_Conf.l"
 { return token (ACE_COLON); }
-	YY_BREAK
+	/* YY_BREAK */
 case 14:
 YY_USER_ACTION
 # line 47 "Svc_Conf.l"
 { return token (ACE_STAR); }
-	YY_BREAK
+	/* YY_BREAK */
 case 15:
 YY_USER_ACTION
 # line 48 "Svc_Conf.l"
 { return token (ACE_LPAREN); }
-	YY_BREAK
+	/* YY_BREAK */
 case 16:
 YY_USER_ACTION
 # line 49 "Svc_Conf.l"
 { return token (ACE_RPAREN); }
-	YY_BREAK
+	/* YY_BREAK */
 case 17:
 YY_USER_ACTION
 # line 50 "Svc_Conf.l"
 { return token (ACE_LBRACE); }
-	YY_BREAK
+	/* YY_BREAK */
 case 18:
 YY_USER_ACTION
 # line 51 "Svc_Conf.l"
 { return token (ACE_RBRACE); }
-	YY_BREAK
+	/* YY_BREAK */
 case 19:
 YY_USER_ACTION
 # line 52 "Svc_Conf.l"
 { // Eliminate the opening and closing double quotes
 		        *strrchr (ace_yytext, '"') = '\0';
 			ace_yyleng -= 1;
-                        ace_yylval.ident_ = ace_obstack->copy (ace_yytext + 1, ace_yyleng); 
+                        ace_yylval.ident_ = ace_obstack->copy (ace_yytext + 1, ace_yyleng);
 			return token (ACE_STRING); }
-	YY_BREAK
+	/* YY_BREAK */
 case 20:
 YY_USER_ACTION
 # line 57 "Svc_Conf.l"
-{ 
-		        ace_yylval.ident_ = ace_obstack->copy (ace_yytext, ace_yyleng); 
-			return token (ACE_IDENT); 
+{
+		        ace_yylval.ident_ = ace_obstack->copy (ace_yytext, ace_yyleng);
+			return token (ACE_IDENT);
 		      }
-	YY_BREAK
+	/* YY_BREAK */
 case 21:
 YY_USER_ACTION
 # line 61 "Svc_Conf.l"
-{ 
-		        ace_yylval.ident_ = ace_obstack->copy (ace_yytext, ace_yyleng); 
-			return token (ACE_PATHNAME); 
+{
+		        ace_yylval.ident_ = ace_obstack->copy (ace_yytext, ace_yyleng);
+			return token (ACE_PATHNAME);
 		      }
-	YY_BREAK
+	/* YY_BREAK */
 case 22:
 YY_USER_ACTION
 # line 65 "Svc_Conf.l"
@@ -787,7 +796,7 @@
 case YY_STATE_EOF(NORMAL):
 # line 68 "Svc_Conf.l"
 { YY_NEW_FILE; ace_yyterminate(); }
-	YY_BREAK
+	/* YY_BREAK */
 case 25:
 YY_USER_ACTION
 # line 69 "Svc_Conf.l"
@@ -1120,6 +1129,7 @@
 	}
 
 
+#if 0
 #ifdef YY_USE_PROTOS
 static void ace_yyunput( int c, register char *ace_yy_bp )
 #else
@@ -1164,7 +1174,7 @@
 	 */
 	YY_DO_BEFORE_ACTION; /* set up ace_yytext again */
 	}
-
+#endif /* 0 */
 
 #ifdef __cplusplus
 static int ace_yyinput()
@@ -1372,6 +1382,7 @@
 	}
 
 
+#if 0
 #ifdef YY_USE_PROTOS
 static void ace_yy_push_state( int new_state )
 #else
@@ -1417,7 +1428,7 @@
 	{
 	return ace_yy_start_stack[ace_yy_start_stack_ptr - 1];
 	}
-
+#endif /* 0 */
 
 #ifdef YY_USE_PROTOS
 static void ace_yy_fatal_error( const char msg[] )
@@ -1504,6 +1515,6 @@
 {
   ::fflush (ace_yyin);
   ace_yytext[0] = '#';
-  ace_yyleng = 0;    
+  ace_yyleng = 0;
   return 1;
 }