summaryrefslogtreecommitdiff
path: root/rtl/objpas/sysconst.pp
Commit message (Collapse)AuthorAgeFilesLines
* * Patch from Ondrej Pokorny to convert unit names to CamelCase (bug ID 33481)michael2018-03-231-1/+1
| | | | git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@38616 3ad0048d-3df7-0310-abae-a5850022a9f2
* + Add RTE 236 for thread errors:pierre2018-03-211-0/+1
| | | | | | | | | | | | | | | | | | inc/systemh.inc and java/jsystemh.inc: + Add reThreadError (and also reNoDynLibsSupport) to TRuntimeError. * Add new values to RuntimeErrorExitCodes after extension of TRuntimeError inc/system.inc and java/jsystem.inc: * use RTE 236 in fpc_threaderror. objpas/sysconst.pp and objpas/sysutils/stre.inc: + Add SThreadError string constant. objpas/sysutils/sysutilh.inc: + Add EThreadError class. objpas/sysutils/sysutils.inc + Add 236 to EThreadError conversion to exeptmap. git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@38584 3ad0048d-3df7-0310-abae-a5850022a9f2
* + write selected features in ppu of the system unit and load them further onflorian2017-12-101-3/+1
| | | | | | | | * ppu version update * -Sf might be used only during system unit compilation * loadsystemunit factored out so the system unit can be loaded earlier than other units to get features set git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@37708 3ad0048d-3df7-0310-abae-a5850022a9f2
* * spelling mistakes fpc repo part, mantis #30233marco2016-06-021-1/+1
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@33882 3ad0048d-3df7-0310-abae-a5850022a9f2
* * Added TStringBuildermichael2016-05-161-1/+3
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@33695 3ad0048d-3df7-0310-abae-a5850022a9f2
* * respect feature definesflorian2015-03-291-0/+6
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@30378 3ad0048d-3df7-0310-abae-a5850022a9f2
* Move DynLibs support to System unit using a manager approach like for ↵svenbarth2015-02-031-0/+2
| | | | | | | | | | | | | | | | | | 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: http://svn.freepascal.org/svn/fpc/trunk@29613 3ad0048d-3df7-0310-abae-a5850022a9f2
* Added exception EObjectCheck for object reference check (runtime error 210).svenbarth2013-02-241-0/+1
| | | | | | | | | | | | rtl/objpas/sysconst.pp: + add resourcestring SObjectCheckError rtl/objpas/sysutilh.inc: + add new Exception descendant EObjectCheck rtl/objpas/sysutils.inc: + use EObjectCheck with message SObjectCheckError for runtime error 210 git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@23656 3ad0048d-3df7-0310-abae-a5850022a9f2
* * Moved ExceptObjProc from objpas to system, because it is going to be ↵sergei2011-12-091-1/+1
| | | | | | | | called from system. Also added ExceptClsProc variable. * Fixed SExceptionErrorMessage, it was missing format placeholder. git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19787 3ad0048d-3df7-0310-abae-a5850022a9f2
* * sysutils: changed RunErrorToExcept to use table instead of case statement ↵sergei2011-11-291-0/+2
| | | | | | | | | | | | | for OS exceptions. This is to be able to extract exception class alone for the upcoming SEH support. * Some Delphi-compatible changes: * For floating point underflow condition, raise EUnderflow, not EOverflow. * For unknown codes, raise EInOutError, not Exception. * Added entries for EZeroDivide and EStackOverflow (actually raising EZeroDivide on floating-point division by zero requires further changes to System because currently both integer and float division by zero is mapped to the same code 200). git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19707 3ad0048d-3df7-0310-abae-a5850022a9f2
* rtl: check arguments in some TEncoding functions which uses array/string ↵paul2011-10-061-0/+4
| | | | | | access and raise EEncodingError in case of wrong indexes or string/arrays git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19387 3ad0048d-3df7-0310-abae-a5850022a9f2
* rtl: add basic implementation of TEncoding classpaul2011-10-041-0/+2
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19355 3ad0048d-3df7-0310-abae-a5850022a9f2
* * Moved string constant to sysconstmichael2011-10-011-0/+1
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19315 3ad0048d-3df7-0310-abae-a5850022a9f2
* * moved SInvalidJulianDate from rtlconst to sysconst (part of r15032,jonas2010-03-221-0/+1
| | | | | | | | necessary because dateutils only depends on sysconst and it contains the julian-datetime helper routines) git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@15033 3ad0048d-3df7-0310-abae-a5850022a9f2
* * Forgot to commitmichael2009-10-161-0/+2
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@13871 3ad0048d-3df7-0310-abae-a5850022a9f2
* * remove the RTL's installed signal handlers at the end of the systemjonas2009-05-021-0/+1
| | | | | | | | | | | | | | | | | | unit's initialization code in case we're in a library + implemented InquireSignal(), AbandonSignalHandler(), HookSignal() and UnhookSignal() in the sysutils unit * for Kylix compatibility, these routines support operating on SIGINT and SIGQUIT as well, although they are not hooked by default by FPC. The run time errors/exception codes for these signals are resp. 217 and 233 (same as in Kylix; I changed ENoWideStringSupport to 234). * changed the BSD syscall version of fpsigaction to use pointer rather than "var" arguments (compatible with other targets, and required to be able to pass nil arguments inside the system unit) -> together fixes mantis #12704 git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@13077 3ad0048d-3df7-0310-abae-a5850022a9f2
* * fixed errors with parsing negative, >$99 and invalid BCD numbers injonas2009-04-271-0/+1
| | | | | | | BCDToInt() (patch from Milla, mantis #13512) git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@13052 3ad0048d-3df7-0310-abae-a5850022a9f2
* * fix typo downstream from Debian (Mazen)marco2009-03-101-1/+1
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@12873 3ad0048d-3df7-0310-abae-a5850022a9f2
* * Added NoWideStringSupport runtime errorjoost2008-04-081-0/+2
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@10618 3ad0048d-3df7-0310-abae-a5850022a9f2
* * dateutils.scandatetime, an inverse of formatdatetimemarco2007-09-231-0/+6
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@8624 3ad0048d-3df7-0310-abae-a5850022a9f2
* * made SExecuteProcessFailed error message more clearflorian2007-09-231-1/+1
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@8622 3ad0048d-3df7-0310-abae-a5850022a9f2
* * big variant from Thorsten Engler, fixes and improves several variant stuffflorian2007-03-071-0/+2
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@6747 3ad0048d-3df7-0310-abae-a5850022a9f2
* + Add siconverror constant.daniel2006-11-251-0/+2
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@5473 3ad0048d-3df7-0310-abae-a5850022a9f2
* * fixed typo (invalid type case -> invalid type cast)jonas2006-03-241-1/+1
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@3025 3ad0048d-3df7-0310-abae-a5850022a9f2
* + runerror 214: bus error/data misaligmentflorian2005-10-031-0/+2
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@1263 3ad0048d-3df7-0310-abae-a5850022a9f2
* * log and id tags removedfpc2005-05-211-16/+0
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@42 3ad0048d-3df7-0310-abae-a5850022a9f2
* initial importfpc2005-05-161-0/+238
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@1 3ad0048d-3df7-0310-abae-a5850022a9f2