diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-04-22 20:10:44 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-04-22 20:10:44 -0700 |
commit | b0ebf843ce862f8448aad85e61cc1b3727745fd0 (patch) | |
tree | 47b934781729c5d2143de03eb8021521771c500f /mpi-patches/eliminate-locale-dependencies | |
parent | 790cbdccac0540d2af12438fc7bccef2e17bc124 (diff) | |
download | txr-b0ebf843ce862f8448aad85e61cc1b3727745fd0.tar.gz txr-b0ebf843ce862f8448aad85e61cc1b3727745fd0.tar.bz2 txr-b0ebf843ce862f8448aad85e61cc1b3727745fd0.zip |
Switch to in-tree mpi directory.
* Makefile (CFLAGS, MPI_OBJS): Refer to mpi directory without version
number.
(repatch): Target removed.
(distclean): Don't try to remove old unpacked tarball mpi directory.
* configure (mpi_version, have_quilt, have_patch): Variables removed.
(gen_config_make): Do not generate mpi_version make variable.
Do not test for quilt or patch. No longer extract MPI tarball or
try to apply patches.
* mpi-1.8.6.tar.gz: File removed.
* mpi-patches: Directory and all files under it removed.
Diffstat (limited to 'mpi-patches/eliminate-locale-dependencies')
-rw-r--r-- | mpi-patches/eliminate-locale-dependencies | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/mpi-patches/eliminate-locale-dependencies b/mpi-patches/eliminate-locale-dependencies deleted file mode 100644 index 6ab1b63a..00000000 --- a/mpi-patches/eliminate-locale-dependencies +++ /dev/null @@ -1,45 +0,0 @@ -Index: mpi-1.8.6/mpi.c -=================================================================== ---- mpi-1.8.6.orig/mpi.c 2015-03-29 22:04:45.548237064 -0700 -+++ mpi-1.8.6/mpi.c 2015-03-30 08:17:35.252749065 -0700 -@@ -4693,17 +4693,22 @@ - int s_mp_tovalue(int ch, int r) - { - int val, xch; -- -- if(r > 36) -- xch = ch; -+ -+ /* For bases up to 36, the letters of the alphabet are -+ case-insensitive and denote digits valued 10 through 36. -+ For bases greater than 36, the lower case letters have -+ their own meaning and denote values past 36. */ -+ -+ if (r <= 36 && ch >= 'a' && ch <= 'z') -+ xch = ch - 'a' + 'A'; - else -- xch = toupper(ch); -+ xch = ch; - -- if(isdigit(xch)) -+ if(xch >= '0' && xch <= '9') - val = xch - '0'; -- else if(isupper(xch)) -+ else if(xch >= 'A' && xch <= 'Z') - val = xch - 'A' + 10; -- else if(islower(xch)) -+ else if(xch >= 'a' && xch <= 'z') - val = xch - 'a' + 36; - else if(xch == '+') - val = 62; -@@ -4741,8 +4746,8 @@ - - ch = s_dmap_1[val]; - -- if(r <= 36 && low) -- ch = tolower(ch); -+ if(low && val > 9 && r <= 36) -+ ch = ch - 'A' + 'a'; - - return ch; - |