1/*
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 *
6 * Copyright 1997 - July 2008 CWI, August 2008 - 2019 MonetDB B.V.
7 */
8
9#ifndef HELPERS_H
10#define HELPERS_H
11
12#define MAX(a,b) (((a)>(b))?(a):(b))
13#define MIN(a,b) (((a)<(b))?(a):(b))
14
15_Noreturn void ErrXit(char *text1, char *text2, int num);
16FILE *Rfopen(char *name);
17FILE *Wfopen(char *name);
18FILE *Afopen(char *name);
19char *filename(char *path);
20char *tmpdir(void);
21
22#endif /* HELPERS_H */
23