pkgsrc/games/an/patches/patch-ab
jonb 47073787a0 Generates anagrams for a phrase supplied by the user, the words used in the
anagram are taken from a specified dictionary which should contain one
word per line (default dictionary:/usr/share/dict/words).

Some Anagrams Found Using an-0.93:
Free Software Foundation  -  I'd fan out tons of freeware!
National Security Agency  -  Lusty yearning at cocaine.
President Dole            -  Led despite Ron.
Central Intelligence Agency - Langley: Inelegant, eccentric.
2002-03-06 01:29:20 +00:00

19 lines
486 B
Text

$NetBSD: patch-ab,v 1.1.1.1 2002/03/06 01:29:20 jonb Exp $
--- an.c.orig Sun Sep 29 20:57:36 1996
+++ an.c
@@ -33,13 +33,7 @@
#define TRUE 1
#define FALSE 0
-#ifndef DEFDICT
-# ifndef unix
-# define DEFDICT "words"
-# else
-# define DEFDICT "/usr/dict/words"
-# endif
-#endif
+#define DEFDICT "/usr/share/dict/words"
#define MAXLINE 512 /* Maximum line length when reading DICTIONARY */
#define MAXWORDS 512 /* Maximum number of words in anagram */