]> diplodocus.org Git - nmh/blobdiff - sbr/dtimep.l
Removed --depth 1 from git clone invocation.
[nmh] / sbr / dtimep.l
index fdae74ccb44bc18523aaf60348c27302213c82cd..455d403949b78d46d0bb8b266c25427f4c53fb0a 100644 (file)
 %n2500
 %a5000
 %{
-#include <h/nmh.h>
-#include <h/mh.h>
-#include <h/utils.h>
-#include <h/tws.h>
+#include "h/nmh.h"
+#include "h/mh.h"
+#include "sbr/dtime.h"
+#include "h/utils.h"
+#include "h/tws.h"
 
   /* Since we're looking at a string at a time, don't worry about
    *  wrapping to the next buffer.
@@ -129,14 +130,14 @@ static int day_map[] = {
                        SKIPA(); }
 #define SETMON()     { cp++; \
                        tw.tw_mon = month_map[(((unsigned char) cp[0]) + ((unsigned char) cp[1])) & 0x1f]; \
-                      SKIPA(); }
+                      SKIPA(); }
 #define SETMON_NUM() { tw.tw_mon = atoi(cp)-1; \
-                      SKIPD(); }
+                      SKIPD(); }
 #define SETYEAR()    { tw.tw_year = atoi(cp); \
-                      SKIPD(); }
+                      SKIPD(); }
 #define SETDAY()     { tw.tw_mday = atoi(cp); \
                        tw.tw_flags |= TW_SUCC; \
-                      SKIPD(); }
+                      SKIPD(); }
 #define SETTIME()    { tw.tw_hour = atoi(cp); \
                        cp += 2; \
                        SKIPTOD(); \
@@ -378,7 +379,8 @@ nl      [ \t\n()]
  *  "%option nounput" which is flex-specific
  *  makefile hackery just to compile dtimep.c with different flags
  */
-void dtimep_yyunput(int c)
+void
+dtimep_yyunput(int c)
 {
     unput(c);
 }