]> diplodocus.org Git - nmh/blobdiff - sbr/smatch.c
Rewrite norm_charmap(), moving code into data.
[nmh] / sbr / smatch.c
index 4d1d3d6814b7f977897a2dbd22819de3ee220788..f30e589905ee4c772dfb4bcf68d12ff1c713c058 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * smatch.c -- match a switch (option)
+/* smatch.c -- match a switch (option)
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
 
 
 int
 
 
 int
-smatch(char *string, struct swit *swp)
+smatch(const char *string, const struct swit *swp)
 {
 {
-    char *sp, *tcp;
+    const char *sp, *tcp;
     int firstone, len;
     int firstone, len;
-    struct swit *tp;
+    const struct swit *tp;
 
     firstone = UNKWNSW;
 
 
     firstone = UNKWNSW;