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

Lines changed: 5 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy