Listing 2 (psort.h)
/* Postman's Sort (R) Version 1.0 Copyright (c) Robert Ramey 1991. All Rights Reserved */ typedef int BOOLEAN; typedef unsigned int MEM_SIZE; typedef size_t SEG_SIZE; typedef long FILE_SIZE; /* note: cannot be unsigned as -1 is used for EOF */ #define K 1024 #define TRUE 1 #define FALSE 0 #define private static #define DEFAULT_RECORD SIZE 511 #define MAX_BUFFER_SIZE 31 #define isdelim(c) (c==delimiter) #define RB_SIZE 30 /* Default size for input buffer from work file */ #define SB_SIZE 30 /* Default size for output buffer to workfile */ #define B_SIZE 30 /* Default size for input/output buffers */ /* End of-File */