* widget.[ch] (label_new): Make text parameter const.

This commit is contained in:
Andrew V. Samoilov 2001-07-31 11:04:21 +00:00
parent 78dbe61c6a
commit 8611daeb0c
3 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,14 @@
2001-07-31 Andrew V. Samoilov <kai@cmail.ru>
* util.c [!HAVE_X] (is_printable): Don't duplicate declarations from
main.h.
(load_file): Use fopen and fstat to prevent race conditions.
(size_trunc): Make suffix const array.
(strip_password): Make prefixes const array.
(file_date): Make fmt auto variable.
* color.c (color_table): Make constant array.
* widget.[ch] (label_new): Make text parameter const.
2001-07-31 Pavel Roskin <proski@gnu.org>
* charsets.c: Warning fixes.

View File

@ -627,7 +627,7 @@ label_destroy (WLabel *l)
}
WLabel *
label_new (int y, int x, char *text, char *tkname)
label_new (int y, int x, const char *text, char *tkname)
{
WLabel *l = g_new (WLabel, 1);

View File

@ -152,7 +152,7 @@ WButton *button_new (int y, int x, int action, int flags, char *text,
WRadio *radio_new (int y, int x, int count, char **text, int use_hotkey, char *tkname);
WCheck *check_new (int y, int x, int state, char *text, char *tkname);
WInput *input_new (int y, int x, int color, int len, const char *text, char *tkname);
WLabel *label_new (int y, int x, char *text, char *tkname);
WLabel *label_new (int y, int x, const char *text, char *tkname);
WGauge *gauge_new (int y, int x, int shown, int max, int current, char *tkname);
WListbox *listbox_new (int x, int y, int width, int height, int action,
lcback, char *tkname);