pike.git/
src/
array.h
Branch:
Tag:
Non-build tags
All tags
No tags
2003-04-27
2003-04-27 17:32:57 by Martin Stjernholm <mast@lysator.liu.se>
3c759ee476ca3b23ea99e30784c5313d64e0edc8 (
11
lines) (+
10
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Added array_fix_bad_type_field macro.
Rev: src/array.h:1.49
2:
|| This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: array.h,v 1.
48
2003/04/27
16:
17:
33
mast Exp $
+
|| $Id: array.h,v 1.
49
2003/04/27 17:
32:57
mast Exp $
*/ #ifndef ARRAY_H
264:
free_svalue(&tmp_); \ }while(0)
+
#define array_fix_bad_type_field(A) do { \
+
struct array *a_ = (A); \
+
if (a_->type_field == BIT_MIXED || \
+
a_->type_field == (BIT_MIXED|BIT_UNFINISHED)) { \
+
DO_IF_DEBUG (array_check_type_field (a_)); \
+
array_fix_type_field (a_); \
+
} \
+
} while (0)
#endif /* ARRAY_H */