mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 04:20:27 +01:00
wrlib: add explicit type definition in API to allow compiler Type Checks (1/3)
When defining enums as types instead of simple enums allows to use these types at the places where the corresponding enum values are expected, then allowing the compiler to check that, potentially reporting incorrect use of values to the user. This patch adds types for the configuration fields in the RContextAttributes structure. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
96a6e4da1e
commit
eb3f0b12f8
@@ -247,7 +247,7 @@ static double Mitchell_filter(double t)
|
||||
static double (*filterf)(double) = Mitchell_filter;
|
||||
static double fwidth = Mitchell_support;
|
||||
|
||||
void wraster_change_filter(int type)
|
||||
void wraster_change_filter(RScalingFilter type)
|
||||
{
|
||||
switch (type) {
|
||||
case RBoxFilter:
|
||||
|
||||
Reference in New Issue
Block a user