Commit Graph

58 Commits

Author SHA1 Message Date
sergei
1fcd40ee64 Continue fixing open array handling:
* Unified fpc_initialize_array,fpc_finalize_array with fpc_decref_array and fpc_addref_array by removing 'size' parameter from the former two. Element size is easily calculated from RTTI, so omitting it simplifies code generation. All four helpers are now callable by tcg.g_array_rtti_helper().
* ncgutil.pas: initialization of open array out-parameters is now done properly (using fpc_initialize_array).
+ Test

git-svn-id: trunk@17081 -
2011-03-05 18:45:44 +00:00
mazen
b127fc154a * Fixed spell error revealed by lintian.
git-svn-id: trunk@16094 -
2010-10-06 20:33:57 +00:00
florian
e01e4e5719 * optimized copy(<dyn. array> ...) by checking if the elements are really ref. counted
git-svn-id: trunk@15228 -
2010-05-05 13:49:06 +00:00
Jonas Maebe
65f217ed02 * only set dynarray pointer to nil in decref in case the last reference
has been destroyed (mantis #12000)

git-svn-id: trunk@11672 -
2008-08-31 10:07:53 +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
florian
fd2032dab2 + start of embedded rtl
+ feature support in the compiler

git-svn-id: trunk@5628 -
2006-12-17 18:40:36 +00:00
micha
d704af7216 fix compilation for {$T+} linux/win
git-svn-id: trunk@4794 -
2006-10-04 20:43:55 +00:00
peter
16f121a8bc * reuse generic align()
git-svn-id: trunk@4382 -
2006-08-07 07:03:25 +00:00
yury
11576fd24b * fixed warnings and notes while compiling system unit for wince.
git-svn-id: trunk@4250 -
2006-07-18 15:00:09 +00:00
tom_at_work
9d7ac02696 * fixed tb0488 on unix platforms (missing cwstring uses)
* 64bit big-endian fix of dynamic array handling
* added qword support for %x format specifier of format() functions

git-svn-id: trunk@1773 -
2005-11-16 20:50:38 +00:00
florian
8b3c634573 * fixed DynArraySetLength
git-svn-id: trunk@1678 -
2005-11-06 17:16:55 +00:00
florian
c5f82ba6de + (ole)variant<->error type conversion
+ DynArraySetLength
+ DynArrayFromVariant

git-svn-id: trunk@1608 -
2005-10-30 23:12:08 +00:00
florian
8dd52941d5 * tdynarraytypeinfo moved to interface
* made aligntoptr inlined

git-svn-id: trunk@630 -
2005-07-15 21:09:45 +00:00
michael
198b2104be + Removed HASFUNCTIONCOPYDYNARR define
git-svn-id: trunk@313 -
2005-06-09 18:06:35 +00:00
michael
5cafc069b5 + Removed NOSAVEREGISTERS define
git-svn-id: trunk@307 -
2005-06-09 17:58:20 +00:00
michael
93ba0409be + Removed HASCOMPILERPROC define
git-svn-id: trunk@265 -
2005-06-07 21:41:02 +00:00
michael
7712d4e2d1 + Removed FPC_ALIGNSRTTI define
git-svn-id: trunk@251 -
2005-06-07 20:59:11 +00:00
peter
4ace790492 * remove $Log
git-svn-id: trunk@231 -
2005-06-07 09:47:55 +00:00
fpc
790a4fe2d3 * log and id tags removed
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00
fpc
50778076c3 initial import
git-svn-id: trunk@1 -
2005-05-16 18:37:41 +00:00
Jonas Maebe
9ccf2effdc * fixed web bug #3805
* extra range check in fpc_dynarray_copy (also error if lowidx >
    high(source))
2005-03-27 14:56:34 +00:00
florian
eeaded577a * fixed copy(dyn. array,...); 2005-03-05 16:37:28 +00:00
peter
e417e34496 * truncate log 2005-02-14 17:13:06 +00:00
florian
14c33448af * fixed copy(dyn. array of ansistring) 2005-01-24 21:32:48 +00:00
Jonas Maebe
3f30fb7bb6 * fixed getting pointer to nested dynarray types 2004-11-07 18:31:50 +00:00
Jonas Maebe
405fb30652 * fixed pointer arithmetic errors 2004-11-07 18:02:47 +00:00
florian
b54ea2800a * fixed fpc_dynarry_copy for arm/sparc 2004-11-06 15:29:19 +00:00
florian
4ae980e0bc * fixed dyn. array handling for 32 bit architectures requiering proper alignment 2004-11-03 10:54:36 +00:00
peter
fd759e521f * saveregisters calling convention is obsolete 2004-10-24 20:01:41 +00:00
michael
5cccea2115 + Fix crash when resizing dynamic array 2004-09-15 07:28:09 +00:00
peter
3094258825 * removed warnings 2004-05-31 20:25:04 +00:00
peter
962ef697d5 * remove comment warnings 2004-05-31 14:31:57 +00:00
michael
f4e0bc3881 + Patch from peter to fix crash 2004-05-24 07:18:17 +00:00
florian
3ef5e89682 * fixed <dyn. array>:=nil; 2004-05-20 15:56:32 +00:00
peter
e8f338aa8e * use freemem() without size 2004-05-02 15:15:58 +00:00
peter
48ea64442f * fixed a:=copy(b) 2003-10-29 21:00:34 +00:00
florian
78a00b657b * fixed copy(<dynarray>, ...) 2003-10-25 22:52:07 +00:00
peter
2b6e06bd4a * fixed dynarray copy 2002-11-26 23:02:07 +00:00
florian
b38887e311 + range checking for dyn. arrays 2002-10-09 20:24:30 +00:00
peter
603b3bc48b * Copy() changed to internal function calling compilerprocs
* FPC_SHORTSTR_COPY renamed to FPC_SHORTSTR_ASSIGN because of the
    new copy functions
2002-10-02 18:21:51 +00:00
peter
01dfac4a4e * old logs removed and tabs fixed 2002-09-07 15:06:34 +00:00
peter
268e4bb7e7 * use saveregisters for incr routines, saves also problems with
the optimizer
2002-04-26 15:19:04 +00:00
peter
0cdf327866 * updated compilerprocs
* incr ref count has now a value argument instead of var
2002-04-25 20:14:56 +00:00
peter
1338dbd992 * updated for dynarr:=nil 2002-01-21 20:16:08 +00:00
Jonas Maebe
e27b13b0e4 * correctly check for 0-size dynarray in previous patch 2001-12-29 15:51:11 +00:00
Jonas Maebe
f0662a6990 * don't allocate memory when doing a setlength(dynarr,0) when dynarr is
already nil
2001-12-28 14:19:07 +00:00
florian
5050f1ff66 * init and final code in genrtti.inc updated 2001-11-17 16:56:08 +00:00
Jonas Maebe
d601ccd49b * fixed bug in dynarr_decr_ref I introduced with my previous fixes 2001-09-27 08:59:13 +00:00
Jonas Maebe
da09ad93c7 * fixed several bugs, most related to handling multi-dimensional
dynamical arrays
2001-09-26 14:07:25 +00:00
florian
6476fbf2fe * fixed and added a lot of stuff to get the Jedi DX( headers
compiled
2001-08-19 21:02:01 +00:00