Commit Graph

885 Commits

Author SHA1 Message Date
nickysn
a58dd988a4 * regenerate makefiles after the fpcmake update
git-svn-id: trunk@34002 -
2016-06-17 22:05:59 +00:00
Tomas Hajny
293d9be6b6 * fix compilation after UnicodeString ExecuteProcess related changes
git-svn-id: trunk@33899 -
2016-06-03 23:57:51 +00:00
Tomas Hajny
c1afb4b63b * avoid FindFirst failing due to Attribute parameter bigger than $FF
git-svn-id: trunk@33894 -
2016-06-03 21:16:35 +00:00
Jonas Maebe
2e64c63993 * fixed dependencies for lineinfo unit after r33007
* also made lnfodwrf dependent on lineinfo for all platforms,
    because both units implicitly depend on the exeinfo unit
    and if both are compiled at the same time they can fall
    over each other while writing its .ppu or .s file

git-svn-id: trunk@33039 -
2016-02-01 22:52:50 +00:00
florian
70b8789262 o basic extended pascal support:
+ automatically loaded helper unit
  * Makefiles adapted
  * mode switch
  * mode switches reorganized
+ TimeStamp support

git-svn-id: trunk@32330 -
2015-11-15 15:13:36 +00:00
Tomas Hajny
2c566ffcb9 * fix compilation failure after r32262
git-svn-id: trunk@32270 -
2015-11-08 00:41:00 +00:00
michael
fde42ca8ef * Type helpers, compatible to Delphi XE 8
git-svn-id: trunk@32262 -
2015-11-07 09:40:54 +00:00
Tomas Hajny
ebd1c6026c * fix FileSetAttr - bug #28826
git-svn-id: trunk@32019 -
2015-10-11 18:30:29 +00:00
nickysn
2e3cb70489 * regenerated makefiles after adding the win16 target
git-svn-id: trunk@31525 -
2015-09-05 11:02:54 +00:00
Jonas Maebe
89418d23e5 * regenerated Makefiles with Linux/AArch64 support
git-svn-id: trunk@30891 -
2015-05-20 20:15:10 +00:00
Tomas Hajny
db7a9950d1 * unit name changed to System (starting with uppercase 'S') for improved compatibility to Delphi - see test tobject5.pp
git-svn-id: trunk@30025 -
2015-02-27 19:00:50 +00:00
Tomas Hajny
b64c4d9acd * fixed handling of FPU exceptions, extended output with -dSYSTEMEXCEPTIONDEBUG, added possibility of debug tracking of OS/2 API error codes in RTL
git-svn-id: trunk@30019 -
2015-02-26 21:50:01 +00:00
Tomas Hajny
f71007d95c * corrected initialization of cached information about 'MS Windows-compatible' codepage number information (if different from the OS/2 codepage number), removed warnings about implicit string conversions
git-svn-id: trunk@30016 -
2015-02-26 17:07:42 +00:00
Jonas Maebe
fa328436ab * regenerated for iphonesim/x86-64
git-svn-id: trunk@29974 -
2015-02-23 22:56:41 +00:00
Jonas Maebe
3d01d4ceb1 * regenerated with Darwin/AArch64 support
git-svn-id: trunk@29950 -
2015-02-23 22:54:53 +00:00
Tomas Hajny
b9f88aa80c * mapping of I/O error number 206 having different meaning in FPC to RTE 3
git-svn-id: trunk@29797 -
2015-02-22 22:25:44 +00:00
Tomas Hajny
590e2f7977 * fix for bug #16884 for OS/2
git-svn-id: trunk@29712 -
2015-02-15 19:39:53 +00:00
Tomas Hajny
c5c2ac13e2 * TODO updated according to the current status of OS/2 RTL
git-svn-id: trunk@29702 -
2015-02-15 11:21:34 +00:00
Tomas Hajny
a4df1b644c * allow Append to work on character devices
git-svn-id: trunk@29669 -
2015-02-11 00:08:53 +00:00
Tomas Hajny
d676a503c0 * fix returned value for FileRead and FileWrite in case of an error and change the default sharing mode to doDenyRW to be compatible with other platforms
git-svn-id: trunk@29668 -
2015-02-10 23:46:06 +00:00
Tomas Hajny
2eba9bc63e * fix SetFAttr (doWriteThrough not accepted in DosSetPathInfo for ilStandard) and improve compatibility with TP/BP for returned DosError in case of errors
git-svn-id: trunk@29666 -
2015-02-10 16:55:20 +00:00
Tomas Hajny
684f8fc769 * ensure setting temporary UConv object to nil after freeing it
git-svn-id: trunk@29629 -
2015-02-05 09:29:06 +00:00
Tomas Hajny
5a56228011 * add missing condition for empty string in Unicode uppercase and lowercase conversion routines
git-svn-id: trunk@29625 -
2015-02-04 14:35:01 +00:00
Tomas Hajny
dbc50980d1 * fixed OS/2 compilation after dynlibs manager implementation
git-svn-id: trunk@29617 -
2015-02-03 23:56:12 +00:00
svenbarth
2d454dc8fa Move DynLibs support to System unit using a manager approach like for Threads, WideStrings, etc.. This is needed so that we can support features like "delayed" and loading of dynamic packages.
Each port that allows the usage of dynamic libraries should call InitSystemDynLibs during initialization of the System unit.
The DynLibs unit has been adjusted to be a forwarder for the functions that now reside in the System unit (for backwards compatiblity just in case). Additionally the unit will register the DynLibsManager if it doesn't reside in the System unit anyway.
Currently only the Windows targets (Win32, Win64 and WinCE) implement the DynLibsManager inside the System unit. For other systems using the LoadLibrary, etc. functions will lead to a run error/exception.
If a port wants to implement its own DynLibsManager then it needs to define DISABLE_NO_DYNLIBS_MANAGER. TLibHandle, NilHandle and optionally TOrdinalEntry (it's set to SizeUInt otherwise) should be defined in sysdlh.inc which needs to be enabled using the define FPC_SYSTEM_HAS_SYSDLH (because there are targets which have FEATURE_DYNLIBS enabled, but don't support them... e.g. powerpc-wii -.-).
The DynLibsManager contains methods for loading a library based on a RawByteString and based on a UnicodeString. BOTH should be implemented, but internally one can forward to the other.
The loading by ordinal *can* be be implemented. If it is set to Nil then the implementation of GetProcAddress(lib,ordinal) will return Nil.

