diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-05-16 12:47:44 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-05-16 12:47:44 +0000 |
| commit | 88d54cd78bf73348e4f207ab3f741aa374f28b1c (patch) | |
| tree | d9310acf36b480d31f0c1527520fe7376f7953ca /fluid/factory.cxx | |
| parent | 36546824762618bbe76d4ac72b632ca9927acd9f (diff) | |
Massive update to use strlcpy() and strlcat() instead of strncpy()
and strncat() in almost all places (there are still a few strncpy's
that need to be used...)
Added configure check for strlcat() and strlcpy().
Added emulation code for strlcat() and strlcpy().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2239 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/factory.cxx')
| -rw-r--r-- | fluid/factory.cxx | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/fluid/factory.cxx b/fluid/factory.cxx index 9185d5c04..e47718349 100644 --- a/fluid/factory.cxx +++ b/fluid/factory.cxx @@ -1,5 +1,5 @@ // -// "$Id: factory.cxx,v 1.4.2.11.2.7 2002/05/01 08:51:59 easysw Exp $" +// "$Id: factory.cxx,v 1.4.2.11.2.8 2002/05/16 12:47:43 easysw Exp $" // // Widget factory code for the Fast Light Tool Kit (FLTK). // @@ -35,30 +35,11 @@ #include <FL/Fl_Group.H> #include <FL/Fl_Menu_Item.H> #include <stdio.h> -#include <config.h> - -#include <string.h> - -#ifdef HAVE_STRINGS_H -# include <strings.h> -#endif // HAVE_STRINGS_H - -// Apparently Unixware defines "index" to strchr (!) rather than -// providing a proper entry point or not providing the (obsolete) -// BSD function. Make sure index is not defined... -#ifdef index -# undef index -#endif // index - -#if defined(WIN32) || defined(__EMX__) -#define strcasecmp stricmp -#endif +#include "../src/flstring.h" #include "Fl_Widget_Type.h" #if !HAVE_STRCASECMP -# include <ctype.h> - // // 'strcasecmp()' - Do a case-insensitive compare... // @@ -924,5 +905,5 @@ int lookup_symbol(const char *name, int &v, int numberok) { } // -// End of "$Id: factory.cxx,v 1.4.2.11.2.7 2002/05/01 08:51:59 easysw Exp $". +// End of "$Id: factory.cxx,v 1.4.2.11.2.8 2002/05/16 12:47:43 easysw Exp $". // |
