Make prefix argument const. (#91662, Gustavo Carneiro)

Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gcompletion.[ch] (g_completion_complete): Make
        prefix argument const. (#91662, Gustavo Carneiro)
This commit is contained in:
Owen Taylor 2002-10-14 19:38:30 +00:00 committed by Owen Taylor
parent 27dc698317
commit b47574aee6
9 changed files with 37 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Mon Oct 14 15:36:11 2002 Owen Taylor <otaylor@redhat.com>
* glib/gcompletion.[ch] (g_completion_complete): Make
prefix argument const. (#91662, Gustavo Carneiro)
Mon Oct 14 15:32:14 2002 Owen Taylor <otaylor@redhat.com> Mon Oct 14 15:32:14 2002 Owen Taylor <otaylor@redhat.com>
* tests/mainloop-test.c (adder_response): Fix a minor memory * tests/mainloop-test.c (adder_response): Fix a minor memory

View File

@ -1,3 +1,8 @@
Mon Oct 14 15:36:11 2002 Owen Taylor <otaylor@redhat.com>
* glib/gcompletion.[ch] (g_completion_complete): Make
prefix argument const. (#91662, Gustavo Carneiro)
Mon Oct 14 15:32:14 2002 Owen Taylor <otaylor@redhat.com> Mon Oct 14 15:32:14 2002 Owen Taylor <otaylor@redhat.com>
* tests/mainloop-test.c (adder_response): Fix a minor memory * tests/mainloop-test.c (adder_response): Fix a minor memory

View File

@ -1,3 +1,8 @@
Mon Oct 14 15:36:11 2002 Owen Taylor <otaylor@redhat.com>
* glib/gcompletion.[ch] (g_completion_complete): Make
prefix argument const. (#91662, Gustavo Carneiro)
Mon Oct 14 15:32:14 2002 Owen Taylor <otaylor@redhat.com> Mon Oct 14 15:32:14 2002 Owen Taylor <otaylor@redhat.com>
* tests/mainloop-test.c (adder_response): Fix a minor memory * tests/mainloop-test.c (adder_response): Fix a minor memory

View File

@ -1,3 +1,8 @@
Mon Oct 14 15:36:11 2002 Owen Taylor <otaylor@redhat.com>
* glib/gcompletion.[ch] (g_completion_complete): Make
prefix argument const. (#91662, Gustavo Carneiro)
Mon Oct 14 15:32:14 2002 Owen Taylor <otaylor@redhat.com> Mon Oct 14 15:32:14 2002 Owen Taylor <otaylor@redhat.com>
* tests/mainloop-test.c (adder_response): Fix a minor memory * tests/mainloop-test.c (adder_response): Fix a minor memory

View File

@ -1,3 +1,8 @@
Mon Oct 14 15:36:11 2002 Owen Taylor <otaylor@redhat.com>
* glib/gcompletion.[ch] (g_completion_complete): Make
prefix argument const. (#91662, Gustavo Carneiro)
Mon Oct 14 15:32:14 2002 Owen Taylor <otaylor@redhat.com> Mon Oct 14 15:32:14 2002 Owen Taylor <otaylor@redhat.com>
* tests/mainloop-test.c (adder_response): Fix a minor memory * tests/mainloop-test.c (adder_response): Fix a minor memory

View File

@ -1,3 +1,8 @@
Mon Oct 14 15:36:11 2002 Owen Taylor <otaylor@redhat.com>
* glib/gcompletion.[ch] (g_completion_complete): Make
prefix argument const. (#91662, Gustavo Carneiro)
Mon Oct 14 15:32:14 2002 Owen Taylor <otaylor@redhat.com> Mon Oct 14 15:32:14 2002 Owen Taylor <otaylor@redhat.com>
* tests/mainloop-test.c (adder_response): Fix a minor memory * tests/mainloop-test.c (adder_response): Fix a minor memory

View File

@ -1,3 +1,8 @@
Mon Oct 14 15:36:11 2002 Owen Taylor <otaylor@redhat.com>
* glib/gcompletion.[ch] (g_completion_complete): Make
prefix argument const. (#91662, Gustavo Carneiro)
Mon Oct 14 15:32:14 2002 Owen Taylor <otaylor@redhat.com> Mon Oct 14 15:32:14 2002 Owen Taylor <otaylor@redhat.com>
* tests/mainloop-test.c (adder_response): Fix a minor memory * tests/mainloop-test.c (adder_response): Fix a minor memory

View File

@ -162,7 +162,7 @@ completion_check_cache (GCompletion* cmp,
GList* GList*
g_completion_complete (GCompletion* cmp, g_completion_complete (GCompletion* cmp,
gchar* prefix, const gchar* prefix,
gchar** new_prefix) gchar** new_prefix)
{ {
gsize plen, len; gsize plen, len;

View File

@ -59,7 +59,7 @@ void g_completion_remove_items (GCompletion* cmp,
GList* items); GList* items);
void g_completion_clear_items (GCompletion* cmp); void g_completion_clear_items (GCompletion* cmp);
GList* g_completion_complete (GCompletion* cmp, GList* g_completion_complete (GCompletion* cmp,
gchar* prefix, const gchar* prefix,
gchar** new_prefix); gchar** new_prefix);
void g_completion_set_compare (GCompletion *cmp, void g_completion_set_compare (GCompletion *cmp,
GCompletionStrncmpFunc strncmp_func); GCompletionStrncmpFunc strncmp_func);