| @@ -1,15 +1,15 @@ | | | @@ -1,15 +1,15 @@ |
1 | %{ | | 1 | %{ |
2 | /* $NetBSD: veriexecctl_conf.l,v 1.14 2009/10/29 14:49:03 christos Exp $ */ | | 2 | /* $NetBSD: veriexecctl_conf.l,v 1.15 2011/05/24 12:06:25 joerg Exp $ */ |
3 | | | 3 | |
4 | /*- | | 4 | /*- |
5 | * Copyright 2005 Elad Efrat <elad@NetBSD.org> | | 5 | * Copyright 2005 Elad Efrat <elad@NetBSD.org> |
6 | * Copyright 2005 Brett Lymn <blymn@netbsd.org> | | 6 | * Copyright 2005 Brett Lymn <blymn@netbsd.org> |
7 | * | | 7 | * |
8 | * All rights reserved. | | 8 | * All rights reserved. |
9 | * | | 9 | * |
10 | * This code has been donated to The NetBSD Foundation by the Author. | | 10 | * This code has been donated to The NetBSD Foundation by the Author. |
11 | * | | 11 | * |
12 | * Redistribution and use in source and binary forms, with or without | | 12 | * Redistribution and use in source and binary forms, with or without |
13 | * modification, are permitted provided that the following conditions | | 13 | * modification, are permitted provided that the following conditions |
14 | * are met: | | 14 | * are met: |
15 | * 1. Redistributions of source code must retain the above copyright | | 15 | * 1. Redistributions of source code must retain the above copyright |
| @@ -72,26 +72,27 @@ dequote(const char *s) | | | @@ -72,26 +72,27 @@ dequote(const char *s) |
72 | ++p; | | 72 | ++p; |
73 | *q++ = *p++; | | 73 | *q++ = *p++; |
74 | } | | 74 | } |
75 | *q++ = '\0'; | | 75 | *q++ = '\0'; |
76 | | | 76 | |
77 | return buf; | | 77 | return buf; |
78 | } | | 78 | } |
79 | %} | | 79 | %} |
80 | | | 80 | |
81 | STRING [0-9a-zA-Z]+ | | 81 | STRING [0-9a-zA-Z]+ |
82 | PCHAR (\\.|[^ \t]) | | 82 | PCHAR (\\.|[^ \t]) |
83 | | | 83 | |
84 | %option nounput | | 84 | %option nounput |
| | | 85 | %option noinput |
85 | | | 86 | |
86 | %% | | 87 | %% |
87 | | | 88 | |
88 | /* path */ | | 89 | /* path */ |
89 | \/{PCHAR}+ { | | 90 | \/{PCHAR}+ { |
90 | if ((yylval.string = dequote(yytext)) == NULL) | | 91 | if ((yylval.string = dequote(yytext)) == NULL) |
91 | err(1, "Cannot allocate string"); | | 92 | err(1, "Cannot allocate string"); |
92 | return PATH; | | 93 | return PATH; |
93 | } | | 94 | } |
94 | | | 95 | |
95 | /* string (fingerprint, type, options) */ | | 96 | /* string (fingerprint, type, options) */ |
96 | {STRING} { | | 97 | {STRING} { |
97 | if ((yylval.string = strdup(yytext)) == NULL) | | 98 | if ((yylval.string = strdup(yytext)) == NULL) |