Re: cfg.h (config layer 0 discussion)

"Andriy N. Gritsenko" <[email protected]>
Newsgroups gmane.comp.video.mplayer.g2.devel
Message-ID <[email protected]>
    Hi, Arpi!

    Another note on the subject. :)

Sometime (on Monday, May 19 at 12:16) I've received something...

>#ifndef __CFG_H
>#define __CFG_H 1


>/* type (menu field)	->p		->min	->max	->priv */
>typedef enum {
>// flag (checkbox)	int*		reset	set	-
>  CONF_TYPE_FLAG=1,

    Why it's 1 there? Did we reserved 0 for something? If we'll implement
some parser's array as struct and config_type_t is pointer there (str[i])
then str[0] will be just lost. So I've put 0 there by purpose. :)

    With best wishes.
    Andriy.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.