snc: generate header file
The top-level declaration parts of the generated code are now written to a header file. These parts are (in the order listed): - #includes of epicsTypes.h and seqCom.h - definition of the _seq_var struct - escaped code segments appearing before the first state set The stdin/stdout redirection has been removed. Instead code generation now uses the gen_code function exported from main. Switching between output files is done using set_gen_h and set_gen_c, which are also exported from main. This uses global (though static) variables inside main.c for simplicity.
Showing
- src/snc/gen_code.c 63 additions, 46 deletionssrc/snc/gen_code.c
- src/snc/gen_code.h 1 addition, 1 deletionsrc/snc/gen_code.h
- src/snc/gen_ss_code.c 108 additions, 108 deletionssrc/snc/gen_ss_code.c
- src/snc/gen_tables.c 93 additions, 93 deletionssrc/snc/gen_tables.c
- src/snc/main.c 65 additions, 43 deletionssrc/snc/main.c
- src/snc/main.h 6 additions, 0 deletionssrc/snc/main.h
- src/snc/parser.h 3 additions, 1 deletionsrc/snc/parser.h
- src/snc/snl.re 6 additions, 4 deletionssrc/snc/snl.re
- src/snc/var_types.c 8 additions, 8 deletionssrc/snc/var_types.c
Loading
Please register or sign in to comment