Commit Graph

1656 Commits

Author SHA1 Message Date
Jonas Maebe
5eedbdfde9 + support for indexing 4-byte sized integers as array[1..4] of char in
macpas mode

git-svn-id: trunk@4955 -
2006-10-18 17:26:00 +00:00
Jonas Maebe
1106b6a32f + GetPointerSize function
git-svn-id: trunk@4954 -
2006-10-18 17:24:50 +00:00
Jonas Maebe
200ad7e5ae * moved some generic constants out of the {$ifndef FPC_SYSTEM_HAS_TRUNC}
block

git-svn-id: trunk@4940 -
2006-10-16 11:08:47 +00:00
florian
5f3a3bc051 * made the softfpu unit embedable in the system unit
* several fixes to get the softfpu working
* resolved conflicts between genmath and softfpu

git-svn-id: trunk@4935 -
2006-10-15 21:27:30 +00:00
chrivers
4bb1d117d6 Use symbolic const E_NOINTERFACE instead of raw value $80004002
git-svn-id: trunk@4934 -
2006-10-15 19:51:40 +00:00
florian
557afed6f3 * missing space added
git-svn-id: trunk@4923 -
2006-10-15 14:06:53 +00:00
marco
b5e0fa43ce * post 2.0 simplification, win32 now also has fpread/write
git-svn-id: trunk@4920 -
2006-10-15 12:29:22 +00:00
micha
dc3b37ff73 + heap manager: reduce overhead on fixed size chunks from 8 to 4
git-svn-id: trunk@4904 -
2006-10-14 15:05:24 +00:00
Almindor
2ee7e64a4a * adds semaphore support to ThreadManager, removes pipe hack from non linux
+ adds SemaphoreInit, SemaphorePost, SemaphoreWait and SemaphoreDestroy to TM

git-svn-id: trunk@4900 -
2006-10-14 11:39:47 +00:00
micha
8678d52aeb * avoid warning when pointer points to size 1 data
* fix variantmanager for {$T+}

git-svn-id: trunk@4861 -
2006-10-11 16:40:40 +00:00
florian
6f968732c0 * don't call the system if flush hasn't to flush anything
git-svn-id: trunk@4829 -
2006-10-08 14:21:00 +00:00
Jonas Maebe
f4ea862438 * part of r4826 (forgot to commit)
git-svn-id: trunk@4827 -
2006-10-08 10:01:58 +00:00
Jonas Maebe
b386335f27 * treat zero-based arrays of char also as pchar's when reading
(i.e., always zero-terminate) (bug 7567)

git-svn-id: trunk@4826 -
2006-10-08 09:22:30 +00:00
micha
d704af7216 fix compilation for {$T+} linux/win
git-svn-id: trunk@4794 -
2006-10-04 20:43:55 +00:00
Jonas Maebe
86649024b3 * fixed fpc_AnsiStr_Concat_multi + test
git-svn-id: trunk@4790 -
2006-10-04 16:44:31 +00:00
peter
2f0ce31751 * string concat changed from function to procedure to
allow runtime optimization if the destination is the
    same as a source parameter
  * tassignmentnode now sets aktassignmentnode global that can be used
    to use the left node as a destination parameter and
    skip the assignment
  * disabled all cpu specific shortstr concat/append

git-svn-id: trunk@4770 -
2006-10-02 20:00:06 +00:00
florian
262f60e67d * flush std handlers at thread termination
git-svn-id: trunk@4752 -
2006-09-28 20:36:41 +00:00
peter
367958e154 * fpc_intf_assign_by_iid does not call Addref anymore, the QueryInterface call will increase the refcount
git-svn-id: trunk@4744 -
2006-09-28 06:32:20 +00:00
marco
d29a4bc889 * add small delphi compat tweak for h2pas usage. + restored Kylix compat idents. (without, pkgs might break unnecessarily)
git-svn-id: trunk@4729 -
2006-09-26 12:24:12 +00:00
florian
569c4871fc + first batch of varset support, as long as packset isn't changed, it doesn't change anything
git-svn-id: trunk@4710 -
2006-09-24 14:40:11 +00:00
ivost
23e1ebb357 -ctypes cleanup, it was quite a mess with naming conventions, eg. some times shortened long to l like cldouble
-long is written out now, while signed and unsigned are shortened to s and u

git-svn-id: trunk@4647 -
2006-09-18 21:41:08 +00:00
Almindor
d4e1612fd1 * moves MSG_* constants from socketsh.inc to platform specific unxsockh.inc and fixes them for freebsd/darwin and solaris (linux ones were used before, not right)
git-svn-id: trunk@4646 -
2006-09-18 20:56:13 +00:00
florian
8b841e9514 * fixed another problem caused by yesterdays real change
git-svn-id: trunk@4644 -
2006-09-18 18:21:00 +00:00
Jonas Maebe
08612ed157 * declare fpc_sqr_real as inline instead of fpc_sqrt_real
git-svn-id: trunk@4642 -
2006-09-17 21:55:14 +00:00
Jonas Maebe
83884ec540 * more "real" fixes
git-svn-id: trunk@4641 -
2006-09-17 21:44:20 +00:00
florian
95c0ff6db2 * fixed compilation for x86_64
git-svn-id: trunk@4637 -
2006-09-17 18:40:20 +00:00
florian
77193410b2 * varset helpers completed
git-svn-id: trunk@4635 -
2006-09-17 18:20:30 +00:00
florian
d4bf6d2aed * fixed problems caused by unifying the real data type
git-svn-id: trunk@4634 -
2006-09-17 18:00:37 +00:00
florian
d7fe89c63d * Real is now defined in the system unit being an unique type, fixes #7425
git-svn-id: trunk@4628 -
2006-09-17 08:58:20 +00:00
florian
9e241152a9 + started to work on varset helpers
git-svn-id: trunk@4627 -
2006-09-16 22:18:37 +00:00
Almindor
2d7cd5b969 * sockets cleanup from Aison
git-svn-id: trunk@4625 -
2006-09-16 10:40:32 +00:00
florian
78d5ba9ff0 * extended ctypes by Aison
git-svn-id: trunk@4622 -
2006-09-15 21:03:50 +00:00
Jonas Maebe
cd5b9245f9 + support for bitsizeof() function
+ some small tests for it

git-svn-id: trunk@4590 -
2006-09-09 18:57:49 +00:00
florian
86cc5ec31b * more debugging
git-svn-id: trunk@4564 -
2006-09-07 20:07:41 +00:00
florian
19b11c78e3 * fixed for win64
git-svn-id: trunk@4560 -
2006-09-07 17:34:24 +00:00
florian
73083de898 * IsLibrary initialized by declaration
* IsLibrary for linux is set in dllprt0.as

git-svn-id: trunk@4547 -
2006-09-03 20:41:51 +00:00
yury
4e9ca8c0f0 * Note was fixed.
git-svn-id: trunk@4533 -
2006-09-02 08:15:35 +00:00
Legolas
19d597f425 * Reactivated heap management for GBA
git-svn-id: trunk@4529 -
2006-09-01 17:54:59 +00:00
florian
9d14c87da7 * fpc_assign_widestr after a hint of Martin Schreiber fixed, see #7272
git-svn-id: trunk@4502 -
2006-08-24 20:16:39 +00:00
florian
5660a9e875 * fixed typo
git-svn-id: trunk@4473 -
2006-08-20 16:10:28 +00:00
florian
9766a9c14a * handle collections with 0 or 1 element better
git-svn-id: trunk@4459 -
2006-08-19 22:56:27 +00:00
Jonas Maebe
eccbc78e04 + support for bitpacked arrays:
+ use {$bitpacking on/+} to change the meaning of "packed"
      into "bitpacked" for arrays. This is the default for MacPas.
      You can also define individual arrays as "bitpacked", but
      this is not encouraged since this keyword is not known by
      other compilers and therefore makes your code unportable.
    + pack(unpackedarray,index,packedarray) to pack
      length(packedarray) elements starting at
      unpackedarray[index] into packedarray.
    + unpack(packedarray,unpackedarray,index) to unpack
      packedarray into unpackedarray, with the first
      element being stored at unpackedarray[index]
  * todo:
    * "open packed arrays" and rtti for packed arrays are not
      yet supported
    * gdb does not properly support bitpacked arrays

git-svn-id: trunk@4449 -
2006-08-19 12:54:12 +00:00
oro06
d1dc6efeea *fix rtl compile : HAS_MEMORYMANAGER/HAS_MT_MEMORYMANAGER
git-svn-id: trunk@4431 -
2006-08-17 09:39:01 +00:00
Jonas Maebe
ec1d8a139f * fixed for non-Windows and non-OS/2
git-svn-id: trunk@4411 -
2006-08-12 12:23:19 +00:00
florian
d337c3ca6a * clean up heap at exit, fixes #7183
git-svn-id: trunk@4410 -
2006-08-11 22:09:29 +00:00
peter
16f121a8bc * reuse generic align()
git-svn-id: trunk@4382 -
2006-08-07 07:03:25 +00:00
chrivers
dceda55abf Implemented _IMPLEMENTS. Changed GetInterfaceByStr() and GetInterface() accordingly. Also introduced new compilerproc: fpc_intf_assign_by_iid to allow := with _IMPLEMENTS-support
git-svn-id: trunk@4362 -
2006-08-06 01:09:20 +00:00
chrivers
fca5f6fc5e Added EntryOffset field for _IMPLEMENTS
git-svn-id: trunk@4361 -
2006-08-06 01:02:32 +00:00
chrivers
7ec741fa05 Added fpc_intf_assign_by_iid compilerproc. Needed for _IMPLEMENTS
git-svn-id: trunk@4360 -
2006-08-06 00:58:17 +00:00
florian
849878b472 * fixed memory leak with the as operator, fixes #7174
git-svn-id: trunk@4355 -
2006-08-05 21:53:38 +00:00