rename nerrors to errstacksize in liberror the other name was too popular and was used by other programs here. Reference: /n/patches.lsub.org/patch/liberror Date: Thu Apr 19 12:58:47 CES 2012 Signed-off-by: nemo@lsub.org --- /sys/src/liberror/error.c Thu Apr 12 12:26:20 2012 +++ /sys/src/liberror/error.c Wed Apr 11 16:20:52 2012 @@ -19,7 +19,7 @@ } int -nerrors(void) +errstacksize(void) { return (*__ep)->nerr; } --- /sys/include/error.h Thu Apr 12 12:24:41 2012 +++ /sys/include/error.h Wed Apr 11 16:20:49 2012 @@ -10,11 +10,10 @@ }; #pragma varargck argpos error 1 -#pragma varargck argpos esmprint 1 void errinit(int stack); void noerror(void); -int nerrors(void); +int errstacksize(void); void error(char* msg, ...); #define catcherror() setjmp((*__ep)->label[(*__ep)->nerr++]) extern Error** __ep; --- /sys/man/2/error Thu Apr 12 12:24:57 2012 +++ /sys/man/2/error Wed Apr 11 16:22:04 2012 @@ -21,7 +21,7 @@ void catcherror(void) .br .B -int nerrors(void) +int errstacksize(void) .SH DESCRIPTION These routiles are tools for error handling. .IR catcherror , @@ -50,7 +50,7 @@ .I Error raises an error. If the argument is nil, the error string is unaltered. See the example. .PP -.I Nerrors +.I Errstacksize returns the number of recovery points kept in the error stack. Useful to perform debug checks to see if the stack depth is what it should be. .SH SOURCE