00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00048 #ifndef DKTYPES_INC
00049
00051 #define DKTYPES_INC 1
00052
00053 #ifndef DKCONFIG_INC
00054 #include <dkconfig.h>
00055 #endif
00056
00057 #include <stdio.h>
00058
00059 #if DK_HAVE_LIMITS_H
00060 #include <limits.h>
00061 #endif
00062 #if DK_HAVE_SYS_PARAM_H
00063 #include <sys/param.h>
00064 #endif
00065
00066 #if DK_HAVE_SYS_TYPES_H
00067 #include <sys/types.h>
00068 #endif
00069
00070 #if DK_HAVE_SYS_STAT_H
00071 #include <sys/stat.h>
00072 #endif
00073
00074 #if DK_HAVE_SYS_SOCKET_H
00075 #include <sys/socket.h>
00076 #else
00077 #if DK_HAVE_WINSOCK2_H
00078 #ifndef WINSOCK2_INCLUDED
00079 #include <winsock2.h>
00080 #define WINSOCK2_INCLUDED 1
00081 #endif
00082 #endif
00083 #endif
00084
00085 #if DK_TIME_WITH_SYS_TIME
00086 #include <sys/time.h>
00087 #include <time.h>
00088 #else
00089 #if DK_HAVE_SYS_TIME_H
00090 #include <sys/time.h>
00091 #else
00092 #if DK_HAVE_TIME_H
00093 #include <time.h>
00094 #endif
00095 #endif
00096 #endif
00097 #if DK_HAVE_STDDEF_H
00098 #include <stddef.h>
00099 #endif
00100 #if DK_HAVE_UNISTD_H
00101 #include <unistd.h>
00102 #endif
00103 #if DK_HAVE_DIRECT_H
00104 #include <direct.h>
00105 #endif
00106 #if DK_HAVE_DIRENT_H
00107 #include <dirent.h>
00108 #endif
00109 #if DK_HAVE_DIR_H
00110 #include <dir.h>
00111 #endif
00112 #if DK_HAVE_IO_H
00113 #include <io.h>
00114 #endif
00115 #if DK_HAVE_NETINET_IN_H
00116 #include <netinet/in.h>
00117 #endif
00118 #if DK_HAVE_FCNTL_H
00119 #include <fcntl.h>
00120 #endif
00121 #if DK_HAVE_TERMIOS_H
00122 #include <termios.h>
00123 #endif
00124 #if DK_HAVE_SYS_TERMIOS_H
00125 #include <sys/termios.h>
00126 #endif
00127 #if DK_HAVE_SYS_TTOLD_H
00128 #include <sys/ttold.h>
00129 #endif
00130 #if DK_HAVE_WINCON_H
00131 #include <wincon.h>
00132 #endif
00133 #if DK_HAVE_WCHAR_H
00134 #include <wchar.h>
00135 #endif
00136 #if DK_HAVE_ZLIB_H
00137 #include <zlib.h>
00138 #endif
00139
00140 #include <dkwin.h>
00141
00142 #if defined(PATH_MAX)
00143
00144 #define DK_MAX_PATH (PATH_MAX + 1)
00145 #else
00146 #if defined(MAXPATHLEN)
00147
00148 #define DK_MAX_PATH (MAXPATHLEN + 1)
00149 #else
00150
00151 #define DK_MAX_PATH 1025
00152 #endif
00153 #endif
00154
00156 #define DK_MAX_DOUBLE 1.7e308
00157
00158 #if defined(__BORLANDC__)
00159
00160 typedef int mode_t;
00161 #endif
00162
00163 #if !DK_HAVE_WCHAR_T
00164 #if !DK_HAVE_WCHAR_H
00165 #if !WCHAR_T_DEFINED
00166
00167 #define WCHAR_T_DEFINED 1
00168
00169 typedef unsigned short wchar_t;
00170 #endif
00171 #endif
00172 #endif
00173
00174
00175
00176
00177
00179 typedef char *dk_str;
00180
00182 typedef dk_str *dk_str_ptr;
00183
00185 typedef char dk_byte;
00186
00188 typedef unsigned char dk_ubyte;
00189
00191 typedef short dk_word;
00192
00194 typedef unsigned short dk_uword;
00195
00197 typedef long dk_dword;
00198
00200 typedef unsigned long dk_udword;
00201
00202
00203
00205 typedef void dk_signal_ret_t;
00206
00208 typedef dk_signal_ret_t dk_signal_fct_t DK_PR((int));
00209
00211 typedef dk_signal_fct_t *dk_signal_disp_t;
00212
00213
00214
00215 #if defined(__cplusplus)
00216 extern "C" {
00217 #endif
00218
00219 typedef dk_signal_ret_t dk_extc_signal_fct_t DK_PR((int));
00220 #if defined(__cplusplus)
00221 }
00222 #endif
00223
00224 typedef dk_extc_signal_fct_t *dk_extc_signal_disp_t;
00225
00226
00227
00229 typedef char * dk_fct_type_ss DK_PR((\
00230 void *obj, char *table, char *key, char *def\
00231 ));
00232
00233
00234
00236 typedef void dk_fct_type_log DK_PR((void *obj, int level, char **ptr, int num));
00237
00238
00239
00241 #if DK_HAVE_LONG_LONG_INT
00242 typedef long long unsigned dk_long_long_unsigned_t;
00243 #else
00244 typedef long unsigned dk_long_long_unsigned_t;
00245 #endif
00246
00248 #if DK_HAVE_LONG_LONG_INT
00249 typedef long long dk_long_long_int_t;
00250 #else
00251 typedef long dk_long_long_int_t;
00252 #endif
00253
00254
00256 #if DK_HAVE_SOCKLEN_T
00257 #define dk_socklen_t socklen_t
00258 #else
00259 #if DK_HAVE_SIZE_T
00260 #define dk_socklen_t size_t
00261 #else
00262 #define dk_socklen_t unsigned int
00263 #endif
00264 #endif
00265
00266
00268 #ifdef _WIN32
00269 #define dk_read_write_t int
00270 #else
00271 #define dk_read_write_t ssize_t
00272 #endif
00273
00274
00279 typedef struct {
00280 char *key;
00281 char *value;
00282 } dk_key_value_t ;
00283
00284
00285
00289 #define DK_KEY_VALUE_ARRAY_SIZE(x) (sizeof(x)/sizeof(dk_key_value_t))
00290
00291
00292
00293
00294
00295
00296
00297
00298
00299
00300
00305 typedef struct _dk_font_ {
00306 char *texname;
00307 char *psname;
00308 int features;
00309 char *svgFontFamily;
00310 char *gs_alias;
00311 char *gs_actual;
00312 char *svgFontId;
00313 char *gs_new;
00314 } dk_font_t;
00315
00316
00317
00321 typedef struct {
00322 char *key;
00323 char **value_pointer;
00324 char *default_value;
00325 } dk_string_finder_t;
00326
00327
00328
00332 typedef struct {
00333 unsigned char *data;
00334 size_t bits;
00335 } dk_bitfield_t ;
00336
00337
00338
00342 typedef struct {
00343 unsigned char **data;
00344 size_t c;
00345 size_t r;
00346 } dk_bitmatrix_t;
00347
00348
00349
00354 typedef struct {
00355
00356 #if VERSION_BEFORE_2009_01_27
00357
00358 #if DK_HAVE_SYS_STAT_H
00359 #if DK_HAVE_STAT
00360 struct stat st;
00361 #else
00362 #if DK_HAVE__STAT
00363 struct _stat st;
00364 #endif
00365 #endif
00366 #if DK_HAVE_LSTAT
00367 struct stat lst;
00368 #endif
00369 #endif
00370
00371 #endif
00372
00373 int permissions;
00374 int filetype;
00375 unsigned long inode_number;
00376 unsigned long device_number;
00377 unsigned long rdevice_number;
00378 unsigned long number_of_links;
00379 dk_long_long_unsigned_t size;
00380 int size_math_error;
00381 long uid;
00382 long gid;
00383 char ctime[24];
00384 char atime[24];
00385 char mtime[24];
00386 short is_far_link;
00387 struct tm ori_ctime;
00388 struct tm ori_atime;
00389 struct tm ori_mtime;
00390 unsigned char ud;
00391 unsigned char gd;
00392 } dk_stat_t;
00393
00394
00395
00400 typedef struct {
00401 char *dirname;
00402 char *shortname;
00403 char *fullname;
00404 dk_stat_t stbuf;
00405 int state;
00406 long maxpathlen;
00407 int error_code;
00408 #if defined(WIN32) || defined(_WIN32)
00409
00410 #if DK_HAVE__FINDFIRST64
00411
00412 long hFile64;
00413 struct __finddata64_t fdt64;
00414 #else
00415 #if DK_HAVE__FINDFIRST32
00416
00417 long hFile32;
00418 struct __finddata32_t fdt32;
00419 #else
00420 #if DK_HAVE__FINDFIRST
00421
00422 long hFile;
00423 struct _finddata_t fdt;
00424 #endif
00425 #endif
00426 #endif
00427
00428 #else
00429 #if DK_HAVE_FINDFIRST
00430
00431 struct ffblk ffblk;
00432 #else
00433 #if DK_HAVE_DIRENT_H
00434
00435 DIR *dir;
00436 #else
00437
00438 #endif
00439 #endif
00440 #endif
00441
00442 } dk_dir_t;
00443
00444
00445
00450 typedef dk_dir_t dk_fne_t ;
00451
00452
00453
00455 typedef struct {
00456 void *obj;
00457 dk_fct_type_log *fct;
00458 int level;
00459 int maxlevel;
00460 } dk_log_t;
00461
00462
00463
00465 typedef struct {
00466 void *obj;
00467 dk_fct_type_ss *fct;
00468 } dk_ss_t;
00469
00470
00471
00476 typedef struct {
00477 int cmd;
00479 struct {
00480 char *buffer;
00481 size_t length;
00482 int cmd;
00483 } params;
00485 struct {
00486 char *buffer;
00487 size_t length;
00488 size_t used;
00489 } results;
00490 int return_value;
00491 int error_code;
00492 void *strm;
00493 } dk_stream_api_t;
00494
00495
00496
00499 typedef void dk_stream_fct_t DK_PR((dk_stream_api_t *api));
00500
00501
00502
00506 typedef struct {
00507 dk_stream_api_t api;
00508 void *data;
00509 dk_stream_fct_t *fct;
00510 unsigned long bytes;
00511 int flags;
00512 int opt;
00513 } dk_stream_t;
00514
00515
00516
00521 typedef struct {
00522 dk_stream_t *s;
00523 int flags;
00524 } dk_stream_wrapper_t;
00525
00526
00527
00528 #if 0
00529
00531 typedef struct {
00532 dk_stream_t *target;
00533 char *rlbuffer;
00534 char *flate_inbuffer;
00535 char *flate_outbuffer;
00536 int flags;
00537 size_t rlb_size;
00538 size_t fib_size;
00539 size_t fob_size;
00540 } dk_output_encoder_t;
00541 #endif
00542
00543
00545 typedef dk_stream_t *
00546 dk_stream_open_fct_t DK_PR((char *name, char *mode, int ign, int *reason));
00547
00548
00549
00554 typedef struct {
00555 char *suffix;
00556 dk_stream_open_fct_t *fct;
00557 } dk_stream_suffix_t;
00558
00559
00560
00564 struct _dk_storage_node {
00565 struct _dk_storage_node *p;
00566 struct _dk_storage_node *l;
00567 struct _dk_storage_node *r;
00568 short b;
00569 short w;
00570 void *o;
00572 union {
00573 char c;
00574 unsigned char uc;
00575 short s;
00576 unsigned short us;
00577 int i;
00578 unsigned int ui;
00579 long l;
00580 unsigned long ul;
00581 float f;
00582 double d;
00583 } v;
00584 };
00585
00587 typedef struct _dk_storage_node dk_storage_node_t;
00588
00590 typedef dk_storage_node_t *dk_storage_node_p;
00591
00592
00593
00600 typedef char dk_fct_eval_c_t(void *obj, int crit);
00601
00603 typedef unsigned char dk_fct_eval_uc_t(void *obj, int crit);
00604
00606 typedef short dk_fct_eval_s_t(void *obj, int crit);
00607
00609 typedef unsigned short dk_fct_eval_us_t(void *obj, int crit);
00610
00612 typedef int dk_fct_eval_i_t(void *obj, int crit);
00613
00615 typedef unsigned int dk_fct_eval_ui_t(void *obj, int crit);
00616
00618 typedef long dk_fct_eval_l_t(void *obj, int crit);
00619
00621 typedef unsigned long dk_fct_eval_ul_t(void *obj, int crit);
00622
00624 typedef float dk_fct_eval_f_t(void *obj, int crit);
00625
00627 typedef double dk_fct_eval_d_t(void *obj, int crit);
00628
00630 typedef int dk_fct_comp_t(void *o1, void *o2, int crit);
00631
00632
00633
00637 typedef struct {
00638 dk_storage_node_p *d;
00639 short l;
00640 dk_storage_node_t *r;
00641 int h;
00642 int c;
00643 int t;
00645 union {
00646 dk_fct_eval_c_t *c;
00647 dk_fct_eval_uc_t *uc;
00648 dk_fct_eval_s_t *s;
00649 dk_fct_eval_us_t *us;
00650 dk_fct_eval_i_t *i;
00651 dk_fct_eval_ui_t *ui;
00652 dk_fct_eval_l_t *l;
00653 dk_fct_eval_ul_t*ul;
00654 dk_fct_eval_f_t *f;
00655 dk_fct_eval_d_t *d;
00656 dk_fct_comp_t *comp;
00657 } e;
00658 void *i;
00659 } dk_storage_t;
00660
00661
00662
00666 struct _dk_storage_iterator {
00667 struct _dk_storage_iterator *l;
00668 struct _dk_storage_iterator *r;
00669 dk_storage_t *s;
00670 dk_storage_node_t *c;
00671 };
00673 typedef struct _dk_storage_iterator dk_storage_iterator_t;
00674
00675
00676
00680 typedef struct {
00681 dk_uword vers_major;
00682 dk_uword vers_minor;
00683 dk_uword elems;
00684 char **keys;
00685 char **values;
00686 } dk_stt_t;
00687
00688
00689
00693 typedef struct {
00694 char *n;
00695 char *v;
00696 int p;
00697 } dk_preference_t;
00698
00699
00700
00701
00705 typedef struct {
00706 struct {
00707 struct {
00708 int argc;
00709 char **argv;
00710 } o;
00711 struct {
00712 int argc;
00713 char **argv;
00714 } a;
00715 } a;
00716 struct {
00717 char *u;
00718 char *a;
00719 char *h;
00720 char *g;
00721 } n;
00722 struct {
00723 char *h;
00724 char *t;
00725 char *a;
00726 char *s;
00727 char *pt;
00728 char *etc;
00729 } d;
00730 struct {
00732 dk_storage_t *c;
00733 dk_storage_iterator_t *ci;
00735 dk_storage_t *a;
00736 dk_storage_iterator_t *ai;
00737 #if DK_HAVE_WINREG_H
00738
00739 int what;
00740 HKEY hklm_all;
00741 HKEY hklm_app;
00742 HKEY hkcu_all;
00743 HKEY hkcu_app;
00744 #else
00745
00746 dk_storage_t *s;
00748 dk_storage_iterator_t *si;
00750 dk_storage_t *u;
00752 dk_storage_iterator_t *ui;
00753 #endif
00754 int unc;
00755 int prf;
00756 } p;
00757 struct {
00758 char *f;
00759 char *d;
00760 } x;
00761 struct {
00762 int max;
00763 int nostdio;
00764 struct {
00765 int m;
00766 int f;
00767 unsigned char *c;
00768 int ide_type;
00769 } o;
00770 struct {
00771 int m;
00772 int f;
00773 unsigned char *c;
00774 int ide_type;
00775 } e;
00776 struct {
00777 int m;
00778 int k;
00779 int f;
00780 FILE *t;
00781 char *n;
00782 unsigned char *c;
00783 int ide_type;
00784 } f;
00785 #if DK_HAVE_SYSLOG
00786 struct {
00787 int m;
00788 char *i;
00789 int f;
00790 int o;
00791 } s;
00792 #endif
00793 struct {
00794 char *n;
00795 unsigned long lineno;
00796 } ef;
00797 } l;
00798 struct {
00799 char *l;
00800 char *r;
00801 char *e;
00802 dk_storage_t *s;
00803 dk_storage_iterator_t *si;
00804 int es;
00805 } loc;
00806 struct {
00807 unsigned long l;
00808 } td;
00809 struct {
00810 int prng_type;
00811 char *seed_file_name;
00812 } random;
00813 int relaxed_fopen_check;
00814 int relaxed_fopen_reason;
00815 int keep_temp_dir;
00816 } dk_app_t;
00817
00818
00822 #if DK_HAVE_PROTOTYPES
00823 typedef int dk_fct_tokenizer(void *data, void *tok, char *s, int *err);
00824 #else
00825 typedef int dk_fct_tokenizer();
00826 #endif
00827
00828
00829
00834 typedef struct {
00835 char *token_buffer;
00836 size_t buffer_size;
00837 size_t buffer_used;
00838 char **quotes;
00839 char *sct;
00840 char *whsp;
00841 char *nl;
00842 char comment;
00843 char *endquote;
00844 int error_code;
00845 dk_fct_tokenizer *fct;
00846 void *user_data;
00847 int state;
00848 unsigned long lineno;
00849 } dk_tokenizer_t ;
00850
00851
00852
00856 typedef struct {
00857 int what;
00858 union {
00859 struct {
00860 char *buffer;
00861 size_t lgt;
00862 size_t used;
00863 } b;
00864 struct {
00865 unsigned long a85val;
00866 size_t used;
00867 size_t linepos;
00868 size_t maxlinepos;
00869 int fl;
00870 } a85;
00871 struct {
00872 size_t linepos;
00873 size_t maxlinepos;
00874 int fl;
00875 } ah;
00876 struct {
00877 char *buffer;
00878 char lc;
00879 size_t used;
00880 int st;
00881 } rl;
00882 #if DK_HAVE_ZLIB_H
00883 struct {
00884 z_stream *zs;
00885 Bytef *ibuffer;
00886 uLong i_length;
00887 Bytef *obuffer;
00888 uLong o_length;
00889 uLong used;
00890 int stillok;
00891 } flate;
00892 #endif
00893 struct {
00894 dk_storage_t *table;
00895 dk_storage_iterator_t *ti;
00896 int fl;
00897 unsigned short ob;
00898 unsigned short bitsused;
00899 dk_uword lte;
00900 dk_uword s;
00901 unsigned char oc;
00902 unsigned char ic;
00903 } lzw;
00904 } c;
00905 } dk_of_cell_t;
00906
00907
00908
00913 typedef struct {
00914 int flags;
00915 dk_stream_t *target;
00916 dk_of_cell_t *cells;
00917 int n_of_cells;
00918 int have_data;
00919 } dk_of_t;
00920
00921
00922
00926 typedef struct {
00927 dk_stream_t *t;
00928 unsigned char c;
00929 unsigned short b;
00930 } dk_bitshift_t;
00931
00932
00933
00938 typedef struct {
00939 dk_bitshift_t *t;
00940 int flags;
00941 } dk_bitshift_wrapper_t;
00942
00943
00944
00947 typedef struct {
00948 char *t;
00949 char *m;
00950 char *a;
00951 } dk_le_ct_t;
00952
00953
00954
00957 typedef struct {
00958 char *dirname;
00959 char *filename;
00960 int flags;
00961 int error_code;
00962 unsigned long error_line;
00963 unsigned long cache_element;
00964 dk_le_ct_t *cache_ptr;
00965 void *data;
00966 } dk_le_t;
00967
00968
00969
00974 typedef struct {
00975 dk_le_t *l;
00976 int flags;
00977 } dk_le_wrapper_t;
00978
00979 #if DK_HAVE_SYS_SOCKET_H || DK_HAVE_WINSOCK2_H
00980
00981
00982
00985 typedef struct {
00986 int what;
00987 struct {
00988 struct sockaddr_in sin;
00989 unsigned short portmin;
00990 unsigned short portmax;
00991 } ip4;
00992 } dk_ip_addr_t;
00993
00994
00995
00998 typedef struct {
00999 int state;
01000 int flags;
01001 #if DK_HAVE_WINSOCK2_H
01002 SOCKET s;
01003 #else
01004 int s;
01005 #endif
01006 struct {
01007 struct {
01008 dk_ip_addr_t w;
01009 dk_ip_addr_t f;
01010 } l;
01011 struct {
01012 dk_ip_addr_t w;
01013 dk_ip_addr_t f;
01014 } r;
01015 } a;
01016 struct {
01017 time_t seconds;
01018 long usecs;
01019 } to;
01020 int error_code;
01021 } dk_tcpip_t;
01022
01023
01026 typedef struct {
01027 int is_tty;
01028 #if DK_HAVE_TCGETATTR
01029 struct termios ori;
01030 #else
01031 #if defined(TCGETS)
01032 struct termios ori;
01033 #else
01034 #if DK_HAVE_GETSTDHANDLE
01035 HANDLE consoleHandle;
01036 DWORD ori;
01037 #else
01038 unsigned long dummy;
01039 #endif
01040 #endif
01041 #endif
01042 } dk_echo_t;
01043
01044
01045
01048 typedef struct _font_replacement_ {
01049 char *n;
01050 char *f;
01051 char *l;
01052 char *s;
01053 char *ft;
01054 char *tn;
01055 char *pl;
01056 char *ps;
01057 char *tl;
01058 char *ts;
01059 dk_storage_t *d;
01060 dk_storage_iterator_t *di;
01061 int ff;
01062 int t;
01063 unsigned long num;
01064 } dk_font_replacement_t;
01065
01066
01067
01070 typedef struct _one_font_mapping {
01071 dk_storage_t *r;
01072 dk_storage_iterator_t *ri;
01073 dk_storage_t *byname;
01074 dk_storage_iterator_t *bynamei;
01075 unsigned char used;
01076 size_t noe;
01077 } dk_one_font_mapping_t;
01078
01079
01080
01083 typedef struct _font_mapping_ {
01084 dk_one_font_mapping_t *m;
01085 dk_storage_t *d;
01086 dk_storage_iterator_t *di;
01087 int error_code;
01088 unsigned long err_lineno;
01089 } dk_font_mapping_t;
01090
01091
01092
01093
01094
01095
01097 typedef dk_bitfield_t *DKrause__BitField;
01099 typedef dk_bitmatrix_t *DKrause__BitMatrix;
01101 typedef dk_stream_wrapper_t *DKrause__Stream;
01103 typedef dk_bitshift_wrapper_t *DKrause__BitStream;
01105 typedef dk_stt_t *DKrause__StringTable;
01107 typedef dk_app_t *DKrause__Application;
01109 typedef dk_tokenizer_t *DKrause__Tokenizer;
01111 typedef dk_le_wrapper_t *DKrause__LaTeXEncoder;
01112
01113 #endif
01114
01115 #if DK_HAVE_LONG_LONG_INT
01116
01117 #define DK_MAX_LONG_LONG_UNSIGNED 0xFFFFFFFFFFFFFFFFULL
01118
01119 #define DK_MAX_LONG_LONG_INT 0x7FFFFFFFFFFFFFFFLL
01120
01121 #define DK_ZERO_LONG_LONG_UNSIGNED 0ULL
01122
01123 #define DK_ZERO_LONG_LONG_INT 0LL
01124
01125 #define DK_ONE_LONG_LONG_UNSIGNED 1ULL
01126
01127 #define DK_ONE_LONG_LONG_INT 1LL
01128 #else
01129
01130 #define DK_MAX_LONG_LONG_UNSIGNED 0xFFFFFFFFUL
01131
01132 #define DK_MAX_LONG_LONG_INT 0x7FFFFFFFL
01133
01134 #define DK_ZERO_LONG_LONG_UNSIGNED 0UL
01135
01136 #define DK_ZERO_LONG_LONG_INT 0L
01137
01138 #define DK_ONE_LONG_LONG_UNSIGNED 1UL
01139
01140 #define DK_ONE_LONG_LONG_INT 1L
01141 #endif
01142
01143 #if SIZEOF_LONG == 8
01144
01145 #define DK_MAX_ULONG (0xFFFFFFFFFFFFFFFFUL)
01146
01147 #define DK_MAX_LONG (0x7FFFFFFFFFFFFFFFL)
01148 #else
01149
01150 #define DK_MAX_ULONG (0xFFFFFFFFUL)
01151
01152 #define DK_MAX_LONG (0x7FFFFFFFL)
01153 #endif
01154
01155 #if SIZEOF_INT == 4
01156
01157 #define DK_MAX_UNSIGNED (0xFFFFFFFFU)
01158
01159 #define DK_MAX_INT (0x7FFFFFFF)
01160 #else
01161
01162 #define DK_MAX_UNSIGNED (0xFFFFU)
01163
01164 #define DK_MAX_INT (0x7FFF)
01165 #endif
01166
01167 #if SIZEOF_SHORT == 4
01168
01169 #define DK_MAX_USHORT (0xFFFFFFFFU)
01170
01171 #define DK_MAX_SHORT (0x7FFFFFFF)
01172 #else
01173
01174 #define DK_MAX_USHORT (0xFFFFU)
01175
01176 #define DK_MAX_SHORT (0x7FFF)
01177 #endif
01178
01179 #if SIZEOF_SIZE_T == 2
01180
01181 #define DK_MAX_SIZE_T 0xFFFFU
01182 #else
01183 #if SIZEOF_SIZE_T == 4
01184
01185 #define DK_MAX_SIZE_T 0xFFFFFFFFUL
01186 #else
01187 #if SIZEOF_SIZE_T == 8
01188
01189 #define DK_MAX_SIZE_T 0xFFFFFFFFFFFFFFFFULL
01190 #endif
01191 #endif
01192 #endif
01193
01195 #define DK_APP_ENCODING_DEFAULT 0
01196
01198 #define DK_APP_ENCODING_UTF8 1
01199
01200 #endif
01201