1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

add_dlg_button_do: Let file point to const.

This commit is contained in:
Kalle Olavi Niemitalo 2007-01-28 14:44:24 +02:00 committed by Kalle Olavi Niemitalo
parent be9660f7d0
commit da759b10f0
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@
#ifdef DEBUG_BUTTON_HOTKEY #ifdef DEBUG_BUTTON_HOTKEY
void void
add_dlg_button_do(unsigned char *file, int line, add_dlg_button_do(const unsigned char *file, int line,
struct dialog *dlg, unsigned char *text, int flags, struct dialog *dlg, unsigned char *text, int flags,
widget_handler_T *handler, void *data, widget_handler_T *handler, void *data,
done_handler_T *done, void *done_data) done_handler_T *done, void *done_data)

View File

@ -30,7 +30,7 @@ struct widget_info_button {
#ifdef DEBUG_BUTTON_HOTKEY #ifdef DEBUG_BUTTON_HOTKEY
void add_dlg_button_do(unsigned char *file, int line, struct dialog *dlg, unsigned char *text, int flags, widget_handler_T *handler, void *data, done_handler_T *done, void *done_data); void add_dlg_button_do(const unsigned char *file, int line, struct dialog *dlg, unsigned char *text, int flags, widget_handler_T *handler, void *data, done_handler_T *done, void *done_data);
#define add_dlg_ok_button(dlg, text, flags, done, data) \ #define add_dlg_ok_button(dlg, text, flags, done, data) \
add_dlg_button_do(__FILE__, __LINE__, dlg, text, flags, ok_dialog, NULL, done, data) add_dlg_button_do(__FILE__, __LINE__, dlg, text, flags, ok_dialog, NULL, done, data)