Commit Graph

209 Commits

Author SHA1 Message Date
David Elliott
1a6d6b1071 Combine the check for wxMac and then the other check for wxMac/wxCocoa into
one define called USE_OLD_DARWIN_END_PROCESS_DETECT because it's wrong
to created pipeEndProcDetect on wxCocoa when it's not going to use it!
The next commit will show why it's now "Old".


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-14 08:37:11 +00:00
Vadim Zeitlin
14d6351382 always return wxString from wxGetUserHome() instead of char */wxWCharBuffer depending on the build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-06 12:38:15 +00:00
David Elliott
022a8d0284 Return true in wxSetEnv for unsetenv case.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-08 01:37:06 +00:00
Vadim Zeitlin
65fd2fc261 correction to last commit: don't test unsetenv() return value, it's void under Darwin
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-07 22:39:29 +00:00
Vadim Zeitlin
a1353ea496 use unsetenv() instead of setenv(var, NULL) which is invalid
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47942 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-07 22:29:07 +00:00
Vadim Zeitlin
c0472c7c9e added code to free memory allocated in wxSetEnv() when it uses putenv()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-19 22:58:47 +00:00
Vadim Zeitlin
2f6aa043a6 simplify test for 64 bit architectures: just check if the string '64' occurs in the arch string, this also covers more cases
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-04 22:31:56 +00:00
Václav Slavík
90a77e6484 make wxSetEnv compatible with ANSI and Unicode, deprecate passing NULL to it in favour of wxUnsetEnv()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-19 20:02:49 +00:00
Václav Slavík
8650108199 don't use implicit wxString->char*/wchar_t* conversion, it will not be available in wxUSE_STL build in the future
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-10 17:42:41 +00:00
Václav Slavík
0cb7e05cd1 PCH-less compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-27 15:50:07 +00:00
Vadim Zeitlin
bc855d0932 added wxEXEC_BLOCK flag (patch 1620430)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 00:18:09 +00:00
Vadim Zeitlin
e1379e29e2 don't return junk from wxGetOsVersion() if we failed to execute 'uname -r' (thanks coverity)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 13:22:18 +00:00
Vadim Zeitlin
69c928ef47 added wxSafeConvertMB2WX/WX2MB() and use them when interfacing with C functions which crash if we pass them NULL pointers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-11 23:38:42 +00:00
Vadim Zeitlin
40f00746d2 fixed overflow when using sysconf() to retrieve free memory (bug 1524157)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-11 01:20:59 +00:00
Vadim Zeitlin
ba2eff22a4 replaced wxLogDebug with wxLogTrace in wxExecute() to suppress annoying messages each time it is called
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-04 10:32:12 +00:00
Robin Dunn
1870f50ba9 fix for unicode build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-09 20:01:55 +00:00
Vadim Zeitlin
1a5e269be8 (blind) fix for Tru64 compilation (bug 769360)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-21 13:23:20 +00:00
Vadim Zeitlin
7c28d921d7 fix wxGetFreeMemory() for Linux 2.6 (part of patch 1549176)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41244 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-16 00:43:13 +00:00
Alex Bligh
648af63a53 Fix unicode build on UNIX operating systems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-14 21:58:38 +00:00
Vadim Zeitlin
c655557fa6 wxGetOsVersion() compilation andl inking fixes for wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-13 22:43:30 +00:00
Vadim Zeitlin
8bb6b2c057 wxPlatformInfo (patch 1532064)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-13 21:00:32 +00:00
Michael Wetherell
bc023abbbb Detect and use sys/select.h required by POSIX for select
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-09 11:18:24 +00:00
Václav Slavík
1f3b2af0fe wxPipeInputStream depends on wxFile, use wxUSE_FILE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-08 13:11:52 +00:00
Vadim Zeitlin
355debca06 added wxPowerEvent; moved power functions stubs to common/powercmn.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-27 14:09:40 +00:00
Włodzimierz Skiba
670f993563 Include wx/app.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-28 12:44:37 +00:00
Włodzimierz Skiba
e4db172a3b Include wx/log.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-26 08:21:31 +00:00
Włodzimierz Skiba
88a7a4e10e Include wx/intl.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-25 14:38:19 +00:00
Włodzimierz Skiba
7520f3da33 wx/wxprec.h already includes wx/defs.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-18 09:56:17 +00:00
Vadim Zeitlin
7ba7c4e62f use wxDiskspaceSize_t which is long and not wxLongLong if wxUSE_LONGLONG==0 (part of patch 1203970)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-11 16:21:14 +00:00
Vadim Zeitlin
9ad34f611f implemented wxGetFreeMemory() under IRIX (patch 1360356); made wxMemorySize always 64 bit as it can overflow even in 32 bit builds otherwise
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-25 22:09:22 +00:00
Mattia Barbon
dee1a63ff5 Removed WXWIN_COMPATIBILITY_2_2 together with code guarded by it.
Changed default for WXWIN_COMPATIBILITY_2_4 to 0.
  Added WXWIN_COMPATIBILITY_2_6 (defaults to 1).
  Ran build/update-setup-h.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-09 15:48:42 +00:00
