#include "symtab.ih" /* Global variables are written like this: 1st byte: their type */ void symtab_writeGlobals(FILE *bin) { msg("BEGIN"); for (VarInfo *begin = gs_vars.varTab->info, *end = begin + gs_vars.varTab->nVars; begin != end; ++begin) { char type = (char)begin->type & ~e_var; util_out(bin, &type, sizeof(char)); } msg("END"); }