/**
@Begin
+ @Options:
+ LANG = C;
@Global_define:
@DeclareStruct:
typedef struct tag_elem {
tag = new_id_tag(); // Beginning of available id
@DefineFunc:
tag_elem_t* new_tag_elem(call_id_t id, unsigned int data) {
- tag_elem_t *e = (tag_elem_t*) MODEL_MALLOC(sizeof(tag_elem_t));
+ tag_elem_t *e = (tag_elem_t*) CMODEL_MALLOC(sizeof(tag_elem_t));
e->id = id;
e->data = data;
return e;
@Begin
@Interface: Enqueue
@Commit_point_set: Enqueue_Success_Point
- @ID: get_and_inc(tag);
+ @ID: get_and_inc(tag)
@Action:
# __ID__ is an internal macro that refers to the id of the current
# interface call
@Begin
@Interface: Dequeue
@Commit_point_set: Dequeue_Success_Point | Dequeue_Empty_Point
- @ID: get_id(back(__queue))
+ @ID: get_id(front(__queue))
@Action:
unsigned int _Old_Val = get_data(front(__queue));
pop_front(__queue);