Files
xlhtml/xlhtml/xlhtml.h
2002-03-20 15:31:36 +00:00

46 lines
1.7 KiB
C

#if !(defined( __BORLANDC__ ) || defined( __WIN32__ ))
#include "config.h" /* Created by ./configure script */
#include "support.h" /* Needs to be before internal.h */
#include "internal.h" /* Needs to be before cole */
#include "cole.h"
#else
#include "config.h.in" /* Created by ./configure script */
#include "support.h" /* Needs to be before internal.h */
#include "internal.h" /* Needs to be before cole */
#include "cole.h.in"
#include <io.h> /* for umask */
#include <dir.h>
#endif
#include <stdlib.h> /* For atof(), calloc() */
#include <string.h> /* For string functions */
#include <math.h> /* For fabs() */
#include <ctype.h> /* For isprint() */
#include <errno.h>
/* Used by packed string array Opcode: 0xFC */
#define HARD_MAX_ROWS_97 0x7FFE /*!< Used in add_wb_array to prevent OOM */
#define HARD_MAX_ROWS_95 0x3FFF /*!< Used in add_wb_array to prevent OOM */
#define HARD_MAX_COLS 256 /*!< Used in add_wb_array to prevent OOM */
U16 HARD_MAX_ROWS = HARD_MAX_ROWS_97;
/**********************************
*
* Don't change anything below here...
*
************************************/
#if defined( __WIN32__ ) || defined( __BORLANDC__ )
#define VERSION "0.4.9.1"
#endif
#define PRGNAME "xlhtml"
#define WBUFF_SIZE 8240 /*!< The working buffer. SB 522+10+4(header) bytes minimum = 536 */
#define MAX_COLORS 65 /*!< This is the size of the built-in color table */
#define EXCEL95 0x500 /*!< This is the file stamp for biff7 - Excel 5 & 95 */
#define EXCEL97 0x600 /*!< This is the file stamp for biff8 - Excel 97 & 2000 */
#if !(defined( __WIN32__ ) || defined( __BORLANDC__ ))
#include <sys/stat.h>
#define GLOBAL_UMASK (S_IXUSR|S_IWGRP|S_IRGRP|S_IXGRP|S_IWOTH|S_IROTH|S_IXOTH)
#else
#define GLOBAL_UMASK (2)
#endif