From f76a432beff69f391f9b164ac8f894181bd51b2c Mon Sep 17 00:00:00 2001 From: John Camelon Date: Thu, 15 Apr 2004 21:22:32 +0000 Subject: [PATCH] Added __const as an alternative keyword. --- .../cdt/internal/core/parser/scanner/GCCScannerExtension.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/GCCScannerExtension.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/GCCScannerExtension.java index df386091d86..d94b452bdcb 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/GCCScannerExtension.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/GCCScannerExtension.java @@ -32,6 +32,7 @@ public class GCCScannerExtension implements IScannerExtension { private static final String __CONST__ = "__const__"; //$NON-NLS-1$ + private static final String __CONST = "__const"; //$NON-NLS-1$ private static final String __INLINE__ = "__inline__"; //$NON-NLS-1$ private static final String __VOLATILE__ = "__volatile__"; //$NON-NLS-1$ private static final String __SIGNED__ = "__signed__"; //$NON-NLS-1$ @@ -85,6 +86,7 @@ public class GCCScannerExtension implements IScannerExtension { scannerData.getScanner().addDefinition( IScanner.__STDC_VERSION__, new ObjectMacroDescriptor( IScanner.__STDC_VERSION__, "199001L")); //$NON-NLS-1$ setupAlternativeKeyword(__CONST__, Keywords.CONST); + setupAlternativeKeyword(__CONST, Keywords.CONST); setupAlternativeKeyword(__INLINE__, Keywords.INLINE); setupAlternativeKeyword(__SIGNED__, Keywords.SIGNED); setupAlternativeKeyword(__VOLATILE__, Keywords.VOLATILE);