diff options
author | Bruce Momjian <bruce@momjian.us> | 2008-06-18 18:42:54 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2008-06-18 18:42:54 +0000 |
commit | 9de09c087d63b13b54a0db1073477d70188823c5 (patch) | |
tree | a899a5d3cebebdd02f10a67ae1e2883144a5416b /src/include/utils/palloc.h | |
parent | 3eb9da524ddb85c213108e5aeadc6e8b18f6875f (diff) |
Move wchar2char() and char2wchar() from tsearch into /mb to be easier to
use for other modules; also move pnstrdup().
Clean up code slightly.
Diffstat (limited to 'src/include/utils/palloc.h')
-rw-r--r-- | src/include/utils/palloc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/utils/palloc.h b/src/include/utils/palloc.h index a3e78580f86..7e3c085a7aa 100644 --- a/src/include/utils/palloc.h +++ b/src/include/utils/palloc.h @@ -21,7 +21,7 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/palloc.h,v 1.38 2008/01/01 19:45:59 momjian Exp $ + * $PostgreSQL: pgsql/src/include/utils/palloc.h,v 1.39 2008/06/18 18:42:54 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -70,6 +70,8 @@ extern void pfree(void *pointer); extern void *repalloc(void *pointer, Size size); +extern char *pnstrdup(const char *in, int len); + /* * MemoryContextSwitchTo can't be a macro in standard C compilers. * But we can make it an inline function when using GCC. |