Commit Graph

7733 Commits

Author SHA1 Message Date
micha
461c8fb09f * fix enum rtti info alignment for proper alignment required archs
git-svn-id: trunk@10471 -
2008-03-09 21:53:46 +00:00
florian
48fb130be3 * fixed fpu type setting for avr
git-svn-id: trunk@10463 -
2008-03-08 17:09:40 +00:00
micha
89e9d4ab17 * fix int64 multiplication on armeb
git-svn-id: trunk@10461 -
2008-03-08 13:02:51 +00:00
florian
c544d97de9 * fix edsp instructions detection
git-svn-id: trunk@10458 -
2008-03-07 21:51:14 +00:00
florian
ff03c9569d * fixed writing of long strings when using the crt unit on win32, resolves #8843
git-svn-id: trunk@10449 -
2008-03-06 20:20:29 +00:00
micha
3a8284b524 * add missing gencurr.inc belonging to revision 10422
git-svn-id: trunk@10438 -
2008-03-03 21:39:19 +00:00
micha
ebba2f1185 * add missing currh.inc belonging to revision 10422
git-svn-id: trunk@10437 -
2008-03-03 21:34:40 +00:00
marco
c8da24f732 * comment fix #10781
git-svn-id: trunk@10435 -
2008-03-03 08:28: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
Jonas Maebe
2722b5b381 * fixed overflow checking for $8000000000000000 in generic int64 mul
routine (constants >high(int64) are currently always interpreted as
    int64 (and thus < 0) by the compiler if there is no explicit typecast)

git-svn-id: trunk@10412 -
2008-03-01 19:38:19 +00:00
marco
4047d76279 win32finddataa
git-svn-id: trunk@10409 -
2008-03-01 16:38:55 +00:00
Jonas Maebe
ef4b238989 * lineinfo and lnfodwrf depend on inc/exeinfo.pp
+ add fake dependency of lnfodwrf on lineinfo to avoid those two
    units being compiled together, because then inc/exeinfo.pp can
    also be compiled twice at the same time which leads to trouble
    if -ap isn't used
 (part of r10329, forgot to commit)

git-svn-id: trunk@10386 -
2008-02-25 15:40:13 +00:00
florian
c424f27291 * patch by C Western for #10883
git-svn-id: trunk@10385 -
2008-02-24 20:00:08 +00:00
Jonas Maebe
7433e0ef89 * replaced a trunc() with an int() call (because its result is compared
with a float as well)

git-svn-id: trunk@10375 -
2008-02-21 13:18:56 +00:00
florian
c46b44b797 resolves #10509
* fixed SetInterfaceProp
+ PInterface
* extended trtti1

git-svn-id: trunk@10334 -
2008-02-15 20:54:10 +00:00
Jonas Maebe
c6921cc3df * lineinfo and lnfodwrf depend on inc/exeinfo.pp
+ add fake dependency of lnfodwrf on lineinfo to avoid those two
    units being compiled together, because then inc/exeinfo.pp can
    also be compiled twice at the same time which leads to trouble
    if -ap isn't used

git-svn-id: trunk@10329 -
2008-02-15 14:47:57 +00:00
peter
7ffbfdc9c8 * fix widestring concat multi for winlikewidestring. The
append optimization can't be used in this can because the
    trick with refcnt is not supported

git-svn-id: trunk@10327 -
2008-02-14 20:15:21 +00:00
marco
46acbe2ee0 * moved commdlg functions from windows to commdlg unit. Constants still have to be done.
git-svn-id: trunk@10323 -
2008-02-13 22:21:11 +00:00
marco
2e1682d7a7 * fix for #10772 interlocked now calling convention default (I hope, this modifier is undocumented #10823)
* remove comctl32 functions from windows. In time accctrl and comdlg functions will also go, but for that the respective windows headers must be done first.
      This both for delphi compat, and to avoid duplicate identifiers (and vague errors) as encountered with win32extra merging.

git-svn-id: trunk@10321 -
2008-02-13 21:00:14 +00:00
florian
c05d4912f4 + basic system unit for avr-embedded
* fixed several compiler stuff to be able to start system unit compilation on avr

git-svn-id: trunk@10318 -
2008-02-13 20:35:16 +00:00
tom_at_work
52135af71f * implement branchless fpc_abs_long in a generic way
* enable optimization for ppc/ppc64 (two times faster than 
"generic" rtl branching routine)

