OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
cygwin.h
Go to the documentation of this file.
1//----------------------------------------------------------------------------
2// ObjectWindows
3// OWL NExt
4//
5// Created by Kenneth Haley ( khaley@bigfoot.com )
6//
7//----------------------------------------------------------------------------
8
9#if !defined(OWL_PRIVATE_CYGWIN_H)
10#define OWL_PRIVATE_CYGWIN_H
11
12#ifdef _UNICODE
13
14// define before GNU headers currently tchar.h not complete
15# ifndef __TCHAR_DEFINED
16 typedef wchar_t _TCHAR;
17 typedef wchar_t _TSCHAR;
18 typedef wchar_t _TUCHAR;
19 typedef wchar_t _TXCHAR;
20 typedef wint_t _TINT;
21# define __TCHAR_DEFINED
22# endif
23
24# define __T(x) L ## x
25# define _T(x) __T(x)
26
27# define AnsiToOem CharToOemW
28# define OemToAnsi OemToCharW
29# define AnsiToOemBuff CharToOemBuffW
30# define OemToAnsiBuff OemToCharBuffW
31# define AnsiUpper CharUpperW
32# define AnsiUpperBuff CharUpperBuffW
33# define AnsiLower CharLowerW
34# define AnsiLowerBuff CharLowerBuffW
35# define AnsiNext CharNextW
36# define AnsiPrev CharPrevW
37#error Various wide function not defined
38
39#else // _UNICODE
40
41# ifndef __TCHAR_DEFINED
42 typedef char _TCHAR;
43 typedef signed char _TSCHAR;
44 typedef unsigned char _TUCHAR;
45 typedef unsigned char _TXCHAR;
46 typedef unsigned int _TINT;
47# define __TCHAR_DEFINED
48# endif
49
50# define __T(x) x
51# define _T(x) __T(x)
52
53# define AnsiToOem CharToOemA
54# define OemToAnsi OemToCharA
55# define AnsiToOemBuff CharToOemBuffA
56# define OemToAnsiBuff OemToCharBuffA
57# define AnsiUpper CharUpperA
58# define AnsiUpperBuff CharUpperBuffA
59# define AnsiLower CharLowerA
60# define AnsiLowerBuff CharLowerBuffA
61# define AnsiNext CharNextA
62# define AnsiPrev CharPrevA
63#define _ltot my_itoa
64#define _ttoi atoi
65#define _ttol atol
66#define _itot my_itoa
67#define _tcstol strtol
68#define _tcstod strtod
69#define _tfopen fopen
70#define _istdigit isdigit
71#define _istalpha isalpha
72#define _istalnum isalnum
73#define _totupper toupper
74#define _tcslen strlen
75#define _tcscmp strcmp
76#define _tcsicmp stricmp
77#define _tcsnicmp strnicmp
78#define _tcsncmp strncmp
79#define _tcscpy strcpy
80#define _tcsncpy strncpy
81#define _tcsspn strspn
82#define _tcscspn strcspn
83#define _tcscat strcat
84#define _tcstok strtok
85#define _tcschr strchr
86#define _tcsrchr strrchr
87#define _stscanf sscanf
88#define _stprintf sprintf
89#define _fputts fputs
90#define _tfullpath myfullpath
91
92#define _tWinMain WinMain
93#define _tmain main
94
95#endif // _UNICODE
96
97#define _MAX_PATH 260
98#define MAX_PATH _MAX_PATH
99char *my_itoa(int,char*,int);
100char *myfullpath(char *,const char *,int );
101
102wchar_t* __stdcall wcscpy(wchar_t* dst, const wchar_t* src);
103size_t __stdcall wcslen(const wchar_t* str);
104
105#endif // OWL_PRIVATE_CYGWIN_H
char * my_itoa(int, char *, int)
Definition unix.cpp:16
char * myfullpath(char *, const char *, int)
Definition unix.cpp:41
unsigned char _TXCHAR
Definition cygwin.h:45
signed char _TSCHAR
Definition cygwin.h:43
size_t __stdcall wcslen(const wchar_t *str)
wchar_t *__stdcall wcscpy(wchar_t *dst, const wchar_t *src)
unsigned int _TINT
Definition cygwin.h:46
unsigned char _TUCHAR
Definition cygwin.h:44