AX.25 Amateur Radio Link-Layer Protocol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

regenerate EverParse C files with wire 0.9.0

Wire_3d now generates ExternalTypedefs.h, ExternalAPI.h, Wrapper, and
Fields files for schemas using WireCtx. Bitfield padding fixed so .3d
structs match OCaml codec wire_size. Test.c passes NULL for WIRECTX
and links per-schema Field stubs. File naming matches EverParse output.

Also: gitignore EverParse intermediates (.fst, .krml, .rsp, Makefile)
and remove the previously-tracked ones from ocaml-fsr.

+6 -6
+1 -1
c/SSID_ExternalTypedefs.h
··· 1 1 #ifndef WIRECTX_DEFINED 2 2 #define WIRECTX_DEFINED 3 - typedef struct SSIDFields WIRECTX; 3 + typedef struct SsidFields WIRECTX; 4 4 #endif
+1 -1
c/SSID_Fields.c
··· 4 4 #include "SSID_ExternalAPI.h" 5 5 6 6 void SsidsetU8(WIRECTX *ctx, uint32_t idx, uint8_t v) { 7 - SSIDFields *f = (SSIDFields *) ctx; 7 + SsidFields *f = (SsidFields *) ctx; 8 8 switch (idx) { 9 9 case 0: f->ch_flag = (uint32_t) v; break; 10 10 case 1: f->reserved = (uint8_t) v; break;
+3 -3
c/SSID_Fields.h
··· 10 10 #define SSID_IDX_EXTENSION 3 11 11 12 12 /* Default plug: one typed member per named field. Pass a pointer to 13 - [SSIDFields] as [WIRECTX *] when you want every field populated. */ 14 - typedef struct SSIDFields { 13 + [SsidFields] as [WIRECTX *] when you want every field populated. */ 14 + typedef struct SsidFields { 15 15 uint32_t ch_flag; 16 16 uint8_t reserved; 17 17 uint8_t ssid_val; 18 18 uint32_t extension; 19 - } SSIDFields; 19 + } SsidFields; 20 20 #endif
+1 -1
c/test.c
··· 28 28 int pass = 0, fail = 0; 29 29 uint8_t buf[1]; 30 30 uint64_t r; 31 - SSIDFields ctx = {0}; 31 + SsidFields ctx = {0}; 32 32 33 33 memset(buf, 0, 1); 34 34 r = SsidValidateSsid((WIRECTX *) &ctx, NULL, counting_error_handler, buf, 1, 0);