diff dlib/dlib.h @ 2771:fb399dcc5866

clean up struct typedefs
author p37sitdu, corvid
date Sat, 12 Jan 2013 20:13:36 +0000
parents 8a508291ac35
children
line wrap: on
line diff
--- a/dlib/dlib.h	Sat Jan 12 19:14:49 2013 +0100
+++ b/dlib/dlib.h	Sat Jan 12 20:13:36 2013 +0000
@@ -99,7 +99,7 @@
  */
 #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 @@
 /*
  *-- 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).