lists.zerezo.com
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
***BOGO*** Re: [MPlayer-dev-eng] [PATCH] Change lots of defines to one big enum.
- Date: Tue, 17 Jun 2008 23:03:07 +0200
- From: Benjamin Zores <ben@xxxxxxxxxxx>
- Subject: ***BOGO*** Re: [MPlayer-dev-eng] [PATCH] Change lots of defines to one big enum.
Ivan Kalvachev a écrit :
> On 6/17/08, Benjamin Zores <ben@xxxxxxxxxxx> wrote:
>> Hi,
>>
>> Looking at this input/input.h file, I've found it pretty ugly to use
>> dozens of defines to declare MPlayer type of commands.
>> This simple patch makes them a big enum which:
>> - ease a lot application of external patches (no command number conflict)
>> - allows sorting commands per type/group (let's call this the Diego's
>> work)
>> - order command alphabetically per group (Diego, if you read this and
>> care ... :-)
>>
>> Anyone objects to this or may I apply ?
>
> I like the idea.
>
> I just wonder why are you making it into typedef
> (are you planning or replacing current int with that type?)
1. doesn't hurt.
2. why not, this way gcc yells when trying to use as argument value
something that is not part of this enum.
> and won't the mp_command_t be confused with mp_cmd_t that
> already exists.
I'm open to other names, no problem on that.
Also, there are a lot of places in mplayer (stream.h, video_out.h ...)
that may deserve the same change to be done.
Ben
_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng