A static site generator, written in C
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cms_err.h 395B

12345678910111213141516171819202122232425
  1. #ifndef CMS_ERR_H
  2. #define CMS_ERR_H
  3. typedef enum cms_err
  4. {
  5. CMS_ERR_NONE,
  6. CMS_ERR_UNKNOWN,
  7. CMS_ERR_ALLOC,
  8. CMS_ERR_PARSE,
  9. CMS_ERR_FILENOENT,
  10. CMS_ERR_DIRNOENT,
  11. CMS_ERR_NOTFILE,
  12. CMS_ERR_NOTDIR,
  13. CMS_ERR_FILEEXISTS,
  14. CMS_ERR_DIREXISTS,
  15. CMS_ERR_PERM,
  16. CMS_ERR_INITED,
  17. CMS_ERR_NOTINITED
  18. } cms_err;
  19. void cms_err_panic(cms_err err, char* msg);
  20. cms_err cms_err_from_std_err(int err);
  21. #endif