comparison extensions/rt_ereg/rtereg_conf.l @ 1387:d70f5f6cb306

rt_ereg: improve logging and locking
author Thomas Klausner <tk@giga.or.at>
date Tue, 15 Oct 2019 16:25:47 +0200
parents 1af09cc156d6
children 566bb46cc73f
comparison
equal deleted inserted replaced
1386:6e4737d332e7 1387:d70f5f6cb306
78 /* Recognize quoted strings */ 78 /* Recognize quoted strings */
79 {qstring} { 79 {qstring} {
80 /* Match a quoted string. */ 80 /* Match a quoted string. */
81 CHECK_MALLOC_DO( yylval->string = strdup(yytext+1), 81 CHECK_MALLOC_DO( yylval->string = strdup(yytext+1),
82 { 82 {
83 TRACE_DEBUG(INFO, "Unable to copy the string '%s': %s", yytext, strerror(errno)); 83 LOG_E("[rt_ereg] unable to copy the string '%s': %s", yytext, strerror(errno));
84 return LEX_ERROR; /* trig an error in yacc parser */ 84 return LEX_ERROR; /* trig an error in yacc parser */
85 } ); 85 } );
86 yylval->string[strlen(yytext) - 2] = '\0'; 86 yylval->string[strlen(yytext) - 2] = '\0';
87 return QSTRING; 87 return QSTRING;
88 } 88 }
"Welcome to our mercurial repository"