I think you need to keep the asterisk at the front of the name.
There are times when you need it there, and times when you don't.
It's easier to put it there in the first place rather than trying
to stick it back when you need it.


Since I put the macros there and I like to use macros,
I have to ask what you think is wrong with them.
Personally, I find that the more compact the code is,
the easier it is to read.

Inline functions for C are not portable.

-----Original Message-----
Date: Sat, 4 Feb 2006 14:29:17 +0000
From: seventh guardian <[EMAIL PROTECTED]>
To: FVWM Workers <fvwm-workers@fvwm.org>
Subject: Patch: FvwmAnimate using ParseModuleArgs() - NOT WORKING YET
Sender: [EMAIL PROTECTED]

On 2/2/06, Dominik Vogt <[EMAIL PROTECTED]> wrote:
> So, the work can be split into several smaller steps:
>
> 1. Make all the modules use ParseModuleArgs() and copy the fds
>    from the ModuleArgs struct to the arrays that are currently
>    used by the modules.
> 2. Remove the fd arrays in the modules and use the fds in the
>    ModuleArgs instead.
> 3. Make the service functions in Module.c use a (const ModuleArgs *)
>    instead of passing individual arguments and adapt the modules.
>

FvwmAnimate is mostly done for the 1st item in the list. I also made
the code use the struct->name instead of the char *MyName global var.

As for what isn't done yet in this module: FvwmAnimate uses some
macros (yuch!) for the communication with fvwm. I used CatString3()
for the places where we need the * char before the module name, but I
really don't know what to do in with the macros. I thought of making
them inline functions, but I would like to know what you think..
Search for "these macros are not done yet" in the patch and you will
find it.

With that problem aside, I hope FvwmAnimate users could test the new
code to see if it works ok. Note that it is _not_ working right now
because of those macros.

Cheers!
  Renato Caldas



Reply via email to