Tomas Hajny
9f6651fdb7
+ added Get/SetTextAutoFlush feature
...
git-svn-id: trunk@49324 -
2021-05-02 14:59:21 +00:00
svenbarth
ac36eec71a
* protect GetFullName with FPC_HAS_FEATURE_UNICODESTRINGS instead of _WIDESTRINGS
...
git-svn-id: trunk@47294 -
2020-11-03 19:25:32 +00:00
pierre
e80b1d9e70
Put GetFullName functions inside $ifdef FPC_WIDESTRING_EQUAL_UNICODESTRING
...
git-svn-id: trunk@47287 -
2020-11-03 07:13:59 +00:00
Károly Balogh
3aa0d92c79
fix casting typo in r47263
...
git-svn-id: trunk@47265 -
2020-10-31 20:46:19 +00:00
florian
408fc819b3
+ initial implementation of a FullName field in file records to overcome length limitions of the name field
...
git-svn-id: trunk@47263 -
2020-10-31 19:54:40 +00:00
Tomas Hajny
a71f87357d
* simplified version of SeekEof for improved TP/BP/Delphi compatibility by Andrey 'Croco' Stolyarov as fix for #37716 , plus a new test for testing the compatibility
...
git-svn-id: trunk@46946 -
2020-09-24 19:33:28 +00:00
Tomas Hajny
1eb11a2a29
* fix for problem with commit 46853
...
git-svn-id: trunk@46864 -
2020-09-14 05:30:59 +00:00
Tomas Hajny
3c9257300d
* fix for bug #37716 by Andrey 'Croco' Stolyarov
...
git-svn-id: trunk@46853 -
2020-09-11 23:43:32 +00:00
florian
dbd14206c9
* compilation on targets without fpu fixed
...
git-svn-id: trunk@45638 -
2020-06-11 17:30:12 +00:00
florian
20f6514d97
* fix compilation for non 64 Bit targets
...
git-svn-id: trunk@45636 -
2020-06-10 21:05:18 +00:00
florian
50c48349d5
* check properly for i/o errors in the iso read helpers, resolves #37154
...
* CheckRead checks if reading caused an I/O error and returns false in this case
git-svn-id: trunk@45635 -
2020-06-10 20:47:58 +00:00
florian
74275a9173
* in ISO mode, f^ is undefined after Rewrite
...
git-svn-id: trunk@41429 -
2019-02-24 10:32:59 +00:00
Károly Balogh
7bc03f2590
reverted accidental commit to text.inc
...
git-svn-id: trunk@41089 -
2019-01-28 04:18:50 +00:00
Károly Balogh
c85f7cfc26
aros/amigaos4: enabled ELF32/64 and GetModuleAddr() in exeinfo, based on the MorphOS versionexeinfo.pp
...
git-svn-id: trunk@41088 -
2019-01-28 04:16:44 +00:00
florian
be158cec7a
* reset I/O result before and after the implicit close calls in ISO pascal mode,
...
this avoids further I/O operations to be carried out, resolves issue #32743
git-svn-id: trunk@38301 -
2018-02-20 21:30:30 +00:00
florian
29a2c433f7
* -Sr option for iso mode: in case no command line parameter is passed, the file name for program parameters is derived from their variable name
...
git-svn-id: trunk@35257 -
2017-01-07 14:50:58 +00:00
marco
7ef8f00100
* more occured -> occurred spelling fixes.
...
git-svn-id: trunk@35130 -
2016-12-14 20:05:21 +00:00
michael
3b3d5ab8be
* Undid last commit
...
git-svn-id: trunk@34479 -
2016-09-10 12:12:39 +00:00
michael
4fa2ec7740
* Patch from Karl-Michael Schindler to prepend TMP to temp filename../inc/iso7185.pp
...
git-svn-id: trunk@34478 -
2016-09-10 12:04:24 +00:00
yury
e1a0b1204a
* Removed unused vars in RTL.
...
git-svn-id: trunk@31750 -
2015-09-17 16:48:53 +00:00
Jonas Maebe
2afd8eb802
- removed FPC_HAS_STR_CURRENCY-related code, FPC 2.6.4 has it
...
git-svn-id: trunk@31692 -
2015-09-15 11:51:48 +00:00
florian
590ec0f3e6
* more procedures excluded to avoid internalerrors on avr after the trgobj.conservative fix
...
git-svn-id: trunk@31440 -
2015-08-28 18:49:07 +00:00
florian
7dd1d6aa77
o fixes handling of iso i/o parameters/program parameters:
...
* explicit reset is needed
* variable must be declared again
git-svn-id: trunk@30757 -
2015-05-01 20:58:31 +00:00
florian
886e3e8d02
* disable several complex procedures for avr with a newly introduced define: EXCLUDE_COMPLEX_PROCS. They
...
might compile with an improved register allocator in the future
git-svn-id: trunk@30546 -
2015-04-11 14:43:39 +00:00
Jonas Maebe
60dbce940a
* converted readstr/writestr to use system.Utf8CodePointLen()
...
git-svn-id: trunk@30049 -
2015-03-01 17:12:24 +00:00
florian
714901ce45
* fixes feature defines after recent changes
...
git-svn-id: trunk@28743 -
2014-10-04 18:12:09 +00:00
Jonas Maebe
8ac4a770a9
* check whether file/text is assigned in erase/rename (mantis #25932 )
...
git-svn-id: trunk@27694 -
2014-04-30 18:31:22 +00:00
Jeppe Johansen
9b79f2f68d
Added support for 8-bit CPU's in RTL. Mostly for missing implementations of int<->string conversion and console/text output.
...
git-svn-id: trunk@26958 -
2014-03-04 20:00:03 +00:00
florian
15df4a4f80
+ support iso pascal like program parameters in iso mode
...
git-svn-id: trunk@26437 -
2014-01-12 20:17:51 +00:00
florian
e841027a48
* fixes handling of typed files in iso mode
...
git-svn-id: trunk@26436 -
2014-01-12 20:17:48 +00:00
Jonas Maebe
de59d6ac11
* prevent endless loop when writing an invalid utf-8 sequence longer than
...
32 bytes using writestr to a unicode/widestring
git-svn-id: trunk@26326 -
2013-12-30 14:30:56 +00:00
Jonas Maebe
d2b8275b99
+ support for arbitrary encodings in readstr/writestr
...
o set the code page of the temporary "text" file to utf-8 for writestr with
unicodestring/widestring as destination, so that no data loss can occur
(+ properly deal with cases whereby part of an utf-8 character is
written to the textbuf in this case)
o explicitly pass the code page of the destination ansistring for writestr
with ansistring as destination and set it for the temporary "text" file
o set the code page of the text file for readstr
git-svn-id: trunk@26317 -
2013-12-29 19:18:49 +00:00
Jonas Maebe
ddf08b4eb7
* call TranslatePlaceholderCP() when comparing code pages to avoid
...
unnecessary conversions between CP_ACP and the current actual
DefaultSystemCodePage
* call TranslatePlaceholderCP() when changing the code page of a
text file because in some cases this code page is passed directly
to widestringmanager.Wide2AnsiMoveProc() (which does not perform any
translation itself)
git-svn-id: trunk@26316 -
2013-12-29 19:18:36 +00:00
Jonas Maebe
df6a2dce00
+ unicodestring support for assign/erase/rename
...
+ codepage support for textrec/filerec and the above routines
* textrec/filerec now store the filename by default using widechar. It is
possible to switch back to ansichars using the FPC_ANSI_TEXTFILEREC define.
In that case, from now on the filename will always be stored in
DefaultFileSystemEncoding
* fixed potential buffer overflows and non-null-terminated file names in
textrec/filerec
+ dodirseparators(pwidechar), changed the dodirseparators(pchar/pwidechar)
parameters into var-parameters and gave those routines an extra parameter
that indicates whether the p(wide)char can be changed in place if
necessary or whether a copy must be made first (avoids us having to make
all strings always unique everywhere, because they might be changed on
some platforms via a pchar)
* do_open/do_erase/do_rename got extra boolean parameters indicating whether
the passed pchars point to data that can be freely changed (to pass on to
dodirseparators() if applicable)
* objects.pp: force assign(pchar) to be called, because
assign(array[0..255]) cannot choose between pchar and rawbytestring
versions (and removing the pchar version means that assign(pchar) will
be mapped to assign(shortstring) in {$h-})
* fixed up some routines in other units that depend on the format of
the textrec/filerec.name field
git-svn-id: branches/cpstrrtl@25137 -
2013-07-19 16:30:51 +00:00
Jonas Maebe
a5273abc9c
+ support for CP_OEMCP
...
* changed all mappings from CP_ACP to DefaultSystemCodePage to calls to the
new TranslatePlaceholderCP() routine (which also handles CP_OEMCP)
* removed unnecessary CP_ACP adaptations in fpc_AnsiStr_Concat_multi()
for JVM target (now handled in the ansistring to unicodestring conversion
routine)
git-svn-id: branches/cpstrrtl@25091 -
2013-07-12 17:18:24 +00:00
florian
0e41df598e
* merge i8086 branch by Nikolay Nikolov
...
git-svn-id: trunk@24324 -
2013-04-25 20:23:51 +00:00
nickysn
8b6b832677
+ added helper functions for read/readln longint/longword on 16/8-bit cpus
...
git-svn-id: branches/i8086@24047 -
2013-03-28 23:56:47 +00:00
nickysn
697de721ef
+ added write/writeln helpers in the RTL for writing longints/longwords on 16/8-bit CPUs
...
git-svn-id: branches/i8086@24006 -
2013-03-25 23:21:42 +00:00
Jonas Maebe
e1e11f81e3
* fixed using readstr/writestr inside routines called from the parameter
...
list of another readstr/writestr expression (mantis #23912 )
git-svn-id: trunk@23888 -
2013-03-17 14:23:33 +00:00
florian
d5985b4f0e
* patch by Christophe Staïesse to implement more ISO-like read behaviour in iso mode, resolves #24060
...
git-svn-id: trunk@23884 -
2013-03-17 08:27:21 +00:00
florian
81e0e3114c
* throw an error if threadvars are used but not supported
...
* fix building for arm-embedded
git-svn-id: trunk@23452 -
2013-01-19 15:17:47 +00:00
florian
420cd9bd27
+ support for <text>^ in iso mode
...
git-svn-id: trunk@22512 -
2012-10-01 17:18:51 +00:00
florian
088a7229aa
* use ValSInt parameter as code parameter in val calls to make the code cross platform
...
git-svn-id: trunk@22148 -
2012-08-20 20:12:04 +00:00
paul
1af45d7ec0
rtl: don't perform unneeded string conversions if string codepage matches codepage to convert (thanks to Sergey)
...
git-svn-id: trunk@21987 -
2012-07-31 01:24:36 +00:00
Jonas Maebe
aa9aeeada0
* fixed compilation on platforms without ansistring support since assigning
...
one ansistring to another requires a helper (mantis #21260 , patch by
Koenraad Lelong)
git-svn-id: trunk@20369 -
2012-02-17 13:16:32 +00:00
florian
6a1a2d3464
* get rid of some feature checks, probably the whole feature stuff is plainly the wrong way, embedded rtl compiles again, resolves #20913
...
git-svn-id: trunk@19907 -
2011-12-29 14:06:30 +00:00
Jonas Maebe
f67d7f08fc
* use temporary location to construct writestr() string, because the
...
final destination may also be used in the other arguments
(mantis #20744 )
git-svn-id: trunk@19678 -
2011-11-24 19:56:21 +00:00
paul
60de075ebe
rtl: initialize CodePage field of ReadStr/WriteStr Text variables
...
git-svn-id: trunk@19567 -
2011-10-31 07:07:24 +00:00
paul
5c00cdf40d
rtl: correct ifdef for a code which assigns a codepage to textrec to use FPC_HAS_CPSTRING
...
git-svn-id: trunk@19548 -
2011-10-27 01:24:00 +00:00
florian
72425b49c9
* fixes bootstrapping with upcoming 2.6.x
...
git-svn-id: trunk@19547 -
2011-10-26 19:26:10 +00:00