]> thyrsus.com Git - letterize.git/commitdiff
Ready for release
authorEric S. Raymond <esr@thyrsus.com>
Tue, 25 Oct 1994 02:29:39 +0000 (02:29 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 25 Oct 1994 02:29:39 +0000 (02:29 +0000)
letterize.c

index 47e7f89ff49e4832233117ccaa2beed212b1a5d1..949ddbcbe28d6f2d67fd64571a79de1aeb3be1a5 100644 (file)
@@ -1,9 +1,13 @@
 /*
- * generate all alphabetic strings corresponding to a phone number
+ * letterize.c -- generate all mnemonics corresponding to a phone number
  *
- * n.b.: assumes I can modify argv[][] in place!
+ * by Eric S. Raymond <esr@snark.thyrsus.com>, Oct 24 1994
+ *
+ * Everything between the CUT HEREs was copied from a code fragment I found
+ * on the net, unattributed.
+ *
+ * ------------------------------ CUT HERE -----------------------------------
  */
-
 /*
                Table of triple usage in text
 
@@ -154,7 +158,6 @@ long obvtab[27][27] =
 /*
        Configuration parameters
 */
-#define MINNOFIND 3                    /* minimum unusual triples */
 short unusual;                         /* count of unusual triples */
 
 /*
@@ -169,6 +172,10 @@ short m1,m2,m3;                            /* all in 0..26 */
        if (!(obvtab[m1][m2] & (1L << m3))) unusual++; /* check for triple */
 }
 
+/*
+ * ------------------------------ CUT HERE -----------------------------------
+ */
+
 /*
        obvword  --  do one word