* harbour/bin/bld.bat
* added HB_USER_LIB var to bcc link line to make usable bldtest.bat
Question: Is there a way to build from bcc adding contrib libs ?
- harbour/contrib/gd/hbgd.txt
+ harbour/contrib/gd/doc/hbgd.txt
* moved in doc dir
+ harbour/contrib/gd/doc/COPYING
+ gd copyright text (it's free for any use, but this file has to be
reported)
+ harbour/contrib/gd/include/entities.h
+ harbour/contrib/gd/include/gd.h
+ harbour/contrib/gd/include/gd_io.h
+ harbour/contrib/gd/include/gdcache.h
+ harbour/contrib/gd/include/gdfontg.h
+ harbour/contrib/gd/include/gdfontl.h
+ harbour/contrib/gd/include/gdfontmb.h
+ harbour/contrib/gd/include/gdfonts.h
+ harbour/contrib/gd/include/gdfontt.h
+ harbour/contrib/gd/include/gdfx.h
+ harbour/contrib/gd/include/gdhelpers.h
+ harbour/contrib/gd/include/jisx0208.h
+ harbour/contrib/gd/include/wbmp.h
+ include files for compiling in windows environment
+ harbour/contrib/gd/tests/digits/57chevy.gif
+ harbour/contrib/gd/tests/digits/7seg.gif
+ harbour/contrib/gd/tests/digits/brsd.gif
+ harbour/contrib/gd/tests/digits/digib.gif
+ harbour/contrib/gd/tests/digits/fdb.gif
+ harbour/contrib/gd/tests/digits/jelly.gif
+ harbour/contrib/gd/tests/digits/odb.gif
+ harbour/contrib/gd/tests/digits/odw.gif
+ harbour/contrib/gd/tests/digits/pdg.gif
+ harbour/contrib/gd/tests/digits/pdw.gif
+ digits images for counter.prg sample
+ harbour/contrib/gd/gdexternal.ch
+ external declarations for use with linker
+ harbour/contrib/gd/make_b32.bat
+ harbour/contrib/gd/makefile.bc
+ harbour/contrib/gd/tests/bldtest.bat
+ harbour/contrib/gd/tests/bldtest.sh
+ make files
* harbour/contrib/gd/tests/images_in/conv_test.jpeg
* harbour/contrib/gd/tests/images_in/gdlogobig.png
* harbour/contrib/gd/tests/images_in/theclipper.gif
* updated images (I got them corrupted, probably is CVS ?)
* harbour/contrib/gd/README
* harbour/contrib/gd/gd.prg
* harbour/contrib/gd/gdbar.prg
* harbour/contrib/gd/gdbarcod.prg
* harbour/contrib/gd/gdchart.prg
* harbour/contrib/gd/gdimage.prg
* harbour/contrib/gd/gdwrp.c
* harbour/contrib/gd/tests/animgif.prg
* harbour/contrib/gd/tests/antialiased.prg
* harbour/contrib/gd/tests/barms.prg
* harbour/contrib/gd/tests/bartest.prg
* harbour/contrib/gd/tests/counter.prg
* harbour/contrib/gd/tests/gdtestcls.prg
* harbour/contrib/gd/tests/test_out.prg
* harbour/contrib/gd/tests/testdpi.prg
* harbour/contrib/gd/tests/tostring.prg
* fixed hbgd files
! Please test in other environment.
I have built harbour as downloaded from CVS,
no HB_COMPAT_XHB defined
62 lines
1.7 KiB
C
62 lines
1.7 KiB
C
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef GDHELPERS_H
|
|
#define GDHELPERS_H 1
|
|
|
|
/* sys/types.h is needed for size_t on Sparc-SunOS-4.1 */
|
|
#include <sys/types.h>
|
|
|
|
/* TBB: strtok_r is not universal; provide an implementation of it. */
|
|
|
|
char * gd_strtok_r (char *s, char *sep, char **state);
|
|
|
|
/* These functions wrap memory management. gdFree is
|
|
in gd.h, where callers can utilize it to correctly
|
|
free memory allocated by these functions with the
|
|
right version of free(). */
|
|
void *gdCalloc (size_t nmemb, size_t size);
|
|
void *gdMalloc (size_t size);
|
|
void *gdRealloc (void *ptr, size_t size);
|
|
|
|
/* Returns nonzero if multiplying the two quantities will
|
|
result in integer overflow. Also returns nonzero if
|
|
either quantity is negative. By Phil Knirsch based on
|
|
netpbm fixes by Alan Cox. */
|
|
|
|
int overflow2(int a, int b);
|
|
|
|
/* 2.0.16: portable mutex support for thread safety. */
|
|
|
|
#ifdef WIN32
|
|
/* 2.0.18: must include windows.h to get CRITICAL_SECTION. */
|
|
#include <windows.h>
|
|
#define gdMutexDeclare(x) CRITICAL_SECTION x
|
|
#define gdMutexSetup(x) InitializeCriticalSection(&x)
|
|
#define gdMutexShutdown(x) DeleteCriticalSection(&x)
|
|
#define gdMutexLock(x) EnterCriticalSection(&x)
|
|
#define gdMutexUnlock(x) LeaveCriticalSection(&x)
|
|
#else
|
|
#ifdef HAVE_PTHREAD
|
|
#include <pthread.h>
|
|
#define gdMutexDeclare(x) pthread_mutex_t x
|
|
#define gdMutexSetup(x) pthread_mutex_init(&x, 0)
|
|
#define gdMutexShutdown(x) pthread_mutex_destroy(&x)
|
|
#define gdMutexLock(x) pthread_mutex_lock(&x)
|
|
#define gdMutexUnlock(x) pthread_mutex_unlock(&x)
|
|
#else
|
|
#define gdMutexDeclare(x)
|
|
#define gdMutexSetup(x)
|
|
#define gdMutexShutdown(x)
|
|
#define gdMutexLock(x)
|
|
#define gdMutexUnlock(x)
|
|
#endif /* HAVE_PTHREAD */
|
|
#endif /* WIN32 */
|
|
|
|
#endif /* GDHELPERS_H */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|