mirror of
https://github.com/postgres/postgres.git
synced 2025-07-17 06:41:09 +03:00
Phase 2 pgindent run for v12.
Switch to 2.1 version of pg_bsd_indent. This formats multiline function declarations "correctly", that is with additional lines of parameter declarations indented to match where the first line's left parenthesis is. Discussion: https://postgr.es/m/CAEepm=0P3FeTXRcU5B2W3jv3PgRVZ-kGUXLGfd42FFhUROO3ug@mail.gmail.com
This commit is contained in:
@ -22,14 +22,14 @@ PyObject *PLy_exc_spi_error = NULL;
|
||||
|
||||
|
||||
static void PLy_traceback(PyObject *e, PyObject *v, PyObject *tb,
|
||||
char **xmsg, char **tbmsg, int *tb_depth);
|
||||
char **xmsg, char **tbmsg, int *tb_depth);
|
||||
static void PLy_get_spi_error_data(PyObject *exc, int *sqlerrcode, char **detail,
|
||||
char **hint, char **query, int *position,
|
||||
char **schema_name, char **table_name, char **column_name,
|
||||
char **datatype_name, char **constraint_name);
|
||||
char **hint, char **query, int *position,
|
||||
char **schema_name, char **table_name, char **column_name,
|
||||
char **datatype_name, char **constraint_name);
|
||||
static void PLy_get_error_data(PyObject *exc, int *sqlerrcode, char **detail,
|
||||
char **hint, char **schema_name, char **table_name, char **column_name,
|
||||
char **datatype_name, char **constraint_name);
|
||||
char **hint, char **schema_name, char **table_name, char **column_name,
|
||||
char **datatype_name, char **constraint_name);
|
||||
static char *get_source_line(const char *src, int lineno);
|
||||
|
||||
static void get_string_attr(PyObject *obj, char *attrname, char **str);
|
||||
|
@ -37,7 +37,7 @@ extern void PLy_elog_impl(int elevel, const char *fmt,...) pg_attribute_printf(2
|
||||
extern void PLy_exception_set(PyObject *exc, const char *fmt,...) pg_attribute_printf(2, 3);
|
||||
|
||||
extern void PLy_exception_set_plural(PyObject *exc, const char *fmt_singular, const char *fmt_plural,
|
||||
unsigned long n,...) pg_attribute_printf(2, 5) pg_attribute_printf(3, 5);
|
||||
unsigned long n,...) pg_attribute_printf(2, 5) pg_attribute_printf(3, 5);
|
||||
|
||||
extern void PLy_exception_set_with_details(PyObject *excclass, ErrorData *edata);
|
||||
|
||||
|
@ -45,9 +45,9 @@ static void plpython_srf_cleanup_callback(void *arg);
|
||||
static void plpython_return_error_callback(void *arg);
|
||||
|
||||
static PyObject *PLy_trigger_build_args(FunctionCallInfo fcinfo, PLyProcedure *proc,
|
||||
HeapTuple *rv);
|
||||
HeapTuple *rv);
|
||||
static HeapTuple PLy_modify_tuple(PLyProcedure *proc, PyObject *pltd,
|
||||
TriggerData *tdata, HeapTuple otup);
|
||||
TriggerData *tdata, HeapTuple otup);
|
||||
static void plpython_trigger_error_callback(void *arg);
|
||||
|
||||
static PyObject *PLy_procedure_call(PLyProcedure *proc, const char *kargs, PyObject *vargs);
|
||||
|
@ -29,8 +29,8 @@ HTAB *PLy_spi_exceptions = NULL;
|
||||
|
||||
static void PLy_add_exceptions(PyObject *plpy);
|
||||
static PyObject *PLy_create_exception(char *name,
|
||||
PyObject *base, PyObject *dict,
|
||||
const char *modname, PyObject *mod);
|
||||
PyObject *base, PyObject *dict,
|
||||
const char *modname, PyObject *mod);
|
||||
static void PLy_generate_spi_exceptions(PyObject *mod, PyObject *base);
|
||||
|
||||
/* module functions */
|
||||
@ -298,7 +298,7 @@ PLy_generate_spi_exceptions(PyObject *mod, PyObject *base)
|
||||
* don't confuse these with PLy_elog
|
||||
*/
|
||||
static PyObject *PLy_output(volatile int level, PyObject *self,
|
||||
PyObject *args, PyObject *kw);
|
||||
PyObject *args, PyObject *kw);
|
||||
|
||||
static PyObject *
|
||||
PLy_debug(PyObject *self, PyObject *args, PyObject *kw)
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
static PyObject *PLy_spi_execute_query(char *query, long limit);
|
||||
static PyObject *PLy_spi_execute_fetch_result(SPITupleTable *tuptable,
|
||||
uint64 rows, int status);
|
||||
uint64 rows, int status);
|
||||
static void PLy_spi_exception_set(PyObject *excclass, ErrorData *edata);
|
||||
|
||||
|
||||
|
@ -39,28 +39,28 @@ static PyObject *PLyString_FromScalar(PLyDatumToOb *arg, Datum d);
|
||||
static PyObject *PLyObject_FromTransform(PLyDatumToOb *arg, Datum d);
|
||||
static PyObject *PLyList_FromArray(PLyDatumToOb *arg, Datum d);
|
||||
static PyObject *PLyList_FromArray_recurse(PLyDatumToOb *elm, int *dims, int ndim, int dim,
|
||||
char **dataptr_p, bits8 **bitmap_p, int *bitmask_p);
|
||||
char **dataptr_p, bits8 **bitmap_p, int *bitmask_p);
|
||||
static PyObject *PLyDict_FromComposite(PLyDatumToOb *arg, Datum d);
|
||||
static PyObject *PLyDict_FromTuple(PLyDatumToOb *arg, HeapTuple tuple, TupleDesc desc, bool include_generated);
|
||||
|
||||
/* conversion from Python objects to Datums */
|
||||
static Datum PLyObject_ToBool(PLyObToDatum *arg, PyObject *plrv,
|
||||
bool *isnull, bool inarray);
|
||||
bool *isnull, bool inarray);
|
||||
static Datum PLyObject_ToBytea(PLyObToDatum *arg, PyObject *plrv,
|
||||
bool *isnull, bool inarray);
|
||||
bool *isnull, bool inarray);
|
||||
static Datum PLyObject_ToComposite(PLyObToDatum *arg, PyObject *plrv,
|
||||
bool *isnull, bool inarray);
|
||||
bool *isnull, bool inarray);
|
||||
static Datum PLyObject_ToScalar(PLyObToDatum *arg, PyObject *plrv,
|
||||
bool *isnull, bool inarray);
|
||||
bool *isnull, bool inarray);
|
||||
static Datum PLyObject_ToDomain(PLyObToDatum *arg, PyObject *plrv,
|
||||
bool *isnull, bool inarray);
|
||||
bool *isnull, bool inarray);
|
||||
static Datum PLyObject_ToTransform(PLyObToDatum *arg, PyObject *plrv,
|
||||
bool *isnull, bool inarray);
|
||||
bool *isnull, bool inarray);
|
||||
static Datum PLySequence_ToArray(PLyObToDatum *arg, PyObject *plrv,
|
||||
bool *isnull, bool inarray);
|
||||
bool *isnull, bool inarray);
|
||||
static void PLySequence_ToArray_recurse(PLyObToDatum *elm, PyObject *list,
|
||||
int *dims, int ndim, int dim,
|
||||
Datum *elems, bool *nulls, int *currelem);
|
||||
int *dims, int ndim, int dim,
|
||||
Datum *elems, bool *nulls, int *currelem);
|
||||
|
||||
/* conversion from Python objects to composite Datums */
|
||||
static Datum PLyString_ToComposite(PLyObToDatum *arg, PyObject *string, bool inarray);
|
||||
|
@ -148,25 +148,25 @@ struct PLyObToDatum
|
||||
|
||||
extern PyObject *PLy_input_convert(PLyDatumToOb *arg, Datum val);
|
||||
extern Datum PLy_output_convert(PLyObToDatum *arg, PyObject *val,
|
||||
bool *isnull);
|
||||
bool *isnull);
|
||||
|
||||
extern PyObject *PLy_input_from_tuple(PLyDatumToOb *arg, HeapTuple tuple,
|
||||
TupleDesc desc, bool include_generated);
|
||||
TupleDesc desc, bool include_generated);
|
||||
|
||||
extern void PLy_input_setup_func(PLyDatumToOb *arg, MemoryContext arg_mcxt,
|
||||
Oid typeOid, int32 typmod,
|
||||
struct PLyProcedure *proc);
|
||||
Oid typeOid, int32 typmod,
|
||||
struct PLyProcedure *proc);
|
||||
extern void PLy_output_setup_func(PLyObToDatum *arg, MemoryContext arg_mcxt,
|
||||
Oid typeOid, int32 typmod,
|
||||
struct PLyProcedure *proc);
|
||||
Oid typeOid, int32 typmod,
|
||||
struct PLyProcedure *proc);
|
||||
|
||||
extern void PLy_input_setup_tuple(PLyDatumToOb *arg, TupleDesc desc,
|
||||
struct PLyProcedure *proc);
|
||||
struct PLyProcedure *proc);
|
||||
extern void PLy_output_setup_tuple(PLyObToDatum *arg, TupleDesc desc,
|
||||
struct PLyProcedure *proc);
|
||||
struct PLyProcedure *proc);
|
||||
|
||||
extern void PLy_output_setup_record(PLyObToDatum *arg, TupleDesc desc,
|
||||
struct PLyProcedure *proc);
|
||||
struct PLyProcedure *proc);
|
||||
|
||||
/* conversion from Python objects to C strings --- exported for transforms */
|
||||
extern char *PLyObject_AsString(PyObject *plrv);
|
||||
|
Reference in New Issue
Block a user