jaillex.l (250227) | jaillex.l (250926) |
---|---|
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 250227 2013-05-03 23:51:32Z jkim $"); | 29__FBSDID("$FreeBSD: head/usr.sbin/jail/jaillex.l 250926 2013-05-23 05:42:35Z 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 39extern int yynerrs; 40 41static ssize_t text2lval(size_t triml, size_t trimr, int tovar); 42 43static int instr; 44static int lineno = 1; | 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 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#define YY_DECL int yylex(void) |
|
45%} 46 47%option noinput 48%option nounput 49 50%start _ DQ 51 52%% --- 181 unchanged lines hidden --- | 47%} 48 49%option noinput 50%option nounput 51 52%start _ DQ 53 54%% --- 181 unchanged lines hidden --- |