From 3657acf345b64cb340e598b59c44a0eab5e67e38 Mon Sep 17 00:00:00 2001 From: Olaf Seibert Date: Mon, 6 Jul 2015 22:27:46 +0200 Subject: [PATCH] Clean up some now-inaccurate comments. --- mlb-rsx.c | 10 ++-------- mlb.c | 2 -- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/mlb-rsx.c b/mlb-rsx.c index ada54d3..a6812b6 100644 --- a/mlb-rsx.c +++ b/mlb-rsx.c @@ -165,16 +165,11 @@ DAMAGE. #define WORD(cp) ((*(cp) & 0xff) + ((*((cp)+1) & 0xff) << 8)) -/* BYTEPOS calculates the byte position within the macro libray file. - I use this to sort the entries by their start position, in order to - be able to calculate the entries' sizes, which isn't actually - stored in the directory. */ +/* BYTEPOS calculates the byte position within the macro libray file. */ #define BYTEPOS(rec) (((WORD((rec)+4) & 32767) - 1) * BLOCKSIZE + \ (WORD((rec)+6) & 511)) -extern FILE *lstfile; - /* trim removes trailing blanks from a string. */ static void trim( char *buf) @@ -252,8 +247,7 @@ MLB *mlb_open( return NULL; } - /* Shift occupied directory entries to the front of the array - before sorting */ + /* Shift occupied directory entries to the front of the array */ { int j; diff --git a/mlb.c b/mlb.c index 2735c03..8ec62c3 100644 --- a/mlb.c +++ b/mlb.c @@ -57,8 +57,6 @@ DAMAGE. #define BYTEPOS(rec) ((WORD((rec)+4) & 32767) * 512 + (WORD((rec)+6) & 511)) -extern FILE *lstfile; - /* compare_position is the qsort callback function that compares byte locations within the macro library */ static int compare_position(