jaillex.l (234934) | jaillex.l (250227) |
---|---|
1%{ 2/*- 3 * Copyright (c) 2011 James Gritton 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1%{ 2/*- 3 * Copyright (c) 2011 James Gritton 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/usr.sbin/jail/jaillex.l 234934 2012-05-02 21:24:08Z jamie $"); | 29__FBSDID("$FreeBSD: head/usr.sbin/jail/jaillex.l 250227 2013-05-03 23:51:32Z jkim $"); |
30 31#include <err.h> 32#include <stddef.h> 33#include <stdlib.h> 34#include <string.h> 35 36#include "jailp.h" 37#include "y.tab.h" 38 | 30 31#include <err.h> 32#include <stddef.h> 33#include <stdlib.h> 34#include <string.h> 35 36#include "jailp.h" 37#include "y.tab.h" 38 |
39#define YY_NO_INPUT 40#define YY_NO_UNPUT 41 | |
42extern int yynerrs; 43 44static ssize_t text2lval(size_t triml, size_t trimr, int tovar); 45 46static int instr; 47static int lineno = 1; 48%} 49 | 39extern int yynerrs; 40 41static ssize_t text2lval(size_t triml, size_t trimr, int tovar); 42 43static int instr; 44static int lineno = 1; 45%} 46 |
47%option noinput 48%option nounput 49 |
|
50%start _ DQ 51 52%% 53 54 /* Whitespace or equivalent */ 55<_>[ \t]+ instr = 0; 56<_>#.* ; 57<_>\/\/.* ; --- 176 unchanged lines hidden --- | 50%start _ DQ 51 52%% 53 54 /* Whitespace or equivalent */ 55<_>[ \t]+ instr = 0; 56<_>#.* ; 57<_>\/\/.* ; --- 176 unchanged lines hidden --- |