1010 *
1111 *
1212 * IDENTIFICATION
13- * $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.56 2001/06/13 21:44:40 tgl Exp $
13+ * $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.57 2001/06/21 18:25:54 momjian Exp $
1414 *
1515 * DESCRIPTION
1616 * The "DefineFoo" routines take the parse tree and pick out the
@@ -64,10 +64,10 @@ static intdefGetTypeLength(DefElem *def);
6464static void
6565case_translate_language_name (const char * input ,char * output )
6666{
67- /*-------------------------------------------------------------------------
68- Translate the input language name to lower case, except if it's "C",
69- translate to upper case.
70- -------------------------------------------------------------------------- */
67+ /*
68+ * Translate the input language name to lower case, except if it's "C",
69+ * translate to upper case.
70+ */
7171int i ;
7272
7373for (i = 0 ;i < NAMEDATALEN - 1 && input [i ];++ i )
@@ -85,10 +85,10 @@ static void
8585compute_return_type (TypeName * returnType ,
8686char * * prorettype_p ,bool * returnsSet_p )
8787{
88- /*---------------------------------------------------------------------------
89- Examine the "returns" clause returnType of the CREATE FUNCTION statement
90- and return information about it as *prorettype_p and *returnsSet.
91- ---------------------------------------------------------------------------- */
88+ /*
89+ * Examine the "returns" clause returnType of the CREATE FUNCTION statement
90+ * and return information about it as *prorettype_p and *returnsSet.
91+ */
9292* prorettype_p = TypeNameToInternalName (returnType );
9393* returnsSet_p = returnType -> setof ;
9494}
@@ -100,28 +100,29 @@ compute_full_attributes(List *parameters,
100100int32 * percall_cpu_p ,int32 * outin_ratio_p ,
101101bool * canCache_p ,bool * isStrict_p )
102102{
103- /*--------------------------------------------------------------------------
104- Interpret the parameters *parameters and return their contents as
105- *byte_pct_p, etc.
106-
107- These parameters supply optional information about a function.
108- All have defaults if not specified.
109-
110- Note: currently, only two of these parameters actually do anything:
111-
112- * canCache means the optimizer's constant-folder is allowed to
113- pre-evaluate the function when all its inputs are constants.
114-
115- * isStrict means the function should not be called when any NULL
116- inputs are present; instead a NULL result value should be assumed.
117-
118- The other four parameters are not used anywhere.They used to be
119- used in the "expensive functions" optimizer, but that's been dead code
120- for a long time.
121-
122- Since canCache and isStrict are useful for any function, we now allow
123- attributes to be supplied for all functions regardless of language.
124- ---------------------------------------------------------------------------*/
103+ /*-------------
104+ * Interpret the parameters *parameters and return their contents as
105+ * *byte_pct_p, etc.
106+ *
107+ * These parameters supply optional information about a function.
108+ * All have defaults if not specified.
109+ *
110+ * Note: currently, only two of these parameters actually do anything:
111+ *
112+ * * canCache means the optimizer's constant-folder is allowed to
113+ * pre-evaluate the function when all its inputs are constants.
114+ *
115+ * * isStrict means the function should not be called when any NULL
116+ * inputs are present; instead a NULL result value should be assumed.
117+ *
118+ * The other four parameters are not used anywhere.They used to be
119+ * used in the "expensive functions" optimizer, but that's been dead code
120+ * for a long time.
121+ *
122+ * Since canCache and isStrict are useful for any function, we now allow
123+ * attributes to be supplied for all functions regardless of language.
124+ *------------
125+ */
125126List * pl ;
126127
127128/* the defaults */
@@ -530,7 +531,6 @@ DefineAggregate(char *aggName, List *parameters)
530531/*
531532 * DefineType
532533 *Registers a new type.
533- *
534534 */
535535void
536536DefineType (char * typeName ,List * parameters )