X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=error.h;h=8ef9e37d9cc4630178641b59146e0e77f4c0567e;hp=a245fb36ffa8f6e02cdda97797974d4be2cf7f41;hb=0d1918752a18755bf701b82cf57fad79d9b18bc9;hpb=9e2b093bed5d47a5941ebcf4735f4498ac1f427b diff --git a/error.h b/error.h index a245fb36..8ef9e37d 100644 --- a/error.h +++ b/error.h @@ -255,8 +255,9 @@ enum para_error_codes {PARA_ERRORS}; #undef PARA_ERROR #define PARA_ERROR(err, msg) msg -/** Array of error strings. */ +/** All .c files need the declararation of the array of error strings. */ extern const char * const para_errlist[]; +/** Exactly one .c file per executable must define the array. */ #define DEFINE_PARA_ERRLIST const char * const para_errlist[] = {PARA_ERRORS} /** @@ -266,11 +267,10 @@ extern const char * const para_errlist[]; */ #define SYSTEM_ERROR_BIT 30 -/** - * Like the SYSTEM_ERROR_BIT, but indicates an error from the osl library. - */ +/** Like SYSTEM_ERROR_BIT, but for errors from the osl library. */ #define OSL_ERROR_BIT 29 +/** Like SYSTEM_ERROR_BIT, but for errors from the lopsub library. */ #define LLS_ERROR_BIT 28 /** Check whether the system error bit is set. */