2012/2/29 Sunil Nimmagadda <su...@sunilnimmagadda.com>:
> On Fri, Sep 02, 2011 at 02:23:28PM -0300, Christiano F. Haesbaert wrote:
>> On 2 September 2011 14:17, Matthew Dempsky <matt...@dempsky.org> wrote:
>> > I'd love to have ctags support in mg.
>>
>> cscope would be cool too, if not too much bloat.
> This diff adds some cscope support in mg. Keybindings are same as
> xcscope that comes with emacs.
>
> +/* ARGSUSED */
> +int
> +cssymbol(int f, int n)
> +{
> +       return (do_cscope(0));
> +}
> +/* ARGSUSED */int
> +csdefinition(int f, int n)
> +{
> +       return (do_cscope(1));
> + */
> +/* ARGSUSED */
> +csfuncalled(int f, int n)
> +{
> +       return (do_cscope(2));
> +       return (do_cscope(3));
> +       return (do_cscope(4));
> +       return (do_cscope(6));
> +       return (do_cscope(7));

Is there a way to have less "magic numbers" here and actually have
some readable #defines or anything?
The code would of course be the same, but these numbered calls look ugly to
me.

</mode nitpick=off>

--
 To our sweethearts and wives.  May they never meet. -- 19th century toast

Reply via email to