2 * ngIRCd -- The Next Generation IRC Daemon
3 * Copyright (c)2001-2013 Alexander Barton (alex@barton.de) and Contributors.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 * Please read the file COPYING, README and AUTHORS for more information.
16 * Test program for portab.h and friends ;-)
27 static void Panic PARAMS (( char *Reason, int Code ));
32 /* validate datatypes */
37 if (sizeof(UINT8) != 1)
39 if (sizeof(UINT16) != 2)
41 if (sizeof(UINT32) != 4)
49 Panic("vsnprintf", 2);
58 } /* portab_check_types */
61 Panic(char *Reason, int Code)
63 /* Oops, something failed!? */
64 fprintf(stderr, "Oops, test for %s failed!?", Reason);