- 论坛徽章:
- 0
|
static const struct sfunc_return_type sfunc_table[] = {
{ "$realtime", IVL_VT_REAL, 1, 0 },
{ "$bitstoreal", IVL_VT_REAL, 1, 0 },
{ "$itor", IVL_VT_REAL, 1, 0 },
{ "$realtobits", IVL_VT_LOGIC, 64, 0 },
{ "$time", IVL_VT_LOGIC, 64, 0 },
{ "$stime", IVL_VT_LOGIC, 32, 0 },
{ "$simtime", IVL_VT_LOGIC, 64, 0 },
{ 0, IVL_VT_LOGIC, 32, 0 }
};
struct sfunc_return_type_cell : sfunc_return_type {
struct sfunc_return_type_cell*next;
};
struct sfunc_return_type_cell*cur = sfunc_stack;
while (cur) {
if (strcmp(cur->name, name) == 0)
return cur;
cur = cur->next;
}
请问:
这里
1.
struct sfunc_return_type_cell : sfunc_return_type {
struct sfunc_return_type_cell*next;
};
怎么理解?
2.不太理解这里cur指针到底是什么类型,为什么cur->name和cur->next可以使用?
请哪位解释下,谢谢! |
|