diff options
author | p37sitdu, corvid <devnull@localhost> | 2013-01-12 20:13:36 +0000 |
---|---|---|
committer | p37sitdu, corvid <devnull@localhost> | 2013-01-12 20:13:36 +0000 |
commit | 0f0e7cc54aecab1647bdcd222c84d17275b92313 (patch) | |
tree | 225d4a6128cd2ddbc1f762b0355c986f12c13730 /dlib | |
parent | 69666a2dafc8a00e5029f4b671ed94d5be38e109 (diff) |
clean up struct typedefs
Diffstat (limited to 'dlib')
-rw-r--r-- | dlib/dlib.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/dlib/dlib.h b/dlib/dlib.h index 0d194dbe..87335e00 100644 --- a/dlib/dlib.h +++ b/dlib/dlib.h @@ -99,7 +99,7 @@ int dStrnAsciiCasecmp(const char *s1, const char *s2, size_t n); */ #define Dstr_char_t char -typedef struct _dstr { +typedef struct { int sz; /* allocated size (private) */ int len; Dstr_char_t *str; @@ -128,13 +128,11 @@ const char *dStr_printable(Dstr *in, int maxlen); /* *-- dList -------------------------------------------------------------------- */ -struct Dlist_ { +typedef struct { int sz; /* allocated size (private) */ int len; void **list; -}; - -typedef struct Dlist_ Dlist; +} Dlist; /* dCompareFunc: * Return: 0 if parameters are equal (for dList_find_custom). |