1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 16:57:16 +01:00
SqMod/vendor/POCO/PDF/include/Poco/PDF/hpdf_conf.h
Sandu Liviu Catalin 4a6bfc086c Major plugin refactor and cleanup.
Switched to POCO library for unified platform/library interface.
Deprecated the external module API. It was creating more problems than solving.
Removed most built-in libraries in favor of system libraries for easier maintenance.
Cleaned and secured code with help from static analyzers.
2021-01-30 08:51:39 +02:00

86 lines
2.7 KiB
C

/*
* << Haru Free PDF Library >> -- hpdf_conf.h
*
* URL: http://libharu.org
*
* Copyright (c) 1999-2006 Takeshi Kanno <takeshi_kanno@est.hi-ho.ne.jp>
* Copyright (c) 2007-2009 Antony Dovgal <tony@daylessday.org>
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appear in all copies and
* that both that copyright notice and this permission notice appear
* in supporting documentation.
* It is provided "as is" without express or implied warranty.
*
*/
#ifndef _HPDF_CONF_H
#define _HPDF_CONF_H
#include <stdlib.h>
#include <stdio.h>
#if defined(_MSC_VER)
#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES 1
#endif /* _USE_MATH_DEFINES */
#endif
#ifndef __USE_XOPEN
#define __USE_XOPEN /* for M_PI */
#endif /* __USE_XOPEN */
#include <math.h>
/*----------------------------------------------------------------------------*/
/*----- standard C library functions -----------------------------------------*/
#define HPDF_FOPEN fopen
#define HPDF_FCLOSE fclose
#define HPDF_FREAD fread
#define HPDF_FWRITE fwrite
#define HPDF_FFLUSH fflush
#define HPDF_FSEEK fseek
#define HPDF_FTELL ftell
#define HPDF_FEOF feof
#define HPDF_FERROR ferror
#define HPDF_MALLOC malloc
#define HPDF_FREE free
#define HPDF_FILEP FILE*
#define HPDF_TIME time
#define HPDF_PRINTF printf
#define HPDF_SIN sin
#define HPDF_COS cos
/*----------------------------------------------------------------------------*/
/*----- parameters in relation to performance --------------------------------*/
/* default buffer size of memory-stream-object */
#define HPDF_STREAM_BUF_SIZ 4096
/* default array size of list-object */
#define HPDF_DEF_ITEMS_PER_BLOCK 20
/* default array size of cross-reference-table */
#define HPDF_DEFALUT_XREF_ENTRY_NUM 1024
/* default array size of widths-table of cid-fontdef */
#define HPDF_DEF_CHAR_WIDTHS_NUM 128
/* default array size of page-list-tablef */
#define HPDF_DEF_PAGE_LIST_NUM 256
/* default array size of range-table of cid-fontdef */
#define HPDF_DEF_RANGE_TBL_NUM 128
/* default buffer size of memory-pool-object */
#define HPDF_MPOOL_BUF_SIZ 8192
#define HPDF_MIN_MPOOL_BUF_SIZ 256
#define HPDF_MAX_MPOOL_BUF_SIZ 1048576
/* alignment size of memory-pool-object
*/
#define HPDF_ALIGN_SIZ sizeof int;
#endif /* _HPDF_CONF_H */