X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=comstack%2Fcomstack.c;h=d46b49ebc8af86cf525bb8cbeaff0d04be38ed5c;hp=2912d3540512e451d0be6b8c2d89fa0423146b1d;hb=a7827306d9d9fd634a4b4336944bee781fa61e32;hpb=8a425ff5328260fff0dcc28f08b5bdf6bfac84ab;ds=sidebyside diff --git a/comstack/comstack.c b/comstack/comstack.c index 2912d35..d46b49e 100644 --- a/comstack/comstack.c +++ b/comstack/comstack.c @@ -1,10 +1,19 @@ /* - * Copyright (c) 1995, Index Data + * Copyright (c) 1995-1997, Index Data * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * * $Log: comstack.c,v $ - * Revision 1.1 1995-06-14 09:58:20 quinn + * Revision 1.4 1997-09-29 07:16:14 adam + * Array cs_errlist no longer global. + * + * Revision 1.3 1997/09/01 08:49:14 adam + * New windows NT/95 port using MSV5.0. Minor changes only. + * + * Revision 1.2 1995/09/29 17:01:48 quinn + * More Windows work + * + * Revision 1.1 1995/06/14 09:58:20 quinn * Renamed yazlib to comstack. * * Revision 1.2 1995/05/16 08:51:15 quinn @@ -16,7 +25,9 @@ * */ -const char *cs_errlist[] = +#include + +static const char *cs_errlist[] = { "No error or unspecified error", "System (lower-layer) error", @@ -24,3 +35,8 @@ const char *cs_errlist[] = "No data (operation would block)", "New data while half of old buffer is on the line (flow control)" }; + +const char *cs_errmsg(int n) +{ + return cs_errlist[n]; +}