ErrorContext impl

Copyright

This program is free software.  You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.

Author

© 2013 Jörg Seebohn

Files

C-kern/api/context/errorcontext.h

Header file ErrorContext.

C-kern/context/errorcontext.c

Implementation file ErrorContext impl.

errorcontext_t

Summary
global variables
g_errorcontext_stroffsetHolds offset into array g_errorcontext_strdata.
g_errorcontext_strdataHolds all message strings stored in one array.
lifetime
test

global variables

g_errorcontext_stroffset

uint16_t g_errorcontext_stroffset[]

Holds offset into array g_errorcontext_strdata.

g_errorcontext_strdata

uint8_t g_errorcontext_strdata[]

Holds all message strings stored in one array.  Every string ends with a \0 byte.

lifetime

test

Manages string table of system errors.
Implements ErrorContext.
uint16_t g_errorcontext_stroffset[]
Holds offset into array g_errorcontext_strdata.
uint8_t g_errorcontext_strdata[]
Holds all message strings stored in one array.
Close