From abb2bcc28b4eea66e3f09a218bea244e666e7052 Mon Sep 17 00:00:00 2001 From: Markus Schorn Date: Wed, 8 Nov 2006 14:33:16 +0000 Subject: [PATCH] Fixes a couple of wrong offsets in PDOM. --- .../eclipse/cdt/internal/core/pdom/dom/PDOMPointerType.java | 4 ++-- .../eclipse/cdt/internal/core/pdom/dom/PDOMQualifierType.java | 4 ++-- .../cdt/internal/core/pdom/dom/cpp/PDOMCPPVariable.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMPointerType.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMPointerType.java index 259ffbd48d2..8f2ec982163 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMPointerType.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMPointerType.java @@ -29,8 +29,8 @@ import org.eclipse.core.runtime.CoreException; public class PDOMPointerType extends PDOMNode implements IPointerType, ITypeContainer { - private static final int FLAGS = PDOMNode.RECORD_SIZE + 1; - private static final int TYPE = PDOMNode.RECORD_SIZE + 4; + private static final int FLAGS = PDOMNode.RECORD_SIZE + 0; // byte + private static final int TYPE = PDOMNode.RECORD_SIZE + 1; private static final int RECORD_SIZE = PDOMNode.RECORD_SIZE + 5; diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMQualifierType.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMQualifierType.java index f203025accd..8fb94fff4cd 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMQualifierType.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMQualifierType.java @@ -30,8 +30,8 @@ import org.eclipse.core.runtime.CoreException; public class PDOMQualifierType extends PDOMNode implements IQualifierType, ITypeContainer { - private static final int FLAGS = PDOMNode.RECORD_SIZE + 1; - private static final int TYPE = PDOMNode.RECORD_SIZE + 4; + private static final int FLAGS = PDOMNode.RECORD_SIZE; + private static final int TYPE = PDOMNode.RECORD_SIZE + 1; private static final int RECORD_SIZE = PDOMNode.RECORD_SIZE + 5; diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPVariable.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPVariable.java index 7761707a328..35ff906be71 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPVariable.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPVariable.java @@ -41,7 +41,7 @@ class PDOMCPPVariable extends PDOMCPPBinding implements ICPPVariable { * Offset of annotation information (relative to the beginning of the * record). */ - private static final int ANNOTATIONS = PDOMBinding.RECORD_SIZE + 1; + private static final int ANNOTATIONS = PDOMBinding.RECORD_SIZE + 4; // byte /** * The size in bytes of a PDOMCPPVariable record in the database.