Clean up some now-inaccurate comments.

This commit is contained in:
Olaf Seibert 2015-07-06 22:27:46 +02:00
parent e02d3b3bdf
commit 3657acf345
2 changed files with 2 additions and 10 deletions

View File

@ -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;

2
mlb.c
View File

@ -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(