+ Add MSDOS specific version of SysInitFPU, using Get/SetInterrput Vectors
to test coprocessor presence.
* Do not call SetupEnvironment in startup code.
+ Add internal_envp variable (nil by default).
+ Change envp to function, which calls SetUpEnvironment,
if internal_envp is nil.
* Do not call SetupArguments at startup,
instead call it from inside paramcount or paramstr
+ Add SaveInt10 and SavdeInt75
* dos.pp: Also swap Interrupt vectors $10 and $75
* sysutils.pp: Adapt to envp change in system unit.
git-svn-id: trunk@36268 -
- removed the envp variable from the msdos system unit, because it's not
compatible with ppchar in all memory models (we use ppfarchar to avoid copying
the environment in the program's data segment in near data memory models)
git-svn-id: trunk@32017 -
large memory models by changing TSearchRec.FindHandle to a pointer (because
THandle is 16-bit on this platform and is thus not able to hold a far pointer
without truncating it)
git-svn-id: trunk@28451 -
(still not sure if it's a good idea, but trying, at least, is harmless - we
can always rollback to integer being equal to longint)
git-svn-id: trunk@26966 -
o these routines are now generic wrappers in filutil.inc, and call
the platform-dependent internalfindfirst/next/close routines
o on unix, the fnmatch routine got proper support for UTF-8 matching
(e.g., it won't match a partial UTF-8 code point to a "?" wildcard)
o for NativeNT, a similar (untested) UTF-16 version has been added
+ test for the above
* rawbytestring/unicodestring versions of fileage
git-svn-id: branches/cpstrrtl@25302 -
so declarations can also depend on it and similar defines (not yet the
case)
+ added SYSUTILS_HAS_ANSISTR_ENVVAR_IMPL/SYSUTILS_HAS_UNICODESTR_ENVVAR_IMPL
to indicate whether the platform-dependent part of the unit provides
an ansistring/unicodestring interface to get environment variables
+ Windows version of getenvironmentvariable(unicodestring)
+ generic ansistring/unicodestring versions of GetEnvironmentVariable()
in case the platform doesn't provide them
* result of GetEnvironmentString() is ansistring/unicodestring depending
on the state of the FPC_RTL_UNICODE define
git-svn-id: branches/cpstrrtl@25116 -
CreateDir and RemoveDir, and implemented a generic one (based on the OS/2
version) in the shared sysutils code (so that the filesystem code page
support for the system unit routines can be reused)
* include both ansistring and unicodestring versions of the above routines,
and of ForceDirectories. Exception: GetCurrentDir, which cannot be
overloaded based on function result and whose return type currently
dependends on the FPC_UNICODE_RTL define
git-svn-id: branches/cpstrrtl@25113 -
msdos/embedded, but do not perform any code page conversions
(size limits prevent widestring manager on msdos, and the
embedded routines are empty)
git-svn-id: branches/cpstrrtl@25076 -