caveats_impl.h (1158B)
1 #ifndef MINIROON_CAVEATS_IMPL_H 2 #define MINIROON_CAVEATS_IMPL_H 3 4 #include "caveats.h" 5 #include "netstring.h" 6 7 // {IMP} caveat_env_is.c 8 void miniroon_caveat_prepare_env_is(netstring_chunk *c, miniroon_caveats_state *state); 9 void miniroon_caveat_validate_env_is(netstring_chunk *c, miniroon_caveats_state *state); 10 11 // {IMP} caveat_env_absent.c 12 void miniroon_caveat_prepare_env_absent(netstring_chunk *c, miniroon_caveats_state *state); 13 void miniroon_caveat_validate_env_absent(netstring_chunk *c, miniroon_caveats_state *state); 14 15 // {IMP} caveat_env_fnmatch.c 16 void miniroon_caveat_prepare_env_fnmatch(netstring_chunk *c, miniroon_caveats_state *state); 17 void miniroon_caveat_validate_env_fnmatch(netstring_chunk *c, miniroon_caveats_state *state); 18 19 #ifndef caveat_name 20 #define caveat_name "(undefined)" 21 #endif 22 23 #define caveat_die1(a) strerr_dief4x(111, "caveat `", caveat_name, "`: ", a); 24 #define caveat_die2(a,b) strerr_dief5x(111, "caveat `", caveat_name, "`: ", a, b); 25 #define caveat_die3(a,b,c) strerr_dief6x(111, "caveat `", caveat_name, "`: ", a, b, c); 26 #define caveat_die4(a,b,c,d) strerr_dief7x(111, "caveat `", caveat_name, "`: ", a, b, c, d); 27 28 #endif