[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 01/17] kwset/system: remove ptr_t
From: |
Paolo Bonzini |
Subject: |
[PATCH 01/17] kwset/system: remove ptr_t |
Date: |
Fri, 12 Mar 2010 18:49:02 +0100 |
* src/kwset.h: Declare kwset using an incomplete struct type.
* src/system.h (ptr_t): Remove.
---
src/kwset.h | 3 ++-
src/system.h | 12 ------------
2 files changed, 2 insertions(+), 13 deletions(-)
diff --git a/src/kwset.h b/src/kwset.h
index c1ea6f0..6861be5 100644
--- a/src/kwset.h
+++ b/src/kwset.h
@@ -28,7 +28,8 @@ struct kwsmatch
size_t size[1]; /* Length of each submatch. */
};
-typedef ptr_t kwset_t;
+struct kwset;
+typedef struct kwset *kwset_t;
/* Return an opaque pointer to a newly allocated keyword set, or NULL
if enough memory cannot be obtained. The argument if non-NULL
diff --git a/src/system.h b/src/system.h
index 4f5e854..3595832 100644
--- a/src/system.h
+++ b/src/system.h
@@ -16,18 +16,6 @@
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
02110-1301, USA. */
-#if defined (__STDC__) && __STDC__
-# ifndef _PTR_T
-# define _PTR_T
- typedef void * ptr_t;
-# endif
-#else
-# ifndef _PTR_T
-# define _PTR_T
- typedef char * ptr_t;
-# endif
-#endif
-
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
--
1.6.6
- [PATCH 00/16] my last hefty patch drop, Paolo Bonzini, 2010/03/12
- [PATCH 01/17] kwset/system: remove ptr_t,
Paolo Bonzini <=
- [PATCH 02/17] grep: cleanup one const cast, Paolo Bonzini, 2010/03/12
- [PATCH 03/17] dfa: get rid of x*alloc, Paolo Bonzini, 2010/03/12
- [PATCH 04/17] dfa: remove CRANGE dead code, Paolo Bonzini, 2010/03/12
- [PATCH 05/17] dfa, grep: cleanup if-before-free and cast-of-argument-to-free, Paolo Bonzini, 2010/03/12