Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf9de1e9

Browse files
committed
PL/Python: Add argument names to function declarations
For easier source reading
1 parenta671d94 commitf9de1e9

20 files changed

+106
-106
lines changed

‎src/pl/plpython/plpy_cursorobject.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
#include"plpy_spi.h"
2121

2222

23-
staticPyObject*PLy_cursor_query(constchar*);
24-
staticPyObject*PLy_cursor_plan(PyObject*,PyObject*);
25-
staticvoidPLy_cursor_dealloc(PyObject*);
26-
staticPyObject*PLy_cursor_iternext(PyObject*);
27-
staticPyObject*PLy_cursor_fetch(PyObject*,PyObject*);
28-
staticPyObject*PLy_cursor_close(PyObject*,PyObject*);
23+
staticPyObject*PLy_cursor_query(constchar*query);
24+
staticPyObject*PLy_cursor_plan(PyObject*ob,PyObject*args);
25+
staticvoidPLy_cursor_dealloc(PyObject*arg);
26+
staticPyObject*PLy_cursor_iternext(PyObject*self);
27+
staticPyObject*PLy_cursor_fetch(PyObject*self,PyObject*args);
28+
staticPyObject*PLy_cursor_close(PyObject*self,PyObject*unused);
2929

3030
staticcharPLy_cursor_doc[]= {
3131
"Wrapper around a PostgreSQL cursor"

‎src/pl/plpython/plpy_cursorobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ typedef struct PLyCursorObject
1717
}PLyCursorObject;
1818

1919
externvoidPLy_cursor_init_type(void);
20-
externPyObject*PLy_cursor(PyObject*,PyObject*);
20+
externPyObject*PLy_cursor(PyObject*self,PyObject*args);
2121

2222
#endif/* PLPY_CURSOROBJECT_H */

‎src/pl/plpython/plpy_elog.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ PyObject *PLy_exc_fatal = NULL;
2020
PyObject*PLy_exc_spi_error=NULL;
2121

2222

23-
staticvoidPLy_traceback(char**,char**,int*);
24-
staticvoidPLy_get_spi_error_data(PyObject*,int*,char**,
25-
char**,char**,int*);
26-
staticchar*get_source_line(constchar*,int);
23+
staticvoidPLy_traceback(char**xmsg,char**tbmsg,int*tb_depth);
24+
staticvoidPLy_get_spi_error_data(PyObject*exc,int*sqlerrcode,char**detail,
25+
char**hint,char**query,int*position);
26+
staticchar*get_source_line(constchar*src,intlineno);
2727

2828

2929
/*

‎src/pl/plpython/plpy_elog.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ extern PyObject *PLy_exc_error;
1010
externPyObject*PLy_exc_fatal;
1111
externPyObject*PLy_exc_spi_error;
1212

13-
externvoidPLy_elog(int,constchar*,...)
13+
externvoidPLy_elog(intelevel,constchar*fmt,...)
1414
__attribute__((format(PG_PRINTF_ATTRIBUTE,2,3)));
1515

16-
externvoidPLy_exception_set(PyObject*,constchar*,...)
16+
externvoidPLy_exception_set(PyObject*exc,constchar*fmt,...)
1717
__attribute__((format(PG_PRINTF_ATTRIBUTE,2,3)));
1818

19-
externvoidPLy_exception_set_plural(PyObject*,constchar*,constchar*,
19+
externvoidPLy_exception_set_plural(PyObject*exc,constchar*fmt_singular,constchar*fmt_plural,
2020
unsigned longn,...)
2121
__attribute__((format(PG_PRINTF_ATTRIBUTE,2,5)))
2222
__attribute__((format(PG_PRINTF_ATTRIBUTE,3,5)));

‎src/pl/plpython/plpy_exec.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@
2525
#include"plpy_subxactobject.h"
2626

2727

28-
staticPyObject*PLy_function_build_args(FunctionCallInfo,PLyProcedure*);
29-
staticvoidPLy_function_delete_args(PLyProcedure*);
30-
staticvoidplpython_return_error_callback(void*);
31-
32-
staticPyObject*PLy_trigger_build_args(FunctionCallInfo,PLyProcedure*,
33-
HeapTuple*);
34-
staticHeapTuplePLy_modify_tuple(PLyProcedure*,PyObject*,
35-
TriggerData*,HeapTuple);
36-
staticvoidplpython_trigger_error_callback(void*);
37-
38-
staticPyObject*PLy_procedure_call(PLyProcedure*,char*,PyObject*);
39-
staticvoidPLy_abort_open_subtransactions(int);
28+
staticPyObject*PLy_function_build_args(FunctionCallInfofcinfo,PLyProcedure*proc);
29+
staticvoidPLy_function_delete_args(PLyProcedure*proc);
30+
staticvoidplpython_return_error_callback(void*arg);
31+
32+
staticPyObject*PLy_trigger_build_args(FunctionCallInfofcinfo,PLyProcedure*proc,
33+
HeapTuple*rv);
34+
staticHeapTuplePLy_modify_tuple(PLyProcedure*proc,PyObject*pltd,
35+
TriggerData*tdata,HeapTupleotup);
36+
staticvoidplpython_trigger_error_callback(void*arg);
37+
38+
staticPyObject*PLy_procedure_call(PLyProcedure*proc,char*kargs,PyObject*vargs);
39+
staticvoidPLy_abort_open_subtransactions(intsave_subxact_level);
4040

4141

4242
/* function subhandler */

