Re: New Dialogs

Meredydd <[email protected]> Sun, 7 Mar 2004 19:59:53 +0000
Newsgroups gmane.network.everybuddy.devel,gmane.network.everybuddy.user
Message-ID <[email protected]>
On Saturday 06 March 2004 00:07, A. Craig West wrote:
> +static char * true_string = "1";
> +static char * false_string = "0";
Nitpick - this is unnecessary - you can just use string constants. The 
compiler optimises it for us.

Yes, this is inconsistent with stuff like:
>   char error_dialog[]="error_dialog";
>   char list_dialog[]="list_dialog";
>   char yesno_dialog[]="yesno_dialog";
>   char text_dialog[]="text_dialog";
That's just because, at the time of writing, I hadn't figured out that 
pointers to string constants didn't expire one line of code later :)

Meredydd