From eeff2c94bea07c55a79bcf518411068e2bc07dd8 Mon Sep 17 00:00:00 2001 From: Jan Wieck Date: Fri, 18 Dec 1998 14:45:09 +0000 Subject: Fixed nodeToString() to put out "<>" for NULL strings again. More cleanups to appendStringInfo() usage in node/outfuncs.c. Jan --- src/include/lib/stringinfo.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/include/lib/stringinfo.h') diff --git a/src/include/lib/stringinfo.h b/src/include/lib/stringinfo.h index 269342c84e0..a23148c6bd5 100644 --- a/src/include/lib/stringinfo.h +++ b/src/include/lib/stringinfo.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: stringinfo.h,v 1.8 1998/12/14 08:11:17 scrappy Exp $ + * $Id: stringinfo.h,v 1.9 1998/12/18 14:45:09 wieck Exp $ * *------------------------------------------------------------------------- */ @@ -44,4 +44,10 @@ extern StringInfo makeStringInfo(void); */ extern void appendStringInfo(StringInfo str, const char *fmt,...); +/*------------------------ + * nullStringInfo + * return the string itself or "<>" if it is NULL + */ +#define stringStringInfo(s) (((s) == NULL) ? "<>" : (s)) + #endif /* STRINGINFO_H */ -- cgit v1.2.3