+ new functions SetDynLibsManager and GetDynLibsManager to set and retrieve the current DynLibsManager
* provide interface of DynLibs unit in unit System

git-svn-id: trunk@29613 -
2015-02-03 20:00:00 +00:00
Tomas Hajny
4cced1186d * use the default locale for current country as the first fallback before using the 'Universal' locale if the locale set in LANG is not recognized/supported by OS/2
git-svn-id: trunk@29572 -
2015-01-28 02:29:39 +00:00
Tomas Hajny
919e58fc99 * try a fallback to 'Universal' locale if the locale set in LANG is not recognized/supported by OS/2
git-svn-id: trunk@29571 -
2015-01-28 00:30:38 +00:00
Tomas Hajny
2f92aa8d48 * corrected random memory corruption during argument setup
git-svn-id: trunk@29539 -
2015-01-24 00:25:35 +00:00
Tomas Hajny
7292e64e04 * corrected test for empty filename in FileRec
git-svn-id: trunk@29538 -
2015-01-24 00:23:42 +00:00
Tomas Hajny
08ce351a06 * don't use the OS/2 API function DosSearchPath for searching through the list of directories in FSearch because it always returns full path even for relative directory specifications (as opposed to what is expected in TP/BP)
git-svn-id: trunk@29532 -
2015-01-23 01:25:08 +00:00
Tomas Hajny
2e5054186c * include current directory in the list of searched directories in FSearch as expected in TP/BP
git-svn-id: trunk@29531 -
2015-01-23 01:19:22 +00:00
Tomas Hajny
5176a069cf * align DosError returned for empty filename in GetFAttr and SetFAttr to TP/BP
git-svn-id: trunk@29530 -
2015-01-23 00:48:16 +00:00
Tomas Hajny
37acf48426 * align DosError returned for invalid (unused) handle in GetFTime and SetFTime to TP/BP
git-svn-id: trunk@29529 -
2015-01-23 00:26:02 +00:00
Tomas Hajny
dcffcd22e7 * fix a bug in Exec if calling a program without arguments
git-svn-id: trunk@29526 -
2015-01-22 23:11:42 +00:00
Tomas Hajny
284074c4e8 * OS/2 UnicodeStringManager functions finished (except for CharLengthPChar and CodePointLength which only make sense after they get a codepage parameter as discussed with Jonas); fix for #6295
git-svn-id: trunk@29492 -
2015-01-17 01:32:20 +00:00
Tomas Hajny
a73c5c0c0d * improved thread-safety in case of reinitialization of cached information after codepage change, improved fallback routines for upper/lowercase if no Unicode support is available
git-svn-id: trunk@29457 -
2015-01-13 01:11:28 +00:00
Tomas Hajny
c3fee174b8 * ensure initialization of CountryCode parameter for DosMapCase in OS2UpperAnsiString
git-svn-id: trunk@29441 -
2015-01-12 00:07:07 +00:00
Tomas Hajny
16d4e39c59 * added information for future implementation of certain SMP specific API functions
git-svn-id: trunk@29433 -
2015-01-11 00:18:10 +00:00
Tomas Hajny
e7f76cee9e * fixed re-initialization of cached UConv object after changed codepage and added implementation of several more UnicodeStringManager routines
git-svn-id: trunk@29432 -
2015-01-11 00:16:12 +00:00
marco
d407b668d1 * version updated to 3.1.1
git-svn-id: trunk@29399 -
2015-01-04 21:09:04 +00:00
Tomas Hajny
bec4a9ceb7 * modified solution for ensuring validity of cached conversion objects
git-svn-id: trunk@29390 -
2015-01-04 18:28:14 +00:00
Tomas Hajny
faead59e7a * start building unicode related units
git-svn-id: trunk@29389 -
2015-01-04 18:23:13 +00:00
Tomas Hajny
1dceddc302 * minor update of the GetLastOSError support infrastructure
git-svn-id: trunk@29179 -
2014-11-29 01:43:38 +00:00
Tomas Hajny
c3fbfcb27b * first part of UnicodeStringManager routines implementation for OS/2
git-svn-id: trunk@29178 -
2014-11-29 01:42:29 +00:00
Tomas Hajny
acbca7254d * remove unused local variable
git-svn-id: trunk@29177 -
2014-11-29 01:29:31 +00:00
pierre
7bbb30ccd4 * Reset filerec mode field to fmClosed if the system call to open the file failed
git-svn-id: trunk@29132 -
2014-11-23 21:49:29 +00:00
sergei
3a5e6485b5 - RTL: removed InitVariantManager, it was an empty procedure since day 1.
git-svn-id: trunk@29114 -
2014-11-22 20:35:46 +00:00
Tomas Hajny
bf7e71da47 * new constants for options used in recently added APIs
git-svn-id: trunk@29075 -
2014-11-15 11:15:29 +00:00
Tomas Hajny
8c7fc80580 * yet more OS/2 API functions added
git-svn-id: trunk@29073 -
2014-11-14 18:59:52 +00:00
Tomas Hajny
f330d2e981 * fix for random memory corruption introduced in r28975
git-svn-id: trunk@29017 -
2014-11-08 00:01:13 +00:00