projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix build
[m6w6/ext-psi]
/
src
/
types
/
decl_type.c
diff --git
a/src/types/decl_type.c
b/src/types/decl_type.c
index 1445c353ebe2ec8fa719498d9616114473bc836f..932475faea785f275b744c9ca2d971d53a073bc7 100644
(file)
--- a/
src/types/decl_type.c
+++ b/
src/types/decl_type.c
@@
-23,12
+23,16
@@
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************/
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************/
-#include "php_psi_stdinc.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#else
+# include "php_config.h"
+#endif
#include "token.h"
#include "data.h"
#define PSI_STD_TYPES
#include "token.h"
#include "data.h"
#define PSI_STD_TYPES
-#include "php_psi_p
osix
.h"
+#include "php_psi_p
redef
.h"
struct psi_decl_type *psi_decl_type_init(token_t type, zend_string *name)
{
struct psi_decl_type *psi_decl_type_init(token_t type, zend_string *name)
{
@@
-336,6
+340,7
@@
void psi_decl_type_dump(struct psi_dump *dump, struct psi_decl_type *t, unsigned
case PSI_T_STRUCT:
PSI_DUMP(dump, "struct ");
if (psi_decl_type_is_anon(t->name, "struct")) {
case PSI_T_STRUCT:
PSI_DUMP(dump, "struct ");
if (psi_decl_type_is_anon(t->name, "struct")) {
+ PSI_DUMP(dump, "/*::(%zu, %zu)*/", t->real.strct->align, t->real.strct->size);
psi_decl_type_dump_args_with_layout(dump, t->real.strct->args, level);
return;
}
psi_decl_type_dump_args_with_layout(dump, t->real.strct->args, level);
return;
}
@@
-344,6
+349,7
@@
void psi_decl_type_dump(struct psi_dump *dump, struct psi_decl_type *t, unsigned
case PSI_T_UNION:
PSI_DUMP(dump, "union ");
if (psi_decl_type_is_anon(t->name, "union")) {
case PSI_T_UNION:
PSI_DUMP(dump, "union ");
if (psi_decl_type_is_anon(t->name, "union")) {
+ PSI_DUMP(dump, "/*::(%zu, %zu)*/", t->real.unn->align, t->real.unn->size);
psi_decl_type_dump_args_with_layout(dump, t->real.unn->args, level);
return;
}
psi_decl_type_dump_args_with_layout(dump, t->real.unn->args, level);
return;
}