kread.h (620B)
1 /* 2 ** kread.h 3 ** Reader for the Kernel Programming Language 4 ** See Copyright Notice in klisp.h 5 */ 6 7 #ifndef kread_h 8 #define kread_h 9 10 #include "kobject.h" 11 #include "kstate.h" 12 13 /* 14 ** Reader interface 15 */ 16 TValue kread_from_port(klisp_State *K, TValue port, bool mut); 17 TValue kread_list_from_port(klisp_State *K, TValue port, bool mut); 18 TValue kread_peek_char_from_port(klisp_State *K, TValue port, bool peek); 19 TValue kread_peek_u8_from_port(klisp_State *K, TValue port, bool peek); 20 TValue kread_line_from_port(klisp_State *K, TValue port); 21 void kread_clear_leading_whitespace_from_port(klisp_State *K, TValue port); 22 23 #endif 24