git-svn-id: trunk@10306 -
2008-02-11 21:13:52 +00:00
florian
f8c9052c21 * fixed writeln(<enum>) for 64 bit systems, resolves #10033
git-svn-id: trunk@10305 -
2008-02-11 21:05:08 +00:00
yury
29c19fa4e3 * Do not free invalid pointer in RegSetValueExA wrapper.
git-svn-id: trunk@10303 -
2008-02-11 18:43:37 +00:00
yury
518f21a99e * Import some functions by ordinal only to be compatible with older versions of wince.
git-svn-id: trunk@10301 -
2008-02-11 16:23:54 +00:00
Jonas Maebe
c35e0bf712 - removed fclex at the end of fpc_exp_real because it makes that routine 10+
times slower on P4/Athlon XP cpus, and removing it does not cause any test
    suite regressions

git-svn-id: trunk@10284 -
2008-02-10 21:49:52 +00:00
marco
4774f766e0 * second batch Lazarus' win32extra merging. Basic migration done, though a few discussion items remain open.
git-svn-id: trunk@10269 -
2008-02-10 14:17:11 +00:00
marco
c6c6bbd13a * first batch of lazarus' win32extra enhancements
git-svn-id: trunk@10268 -
2008-02-10 13:45:37 +00:00
marco
e9804d7002 * some more small updates.
git-svn-id: trunk@10258 -
2008-02-09 19:46:14 +00:00
marco
f8f4fc21a3 * More image_ structs from winnt.h
git-svn-id: trunk@10257 -
2008-02-09 18:55:59 +00:00
marco
bdf213a03a * ulong32 + 64 needed for imagehlp.pp
git-svn-id: trunk@10256 -
2008-02-09 12:31:20 +00:00
Jonas Maebe
4d9445749c * fixed buffer overflow in delete() for widestrings (patch by
Martin Schreiber, #10800)

git-svn-id: trunk@10255 -
2008-02-09 11:47:14 +00:00
marco
71a017aca0 * overload fix.
git-svn-id: trunk@10252 -
2008-02-08 19:58:51 +00:00
Jonas Maebe
521b5d88ff * fixed FindSectionMachO32PPC() return value
git-svn-id: trunk@10248 -
2008-02-08 14:06:31 +00:00
marco
fe7b1a7f2e * fixed smartlink like Jonas proposed dd 2008-01-06. Also relevant because of 10766
git-svn-id: trunk@10235 -
2008-02-07 09:56:51 +00:00
marco
51dc129916 * lfanew in dosheader aliased with union
git-svn-id: trunk@10229 -
2008-02-05 10:12:30 +00:00
Jonas Maebe
4b82b9b50e * set FunctionRelative to false for Mach-O so -gl works again
for stabs

git-svn-id: trunk@10202 -
2008-02-04 10:45:35 +00:00
marco
e7e430d2f5 * getfileinfoex + small delphi compat fix (tbstr)
git-svn-id: trunk@10195 -
2008-02-03 21:14:38 +00:00
marco
b527b5948a * TImageSectionHeader without underscores, per delphi compat
git-svn-id: trunk@10194 -
2008-02-03 20:37:13 +00:00
marco
5156dc33b2 * image_* related constants expanded.
git-svn-id: trunk@10193 -
2008-02-03 20:01:03 +00:00
marco
f2d6410812 * More small compat fixes and constants.
git-svn-id: trunk@10190 -
2008-02-03 17:57:56 +00:00
marco
a259154511 * propvariant and friends.
git-svn-id: trunk@10185 -
2008-02-03 17:18:45 +00:00
marco
fc2a1eb190 * minor delphi compat fixes for jcl
git-svn-id: trunk@10175 -
2008-02-03 10:59:39 +00:00
peter
60241db077 * extensions for ctypes, cwstring
git-svn-id: trunk@10164 -
2008-02-02 22:55:03 +00:00
marco
58b3208552 * fixed 16-bits types tgid/tpid/mode_t removed 1.0 compat ifdef
git-svn-id: trunk@10158 -
2008-02-02 17:39:27 +00:00
peter
cc710dc05f * remove objpas dependency, patch by Giulio
git-svn-id: trunk@10154 -
2008-02-02 16:16:21 +00:00
yury
0109c29e3f * Fixed bug #10716.
git-svn-id: trunk@10139 -
2008-02-01 19:59:12 +00:00
yury
617b59e1c0 * Fixed 3 warnings and 1 note.
git-svn-id: trunk@10135 -
2008-02-01 17:42:41 +00:00
yury
f040558e1c * Fixed wince compilation.
* Added some constants.

git-svn-id: trunk@10134 -
2008-02-01 17:39:02 +00:00
peter
517fd357c9 * DoDirSeperators pchar overload
git-svn-id: trunk@10133 -
2008-02-01 08:16:33 +00:00
peter
3ffcb2244e * FileSearch needs to check first the file in the
current dir

git-svn-id: trunk@10128 -
2008-02-01 07:03:30 +00:00
marco
07808fc80f * plresult for IContextMenu<x>
git-svn-id: trunk@10121 -
2008-01-30 22:50:51 +00:00
peter
e08570573f * fix and cleanup FileSearch
git-svn-id: trunk@10115 -
2008-01-30 11:57:23 +00:00
peter
69363bad5e * quote parameters with spaces
git-svn-id: trunk@10111 -
2008-01-30 00:15:22 +00:00
peter
8c0adc7f3d * fixed also ExtractFileName
git-svn-id: trunk@10108 -
2008-01-29 23:30:30 +00:00
peter
496212d5c4 * fixed ExtractFileExt broken after previous commit
git-svn-id: trunk@10107 -
2008-01-29 23:23:25 +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
3d319a99b8 * made forcedirectories consistent with other file handling
to accept both / and \ as spearators

git-svn-id: trunk@10104 -
2008-01-29 22:14:53 +00:00
marco
5eb8f7006b * interlockedincrement aliased for delphi compat
git-svn-id: trunk@10101 -
2008-01-29 21:02:13 +00:00
marco
66d08b2586 * Delphi compat overload reenabled.
git-svn-id: trunk@10098 -
2008-01-29 20:06:38 +00:00
marco
d7c9bb88d2 * remove some redundant pbyte definitions.
git-svn-id: trunk@10097 -
2008-01-29 19:37:41 +00:00
marco
66676be8e5 * pbyte killed, it is in systems nowadays
git-svn-id: trunk@10096 -
2008-01-29 19:35:01 +00:00
michael
6d5c3bbee6 * Patch from Giuliano Colla to fix tbits.size
git-svn-id: trunk@10095 -
2008-01-29 13:08:54 +00:00
michael
d87768dc0c * Implemented Loading, as per Graeme Geldenhuys request
git-svn-id: trunk@10094 -
2008-01-29 12:31:24 +00:00
marco
d28e21c4ac * Remove some BSD warnings. Still get warnings for cwstrings and ctypes, but
they are in inc/ ?

git-svn-id: trunk@10093 -
2008-01-29 09:10:29 +00:00
Jonas Maebe
76b7bfedd8 * fix for (w)chararray to ansi/widestring conversions after
ansi/widestring function handling change in r9718 (patch by
    Sergei Gorelkin)

git-svn-id: trunk@10073 -
2008-01-27 22:06:07 +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
peter
50a9dcd5f9 * global appconfig dir needs to be common_appdata directory
git-svn-id: trunk@10068 -
2008-01-27 19:55:05 +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
Jonas Maebe
200f1e5643 * fixed webtbs/tw10519.pp for CPUs which don't support extended
git-svn-id: trunk@9893 -
2008-01-24 10:33:14 +00:00
peter
5df1907f03 * windows support
git-svn-id: trunk@9888 -
2008-01-23 23:03:54 +00:00
peter
d77af6d31c * linux rtl can be built as package
git-svn-id: trunk@9883 -
2008-01-23 17:43:55 +00:00
peter
545d27e888 * go32v2 fixed
* moved all targets using the same executbale structure together so
    the reuse of the generic functions is more clear

git-svn-id: trunk@9881 -
2008-01-23 15:59:20 +00:00
peter
73871b64ce * BeOS/Haiku updates from Olivier Coursière
git-svn-id: trunk@9880 -
2008-01-23 15:37:25 +00:00
peter
ff4b5fcb59 * add all linux units, still need to finish dependencies
git-svn-id: trunk@9877 -
2008-01-23 00:24:05 +00:00
peter
a738629e94 * completed linux system include deps
git-svn-id: trunk@9859 -
2008-01-21 18:16:08 +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
4f72209bc0 * more unix units added
git-svn-id: trunk@9833 -
2008-01-20 22:12:31 +00:00
marco
bbe4dfce00 * fix for 10292. Higher baudrates and new utf constant
git-svn-id: trunk@9828 -
2008-01-20 21:58:26 +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
daniel
0d78460e2e * Disable int_str again.
git-svn-id: trunk@9816 -
2008-01-20 14:47:48 +00:00
florian
b9fd8f0fc3 * build lnfdwarf on win64
git-svn-id: trunk@9815 -
2008-01-20 14:43:22 +00:00
peter
482ad1334b * support .gnu_debuglink section to have the debug info in an
external file

git-svn-id: trunk@9813 -
2008-01-20 13:13:55 +00:00
florian
f7a891248a * win64 compilation fix
git-svn-id: trunk@9812 -
2008-01-20 13:04:21 +00:00
Tomas Hajny
03de80785d * StabsFunctionRelative initialization hopefully fixed
git-svn-id: trunk@9810 -
2008-01-20 12:12:01 +00:00
Tomas Hajny
51b230d501 * one more change from FileSize (F) to E.Size, although it's in not yet adapted BEOS section
git-svn-id: trunk@9808 -
2008-01-20 12:06:28 +00:00
Tomas Hajny
8c9099b5e5 * E.Size changed to int64 for consistency with FileSize result
git-svn-id: trunk@9807 -
2008-01-20 11:57:47 +00:00
Tomas Hajny
00b342301a * partial fix for Win64 (CoffSymbol not resolved yet - is it equal in PE32 and PE32PLUS?)
git-svn-id: trunk@9806 -
2008-01-20 11:49:41 +00:00
Jonas Maebe
c743711f40 * fixed darwin/stabs code
git-svn-id: trunk@9805 -
2008-01-20 11:26:31 +00:00
Tomas Hajny
7d22198d43 * fix OS/2 compilation after exeinfo creation
git-svn-id: trunk@9803 -
2008-01-20 01:55:48 +00:00
Tomas Hajny
4b46ccdf4b * fix OS/2 compilation after exeinfo creation
git-svn-id: trunk@9802 -
2008-01-20 01:55:27 +00:00
peter
a504c974ab * use exeinfo unit to find .debug_line section
git-svn-id: trunk@9801 -
2008-01-19 22:09:58 +00:00
peter
c553583486 * cache filesize
* fix result setting for elf 

git-svn-id: trunk@9800 -
2008-01-19 22:09:42 +00:00
peter
2a479654f1 * remove asm for simple math functions so the generic inlined function is
taken. This generates smaller optimized code

git-svn-id: trunk@9796 -
2008-01-19 20:23:27 +00:00
daniel
624bb8e7e1 * Add win32 workaround suggested by Peter.
git-svn-id: trunk@9795 -
2008-01-19 19:32:03 +00:00
peter
1561d97465 * optimize write loop in int_str
git-svn-id: trunk@9794 -
2008-01-19 16:48:12 +00:00
peter
f70219cdd8 * add align directives to int_str
git-svn-id: trunk@9793 -
2008-01-19 16:32:39 +00:00
daniel
d12e107800 * Use fpc_geteipasebx.
git-svn-id: trunk@9792 -
2008-01-19 15:24:36 +00:00
yury
68f340eb9c * Fixed THREAD_PRIORITY constants.
git-svn-id: trunk@9790 -
2008-01-19 13:15:05 +00:00
daniel
220565fb94 * Remove unused lea from skip loop.
git-svn-id: trunk@9789 -
2008-01-19 08:33:48 +00:00
Jonas Maebe
8c45c66e13 * removed accidentally committed global disable of assembler int_str
* fixed compilation of int_str on darwin/pic
  * disabled int_str for darwin because it crashes

git-svn-id: trunk@9785 -
2008-01-18 23:09:37 +00:00
Jonas Maebe
95c991872b + added exeinfo to implicit units so make install works again
git-svn-id: trunk@9784 -
2008-01-18 23:03:38 +00:00
daniel
b8fdbb1055 * Some final tweaks to asm int_str.
git-svn-id: trunk@9782 -
2008-01-18 22:21:49 +00:00
daniel
f94d457429 * Add Darwin PIC support to assembler int_str again.
* Make it respect the open string boundary
  * Activate it again

git-svn-id: trunk@9781 -
2008-01-18 22:12:16 +00:00
peter
3befb1f832 * refactor executable loading into exeinfo unit so
it can be reused also for lnfodwrf

git-svn-id: trunk@9780 -
2008-01-17 23:47:42 +00:00
michael
41cce2fe42 * Fixed IsEmptyStr
git-svn-id: trunk@9775 -
2008-01-16 16:15:05 +00:00
joost
3852af4afb * Moved StringsReplace from sqldb to strutils
* Removed unused NotYetImplemented procedure from strutils

git-svn-id: trunk@9771 -
2008-01-15 22:13:47 +00:00
peter
923aac0390 * give range error if setlength value < 0 and the array is not filled
git-svn-id: trunk@9758 -
2008-01-14 18:05:48 +00:00
micha
a9972548b0 + add arm-linux/uclibc startup code
git-svn-id: trunk@9725 -
2008-01-12 17:08:43 +00:00
Jonas Maebe
cdfb7c8f26 * patch from Sergei Gorelkin to return ansi/widestrings by reference
in an invisible parameter (Delphi compatible, faster/smaller code)

git-svn-id: trunk@9718 -
2008-01-11 22:36:50 +00:00
Jonas Maebe
eb83213f10 * Only start recycling oschunks once MaxKeptOSChunks chuncks have
been allocated. E.g. allocate 100 blocks of 80 bytes and free them
    all, then the same with blocks of 96, 112, 128, 144, 160 and 176
    bytes, after which again 80 bytes -> previously, regardless of
    the value of MaxKeptOSChunks, the empty block for 80 bytes was
    reformatted for those of 96 bytes, then for 112 bytes etc. Now,
    if MaxKeptOSChunks is set to 7, none will ever be reformatted
    because enough chunks will be allocated from the OS.

git-svn-id: trunk@9696 -
2008-01-09 20:39:59 +00:00
Jonas Maebe
588822b14d * more ptruint type casts to avoid 64 bit comparisons on 32 bit
platforms

git-svn-id: trunk@9693 -
2008-01-09 18:32:37 +00:00
peter
4c54059cd7 * start of conversion to fpmake
git-svn-id: trunk@9687 -
2008-01-08 23:44:09 +00:00
Jonas Maebe
bf9b021749 * optimized align() so it no longer contains any branches which
are undecidable at compile time
  + basic test for align() function

git-svn-id: trunk@9674 -
2008-01-07 21:41:12 +00:00
Jonas Maebe
6dd8e51ee5 * folded a constant addition
* typecasted a subtraction's result to ptruint to avoid a needless
    64 bit calculation on 32 bit platforms

git-svn-id: trunk@9673 -
2008-01-07 21:28:58 +00:00
daniel
2ce992b4ae - Disable asm str_int again now that testsuites have run.
git-svn-id: trunk@9665 -
2008-01-07 07:45:58 +00:00
daniel
47c2cc095b * Make str_int pic proof.
git-svn-id: trunk@9661 -
2008-01-06 22:41:05 +00:00
daniel
6e2af37c48 Convert str_int to ATT assembler and activate it.
git-svn-id: trunk@9659 -
2008-01-06 21:29:31 +00:00
marco
5e95516323 * ancestor of TContainedObject fixed
git-svn-id: trunk@9651 -
2008-01-06 15:16:56 +00:00
peter
f6384b9361 * disable range/overflow checking when calculating with Nan
git-svn-id: trunk@9649 -
2008-01-06 12:45:03 +00:00
marco
408d5831ea * isimplementorof/referenceinfo, bug #10567
git-svn-id: trunk@9647 -
2008-01-06 00:12:43 +00:00
Jonas Maebe
337e53e712 * fixed mantis #10519 (when rounding for the first decimal digit and
it is at the same time the last, append the 0)

