aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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
parentWhen packing basic blocks, update the instructions bb pointers. (diff)
downloadsparse-5db15b3d5f344f7b1f083cfe0992fbdfd675bb9e.tar.gz
sparse-5db15b3d5f344f7b1f083cfe0992fbdfd675bb9e.tar.bz2
sparse-5db15b3d5f344f7b1f083cfe0992fbdfd675bb9e.zip
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 da66c9b..e2f5365 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,