public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-db/pgmecab/files: pgmecab-1.1-r3-postgres83.patch
@ 2008-11-15  0:03 Matsuu Takuto (matsuu)
  0 siblings, 0 replies; only message in thread
From: Matsuu Takuto (matsuu) @ 2008-11-15  0:03 UTC (permalink / raw
  To: gentoo-commits

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=utf8, Size: 1409 bytes --]

matsuu      08/11/15 00:03:50

  Added:                pgmecab-1.1-r3-postgres83.patch
  Log:
  Fixed to work with old versions, bug #239594.
  (Portage version: 2.2_rc13/cvs/Linux 2.6.27-gentoo x86_64)

Revision  Changes    Path
1.1                  dev-db/pgmecab/files/pgmecab-1.1-r3-postgres83.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/pgmecab/files/pgmecab-1.1-r3-postgres83.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/pgmecab/files/pgmecab-1.1-r3-postgres83.patch?rev=1.1&content-type=text/plain

Index: pgmecab-1.1-r3-postgres83.patch
===================================================================
--- pgmecab.c.orig	2008-10-05 13:24:34.000000000 +0200
+++ pgmecab.c	2008-10-05 13:25:17.000000000 +0200
@@ -24,7 +24,7 @@
 static Datum returnEmptyStr()
 {
 	text* emptyVal = (text*) palloc(VARHDRSZ);
-	VARATT_SIZEP(emptyVal) = VARHDRSZ;
+	SET_VARSIZE(emptyVal, VARHDRSZ);
 	PG_RETURN_TEXT_P(emptyVal);
 }
 
@@ -90,7 +90,7 @@
 	
 	/* ÊÖ¤¹¤¿¤á¤Î¥á¥â¥ê³ÎÊÝ */
 	text* return_val = (text *) palloc(VARHDRSZ + mecab_result_size * sizeof(char));
-	VARATT_SIZEP(return_val) = VARHDRSZ + mecab_result_size * sizeof(char);
+	SET_VARSIZE(return_val, VARHDRSZ + mecab_result_size * sizeof(char));
 	
 	/* ·ë²Ì¤ò¥³¥Ô¡¼ */
 	memcpy((void*)VARDATA(return_val), mecab_result, mecab_result_size);






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-11-15  0:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-15  0:03 [gentoo-commits] gentoo-x86 commit in dev-db/pgmecab/files: pgmecab-1.1-r3-postgres83.patch Matsuu Takuto (matsuu)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox