summaryrefslogtreecommitdiff
path: root/conf/pam_conv1/pam_conv_l.l
diff options
context:
space:
mode:
authorThorsten Kukuk <kukuk@thkukuk.de>2006-07-24 16:14:40 +0000
committerThorsten Kukuk <kukuk@thkukuk.de>2006-07-24 16:14:40 +0000
commit2d0b13cff8312c2781188af21d47f4e22d80565a (patch)
tree7af43779e523e26c4f46a23035761ca8ee8466b4 /conf/pam_conv1/pam_conv_l.l
parent65b0aeaecd75e081993c48db2837958073185165 (diff)
Relevant BUGIDs:
Purpose of commit: Commit summary: --------------- Add missing renamed files
Diffstat (limited to 'conf/pam_conv1/pam_conv_l.l')
-rw-r--r--conf/pam_conv1/pam_conv_l.l50
1 files changed, 50 insertions, 0 deletions
diff --git a/conf/pam_conv1/pam_conv_l.l b/conf/pam_conv1/pam_conv_l.l
new file mode 100644
index 00000000..25b67108
--- /dev/null
+++ b/conf/pam_conv1/pam_conv_l.l
@@ -0,0 +1,50 @@
+
+%{
+/*
+ * $Id$
+ *
+ * Copyright (c) Andrew G. Morgan 1997 <morgan@parc.power.net>
+ *
+ * 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 <morgan@parc.power.net>\n";
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdio.h>
+
+#include "pam_conv_y.h"
+
+ extern int current_line;
+%}
+
+%%
+
+"#"[^\n]* ; /* skip comments (sorry) */
+
+"\\\n" {
+ ++current_line;
+}
+
+([^\n\t ]|[\\][^\n])+ {
+ return TOK;
+}
+
+[ \t]+ ; /* Ignore */
+
+<<EOF>> {
+ return EOFILE;
+}
+
+[\n] {
+ ++current_line;
+ return NL;
+}
+
+%%