chiark / gitweb /
buf.c: Step over terminating null byte.
[mLib] / unihash-mkstatic.c
index 6b735527b7a5217322021876eb9dce6af575b589..f1682279d891bd8bd0a3eab8870c76d3f6fd6eeb 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2003 Straylight/Edgeware
  */
 
-/*----- Licensing notice --------------------------------------------------* 
+/*----- Licensing notice --------------------------------------------------*
  *
  * This file is part of the mLib utilities library.
  *
  * it under the terms of the GNU Library General Public License as
  * published by the Free Software Foundation; either version 2 of the
  * License, or (at your option) any later version.
- * 
+ *
  * mLib is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU Library General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU Library General Public
  * License along with mLib; if not, write to the Free
  * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
@@ -29,6 +29,8 @@
 
 /*----- Header files ------------------------------------------------------*/
 
+#include "config.h"
+
 #include <ctype.h>
 #include <errno.h>
 #include <stdio.h>
@@ -168,7 +170,7 @@ int main(int argc, char *argv[])
   unihash_setkey(&u, key);
   if (!sym)
     sym = (flags & f_ctab) ? "uhi" : "UHI_INIT";
-  
+
   /* --- Start output --- */
 
   if (!file)
@@ -231,12 +233,12 @@ int main(int argc, char *argv[])
        if (k < N(u.s[i][j]) - 1) {
          fputc(',', fp);
          if (k % 4 == 3)
-           fputs(flags & f_ctab ? "\n     " : "\t\t\t\\\n     ", fp);
+           fputs(flags & f_ctab ? "\n     " : "\t\t\t\\\n     ", fp);
        }
       }
       if (j < N(u.s[i]) - 1) {
-       fputs(flags & f_ctab ? " },\n\n   " :
-               " },\t\t\t\\\n\t\t\t\t\t\t\t\t\t\\\n   ", fp);
+       fputs(flags & f_ctab ? " },\n\n   " :
+               " },\t\t\t\\\n\t\t\t\t\t\t\t\t\t\\\n   ", fp);
       }
     }
     if (i < N(u.s) - 1) {