1%{
2/*-
3 * Copyright (c) 2009-2010 The FreeBSD Foundation
4 * Copyright (c) 2011 Pawel Jakub Dawidek <pawel@dawidek.net>
5 * All rights reserved.
6 *
7 * This software was developed by Pawel Jakub Dawidek under sponsorship from
8 * the FreeBSD Foundation.
--- 14 unchanged lines hidden (view full) ---
23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
31 * $FreeBSD: head/sbin/hastd/token.l 226463 2011-10-17 12:22:09Z pjd $
32 */
33
34#include <stdio.h>
35#include <string.h>
36
37#include "hast.h"
38
39#include "y.tab.h"
40
41int depth;
42int lineno;
43
44#define DP do { } while (0)
45%}
46
47%%
48control { DP; return CONTROL; }
49pidfile { DP; return PIDFILE; }
50listen { DP; return LISTEN; }
51port { DP; return PORT; }
52replication { DP; return REPLICATION; }
53checksum { DP; return CHECKSUM; }
54compression { DP; return COMPRESSION; }
--- 26 unchanged lines hidden ---
2/*-
3 * Copyright (c) 2009-2010 The FreeBSD Foundation
4 * Copyright (c) 2011 Pawel Jakub Dawidek <pawel@dawidek.net>
5 * All rights reserved.
6 *
7 * This software was developed by Pawel Jakub Dawidek under sponsorship from
8 * the FreeBSD Foundation.
--- 14 unchanged lines hidden (view full) ---
23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
31 * $FreeBSD: head/sbin/hastd/token.l 226463 2011-10-17 12:22:09Z pjd $
32 */
33
34#include <stdio.h>
35#include <string.h>
36
37#include "hast.h"
38
39#include "y.tab.h"
40
41int depth;
42int lineno;
43
44#define DP do { } while (0)
45%}
46
47%%
48control { DP; return CONTROL; }
49pidfile { DP; return PIDFILE; }
50listen { DP; return LISTEN; }
51port { DP; return PORT; }
52replication { DP; return REPLICATION; }
53checksum { DP; return CHECKSUM; }
54compression { DP; return COMPRESSION; }
--- 26 unchanged lines hidden ---