From 26367bfc399cb3862f94ddca8fce87f98f26d67e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 03:38:36 +0200 Subject: Adding upstream version 1.3.1. Signed-off-by: Daniel Baumann --- conf/pam_conv1/pam_conv_l.l | 51 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 conf/pam_conv1/pam_conv_l.l (limited to 'conf/pam_conv1/pam_conv_l.l') diff --git a/conf/pam_conv1/pam_conv_l.l b/conf/pam_conv1/pam_conv_l.l new file mode 100644 index 0000000..f563eee --- /dev/null +++ b/conf/pam_conv1/pam_conv_l.l @@ -0,0 +1,51 @@ + +%{ +/* + * $Id$ + * + * Copyright (c) Andrew G. Morgan 1997 + * + * This file is covered by the Linux-PAM License (which should be + * distributed with this file.) + */ + + static const char lexid[]= + "$Id$\n" + "Copyright (c) Andrew G. Morgan 1997 \n"; + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include + +#include "pam_conv_y.h" + + extern int current_line; +%} + +%option noyywrap +%% + +"#"[^\n]* ; /* skip comments (sorry) */ + +"\\\n" { + ++current_line; +} + +([^\n\t ]|[\\][^\n])+ { + return TOK; +} + +[ \t]+ ; /* Ignore */ + +<> { + return EOFILE; +} + +[\n] { + ++current_line; + return NL; +} + +%% -- cgit v1.2.3