Mercurial > noffle
view src/common.h @ 436:4426f4dc6e8b noffle
[svn] * src/protocol.c: Reading of long lines broken in Prt_getLn(). Fix and
change to split long lines rather than truncate. Also change
Prt_putTxtBuf() to work properly with long lines by removing all
fixed buffer dependencies.
author | bears |
---|---|
date | Wed, 25 Jun 2003 10:40:02 +0100 |
parents | 21300895412f |
children |
line wrap: on
line source
/* common.h Common declarations. $Id: common.h 517 2003-04-03 17:21:24Z bears $ */ #ifndef COMMON_H #define COMMON_H #if HAVE_CONFIG_H #include <config.h> #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #define FALSE 0 #define TRUE !0 #define MAXCHAR 2048 #define MAXCHAR_STR "2048" /* limited sscanf() format string: */ #define MAXCHAR_FMT "%2048s" #ifdef DEBUG #include <assert.h> #define ASSERT( x ) \ if ( ! ( x ) ) \ Log_err( "ASSERTION FAILED: %s line %i", __FILE__, __LINE__ ); \ assert( x ) #else #define ASSERT( x ) #endif typedef int Bool; typedef char Str[ MAXCHAR ]; #endif