libk  Diff

Differences From Artifact [4bc4090351]:

To Artifact [58676980aa]:


     1      1   #ifndef KIcore
     2      2   #define KIcore
     3      3   #include <k/type.h>
     4      4   #include <k/io.h>
     5      5   #include <k/str.h>
            6  +#include <k/internal.egroup.h>
     6      7   
     7      8   #ifdef __cplusplus
     8      9   extern "C" {
     9     10   #endif
    10     11   
    11     12   typedef struct kvar {
    12     13   	ksraw name;
................................................................................
    24     25   /* i'm really sorry okay */
    25     26   typedef
    26     27   #if (__STDC_VERSION__ >= 199901L)
    27     28   	_Bool bool;
    28     29   #endif
    29     30   enum
    30     31   #if !(__STDC_VERSION__ >= 199901L)
           32  +
    31     33   	bool /* enum bool { */
    32     34   #endif
    33     35   {
    34     36   	false = 0, no  = 0,
    35     37   	true  = 1, yes = 1
    36     38   }
    37     39   #if !(__STDC_VERSION__ >= 199901L)
................................................................................
   154    156    * and there are few enough error conditions
   155    157    * in each  that 16-bit address space should
   156    158    * be more  than enough for the  foreseeable
   157    159    * future. however if that changes, altering
   158    160    * the  definition here will effect all  the
   159    161    * necessary changes throughout the library */
   160    162   bool kokay(kcond);
          163  +
          164  +typedef struct kerror {
          165  +	const char* module_name,
          166  +	          * module_desc,
          167  +			  * error_string;
          168  +	kcond error;
          169  +} kerror;
          170  +
          171  +kerror kexplain(kcond);
   161    172   
   162    173   #ifdef __cplusplus
   163    174   }
   164    175   #endif
   165    176   
   166    177   #endif