diff options
author | Bastian Wissler | 2009-04-01 18:55:03 +0200 |
---|---|---|
committer | Bastian Wissler | 2009-04-01 18:55:03 +0200 |
commit | 8c7b37828c921c361b92f5d0003a488e8b2fb3d1 (patch) | |
tree | aac293d51c47c4b8a42ae14cbb95afb104b0c183 /fltk-2/include/fltk/string.h | |
parent | new version of vmchooser binary imported to 5.0-branch (diff) | |
download | vmchooser-8c7b37828c921c361b92f5d0003a488e8b2fb3d1.tar.gz vmchooser-8c7b37828c921c361b92f5d0003a488e8b2fb3d1.tar.xz vmchooser-8c7b37828c921c361b92f5d0003a488e8b2fb3d1.zip |
vmchooser source:
* Various fixes found by Valgrind
* libxml2 lib included
* fltk from weekly snapshot updated
git-svn-id: http://svn.openslx.org/svn/openslx/openslx-src-tools/vmchooser/trunk@2777 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'fltk-2/include/fltk/string.h')
-rw-r--r-- | fltk-2/include/fltk/string.h | 89 |
1 files changed, 0 insertions, 89 deletions
diff --git a/fltk-2/include/fltk/string.h b/fltk-2/include/fltk/string.h deleted file mode 100644 index 84e283a..0000000 --- a/fltk-2/include/fltk/string.h +++ /dev/null @@ -1,89 +0,0 @@ -/* "$Id: string.h 5961 2007-10-17 20:54:58Z spitzak $" - * - * Copyright 1998-2006 by Bill Spitzak and others. - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * Please report all bugs and problems to "fltk-bugs@fltk.org". - */ - -/*! \file - - Provides definitions for C string manipulation functions so that - portable programs may be written. None of these functions are in - the fltk namespace. - - In most cases the functions are provided by your operation system, - or are simple renames of operating system functions. - - This file is designed to work on Windows, Linux, and BSD systems. - It may need to be edited to work on other systems. Please try - to do this by adding #if statements so this file remains portable. - - Some versions of fltk wrote this file using autoconf. I never liked - this because I could not share the header file between systems, so - I have reverted to a constant version. -*/ - -#ifndef fltk_string_h -#define fltk_string_h - -#ifndef DOXYGEN - -# include <string.h> -# include <stdarg.h> /* for va_list */ -# include <stdio.h> /* for sprintf, vsprintf, snprintf and vsnprintf */ - -/* Windows has equivalent functions, but being Microsoft they added - gratuitoius changes to the names to stop code from being portable: */ -#if (defined(_WIN32) && !defined(__CYGWIN__)) || defined(__EMX__) -# define strcasecmp(s,t) _stricmp(s, t) -# define strncasecmp(s,t,n) _strnicmp(s, t, n) -# define vsnprintf _vsnprintf -# define snprintf _snprintf -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -#endif - -#include "FL_API.h" - -FL_API extern char* newstring(const char *); - -#if defined(DOXYGEN) || defined(__MWERKS__) -FL_API extern int strcasecmp(const char *, const char *); -FL_API extern int strncasecmp(const char *, const char *, size_t); -#endif - -#if defined(DOXYGEN) || !defined(__linux) && !defined(_WIN32) && !defined(__FreeBSD__) && !defined(__APPLE__) -FL_API extern int snprintf(char *, size_t, const char *, ...); -FL_API extern int vsnprintf(char *, size_t, const char *, va_list ap); -#endif - -#if defined(DOXYGEN) || !defined(__FreeBSD__) && !defined(__APPLE__) -FL_API extern size_t strlcat(char *, const char *, size_t); -FL_API extern size_t strlcpy(char *, const char *, size_t); -#endif - -#ifdef __cplusplus -} -#endif - -#endif - -/* - * End of "$Id: string.h 5961 2007-10-17 20:54:58Z spitzak $". - */ |