paul
88a10330c2
rtl: initialize DefaultSystemCodePage on aix,beos,haiku,solaris
...
git-svn-id: trunk@22428 -
2012-09-21 01:45:18 +00:00
marco
1dbde17516
* fix some of the overloads for -A and -W routines.
...
git-svn-id: trunk@22427 -
2012-09-20 16:56:28 +00:00
florian
e2e4634295
- remove maps with unclear header
...
git-svn-id: trunk@22421 -
2012-09-18 18:46:23 +00:00
paul
a2548fc9f9
rtl: pass exact size to delete instead of full string length
...
git-svn-id: trunk@22418 -
2012-09-18 00:31:21 +00:00
Jonas Maebe
8799d9d204
* don't create temporary ansistrings with codepage DefaultSystemCodePage
...
when concatenating or comparing CP_ACP strings, because the ansistring
conversion helpers also check for CP_ACP and do the right thing in
that case
* don't convert code pages when comparing CP_ACP strings with
DefaultSystemCodePage strings (mantis #22906 )
git-svn-id: trunk@22415 -
2012-09-17 19:41:44 +00:00
Jonas Maebe
349a682596
* corrected license header from GPL to LGPL + static linking exception like
...
the rest of the FPC RTL, after confirming with the original author that
this is ok (mantis #22879 )
git-svn-id: trunk@22413 -
2012-09-17 12:12:42 +00:00
paul
f338d5c338
rtl: set DefaultSystemCodePage on linux without cwstrings
...
git-svn-id: trunk@22411 -
2012-09-17 08:31:37 +00:00
paul
d7d8c10aaf
bsd: set DefaultSystemCodePage without cwstring.pas
...
git-svn-id: trunk@22410 -
2012-09-17 02:33:06 +00:00
Jonas Maebe
404e1a34a4
* changed resource handle parameters from THandle to TFPResourceHMODULE so
...
they don't truncate the handle data on 64 bit platforms (patch by
Anton Kavalenka, mantis #21721 )
git-svn-id: trunk@22392 -
2012-09-14 15:05:08 +00:00
pierre
6eccf88499
call halt(217) if get_caller_XX function generates an exception
...
git-svn-id: trunk@22389 -
2012-09-14 13:45:31 +00:00
pierre
6ac8b6e9c7
Fix SigContextRec record for x86_64 cpu
...
git-svn-id: trunk@22388 -
2012-09-14 12:06:07 +00:00
Jonas Maebe
0ad1a26c61
* adjusted startup code so it guarantees 16 byte stack alignment on program
...
startup for Linux/i386 (since the code generator won't keep the 16 byte
alignment (yet?) for that platform, it won't make much difference in
practice)
git-svn-id: trunk@22383 -
2012-09-13 14:47:05 +00:00
pierre
305a275746
Protect with try/except blocks call to get_caller_XXX functions to avoid troubles if stack is invalid
...
git-svn-id: trunk@22381 -
2012-09-13 12:37:49 +00:00
pierre
66b9617ba7
Do not add 8 to NIL values of get_caller_addr
...
git-svn-id: trunk@22370 -
2012-09-11 08:08:48 +00:00
marco
1a895a875b
* move fpgetenv(pchar) to unit system for syscall based *nix rtls.
...
It was already available for libc based *nix rtls
git-svn-id: trunk@22365 -
2012-09-10 09:21:56 +00:00
marco
e245802fa8
* deprecated old shortstring getenv func.
...
git-svn-id: trunk@22364 -
2012-09-10 09:01:24 +00:00
Jonas Maebe
f2e1ec2771
* merged changes to systemh.inc/compproc.inc from r22289/r22290/r22310
...
git-svn-id: trunk@22349 -
2012-09-06 21:41:35 +00:00
florian
57ee96ef86
* compilation on non x86 fixed
...
git-svn-id: trunk@22330 -
2012-09-05 18:49:48 +00:00
florian
8818b58e5d
* Bsf/Bsr on x86 handle now correctly 0 as argument, resolves #22783
...
* generic Bsf implementations handle now correctly 0 as argument
* test extended
git-svn-id: trunk@22327 -
2012-09-05 13:51:45 +00:00
pierre
39e32a9b3e
Do not use nostackframe with local variable in get_fsr function
...
git-svn-id: trunk@22326 -
2012-09-05 12:24:45 +00:00
pierre
fe97069b12
Correct exceoption mask elements
...
git-svn-id: trunk@22325 -
2012-09-05 12:24:15 +00:00
florian
bc47125943
* use BsrDWord in software mod/div
...
* use a for loop instead of an until loop so code generation is potentially better
git-svn-id: trunk@22318 -
2012-09-04 18:58:20 +00:00
florian
1bb6248186
* disable hand optimized assembler for arm thumb2 as well
...
git-svn-id: trunk@22313 -
2012-09-04 14:29:52 +00:00
florian
d63ebe6464
* bsr implementation for armv5+ using clz
...
git-svn-id: trunk@22310 -
2012-09-04 12:56:38 +00:00
florian
9be3ca04ad
* split FPC_HAS_INTERNAL_BSX_* defines into FPC_HAS_INTERNAL_BSF_* and FPC_HAS_INTERNAL_BSR_*
...
git-svn-id: trunk@22308 -
2012-09-04 12:56:18 +00:00
florian
2db4606eb0
* fix bootstrapping with 2.6.0
...
git-svn-id: trunk@22293 -
2012-09-03 09:16:46 +00:00
florian
ff12d63248
+ generic popcnt support
...
git-svn-id: trunk@22290 -
2012-09-02 20:59:44 +00:00
florian
b782918434
* first draft to support the popcnt instruction, works so far for x86 with a real popcnt instruction
...
git-svn-id: trunk@22289 -
2012-09-02 20:59:39 +00:00
florian
86a6cee8fa
- removed due to BSD license header
...
git-svn-id: trunk@22286 -
2012-09-02 20:46:58 +00:00
Jonas Maebe
c71cb9dc69
* fixed null termination of cmdline (based on patch by C Western,
...
mantis #22742 ) -- that function seems like a good candidate to
put in a shared include file though
git-svn-id: trunk@22270 -
2012-08-30 21:30:31 +00:00
michael
441e059f32
* Changed ooChanged to ooChange, to be more consistent with tense in other values
...
git-svn-id: trunk@22262 -
2012-08-28 12:32:15 +00:00
michael
8d9f8e19c3
* remove use of ooCustom to avoid polluting custom use
...
git-svn-id: trunk@22261 -
2012-08-28 12:30:06 +00:00
michael
8a64893df6
* Forgot to commit
...
git-svn-id: trunk@22260 -
2012-08-28 07:20:42 +00:00
michael
445ec2672a
* TCollection.Exchange also needs to notify
...
git-svn-id: trunk@22258 -
2012-08-27 19:35:54 +00:00
michael
43be53351e
* Added observer support
...
git-svn-id: trunk@22257 -
2012-08-27 19:28:14 +00:00
Jonas Maebe
2dbe48a76c
* extra "addr" parameters for get_caller_addr/frame (patch by
...
Jeppe Johansen, mantis #22727 )
git-svn-id: trunk@22252 -
2012-08-26 19:07:36 +00:00
Jonas Maebe
198625af47
* fixed memory statistics after try_concat_free_chunk_forward() concatenated
...
some blocks, but the result was still not large enough to satisfy a
reallocmem call (mantis #14315 )
git-svn-id: trunk@22249 -
2012-08-26 15:29:44 +00:00
Jonas Maebe
193c7af57f
* print literal e/E in formatfloat if not followed by +/- (remaining part of
...
mantis #22290 )
git-svn-id: trunk@22248 -
2012-08-26 14:51:32 +00:00
Jonas Maebe
e073bf3008
* set destination codepage in DefaultUnicode2AnsiMove
...
git-svn-id: trunk@22247 -
2012-08-26 14:51:26 +00:00
Jonas Maebe
d4eb2d7336
* fixed the conversion of 'UTF-8' to the corresponding code page number
...
(there's a dummy entry with code page 0 for UTF-8 in the table for
when 0 is searched, but when going from string to number that
entry has to be skipped so the real UTF-8 entry is used)
git-svn-id: trunk@22245 -
2012-08-26 08:58:42 +00:00
Jonas Maebe
da32d99b7e
* declare Sptr() and get_frame() as "nostackframe"
...
git-svn-id: trunk@22235 -
2012-08-24 18:49:33 +00:00
pierre
4ecd67f6e2
* Use gsed if present and temp directory to avoid system recompilation
...
git-svn-id: trunk@22169 -
2012-08-22 09:43:34 +00:00
michael
a110490a5e
* Added slice dummy
...
git-svn-id: trunk@22154 -
2012-08-20 22:57:29 +00:00
florian
62eed2e3f2
* function round(c : currency) : int64; requires the availability of an fpu
...
git-svn-id: trunk@22149 -
2012-08-20 20:15:07 +00:00
florian
088a7229aa
* use ValSInt parameter as code parameter in val calls to make the code cross platform
...
git-svn-id: trunk@22148 -
2012-08-20 20:12:04 +00:00
florian
04034b6771
* avr uses a reduced buffer and file name length in textrecs and filerecs
...
* fixed file and text sizes for avr
git-svn-id: trunk@22147 -
2012-08-20 20:11:13 +00:00
florian
7201bd8526
+ sincos implemenation for x86-64
...
git-svn-id: trunk@22142 -
2012-08-19 22:36:59 +00:00
florian
1da4c0c3ce
* SinCos overloads added, resolves #22663
...
git-svn-id: trunk@22139 -
2012-08-19 22:09:03 +00:00
masta
13e2572140
Remove unnecessary compiler version checks in rtl/arm/arm.inc
...
The CPUARM_HAS_* flags are never defined in 2.6, so there is no reason
to check for the compiler version.
git-svn-id: trunk@22128 -
2012-08-19 15:51:44 +00:00
Jonas Maebe
060e3ed4ee
* changes from r21697, 21707, 21843, 21861, 21701, 21887, 21899 and 21900
...
to systemh.inc/system.inc/compproc.inc 'merged' into as of yet still
JVM-specific copies of those files
git-svn-id: trunk@22125 -
2012-08-19 13:51:15 +00:00