Kaydet (Commit) af6fdd68 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Avoid reserved identifier

Change-Id: Ie62bbf64a9cdb74725fd48a8f8dcc1ab76d97219
üst d429ea8a
...@@ -39,7 +39,7 @@ typedef struct _lnode { ...@@ -39,7 +39,7 @@ typedef struct _lnode {
} lnode; } lnode;
struct _list { struct list_ {
lnode *head, *tail, *cptr; lnode *head, *tail, *cptr;
size_t aCount; size_t aCount;
list_destructor eDtor; list_destructor eDtor;
...@@ -84,7 +84,7 @@ static lnode *appendPrim(list pThis, void *el) ...@@ -84,7 +84,7 @@ static lnode *appendPrim(list pThis, void *el)
/*- public methods */ /*- public methods */
list listNewEmpty() /*- default ctor */ list listNewEmpty() /*- default ctor */
{ {
list pThis = static_cast<list>(rtl_allocateMemory(sizeof(struct _list))); list pThis = static_cast<list>(rtl_allocateMemory(sizeof(struct list_)));
assert(pThis != nullptr); assert(pThis != nullptr);
pThis->aCount = 0; pThis->aCount = 0;
......
...@@ -37,7 +37,7 @@ extern "C" ...@@ -37,7 +37,7 @@ extern "C"
* List of void * pointers * List of void * pointers
*/ */
typedef struct _list *list; typedef struct list_ *list;
typedef void (*list_destructor)(void *); typedef void (*list_destructor)(void *);
/*- constructors and a destructor */ /*- constructors and a destructor */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment