diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-05-15 03:31:06 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-05-15 03:31:06 +0000 |
commit | 8b852ffc1bdca3ad129ad0beeb93028fa695e590 (patch) | |
tree | f4eae324dc4b6fea3a503bf1680f88edae96cf3d /ace/Svc_Conf.h | |
parent | 2fdbd9e922334cd2b39f677daabd23812a443e6c (diff) | |
download | ATCD-8b852ffc1bdca3ad129ad0beeb93028fa695e590.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Svc_Conf.h')
-rw-r--r-- | ace/Svc_Conf.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ace/Svc_Conf.h b/ace/Svc_Conf.h index 55021a766aa..817c2240315 100644 --- a/ace/Svc_Conf.h +++ b/ace/Svc_Conf.h @@ -45,6 +45,23 @@ ACE_YY_DECL; extern FILE *ace_yyin; // Name of input stream +#define ACE_YY_INPUT(buf,result,max_size) \ + if (ace_yydirective != 0) \ + { \ + int c = *ace_yydirective++; \ + result = c == '\0' ? 0 : 1; \ + buf[0] = (char) c; \ + } \ + else if ( ace_yy_current_buffer->ace_yy_is_interactive ) \ + { \ + int c = getc( ace_yyin ); \ + result = c == EOF ? 0 : 1; \ + buf[0] = (char) c; \ + } \ + else if ( ((result = fread( buf, 1, max_size, ace_yyin )) == 0) \ + && ferror( ace_yyin ) ) \ + ACE_YY_FATAL_ERROR( "input in flex scanner failed" ); + void ace_yyerror (char *); // Error handling routine required by YACC or BISON @@ -54,6 +71,10 @@ extern int ace_yylineno; extern int ace_yyerrno; // Keeps track of the number of errors encountered so far +extern char *ace_yydirective; +// Used to parse service configurator directives from a string rather +// than from a svc.conf file. + extern char *ace_yytext; // Holds the lexeme for the current token |