summaryrefslogtreecommitdiff
path: root/src/flstring.h
AgeCommit message (Collapse)Author
2020-08-01Implement + deploy fl_strdup()Greg Ercolano
2020-07-06Remove $Id$ tags, update URL's, and moreAlbrecht Schlosser
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
2020-01-16Don't include 'src/flstring.h' in menubar demoAlbrecht Schlosser
src/flstring.h should only be used in library code because it includes <config.h>. Document this fact in src/flstring.h.
2018-02-09Replace "WIN32" with "_WIN32" or "Windows".Albrecht Schlosser
Replace compiler/preprocessor/platform macro "WIN32" with "_WIN32". Replace "WIN32" in text and documentation with "Windows". Replace "MSWindows" with "Windows". To do: README.Windows.txt (and maybe other documentation as well) needs updates. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12655 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-15Replace inappropriate usage of __WATCOM__ with _MSC_VER.Albrecht Schlosser
Note: this is in parts temporary since some of the functions redefined for Visual Studio will be replaced with fl_*() functions in later commits. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12498 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-14Fix conditional compilation under Windows.Albrecht Schlosser
Target of the condition was MS Visual Studio, hence the replacement of "ifndef __WATCOMC__" with "#if defined(_MSC_VER)". Tested under Windows with MinGW and Visual Studio 2015. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12495 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-12Remove obsolete EMX (DOS, OS/2 extender) support.Albrecht Schlosser
This commit changes all files except src/Fl_File_Chooser2.cxx. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11590 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-11Fix VisualC++ build (Visual Studio 2015).Albrecht Schlosser
IDE generated with CMake, still many warnings, but compiles and runs. Note: we *must* get rid of all VisualStudio-specific #define's like: #define unlink _unlink This one led to a compilation error (not a warning). src/Fl_File_Icon.cxx: I had to add _MSC_VER (WIN32) distinction as in previous code (FLTK 1.3). Obviously MinGW is more Unixy than MS VC++ since MinGW compiled and linked the code. Needs a better fix ... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11580 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-31Fix compiler warnings (STR 2988), porting from branch-1.3.Albrecht Schlosser
This commit is the accumulated patch introduced in branch 1.3 in svn r 11094, 11095, and 11096. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11097 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-21Fix strcasecmp() issues (again), see STR #2994.Albrecht Schlosser
This new temporary fix improves handling of strcasecmp() for CMake-generated Makefiles (cmake -G "MSYS Makefiles" ..). For some unknown reason (maybe other compiler flags?) this showed lots of *warnings* again. A better fix (replacing direct calls to strcasecmp() with fl_strcasecmp() or similar will follow later. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10074 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-06Minor comments formatting discrepancies fix.Fabien Costantini
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9573 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-26SGI fixes.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9549 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-21STR 2771 fix: introduce a new ascii strcasecmp that does not rely on locale ↵Fabien Costantini
sensitive toupper tolower. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9368 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-19Modifications to all LGPL headers for STR #2685.Greg Ercolano
(to clarify static exception LGPL by changing license references) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8864 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-29More copyright 2010 mods.Greg Ercolano
Used: vi `grep -r 'Copyright .*Spitzak' . | grep -v 2010 | grep -v '/\.svn' | cut -d: -f1` git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7913 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-29Removed Metrowerks support for Apple builds.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7352 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-14Fixes for SGI builds (STR#2174)Greg Ercolano
1) C++ style comments in C files converted to /* */ 2) #warning's had to be #ifdef'ed out (#if !defined(sgi)..) With these mods, 1.3.x compiles on IRIX 6.5 with no failures. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6680 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-01-01Changed Copyright in 'src' directoryMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6616 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-20Update copyright years and use "#ifndef" instead of "#if !defined".Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5701 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-20Fixed Watcom compiler setup without verification using a patch by mnieuwMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5699 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-27VC++ 2005 Support, drop old files, add icons for SudokuMichael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4660 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-16Update source file headers with STR web page.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4288 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-10The FLTK string functions are now compiled in on all systems (STRMichael R Sweet
#774) src/vsnprintf.c: - Replaced fl_vsnprintf() implementation with one that properly emulates the vsnprintf() function. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4262 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-24Copyright updates.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4052 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-04-11Copyright updates and prep for 1.1.5rc1.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3391 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-04-03- sorted fluid menu barMatthias Melcher
- fixed some minor Valgrind memory checker complaints - added conditional compile flag for OS X w/ MetroWerks compiler git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2967 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-01-30Copyright update for 1.1.3 release (not quite yet, but soon...)Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2936 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-17Use parenthesis for "#if defined foo" -> "#if defined(foo)" - portability.Michael R Sweet
Use ANSI C comments in flstring.h, which is included from both C++ and C code. Move prototypes for OSX inside existing "C" wrapper in flstring.h. Simplify M_PI and M_SQRT2 definitions in FL/math.h; no need to define them twice... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2537 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-17First steps in CodeWarrior on OS_X support.Matthias Melcher
(Praise the day when I finally stop screwing up cvs ;-/ ) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2536 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-14More FL_EXPORT stuff for WIN32.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2529 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-19Add -sgi_version,sgi1.1 to the IRIX DSO command.Michael R Sweet
Add Fl_Shared_Image.html to the list of HTML files to install. Change C++ command to C in src/flstring.h. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2244 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-16Massive update to use strlcpy() and strlcat() instead of strncpy()Michael R Sweet
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
2002-04-29Re-import the *current* version of Matthias's code, with appropriateMichael R Sweet
buffer limiting fixes, include "flstring.h" instead of <string.h>, and replace all use of bool, true, and false, with char, 1, and 0. (bool is not universally supported by the C++ compilers we currently use with FLTK 1.x, so 1.x cannot use bool, true, or false without a lot of configure crap that will make use/distribution a lot more difficult...) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2132 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-28Change C++ comments in flstring.h to C comments...Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2047 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-25Don't use the snprintf() and vsnprintf() names; instead, use fl_snprintf()Michael R Sweet
and fl_vsnprintf() and define snprintf and vsnprintf to fl_... (Some compilers treat snprintf() and vsnprintf() differently, and we also don't want to collide with other libraries that might provide their own implementation...) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2031 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-15Unixware fixes.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1931 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-25Add flstring.h header file to include string functions, strcasecmpMichael R Sweet
definitions, and (v)snprintf function declarations... Fix Fl_File_Chooser so it always checks for an empty directory_ (so that is doesn't add the leading slash to drive letters and mount points) Make Fl_File_Icon use Fl_Shared_Image, and look in all KDE icon directories. Fl::error() no longer exits by default; only Fl::fatal() does... Wasn't doing callbacks in Fl_Tabs when the current tab was changed via the keyboard. FLUID wasn't writing the tooltips in message files, and didn't count tooltips when computing the message number for catgets. Update dependencies. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1729 ea41ed52-d2ee-0310-a9c1-e6b18d33e121