‎src/pl/plpython/plpy_exec.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#include"plpy_procedure.h"
99

10-
externDatumPLy_exec_function(FunctionCallInfo,PLyProcedure*);
11-
externHeapTuplePLy_exec_trigger(FunctionCallInfo,PLyProcedure*);
10+
externDatumPLy_exec_function(FunctionCallInfofcinfo,PLyProcedure*proc);
11+
externHeapTuplePLy_exec_trigger(FunctionCallInfofcinfo,PLyProcedure*proc);
1212

1313
#endif/* PLPY_EXEC_H */

‎src/pl/plpython/plpy_main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ PG_FUNCTION_INFO_V1(plpython2_inline_handler);
6161
#endif
6262

6363

64-
staticboolPLy_procedure_is_trigger(Form_pg_proc);
65-
staticvoidplpython_error_callback(void*);
66-
staticvoidplpython_inline_error_callback(void*);
64+
staticboolPLy_procedure_is_trigger(Form_pg_procprocStruct);
65+
staticvoidplpython_error_callback(void*arg);
66+
staticvoidplpython_inline_error_callback(void*arg);
6767
staticvoidPLy_init_interp(void);
6868

6969
staticconstintplpython_python_version=PY_MAJOR_VERSION;

‎src/pl/plpython/plpy_planobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
#include"plpy_elog.h"
1414

1515

16-
staticvoidPLy_plan_dealloc(PyObject*);
17-
staticPyObject*PLy_plan_status(PyObject*,PyObject*);
16+
staticvoidPLy_plan_dealloc(PyObject*arg);
17+
staticPyObject*PLy_plan_status(PyObject*self,PyObject*args);
1818

