Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f94aea9

Browse files
committed
Add comment on palloc use and DLLIMPORT>
1 parent 704ff0b commit f94aea9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/port/dirmod.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Win32 (NT, Win2k, XP). replace() doesn't work on Win95/98/Me.
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/port/dirmod.c,v 1.18 2004/08/08 06:44:36 momjian Exp $
13+
* $PostgreSQL: pgsql/src/port/dirmod.c,v 1.19 2004/08/29 01:44:02 momjian Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -39,6 +39,10 @@
3939
#undef unlink
4040

4141
#ifndef FRONTEND
42+
/*
43+
* Call non-macro versions of palloc, can't reference CurrentMemoryContext
44+
* because of DLLIMPORT.
45+
*/
4246
#define palloc(sz) pgport_palloc(sz)
4347
#define pstrdup(str) pgport_pstrdup(str)
4448
#define pfree(pointer) pgport_pfree(pointer)

0 commit comments

Comments
 (0)