pierre
9bba5c956a
Add support for indirect values
...
git-svn-id: trunk@21830 -
2012-07-09 13:46:11 +00:00
pierre
2d6093645f
Add a C compilation phase to check Error value
...
git-svn-id: trunk@21826 -
2012-07-09 13:14:37 +00:00
pierre
b93b08427f
Set needgsed to 0 for non-NetBSD systems
...
git-svn-id: trunk@21823 -
2012-07-09 09:56:45 +00:00
tom_at_work
4150f0a2fb
Rebase with r21814
...
git-svn-id: branches/targetandroid@21815 -
2012-07-07 23:09:20 +00:00
sergei
185e34915c
- Removed level 2 comments and control characters in comments.
...
git-svn-id: trunk@21726 -
2012-06-27 20:04:39 +00:00
pierre
cd0522189c
Try to improve system error check script
...
git-svn-id: trunk@21633 -
2012-06-17 14:47:26 +00:00
marco
0757517dde
* more removal of deprecated functions (deprecated before 2.4.0)
...
old copies of routines in dos, and some shortstring shorthands for fsplit.
git-svn-id: trunk@21359 -
2012-05-22 08:04:24 +00:00
marco
043ff2c81c
* more deprecations. Copies of stringtypes usually defined in unit dos, but
...
that are no longer needed.
git-svn-id: trunk@21358 -
2012-05-22 08:00:36 +00:00
marco
725a280059
* sleeper vfork code copied from deleted parts so it is not lost, made
...
shortstring version call the ansistring one.
git-svn-id: trunk@21336 -
2012-05-19 14:03:20 +00:00
marco
455d675c5a
* removed an empty overloaded version of statfs that could be called recursively
...
and its use in sysutils. Fixes failure of tw1041 and tw9985 in last runs.
git-svn-id: trunk@21334 -
2012-05-19 12:09:39 +00:00
marco
1a73c652ca
* improve deprecation message.
...
git-svn-id: trunk@21333 -
2012-05-19 11:58:59 +00:00
marco
0ddd03eef2
* removed some deprecated functions (deprecated since 2.2.0/2007 times)
...
* added some new minor deprecations (mostly unused constants that are
potentially not crossplatform, and an shortstring version of a function)
git-svn-id: trunk@21321 -
2012-05-18 12:11:06 +00:00
marco
6c0ba4af0c
* getfs deprecated, replaced by a totally crossplatform sysutils.getfilehandle, probably already since 2.4.0
...
git-svn-id: trunk@21317 -
2012-05-17 16:58:09 +00:00
tom_at_work
77a85b7448
* basic android/x86 support
...
git-svn-id: branches/targetandroid@21296 -
2012-05-14 21:14:12 +00:00
tom_at_work
bf2a01cfeb
fix pthreads use with Android: it does not provide some functions. This patch is partially based on the bug report 0021525. Further, fix use of sem_timedwait in cthreads.pp since Android supports it.
...
git-svn-id: branches/targetandroid@21066 -
2012-04-26 19:05:06 +00:00
tom_at_work
a7b48be598
bugfixes:
...
- do not compile ipc unit for android, not supported
- fix geterrnolocation external name
- implement dummy getdomainname; does not exist in android
- remove wrong 'if defined(android)' clauses
git-svn-id: branches/targetandroid@21065 -
2012-04-26 13:15:52 +00:00
tom_at_work
acbc94e0fd
- initial support for the android/arm target in the compiler; resulting .so's can be used for Android/ARM app development.
...
- basic rtl support using system calls
- fp(c)make/fppkg/makefile support
todo:
- revisit systems/t_android.pas: mostly duplicate with t_linux.pas, containing
lots of unnecessary code
- revisit rtl changes
- android ndk header translation import
- better app build/packaging support
- android/x86 support
git-svn-id: branches/targetandroid@21061 -
2012-04-26 09:36:42 +00:00
pierre
cea6ca2df9
Fix FpSigProcMask overload for OpenBSD: Warning this probably breaks compilation of unix's RTL by obsolete 2.4.4 release compiler, 2.6.0 required
...
git-svn-id: trunk@21005 -
2012-04-23 10:12:43 +00:00
pierre
8c047abb43
+ New script to check constant entries against system headers
...
git-svn-id: trunk@20934 -
2012-04-19 14:56:32 +00:00
pierre
3f24548e58
+ New script to check errnostr.inc entries
...
git-svn-id: trunk@20933 -
2012-04-19 14:55:57 +00:00
pierre
0309511353
Add clean option, do not create executable (unneeded)
...
git-svn-id: trunk@20932 -
2012-04-19 14:52:47 +00:00
pierre
9106753b8a
Improve check_sys.sh script
...
git-svn-id: trunk@20926 -
2012-04-19 07:18:13 +00:00
pierre
1592f98a69
Avoid inappropriate file name expansion
...
git-svn-id: trunk@20921 -
2012-04-18 15:43:47 +00:00
pierre
6568de7e0f
Avoid \t which is not supported properly on NetBSD and accept negative values
...
git-svn-id: trunk@20918 -
2012-04-18 10:50:16 +00:00
pierre
c4288ea2c0
* Fix missing echo command
...
git-svn-id: trunk@20916 -
2012-04-18 10:35:47 +00:00
pierre
eb90a60afe
New test for sysnr.inc system error numbers
...
git-svn-id: trunk@20914 -
2012-04-18 10:31:29 +00:00
pierre
90f12d0e4d
Improve check for Linux
...
git-svn-id: trunk@20913 -
2012-04-18 10:30:19 +00:00
pierre
b3f3e0d2a1
Move check_sys.sh to unix/scripts directory
...
git-svn-id: trunk@20911 -
2012-04-18 10:24:34 +00:00
pierre
11fe796ac3
Add script directory
...
git-svn-id: trunk@20910 -
2012-04-18 10:10:03 +00:00
pierre
7d82ed4459
+ Add ACCEPT_646 for systems that return '646' for nl_langinfo(CODESET) call
...
git-svn-id: trunk@20905 -
2012-04-17 15:28:28 +00:00
Tomas Hajny
d442d14e0c
+ FileNameCasePreserving added - see #18066 in Mantis
...
git-svn-id: trunk@20894 -
2012-04-15 20:56:13 +00:00
Jonas Maebe
f0b7ce8afe
* fix building for Haiku/BeOS after r20839 (patch by Olivier Coursière)
...
git-svn-id: trunk@20878 -
2012-04-14 20:36:02 +00:00
Jonas Maebe
1e9b92ee50
+ AIX support for cwstring
...
o AIX-specific codepage names
o AIX/ppc32 uses a 16 bit wchar_t
o special support for handling cp866 on AIX: AIX only supports converting
cp866 from/to ISO8859-5 -> always use that code page as an intermediate
one on AIX (it's lossy, but better than completely failing)
* in case the default system code page cannot be detected, fall back to
UTF-8
git-svn-id: trunk@20839 -
2012-04-11 18:06:22 +00:00
Jonas Maebe
2c1f98320f
* disable implicit exception frames, no exceptions are raised by this unit
...
git-svn-id: trunk@20838 -
2012-04-11 18:06:18 +00:00
Jonas Maebe
d545a72f1a
+ lnfogdb unit that can use gdb to symbolicate backtraces on unix targets
...
(used for stabx/aix)
git-svn-id: trunk@20833 -
2012-04-11 18:05:56 +00:00
Jonas Maebe
9a1cd0ec4c
* fixed checking the address of installed signal handlers on aix and
...
linux/ppc64 (have to look past the function descriptors)
git-svn-id: trunk@20820 -
2012-04-11 18:04:50 +00:00
Jonas Maebe
7c0469e1fd
* link libbsd for AIX, because several UNIX routines are part of its BSD
...
Compatibility library
git-svn-id: trunk@20788 -
2012-04-11 18:00:08 +00:00
Jonas Maebe
8d8fc0fdee
+ RTL for AIX
...
git-svn-id: trunk@20786 -
2012-04-11 17:59:49 +00:00
pierre
ae83b5ce92
Return -1 for fpIOPL and set errno to ESysENoSys for non-linux systems
...
git-svn-id: trunk@20773 -
2012-04-09 21:55:18 +00:00
pierre
55665c6713
Set local variable s to empty string at entry of transform_cp437_to_UTF8 function
...
git-svn-id: trunk@20772 -
2012-04-09 21:54:19 +00:00
Jonas Maebe
d3004d2bf6
* use same defaults for iPhoneSimulator as for iOS (UTF-8 etc, newer
...
iPhoneSimulator platforms no longer inherit the Mac OS X settings)
git-svn-id: trunk@20653 -
2012-03-29 17:13:29 +00:00
pierre
ff5d25174a
* Fix wide string shared library loading by adding 'lib' prefix if needed
...
git-svn-id: trunk@20568 -
2012-03-22 09:02:07 +00:00
Jonas Maebe
cc736fe115
* use same code path for iphonesim as for darwin (should fix mantis #21190 )
...
git-svn-id: trunk@20374 -
2012-02-17 20:28:43 +00:00
pierre
ea9f152d64
* Remove local redefinition of types and clarify TIPC_Perm record
...
git-svn-id: trunk@20354 -
2012-02-15 13:18:30 +00:00
pierre
24d100d164
NetBSD CODESET and LC_ALL added
...
git-svn-id: trunk@20337 -
2012-02-13 16:43:45 +00:00
pierre
b4f024362b
NetBSD code added
...
git-svn-id: trunk@20336 -
2012-02-13 16:43:16 +00:00
sergei
e94508d5eb
* Improved utf16 to ucs4 conversion routines: removed function call on every character, allocate memory once and made as much as possible code shared between WideString and UnicodeString versions.
...
git-svn-id: trunk@20269 -
2012-02-06 17:55:06 +00:00
sergei
c862aec17c
* cwstring.pp, Wide2AnsiMove: moved SetCodePage to the end, so it comes after the last SetLength. Necessary after r20209, because SetLength has been modified to always set the code page of its argument. Here it sets code page of 'dest' to CP_NONE, because dest is RawByteString.
...
(Before r20209, SetLength was preserving code page when the string was resized in place and had refcount=1)
git-svn-id: trunk@20214 -
2012-02-01 21:08:13 +00:00
marco
a0b200db76
* Add dlvsym under ifdef ELF, defined ELF for the OSes I could check
...
(FreeBSD, OpenBSD, Linux) Mantis #18892
git-svn-id: trunk@20134 -
2012-01-21 11:56:40 +00:00
Jonas Maebe
eb680bcc5b
* don't try to set the iconv transliterate property in case the iconv
...
encoder was not successfully initialised
git-svn-id: trunk@19965 -
2012-01-04 16:08:15 +00:00
Jonas Maebe
f287cf3f61
* default to UTF-8 as system code page in case nl_langinfo(CODESET) returns
...
an empty string
git-svn-id: trunk@19964 -
2012-01-04 16:06:27 +00:00
michael
2625b1dfa4
* Improved efficiency of Now/Date/Time
...
git-svn-id: trunk@19572 -
2011-11-02 14:33:33 +00:00
michael
86c0b324fd
* Added ReReadTimeZone
...
git-svn-id: trunk@19569 -
2011-11-01 18:05:38 +00:00
paul
b7185a554c
rtl:
...
- replace ifndef ver2_4 with ifdef FPC_HAS_CPSTRING for places with TextRec.CodePage access
- convert codepages for Read and Write text file operations
git-svn-id: trunk@19545 -
2011-10-25 08:40:49 +00:00
paul
e08c68f308
rtl: set codepages for TextRec field when Text file is opened + update this field for standard IO files when cwstring is used
...
git-svn-id: trunk@19543 -
2011-10-25 06:27:54 +00:00
paul
270fb09e87
rtl: add WideStringManager.GetStandardCodePageProc method to retrieve system ansi and console code pages
...
git-svn-id: trunk@19539 -
2011-10-25 01:39:11 +00:00
paul
3e29f0b179
rtl: make cwstring.pp dependent of dynlibs, load iconvctl dynamically
...
git-svn-id: trunk@19538 -
2011-10-25 01:25:23 +00:00
Jonas Maebe
9ee27c1606
* support for iOS-specific location of "localtime" time zone file
...
(problem reported at http://blogs.embarcadero.com/ao/2011/10/20/39180 )
git-svn-id: trunk@19537 -
2011-10-24 19:24:57 +00:00
Jonas Maebe
01b980a462
* added "inc" extension to {$i winiconv}
...
git-svn-id: trunk@19529 -
2011-10-22 08:59:07 +00:00
Jonas Maebe
2b63a7d66f
* fixed compilation on darwin/arm after r19522
...
* replaced defined(arm) with defined(cpuarm) checks (cleaner)
git-svn-id: trunk@19528 -
2011-10-22 08:40:37 +00:00
paul
5d7d143300
rtl: transliterate characters if possible intead of replacing them with "?" chars while converting between codepages
...
git-svn-id: trunk@19522 -
2011-10-21 03:23:23 +00:00
pierre
ad40c306cd
* Use recent libc __errno function for OpenBSD
...
git-svn-id: trunk@19447 -
2011-10-10 21:33:58 +00:00
pierre
dbd3df9ddf
+ Added OpenBSD CODESET and LC_ALL values
...
git-svn-id: trunk@19369 -
2011-10-04 22:20:41 +00:00
pierre
7f69e6426d
* Try to update i386/openbsd port
...
git-svn-id: trunk@19350 -
2011-10-03 23:22:28 +00:00
paul
6384fa2a19
rtl: revert r19330. We probably need to create a separate encoding<->codepage table.
...
git-svn-id: trunk@19332 -
2011-10-03 10:28:14 +00:00
paul
a0e7196ae9
rtl: move winiconv.inc into general inc directory and rename it to wincodepages.inc, also rename win2iconv, iconv2win to CodePageToCodePageName, CodePageNameToCodePage.
...
This change is required since CodePage to CodePage name conversions are required in other parts of RTL. Moreover those codepage identifiers are windows codepage identifiers and thus must be compatible with codepage identifiers used by delphi.
git-svn-id: trunk@19330 -
2011-10-03 03:35:45 +00:00
Jonas Maebe
591230104b
* prevent the internal windows code page number -> iconv name and vice versa
...
conversion routines from resulting in any code page conversions themselves
git-svn-id: trunk@19320 -
2011-10-01 23:26:12 +00:00
Jonas Maebe
258869c8f1
* and one more fix to prevent endless loops
...
git-svn-id: trunk@19196 -
2011-09-23 19:16:48 +00:00
Jonas Maebe
3469942f34
* fixed potential endless loop if the code page passed to win2iconv()
...
is not found
git-svn-id: trunk@19195 -
2011-09-23 18:34:31 +00:00
Jonas Maebe
7dd5811828
+ support for transcoding the new ansistring type on unix platforms
...
* initialize DefaultSystemCodePage on unix platforms
git-svn-id: trunk@19194 -
2011-09-23 17:32:18 +00:00
marco
07fabab526
* fpgetsid, Mantis #20329
...
git-svn-id: trunk@19178 -
2011-09-22 13:21:38 +00:00
michael
1579470a68
* Also check TMPDIR, a UNIX standard used by a.o. iOS (mantis #20248 )
...
git-svn-id: trunk@19175 -
2011-09-22 11:29:50 +00:00
paul
528f7fbb06
rtl: manual merge some cpstrnew changes which was impossible to merge using regular tools due to the merge conflicts
...
git-svn-id: trunk@19137 -
2011-09-18 01:40:56 +00:00
paul
091627883f
merge r14347 from cpstrnew branch by florian:
...
* fixed bootstrapping with 2.4.0
* patches by Graeme Geldenhuys, resolve #15251 , #15252 , #15253
git-svn-id: trunk@19102 -
2011-09-17 12:00:06 +00:00
florian
c32bc3a22a
* patch by Nikolay Nikolov to support Alt-Tab and Ctrl-Tab on the linux console, resolves #19247
...
git-svn-id: trunk@18225 -
2011-08-16 18:58:50 +00:00
marco
7eeb4ab539
* also return fasymbolic if dir is found.
...
* update getattr to also return fasymbolic
Patch by Dimitri B. Mantis #16817
git-svn-id: trunk@18043 -
2011-08-01 11:36:28 +00:00
marco
2c00a2a0b3
* fixed FPC_USE_LIBC building for Linux and exception handling (mantis #13450 )
...
- fixed a platform modifier in ipc.pp
- fixed different layout sigaction record in libc. (field order)
- fixed many bad use_libc fixes in linux. Most of these were only checked
for compilation, not linking. (e.g. futex doesn't link)
git-svn-id: trunk@18042 -
2011-07-31 23:36:17 +00:00
michael
e357dc3fb9
* LongdateFormat equals shortdateformat (no longdateformat is available in langinfo) Bug #19616 .
...
git-svn-id: trunk@17914 -
2011-07-02 13:42:44 +00:00
michael
a201f07420
* Added share mode argument to FileCreate call
...
git-svn-id: trunk@17548 -
2011-05-23 21:11:07 +00:00
florian
16b47d4e07
* patch by Nikolay Nikolov to use a hardware block cursor on the
...
linux console, resolves #19259
git-svn-id: trunk@17516 -
2011-05-20 20:39:43 +00:00
michael
be484359b8
* Corrected fix for FileAge
...
git-svn-id: trunk@17224 -
2011-04-02 15:28:24 +00:00
michael
9747f7f0cd
* Do not allow fileage for directories (15873)
...
git-svn-id: trunk@17221 -
2011-04-02 10:43:39 +00:00
sergei
d3fe020a55
* Don't use deprecated symbols anymore, silences compilation.
...
* GetFormatSettings function now can fill an arbitrary TFormatSettings record.
git-svn-id: trunk@17209 -
2011-03-30 16:20:56 +00:00
marco
d9773a2ee0
* added alias for statsfs
...
git-svn-id: trunk@17037 -
2011-02-27 20:14:11 +00:00
marco
608498c64c
* committed the fpc/ hierarchy parts of the patch in mants 18271:
...
Adding clocale to Solaris.
git-svn-id: trunk@16771 -
2011-01-16 10:37:02 +00:00
Jonas Maebe
a2e8134b7c
* part of r16533, forgot to commit
...
* also fixes CharLengthPChar() for non-BeOS by initialising the mbstate
parameter passed to mbrlen() to 0 (otherwise its contents are interpreted
as already valid, containing information about the current shiftstate etc)
git-svn-id: trunk@16552 -
2010-12-11 18:08:16 +00:00
sergei
cbdc08b641
* dynlibs.pas: added 'const' modifiers to eliminate unnecessary local string copies
...
git-svn-id: trunk@16366 -
2010-11-18 22:09:48 +00:00
Jonas Maebe
0cb2fa1baf
+ semtimedop() for Linux, marked as "platform" (last part of patch from
...
mantis #14075 )
git-svn-id: trunk@16339 -
2010-11-13 18:37:43 +00:00
Jonas Maebe
36aa39cc38
o fixed several Linux ipc bugs, based on patch by Ruben Chaer/
...
Pablo Alfaro (mantis #14075 , also fixes #13363 ):
* ipc msgtyp is clong, not cint
* TIPC_Perm and TSEMid_ds are different on 64 bit systems
* fixed passing semun arguments (have to be passed by value, not reference)
* fixed the order of parameters to msg* syscalls, and don't use
TIPC_Kludge for msgrcv syscall (only for ipccall.inc variants)
* use new operation variants on 64 bit platforms in ipccall.inc
* introduced use kernel_mode/uid/gid_t types for use by the Linux ipc
records
* fixed type of TSEMid_ds.sem_base for Darwin
* added {$packrecords c} to ipc unit, and {$packrecords 4} around
certain structs for Darwin as in the C headers
* fixed passing semun argument to semctl for libc platforms (by
value, not reference)
git-svn-id: trunk@16336 -
2010-11-13 16:58:23 +00:00
Jonas Maebe
c4488f6b3a
* hook up CompareUnicodeStringProc and CompareTextUnicodeStringProc in
...
cwstring (fixes webtbs/tw17591.pp on unix platforms)
* enhanced webtbs/tw17591.pp so it also (superficially) checks the
correctness of the called routines, and add cwstring for unix platforms
git-svn-id: trunk@16298 -
2010-11-03 12:16:20 +00:00
michael
8dd254b281
* Fixed synchronize/waitfor issue
...
git-svn-id: trunk@16145 -
2010-10-12 18:08:24 +00:00
mazen
b127fc154a
* Fixed spell error revealed by lintian.
...
git-svn-id: trunk@16094 -
2010-10-06 20:33:57 +00:00
Jonas Maebe
1258fd6ef0
- disabled FpSigTimedWait also for haiku (based on patch by
...
Olivier Coursiere, mantis #16996 )
git-svn-id: trunk@15620 -
2010-07-20 20:54:04 +00:00
Jonas Maebe
62ece31615
- disabled fpsigtimedwait for darwin because it doesn't exist there
...
git-svn-id: trunk@15605 -
2010-07-18 22:07:33 +00:00
daniel
1009a84e25
+ Add modify_ldt to linux unit
...
+ Add sched_yield to linux unit
- Remove clone for m68k from linux unit (unimplemented assembler section)
+ Add fpsigtimedwait to baseunix unit
git-svn-id: trunk@15602 -
2010-07-18 21:53:26 +00:00
Jonas Maebe
d7cdd9afba
* allow tthread-based threads to only start executing once the constructor
...
has finished running (based on patch by Jared Davison, mantis #16884 )
git-svn-id: trunk@15599 -
2010-07-18 16:31:25 +00:00
Jonas Maebe
bfc1a6ff1c
+ added support for intialising/finalising threads not started via the FPC
...
runtime
git-svn-id: trunk@15557 -
2010-07-12 16:16:50 +00:00
Tomas Hajny
03f52902f3
* do not use / as DriveSeparator
...
git-svn-id: trunk@15454 -
2010-06-19 16:22:10 +00:00
Jonas Maebe
194855eee0
* de-tabbed
...
git-svn-id: trunk@15419 -
2010-06-13 11:44:33 +00:00
Jonas Maebe
45c813929a
* update the coordinates properly if a string is written that exactly fills
...
a line (mantis #15599 )
git-svn-id: trunk@15241 -
2010-05-08 11:29:25 +00:00
marco
02069109d1
* haiku also sinlen, Mantis 16176
...
git-svn-id: trunk@15104 -
2010-04-01 11:38:55 +00:00
marco
8cce3d3f91
* closethread thread manager field/function. Mantis 13160
...
git-svn-id: trunk@15072 -
2010-03-26 23:31:52 +00:00
Jonas Maebe
4d8f578e4c
* when typecasting the result of pthread_self, always call it using
...
pthread_self(), because it's a procvar under Linux and hence otherwise
the value of the procvar instead of the function result will be
taken (mantis #15821 )
git-svn-id: trunk@15049 -
2010-03-24 21:51:07 +00:00
marco
c477df5046
* TCriticalSection.Tryenter support (Mantis 15928) + short test/demo
...
tested on FreeBSD (general Unix) and Windows. Note that Haiku seems
to have a native threadmgr rather than the Unix one. Will notify
maintainer (Olivier)
git-svn-id: trunk@15026 -
2010-03-21 11:34:05 +00:00
Jonas Maebe
3ea3a41d2a
o patch from Olivier for Haiku libiconv functionality (mantis #15906 ):
...
* Haiku's nl_langinfo implementation is now used under Haiku instead of
the BeOS stub.
* Fix linking to iconv in the iconvenc package. The prefix has change
since the previous Haiku's version.
git-svn-id: trunk@14995 -
2010-03-09 09:58:14 +00:00
Jonas Maebe
9cd0a2ff1e
* link to libpthread at compile time on Linux to avoid problems on some
...
newer glibc systems when it's only loaded dynamically at run time
git-svn-id: trunk@14970 -
2010-03-04 15:36:35 +00:00
marco
be98b13554
* fix for 11263, changed fileread and fd_zero to out using $modeswitch.
...
git-svn-id: trunk@14965 -
2010-03-01 22:35:14 +00:00
Tomas Hajny
5c31042f6a
* SharedSuffix moved to include files to reduce number of ifdefs
...
git-svn-id: trunk@14902 -
2010-02-13 15:44:12 +00:00
pierre
048b2ba67b
* fix pthread problem wen using nice for solaris
...
git-svn-id: trunk@14823 -
2010-01-28 19:05:42 +00:00
pierre
df33542ca9
+ Timezone support for solaris
...
git-svn-id: trunk@14821 -
2010-01-28 11:03:32 +00:00
marco
b8d5a8f44c
* Linux specific time_t fixes. Also tested with -dFPC_USE_LIBC and more problem fixed.
...
git-svn-id: trunk@14586 -
2010-01-09 22:02:36 +00:00
marco
5d87461507
* moves the alias "TTime = time_t" from ptypes.inc to unixtype.pp.
...
This means it is not aliased in the body of the system unit (which causes
trouble with the delphi type of the same name), but baseunix/unix/unixtype
will containue to export the type.
git-svn-id: trunk@14584 -
2010-01-09 16:05:42 +00:00
marco
8e9a7e14ad
* Revised yesterday solution to a more general one. Executeprocess gets
...
another parameter, a set type with flags, default = []
git-svn-id: trunk@14572 -
2010-01-07 20:49:28 +00:00
Jonas Maebe
b214448b9e
* don't access the thread instance after calling DoTerminate to avoid
...
race conditions in case DoTerminate can cause the thread to be freed
already. Side-effect: changing FreeOnTerminate in DoTerminate no longer
has any effects, but this is compatible with the generic code for
ThreadProc in objpas/classes/classes.inc (patch by Nikolai ZHUBR)
git-svn-id: trunk@14504 -
2009-12-30 14:46:56 +00:00
florian
a3884c4e49
* fixes bootstrapping with 2.2.x
...
git-svn-id: trunk@14355 -
2009-12-07 20:16:31 +00:00
pierre
90ddd046bc
* Use default functions if call to iconv_open failed
...
git-svn-id: trunk@14352 -
2009-12-07 16:57:12 +00:00
Jonas Maebe
722d48c8c2
* only return an error if locking a file fails when the file is already
...
locked, but not when another error occurs (such as EsysNOLCK, because
this error may always be returned if the kernel doesn't support
locking, in which case programs such as fpcmake no longer work on
such systems)
git-svn-id: trunk@14350 -
2009-12-07 13:30:19 +00:00
michael
01ed4a6745
* Implemented OnBeep to install custom beep handler
...
git-svn-id: trunk@14254 -
2009-11-22 17:33:56 +00:00
marco
17062d667c
* ansistring versions of mk/rm/chdir in objpas, Mantis 15010. The os-dependant routines of *nix/os2/win/dos have been converted
...
git-svn-id: trunk@14211 -
2009-11-18 18:04:51 +00:00
Jonas Maebe
c2190ebd30
* return errors from unimplemented functions instead of random values
...
git-svn-id: trunk@14002 -
2009-11-01 15:41:29 +00:00
marco
778505701c
* set/getrlimit now also visible in baseunix when syscalls are used.
...
on systems that force ugetrlimit, use that transparently. (since
ugetrlimit is not posix in theory or practice, we can't export it),
resolves 13916
git-svn-id: trunk@13903 -
2009-10-17 19:14:09 +00:00
marco
5121f470a2
* moved ugetrlimit to the implementation (as linux specific call it shouldn't be exported)
...
* syscall implementation for FreeBSD of get/setrlimit
git-svn-id: trunk@13875 -
2009-10-16 18:47:43 +00:00
olivier
2e8a93da16
* tune new variable TerminalSupportsBold and TerminalSupportsHighIntensityColors
...
for BeOS and Haiku.
* BeOS : the terminal is very limited. Disabling both give best result.
* Haiku : Haiku's terminal claims to be xterm but has it's own problems.
git-svn-id: trunk@13741 -
2009-09-19 16:10:36 +00:00
florian
07ef0c33df
o another linux console patch by Nikolay Nikolov:
...
* disabled linux VCSA output in UTF-8 mode, because it does not do any translation
and assumes that the font is cp437, or similar, which looks horrible on fonts
(like fedora's default latarcyrheb-sun16), which are designed only for unicode
support and have no similarity at all to cp437. We already can display all the
cp437 characters in UTF-8 mode (including the low 32 characters), in case the
font is cp437, and the UTF-8 translation provides better approximation (e.g.
for the line drawing characters) if the font is not cp437.
* do not "restore" the linux system font in SysDoneVideo in UTF-8 mode,
since we didn't change the font on startup
* added try_grab_vcsa to try harder to open VCSA in the linux IDE user
screen restore code. While VCSA is no longer needed in the video unit on
UTF-8 systems, the IDE still needs it, because it's the only way to provide
the "restore user screen" functionality on the linux virtual console.
git-svn-id: trunk@13726 -
2009-09-16 19:58:42 +00:00
Jonas Maebe
1f6b55290e
* fixed fpsignal for linux/x86_64 and possibly some other platforms as well
...
(patch by Nikolay Nikolov, mantis #14514 )
git-svn-id: trunk@13666 -
2009-09-06 20:03:09 +00:00
florian
a023c165da
o patch by Nikolay Nikolov to make the text mode IDE look pretty under
...
modern Linuxes by a patch for UTF-8 console output.
Previously, only BeOS used UTF-8. Tested with:
- the linux console
- xterm
- gnome-terminal
- konsole
- rxvt-unicode
using Fedora 11.
Tested with
- gnome-terminal
- xterm
- konsole
using Ubuntu 9.04
Known "features":
* high intensity colours were actually normal intensity, with a bold attribute set.
This worked fine under gnome-terminal, but xterm didn't have bold versions of all cp437 characters,
which screwed up the window borders in the IDE. And although konsole had them, I didn't like the font -
it converted all the double window borders to a very thick single-line border.
So I disabled the bolding of high intensity colours in all X11 terminals (TERM=xterm)
and replaced it with another ANSI attribute, that actually sets high intensity
colours, but is not (in theory) supported by all terminals. The linux console doesn't
support it - it actually wants a bold attribute, to set high intensity,
so that's why I enabled it only for X11 terminals. All the ones,
that I tried, worked fine (xterm, gnome-terminal,
konsole, rxvt-unicode, also the plain old rxvt, with a non-UTF-8 locale).
* Fedora 11 by default uses a 512-characters font, called latarcyrheb-sun16
for the linux text mode console, which disables the high intensity colours,
effectively reducing the set of available colours to only 8.
This is a hardware limitation of the VGA hardware and can be avoided by
using a 256-character font. It does not need to be cp437,
but it has to have an unicode mapping.
* I haven't tried other linux distros (and unix-like OSes, i.e. FreeBSD and Mac OS X) -
although they should work in theory, they might look bad, due to different fonts, etc.
git-svn-id: trunk@13651 -
2009-09-05 14:54:22 +00:00
olivier
7616e9e50e
* Harmonize kbAltUp, kbAltDown and kbAltRight declarations for xterm
...
terminals with kbAltLeft. Only applied to Haiku to stay on the safe side.
Fix use of up, down and right arrow keys in fpide under Haiku
(mantis #14491 )
git-svn-id: trunk@13644 -
2009-09-04 21:29:25 +00:00
michael
e8a375c774
* Patch from Henry Vermaak to fix EABI kernel API for arm.
...
git-svn-id: trunk@13563 -
2009-08-20 08:00:50 +00:00
Jonas Maebe
ef1c033f49
+ added fppause() for FPC_USE_LIBC
...
* fixed test
git-svn-id: trunk@13436 -
2009-07-24 21:52:01 +00:00
marco
7c52be9287
* moved a linux specific call to the implementation of system, where
...
it is used. General Unix units should not expose Linux-specific
functionality.
git-svn-id: trunk@13427 -
2009-07-23 11:35:18 +00:00
Jonas Maebe
deb052c3f5
* skip glibc-specific modifiers while parsing the locale info
...
(patch by Petr-K, fixes mantis #12148 )
git-svn-id: trunk@13396 -
2009-07-16 16:51:10 +00:00
Jonas Maebe
4e446c6184
* use ShortTimeFormat also for LongTimeFormat if T_FMT_AMPM is not defined
...
for the current locale (Kylix-compatible, thanks to Luca Olivetti for
the hint, fixes mantis #13947 )
git-svn-id: trunk@13395 -
2009-07-16 16:44:15 +00:00
Jonas Maebe
25463000ac
* do not mark all found files with Find* as "faHidden" if the search path
...
starts with './' (mantis #14020 )
* also mark files whose name starts with '.' that are found in subdirectories
as faHidden (not reported, but was due to a similar error)
- removed some unused variables related to the Find* functionality
git-svn-id: trunk@13307 -
2009-06-21 10:21:06 +00:00
marco
a862d93652
* unix sockets now also exports tsocklen, like windows one
...
git-svn-id: trunk@13276 -
2009-06-15 08:17:05 +00:00
michael
9538da64f9
* Change so that when FindFirst initially returns nonzero, FindClose is no longer needed (Windows compatible)
...
git-svn-id: trunk@13209 -
2009-05-29 07:24:02 +00:00
Jonas Maebe
78c29a33ba
* changed the parameters of gotoxy() and the return values of wherex/wherey
...
from byte into tcrtcoord=1..255, since all crt unit coordinates are
1-based (not for Window() procedure, see comments in crth.inc;
mantis #13788 )
git-svn-id: trunk@13191 -
2009-05-24 11:48:49 +00:00
Jonas Maebe
f6d452c2c0
* remove the RTL's installed signal handlers at the end of the system
...
unit's initialization code in case we're in a library
+ implemented InquireSignal(), AbandonSignalHandler(), HookSignal() and
UnhookSignal() in the sysutils unit
* for Kylix compatibility, these routines support operating on
SIGINT and SIGQUIT as well, although they are not hooked by default
by FPC. The run time errors/exception codes for these signals are
resp. 217 and 233 (same as in Kylix; I changed ENoWideStringSupport
to 234).
* changed the BSD syscall version of fpsigaction to use pointer
rather than "var" arguments (compatible with other targets, and
required to be able to pass nil arguments inside the system unit)
-> together fixes mantis #12704
git-svn-id: trunk@13077 -
2009-05-02 09:40:44 +00:00
Jonas Maebe
99a02a93ca
* also consider the search attributes for findfirst if the name does
...
not contain wildcards + test
* don't return true from FindGetFileInfo if the file name is ok, but the
search attributes don't match (resulted in returning multiple times the
name of the previous entry that did fulfill all requirements)
git-svn-id: trunk@13074 -
2009-05-01 16:03:56 +00:00
Jonas Maebe
afab9fb99c
* force utf-8 on iPhoneOS, because locale settings are absent/ignored there
...
git-svn-id: trunk@13066 -
2009-05-01 09:19:53 +00:00
Jonas Maebe
4771ca3ce1
* import iconv functions as libiconv_* instead of as iconv_* for ppc32
...
for Mac OS X 10.3 compatibility
git-svn-id: trunk@13035 -
2009-04-25 09:34:11 +00:00
Jonas Maebe
1ad1eac9e8
* use monetary thousands separator if numerical thousands separator is #0
...
(mantis #13552 , patch by Jesus Reyes)
git-svn-id: trunk@13029 -
2009-04-23 19:17:37 +00:00
Jonas Maebe
039847b5c0
- removed duplicate GenMouseEvent() procedure (patch by Danny Milosavljevic,
...
mantis #13412 )
git-svn-id: trunk@12993 -
2009-04-01 17:12:55 +00:00
Jonas Maebe
c66791a605
* made AddSpecialSequence() public with the "platform" keyword, as
...
suggested by Marco in his comment to mantis #13413
git-svn-id: trunk@12992 -
2009-04-01 17:05:33 +00:00
Jonas Maebe
fe773871d6
* EINTR handling...
...
git-svn-id: trunk@12930 -
2009-03-20 13:03:14 +00:00
Jonas Maebe
803e78ff8c
* and more ESysEINTR and fpwaitpid fixing
...
git-svn-id: trunk@12929 -
2009-03-19 22:51:41 +00:00
Jonas Maebe
8b53f8c41a
* fixed a bunch of cases where ESysEINTR wasn't handled
...
git-svn-id: trunk@12924 -
2009-03-19 21:46:12 +00:00
Jonas Maebe
b92df02778
* new Intbasicevent*() implementation based on pthread_cond_signal by
...
Fabio Luis Girardi (mantis #9895 )
git-svn-id: trunk@12857 -
2009-03-04 20:15:27 +00:00
Jonas Maebe
fba565d666
* use statvfs/fstatvfs on solaris instead of statfs/fstatfs, because the
...
latter are deprecated
* replaced (wrong) statfs record definition with the definition of statvfs
git-svn-id: trunk@12815 -
2009-02-28 10:18:36 +00:00
Jonas Maebe
f7003119d0
* fixed AddDisk() in sysutils and dos units, and fixed memory leaks
...
related to this functionality, based on analysis/patch by Michael
Kamburelis (mantis #9985 )
git-svn-id: trunk@12814 -
2009-02-27 22:02:24 +00:00
Jonas Maebe
9e7efd7321
* reduced waiting steps in emulated "timed wait" in basiceventwaitfor
...
further from 50ms to 20ms (mantis #9895 )
git-svn-id: trunk@12813 -
2009-02-27 21:36:55 +00:00
florian
475cd9926d
* couple of small haiku fixes by Olivier Coursiere
...
git-svn-id: trunk@12739 -
2009-02-14 10:36:12 +00:00
Jonas Maebe
6f12cb03db
* if no locking is specified, also request an exclusive lock for solaris
...
in case the file is opened as read/write (instead of only if opened as
write-only)
git-svn-id: trunk@12685 -
2009-02-04 11:41:18 +00:00
Jonas Maebe
78f6e5ff6e
* fixed fmShareDenyNone for Solaris
...
git-svn-id: trunk@12684 -
2009-02-04 10:13:46 +00:00
Jonas Maebe
6581c8dec5
* hopefully final fix to unix locking: specifying no locking mode again
...
means "exclusive lock" where supported (not on Solaris when opening
a file in read-only mode)
git-svn-id: trunk@12675 -
2009-02-03 13:34:56 +00:00
marco
6ab2cae3cc
* deprecated (for 2.4) some functions that take a shortstring path.
...
(problems with long filenames)
git-svn-id: trunk@12653 -
2009-02-02 10:06:03 +00:00
florian
c127154efa
o Haiku patches by Olivier Coursiere
...
+ add posix thread support
* improve signal handling
* synchronize haiku's baseunix unit with the unix one (maybe it will be possible to remove Haiku's one in a future patch, but i keep it for now)
+ add support for standard sockets
* fix some functions import to use the right libraries under Haiku
* fix packages compilation
git-svn-id: trunk@12636 -
2009-02-01 10:30:55 +00:00
Jonas Maebe
f9556bad39
* fixed ESysEIntr checking for fpflock
...
git-svn-id: trunk@12635 -
2009-01-31 21:12:17 +00:00
Jonas Maebe
4a829da2fc
* fixed fileopen when not specifying any sharing (should not perform any
...
locking at all) (= fmShareCompat, as that one is 0)
* fixed test for this change (and for fmShareDenyNone)
git-svn-id: trunk@12634 -
2009-01-31 18:46:11 +00:00
Jonas Maebe
9fabb0b127
* fixed file locking of files opened as read- or write-only on solaris
...
(locking is based on fcntl there, and that one cannot create an
exclusive lock for a read-only file or a shared lock for a write-only
file)
git-svn-id: trunk@12633 -
2009-01-31 18:11:58 +00:00
Jonas Maebe
57ff980bc3
* hopefully fixed beos compilation after r12630 (it doesn't have flock)
...
git-svn-id: trunk@12631 -
2009-01-30 16:09:08 +00:00
Jonas Maebe
a730ee7f10
+ support for file locking for *nix systems based on flock (mantis #13012 )
...
git-svn-id: trunk@12630 -
2009-01-30 15:08:30 +00:00
Jonas Maebe
9b67b6469b
* fixed FpFcntl() for libc-based systems
...
* fixed FpIoctl() for Linux/libc (it also uses varargs)
git-svn-id: trunk@12628 -
2009-01-29 15:38:17 +00:00
ivost
38bf32dddf
* added csize_t and pcsize_t for non unix systems (in unix/ctypes.pp)
...
* added csize_t = UnixTypes.size_t in ctypes.pp for unix systems.
* reason: size_t is a C type and it's often used by C header files. Several packages define their own size_t.
git-svn-id: trunk@12602 -
2009-01-26 12:58:20 +00:00
Jonas Maebe
ee05e0e740
* keep reading in getxy until the entire xterm response has been read
...
(mantis #8842 )
git-svn-id: trunk@12593 -
2009-01-25 14:08:27 +00:00
Jonas Maebe
1a1fc1357d
* honour the specified stack size when creating new threads on unix
...
platforms + test (mantis #12942 )
git-svn-id: trunk@12527 -
2009-01-08 18:37:24 +00:00
marco
b8194205af
* two more culong(1) shl fixes.
...
git-svn-id: trunk@12419 -
2008-12-23 14:00:59 +00:00
marco
a88ebff6dd
* fix for 64-bit signed<->unsigned issue, bug #12841
...
git-svn-id: trunk@12418 -
2008-12-23 13:57:25 +00:00
marco
52bb5ac229
* removed some old 1.0.x ->2.0.x transitional code (executeprocess)
...
git-svn-id: trunk@12238 -
2008-11-26 23:08:17 +00:00
florian
d78855cea8
+ more c types
...
git-svn-id: trunk@12175 -
2008-11-19 11:36:43 +00:00
micha
4594758ae5
+ add poll support for unix
...
git-svn-id: trunk@12128 -
2008-11-16 17:05:47 +00:00
Jonas Maebe
13d92bfa04
+ fpmkfifo for libc
...
git-svn-id: trunk@11903 -
2008-10-16 11:12:37 +00:00
florian
b178b08ba7
Merged revisions 11665-11738 via svnmerge from
...
http://svn.freepascal.org/svn/fpc/branches/unicodestring
........
r11665 | florian | 2008-08-30 13:30:17 +0200 (Sat, 30 Aug 2008) | 1 line
* continued to work on unicodestring type support
........
r11666 | florian | 2008-08-30 19:02:26 +0200 (Sat, 30 Aug 2008) | 2 lines
* expectloc for wide/ansi/unicode strings is LOC_CONSTANT or LOC_REGISTER now
........
r11667 | florian | 2008-08-30 20:42:37 +0200 (Sat, 30 Aug 2008) | 1 line
* more unicodestring stuff fixed, test results on win32 are already good
........
r11670 | florian | 2008-08-30 23:21:48 +0200 (Sat, 30 Aug 2008) | 2 lines
* first fixes for unix bootstrapping
........
r11683 | ivost | 2008-09-01 12:46:39 +0200 (Mon, 01 Sep 2008) | 2 lines
* fixed 64bit bug in iconvenc.pas
........
r11689 | florian | 2008-09-01 23:12:34 +0200 (Mon, 01 Sep 2008) | 1 line
* fixed several errors when building on unix
........
r11694 | florian | 2008-09-03 20:32:43 +0200 (Wed, 03 Sep 2008) | 1 line
* fixed unix compilation
........
r11695 | florian | 2008-09-03 21:01:04 +0200 (Wed, 03 Sep 2008) | 1 line
* bootstrapping fix
........
r11696 | florian | 2008-09-03 21:07:18 +0200 (Wed, 03 Sep 2008) | 1 line
* more bootstrapping fixed
........
r11698 | florian | 2008-09-03 22:47:54 +0200 (Wed, 03 Sep 2008) | 1 line
+ two missing compiler procs exported
........
r11701 | florian | 2008-09-04 16:42:34 +0200 (Thu, 04 Sep 2008) | 2 lines
+ lazarus project for the linux rtl
........
r11702 | florian | 2008-09-04 16:43:27 +0200 (Thu, 04 Sep 2008) | 2 lines
+ set unicode string procedures
........
r11707 | florian | 2008-09-04 23:23:02 +0200 (Thu, 04 Sep 2008) | 2 lines
* fixed several type casting stuff
........
r11712 | florian | 2008-09-05 22:46:03 +0200 (Fri, 05 Sep 2008) | 1 line
* fixed unicodestring compilation on windows after recent unix changes
........
r11713 | florian | 2008-09-05 23:35:12 +0200 (Fri, 05 Sep 2008) | 1 line
+ UnicodeString support for Variants
........
r11715 | florian | 2008-09-06 20:59:54 +0200 (Sat, 06 Sep 2008) | 1 line
* patch by Martin Schreiber for UnicodeString streaming
........
r11716 | florian | 2008-09-06 22:22:55 +0200 (Sat, 06 Sep 2008) | 2 lines
* fixed test
........
r11717 | florian | 2008-09-07 10:25:51 +0200 (Sun, 07 Sep 2008) | 1 line
* fixed typo when converting tunicodestring to punicodechar
........
r11718 | florian | 2008-09-07 11:29:52 +0200 (Sun, 07 Sep 2008) | 3 lines
* fixed writing of UnicodeString properties
* moved some helper routines to unicode headers
........
r11734 | florian | 2008-09-09 22:38:55 +0200 (Tue, 09 Sep 2008) | 1 line
* fixed bootstrapping
........
r11735 | florian | 2008-09-10 11:25:28 +0200 (Wed, 10 Sep 2008) | 2 lines
* first fixes for persisten unicodestrings
........
r11736 | florian | 2008-09-10 14:31:00 +0200 (Wed, 10 Sep 2008) | 3 lines
Initialized merge tracking via "svnmerge" with revisions "1-11663" from
http://svn.freepascal.org/svn/fpc/trunk
........
r11737 | florian | 2008-09-10 21:06:57 +0200 (Wed, 10 Sep 2008) | 3 lines
* fixed unicodestring <-> variant handling
* fixed unicodestring property reading
........
git-svn-id: trunk@11739 -
2008-09-10 20:14:31 +00:00
Jonas Maebe
4f5513466a
* reverted r11671 because it breaks tthread.waitfor on unix
...
git-svn-id: trunk@11731 -
2008-09-08 21:10:38 +00:00
Jonas Maebe
7aee2f3d71
* moved fplstat(ansistring,pstat) overload to bunxovl(h).inc, so all
...
platforms have (fixes compilation for FPC_USE_LIBC platforms after
r11681)
git-svn-id: trunk@11693 -
2008-09-02 10:14:45 +00:00
michael
7a058a9bf2
* Added overloaded call for fplstat which has var argument (as for stat)
...
* Implemented support for faSymlink, as per 9915
git-svn-id: trunk@11681 -
2008-09-01 09:17:58 +00:00
michael
c179162028
* Call EndThread manually if thread function returns (mantis #11490 )
...
git-svn-id: trunk@11671 -
2008-08-30 21:48:39 +00:00
Jonas Maebe
bbaacc593a
+ darwin implementation of ipc unit by Werner Bochtler (mantis #10612 )
...
git-svn-id: trunk@11549 -
2008-08-11 21:29:49 +00:00
Jonas Maebe
0c002889b0
+ fpchown() for FPC_USE_LIBC (by Tobias Giesen, mantis #11705 )
...
git-svn-id: trunk@11432 -
2008-07-21 19:37:24 +00:00
joost
acff7f60bd
* Add path-delimiters properly in GetAppConfigDir and GetAppConfigFile
...
git-svn-id: trunk@11384 -
2008-07-15 13:12:42 +00:00
florian
5ff2312993
* fixed x86 unit for x86-64
...
* enabled ports again for x86_64-linux
git-svn-id: trunk@11360 -
2008-07-10 19:52:14 +00:00
marco
f9c179da18
* add psize_t
...
git-svn-id: trunk@11296 -
2008-06-28 18:16:44 +00:00
Almindor
6433f8c38b
* fix DiskFree and DiskSize to check for Drive argument
...
git-svn-id: trunk@11226 -
2008-06-14 11:19:51 +00:00
florian
494e237b1e
* Haiku patch by Olivier Coursiere
...
- a little more native rtl: it use a native haiku library for select function instead of relying on a compatibility symlink
- haiku in the list of target that support the ide
- some more fix in some packages
git-svn-id: trunk@11135 -
2008-05-31 11:33:02 +00:00
michael
26575472b6
* Added GetUSerDir function (ID 11338)
...
git-svn-id: trunk@11074 -
2008-05-24 11:50:26 +00:00
michael
6378cc25eb
* Fixed 8076
...
git-svn-id: trunk@11040 -
2008-05-22 18:12:10 +00:00
florian
3d17adaeeb
* patch for 10812 by Danny Milosavljevic
...
git-svn-id: trunk@11018 -
2008-05-19 20:02:23 +00:00
florian
35c0f78642
+ Haiku support by Olivier Coursière based on old BeOS support
...
git-svn-id: trunk@11014 -
2008-05-19 17:33:35 +00:00
florian
d955c9b4f7
+ proper handling of lineinfo retrival for dyn. libs in unix
...
git-svn-id: trunk@11010 -
2008-05-18 18:42:09 +00:00
marco
619ccffac0
* fix currency copy with extra safety on *BSD, fixed ampm
...
git-svn-id: trunk@10804 -
2008-04-26 15:15:16 +00:00
marco
a37bb0dd6e
* some debug stuff under ifdef + one fix for *BSD currency
...
git-svn-id: trunk@10801 -
2008-04-26 11:30:11 +00:00
marco
36b557b142
* quick test successful -> commit
...
git-svn-id: trunk@10626 -
2008-04-11 15:00:26 +00:00
michael
fce221f9b4
* Added clocale.pp from Petr Kristan
...
git-svn-id: trunk@10620 -
2008-04-09 08:32:26 +00:00
micha
83b7f81f81
+ add no-fpu support to compiler/rtl for powerpc-linux (-Cfnone)
...
git-svn-id: trunk@10422 -
2008-03-02 12:59:02 +00:00
peter
f4f3ae84d0
* AllowDirectorySeparators and AllowDriveSeparators typed constants
...
added to allow customization of path and directory parsing in the rtl
* Use the new sets instead of the hardcoded / and \
git-svn-id: trunk@10105 -
2008-01-29 23:04:56 +00:00
peter
95d0ce1270
* VendorName function added to allow an extra subdirectory
...
to group multiple products
* OnGetVendorName hook, like OnGetApplicationName
* use COMMON_APPPATH for global config files under windows
git-svn-id: trunk@10072 -
2008-01-27 21:40:55 +00:00
Jonas Maebe
8349cde7db
* changed byte/word/longbool to be Delphi-compatible (+ similar changes
...
for qwordbool) + test:
o assigning true to such a variable now sets them to $ff/$ffff/$ffffffff
o these types are now all signed
o converting an integer type to a byte/word/long/qwordbool using an
explicit type cast keeps the integer's original value stored in the
bool, instead of forcing it to ord(true)/ord(false)
(mantis #10233 and #10613 , implemented for all architectures, testsuite
tested for ppc32, sparc and x86)
* fixed some places where the rtl depended on longbool(true) having the
value 1
* extended several boolean tests (and adapted some to no longer assume
that byte/word/long/qwordbool(true)=1)
+ support for converting to qwordbool in second_int_to_bool for x86, ppc
and sparc
git-svn-id: trunk@9898 -
2008-01-24 21:30:55 +00:00
peter
73871b64ce
* BeOS/Haiku updates from Olivier Coursière
...
git-svn-id: trunk@9880 -
2008-01-23 15:37:25 +00:00
Jonas Maebe
1d88e3eb11
* replace strpcopy with its own code because unix no longer
...
depends on the strings unit (patch from Peter)
git-svn-id: trunk@9851 -
2008-01-21 14:45:40 +00:00
peter
1aa548426b
* remove uses strings
...
git-svn-id: trunk@9827 -
2008-01-20 21:27:01 +00:00
peter
37e509f290
* remove uses strings, strlen/strpas are in system unit
...
git-svn-id: trunk@9826 -
2008-01-20 21:07:08 +00:00