summaryrefslogtreecommitdiff
path: root/ace/Svc_Conf.l
diff options
context:
space:
mode:
authorgonzo <gonzo@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-07-18 16:42:02 +0000
committergonzo <gonzo@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-07-18 16:42:02 +0000
commitb47242f7c9e0ade2689ecec2b7846026d056da80 (patch)
treef8847a93caa43c11fe0f8be7e87b395aec8d161e /ace/Svc_Conf.l
parent13d4544a2dafdccd5490d68cc44fb20328863949 (diff)
downloadATCD-b47242f7c9e0ade2689ecec2b7846026d056da80.tar.gz
Added RCS Ids to the flex/bison files
Diffstat (limited to 'ace/Svc_Conf.l')
-rw-r--r--ace/Svc_Conf.l21
1 files changed, 12 insertions, 9 deletions
diff --git a/ace/Svc_Conf.l b/ace/Svc_Conf.l
index adf174f3da0..9ac99604cb8 100644
--- a/ace/Svc_Conf.l
+++ b/ace/Svc_Conf.l
@@ -1,4 +1,5 @@
%{
+// $Id$
// Sample lexical analysis for regular expression subset. Must be
// compiled with FLEX and an ANSI C++ compiler.
@@ -6,7 +7,9 @@
#include "ace/Svc_Conf.h"
#include "ace/Svc_Conf_Tokens.h"
-// Keeps track of the current line for debugging output.
+ACE_RCSID(ace, Svc_Conf_l, "$Id$")
+
+// Keeps track of the current line for debugging output.
int yylineno = 1;
// Keeps track of the number of errors encountered so far.
@@ -56,15 +59,15 @@ inactive { return token (ACE_INACTIVE); }
{string} { // Eliminate the opening and closing double quotes
*strrchr (yytext, '"') = '\0';
yyleng -= 1;
- yylval.ident_ = ace_obstack->copy (yytext + 1, yyleng);
+ yylval.ident_ = ace_obstack->copy (yytext + 1, yyleng);
return token (ACE_STRING); }
-{ident} {
- yylval.ident_ = ace_obstack->copy (yytext, yyleng);
- return token (ACE_IDENT);
+{ident} {
+ yylval.ident_ = ace_obstack->copy (yytext, yyleng);
+ return token (ACE_IDENT);
}
-{pathname} {
- yylval.ident_ = ace_obstack->copy (yytext, yyleng);
- return token (ACE_PATHNAME);
+{pathname} {
+ yylval.ident_ = ace_obstack->copy (yytext, yyleng);
+ return token (ACE_PATHNAME);
}
{white_space}+ ; /* EMPTY */
{newline} { yylineno++; }
@@ -76,7 +79,7 @@ yywrap (void)
{
::fflush (yyin);
yytext[0] = '#';
- yyleng = 0;
+ yyleng = 0;
// This needs to be freed to prevent a memory leak.
yy_delete_buffer (yy_current_buffer);