>>>> and also this:
>>>>
>>>> bad: vlc_module_begin ()
>>>> BAD:!!!!!     set_category( CAT_INPUT )
>>>> bad:     set_subcategory( SUBCAT_INPUT_DEMUX )
>>>> bad:     set_description( N_("MP4 stream demuxer") )
>>>> bad:     set_shortname( N_("MP4") )
>>>> bad:     set_capability( "demux", 240 )
>>>> bad:     set_callbacks( Open, Close )
>>>> bad: vlc_module_end ()
>
>
> You don't have to remove this to be able to parse the function of interest.
>

Yes, sorry, I was wrong, obviously it works well with that chunk...

> On the other hand, the parser unfortunately does not seem to support the
> pattern:
>
> #ifdef
>   expression1
> #else
>   expression2
> #endif
>
> It can't parse it as an if structure, because if is a statement, not an
> expression.  So it assumes the ifdef etc are all comments, giving the
> expression
>
> expression1 expression2
>
> which is not valid C.  One would have hoped that it would consider
> everything from the #else to just before the #endif as comments, instead of
> just the #ifdef #else and #endif...
>

Ok I understand.

Thanks for your explainations, have a good week-end!

--
Frédéric




-- 
Frédéric
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to