Commit Graph

126 Commits

Author SHA1 Message Date
Jonas Maebe
72b75a627a * fixed another bug in fpc_ansistr_append_ansistring in case source = dest
(web bug #4999)

git-svn-id: trunk@3185 -
2006-04-09 19:18:31 +00:00
peter
9cd5a800af * check for nil in concat_multi
git-svn-id: trunk@2658 -
2006-02-20 17:15:05 +00:00
peter
a77f503a30 * optimize multiple concats for ansi/widestring
git-svn-id: trunk@2650 -
2006-02-20 10:58:28 +00:00
florian
0f55bd3d42 * small speed improvements
git-svn-id: trunk@2634 -
2006-02-19 16:59:19 +00:00
florian
e2e51d6757 * improved SetLength(<ansistring>,...);
git-svn-id: trunk@2628 -
2006-02-19 14:37:48 +00:00
Jonas Maebe
58381ff7b6 * made chararray handling 98% TP-compatible, fixes web bugs 3012
and 4080. The compatibility differences are:
      a) writing a chararray which is zero-based but not zero-
         terminated does not cause a buffer overflow
      b) non-zero-based chararrays can also be read

    The difference was that previously, all chararrays were treated
    as pchars. In TP/Delphi (and now also in FPC), this is only done
    for zero-based chararrays. For non-zero-based ones, the entire
    contents of the array should always be used (including #0's).

    The default parameters in the system unit for the chararray
    helpers are to avoid having to use a define for bootstrapping.

git-svn-id: trunk@2152 -
2006-01-04 10:05:10 +00:00
Jonas Maebe
9a08cdccf0 * several changes of var parameters into out parameters to avoid
useless warnings: code parameter of val(), destination of str(),
    destinations of ansi2wide and wide2ansi

git-svn-id: trunk@2041 -
2005-12-23 22:25:26 +00:00
florian
da9469c550 * avoid unique call in ansistr_append
git-svn-id: trunk@1968 -
2005-12-15 22:55:20 +00:00
florian
e2a4dac215 + i386 assembler versions of decr_ansistring and unique_ansistring
git-svn-id: trunk@1963 -
2005-12-15 19:51:57 +00:00
Jonas Maebe
50ebeaad5e * fixed fpc_ansistr_append_ansistring() in case it's called to append a
string to itself

git-svn-id: trunk@1961 -
2005-12-15 15:22:35 +00:00
peter
198aa2e72a * change value to const string to remvoe implicit exception stack:
git-svn-id: trunk@1949 -
2005-12-14 17:23:32 +00:00
Jonas Maebe
2dea0c793f * made the target parameter of SetString an "out" instead of "var" parameter
git-svn-id: trunk@1896 -
2005-12-07 16:06:34 +00:00
florian
d8acc80ae5 * reverted inline patch partly
* improved append_char by avoiding unnecessary unique call

git-svn-id: trunk@1406 -
2005-10-16 11:24:24 +00:00
marco
5fbf962637 * small fix for 1735, tw2242 still broken due to complexity.
git-svn-id: trunk@1350 -
2005-10-10 12:09:57 +00:00
marco
411e2359eb * Fixed 2.0.0 compilation
git-svn-id: trunk@1346 -
2005-10-09 21:29:01 +00:00
marco
5c92d88da8 * inlined a few funcs, inlined the non threaded part of inc/declocked. The lock prefixed one
remains a separate proc, as it is slow anyway.

git-svn-id: trunk@1339 -
2005-10-09 10:57:29 +00:00
marco
fa19bc05c8 * pos(shortstring,ansistring) for bug #4119
git-svn-id: trunk@828 -
2005-08-09 07:34:56 +00:00
michael
5cafc069b5 + Removed NOSAVEREGISTERS define
git-svn-id: trunk@307 -
2005-06-09 17:58:20 +00:00
michael
06ab2d2ee6 + Removed STR_USES_VALINT define
git-svn-id: trunk@305 -
2005-06-09 17:53:01 +00:00
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