| 59 | } |
| 60 | |
| 61 | static void DumpString(const TString* s, DumpState* D) |
| 62 | { |
| 63 | if (s==NULL || getstr(s)==NULL) |
| 64 | { |
| 65 | size_t size=0; |
| 66 | DumpVar(size,D); |
| 67 | } |
| 68 | else |
| 69 | { |
| 70 | size_t size=s->tsv.len+1; /* include trailing '\0' */ |
| 71 | DumpVar(size,D); |
| 72 | DumpBlock(getstr(s),size,D); |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | #define DumpCode(f,D) DumpVector(f->code,f->sizecode,sizeof(Instruction),D) |
| 77 |
no test coverage detected