On 10 May 2013 02:54, Igor Podlesny <[email protected]> wrote:
> ---
>  src/vzctl.c |  149 
> ++++++++++++++++++++++++++++++++---------------------------
>  1 file changed, 80 insertions(+), 69 deletions(-)

   I think about using some macro for making look-up array entry like:

ACTION_ENTRY(CREATE, cb_init_modules)
ACTION_ENTRY(RESTART, NULL)

   which would have expanded to entries

"CREATE", ACTION_CREATE, cb_init_modules
"RESTART", ACTION_RESTART, NULL

   and the only issue with it is having to use uppercase strings and
hence either ignoring case string comparison or strlower()ing entry
before comparsion -- not sure but tending to strlower.

--
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to