/* * common.h * Author: Hannah C. Tang (hctang@cs) * * Specification and implementation of common utility types * and functions * * $Id: common.h,v 1.1 2001/12/18 00:24:16 cse466_t Exp $ * */ #ifndef COMMON_H #define COMMON_H /* * Boolean type */ typedef unsigned char Bool; static const unsigned char Bool_true = 1; static const unsigned char Bool_false = 0; /* * Debugging output */ #ifdef NDEBUG /* No debugging output */ /* This prototype is only necessary if NDEBUG is defined. It * just returns 0 */ int no_op( const char *format, ... ) { return 0; } # define print_debug no_op #else /* Debugging output, please */ # define print_debug printf #endif /* NDEBUG */ #endif /* COMMON_H */