diff options
Diffstat (limited to '')
-rw-r--r-- | widget_bar.h | 38 |
1 files changed, 22 insertions, 16 deletions
diff --git a/widget_bar.h b/widget_bar.h index f2e51e1..1f05ef4 100644 --- a/widget_bar.h +++ b/widget_bar.h @@ -1,4 +1,4 @@ -/* $Id: widget_bar.h,v 1.3 2004/03/06 20:31:16 reinelt Exp $ +/* $Id: widget_bar.h,v 1.4 2004/06/26 09:27:21 reinelt Exp $ * * bar widget handling * @@ -23,6 +23,12 @@ * * * $Log: widget_bar.h,v $ + * Revision 1.4 2004/06/26 09:27:21 reinelt + * + * added '-W' to CFLAGS + * changed all C++ comments to C ones ('//' => '/* */') + * cleaned up a lot of signed/unsigned mistakes + * * Revision 1.3 2004/03/06 20:31:16 reinelt * Complete rewrite of the evaluator to get rid of the code * from mark Morley (because of license issues). @@ -45,21 +51,21 @@ typedef enum { DIR_EAST=1, DIR_WEST=2, DIR_NORTH=4, DIR_SOUTH=8 } DIRECTION; typedef struct WIDGET_BAR { - char *expression1; // expression that delivers the value - char *expression2; // expression that delivers the value - char *expr_min; // expression that delivers the minimum value - char *expr_max; // expression that delivers the maximum value - void *tree1; // pre-compiled expression that delivers the value - void *tree2; // pre-compiled expression that delivers the value - void *tree_min; // pre-compiled expression that delivers the minimum value - void *tree_max; // pre-compiled expression that delivers the maximum value - DIRECTION direction; // bar direction - int length; // bar length - int update; // update interval (msec) - double val1; // bar value, 0.0 ... 1.0 - double val2; // bar value, 0.0 ... 1.0 - double min; // minimum value - double max; // maximum value + char *expression1; /* expression that delivers the value */ + char *expression2; /* expression that delivers the value */ + char *expr_min; /* expression that delivers the minimum value */ + char *expr_max; /* expression that delivers the maximum value */ + void *tree1; /* pre-compiled expression that delivers the value */ + void *tree2; /* pre-compiled expression that delivers the value */ + void *tree_min; /* pre-compiled expression that delivers the minimum value */ + void *tree_max; /* pre-compiled expression that delivers the maximum value */ + DIRECTION direction; /* bar direction */ + int length; /* bar length */ + int update; /* update interval (msec) */ + double val1; /* bar value, 0.0 ... 1.0 */ + double val2; /* bar value, 0.0 ... 1.0 */ + double min; /* minimum value */ + double max; /* maximum value */ } WIDGET_BAR; |