[uim-commit] r235 - trunk/uim
tkng@freedesktop.org
tkng@freedesktop.org
Mon Jan 10 15:10:00 PST 2005
Author: tkng
Date: 2005-01-10 15:09:57 -0800 (Mon, 10 Jan 2005)
New Revision: 235
Modified:
trunk/uim/prime.c
trunk/uim/uim-ipc.c
trunk/uim/uim.h
Log:
* uim/uim.h, uim/uim-ipc.c:
-(uim_ipc_open_command): Added const qualifier.
-(uim_ipc_send_command): Added const qualifier.
* uim/prime.c: Added const qualifiers.
Modified: trunk/uim/prime.c
===================================================================
--- trunk/uim/prime.c 2005-01-10 23:07:48 UTC (rev 234)
+++ trunk/uim/prime.c 2005-01-10 23:09:57 UTC (rev 235)
@@ -47,7 +47,7 @@
static uim_lisp
prime_send_command(uim_lisp str_)
{
- char *str = uim_scm_c_str( str_ );
+ const char *str = uim_scm_refer_c_str(str_);
char *result;
uim_lisp ret;
Modified: trunk/uim/uim-ipc.c
===================================================================
--- trunk/uim/uim-ipc.c 2005-01-10 23:07:48 UTC (rev 234)
+++ trunk/uim/uim-ipc.c 2005-01-10 23:09:57 UTC (rev 235)
@@ -1,7 +1,9 @@
/*
- Copyright (c) 2003,2004 uim Project http://uim.freedesktop.org/
+ uim-ipc.c: Utility functions for inter process communication.
+ Copyright (c) 2003-2005 uim Project http://uim.freedesktop.org/
+
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -141,7 +143,7 @@
int
uim_ipc_open_command(int old_pid, FILE **read_fp,
- FILE **write_fp, char *command)
+ FILE **write_fp, const char *command)
{
int new_pid, result;
@@ -190,7 +192,7 @@
char *
uim_ipc_send_command(int *pid,
FILE **read_fp, FILE **write_fp,
- char *command, char *str)
+ const char *command, const char *str)
{
char *tmp = strdup("");
char buf[8192];
Modified: trunk/uim/uim.h
===================================================================
--- trunk/uim/uim.h 2005-01-10 23:07:48 UTC (rev 234)
+++ trunk/uim/uim.h 2005-01-10 23:09:57 UTC (rev 235)
@@ -567,10 +567,10 @@
/* Utility functions */
int
-uim_ipc_open_command(int old_pid, FILE **read_handler, FILE **write_handler, char *command);
+uim_ipc_open_command(int old_pid, FILE **read_handler, FILE **write_handler, const char *command);
char *
uim_ipc_send_command(int *pid, FILE **read_handler,
- FILE **write_handler, char *command, char *str);
+ FILE **write_handler, const char *command, const char *str);
/* will be deprecated. use custom API (uim-custom.h) instead */
char *uim_symbol_value_str(const char *symbol_str);
More information about the Uim-commit
mailing list