- cximagemng_src.zip
- CxImage
- cximamng.htm
- CxImgLib.dsw
- demo
- flake.mng
- jpeg
- change.log
- filelist.txt
- Jcapimin.c
- JCAPISTD.C
- JCCOEFCT.C
- JCCOLOR.C
- JCDCTMGR.C
- JCHUFF.C
- JCHUFF.H
- JCINIT.C
- JCMAINCT.C
- JCMARKER.C
- JCMASTER.C
- JCOMAPI.C
- Jconfig.h
- JCPARAM.C
- JCPHUFF.C
- JCPREPCT.C
- JCSAMPLE.C
- JCTRANS.C
- Jdapimin.c
- JDAPISTD.C
- JDATADST.C
- JDATASRC.C
- JDCOEFCT.C
- JDCOLOR.C
- JDCT.H
- JDDCTMGR.C
- JDHUFF.C
- JDHUFF.H
- JDINPUT.C
- JDMAINCT.C
- JDMARKER.C
- JDMASTER.C
- JDMERGE.C
- JDPHUFF.C
- JDPOSTCT.C
- JDSAMPLE.C
- JDTRANS.C
- JERROR.C
- JERROR.H
- JFDCTFLT.C
- JFDCTFST.C
- JFDCTINT.C
- JIDCTFLT.C
- JIDCTFST.C
- JIDCTINT.C
- JIDCTRED.C
- JINCLUDE.H
- JMEMMGR.C
- JMEMNOBS.C
- JMEMSYS.H
- Jmorecfg.h
- Jpeg.dsp
- Jpeg.dsw
- JPEGINT.H
- JPEGLIB.H
- JQUANT1.C
- JQUANT2.C
- JUTILS.C
- JVERSION.H
- Readme.txt
- mng
- text1.mng
- text2.mng
- zlib
|
/*
* jinclude.h
*
* Copyright (C) 1991-1994, Thomas G. Lane.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
* This file exists to provide a single place to fix any problems with
* including the wrong system include files. (Common problems are taken
* care of by the standard jconfig symbols, but on really weird systems
* you may have to edit this file.)
*
* NOTE: this file is NOT intended to be included by applications using the
* JPEG library. Most applications need only include jpeglib.h.
*/
/* Include auto-config file to find out which system include files we need. */
#include "jconfig.h" /* auto configuration options */
#define JCONFIG_INCLUDED /* so that jpeglib.h doesn't do it again */
/*
* We need the NULL macro and size_t typedef.
* On an ANSI-conforming system it is sufficient to include <stddef.h>.
* Otherwise, we get them from <stdlib.h> or <stdio.h>; we may have to
* pull in <sys/types.h> as well.
* Note that the core JPEG library does not require <stdio.h>;
* only the default error handler and data source/destination modules do.
* But we must pull it in because of the references to FILE in jpeglib.h.
* You can remove those references if you want to compile without <stdio.h>.
*/
#ifdef HAVE_STDDEF_H
#include <stddef.h>
#endif
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef NEED_SYS_TYPES_H
#include <sys/types.h>
#endif
#include <stdio.h>
/*
* We need memory copying and zeroing functions, plus strncpy().
* ANSI and System V implementations declare these in <string.h>.
* BSD doesn't have the mem() functions, but it does have bcopy()/bzero().
* Some systems may declare memset and memcpy in <memory.h>.
*
* NOTE: we assume the size parameters to these functions are of type size_t.
* Change the casts in these macros if not!
*/
#ifdef NEED_BSD_STRINGS
#include <strings.h>
#define MEMZERO(target,size) bzero((void *)(target), (size_t)(size))
#define MEMCOPY(dest,src,size) bcopy((const void *)(src), (void *)(dest), (size_t)(size))
#else /* not BSD, assume ANSI/SysV string lib */
#include <string.h>
#define MEMZERO(target,size) memset((void *)(target), 0, (size_t)(size))
#define MEMCOPY(dest,src,size) memcpy((void *)(dest), (const void *)(src), (size_t)(size))
#endif
/*
* In ANSI C, and indeed any rational implementation, size_t is also the
* type returned by sizeof(). However, it seems there are some irrational
* implementations out there, in which sizeof() returns an int even though
* size_t is defined as long or unsigned long. To ensure consistent results
* we always use this SIZEOF() macro in place of using sizeof() directly.
*/
#define SIZEOF(object) ((size_t) sizeof(object))
/*
* The modules that use fread() and fwrite() always invoke them through
* these macros. On some systems you may need to twiddle the argument casts.
* CAUTION: argument order is different from underlying functions!
*/
#define JFREAD(file,buf,sizeofbuf) \
((size_t) fread((void *) (buf), (size_t) 1, (size_t) (sizeofbuf), (file)))
#define JFWRITE(file,buf,sizeofbuf) \
((size_t) fwrite((const void *) (buf), (size_t) 1, (size_t) (sizeofbuf), (file)))
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.