/[monit]/monit/l.l
ViewVC logotype

Diff of /monit/l.l

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.55 by hauk, Fri Aug 29 16:58:07 2003 UTC revision 1.56 by hauk, Fri Aug 29 19:49:37 2003 UTC
# Line 404  check[ \t]+directory { Line 404  check[ \t]+directory {
404                        yyerror("Unbalanced quotes");                        yyerror("Unbalanced quotes");
405                    }                    }
406    
407    \{[^\}]*\}      {  /*    [^ \t\n"]+      {
                       * This helps constructions like:  
                       *   /bin/bash -c { cmd1; cmd2;..cmdn; }  
                       */  
                       steplinenobycr(yytext);  
                       yylval.string= xstrdup(yytext);  
                       return STRING;  
                   }  
   
   [^ \t\n\{\}]+     {  
408                        yylval.string= xstrdup(yytext);                        yylval.string= xstrdup(yytext);
409                        return STRING;                        return STRING;
410                    }                    }
# Line 434  check[ \t]+directory { Line 425  check[ \t]+directory {
425    
426  void steplinenobycr(char *string) {  void steplinenobycr(char *string) {
427    
428    char *pos=string;    char *pos= string;
   
   while ( 0 != *pos ) {  
   
     if ( '\n' == *pos ) {  
429    
430      while(*pos)
431        if('\n'==*pos++) {
432        lineno++;        lineno++;
   
433      }      }
434    
     pos++;  
   
   }  
   
435  }  }
436    
437    
438  static char *handle_quoted_string(char *string) {  static char *handle_quoted_string(char *string) {
439    
440    char *buf= xstrdup(string);    char *buf= xstrdup(string);

Legend:
Removed from v.1.55  
changed lines
  Added in v.1.56

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26