# HG changeset patch # User Edouard Tisserant # Date 1303377733 -7200 # Node ID 1b0686c546ab26fee369e152815b29eba29d72bf # Parent 013eab46aebbb057109acecc8bbfa9bad65ed33b Removed dead code diff -r 013eab46aebb -r 1b0686c546ab lib/iec_std_lib.h --- a/lib/iec_std_lib.h Thu Apr 14 19:17:20 2011 +0100 +++ b/lib/iec_std_lib.h Thu Apr 21 11:22:13 2011 +0200 @@ -1307,36 +1307,3 @@ __compare_string(__ne_, != ) - -/* Get string representation of variable referenced by a void pointer - * where type is given as its number */ -/*#define __decl_str_case(cat,TYPENAME) \ - case TYPENAME##_ENUM:\ - return __##cat##_to_string(*(TYPENAME*)p); -#define __decl_str_case_bit(TYPENAME) __decl_str_case(bit,TYPENAME) -#define __decl_str_case_real(TYPENAME) __decl_str_case(real,TYPENAME) -#define __decl_str_case_sint(TYPENAME) __decl_str_case(sint,TYPENAME) -#define __decl_str_case_uint(TYPENAME) __decl_str_case(uint,TYPENAME) -static inline STRING __get_type_enum_str(__IEC_types_enum t, void* p){ - switch(t){ - __decl_str_case(bool,BOOL) - ANY_NBIT(__decl_str_case_bit) - ANY_REAL(__decl_str_case_real) - ANY_SINT(__decl_str_case_sint) - ANY_UINT(__decl_str_case_uint) - __decl_str_case(time,TIME) - __decl_str_case(date,DATE) - __decl_str_case(tod,TOD) - __decl_str_case(dt, DT) - } -} -*/ - - - - -#include "standard_functions.h" - - - -