1919
staticcharPLy_plan_doc[]= {
2020
"Store a PostgreSQL plan"

‎src/pl/plpython/plpy_planobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ typedef struct PLyPlanObject
2121

2222
externvoidPLy_plan_init_type(void);
2323
externPyObject*PLy_plan_new(void);
24-
externboolis_PLyPlanObject(PyObject*);
24+
externboolis_PLyPlanObject(PyObject*ob);
2525

2626
#endif/* PLPY_PLANOBJECT_H */

‎src/pl/plpython/plpy_plpymodule.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@
2424
HTAB*PLy_spi_exceptions=NULL;
2525

2626

27-
staticvoidPLy_add_exceptions(PyObject*);
28-
staticvoidPLy_generate_spi_exceptions(PyObject*,PyObject*);
27+
staticvoidPLy_add_exceptions(PyObject*plpy);
28+
staticvoidPLy_generate_spi_exceptions(PyObject*mod,PyObject*base);
2929

3030
/* module functions */
31-
staticPyObject*PLy_debug(PyObject*,PyObject*);
32-
staticPyObject*PLy_log(PyObject*,PyObject*);
33-
staticPyObject*PLy_info(PyObject*,PyObject*);
34-
staticPyObject*PLy_notice(PyObject*,PyObject*);
35-
staticPyObject*PLy_warning(PyObject*,PyObject*);
36-
staticPyObject*PLy_error(PyObject*,PyObject*);
37-
staticPyObject*PLy_fatal(PyObject*,PyObject*);
38-
staticPyObject*PLy_quote_literal(PyObject*,PyObject*);
39-
staticPyObject*PLy_quote_nullable(PyObject*,PyObject*);
40-
staticPyObject*PLy_quote_ident(PyObject*,PyObject*);
31+
staticPyObject*PLy_debug(PyObject*self,PyObject*args);
32+
staticPyObject*PLy_log(PyObject*self,PyObject*args);
33+
staticPyObject*PLy_info(PyObject*self,PyObject*args);
34+
staticPyObject*PLy_notice(PyObject*self,PyObject*args);
35+
staticPyObject*PLy_warning(PyObject*self,PyObject*args);
36+
staticPyObject*PLy_error(PyObject*self,PyObject*args);
37+
staticPyObject*PLy_fatal(PyObject*self,PyObject*args);
38+
staticPyObject*PLy_quote_literal(PyObject*self,PyObject*args);
39+
staticPyObject*PLy_quote_nullable(PyObject*self,PyObject*args);
40+
staticPyObject*PLy_quote_ident(PyObject*self,PyObject*args);
4141

4242

4343
/* A list of all known exceptions, generated from backend/utils/errcodes.txt */

‎src/pl/plpython/plpy_procedure.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ PLyProcedure *PLy_curr_procedure = NULL;
2828
staticHTAB*PLy_procedure_cache=NULL;
2929
staticHTAB*PLy_trigger_cache=NULL;
3030

31-
staticPLyProcedure*PLy_procedure_create(HeapTuple,Oid,bool);
32-
staticboolPLy_procedure_argument_valid(PLyTypeInfo*);
33-
staticboolPLy_procedure_valid(PLyProcedure*,HeapTupleprocTup);
34-
staticchar*PLy_procedure_munge_source(constchar*,constchar*);
31+
staticPLyProcedure*PLy_procedure_create(HeapTupleprocTup,Oidfn_oid,boolis_trigger);
32+
staticboolPLy_procedure_argument_valid(PLyTypeInfo*arg);
33+
staticboolPLy_procedure_valid(PLyProcedure*proc,HeapTupleprocTup);
34+
staticchar*PLy_procedure_munge_source(constchar*name,constchar*src);
3535

3636

3737
void

‎src/pl/plpython/plpy_procedure.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ typedef struct PLyProcedureEntry
4040
}PLyProcedureEntry;
4141

4242
/* PLyProcedure manipulation */
43-
externchar*PLy_procedure_name(PLyProcedure*);
44-
externPLyProcedure*PLy_procedure_get(Oid,bool);
45-
externvoidPLy_procedure_compile(PLyProcedure*,constchar*);
46-
externvoidPLy_procedure_delete(PLyProcedure*);
43+
externchar*PLy_procedure_name(PLyProcedure*proc);
44+
externPLyProcedure*PLy_procedure_get(Oidfn_oid,boolis_trigger);
45+
externvoidPLy_procedure_compile(PLyProcedure*proc,constchar*src);
46+
externvoidPLy_procedure_delete(PLyProcedure*proc);
4747

4848

4949
/* currently active plpython function */

‎src/pl/plpython/plpy_resultobject.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
#include"plpy_resultobject.h"
1212

1313

14-
staticvoidPLy_result_dealloc(PyObject*);
15-
staticPyObject*PLy_result_nrows(PyObject*,PyObject*);
16-
staticPyObject*PLy_result_status(PyObject*,PyObject*);
17-
staticPy_ssize_tPLy_result_length(PyObject*);
18-
staticPyObject*PLy_result_item(PyObject*,Py_ssize_t);
19-
staticPyObject*PLy_result_slice(PyObject*,Py_ssize_t,Py_ssize_t);
20-
staticintPLy_result_ass_item(PyObject*,Py_ssize_t,PyObject*);
21-
staticintPLy_result_ass_slice(PyObject*,Py_ssize_t,Py_ssize_t,PyObject*);
14+
staticvoidPLy_result_dealloc(PyObject*arg);
15+
staticPyObject*PLy_result_nrows(PyObject*self,PyObject*args);
16+
staticPyObject*PLy_result_status(PyObject*self,PyObject*args);
17+
staticPy_ssize_tPLy_result_length(PyObject*arg);
18+
staticPyObject*PLy_result_item(PyObject*arg,Py_ssize_tidx);
19+
staticPyObject*PLy_result_slice(PyObject*arg,Py_ssize_tlidx,Py_ssize_thidx);
20+
staticintPLy_result_ass_item(PyObject*arg,Py_ssize_tidx,PyObject*item);
21+
staticintPLy_result_ass_slice(PyObject*rg,Py_ssize_tlidx,Py_ssize_thidx,PyObject*slice);
2222

2323
staticcharPLy_result_doc[]= {
2424
"Results of a PostgreSQL query"

‎src/pl/plpython/plpy_spi.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
#include"plpy_resultobject.h"
2525

2626

27-
staticPyObject*PLy_spi_execute_query(char*,long );
28-
staticPyObject*PLy_spi_execute_plan(PyObject*,PyObject*,long);
29-
staticPyObject*PLy_spi_execute_fetch_result(SPITupleTable*,int,int);
30-
staticvoidPLy_spi_exception_set(PyObject*,ErrorData*);
27+
staticPyObject*PLy_spi_execute_query(char*query,longlimit);
28+
staticPyObject*PLy_spi_execute_plan(PyObject*ob,PyObject*list,longlimit);
29+
staticPyObject*PLy_spi_execute_fetch_result(SPITupleTable*tuptable,introws,intstatus);
30+
staticvoidPLy_spi_exception_set(PyObject*excclass,ErrorData*edata);
3131

3232

3333
/* prepare(query="select * from foo")

‎src/pl/plpython/plpy_spi.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
#include"utils/palloc.h"
99
#include"utils/resowner.h"
1010

11-
externPyObject*PLy_spi_prepare(PyObject*,PyObject*);
12-
externPyObject*PLy_spi_execute(PyObject*,PyObject*);
11+
externPyObject*PLy_spi_prepare(PyObject*self,PyObject*args);
12+
externPyObject*PLy_spi_execute(PyObject*self,PyObject*args);
1313

1414
typedefstructPLyExceptionEntry
1515
{

‎src/pl/plpython/plpy_subxactobject.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
List*explicit_subtransactions=NIL;
2020

2121

22-
staticvoidPLy_subtransaction_dealloc(PyObject*);
23-
staticPyObject*PLy_subtransaction_enter(PyObject*,PyObject*);
24-
staticPyObject*PLy_subtransaction_exit(PyObject*,PyObject*);
22+
staticvoidPLy_subtransaction_dealloc(PyObject*subxact);
23+
staticPyObject*PLy_subtransaction_enter(PyObject*self,PyObject*unused);
24+
staticPyObject*PLy_subtransaction_exit(PyObject*self,PyObject*args);
2525

2626
staticcharPLy_subtransaction_doc[]= {
2727
"PostgreSQL subtransaction context manager"

‎src/pl/plpython/plpy_subxactobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ typedef struct PLySubtransactionData
2424
}PLySubtransactionData;
2525

2626
externvoidPLy_subtransaction_init_type(void);
27-
externPyObject*PLy_subtransaction_new(PyObject*,PyObject*);
27+
externPyObject*PLy_subtransaction_new(PyObject*self,PyObject*unused);
2828

2929
#endif/* PLPY_SUBXACTOBJECT */

‎src/pl/plpython/plpy_typeio.c

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -26,35 +26,35 @@
2626

2727

2828
/* I/O function caching */
29-
staticvoidPLy_input_datum_func2(PLyDatumToOb*,Oid,HeapTuple);
30-
staticvoidPLy_output_datum_func2(PLyObToDatum*,HeapTuple);
29+
staticvoidPLy_input_datum_func2(PLyDatumToOb*arg,OidtypeOid,HeapTupletypeTup);
30+
staticvoidPLy_output_datum_func2(PLyObToDatum*arg,HeapTupletypeTup);
3131

3232
/* conversion from Datums to Python objects */
33-
staticPyObject*PLyBool_FromBool(PLyDatumToOb*,Datum);
34-
staticPyObject*PLyFloat_FromFloat4(PLyDatumToOb*,Datum);
35-
staticPyObject*PLyFloat_FromFloat8(PLyDatumToOb*,Datum);
36-
staticPyObject*PLyFloat_FromNumeric(PLyDatumToOb*,Datum);
37-
staticPyObject*PLyInt_FromInt16(PLyDatumToOb*,Datum);
38-
staticPyObject*PLyInt_FromInt32(PLyDatumToOb*,Datum);
39-
staticPyObject*PLyLong_FromInt64(PLyDatumToOb*,Datum);
40-
staticPyObject*PLyBytes_FromBytea(PLyDatumToOb*,Datum);
41-
staticPyObject*PLyString_FromDatum(PLyDatumToOb*,Datum);
42-
staticPyObject*PLyList_FromArray(PLyDatumToOb*,Datum);
33+
staticPyObject*PLyBool_FromBool(PLyDatumToOb*arg,Datumd);
34+
staticPyObject*PLyFloat_FromFloat4(PLyDatumToOb*arg,Datumd);
35+
staticPyObject*PLyFloat_FromFloat8(PLyDatumToOb*arg,Datumd);
36+
staticPyObject*PLyFloat_FromNumeric(PLyDatumToOb*arg,Datumd);
37+
staticPyObject*PLyInt_FromInt16(PLyDatumToOb*arg,Datumd);
38+
staticPyObject*PLyInt_FromInt32(PLyDatumToOb*arg,Datumd);
39+
staticPyObject*PLyLong_FromInt64(PLyDatumToOb*arg,Datumd);
40+
staticPyObject*PLyBytes_FromBytea(PLyDatumToOb*arg,Datumd);
41+
staticPyObject*PLyString_FromDatum(PLyDatumToOb*arg,Datumd);
42+
staticPyObject*PLyList_FromArray(PLyDatumToOb*arg,Datumd);
4343

4444
/* conversion from Python objects to Datums */
45-
staticDatumPLyObject_ToBool(PLyObToDatum*,int32,PyObject*);
46-
staticDatumPLyObject_ToBytea(PLyObToDatum*,int32,PyObject*);
47-
staticDatumPLyObject_ToComposite(PLyObToDatum*,int32,PyObject*);
48-
staticDatumPLyObject_ToDatum(PLyObToDatum*,int32,PyObject*);
49-
staticDatumPLySequence_ToArray(PLyObToDatum*,int32,PyObject*);
45+
staticDatumPLyObject_ToBool(PLyObToDatum*arg,int32typmod,PyObject*plrv);
46+
staticDatumPLyObject_ToBytea(PLyObToDatum*arg,int32typmod,PyObject*plrv);
47+
staticDatumPLyObject_ToComposite(PLyObToDatum*arg,int32typmod,PyObject*plrv);
48+
staticDatumPLyObject_ToDatum(PLyObToDatum*arg,int32typmod,PyObject*plrv);
49+
staticDatumPLySequence_ToArray(PLyObToDatum*arg,int32typmod,PyObject*plrv);
5050

5151
/* conversion from Python objects to heap tuples (used by triggers and SRFs) */
52-
staticHeapTuplePLyMapping_ToTuple(PLyTypeInfo*,TupleDesc,PyObject*);
53-
staticHeapTuplePLySequence_ToTuple(PLyTypeInfo*,TupleDesc,PyObject*);
54-
staticHeapTuplePLyGenericObject_ToTuple(PLyTypeInfo*,TupleDesc,PyObject*);
52+
staticHeapTuplePLyMapping_ToTuple(PLyTypeInfo*info,TupleDescdesc,PyObject*mapping);
53+
staticHeapTuplePLySequence_ToTuple(PLyTypeInfo*info,TupleDescdesc,PyObject*sequence);
54+
staticHeapTuplePLyGenericObject_ToTuple(PLyTypeInfo*info,TupleDescdesc,PyObject*object);
5555

5656
/* make allocations in the TopMemoryContext */
57-
staticvoidperm_fmgr_info(Oid,FmgrInfo*);
57+
staticvoidperm_fmgr_info(OidfunctionId,FmgrInfo*finfo);
5858

5959
void
6060
PLy_typeinfo_init(PLyTypeInfo*arg)

‎src/pl/plpython/plpy_typeio.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,21 +87,21 @@ typedef struct PLyTypeInfo
8787
ItemPointerDatatyprel_tid;
8888
}PLyTypeInfo;
8989

