Content-Length: 275155 | pFad | http://github.com/postgrespro/postgres/commit/f94aea9c10f43cc3ccf99df2e1e80c89a36d683e

EA Add comment on palloc use and DLLIMPORT> · postgrespro/postgres@f94aea9 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/f94aea9c10f43cc3ccf99df2e1e80c89a36d683e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy