summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2000-11-20 15:44:19 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2000-11-20 15:44:19 +0000
commita45a6308d0a0d5db68f9fa5103cb91de4a5ef52c (patch)
treea74874c525c2763fc775954348b5132eb4e0aa7a
parent0c6010abea726c977e7d6384fe5bbf0b7e1accb2 (diff)
strcasecmp() for FLUID under AIX.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1336 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--CHANGES3
-rw-r--r--configh.in12
-rw-r--r--configure.in7
-rw-r--r--fluid/factory.cxx32
-rw-r--r--makefiles/config.cygwin12
-rw-r--r--makefiles/config.mingw12
-rw-r--r--makefiles/config.no-cygwin12
-rw-r--r--makefiles/config.os2x12
-rw-r--r--visualc/config.h12
9 files changed, 91 insertions, 23 deletions
diff --git a/CHANGES b/CHANGES
index 56427878f..3b9261292 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,8 @@
CHANGES SINCE FLTK 1.0.9
+ - Added a strcasecmp() function to FLUID; AIX doesn't
+ have it.
+
- Bug #115509: Fl_Scroll not repainting background.
- Updated the configure script and makeinclude.in file
diff --git a/configh.in b/configh.in
index f97f8008a..8fb0977a6 100644
--- a/configh.in
+++ b/configh.in
@@ -1,5 +1,5 @@
/*
- * "$Id: configh.in,v 1.11.2.5 2000/06/18 00:38:37 bill Exp $"
+ * "$Id: configh.in,v 1.11.2.6 2000/11/20 15:44:17 easysw Exp $"
*
* Configuration file for the Fast Light Tool Kit (FLTK).
* @configure_input@
@@ -129,7 +129,7 @@
#define HAVE_SCANDIR 0
/*
- * possibly missing sprintf-style functions:
+ * Possibly missing sprintf-style functions:
*/
#define HAVE_VSNPRINTF 0
@@ -137,6 +137,12 @@
#define HAVE_VSPRINTF 0
/*
+ * String functions...
+ */
+
+#define HAVE_STRCASECMP 0
+
+/*
* HAVE_SYS_SELECT_H:
*
* Whether or not select() call has its own header file.
@@ -153,5 +159,5 @@
#define USE_POLL 0
/*
- * End of "$Id: configh.in,v 1.11.2.5 2000/06/18 00:38:37 bill Exp $".
+ * End of "$Id: configh.in,v 1.11.2.6 2000/11/20 15:44:17 easysw Exp $".
*/
diff --git a/configure.in b/configure.in
index d7a25a8e0..7fbf5178b 100644
--- a/configure.in
+++ b/configure.in
@@ -1,7 +1,7 @@
dnl -*- sh -*-
dnl the "configure" script is made from this by running GNU "autoconf"
dnl
-dnl "$Id: configure.in,v 1.33.2.18 2000/11/20 15:12:39 easysw Exp $"
+dnl "$Id: configure.in,v 1.33.2.19 2000/11/20 15:44:17 easysw Exp $"
dnl
dnl Configuration script for the Fast Light Tool Kit (FLTK).
dnl
@@ -137,7 +137,8 @@ AC_CHECK_FUNC(snprintf,
else
AC_DEFINE(HAVE_SNPRINTF)
fi)
-AC_CHECK_FUNCS(vsprintf)
+AC_CHECK_FUNC(vsprintf)
+AC_CHECK_FUNC(strcasecmp)
AC_PATH_XTRA
dnl# echo "Ignoring libraries \"$X_PRE_LIBS\" requested by configure."
@@ -278,5 +279,5 @@ AC_CONFIG_HEADER(config.h:configh.in)
AC_OUTPUT(makeinclude)
dnl
-dnl End of "$Id: configure.in,v 1.33.2.18 2000/11/20 15:12:39 easysw Exp $".
+dnl End of "$Id: configure.in,v 1.33.2.19 2000/11/20 15:44:17 easysw Exp $".
dnl
diff --git a/fluid/factory.cxx b/fluid/factory.cxx
index 1c2ffc1f4..4f5177b85 100644
--- a/fluid/factory.cxx
+++ b/fluid/factory.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: factory.cxx,v 1.4.2.6 2000/06/05 21:20:42 mike Exp $"
+// "$Id: factory.cxx,v 1.4.2.7 2000/11/20 15:44:18 easysw Exp $"
//
// Widget factory code for the Fast Light Tool Kit (FLTK).
//
@@ -43,6 +43,34 @@
#include "Fl_Widget_Type.h"
+#if !HAVE_STRCASECMP
+# include <ctype.h>
+
+//
+// 'strcasecmp()' - Do a case-insensitive compare...
+//
+
+static int
+strcasecmp(const char *s, const char *t) {
+ while (*s != '\0' && *t != '\0') {
+ if (tolower(*s) < tolower(*t))
+ return (-1);
+ else if (tolower(*s) > tolower(*t))
+ return (1);
+
+ s ++;
+ t ++;
+ }
+
+ if (*s == '\0' && *t == '\0')
+ return (0);
+ else if (*s != '\0')
+ return (1);
+ else
+ return (-1);
+}
+#endif // !HAVE_STRCASECMP
+
////////////////////////////////////////////////////////////////
#include <FL/Fl_Box.H>
@@ -693,5 +721,5 @@ int lookup_symbol(const char *name, int &v, int numberok) {
}
//
-// End of "$Id: factory.cxx,v 1.4.2.6 2000/06/05 21:20:42 mike Exp $".
+// End of "$Id: factory.cxx,v 1.4.2.7 2000/11/20 15:44:18 easysw Exp $".
//
diff --git a/makefiles/config.cygwin b/makefiles/config.cygwin
index ea0dc5571..0c21d9704 100644
--- a/makefiles/config.cygwin
+++ b/makefiles/config.cygwin
@@ -1,5 +1,5 @@
/*
- * "$Id: config.cygwin,v 1.1.2.1 2000/06/20 18:47:32 carl Exp $"
+ * "$Id: config.cygwin,v 1.1.2.2 2000/11/20 15:44:18 easysw Exp $"
*
* Configuration file for the Fast Light Tool Kit (FLTK).
*
@@ -129,7 +129,7 @@
#define HAVE_SCANDIR 1
/*
- * possibly missing sprintf-style functions:
+ * Possibly missing sprintf-style functions:
*/
#define HAVE_VSNPRINTF 1
@@ -137,6 +137,12 @@
#define HAVE_VSPRINTF 1
/*
+ * String functions...
+ */
+
+#define HAVE_STRCASECMP 1
+
+/*
* HAVE_SYS_SELECT_H:
*
* Whether or not select() call has its own header file.
@@ -153,5 +159,5 @@
#define HAVE_POLL 0
/*
- * End of "$Id: config.cygwin,v 1.1.2.1 2000/06/20 18:47:32 carl Exp $".
+ * End of "$Id: config.cygwin,v 1.1.2.2 2000/11/20 15:44:18 easysw Exp $".
*/
diff --git a/makefiles/config.mingw b/makefiles/config.mingw
index b925c7c99..fe0e30b52 100644
--- a/makefiles/config.mingw
+++ b/makefiles/config.mingw
@@ -1,5 +1,5 @@
/*
- * "$Id: config.mingw,v 1.1.2.1 2000/06/13 20:33:35 mike Exp $"
+ * "$Id: config.mingw,v 1.1.2.2 2000/11/20 15:44:18 easysw Exp $"
*
* Configuration file for the Fast Light Tool Kit (FLTK).
*
@@ -129,7 +129,7 @@
#define HAVE_SCANDIR 0
/*
- * possibly missing sprintf-style functions:
+ * Possibly missing sprintf-style functions:
*/
#define HAVE_VSNPRINTF 0
@@ -137,6 +137,12 @@
#define HAVE_VSPRINTF 0
/*
+ * String functions...
+ */
+
+#define HAVE_STRCASECMP 1
+
+/*
* HAVE_SYS_SELECT_H:
*
* Whether or not select() call has its own header file.
@@ -153,5 +159,5 @@
#define HAVE_POLL 0
/*
- * End of "$Id: config.mingw,v 1.1.2.1 2000/06/13 20:33:35 mike Exp $".
+ * End of "$Id: config.mingw,v 1.1.2.2 2000/11/20 15:44:18 easysw Exp $".
*/
diff --git a/makefiles/config.no-cygwin b/makefiles/config.no-cygwin
index 2ab4d1d1b..93a82a8e9 100644
--- a/makefiles/config.no-cygwin
+++ b/makefiles/config.no-cygwin
@@ -1,5 +1,5 @@
/*
- * "$Id: config.no-cygwin,v 1.1.2.1 2000/06/20 05:47:35 bill Exp $"
+ * "$Id: config.no-cygwin,v 1.1.2.2 2000/11/20 15:44:18 easysw Exp $"
*
* Configuration file for the Fast Light Tool Kit (FLTK).
*
@@ -129,7 +129,7 @@
#define HAVE_SCANDIR 0
/*
- * possibly missing sprintf-style functions:
+ * Possibly missing sprintf-style functions:
*/
#define HAVE_VSNPRINTF 0
@@ -137,6 +137,12 @@
#define HAVE_VSPRINTF 0
/*
+ * String functions...
+ */
+
+#define HAVE_STRCASECMP 1
+
+/*
* HAVE_SYS_SELECT_H:
*
* Whether or not select() call has its own header file.
@@ -153,5 +159,5 @@
#define HAVE_POLL 0
/*
- * End of "$Id: config.no-cygwin,v 1.1.2.1 2000/06/20 05:47:35 bill Exp $".
+ * End of "$Id: config.no-cygwin,v 1.1.2.2 2000/11/20 15:44:18 easysw Exp $".
*/
diff --git a/makefiles/config.os2x b/makefiles/config.os2x
index 1599d05bc..f25d186d2 100644
--- a/makefiles/config.os2x
+++ b/makefiles/config.os2x
@@ -1,5 +1,5 @@
/*
- * "$Id: config.os2x,v 1.1.2.1 2000/08/19 19:03:46 spitzak Exp $"
+ * "$Id: config.os2x,v 1.1.2.2 2000/11/20 15:44:18 easysw Exp $"
*
* Configuration file for the Fast Light Tool Kit (FLTK).
*
@@ -126,7 +126,7 @@
#define HAVE_SCANDIR 1
/*
- * possibly missing sprintf-style functions:
+ * Possibly missing sprintf-style functions:
*/
#define HAVE_VSNPRINTF 1
@@ -134,6 +134,12 @@
#define HAVE_VSPRINTF 1
/*
+ * String functions...
+ */
+
+#define HAVE_STRCASECMP 1
+
+/*
* HAVE_SYS_SELECT_H:
*
* Whether or not select() call has its own header file.
@@ -150,5 +156,5 @@
#define HAVE_POLL 0
/*
- * End of "$Id: config.os2x,v 1.1.2.1 2000/08/19 19:03:46 spitzak Exp $".
+ * End of "$Id: config.os2x,v 1.1.2.2 2000/11/20 15:44:18 easysw Exp $".
*/
diff --git a/visualc/config.h b/visualc/config.h
index d2eadc894..08d79a1ee 100644
--- a/visualc/config.h
+++ b/visualc/config.h
@@ -1,5 +1,5 @@
/*
- * "$Id: config.h,v 1.5.2.2 2000/06/07 12:11:53 mike Exp $"
+ * "$Id: config.h,v 1.5.2.3 2000/11/20 15:44:19 easysw Exp $"
*
* Configuration file for the Fast Light Tool Kit (FLTK) for Visual C++.
*
@@ -122,7 +122,7 @@
#define HAVE_SCANDIR 0
/*
- * possibly missing sprintf-style functions:
+ * Possibly missing sprintf-style functions:
*/
#define HAVE_VSNPRINTF 0
@@ -130,6 +130,12 @@
#define HAVE_VSPRINTF 1
/*
+ * String functions...
+ */
+
+#define HAVE_STRCASECMP 1
+
+/*
* HAVE_POLL:
*
* Use poll() if we don't have select().
@@ -138,5 +144,5 @@
#define HAVE_POLL 0
/*
- * End of "$Id: config.h,v 1.5.2.2 2000/06/07 12:11:53 mike Exp $".
+ * End of "$Id: config.h,v 1.5.2.3 2000/11/20 15:44:19 easysw Exp $".
*/