X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fos2_errortable.h;h=b2b4c3e8f5f58b32c0e5d9c55c4df7e99cfaaec9;hb=8d1c58af82d1fc356f470dff97878ab7c3e8a2fe;hp=997f55dbc530f5a2d02b5ccc3f1098dd024fdd58;hpb=132fe5e1322fbc86a32692df51eba78d6b4e479c;p=lyx.git diff --git a/src/os2_errortable.h b/src/os2_errortable.h index 997f55dbc5..b2b4c3e8f5 100644 --- a/src/os2_errortable.h +++ b/src/os2_errortable.h @@ -5,7 +5,7 @@ * LyX, The Document Processor * * Copyright 1995 Matthias Ettrich -* Copyright 1995-2000 The LyX Team. +* Copyright 1995-2001 The LyX Team. * * ====================================================== A table for translating OS/2 API return code into errno. @@ -17,7 +17,9 @@ #include //#endif -static unsigned char const errno_tab[] = +namespace { + +unsigned char const errno_tab[] = { EINVAL, EINVAL, ENOENT, ENOENT, EMFILE, /* 0..4 */ EACCES, EBADF, EIO, ENOMEM, EIO, /* 5..9 */ @@ -88,6 +90,9 @@ static unsigned char const errno_tab[] = EACCES, EACCES, EACCES, ENOENT, ENOMEM /* 330..334 */ }; +} // namespace anon + + inline int TranslateOS2Error(unsigned long rc) {