Vadim Zeitlin
17a1ebd101 first round of Intel compiler warning fixes: down from a few thousands just to slightly more than 100
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 19:59:19 +00:00
Vadim Zeitlin
84ae7ca4f6 check for missing statfs() prototype (happens at least under AIX 4)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-23 23:12:37 +00:00
Stefan Csomor
fb19fbabbc applying patch 1188918
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34005 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-10 05:44:10 +00:00
Kevin Hock
3afdfec453 Add comment explaining the role of wxMacExecute
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-22 14:19:06 +00:00
Ryan Norton
62705a278a Add support for launching APPL bundles with wxExecute
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-21 19:58:22 +00:00
Ryan Norton
3bdb628b5c wxExecute log message cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-18 21:25:10 +00:00
Włodzimierz Skiba
8ea92b4d77 Simple wxBatteryPower API for the support in wxWinCE, wxPalmOS and any other mobile device with wxWidgets. Minor source cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-20 16:09:23 +00:00
Vadim Zeitlin
f0bce4d4e0 fixed crash in wxKill() introduced by 1.116 patch (ironically named "proper
return value testing"); this is slightly modified patch 1098248


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-19 02:51:13 +00:00
Włodzimierz Skiba
9d8aca4832 Take best fitting type for available memory measurement.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-27 18:47:26 +00:00
Vadim Zeitlin
f38f689990 added wxEXEC_NODISABLE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31081 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-19 23:59:28 +00:00
Vadim Zeitlin
d67fee71b8 IRIX compilation fix: don't redeclare usleep() if HAVE_USLEEP is defined
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-19 22:45:08 +00:00
Julian Smart
e0f6b731a8 Added flags argument to wxKill and wxProcess::Kill to allow it to
kill child processes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-05 12:53:25 +00:00
Robert Roebling
a9e003065d Applied kill patch (proper return value testing).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-24 14:38:49 +00:00
Vadim Zeitlin
db1d019338 better (more precise) values for wxGetOsDescription() (patch 1047539)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-10 22:08:37 +00:00
David Elliott
f7ef06022c Fix wxExecute for ports other than wxMac and wxCocoa on Darwin
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-24 07:36:16 +00:00
Ryan Norton
51678b5b76 wxCocoa link fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-08 00:08:33 +00:00
Vadim Zeitlin
74c719ed96 fixes for Metrowerks command line compiler (avoid redefining stuff already defined by configure)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-02 23:19:07 +00:00
Dimitri Schoolwerth
1012c2ceb6 fixed typo (no code changes)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-05 12:46:20 +00:00
Václav Slavík
39ef7151f5 don't use deprecated wxUsleep
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-03 10:06:23 +00:00