pgsql-server/src/include fmgr.h

From: momjian(at)postgresql(dot)org (Bruce Momjian - CVS)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server/src/include fmgr.h
Date: 2002-09-12 00:26:42
Message-ID: 20020912002642.04427475FC4@postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: momjian(at)postgresql(dot)org 02/09/11 20:26:42

Modified files:
src/include : fmgr.h

Log message:
The small context diff below corrects what seems to be an oversight in
fmgr.h - it's discouraged to access fcinfo directly but there is no
macro to get the number of arguments passed to the function. Checking
the number of arguments is often useful when you have a function which
can be called like:

func('arg');
func(null);
func();

all mapping to the same C function.

the macro has a function-like appearance to match the other PG_*
macros.

Lee Kindness.

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2002-09-12 14:03:45 pgsql-server/src/backend/utils/misc guc.c
Previous Message Bruce Momjian - CVS 2002-09-12 00:26:00 pgsql-server/contrib/cube CHANGES README.cube ...