vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

sam.h

(506B)


      1 #ifndef SAM_H
      2 #define SAM_H
      3 
      4 #include "vis.h"
      5 
      6 enum SamError {
      7 	SAM_ERR_OK,
      8 	SAM_ERR_MEMORY,
      9 	SAM_ERR_ADDRESS,
     10 	SAM_ERR_NO_ADDRESS,
     11 	SAM_ERR_UNMATCHED_BRACE,
     12 	SAM_ERR_REGEX,
     13 	SAM_ERR_TEXT,
     14 	SAM_ERR_SHELL,
     15 	SAM_ERR_COMMAND,
     16 	SAM_ERR_EXECUTE,
     17 	SAM_ERR_NEWLINE,
     18 	SAM_ERR_MARK,
     19 	SAM_ERR_CONFLICT,
     20 	SAM_ERR_WRITE_CONFLICT,
     21 	SAM_ERR_LOOP_INVALID_CMD,
     22 	SAM_ERR_GROUP_INVALID_CMD,
     23 	SAM_ERR_COUNT,
     24 };
     25 
     26 bool sam_init(Vis*);
     27 enum SamError sam_cmd(Vis*, const char *cmd);
     28 const char *sam_error(enum SamError);
     29 
     30 #endif