Re: [fpc-pascal] Does FPC has consts of portable OS error codes?

2010-05-12 Thread Tomas Hajny
On Wed, May 12, 2010 07:37, Bihar Anwar wrote: Something like this one: https://libxpl.arsoft.homeip.net/browser/trunk/errormap/xplErrorMap.cpp?rev=70 I don't think we have platform independent (named) constants defined, but as you probably know, common error code _values_ are defined for our

Re: [fpc-pascal] Does FPC has consts of portable OS error codes?

2010-05-12 Thread Jonas Maebe
On 12 May 2010, at 05:53, Bihar Anwar wrote: As the title says. :-) No, it doesn't. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Does FPC has consts of portable OS error codes?

2010-05-12 Thread Bihar Anwar
Jonas Maebe on May 12, 2010 2:32:18 PM On 12 May 2010, at 05:53, Bihar Anwar wrote: As the title says. :-) No, it doesn't. Any reason for that? or it is not implemented yet? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Does FPC has consts of portable OS error codes?

2010-05-12 Thread Marco van de Voort
In our previous episode, Bihar Anwar said: On 12 May 2010, at 05:53, Bihar Anwar wrote: As the title says. :-) No, it doesn't. Any reason for that? or it is not implemented yet? FPC does not support abstraction of operating system errorcodes, and doesn't plan to. The experiences in

Re: [fpc-pascal] Does FPC has consts of portable OS error codes?

2010-05-12 Thread leledumbo
Any reason for that? or it is not implemented yet? For me: it's not required. The purpose of error code is to provide information so we can handle it correctly, or at the simplest case, to display to user what has happened. For the first one, usually errors in FPC generate exception, you can

Re: [fpc-pascal] Does FPC has consts of portable OS error codes?

2010-05-12 Thread Bihar Anwar
leledumbo onMay 12, 2010 3:58:09 PM Any reason for that? or it is not implemented yet? For the first one, usually errors in FPCgenerate exception, you can handle that instead. Yes, as you said usually, it is not always. For example, FindFirst() and FindNext return OS dependent error code.

[fpc-pascal] Does FPC has consts of portable OS error codes?

2010-05-11 Thread Bihar Anwar
As the title says. :-) I mean ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Does FPC has consts of portable OS error codes?

2010-05-11 Thread Bihar Anwar
I mean, for example, are there something like: - fpcError_ERROR_PATH_NOT_FOUND = ESysENOENT in UNIX fpcError_ERROR_PATH_NOT_FOUND = ERROR_PATH_NOT_FOUND in Windows - fpcERROR_FILENAME_EXCED_RANGE = ESysENAMETOOLONG in UNIX fpcERROR_FILENAME_EXCED_RANGE = ERROR_FILENAME_EXCED_RANGE

Re: [fpc-pascal] Does FPC has consts of portable OS error codes?

2010-05-11 Thread Bihar Anwar
Something like this one: https://libxpl.arsoft.homeip.net/browser/trunk/errormap/xplErrorMap.cpp?rev=70 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal