10 #define MIN(a,b) (((a)<(b))?(a):(b))
11 #define MAX(a,b) (((a)>(b))?(a):(b))
14 # define _lbx_dbgprint(str) (fprintf(stderr, str " [%s, %s:%d]\n", \
15 __func__, __FILE__, __LINE__))
16 # define _lbx_assert(expr) ((!(expr)) \
17 ? (_lbx_dbgprint("format assertion failed: " #expr), 0) \
20 # define _lbx_dbgprint(str) 0
21 # define _lbx_assert(expr) ((expr) ? 1 : 0)
25 * Seeks the specified file to the specified offset, given that the file is
26 * currently positioned at *current. If the file does not support seeking,
27 * and offset > *current, perform the seek by reading (and discarding) data.
29 int _lbx_fseek(FILE *f, long *current, size_t offset);