git-svn-id: trunk@9623 -
2008-01-03 22:14:54 +00:00
marco
97b1d04d8f * Fix for 10482, iinterfacecomponentreference
git-svn-id: trunk@9618 -
2008-01-02 20:45:09 +00:00
Jonas Maebe
edffeac316 * declare math.pinteger as an alias of objpas.pinteger to avoid type
masking errors (mantis #10540)

git-svn-id: trunk@9617 -
2008-01-02 19:53:14 +00:00
marco
574827a844 * Fix for 10534. tagstatstg now aliased in activex.pp to types.pp
git-svn-id: trunk@9616 -
2008-01-02 19:50:02 +00:00
marco
4b43848d66 * More fixes for 10522
git-svn-id: trunk@9608 -
2008-01-01 17:41:15 +00:00
marco
29b72c584a * DFCS_* constants for win2000+. Part of #10522
git-svn-id: trunk@9607 -
2008-01-01 17:28:54 +00:00
mazen
7c19e36595 * Added implementation for Julian date computaton.
git-svn-id: trunk@9604 -
2007-12-31 16:34:45 +00:00
peter
5acb3649df * revert r9557, the performance impact is to big for an academic corner
case optimziation

git-svn-id: trunk@9603 -
2007-12-31 13:36:16 +00:00
michael
8793de3166 * Applied patch from Sergei Gorelkin for ComposeDateTime and IncAMonth
git-svn-id: trunk@9600 -
2007-12-30 22:20:11 +00:00
michael
067d1ab582 * Added EPropertyConvertError class
git-svn-id: trunk@9598 -
2007-12-30 22:03:56 +00:00
michael
a375df54f2 Implemented get/setinterfaceproperty. Needs checking
git-svn-id: trunk@9597 -
2007-12-30 22:01:53 +00:00
michael
d7f94a8282 * Added GetModuleName
git-svn-id: trunk@9596 -
2007-12-30 21:50:40 +00:00
michael
eec321b2f8 * Implemented ExtractShortPathName
git-svn-id: trunk@9595 -
2007-12-30 21:45:48 +00:00
daniel
0cfdde094d - Disable assembler implementations of str_int because of mysterious
cycle failure on Win32.

git-svn-id: trunk@9593 -
2007-12-30 21:27:05 +00:00
michael
1b0307ae5c * Fixed bug #10140
git-svn-id: trunk@9586 -
2007-12-30 20:17:08 +00:00
daniel
d8bffd27fc - Intergrate i386/strlen.inc and remove it.
+ int_str assembler implementations for i386
 + fpc_shortstr_to_shortstr assembler implementation for ARM
 + fpc_shortstr_assign assembler implementation for ARM
 + fpc_Pchar_length assembler implementation for ARM

git-svn-id: trunk@9582 -
2007-12-30 11:19:10 +00:00
michael
b244f6eb71 * Patch from Sergei Gorelkin, making TStream.Read and .Write virtual
git-svn-id: trunk@9572 -
2007-12-29 19:03:56 +00:00
marco
eb2a80d272 * TContainedObject 10496. First implementation copied from TInterfacedObject
git-svn-id: trunk@9569 -
2007-12-29 15:30:57 +00:00
marco
c6e2d72e3c * D7 compat, neginfinity (bug 10490)
git-svn-id: trunk@9564 -
2007-12-29 13:12:10 +00:00
marco
bce663bb43 * Fix for 10491, pdatetime now defined.
git-svn-id: trunk@9563 -
2007-12-29 13:11:23 +00:00
yury
e475735c43 * ifdefed fatal error messages in exception handling to be available only if debugging is needed.
git-svn-id: trunk@9562 -
2007-12-28 20:10:19 +00:00
yury
3a5cfb7575 * Fixed compilation.
git-svn-id: trunk@9560 -
2007-12-28 15:28:03 +00:00
yury
e5f3a6b631 * Fixed compilation.
git-svn-id: trunk@9559 -
2007-12-28 15:24:27 +00:00
yury
c4e60fd1a5 - Removed systhrd.inc from targets where thread manager is stub by default. Stub is installed in common thread.inc file if DISABLE_NO_THREAD_MANAGER is not defined.
git-svn-id: trunk@9558 -
2007-12-28 15:21:02 +00:00
yury
0dcad4d822 * Implemented late thread manager initialization. Thread manager code is not included to executable if thread stuff are not used. WinCE executable size is reduced by 4KB, Win32 executable size is reduced by 3KB. No testsuite regressions.
git-svn-id: trunk@9557 -
2007-12-28 14:40:28 +00:00
yury
e00bacdcef * Removed HAS_MT_MEMORYMANAGER define, since it is obsolete now.
git-svn-id: trunk@9556 -
2007-12-28 11:30:46 +00:00
yury
93e62a3c0d * Raise range error exception directly to prevent note "Local variable "rcheck" is assigned but never used".
git-svn-id: trunk@9555 -
2007-12-28 00:17:11 +00:00
yury
cd03a2893b * Explicitly increment and decrement ref count to keep copy of destination string in fpc_AnsiStr_Concat_multi and fpc_WideStr_Concat_multi. It prevents note "Local variable "destcopy" is assigned but never used".
git-svn-id: trunk@9554 -
2007-12-28 00:02:35 +00:00
yury
eadfbb5027 * Removed unused local variable.
git-svn-id: trunk@9553 -
2007-12-27 23:49:35 +00:00
yury
5f8bd39408 * Implemented TFMTBcdFactory.Clear and TFMTBcdFactory.Copy methods.
git-svn-id: trunk@9552 -
2007-12-27 23:44:53 +00:00
yury
79a1b1a485 * Converted user defined note to info message.
git-svn-id: trunk@9551 -
2007-12-27 23:29:52 +00:00
yury
4b3015802a * Removed workaround for bug #9827, since it was fixed.
git-svn-id: trunk@9549 -
2007-12-27 22:56:19 +00:00
yury
b52338d0bd * Converted user defined note to info message.
git-svn-id: trunk@9548 -
2007-12-27 22:49:05 +00:00
yury
05c1305ef0 * Converted user defined notes to comments.
git-svn-id: trunk@9546 -
2007-12-27 22:26:27 +00:00
yury
de9af7191b * Converted user defined warnings to comments.
git-svn-id: trunk@9545 -
2007-12-27 22:22:36 +00:00
yury
ff78a443db * Removed user defined warning "TextMode not implemented yet!!", since TextMode will not be implemented for Windows anyway...
git-svn-id: trunk@9544 -
2007-12-27 22:18:48 +00:00
daniel
68731ae067 + Assembler implementation of mod/div.
Improves amount of divides from about 230000/s to about 2400000/s on
    ARM920T, 200MHz.

git-svn-id: trunk@9543 -
2007-12-27 17:59:45 +00:00
daniel
823432146a * Only overload findresource with an ansistring variant if
FPC_HAS_FEATURE_ANSISTRINGS is defined.

git-svn-id: trunk@9542 -
2007-12-27 15:31:35 +00:00
yury
203939b9a5 * Don't use deprecated functions.
git-svn-id: trunk@9539 -
2007-12-26 17:10:53 +00:00
yury
a2daf2e86d * Activated again workaround of dead code warnings on (errorcode > maxExitCode) condition.
git-svn-id: trunk@9537 -
2007-12-26 16:20:08 +00:00
Jonas Maebe
01592d7b5d * don't convert terminating #0 of UCS4Strings to widestring
* fixed length check in twide5.pp

git-svn-id: trunk@9518 -
2007-12-23 18:40:15 +00:00
florian
213dd11800 * setlength in utf16/widestringtoutf32 fixed, resolves #10462
git-svn-id: trunk@9517 -
2007-12-22 18:43:29 +00:00
yury
e7918b9411 * Fixed compilation on some targets. It seems to be a bug in finding variables in expressions like that: {$if sizeof(my_var) = 4}
git-svn-id: trunk@9516 -
2007-12-22 17:39:49 +00:00
yury
d306e25dc8 * Fixed warnings.
git-svn-id: trunk@9514 -
2007-12-22 12:27:03 +00:00
yury
d7d6b37158 * Fixed warnings.
git-svn-id: trunk@9513 -
2007-12-22 12:12:25 +00:00
yury
5ed1f63b26 * Really removed warnings about missing libs.
git-svn-id: trunk@9512 -
2007-12-22 11:56:48 +00:00
yury
8a3e22c772 * Removed warnings about missing libs.
git-svn-id: trunk@9511 -
2007-12-22 11:51:37 +00:00
yury
f3699dda56 * Really removed lnfodwrf from build on win32/64 targets because this unit supports only ELF executables atm.
* Build lineinfo unit separately using makefile, not buildrtl.pp, to eliminate warning "Don't load LINEINFO unit manually, Use the -gl compiler switch instead".

git-svn-id: trunk@9510 -
2007-12-22 11:49:32 +00:00
yury
5e3462b6fc * Fixed warnings and notes.
git-svn-id: trunk@9508 -
2007-12-21 23:28:36 +00:00
yury
b55501afef * Removed dead code.
git-svn-id: trunk@9507 -
2007-12-21 23:23:55 +00:00
yury
8b12a7f2c2 * Fixed warnings.
git-svn-id: trunk@9506 -
2007-12-21 23:10:33 +00:00
yury
9e9716f95e * Changed user warnings to notes.
git-svn-id: trunk@9505 -
2007-12-21 22:57:59 +00:00
yury
ed5fc4ca0e * Changed debug notes to hints.
git-svn-id: trunk@9499 -
2007-12-21 22:17:09 +00:00
yury
614f11561e * Removed lnfodwrf from build on Windows targets because this unit supports only ELF executable atm.
git-svn-id: trunk@9498 -
2007-12-21 21:57:45 +00:00
yury
99ea98c7b1 * Workaround dead code warnings by using preprocessor.
git-svn-id: trunk@9497 -
2007-12-21 21:49:47 +00:00
yury
8c54008d0c * Fixed condition which was evaluated to true at compile time, and code for else block was not generated at all. "Dead code" warning warned about it.
* Removed unused local var.

git-svn-id: trunk@9496 -
2007-12-21 21:19:32 +00:00
yury
c35316a30a * Fixed compilation.
git-svn-id: trunk@9493 -
2007-12-19 17:11:24 +00:00
yury
41d1b3b60f * Fixed erroneous argument and result type when needed (HWND type replaced by HANDLE type).
git-svn-id: trunk@9490 -
2007-12-18 15:56:09 +00:00
yury
95a6b09af6 * Fixed argument type.
git-svn-id: trunk@9489 -
2007-12-18 10:54:28 +00:00
florian
e7caecb584 + useunicodefunctions flag added
git-svn-id: trunk@9483 -
2007-12-16 17:48:20 +00:00
florian
3036e1052f + gprof startup code
git-svn-id: trunk@9482 -
2007-12-16 17:36:46 +00:00
florian
86e3e79e67 + WC_NO_BEST_FIT_CHARS
* use WC_NO_BEST_FIT_CHARS when calling WideCharToMultiByte
* made tiwde6 more verbose

git-svn-id: trunk@9481 -
2007-12-16 13:45:09 +00:00
Jonas Maebe
2ffc310ebb * fixed AnsiStrLComp and AnsiStrLIComp: they also have to ignore
embedded #0's apparently + adapted test

git-svn-id: trunk@9471 -
2007-12-16 10:41:18 +00:00
Jonas Maebe
69c97f3ac6 + call SysResetFPU and SysInitFPU like for other platforms
git-svn-id: trunk@9458 -
2007-12-15 15:15:28 +00:00
Jonas Maebe
8536e35e44 * fixed indentation of LowerAnsiString/UpperAnsiString
git-svn-id: trunk@9444 -
2007-12-13 21:01:17 +00:00
Jonas Maebe
19985965e6 * fixed AnsiStrLower/AnsiStrUpper (were exchanged)
git-svn-id: trunk@9441 -
2007-12-13 20:49:52 +00:00
Jonas Maebe
60ccf03a0b * completed cwstring unit
* optimized LowerWideString/UpperWideString not to call UniqueString
    for each string character
  * fixed LowerAnsiString/UpperAnsiString in case an ascii character
    has a lower/uppercase version with a different length than 1
  + generic test for ansistring comparisons using on the widestring
    manager (based on glibc test)
  - removed ansi2ucs4-related stuff as it's not used/needed

git-svn-id: trunk@9440 -
2007-12-13 20:41:31 +00:00
michael
429fd4f685 * Patch from Giulio Bernardi to use NtoLE instead of swapendian
git-svn-id: trunk@9438 -
2007-12-13 09:59:19 +00:00
Almindor
a6d8590dc1 * use WINSOCK_VERSION in sockets init in windows
git-svn-id: trunk@9430 -
2007-12-11 20:34:46 +00:00
Legolas
27eb735d24 * Resized stack value for NDS
* Changes to prt0:
  + Added argv support 
  * New function calls

git-svn-id: trunk@9424 -
2007-12-10 17:06:14 +00:00
Jonas Maebe
b20652821d + call fpc_cpucodeinit, so sse_support gets initialised for *bsd/darwin
+ support for catching sigill on FreeBSD in case not running on
    an SSE2-capable cpu (untested) -- Darwin only runs on SSE2-capable 
    cpus

git-svn-id: trunk@9419 -
2007-12-08 22:56:58 +00:00
Jonas Maebe
7ec9dc5bc9 * fixed unix CompareWideString to not treat null characters inside
a widestring as end-of-string + test (which fails on Darwin/FreeBSD
    in utf-8/utf-16 locales, because their libc's wcscoll is documented
    as only working in single-byte locales and falling back to wcscmp
    for others)

git-svn-id: trunk@9416 -
2007-12-08 16:00:09 +00:00
Jonas Maebe
9da3986087 * removed some unused variables, which fixes building on non-unix
git-svn-id: trunk@9400 -
2007-12-06 15:55:57 +00:00
Jonas Maebe
8b8ee03c32 * fixed BeOS compilation (patch from Olivier Coursiere)
git-svn-id: trunk@9398 -
2007-12-06 08:08:17 +00:00
michael
b363afcd0a * Patch from Giulio Bernardi
* ObjectBinaryToText, ObjectTextToBinary and ObjectTextToResource are
    endian safe and writing and reading extended type is supported on
    machines that don't have an extended type
 - TStream.WriteResourceHeader, TStream.ReadResHeader,
   TStream.FixupResourceHeader are endian safe

git-svn-id: trunk@9397 -
2007-12-05 20:50:26 +00:00
Jonas Maebe
02c714aec1 * characters <= 127, not just < 127, can be concatenated to an
ansistring without conversion

git-svn-id: trunk@9395 -
2007-12-05 18:48:54 +00:00
Jonas Maebe
a180fdcc74 - removed commented out implementation of Upper/LowerWideString which
takes into account surrogate pairs (not needed, since upper/lower
    case characters never need surrogate pairs)

git-svn-id: trunk@9394 -
2007-12-05 17:44:34 +00:00
Jonas Maebe
68595c8b72 * fixed wchar_t type (was: widechar, now is cint/cint32/long depending on
platform)
  + mbstate_t type for all unixes except BeOS (doesn't exist for BeOS)
  + implemented UpperAnsiStringProc/LowerAnsiStringProc for unix
  * fixed Ansi2UCS4Move in cwstring (although it isn't used anywhere
    currently)
  + test for Upper/LowerAnsiString

git-svn-id: trunk@9393 -
2007-12-05 17:42:35 +00:00
Jonas Maebe
997d7b33db * don't override routines hooked by a real widestring manager before
sysutils initialised

git-svn-id: trunk@9392 -
2007-12-05 14:28:11 +00:00