[MPlayer-G2-dev] Re: cfg.h (config layer 0 discussion)

Andriy N. Gritsenko andrej at lucky.net
Mon May 19 12:24:35 CEST 2003


    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.



More information about the MPlayer-G2-dev mailing list