Archive-Unzip-Burst
view release on metacpan or search on metacpan
unzip-6.0/msdos/doscfg.h view on Meta::CPAN
# endif
# ifndef MAYBE_PLAIN_FAT
# define MAYBE_PLAIN_FAT
# endif
#else
# ifdef USE_LFN
# define MAYBE_PLAIN_FAT
# endif
#endif
#ifdef ACORN_FTYPE_NFS
# undef ACORN_FTYPE_NFS /* no commas allowed in short filenames */
#endif
/* handlers for OEM <--> ANSI string conversions */
#ifdef WINDLL
# if 1
/* C RTL's file system support assumes OEM-coded strings */
# ifdef CRTL_CP_IS_ISO
# undef CRTL_CP_IS_ISO
# endif
# ifndef CRTL_CP_IS_OEM
# define CRTL_CP_IS_OEM
# endif
# else
/* C RTL's file system support assumes ISO-coded strings */
# ifndef CRTL_CP_IS_ISO
# define CRTL_CP_IS_ISO
# endif
# ifdef CRTL_CP_IS_OEM
# undef CRTL_CP_IS_OEM
# endif
# endif /* ?(code page of 16bit Windows compilers) */
/* include Win API declarations only in sources where conversion is
* actually used (skip __EXTRACT_C, extract.c includes windll.h instead)
*/
# if defined(__ENVARGS_C) || defined(__UNZIP_C) || defined(ZCRYPT_INTERNAL)
# include <windows.h>
# endif
/* use conversion functions of Windows API */
# ifdef CRTL_CP_IS_ISO
# define ISO_TO_INTERN(src, dst) {if ((src) != (dst)) strcpy((dst), (src));}
# define OEM_TO_INTERN(src, dst) OemToAnsi(src, dst)
# define INTERN_TO_ISO(src, dst) {if ((src) != (dst)) strcpy((dst), (src));}
# define INTERN_TO_OEM(src, dst) AnsiToOem(src, dst)
# endif
# ifdef CRTL_CP_IS_OEM
# define ISO_TO_INTERN(src, dst) AnsiToOem(src, dst)
# define OEM_TO_INTERN(src, dst) {if ((src) != (dst)) strcpy((dst), (src));}
# define INTERN_TO_ISO(src, dst) OemToAnsi(src, dst)
# define INTERN_TO_OEM(src, dst) {if ((src) != (dst)) strcpy((dst), (src));}
# endif
# define _OEM_INTERN(str1) OEM_TO_INTERN(str1, str1)
# define _ISO_INTERN(str1) ISO_TO_INTERN(str1, str1)
/* UzpPassword supplies ANSI-coded string regardless of C RTL's native CP */
# define STR_TO_CP2(dst, src) (AnsiToOem(src, dst), dst)
/* dummy defines to disable these functions, they are not needed */
# define STR_TO_ISO
# define STR_TO_OEM
#else
/* use home-brewed conversion functions; internal charset is OEM */
# ifdef CRTL_CP_IS_ISO
# undef CRTL_CP_IS_ISO
# endif
# ifndef CRTL_CP_IS_OEM
# define CRTL_CP_IS_OEM
# endif
#endif
#ifndef NEED_ISO_OEM_INIT
# define NEED_ISO_OEM_INIT
#endif
/* SCREENLINES macros for 16-bit and djgpp compilers */
#ifdef __16BIT__
# define SCREENLINES (int)(*((unsigned char far*)0x00400084L) + 1)
# define SCREENWIDTH (int)(*(unsigned short far*)0x0040004AL)
#endif
#if defined(__GO32__) || defined(__DJGPP__) /* djgpp v1.x and v2.x */
# include <pc.h>
# define SCREENLINES ScreenRows()
# define SCREENWIDTH ScreenCols()
#endif
#ifdef __EMX__
# define SCREENWIDTH 80
# define SCREENSIZE(scrrows, scrcols) screensize(scrrows, scrcols)
int screensize(int *tt_rows, int *tt_cols);
#endif
#ifdef WATCOMC_386
# define SCREENWIDTH 80
# define SCREENSIZE(scrrows, scrcols) screensize(scrrows, scrcols)
int screensize(int *tt_rows, int *tt_cols);
#endif
#ifndef SCREENSIZE
# define SCREENSIZE(scrrows, scrcols) { \
if ((scrrows) != NULL) *(scrrows) = SCREENLINES; \
if ((scrcols) != NULL) *(scrcols) = SCREENWIDTH; }
#endif
/* on the DOS console screen, line-wraps are always enabled */
#define SCREENLWRAP 1
#define TABSIZE 8
#endif /* !__doscfg_h */
( run in 1.722 second using v1.01-cache-2.11-cpan-aadc1410aed )