2009/8/31 Carlos R. Mafra <[email protected]>

snip


>  /* window */
> -#define WKBD_RAISE             15
> -#define WKBD_LOWER             16
> -#define WKBD_RAISELOWER                17
> -#define WKBD_MOVERESIZE                18
> -#define WKBD_SHADE             19
> +#define WKBD_RAISE             16
> +#define WKBD_LOWER             17
> +#define WKBD_RAISELOWER                18
> +#define WKBD_MOVERESIZE                19
> +#define WKBD_SHADE             20
>  /* window, menu */
> -#define WKBD_CLOSE             20
> +#define WKBD_CLOSE             21
>


this #define usage seems to be a ticking bomb ready to blow up if someone
forgets to correctly adjust all the numbers.

Why aren't we using an enum {} ?

Reply via email to