Václav Slavík
3a3dde0d44
use wx/crt.h as the 'official' header for wxCRT wrappers instead of wxchar.h; add comments explaining that users should include wx/crt.h to implementation headers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-11 06:08:13 +00:00
Václav Slavík
13e24d7987
wxchar.h doesn't have to be C file anymore, it's C++
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-30 13:43:27 +00:00
Václav Slavík
e713a90b3f
moved vararg CRT functions wrappers to a new wxcrtvararg.h header
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-19 07:44:16 +00:00
Václav Slavík
e3f6cbd99c
split wxchar.h into several smaller headers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-19 14:45:38 +00:00
Václav Slavík
c9f7896861
first phase of transition to unified Unicode build:
...
1. changed c_str() to return wxCStrData (implicitly convertible to wxChar*)
2. added template type-safe wrappers for vararg functions
3. added wxUniChar class representing single Unicode character
4. changed wxString::operator[] and wxString::iterator to return wxUniChar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-17 10:26:10 +00:00
Vadim Zeitlin
f2bbe5b675
fixes and workarounds to return value of our own wxVsnprintf_() implementation: handle -1 as error and not an indication that there is not enough space (patch 1623077)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-07 16:17:28 +00:00
Vadim Zeitlin
189cad73eb
include stdio.h to get FILE declaration (bug 1592935)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-27 21:30:45 +00:00
Michael Wetherell
8120bbc916
Compile fix for the version of VC8 included in the 2003 PSDK.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-14 13:10:56 +00:00
Robin Dunn
d036261c45
Add DLL export macro
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-10 19:15:47 +00:00
Vadim Zeitlin
a49ffb32e2
include widec.h if it's available, it contains declarations of [f]putws() under Solaris
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-09 15:35:09 +00:00
Robin Dunn
047fa46b8a
Use the native vswprintf on OSX
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-07 20:29:57 +00:00
Julian Smart
79f82e1f66
wxWinCE compile fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-31 15:07:00 +00:00
Vadim Zeitlin
d6718dd17b
added wxString::ToLongLong() and ToULongLong() (feature request 1290937)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-28 16:46:03 +00:00
Vadim Zeitlin
4876ba0b23
declare wxMSLU_xxx functions in the headers which define macros expanding to them
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42396 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-25 11:27:24 +00:00
Vadim Zeitlin
5da414766e
fix problems with using incorrect vswprintf() for mingw32/VC6 when wxUSE_PRINTF_POS_PARAMS==1, try to simplify/better organize all wxVsnprintf_()-related code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-05 15:25:09 +00:00
Vadim Zeitlin
4daa52ad8f
restored Ove Kåven name in the header comment which was
...
broken a couple revisions ago; switched copyright to wxWidgets
dev team as the whole as there are simply too many people who
have modified this file to list them all; no changes in the code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-05 11:54:30 +00:00
Vadim Zeitlin
ad968793dd
fix wxVsnprintf_ declaration for VC8
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41189 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-13 11:59:31 +00:00
Robert Roebling
6a5c9b3ff7
Apply patch [ 1548750 ] wxVsnprintf() various fixes
...
Part II.
c
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-09 14:11:21 +00:00
Vadim Zeitlin
7b4eedf698
added wxUSE_PRINTF_POS_PARAMS which can be used to force the use of built-in printf (2nd part of patch 1462778)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-27 14:24:53 +00:00
Vadim Zeitlin
7a828c7ffb
wxVsnprintf() implementation with positional parameters support (patch 1462778); disabled for now
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-28 15:18:15 +00:00
Vadim Zeitlin
20a4311e7f
use new wxAPPLY_T macro instead of 3 identical __XDATE__/__XTIME__/__XFILE__ ones
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-21 15:43:46 +00:00
Stefan Csomor
27ea6757f3
fix for sf bug 1448153: Widgets sample hangs on Japanese radio label
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-17 14:26:59 +00:00
Vadim Zeitlin
7fab07efba
let _T() work with macros (modified patch 1437983)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-09 13:16:02 +00:00
Julian Smart
ac6178d747
Applied patch [ 1381895 ] remove circular include dependendcy in wxchar.h
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36962 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-18 12:46:11 +00:00
Julian Smart
c1fa940272
Applied patch [ 1325207 ] Fixes unicode build using Solaris with Sun's SunPro compiler
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-18 10:06:34 +00:00
Julian Smart
8db1a709bc
Eliminated a VC++ 8 warning
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-17 19:10:48 +00:00
Vadim Zeitlin
df885241b0
fix for Unicode builds under OS X <= 10.2
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-09 12:27:18 +00:00
Vadim Zeitlin
9452e8789b
fixes for Unicode build with CodeWarrior under OS X 10.2 (patch 1373217)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-08 12:19:14 +00:00
Vadim Zeitlin
70e51d6918
fixed check for Metrowerks mbstowcs(): check for __MSL__
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-08 12:09:03 +00:00
Vadim Zeitlin
dbf9aa465e
use our own mbstowcs() and wcstombs() implementations with Metrowerks as MSL CRT doesn't implement Unix98 extension of allowing to call them with NULL output parameters to just get the size of the needed buffer which we rely on
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-06 16:52:54 +00:00
Vadim Zeitlin
c25e6f326b
removed C++ comment from C file
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-07 21:33:00 +00:00
Mart Raudsepp
8907154c1a
Nuke #pragma implementation/interface's
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Michael Wetherell
3f3a6949a6
Forgot to put the previous (v)snprintf commit inside '#ifdef __cplusplus' which
...
is needed for the inline function.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-07 19:49:39 +00:00
Michael Wetherell
62fa8b3a1d
Handle the case when (v)snprintf have the format declared as char* instead of
...
const char*.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-07 18:28:03 +00:00
Vadim Zeitlin
2b36af83fd
compilation fix after last commit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-22 23:43:08 +00:00
Vadim Zeitlin
4a767dd5cd
added test for snprintf() which may not be present in system headers, treat it similarly to vsnprintf() instead of assuming that it's always there
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-22 22:46:33 +00:00
Włodzimierz Skiba
20bc5ad8dd
Global platform header (<PalmOS.h>) removed from public wx-headers (but included in wxprec.h) with all consequences in wxPalmOS specific API.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-01 19:36:58 +00:00
Julian Smart
619be6d0eb
WinCE doesn't declare DeleteFile at the point wxRemove is defined,
...
so put it in implementation file.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-30 13:50:23 +00:00
Vadim Zeitlin
53187e95ad
fixed wxRemove() return value under Win CE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-28 09:00:36 +00:00
Julian Smart
8241721975
Reverted namespace patch
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-23 15:38:21 +00:00
Julian Smart
f98e742929
Applied patch [ 1190194 ] Define some string macros to refer to :: functions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-22 14:12:29 +00:00
Julian Smart
99d800190a
Added licence/copyright information
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-04 18:57:50 +00:00
Ryan Norton
1e96e5030c
fix 10.2 shared unicode builds for mbstowcs and vice versa
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-17 05:19:03 +00:00
David Elliott
97ae9d4cc7
Declare strptime when using MSL headers on OS X.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-27 08:48:30 +00:00
Vadim Zeitlin
6f8a4ba11c
wxGetEnv() should return wxChar *, even if it's a macro and not a function
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-10 19:23:33 +00:00
Vadim Zeitlin
2f5e2c177c
define wxGetEnv() as macro, not inline function, for WinCE as otherwise extended.c compilation fails
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-10 19:20:04 +00:00
Vadim Zeitlin
cbffcf1117
define wxGetenv() for WinCE which doesn't have _tgetenv() to always return NULL
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-10 19:14:53 +00:00
David Elliott
1cbf5bc6df
Use plain extern instead of extern "C" for vsnprintf declaration when not
...
compiling as C++.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-19 04:22:27 +00:00
Dimitri Schoolwerth
724a248d8d
fixed Cygwin compilation (can't use extern "C" in C compilation)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-14 14:53:28 +00:00
Stefan Neis
e4a1c661cd
Fixed C++ comments.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-26 16:19:36 +00:00