summaryrefslogtreecommitdiff
path: root/data/dict
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-04-06 10:28:29 +0000
committerJay Freeman <saurik@saurik.com>2008-04-06 10:28:29 +0000
commitd699a01fabaa04a1aad60f6ca5777f82ee24839a (patch)
tree1eb62bad23b14a0877c5b9171f2a5f9358c8d592 /data/dict
parent8a49e427447f40fdd43fc4b5f513b166dd639e2a (diff)
Drastic, sweeping modifications to support iPhone 1.2.0/2.0.
git-svn-id: http://svn.telesphoreo.org/trunk@199 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/dict')
-rw-r--r--data/dict/make.sh4
-rw-r--r--data/dict/slfind.diff19
2 files changed, 21 insertions, 2 deletions
diff --git a/data/dict/make.sh b/data/dict/make.sh
index 84f49c26f..69cf25c8a 100644
--- a/data/dict/make.sh
+++ b/data/dict/make.sh
@@ -1,6 +1,6 @@
pkg:extract
cd *
pkg:patch
-pkg:configure ac_cv_type_wint_t=yes ac_cv_prog_AR=$(which arm-apple-darwin-ar)
-make AR=arm-apple-darwin-ar
+pkg:configure ac_cv_type_wint_t=yes ac_cv_prog_AR=$(which ${PKG_TARG}-ar)
+make AR=${PKG_TARG}-ar
pkg:install
diff --git a/data/dict/slfind.diff b/data/dict/slfind.diff
new file mode 100644
index 000000000..4dcd70a59
--- /dev/null
+++ b/data/dict/slfind.diff
@@ -0,0 +1,19 @@
+diff -r -u dictd-1.9.9/libmaa/sl.c dictd-1.9.9+iPhone/libmaa/sl.c
+--- dictd-1.9.9/libmaa/sl.c 2002-08-02 19:43:15.000000000 +0000
++++ dictd-1.9.9+iPhone/libmaa/sl.c 2008-04-05 17:27:43.000000000 +0000
+@@ -355,6 +355,7 @@
+ _sl_check( list );
+ }
+
++#if 0
+ /* \doc Find the datum in |list| that has an associated value of |key|.
+ Return that datum (a pointer), or "NULL" if the |key| is not found. */
+
+@@ -371,6 +372,7 @@
+ if (pt && !l->compare( l->key( pt->datum ), key )) return pt->datum;
+ return NULL;
+ }
++#endif
+
+ /* \doc Iterate |f| over every datum in |list|. If |f| returns non-zero,
+ then abort the remainder of the iteration. Iterations are designed to