diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-06-14 05:24:50 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-06-14 05:24:50 +0000 |
| commit | ff7b9f55410bbfbd017af331d23371ab61b63d5e (patch) | |
| tree | 6a055be48dd161470503eb2f1a0376bc048ab73b /src/include | |
| parent | 69cd08d9f79818c8ff8b7b74c7ecfe8dcdb0202c (diff) | |
| download | postgresql-ff7b9f55410bbfbd017af331d23371ab61b63d5e.tar.gz | |
I had overlooked the fact that some fmgr-callable functions return void
--- ie, they're only called for side-effects. Add a PG_RETURN_VOID()
macro and use it where appropriate. This probably doesn't change the
machine code by a single bit ... it's just for documentation.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/fmgr.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/fmgr.h b/src/include/fmgr.h index cf5a3eb0cb..c68abfcf85 100644 --- a/src/include/fmgr.h +++ b/src/include/fmgr.h @@ -11,7 +11,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: fmgr.h,v 1.5 2000/06/13 07:35:23 tgl Exp $ + * $Id: fmgr.h,v 1.6 2000/06/14 05:24:50 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -147,6 +147,9 @@ extern void fmgr_info(Oid functionId, FmgrInfo *finfo); #define PG_RETURN_NULL() \ do { fcinfo->isnull = true; return (Datum) 0; } while (0) +/* A few internal functions return void (which is not the same as NULL!) */ +#define PG_RETURN_VOID() return (Datum) 0 + /* Macros for returning results of standard types */ #define PG_RETURN_INT32(x) return Int32GetDatum(x) |
