strcasecmp() for FLUID under AIX.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1336 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2000-11-20 15:44:19 +00:00
parent 0c6010abea
commit a45a6308d0
9 changed files with 91 additions and 23 deletions

View File

@ -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

View File

@ -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,13 +129,19 @@
#define HAVE_SCANDIR 0
/*
* possibly missing sprintf-style functions:
* Possibly missing sprintf-style functions:
*/
#define HAVE_VSNPRINTF 0
#define HAVE_SNPRINTF 0
#define HAVE_VSPRINTF 0
/*
* String functions...
*/
#define HAVE_STRCASECMP 0
/*
* HAVE_SYS_SELECT_H:
*
@ -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 $".
*/

View File

@ -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

View File

@ -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 $".
//

View File

@ -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,13 +129,19 @@
#define HAVE_SCANDIR 1
/*
* possibly missing sprintf-style functions:
* Possibly missing sprintf-style functions:
*/
#define HAVE_VSNPRINTF 1
#define HAVE_SNPRINTF 1
#define HAVE_VSPRINTF 1
/*
* String functions...
*/
#define HAVE_STRCASECMP 1
/*
* HAVE_SYS_SELECT_H:
*
@ -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 $".
*/

View File

@ -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,13 +129,19 @@
#define HAVE_SCANDIR 0
/*
* possibly missing sprintf-style functions:
* Possibly missing sprintf-style functions:
*/
#define HAVE_VSNPRINTF 0
#define HAVE_SNPRINTF 0
#define HAVE_VSPRINTF 0
/*
* String functions...
*/
#define HAVE_STRCASECMP 1
/*
* HAVE_SYS_SELECT_H:
*
@ -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 $".
*/

View File

@ -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,13 +129,19 @@
#define HAVE_SCANDIR 0
/*
* possibly missing sprintf-style functions:
* Possibly missing sprintf-style functions:
*/
#define HAVE_VSNPRINTF 0
#define HAVE_SNPRINTF 0
#define HAVE_VSPRINTF 0
/*
* String functions...
*/
#define HAVE_STRCASECMP 1
/*
* HAVE_SYS_SELECT_H:
*
@ -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 $".
*/

View File

@ -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,13 +126,19 @@
#define HAVE_SCANDIR 1
/*
* possibly missing sprintf-style functions:
* Possibly missing sprintf-style functions:
*/
#define HAVE_VSNPRINTF 1
#define HAVE_SNPRINTF 1
#define HAVE_VSPRINTF 1
/*
* String functions...
*/
#define HAVE_STRCASECMP 1
/*
* HAVE_SYS_SELECT_H:
*
@ -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 $".
*/

View File

@ -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,13 +122,19 @@
#define HAVE_SCANDIR 0
/*
* possibly missing sprintf-style functions:
* Possibly missing sprintf-style functions:
*/
#define HAVE_VSNPRINTF 0
#define HAVE_SNPRINTF 0
#define HAVE_VSPRINTF 1
/*
* String functions...
*/
#define HAVE_STRCASECMP 1
/*
* HAVE_POLL:
*
@ -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 $".
*/