/* must have function "Begin" to start with even if nothing inside */ func Begin() { totbytes = 4; oldbytes = 4; } /* after running prthlh.ufh we know that hlh entries 0-48 are bad. so we simply replace each HLH entry with a single blank space and then output the modified Line Header */ func OnLineHeader() { /* hlhent = LH.HlhEnt; hlhbyt = LH.HlhByt; for(i = 0; i < 49; i++){ szi = size(LH.HLH[i]); oldbytes = oldbytes + 4 * szi; LH.HLH[i] = " "; szo = size(LH.HLH[i]); totbytes = totbytes + 4 * szo; print("Line= ",i," had ",szi," byte, now ",szo," bytes to HLH\n"); } for(i = 49; i < hlhent; i++){ szi = size(LH.HLH[i]); oldbytes = oldbytes + 4 * szi; totbytes = totbytes + 4 * szi; print("Line= ",i," added ",szi," bytes to HLH\n"); } print("Old number HLH entries= ",hlhent," for ",hlhbyt," bytes\n"); print("New number HLH entreis= ",hlhent," for ",totbytes," bytes\n"); print("Total number old bytes= ",oldbytes,"\n"); LH.HlhByt = oldbytes+0; */ LH.HLH[0] = ""; LH.HlhByt = 2; LH.HlhEnt = 0; output(LH); } /* we now cruise through the data reading traces and outputting them unchanged */ func OnTrace() { output(Tr); } /* we're finished */