Commit Graph

107 Commits

Author SHA1 Message Date
michael
f7edd5a256 + Removed DECRREFNOTNIL define
git-svn-id: trunk@300 -
2005-06-09 17:48:33 +00:00
michael
93ba0409be + Removed HASCOMPILERPROC define
git-svn-id: trunk@265 -
2005-06-07 21:41:02 +00:00
michael
db5d9d75aa + Removed INTERNCOPY define
git-svn-id: trunk@259 -
2005-06-07 21:11:49 +00:00
michael
a20556e62d + Removed INTERNLENGTH/INTERNSETLENGTH defines
git-svn-id: trunk@257 -
2005-06-07 21:07:21 +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
michael
0274b9b848 + Removed erroneously committed debug statement 2005-04-06 07:45:14 +00:00
michael
ba4454e2cb + Variant type conversion rules 2005-04-06 07:43:02 +00:00
peter
e417e34496 * truncate log 2005-02-14 17:13:06 +00:00
peter
1768ad35ce 1.0.x fixes 2005-01-28 19:50:51 +00:00
peter
6c2c1debcc * 1.0.x fix 2005-01-25 18:50:45 +00:00
florian
9191989228 * replaced CompareChar by CompareByte, saves one redirection 2005-01-09 10:38:59 +00:00
peter
d3b001f8a4 * prevent crash when appending empty string 2004-12-02 17:56:01 +00:00
peter
14eb8f59b4 internconst, internproc and some external declarations moved to interface 2004-11-17 22:19:04 +00:00
peter
cc431c4375 * fix shortstr_to_ansistring for 1.0.x 2004-10-31 16:21:30 +00:00
peter
fd759e521f * saveregisters calling convention is obsolete 2004-10-24 20:01:41 +00:00
peter
b3e3030e6f * remove maxlen field from ansistring/widestrings 2004-07-12 17:58:19 +00:00
peter
59691cc142 * decr ref doesn't reset pointer
* finalize resets pointer for astring,wstring
2004-07-02 21:21:09 +00:00
florian
dea441a7dd * the decr functions set the data now to nil 2004-05-29 15:39:08 +00:00
peter
479c4f0ea6 * small fix for 1.0.x 2004-05-16 16:52:28 +00:00
peter
81b6d9f16c * replace strlenint with sizeint 2004-05-01 23:55:18 +00:00
peter
cafed35e77 * str() helpers now also use valint/valuint
* int64/qword helpers disabled for cpu64
2004-04-29 18:59:43 +00:00
peter
4238814518 * 1.0.x fix 2004-01-21 22:14:05 +00:00
peter
a4178230a7 * decrref does not reset always to nil, only when string is disposed.
the reset to nil for temps is done by the compiler
2004-01-21 22:02:18 +00:00
Jonas Maebe
4be7651aa2 * fixed conversion of fpc_*str_unique to compilerproc 2003-06-17 19:24:08 +00:00
Jonas Maebe
394b70f94d * fpc_{ansistr|widestr}_unique is now a function so it can be used as
compilerproc
2003-06-17 16:38:53 +00:00
florian
eab5d1f7c5 * started to make the rtl 64 bit save by introducing SizeInt and SizeUInt (similar to size_t of C) 2003-05-01 08:05:23 +00:00
Jonas Maebe
b5976b8730 * fixed setstring (+- like suggested by Dimitry Sibiryakov) 2003-02-26 19:16:55 +00:00
michael
a1ab52022b + Fixed range check error and others in Delete 2002-12-09 08:33:31 +00:00
carl
781415a0da - avoid warnings (add typecast) 2002-12-07 14:34:30 +00:00
Jonas Maebe
f5a775bc7c * fixed some buffer overflow errors in SetString (both short and
ansistring versions) (merged)
2002-10-21 19:52:47 +00:00
Jonas Maebe
275f02d058 * fixed ansistring append helpers so they preserve the terminating #0
* optimized SetLength() so that it uses reallocmem in case the refcount
    of the target string is 1
2002-10-20 12:59:21 +00:00
michael
aae8314d02 + Added check for nil buffer to setstring 2002-10-19 17:06:50 +00:00
florian
72ab5b62bb + ansistring_append* implemented 2002-10-17 12:43:00 +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
carl
e1167f8d09 * Delphi compatibility fix (with string routines) 2002-09-14 11:20:50 +00:00
carl
7ebda0a778 * cardinal -> longword
- remove some unused routines
2002-09-07 21:10:47 +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
Jonas Maebe
a0731e0d02 * fixed bug in fpc_char_to_ansistr when converting #0 (found by Peter) 2002-01-07 13:23:53 +00:00
florian
67f6ce5348 * code of ansitr_concat improved 2001-11-17 23:58:12 +00:00
Jonas Maebe
41a57028b9 * converted adding/comparing of strings to compileproc. Note that due
to the way the shortstring helpers for i386 are written, they are
    still handled by the old code (reason: fpc_shortstr_compare returns
    results in the flags instead of in eax and fpc_shortstr_concat
    has wierd parameter conventions). The compilerproc stuff should work
    fine with the generic implementations though.
  * removed some nested comments warnings
2001-08-30 15:43:14 +00:00
Jonas Maebe
06f9cd4c96 * some fixes in compilerprocs for chararray to string conversions
* conversion from string to chararray is now also done via compilerprocs
2001-08-29 19:49:03 +00:00
Jonas Maebe
fc92c3b336 + compilerproc implementation of most string-related type conversions
- removed all code from the compiler which has been replaced by
    compilerproc implementations (using {$ifdef hascompilerproc} is not
    necessary in the compiler)
2001-08-28 13:24:46 +00:00
Jonas Maebe
4716f168dd * renamed some str(x,y) and val(x,y) helpers so the naming scheme is the
same for all string types
  + added the str(x,y) and val(x,y,z) helpers for int64/qword to
    compproc.inc
2001-08-13 12:40:16 +00:00
Jonas Maebe
b9f6efc85b + "compproc" helpers
* renamed several helpers so that their name is the same as their
    "public alias", which should facilitate the conversion of processor
    specific code in the code generator to processor independent code
  * some small fixes to the val_ansistring and val_widestring helpers
    (always immediately exit if the source string is longer than 255
     chars)
  * fixed fpc_dynarray_high and fpc_dynarray_length if the dynarray is
    still nil (used to crash, now return resp -1 and 0)
2001-08-01 15:00:09 +00:00
peter
5c0d161bef * merged textfile, readlink and concat ansistring fixes 2001-07-10 18:04:37 +00:00
peter
db87f86f00 * Length made internal
* Add array support for Length
2001-07-09 21:15:40 +00:00