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 228696 2011-12-18 20:41:58Z 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%option noinput 48%option nounput 49 |
50%% 51control { DP; return CONTROL; } 52pidfile { DP; return PIDFILE; } 53listen { DP; return LISTEN; } 54port { DP; return PORT; } 55replication { DP; return REPLICATION; } 56checksum { DP; return CHECKSUM; } 57compression { DP; return COMPRESSION; } --- 26 unchanged lines hidden --- |