Author: iratqq
Date: Tue Jan 6 08:29:43 2009
New Revision: 5705
Modified:
trunk/emacs/commit.c
trunk/emacs/commit.h
trunk/emacs/uim-el-helper-agent.c
Log:
* emacs/commit.h:
- Include uim/uim.h
* emacs/commit.c (add_commit_string):
* emacs/uim-el-helper-agent.c (read_command):
- Use uim_realloc().
Modified: trunk/emacs/commit.c
==============================================================================
--- trunk/emacs/commit.c (original)
+++ trunk/emacs/commit.c Tue Jan 6 08:29:43 2009
@@ -52,7 +52,7 @@
"add_commit_string comstr: len:%d (%p)\n",
buflen + strlen(str) + 1, comstr);
- comstr = (char *)realloc(comstr, buflen + strlen(str) + 1);
+ comstr = uim_realloc(comstr, buflen + strlen(str) + 1);
comstr[buflen] = '\0';
debug_printf(DEBUG_NOTE,
Modified: trunk/emacs/commit.h
==============================================================================
--- trunk/emacs/commit.h (original)
+++ trunk/emacs/commit.h Tue Jan 6 08:29:43 2009
@@ -41,6 +41,8 @@
#include <stdlib.h>
+#include <uim/uim.h>
+
#include "output.h"
char *add_commit_string(char *comstr, const char *str);
Modified: trunk/emacs/uim-el-helper-agent.c
==============================================================================
--- trunk/emacs/uim-el-helper-agent.c (original)
+++ trunk/emacs/uim-el-helper-agent.c Tue Jan 6 08:29:43 2009
@@ -213,7 +213,7 @@
if (strlen(cmdbuf) + len + 1 > cmdbuf_len) {
cmdbuf_len += DEFAULT_MESSAGE_SIZE;
- cmdbuf = (char *)realloc(cmdbuf, cmdbuf_len);
+ cmdbuf = uim_realloc(cmdbuf, cmdbuf_len);
debug_printf(DEBUG_NOTE, "cmdbuf has extended\n");
}