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

Commit989b7d6

Browse files
committed
Tweak plperl.c to compile against threaded Perls, per report from
cturner@redhat.com.
1 parent3f5d3ce commit989b7d6

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

‎src/pl/plperl/plperl.c

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* ENHANCEMENTS, OR MODIFICATIONS.
3434
*
3535
* IDENTIFICATION
36-
* $Header: /cvsroot/pgsql/src/pl/plperl/plperl.c,v 1.27 2002/01/2416:53:42 tgl Exp $
36+
* $Header: /cvsroot/pgsql/src/pl/plperl/plperl.c,v 1.28 2002/01/2421:40:44 tgl Exp $
3737
*
3838
**********************************************************************/
3939

@@ -80,8 +80,15 @@
8080

8181
#include"EXTERN.h"
8282
#include"perl.h"
83+
#include"XSUB.h"
8384
#include"ppport.h"
8485

86+
/* just in case these symbols aren't provided */
87+
#ifndefpTHX_
88+
#definepTHX_
89+
#definepTHX void
90+
#endif
91+
8592

8693
/**********************************************************************
8794
* The information we cache about loaded procedures
@@ -124,7 +131,7 @@ static Datum plperl_func_handler(PG_FUNCTION_ARGS);
124131
staticplperl_proc_desc*compile_plperl_function(Oidfn_oid,boolis_trigger);
125132

126133
staticSV*plperl_build_tuple_argument(HeapTupletuple,TupleDesctupdesc);
127-
staticvoidplperl_init_shared_libs(void);
134+
staticvoidplperl_init_shared_libs(pTHX);
128135

129136

130137
/*
@@ -350,11 +357,11 @@ plperl_create_sub(char *s, bool trusted)
350357
*
351358
**********************************************************************/
352359

353-
externvoidboot_DynaLoader_((CV*cv));
354-
externvoidboot_SPI_((CV*cv));
360+
EXTERN_Cvoidboot_DynaLoader(pTHX_CV*cv);
361+
EXTERN_Cvoidboot_SPI(pTHX_CV*cv);
355362

356363
staticvoid
357-
plperl_init_shared_libs(void)
364+
plperl_init_shared_libs(pTHX)
358365
{
359366
char*file=__FILE__;
360367

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp