aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linearize.h
diff options
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-26 13:34:34 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:04:58 -0700
commit5db15b3d5f344f7b1f083cfe0992fbdfd675bb9e (patch)
tree764ef4dc8dc113c3771a64032fb081ffe2bbf4fe /linearize.h
parent846add100c0cc5b8633c3b0577f263db8c51c113 (diff)
downloadsparse-dev-5db15b3d5f344f7b1f083cfe0992fbdfd675bb9e.tar.gz
Add some type-safety features to the list pointer operations.
The list pointer traversal macros are very easy to use, but you can also mis-use them by passing in the wrong pointer type without the macros having any chance to warn you about it. Until now.
Diffstat (limited to 'linearize.h')
-rw-r--r--linearize.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/linearize.h b/linearize.h
index da66c9b0..e2f5365b 100644
--- a/linearize.h
+++ b/linearize.h
@@ -7,7 +7,7 @@
#include "symbol.h"
struct instruction;
-struct pseudo_ptr_list;
+DECLARE_PTR_LIST(pseudo_ptr_list, pseudo_t);
enum pseudo_type {
PSEUDO_VOID,