90-
externvoidPLy_typeinfo_init(PLyTypeInfo*);
91-
externvoidPLy_typeinfo_dealloc(PLyTypeInfo*);
90+
externvoidPLy_typeinfo_init(PLyTypeInfo*arg);
91+
externvoidPLy_typeinfo_dealloc(PLyTypeInfo*arg);
9292

93-
externvoidPLy_input_datum_func(PLyTypeInfo*,Oid,HeapTuple);
94-
externvoidPLy_output_datum_func(PLyTypeInfo*,HeapTuple);
93+
externvoidPLy_input_datum_func(PLyTypeInfo*arg,OidtypeOid,HeapTupletypeTup);
94+
externvoidPLy_output_datum_func(PLyTypeInfo*arg,HeapTupletypeTup);
9595

96-
externvoidPLy_input_tuple_funcs(PLyTypeInfo*,TupleDesc);
97-
externvoidPLy_output_tuple_funcs(PLyTypeInfo*,TupleDesc);
96+
externvoidPLy_input_tuple_funcs(PLyTypeInfo*arg,TupleDescdesc);
97+
externvoidPLy_output_tuple_funcs(PLyTypeInfo*arg,TupleDescdesc);
9898

99-
externvoidPLy_output_record_funcs(PLyTypeInfo*,TupleDesc);
99+
externvoidPLy_output_record_funcs(PLyTypeInfo*arg,TupleDescdesc);
100100

101101
/* conversion from Python objects to heap tuples */
102-
externHeapTuplePLyObject_ToTuple(PLyTypeInfo*,TupleDesc,PyObject*);
102+
externHeapTuplePLyObject_ToTuple(PLyTypeInfo*info,TupleDescdesc,PyObject*plrv);
103103

104104
/* conversion from heap tuples to Python dictionaries */
105-
externPyObject*PLyDict_FromTuple(PLyTypeInfo*,HeapTuple,TupleDesc);
105+
externPyObject*PLyDict_FromTuple(PLyTypeInfo*info,HeapTupletuple,TupleDescdesc);
106106

107107
#endif/* PLPY_TYPEIO_H */

‎src/pl/plpython/plpy_util.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
#ifndefPLPY_UTIL_H
77
#definePLPY_UTIL_H
88

9-
externvoid*PLy_malloc(size_t);
10-
externvoid*PLy_malloc0(size_t);
11-
externchar*PLy_strdup(constchar*);
12-
externvoidPLy_free(void*);
9+
externvoid*PLy_malloc(size_tbytes);
10+
externvoid*PLy_malloc0(size_tbytes);
11+
externchar*PLy_strdup(constchar*str);
12+
externvoidPLy_free(void*ptr);
1313

1414
externPyObject*PLyUnicode_Bytes(PyObject*unicode);
1515
externchar*PLyUnicode_AsString(PyObject*unicode);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp