i am stumped over this part of the code
they are as following :
Code:
typedef struct
{
V1SL_ENUM_C0_DEBUG_CODE debug_code;
Unsigned8 detail_1;
Unsigned8 detail_2;
#ifdef V1SL_CFG_ENVIRONMENT_MULTI_INSTANCE
Unsigned8 handle;
#endif
}
V1SL_STRUC_C0_DEBUG_BUFFER_ITEM;
#define V1SL_INT_C0_DEBUG_BUFFER_ITEM_PTR V1SL_STRUC_C0_DEBUG_BUFFER_ITEM V1SL_INT_DATA_ATTR *
/* C0: V1SL_STRUC_C0_ERRCB (_ERROR_DETAIL_PTR): */
typedef struct
{
Unsigned16 detail_1;
Unsigned16 detail_2;
V1SL_INT_C0_DEBUG_BUFFER_ITEM_PTR debug_buffer_ptr;
Unsigned8 debug_buffer_index;
}
V1SL_STRUC_C0_ERRCB;
#define V1SL_HUGE_C0_ERRCB_PTR V1SL_STRUC_C0_ERRCB V1SL_DATA_ATTR_HUGE *
this is part of a header file which is very long...
the gmake 166 compiler return a error in line :
V1SL_INT_C0_DEBUG_BUFFER_ITEM_PTR debug_buffer_ptr;
it says that
warning: no semicolon at end of struct or union & parse error before `*'
it was confusing for me as i have checked with the previous typedef thread for the correct syntax.
is it a problem with the different compiler to use, the original programmer have suggest to use a keil C51 compiler however my company have only gmake 166
thanks in advance