OSDN Git Service

Normalize the include guard style.
authorCarl Shapiro <cshapiro@google.com>
Wed, 15 Jun 2011 03:31:24 +0000 (20:31 -0700)
committerCarl Shapiro <cshapiro@google.com>
Wed, 15 Jun 2011 03:42:37 +0000 (20:42 -0700)
An leading underscore followed by a capital letter is a reserved
name space in C and C++.

This change also moves any #include directives within the include
guard in some of the compiler/codegen/arm header files.

Change-Id: I9715e2c5301699d31886e61d0fe6e29483555a2a

112 files changed:
libdex/CmdUtils.h
libdex/DexCatch.h
libdex/DexClass.h
libdex/DexDataMap.h
libdex/DexDebugInfo.h
libdex/DexFile.h
libdex/DexOpcodes.h
libdex/DexProto.h
libdex/DexUtf.h
libdex/InstrUtils.h
libdex/Leb128.h
libdex/OptInvocation.h
libdex/SysUtil.h
libdex/ZipArchive.h
libdex/sha1.h
libnativehelper/include/nativehelper/JNIHelp.h
libnativehelper/include/nativehelper/jni.h
vm/AllocTracker.h
vm/Atomic.h
vm/AtomicCache.h
vm/BitVector.h
vm/Bits.h
vm/Common.h
vm/Dalvik.h
vm/DalvikVersion.h
vm/Ddm.h
vm/Debugger.h
vm/DvmDex.h
vm/Exception.h
vm/Globals.h
vm/Hash.h
vm/IndirectRefTable.h
vm/Init.h
vm/InlineNative.h
vm/Intern.h
vm/JarFile.h
vm/JniInternal.h
vm/LinearAlloc.h
vm/Misc.h
vm/Native.h
vm/PointerSet.h
vm/Profile.h
vm/RawDexFile.h
vm/ReferenceTable.h
vm/SignalCatcher.h
vm/StdioConverter.h
vm/Sync.h
vm/Thread.h
vm/UtfString.h
vm/alloc/Alloc.h
vm/alloc/CardTable.h
vm/alloc/DdmHeap.h
vm/alloc/Heap.h
vm/alloc/HeapBitmap.h
vm/alloc/HeapBitmapInlines.h
vm/alloc/HeapDebug.h
vm/alloc/HeapInternal.h
vm/alloc/HeapSource.h
vm/alloc/MarkSweep.h
vm/alloc/Verify.h
vm/alloc/Visit.h
vm/alloc/VisitInlines.h
vm/alloc/WriteBarrier.h
vm/analysis/CodeVerify.h
vm/analysis/DexPrepare.h
vm/analysis/DexVerify.h
vm/analysis/Liveness.h
vm/analysis/Optimize.h
vm/analysis/RegisterMap.h
vm/analysis/VerifySubs.h
vm/analysis/VfyBasicBlock.h
vm/compiler/Compiler.h
vm/compiler/CompilerIR.h
vm/compiler/CompilerInternals.h
vm/compiler/CompilerUtility.h
vm/compiler/Dataflow.h
vm/compiler/Loop.h
vm/compiler/codegen/CompilerCodegen.h
vm/compiler/codegen/Optimizer.h
vm/compiler/codegen/arm/ArmLIR.h
vm/compiler/codegen/arm/CalloutHelper.h
vm/compiler/codegen/arm/armv5te-vfp/ArchVariant.h
vm/compiler/codegen/arm/armv5te/ArchVariant.h
vm/compiler/codegen/arm/armv7-a-neon/ArchVariant.h
vm/compiler/codegen/arm/armv7-a/ArchVariant.h
vm/compiler/codegen/x86/CalloutHelper.h
vm/compiler/codegen/x86/X86LIR.h
vm/compiler/codegen/x86/ia32/ArchVariant.h
vm/hprof/Hprof.h
vm/interp/Interp.h
vm/interp/InterpDefs.h
vm/interp/InterpState.h
vm/interp/Jit.h
vm/interp/Stack.h
vm/jdwp/ExpandBuf.h
vm/jdwp/Jdwp.h
vm/jdwp/JdwpConstants.h
vm/jdwp/JdwpEvent.h
vm/jdwp/JdwpHandler.h
vm/jdwp/JdwpPriv.h
vm/mterp/Mterp.h
vm/native/InternalNative.h
vm/native/InternalNativePriv.h
vm/oo/AccessCheck.h
vm/oo/Array.h
vm/oo/Class.h
vm/oo/Object.h
vm/oo/ObjectInlines.h
vm/oo/Resolve.h
vm/oo/TypeCheck.h
vm/reflect/Reflect.h
vm/test/Test.h

index 62ce73a..887eed9 100644 (file)
@@ -28,8 +28,8 @@
  *
  * All memory-mapped structures are 32-bit aligned unless otherwise noted.
  */
-#ifndef _LIBDEX_CMDUTILS
-#define _LIBDEX_CMDUTILS
+#ifndef LIBDEX_CMDUTILS_H_
+#define LIBDEX_CMDUTILS_H_
 
 /* encode the result of unzipping to a file */
 enum UnzipToFileResult {
@@ -70,4 +70,4 @@ UnzipToFileResult dexOpenAndMap(const char* fileName, const char* tempFileName,
 UnzipToFileResult dexUnzipToFile(const char* zipFileName,
     const char* outFileName, bool quiet);
 
-#endif /*_LIBDEX_CMDUTILS*/
+#endif  // LIBDEX_CMDUTILS_H_
index 19ea541..cfea2d9 100644 (file)
@@ -18,8 +18,8 @@
  * Functions for dealing with try-catch info.
  */
 
-#ifndef _LIBDEX_DEXCATCH
-#define _LIBDEX_DEXCATCH
+#ifndef LIBDEX_DEXCATCH_H_
+#define LIBDEX_DEXCATCH_H_
 
 #include "DexFile.h"
 #include "Leb128.h"
@@ -159,4 +159,4 @@ DEX_INLINE bool dexFindCatchHandler(DexCatchIterator *pIterator,
     }
 }
 
-#endif
+#endif  // LIBDEX_DEXCATCH_H_
index d2d92c0..11b3b0e 100644 (file)
@@ -18,8 +18,8 @@
  * Functions to deal with class definition structures in DEX files
  */
 
-#ifndef _LIBDEX_DEXCLASS
-#define _LIBDEX_DEXCLASS
+#ifndef LIBDEX_DEXCLASS_H_
+#define LIBDEX_DEXCLASS_H_
 
 #include "DexFile.h"
 #include "Leb128.h"
@@ -159,4 +159,4 @@ DEX_INLINE void dexReadClassDataMethod(const u1** pData, DexMethod* pMethod,
     *lastIndex = index;
 }
 
-#endif
+#endif  // LIBDEX_DEXCLASS_H_
index 359d3ad..7e43dc9 100644 (file)
@@ -18,8 +18,8 @@
  * Verification-time map of data section items
  */
 
-#ifndef _LIBDEX_DEXDATAMAP
-#define _LIBDEX_DEXDATAMAP
+#ifndef LIBDEX_DEXDATAMAP_H_
+#define LIBDEX_DEXDATAMAP_H_
 
 #include "DexFile.h"
 
@@ -70,4 +70,4 @@ DEX_INLINE bool dexDataMapVerify0Ok(DexDataMap* map, u4 offset, u2 type) {
     return dexDataMapVerify(map, offset, type);
 }
 
-#endif /*_LIBDEX_DEXDATAMAP*/
+#endif  // LIBDEX_DEXDATAMAP_H_
index 9ab67f5..bd0954c 100644 (file)
@@ -18,8 +18,8 @@
  * Handling of method debug info in a .dex file.
  */
 
-#ifndef _LIBDEX_DEXDEBUGINFO
-#define _LIBDEX_DEXDEBUGINFO
+#ifndef LIBDEX_DEXDEBUGINFO_H_
+#define LIBDEX_DEXDEBUGINFO_H_
 
 #include "DexFile.h"
 
@@ -52,4 +52,4 @@ void dexDecodeDebugInfo(
             DexDebugNewPositionCb posCb, DexDebugNewLocalCb localCb,
             void* cnxt);
 
-#endif /* def _LIBDEX_DEXDEBUGINFO */
+#endif  // LIBDEX_DEXDEBUGINFO_H_
index c4f3f09..38e6eca 100644 (file)
@@ -30,8 +30,8 @@
  * All memory-mapped structures are 32-bit aligned unless otherwise noted.
  */
 
-#ifndef _LIBDEX_DEXFILE
-#define _LIBDEX_DEXFILE
+#ifndef LIBDEX_DEXFILE_H_
+#define LIBDEX_DEXFILE_H_
 
 #include "vm/Common.h"      // basic type defs, e.g. u1/u2/u4/u8, and LOG
 #include "libdex/SysUtil.h"
@@ -974,4 +974,4 @@ const char* dexGetBoxedTypeDescriptor(PrimitiveType type);
  */
 PrimitiveType dexGetPrimitiveTypeFromDescriptorChar(char descriptorChar);
 
-#endif /*_LIBDEX_DEXFILE*/
+#endif  // LIBDEX_DEXFILE_H_
index d8dc9a7..472fe36 100644 (file)
@@ -25,8 +25,8 @@
  * opcodes and instruction formats.
  */
 
-#ifndef _LIBDEX_DEXOPCODES
-#define _LIBDEX_DEXOPCODES
+#ifndef LIBDEX_DEXOPCODES_H_
+#define LIBDEX_DEXOPCODES_H_
 
 #include "DexFile.h"
 
@@ -1133,4 +1133,4 @@ DEX_INLINE Opcode dexOpcodeFromCodeUnit(u2 codeUnit) {
  */
 const char* dexGetOpcodeName(Opcode op);
 
-#endif /*_LIBDEX_DEXOPCODES*/
+#endif  // LIBDEX_DEXOPCODES_H_
index 591c274..dccae6c 100644 (file)
@@ -18,8 +18,8 @@
  * Functions for dealing with method prototypes
  */
 
-#ifndef _LIBDEX_DEXPROTO
-#define _LIBDEX_DEXPROTO
+#ifndef LIBDEX_DEXPROTO_H_
+#define LIBDEX_DEXPROTO_H_
 
 #include "DexFile.h"
 
@@ -226,4 +226,4 @@ u4 dexParameterIteratorNextIndex(DexParameterIterator* pIterator);
 const char* dexParameterIteratorNextDescriptor(
         DexParameterIterator* pIterator);
 
-#endif /*_LIBDEX_DEXPROTO*/
+#endif  // LIBDEX_DEXPROTO_H_
index a7eb28c..cb3d919 100644 (file)
@@ -18,8 +18,8 @@
  * Validate and manipulate MUTF-8 (modified UTF-8) encoded string data.
  */
 
-#ifndef _LIBDEX_DEXUTF
-#define _LIBDEX_DEXUTF
+#ifndef LIBDEX_DEXUTF_H_
+#define LIBDEX_DEXUTF_H_
 
 #include "DexFile.h"
 
@@ -128,4 +128,4 @@ bool dexIsClassDescriptor(const char* s);
  * is for anything but "void". */
 bool dexIsFieldDescriptor(const char* s);
 
-#endif /* def _LIBDEX_DEXUTF */
+#endif  // LIBDEX_DEXUTF_H_
index 187fd5c..708a479 100644 (file)
@@ -17,8 +17,8 @@
 /*
  * Dalvik instruction utility functions.
  */
-#ifndef _LIBDEX_INSTRUTILS
-#define _LIBDEX_INSTRUTILS
+#ifndef LIBDEX_INSTRUTILS_H_
+#define LIBDEX_INSTRUTILS_H_
 
 #include "DexFile.h"
 #include "DexOpcodes.h"
@@ -198,4 +198,4 @@ DEX_INLINE InstructionIndexType dexGetIndexTypeFromOpcode(Opcode opcode)
  */
 void dexDecodeInstruction(const u2* insns, DecodedInstruction* pDec);
 
-#endif /*_LIBDEX_INSTRUTILS*/
+#endif  // LIBDEX_INSTRUTILS_H_
index 41799fe..21f4eda 100644 (file)
@@ -18,8 +18,8 @@
  * Functions for interpreting LEB128 (little endian base 128) values
  */
 
-#ifndef _LIBDEX_LEB128
-#define _LIBDEX_LEB128
+#ifndef LIBDEX_LEB128_H_
+#define LIBDEX_LEB128_H_
 
 #include "DexFile.h"
 
index e44ce54..3f32b94 100644 (file)
@@ -17,8 +17,8 @@
 /*
  * Utility functions related to "dexopt".
  */
-#ifndef _LIBDEX_OPTINVOCATION
-#define _LIBDEX_OPTINVOCATION
+#ifndef LIBDEX_OPTINVOCATION_H_
+#define LIBDEX_OPTINVOCATION_H_
 
 /*
  * Utility routines, used by the VM.
@@ -27,4 +27,4 @@ char* dexOptGenerateCacheFileName(const char* fileName,
     const char* subFileName);
 int dexOptCreateEmptyHeader(int fd);
 
-#endif /*_LIBDEX_OPTINVOCATION*/
+#endif  // LIBDEX_OPTINVOCATION_H_
index e297dc0..100c312 100644 (file)
@@ -17,8 +17,8 @@
 /*
  * System utilities.
  */
-#ifndef _LIBDEX_SYSUTIL
-#define _LIBDEX_SYSUTIL
+#ifndef LIBDEX_SYSUTIL_H_
+#define LIBDEX_SYSUTIL_H_
 
 #include <sys/types.h>
 
@@ -119,4 +119,4 @@ int sysWriteFully(int fd, const void* buf, size_t count, const char* logMsg);
  */
 int sysCopyFileToFile(int outFd, int inFd, size_t count);
 
-#endif /*_DALVIK_SYSUTIL*/
+#endif  // LIBDEX_SYSUTIL_H_
index 8d15cf6..df5c49a 100644 (file)
@@ -17,8 +17,8 @@
 /*
  * Read-only access to Zip archives, with minimal heap allocation.
  */
-#ifndef _LIBDEX_ZIPARCHIVE
-#define _LIBDEX_ZIPARCHIVE
+#ifndef LIBDEX_ZIPARCHIVE_H_
+#define LIBDEX_ZIPARCHIVE_H_
 
 #include "SysUtil.h"
 #include "DexFile.h"            // need DEX_INLINE
@@ -177,4 +177,4 @@ int dexZipExtractEntryToFile(const ZipArchive* pArchive,
 u4 dexInitCrc32(void);
 u4 dexComputeCrc32(u4 crc, const void* buf, size_t len);
 
-#endif /*_LIBDEX_ZIPARCHIVE*/
+#endif  // LIBDEX_ZIPARCHIVE_H_
index f18a8c0..28907de 100644 (file)
@@ -1,8 +1,8 @@
 /*
  * See "sha1.cpp" for author info.
  */
-#ifndef _DALVIK_SHA1
-#define _DALVIK_SHA1
+#ifndef LIBDEX_SHA1_H_
+#define LIBDEX_SHA1_H_
 
 struct SHA1_CTX {
     unsigned long state[5];
@@ -17,4 +17,4 @@ void SHA1Update(SHA1_CTX* context, const unsigned char* data,
     unsigned long len);
 void SHA1Final(unsigned char digest[HASHSIZE], SHA1_CTX* context);
 
-#endif /*_DALVIK_SHA1*/
+#endif  // LIBDEX_SHA1_H_
index c45445c..aa98c2c 100644 (file)
@@ -20,8 +20,8 @@
  * This file may be included by C or C++ code, which is trouble because jni.h
  * uses different typedefs for JNIEnv in each language.
  */
-#ifndef _NATIVEHELPER_JNIHELP_H
-#define _NATIVEHELPER_JNIHELP_H
+#ifndef NATIVEHELPER_JNIHELP_H_
+#define NATIVEHELPER_JNIHELP_H_
 
 #include "jni.h"
 #include "cutils/log.h"
@@ -189,4 +189,4 @@ inline void jniLogException(JNIEnv* env, int priority, const char* tag, jthrowab
     _rc; })
 #endif
 
-#endif /*_NATIVEHELPER_JNIHELP_H*/
+#endif  /* NATIVEHELPER_JNIHELP_H_ */
index 22b1d88..b71cf61 100644 (file)
@@ -21,8 +21,8 @@
  * Everything here is expected to be VM-neutral.
  */
 
-#ifndef _JNI_H
-#define _JNI_H
+#ifndef JNI_H_
+#define JNI_H_
 
 #include <stdarg.h>
 
@@ -1152,4 +1152,4 @@ void JNI_OnUnload(JavaVM* vm, void* reserved);
 #define JNIEXPORT
 #define JNICALL
 
-#endif /*_JNI_H*/
+#endif  /* JNI_H_ */
index 16d5168..dede397 100644 (file)
@@ -16,8 +16,8 @@
 /*
  * Allocation tracking and reporting.
  */
-#ifndef _DALVIK_ALLOCTRACKER
-#define _DALVIK_ALLOCTRACKER
+#ifndef DALVIK_ALLOCTRACKER_H_
+#define DALVIK_ALLOCTRACKER_H_
 
 /* initialization */
 bool dvmAllocTrackerStartup(void);
@@ -59,4 +59,4 @@ bool dvmGenerateTrackedAllocationReport(u1** pData, size_t* pDataLen);
  */
 void dvmDumpTrackedAllocations(bool enable);
 
-#endif /*_DALVIK_ALLOCTRACKER*/
+#endif  // DALVIK_ALLOCTRACKER_H_
index 9d43332..c7e965f 100644 (file)
@@ -17,8 +17,8 @@
 /*
  * Atomic operations
  */
-#ifndef _DALVIK_ATOMIC
-#define _DALVIK_ATOMIC
+#ifndef DALVIK_ATOMIC_H_
+#define DALVIK_ATOMIC_H_
 
 #include <cutils/atomic.h>          /* use common Android atomic ops */
 #include <cutils/atomic-inline.h>   /* and some uncommon ones */
@@ -52,4 +52,4 @@ extern "C" int64_t dvmQuasiAtomicRead64(volatile const int64_t* addr);
 int dvmQuasiAtomicCas64(int64_t oldvalue, int64_t newvalue,
         volatile int64_t* addr);
 
-#endif /*_DALVIK_ATOMIC*/
+#endif  // DALVIK_ATOMIC_H_
index 29f1ebc..00a0900 100644 (file)
@@ -16,8 +16,8 @@
 /*
  * Mutex-free cache for key1+key2=value.
  */
-#ifndef _DALVIK_ATOMICCACHE
-#define _DALVIK_ATOMICCACHE
+#ifndef DALVIK_ATOMICCACHE_H_
+#define DALVIK_ATOMICCACHE_H_
 
 /*
  * If set to "1", gather some stats on our caching success rate.
@@ -170,4 +170,4 @@ void dvmUpdateAtomicCache(u4 key1, u4 key2, u4 value, AtomicCacheEntry* pEntry,
  */
 void dvmDumpAtomicCacheStats(const AtomicCache* pCache);
 
-#endif /*_DALVIK_ATOMICCACHE*/
+#endif  // DALVIK_ATOMICCACHE_H_
index 01e2f1b..2ac0ddf 100644 (file)
@@ -17,8 +17,8 @@
 /*
  * Miscellaneous utility functions.
  */
-#ifndef _DALVIK_BITVECTOR
-#define _DALVIK_BITVECTOR
+#ifndef DALVIK_BITVECTOR_H_
+#define DALVIK_BITVECTOR_H_
 
 /*
  * Expanding bitmap, used for tracking resources.  Bits are numbered starting
@@ -100,4 +100,4 @@ void dvmBitVectorIteratorInit(BitVector* pBits, BitVectorIterator* iterator);
 /* Return the next position set to 1. -1 means end-of-vector reached */
 int dvmBitVectorIteratorNext(BitVectorIterator* iterator);
 
-#endif /*_DALVIK_BITVECTOR*/
+#endif  // DALVIK_BITVECTOR_H_
index 38b016d..04d4fd1 100644 (file)
--- a/vm/Bits.h
+++ b/vm/Bits.h
@@ -18,8 +18,8 @@
  *
  * These get inlined, so prefer small size over maximum speed.
  */
-#ifndef _DALVIK_BITS
-#define _DALVIK_BITS
+#ifndef DALVIK_BITS_H_
+#define DALVIK_BITS_H_
 
 #include "Common.h"
 #include "Inlines.h"
@@ -355,4 +355,4 @@ INLINE void setUtf8String(u1* buf, const u1* str)
     memcpy(buf + sizeof(u4), str, strLen);
 }
 
-#endif /*_DALVIK_BITS*/
+#endif  // DALVIK_BITS_H_
index 45402fe..43c7500 100644 (file)
@@ -17,8 +17,8 @@
 /*
  * Common defines for all Dalvik code.
  */
-#ifndef _DALVIK_COMMON
-#define _DALVIK_COMMON
+#ifndef DALVIK_COMMON_H_
+#define DALVIK_COMMON_H_
 
 #ifndef LOG_TAG
 # define LOG_TAG "dalvikvm"
@@ -120,4 +120,4 @@ union JValue {
 
 #define NELEM(x) ((int) (sizeof(x) / sizeof((x)[0])))
 
-#endif /*_DALVIK_COMMON*/
+#endif  // DALVIK_COMMON_H_
index 96ce041..eecbf8d 100644 (file)
@@ -17,8 +17,8 @@
 /*
  * All-inclusive internal header file.  Include this to get everything useful.
  */
-#ifndef _DALVIK_DALVIK
-#define _DALVIK_DALVIK
+#ifndef DALVIK_DALVIK_H_
+#define DALVIK_DALVIK_H_
 
 #include "Common.h"
 #include "Inlines.h"
@@ -84,4 +84,4 @@
 #include "InlineNative.h"
 #include "oo/ObjectInlines.h"
 
-#endif /*_DALVIK_DALVIK*/
+#endif  // DALVIK_DALVIK_H_
index 673ca56..e71c839 100644 (file)
@@ -17,8 +17,8 @@
 /*
  * Dalvik VM version info.
  */
-#ifndef _DALVIK_VERSION
-#define _DALVIK_VERSION
+#ifndef DALVIK_VERSION_H_
+#define DALVIK_VERSION_H_
 
 /*
  * The version we show to tourists.
@@ -34,4 +34,4 @@
  */
 #define DALVIK_VM_BUILD         27
 
-#endif /*_DALVIK_VERSION*/
+#endif  // DALVIK_VERSION_H_
index 01f5d18..f8c22ee 100644 (file)
--- a/vm/Ddm.h
+++ b/vm/Ddm.h
@@ -16,8 +16,8 @@
 /*
  * Dalvik Debug Monitor
  */
-#ifndef _DALVIK_DDM
-#define _DALVIK_DDM
+#ifndef DALVIK_DDM_H_
+#define DALVIK_DDM_H_
 
 /*
  * Handle a packet full of DDM goodness.
@@ -84,4 +84,4 @@ ArrayObject* dvmDdmGetStackTraceById(u4 threadId);
  */
 ArrayObject* dvmDdmGetRecentAllocations(void);
 
-#endif /*_DALVIK_DDM*/
+#endif  // DALVIK_DDM_H_
index aaef02d..760463e 100644 (file)
@@ -18,8 +18,8 @@
  * Dalvik-specific side of debugger support.  (The JDWP code is intended to
  * be relatively generic.)
  */
-#ifndef _DALVIK_DEBUGGER
-#define _DALVIK_DEBUGGER
+#ifndef DALVIK_DEBUGGER_H_
+#define DALVIK_DEBUGGER_H_
 
 #include <pthread.h>
 #include "Common.h"
@@ -306,4 +306,4 @@ void dvmDbgDdmSendChunkV(int type, const struct iovec* iov, int iovcnt);
 #define CHUNK_TYPE(_name) \
     ((_name)[0] << 24 | (_name)[1] << 16 | (_name)[2] << 8 | (_name)[3])
 
-#endif /*_DALVIK_DEBUGGER*/
+#endif  // DALVIK_DEBUGGER_H_
index df14760..b3b5960 100644 (file)
@@ -18,8 +18,8 @@
  * The VM wraps some additional data structures around the DexFile.  These
  * are defined here.
  */
-#ifndef _DALVIK_DVMDEX
-#define _DALVIK_DVMDEX
+#ifndef DALVIK_DVMDEX_H_
+#define DALVIK_DVMDEX_H_
 
 #include "libdex/DexFile.h"
 
@@ -158,4 +158,4 @@ INLINE void dvmDexSetResolvedField(DvmDex* pDvmDex, u4 fieldIdx,
     pDvmDex->pResFields[fieldIdx] = field;
 }
 
-#endif /*_DALVIK_DVMDEX*/
+#endif  // DALVIK_DVMDEX_H_
index 81a0e76..3b7bdd9 100644 (file)
@@ -17,8 +17,8 @@
 /*
  * Exception handling.
  */
-#ifndef _DALVIK_EXCEPTION
-#define _DALVIK_EXCEPTION
+#ifndef DALVIK_EXCEPTION_H_
+#define DALVIK_EXCEPTION_H_
 
 /*
  * Create a Throwable and throw an exception in the current thread (where
@@ -482,4 +482,4 @@ void dvmThrowVerifyError(const char* descriptor);
  */
 void dvmThrowVirtualMachineError(const char* msg);
 
-#endif /*_DALVIK_EXCEPTION*/
+#endif  // DALVIK_EXCEPTION_H_
index 518c66f..bf92781 100644 (file)
@@ -26,8 +26,8 @@
  * accessed through a Thread field).  May need to pass it around for some
  * of the early initialization functions.
  */
-#ifndef _DALVIK_GLOBALS
-#define _DALVIK_GLOBALS
+#ifndef DALVIK_GLOBALS_H_
+#define DALVIK_GLOBALS_H_
 
 #include <string>
 #include <vector>
@@ -966,4 +966,4 @@ struct DvmJniGlobals {
 
 extern struct DvmJniGlobals gDvmJni;
 
-#endif /*_DALVIK_GLOBALS*/
+#endif  // DALVIK_GLOBALS_H_
index 12af8a7..38f710f 100644 (file)
--- a/vm/Hash.h
+++ b/vm/Hash.h
@@ -19,8 +19,8 @@
  * When the number of elements reaches a certain percentage of the table's
  * capacity, the table will be resized.
  */
-#ifndef _DALVIK_HASH
-#define _DALVIK_HASH
+#ifndef DALVIK_HASH_H_
+#define DALVIK_HASH_H_
 
 /* compute the hash of an item with a specific type */
 typedef u4 (*HashCompute)(const void* item);
@@ -218,4 +218,4 @@ typedef u4 (*HashCalcFunc)(const void* item);
 void dvmHashTableProbeCount(HashTable* pHashTable, HashCalcFunc calcFunc,
     HashCompareFunc cmpFunc);
 
-#endif /*_DALVIK_HASH*/
+#endif  // DALVIK_HASH_H_
index 165bfb1..aad9f7c 100644 (file)
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#ifndef _DALVIK_INDIRECTREFTABLE
-#define _DALVIK_INDIRECTREFTABLE
+#ifndef DALVIK_INDIRECTREFTABLE_H_
+#define DALVIK_INDIRECTREFTABLE_H_
 
 /*
  * Maintain a table of indirect references.  Used for local/global JNI
@@ -390,4 +390,4 @@ bool dvmRemoveFromIndirectRefTable(IndirectRefTable* pRef, u4 cookie,
  */
 void dvmDumpIndirectRefTable(const IndirectRefTable* pRef, const char* descr);
 
-#endif /*_DALVIK_INDIRECTREFTABLE*/
+#endif  // DALVIK_INDIRECTREFTABLE_H_
index 4d85c2e..5a331a7 100644 (file)
--- a/vm/Init.h
+++ b/vm/Init.h
@@ -17,8 +17,8 @@
 /*
  * VM initialization and shutdown.
  */
-#ifndef _DALVIK_INIT
-#define _DALVIK_INIT
+#ifndef DALVIK_INIT_H_
+#define DALVIK_INIT_H_
 
 /*
  * Standard VM initialization, usually invoked through JNI.
@@ -69,4 +69,4 @@ int dvmFprintf(FILE* fp, const char* format, ...)
 #endif
     ;
 
-#endif /*_DALVIK_INIT*/
+#endif  // DALVIK_INIT_H_
index 64caec9..101ddd1 100644 (file)
@@ -17,8 +17,8 @@
 /*
  * Inlined native functions.
  */
-#ifndef _DALVIK_INLINENATIVE
-#define _DALVIK_INLINENATIVE
+#ifndef DALVIK_INLINENATIVE_H_
+#define DALVIK_INLINENATIVE_H_
 
 /* startup/shutdown */
 bool dvmInlineNativeStartup(void);
@@ -190,4 +190,4 @@ bool javaLangDouble_doubleToRawLongBits(u4 arg0, u4 arg1, u4 arg2,
 bool javaLangDouble_longBitsToDouble(u4 arg0, u4 arg1, u4 arg2, u4 arg,
                                      JValue* pResult);
 
-#endif /*_DALVIK_INLINENATIVE*/
+#endif  // DALVIK_INLINENATIVE_H_
index 207a038..9944e5c 100644 (file)
@@ -16,8 +16,8 @@
 /*
  * Interned strings.
  */
-#ifndef _DALVIK_INTERN
-#define _DALVIK_INTERN
+#ifndef DALVIK_INTERN_H_
+#define DALVIK_INTERN_H_
 
 bool dvmStringInternStartup(void);
 void dvmStringInternShutdown(void);
@@ -26,4 +26,4 @@ StringObject* dvmLookupImmortalInternedString(StringObject* strObj);
 bool dvmIsWeakInternedString(StringObject* strObj);
 void dvmGcDetachDeadInternedStrings(int (*isUnmarkedObject)(void *));
 
-#endif /*_DALVIK_INTERN*/
+#endif  // DALVIK_INTERN_H_
index e199951..d8fd998 100644 (file)
@@ -16,8 +16,8 @@
 /*
  * Decode jar/apk/zip files.
  */
-#ifndef _DALVIK_JARFILE
-#define _DALVIK_JARFILE
+#ifndef DALVIK_JARFILE_H_
+#define DALVIK_JARFILE_H_
 
 /*
  * This represents an open, scanned Jar file.  (It's actually for any Zip
@@ -68,4 +68,4 @@ enum DexCacheStatus {
  */
 DexCacheStatus dvmDexCacheStatus(const char *fileName);
 
-#endif /*_DALVIK_JARFILE*/
+#endif  // DALVIK_JARFILE_H_
index 9412ab8..6e8b717 100644 (file)
@@ -16,8 +16,8 @@
 /*
  * JNI innards, common to the regular and "checked" interfaces.
  */
-#ifndef _DALVIK_JNIINTERNAL
-#define _DALVIK_JNIINTERNAL
+#ifndef DALVIK_JNIINTERNAL_H_
+#define DALVIK_JNIINTERNAL_H_
 
 #include "jni.h"
 
@@ -184,4 +184,4 @@ void dvmReleaseJniMonitors(Thread* self);
  */
 void dvmDumpJniReferenceTables(void);
 
-#endif /*_DALVIK_JNIINTERNAL*/
+#endif  // DALVIK_JNIINTERNAL_H_
index 3305e5b..743b7cc 100644 (file)
@@ -16,8 +16,8 @@
 /*
  * Simple linear memory allocator.
  */
-#ifndef _DALVIK_LINEARALLOC
-#define _DALVIK_LINEARALLOC
+#ifndef DALVIK_LINEARALLOC_H_
+#define DALVIK_LINEARALLOC_H_
 
 /*
  * If this is set, we create additional data structures and make many
@@ -117,4 +117,4 @@ void dvmLinearAllocDump(Object* classLoader);
  */
 bool dvmLinearAllocContains(const void* start, size_t length);
 
-#endif /*_DALVIK_LINEARALLOC*/
+#endif  // DALVIK_LINEARALLOC_H_
index 017548d..8d7aa4c 100644 (file)
--- a/vm/Misc.h
+++ b/vm/Misc.h
@@ -17,8 +17,8 @@
 /*
  * Miscellaneous utility functions.
  */
-#ifndef _DALVIK_MISC
-#define _DALVIK_MISC
+#ifndef DALVIK_MISC_H_
+#define DALVIK_MISC_H_
 
 #include <string>
 
@@ -309,4 +309,4 @@ const char* dvmPathToAbsolutePortion(const char* path);
  */
 std::string dvmStringPrintf(const char* fmt, ...) __attribute__((__format__ (__printf__, 1, 2)));
 
-#endif /*_DALVIK_MISC*/
+#endif  // DALVIK_MISC_H_
index 80ce68a..c790380 100644 (file)
@@ -19,8 +19,8 @@
  * You should follow the JNI function naming conventions, but prefix with
  * "Dalvik_" instead of "Java_".
  */
-#ifndef _DALVIK_NATIVE
-#define _DALVIK_NATIVE
+#ifndef DALVIK_NATIVE_H_
+#define DALVIK_NATIVE_H_
 
 /*
  * Method description; equivalent to a JNI struct.
@@ -109,4 +109,4 @@ void dvmLogNativeMethodEntry(const Method* method, const u4* newFp);
 void dvmLogNativeMethodExit(const Method* method, struct Thread* self,
         const JValue retval);
 
-#endif /*_DALVIK_NATIVE*/
+#endif  // DALVIK_NATIVE_H_
index ddc5532..7a1cddf 100644 (file)
@@ -17,8 +17,8 @@
  * Maintain an expanding set of unique pointer values.  The set is
  * kept in sorted order.
  */
-#ifndef _DALVIK_POINTERSET
-#define _DALVIK_POINTERSET
+#ifndef DALVIK_POINTERSET_H_
+#define DALVIK_POINTERSET_H_
 
 struct PointerSet;   /* private */
 
@@ -91,4 +91,4 @@ void dvmPointerSetIntersect(PointerSet* pSet, const void** ptrArray, int count);
  */
 void dvmPointerSetDump(const PointerSet* pSet);
 
-#endif /*_DALVIK_POINTERSET*/
+#endif  // DALVIK_POINTERSET_H_
index 27d7c89..9aab00c 100644 (file)
@@ -17,8 +17,8 @@
 /*
  * Android's method call profiling goodies.
  */
-#ifndef _DALVIK_PROFILE
-#define _DALVIK_PROFILE
+#ifndef DALVIK_PROFILE_H_
+#define DALVIK_PROFILE_H_
 
 #ifndef NOT_VM      /* for utilities that sneakily include this file */
 
@@ -171,4 +171,4 @@ enum {
 #define METHOD_ACTION(_method)  (((unsigned int)(_method)) & METHOD_ACTION_MASK)
 #define METHOD_COMBINE(_method, _action)    ((_method) | (_action))
 
-#endif /*_DALVIK_PROFILE*/
+#endif  // DALVIK_PROFILE_H_
index ba777bb..358c669 100644 (file)
@@ -18,8 +18,8 @@
  * them directly, except to create the optimized version that we tuck in
  * the cache area.
  */
-#ifndef _DALVIK_RAWDEXFILE
-#define _DALVIK_RAWDEXFILE
+#ifndef DALVIK_RAWDEXFILE_H_
+#define DALVIK_RAWDEXFILE_H_
 
 /*
  * Structure representing a "raw" DEX file, in its unswapped unoptimized
@@ -68,4 +68,4 @@ INLINE const char* dvmGetRawDexFileCacheFileName(RawDexFile* pRawDexFile) {
     return pRawDexFile->cacheFileName;
 }
 
-#endif /*_DALVIK_RAWDEXFILE*/
+#endif  // DALVIK_RAWDEXFILE_H_
index db2389f..100a918 100644 (file)
@@ -20,8 +20,8 @@
  *
  * None of the table functions are synchronized.
  */
-#ifndef _DALVIK_REFERENCETABLE
-#define _DALVIK_REFERENCETABLE
+#ifndef DALVIK_REFERENCETABLE_H_
+#define DALVIK_REFERENCETABLE_H_
 
 /*
  * Table definition.
@@ -122,4 +122,4 @@ void dvmDumpReferenceTable(const ReferenceTable* pRef, const char* descr);
 void dvmDumpReferenceTableContents(Object* const* refs, size_t count,
     const char* descr);
 
-#endif /*_DALVIK_REFERENCETABLE*/
+#endif  // DALVIK_REFERENCETABLE_H_
index ece052c..d1d7a18 100644 (file)
 /*
  * Signal catcher thread.
  */
-#ifndef _DALVIK_SIGNALCATCHER
-#define _DALVIK_SIGNALCATCHER
+#ifndef DALVIK_SIGNALCATCHER_H_
+#define DALVIK_SIGNALCATCHER_H_
 
 bool dvmSignalCatcherStartup(void);
 void dvmSignalCatcherShutdown(void);
 
-#endif /*_DALVIK_SIGNALCATCHER*/
+#endif  // DALVIK_SIGNALCATCHER_H_
index ffbf807..bd5d879 100644 (file)
 /*
  * Stdout/stderr conversion thread.
  */
-#ifndef _DALVIK_STDOUTCONVERTER
-#define _DALVIK_STDOUTCONVERTER
+#ifndef DALVIK_STDOUTCONVERTER_H_
+#define DALVIK_STDOUTCONVERTER_H_
 
 bool dvmStdioConverterStartup(void);
 void dvmStdioConverterShutdown(void);
 
-#endif /*_DALVIK_STDOUTCONVERTER*/
+#endif  // DALVIK_STDOUTCONVERTER_H_
index 14b34fd..2016c03 100644 (file)
--- a/vm/Sync.h
+++ b/vm/Sync.h
@@ -16,8 +16,8 @@
 /*
  * Object synchronization functions.
  */
-#ifndef _DALVIK_SYNC
-#define _DALVIK_SYNC
+#ifndef DALVIK_SYNC_H_
+#define DALVIK_SYNC_H_
 
 /*
  * Monitor shape field.  Used to distinguish immediate thin locks from
@@ -147,4 +147,4 @@ bool dvmHoldsLock(Thread* thread, Object* obj);
 int dvmRelativeCondWait(pthread_cond_t* cond, pthread_mutex_t* mutex,
                          s8 msec, s4 nsec);
 
-#endif /*_DALVIK_SYNC*/
+#endif  // DALVIK_SYNC_H_
index b4c866e..7f14ce5 100644 (file)
@@ -17,8 +17,8 @@
 /*
  * VM thread support.
  */
-#ifndef _DALVIK_THREAD
-#define _DALVIK_THREAD
+#ifndef DALVIK_THREAD_H_
+#define DALVIK_THREAD_H_
 
 #include "jni.h"
 #include "interp/InterpState.h"
@@ -599,4 +599,4 @@ void dvmDumpAllThreadsEx(const DebugOutputTarget* target, bool grabLock);
  */
 void dvmNukeThread(Thread* thread);
 
-#endif /*_DALVIK_THREAD*/
+#endif  // DALVIK_THREAD_H_
index 20c94fb..13832df 100644 (file)
@@ -18,8 +18,8 @@
  * UTF-8 and Unicode string manipulation functions, plus convenience
  * functions for working with java/lang/String.
  */
-#ifndef _DALVIK_STRING
-#define _DALVIK_STRING
+#ifndef DALVIK_STRING_H_
+#define DALVIK_STRING_H_
 
 #include <string>
 #include <vector>
@@ -158,4 +158,4 @@ const u2* dvmStringChars(StringObject* jstr);
  */
 int dvmHashcmpStrings(const void* vstrObj1, const void* vstrObj2);
 
-#endif /*_DALVIK_STRING*/
+#endif  // DALVIK_STRING_H_
index fe5ace9..975328e 100644 (file)
@@ -16,8 +16,8 @@
 /*
  * Garbage-collecting allocator.
  */
-#ifndef _DALVIK_ALLOC_ALLOC
-#define _DALVIK_ALLOC_ALLOC
+#ifndef DALVIK_ALLOC_ALLOC_H_
+#define DALVIK_ALLOC_ALLOC_H_
 
 #include <stddef.h>
 
@@ -151,4 +151,4 @@ bool dvmIsHeapAddress(void *address);
 
 bool dvmIsNonMovingObject(const Object* object);
 
-#endif /*_DALVIK_ALLOC_ALLOC*/
+#endif  // DALVIK_ALLOC_ALLOC_H_
index 96131d1..532c259 100644 (file)
@@ -20,8 +20,8 @@
  * WriteBarrier, and from there to here.
  */
 
-#ifndef _DALVIK_ALLOC_CARDTABLE
-#define _DALVIK_ALLOC_CARDTABLE
+#ifndef DALVIK_ALLOC_CARDTABLE_H_
+#define DALVIK_ALLOC_CARDTABLE_H_
 
 #define GC_CARD_SHIFT 7
 #define GC_CARD_SIZE (1 << GC_CARD_SHIFT)
@@ -70,4 +70,4 @@ void dvmMarkCard(const void *addr);
  */
 void dvmVerifyCardTable(void);
 
-#endif /*_DALVIK_ALLOC_CARDTABLE*/
+#endif  // DALVIK_ALLOC_CARDTABLE_H_
index c3e11dc..32be78d 100644 (file)
@@ -16,8 +16,8 @@
 /*
  * DDM-specific internal heap functions.
  */
-#ifndef _DALVIK_ALLOC_DDMHEAP
-#define _DALVIK_ALLOC_DDMHEAP
+#ifndef DALVIK_ALLOC_DDMHEAP_H_
+#define DALVIK_ALLOC_DDMHEAP_H_
 
 /*
  * Sends the current heap info to the DDM server.
@@ -38,4 +38,4 @@ void dvmDdmSendHeapInfo(int reason, bool shouldLock);
  */
 void dvmDdmSendHeapSegments(bool shouldLock, bool native);
 
-#endif  // _DALVIK_ALLOC_DDMHEAP
+#endif  // DALVIK_ALLOC_DDMHEAP_H_
index 7212429..832b36e 100644 (file)
@@ -16,8 +16,8 @@
 /*
  * Internal heap functions
  */
-#ifndef _DALVIK_ALLOC_HEAP
-#define _DALVIK_ALLOC_HEAP
+#ifndef DALVIK_ALLOC_HEAP_H_
+#define DALVIK_ALLOC_HEAP_H_
 
 struct GcSpec {
   /* If true, only the application heap is threatened. */
@@ -94,4 +94,4 @@ void dvmCollectGarbageInternal(const GcSpec *spec);
  */
 void dvmWaitForConcurrentGcToComplete(void);
 
-#endif  // _DALVIK_ALLOC_HEAP
+#endif  // DALVIK_ALLOC_HEAP_H_
index eba5998..7838eee 100644 (file)
@@ -13,8 +13,8 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-#ifndef _DALVIK_HEAP_BITMAP
-#define _DALVIK_HEAP_BITMAP
+#ifndef DALVIK_HEAP_BITMAP_H_
+#define DALVIK_HEAP_BITMAP_H_
 
 #include <limits.h>
 #include <stdint.h>
@@ -127,4 +127,4 @@ void dvmHeapBitmapSweepWalk(const HeapBitmap *liveHb, const HeapBitmap *markHb,
                             uintptr_t base, uintptr_t max,
                             BitmapSweepCallback *callback, void *callbackArg);
 
-#endif /* _DALVIK_HEAP_BITMAP */
+#endif  // DALVIK_HEAP_BITMAP_H_
index 859ffa3..a5e9be4 100644 (file)
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#ifndef _DALVIK_HEAP_BITMAPINLINES
-#define _DALVIK_HEAP_BITMAPINLINES
+#ifndef DALVIK_HEAP_BITMAPINLINES_H_
+#define DALVIK_HEAP_BITMAPINLINES_H_
 
 static unsigned long dvmHeapBitmapSetAndReturnObjectBit(HeapBitmap *hb, const void *obj) __attribute__((used));
 static void dvmHeapBitmapSetObjectBit(HeapBitmap *hb, const void *obj) __attribute__((used));
@@ -104,4 +104,4 @@ static unsigned long dvmHeapBitmapIsObjectBitSet(const HeapBitmap *hb,
     }
 }
 
-#endif /* _DALVIK_HEAP_BITMAPINLINES */
+#endif  // DALVIK_HEAP_BITMAPINLINES_H_
index 35b274d..de4d65b 100644 (file)
@@ -13,8 +13,8 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-#ifndef _DALVIK_HEAPDEBUG
-#define _DALVIK_HEAPDEBUG
+#ifndef DALVIK_HEAPDEBUG_H_
+#define DALVIK_HEAPDEBUG_H_
 
 enum HeapDebugInfoType {
     kVirtualHeapSize = 0,
@@ -29,4 +29,4 @@ enum HeapDebugInfoType {
  */
 int dvmGetHeapDebugInfo(HeapDebugInfoType info);
 
-#endif  // _DALVIK_HEAPDEBUG
+#endif  // DALVIK_HEAPDEBUG_H_
index c5c0397..0d82570 100644 (file)
@@ -16,8 +16,8 @@
 /*
  * Types and macros used internally by the heap.
  */
-#ifndef _DALVIK_ALLOC_HEAP_INTERNAL
-#define _DALVIK_ALLOC_HEAP_INTERNAL
+#ifndef DALVIK_ALLOC_HEAP_INTERNAL_H_
+#define DALVIK_ALLOC_HEAP_INTERNAL_H_
 
 #include "MarkSweep.h"
 
@@ -97,4 +97,4 @@ void dvmUnlockHeap(void);
 #define FRACTIONAL_PCT(n,max)    ((n) * 100) / (max), \
                                  (((n) * 1000) / (max)) % 10
 
-#endif  // _DALVIK_ALLOC_HEAP_INTERNAL
+#endif  // DALVIK_ALLOC_HEAP_INTERNAL_H_
index 6e67d21..300bd4e 100644 (file)
@@ -13,8 +13,8 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-#ifndef _DALVIK_HEAP_SOURCE
-#define _DALVIK_HEAP_SOURCE
+#ifndef DALVIK_HEAP_SOURCE_H_
+#define DALVIK_HEAP_SOURCE_H_
 
 #include "alloc/Heap.h"
 #include "alloc/HeapInternal.h" // for GcHeap
@@ -203,4 +203,4 @@ void *dvmHeapSourceGetImmuneLimit(bool isPartial);
  */
 size_t dvmHeapSourceGetMaximumSize(void);
 
-#endif  // _DALVIK_HEAP_SOURCE
+#endif  // DALVIK_HEAP_SOURCE_H_
index efad032..94bbf43 100644 (file)
@@ -13,8 +13,8 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-#ifndef _DALVIK_ALLOC_MARK_SWEEP
-#define _DALVIK_ALLOC_MARK_SWEEP
+#ifndef DALVIK_ALLOC_MARK_SWEEP_H_
+#define DALVIK_ALLOC_MARK_SWEEP_H_
 
 #include "alloc/HeapBitmap.h"
 #include "alloc/HeapSource.h"
@@ -61,4 +61,4 @@ void dvmHeapSweepUnmarkedObjects(bool isPartial, bool isConcurrent,
                                  size_t *numObjects, size_t *numBytes);
 void dvmEnqueueClearedReferences(Object **references);
 
-#endif  // _DALVIK_ALLOC_MARK_SWEEP
+#endif  // DALVIK_ALLOC_MARK_SWEEP_H_
index 56d8958..b9370ff 100644 (file)
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#ifndef _DALVIK_ALLOC_VERIFY
-#define _DALVIK_ALLOC_VERIFY
+#ifndef DALVIK_ALLOC_VERIFY_H_
+#define DALVIK_ALLOC_VERIFY_H_
 
 /*
  * Verifies an object reference.
@@ -33,4 +33,4 @@ void dvmVerifyBitmap(const HeapBitmap *bitmap);
  */
 void dvmVerifyRoots(void);
 
-#endif /* _DALVIK_ALLOC_VERIFY */
+#endif  // DALVIK_ALLOC_VERIFY_H_
index f9016f3..ff69a63 100644 (file)
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#ifndef _DALVIK_ALLOC_VISIT
-#define _DALVIK_ALLOC_VISIT
+#ifndef DALVIK_ALLOC_VISIT_H_
+#define DALVIK_ALLOC_VISIT_H_
 
 #include "Dalvik.h"
 
@@ -58,4 +58,4 @@ void dvmVisitObject(Visitor *visitor, Object *obj, void *arg);
  */
 void dvmVisitRoots(RootVisitor *visitor, void *arg);
 
-#endif /* _DALVIK_ALLOC_VISIT */
+#endif  // DALVIK_ALLOC_VISIT_H_
index 98ea7f3..c6204ac 100644 (file)
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#ifndef _DALVIK_ALLOC_VISITINLINES
-#define _DALVIK_ALLOC_VISITINLINES
+#ifndef DALVIK_ALLOC_VISITINLINES_H_
+#define DALVIK_ALLOC_VISITINLINES_H_
 
 /*
  * Visits the instance fields of a class or data object.
@@ -170,4 +170,4 @@ static void visitObject(Visitor *visitor, Object *obj, void *arg)
     }
 }
 
-#endif /* _DALVIK_ALLOC_VISITINLINES */
+#endif  // DALVIK_ALLOC_VISITINLINES_H_
index dd8f129..31b3482 100644 (file)
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#ifndef _DALVIK_ALLOC_WRITEBARRIER
-#define _DALVIK_ALLOC_WRITEBARRIER
+#ifndef DALVIK_ALLOC_WRITEBARRIER_H_
+#define DALVIK_ALLOC_WRITEBARRIER_H_
 
 /*
  * Note writes to the heap. These functions must be called if a field
@@ -50,4 +50,4 @@ INLINE void dvmWriteBarrierArray(const ArrayObject *obj,
     dvmMarkCard((Object *)obj);
 }
 
-#endif /* _DALVIK_ALLOC_WRITEBARRIER */
+#endif  // DALVIK_ALLOC_WRITEBARRIER_H_
index 1eb27b9..51bffd8 100644 (file)
@@ -17,8 +17,8 @@
 /*
  * Dalvik bytecode verifier.
  */
-#ifndef _DALVIK_CODEVERIFY
-#define _DALVIK_CODEVERIFY
+#ifndef DALVIK_CODEVERIFY_H_
+#define DALVIK_CODEVERIFY_H_
 
 #include "analysis/VerifySubs.h"
 #include "analysis/VfyBasicBlock.h"
@@ -321,4 +321,4 @@ void dvmFreeUninitInstanceMap(UninitInstanceMap* uninitMap);
  */
 bool dvmVerifyCodeFlow(VerifierData* vdata);
 
-#endif /*_DALVIK_CODEVERIFY*/
+#endif  // DALVIK_CODEVERIFY_H_
index 9e43f26..297bbc6 100644 (file)
@@ -17,8 +17,8 @@
 /*
  * DEX preparation declarations.
  */
-#ifndef _DALVIK_DEXPREPARE
-#define _DALVIK_DEXPREPARE
+#ifndef DALVIK_DEXPREPARE_H_
+#define DALVIK_DEXPREPARE_H_
 
 /*
  * Global DEX optimizer control.  Determines the circumstances in which we
@@ -134,4 +134,4 @@ bool dvmPrepareDexInMemory(u1* addr, size_t len, DvmDex** ppDvmDex);
 bool dvmCreateInlineSubsTable(void);
 void dvmFreeInlineSubsTable(void);
 
-#endif /*_DALVIK_DEXPREPARE*/
+#endif  // DALVIK_DEXPREPARE_H_
index d98cee9..4487720 100644 (file)
@@ -17,8 +17,8 @@
 /*
  * Dalvik classfile verification.
  */
-#ifndef _DALVIK_DEXVERIFY
-#define _DALVIK_DEXVERIFY
+#ifndef DALVIK_DEXVERIFY_H_
+#define DALVIK_DEXVERIFY_H_
 
 /*
  * Global verification mode.  These must be in order from least verification
@@ -63,4 +63,4 @@ bool dvmVerifyClass(ClassObject* clazz);
  */
 void dvmFreeRegisterMap(RegisterMap* pMap);
 
-#endif /*_DALVIK_DEXVERIFY*/
+#endif  // DALVIK_DEXVERIFY_H_
index 6436f66..5f4acfe 100644 (file)
 /*
  * Liveness analysis.
  */
-#ifndef _DALVIK_LIVENESS
-#define _DALVIK_LIVENESS
+#ifndef DALVIK_LIVENESS_H_
+#define DALVIK_LIVENESS_H_
 
 struct VerifierData;
 
 bool dvmComputeLiveness(struct VerifierData* vdata);
 
-#endif /*_DALVIK_LIVENESS*/
+#endif  // DALVIK_LIVENESS_H_
index 75b6eab..e1825d0 100644 (file)
@@ -17,8 +17,8 @@
 /*
  * Bytecode optimization declarations.
  */
-#ifndef _DALVIK_OPTIMIZE
-#define _DALVIK_OPTIMIZE
+#ifndef DALVIK_OPTIMIZE_H_
+#define DALVIK_OPTIMIZE_H_
 
 /*
  * Entry point from DEX preparation.
@@ -44,4 +44,4 @@ InstField* dvmOptResolveInstField(ClassObject* referrer, u4 ifieldIdx,
 StaticField* dvmOptResolveStaticField(ClassObject* referrer, u4 sfieldIdx,
     VerifyError* pFailure);
 
-#endif /*_DALVIK_OPTIMIZE*/
+#endif  // DALVIK_OPTIMIZE_H_
index 2f34c39..2046899 100644 (file)
@@ -19,8 +19,8 @@
  *
  * These structures should be treated as opaque through most of the VM.
  */
-#ifndef _DALVIK_REGISTERMAP
-#define _DALVIK_REGISTERMAP
+#ifndef DALVIK_REGISTERMAP_H_
+#define DALVIK_REGISTERMAP_H_
 
 #include "analysis/VerifySubs.h"
 #include "analysis/CodeVerify.h"
@@ -263,4 +263,4 @@ INLINE const RegisterMap* dvmGetExpandedRegisterMap(Method* method)
 /* dump stats gathered during register map creation process */
 void dvmRegisterMapDumpStats(void);
 
-#endif /*_DALVIK_REGISTERMAP*/
+#endif  // DALVIK_REGISTERMAP_H_
index 625244d..330be57 100644 (file)
@@ -17,8 +17,8 @@
 /*
  * Dalvik bytecode verification subroutines.
  */
-#ifndef _DALVIK_VERIFYSUBS
-#define _DALVIK_VERIFYSUBS
+#ifndef DALVIK_VERIFYSUBS_H_
+#define DALVIK_VERIFYSUBS_H_
 
 /*
  * InsnFlags is a 32-bit integer with the following layout:
@@ -71,4 +71,4 @@ char dvmDetermineCat1Const(s4 value);
 /* debugging */
 bool dvmWantVerboseVerification(const Method* meth);
 
-#endif /*_DALVIK_VERIFYSUBS*/
+#endif  // DALVIK_VERIFYSUBS_H_
index 6d1d76f..0fc7428 100644 (file)
@@ -18,8 +18,8 @@
  * Basic block functions, as used by the verifier.  (The names were chosen
  * to avoid conflicts with similar structures used by the compiler.)
  */
-#ifndef _DALVIK_VFYBASICBLOCK
-#define _DALVIK_VFYBASICBLOCK
+#ifndef DALVIK_VFYBASICBLOCK_H_
+#define DALVIK_VFYBASICBLOCK_H_
 
 #include "PointerSet.h"
 
@@ -58,4 +58,4 @@ bool dvmComputeVfyBasicBlocks(struct VerifierData* vdata);
  */
 void dvmFreeVfyBasicBlocks(struct VerifierData* vdata);
 
-#endif /*_DALVIK_VFYBASICBLOCK*/
+#endif  // DALVIK_VFYBASICBLOCK_H_
index 2cf2935..fc23254 100644 (file)
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#ifndef _DALVIK_VM_COMPILER
-#define _DALVIK_VM_COMPILER
+#ifndef DALVIK_VM_COMPILER_H_
+#define DALVIK_VM_COMPILER_H_
 
 #include <setjmp.h>
 #include "Thread.h"
@@ -242,4 +242,4 @@ JitInstructionSetType dvmCompilerGetInterpretTemplateSet();
 u8 dvmGetRegResourceMask(int reg);
 void dvmDumpCFG(struct CompilationUnit *cUnit, const char *dirPrefix);
 
-#endif /* _DALVIK_VM_COMPILER */
+#endif  // DALVIK_VM_COMPILER_H_
index bec052a..23dea33 100644 (file)
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#ifndef _DALVIK_VM_COMPILER_IR
-#define _DALVIK_VM_COMPILER_IR
+#ifndef DALVIK_VM_COMPILER_IR_H_
+#define DALVIK_VM_COMPILER_IR_H_
 
 #include "codegen/Optimizer.h"
 
@@ -299,4 +299,4 @@ void dvmCompilerAbort(CompilationUnit *cUnit);
 /* Debug Utilities */
 void dvmCompilerDumpCompilationUnit(CompilationUnit *cUnit);
 
-#endif /* _DALVIK_VM_COMPILER_IR */
+#endif  // DALVIK_VM_COMPILER_IR_H_
index 9a30b34..d635286 100644 (file)
  * limitations under the License.
  */
 
-#ifndef _DALVIK_VM_COMPILER_INTERNAL
-#define _DALVIK_VM_COMPILER_INTERNAL
+#ifndef DALVIK_VM_COMPILER_INTERNAL_H_
+#define DALVIK_VM_COMPILER_INTERNAL_H_
 
 #include "Dalvik.h"
 #include "CompilerUtility.h"
 #include "codegen/CompilerCodegen.h"
 #include "interp/Jit.h"
 
-#endif /* _DALVIK_VM_COMPILER_INTERNAL */
+#endif  // DALVIK_VM_COMPILER_INTERNAL_H_
index 5dd1faf..8a674b8 100644 (file)
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#ifndef _DALVIK_VM_COMPILER_UTILITY
-#define _DALVIK_VM_COMPILER_UTILITY
+#ifndef DALVIK_VM_COMPILER_UTILITY_H_
+#define DALVIK_VM_COMPILER_UTILITY_H_
 
 #include "Dalvik.h"
 
@@ -76,4 +76,4 @@ void dvmGetBlockName(struct BasicBlock *bb, char *name);
 int dvmCompilerCacheFlush(long start, long end, long flags);
 
 
-#endif /* _DALVIK_COMPILER_UTILITY */
+#endif  // DALVIK_COMPILER_UTILITY_H_
index e573d8b..f04c91c 100644 (file)
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#ifndef _DALVIK_VM_DATAFLOW
-#define _DALVIK_VM_DATAFLOW
+#ifndef DALVIK_VM_DATAFLOW_H_
+#define DALVIK_VM_DATAFLOW_H_
 
 #include "Dalvik.h"
 #include "CompilerInternals.h"
@@ -125,4 +125,4 @@ typedef struct ArrayAccessInfo {
 #define DECODE_REG(v)                   (v & 0xffff)
 #define DECODE_SUB(v)                   (((unsigned int) v) >> 16)
 
-#endif /* _DALVIK_VM_DATAFLOW */
+#endif  // DALVIK_VM_DATAFLOW_H_
index 122817d..8032093 100644 (file)
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#ifndef _DALVIK_VM_LOOP
-#define _DALVIK_VM_LOOP
+#ifndef DALVIK_VM_LOOP_H_
+#define DALVIK_VM_LOOP_H_
 
 #include "Dalvik.h"
 #include "CompilerInternals.h"
@@ -45,4 +45,4 @@ bool dvmCompilerFilterLoopBlocks(CompilationUnit *cUnit);
                                     return false;                       \
                                 }
 
-#endif /* _DALVIK_VM_LOOP */
+#endif  // DALVIK_VM_LOOP_H_
index 2e3b107..6495d07 100644 (file)
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#ifndef _DALVIK_VM_COMPILERCODEGEN_H_
-#define _DALVIK_VM_COMPILERCODEGEN_H_
+#ifndef DALVIK_VM_COMPILERCODEGEN_H_
+#define DALVIK_VM_COMPILERCODEGEN_H_
 
 #include "compiler/CompilerIR.h"
 
@@ -71,4 +71,4 @@ int dvmCompilerTargetOptHint(int key);
 /* Implemented in codegen/<target>/<target_variant>/ArchVariant.c */
 void dvmCompilerGenMemBarrier(CompilationUnit *cUnit, int barrierKind);
 
-#endif /* _DALVIK_VM_COMPILERCODEGEN_H_ */
+#endif  // DALVIK_VM_COMPILERCODEGEN_H_
index dd8e788..43d98ed 100644 (file)
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#ifndef _DALVIK_VM_COMPILER_OPTIMIZATION_H
-#define _DALVIK_VM_COMPILER_OPTIMIZATION_H
+#ifndef DALVIK_VM_COMPILER_OPTIMIZATION_H_
+#define DALVIK_VM_COMPILER_OPTIMIZATION_H_
 
 #include "Dalvik.h"
 
@@ -42,4 +42,4 @@ void dvmCompilerApplyLocalOptimizations(struct CompilationUnit *cUnit,
 
 void dvmCompilerApplyGlobalOptimizations(struct CompilationUnit *cUnit);
 
-#endif /* _DALVIK_VM_COMPILER_OPTIMIZATION_H */
+#endif  // DALVIK_VM_COMPILER_OPTIMIZATION_H_
index 46316ff..cbd4c70 100644 (file)
  * limitations under the License.
  */
 
+#ifndef DALVIK_VM_COMPILER_CODEGEN_ARM_ARMLIR_H_
+#define DALVIK_VM_COMPILER_CODEGEN_ARM_ARMLIR_H_
+
 #include "Dalvik.h"
 #include "compiler/CompilerInternals.h"
 
-#ifndef _DALVIK_VM_COMPILER_CODEGEN_ARM_ARMLIR_H
-#define _DALVIK_VM_COMPILER_CODEGEN_ARM_ARMLIR_H
-
 /*
  * r0, r1, r2, r3 are always scratch
  * r4 (rPC) is scratch for Jit, but most be restored when resuming interp
@@ -792,4 +792,4 @@ typedef struct ArmLIR {
 #define CHAIN_CELL_NORMAL_SIZE 12
 #define CHAIN_CELL_PREDICTED_SIZE 16
 
-#endif /* _DALVIK_VM_COMPILER_CODEGEN_ARM_ARMLIR_H */
+#endif  // DALVIK_VM_COMPILER_CODEGEN_ARM_ARMLIR_H_
index 2660108..cc4c0ae 100644 (file)
  * limitations under the License.
  */
 
-#include "Dalvik.h"
+#ifndef DALVIK_VM_COMPILER_CODEGEN_ARM_CALLOUT_HELPER_H_
+#define DALVIK_VM_COMPILER_CODEGEN_ARM_CALLOUT_HELPER_H_
 
-#ifndef _DALVIK_VM_COMPILER_CODEGEN_ARM_CALLOUT_HELPER_H
-#define _DALVIK_VM_COMPILER_CODEGEN_ARM_CALLOUT_HELPER_H
+#include "Dalvik.h"
 
 /*
  * Declare/comment prototypes of all native callout functions invoked by the
@@ -121,4 +121,4 @@ extern "C" double sqrt(double x);  // INLINE_MATH_SQRT
  *      dvmLockObject           // MONITOR_ENTER
  */
 
-#endif /* _DALVIK_VM_COMPILER_CODEGEN_ARM_CALLOUT_HELPER_H */
+#endif  // DALVIK_VM_COMPILER_CODEGEN_ARM_CALLOUT_HELPER_H_
index 452f2a5..727c521 100644 (file)
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#ifndef _DALVIK_VM_COMPILER_CODEGEN_ARM_ARMV5TE_VFP_ARCHVARIANT_H
-#define _DALVIK_VM_COMPILER_CODEGEN_ARM_ARMV5TE_VFP_ARCHVARIANT_H
+#ifndef DALVIK_VM_COMPILER_CODEGEN_ARM_ARMV5TE_VFP_ARCHVARIANT_H_
+#define DALVIK_VM_COMPILER_CODEGEN_ARM_ARMV5TE_VFP_ARCHVARIANT_H_
 
 /* Create the TemplateOpcode enum */
 #define JIT_TEMPLATE(X) TEMPLATE_##X,
@@ -31,4 +31,4 @@ enum TemplateOpcode {
 };
 #undef JIT_TEMPLATE
 
-#endif /* _DALVIK_VM_COMPILER_CODEGEN_ARM_ARMV5TE_VFP_ARCHVARIANT_H */
+#endif  // DALVIK_VM_COMPILER_CODEGEN_ARM_ARMV5TE_VFP_ARCHVARIANT_H_
index 07a1c8c..39a9548 100644 (file)
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#ifndef _DALVIK_VM_COMPILER_CODEGEN_ARM_ARMV5TE_ARCHVARIANT_H
-#define _DALVIK_VM_COMPILER_CODEGEN_ARM_ARMV5TE_ARCHVARIANT_H
+#ifndef DALVIK_VM_COMPILER_CODEGEN_ARM_ARMV5TE_ARCHVARIANT_H_
+#define DALVIK_VM_COMPILER_CODEGEN_ARM_ARMV5TE_ARCHVARIANT_H_
 
 /* Create the TemplateOpcode enum */
 #define JIT_TEMPLATE(X) TEMPLATE_##X,
@@ -31,4 +31,4 @@ enum TemplateOpcode {
 };
 #undef JIT_TEMPLATE
 
-#endif /* _DALVIK_VM_COMPILER_CODEGEN_ARM_ARMV5TE_ARCHVARIANT_H */
+#endif  // DALVIK_VM_COMPILER_CODEGEN_ARM_ARMV5TE_ARCHVARIANT_H_
index fa01210..33e262c 100644 (file)
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#ifndef _DALVIK_VM_COMPILER_CODEGEN_ARM_ARMV5TE_VFP_ARCHVARIANT_H
-#define _DALVIK_VM_COMPILER_CODEGEN_ARM_ARMV5TE_VFP_ARCHVARIANT_H
+#ifndef DALVIK_VM_COMPILER_CODEGEN_ARM_ARMV5TE_VFP_ARCHVARIANT_H_
+#define DALVIK_VM_COMPILER_CODEGEN_ARM_ARMV5TE_VFP_ARCHVARIANT_H_
 
 /* Create the TemplateOpcode enum */
 #define JIT_TEMPLATE(X) TEMPLATE_##X,
@@ -31,4 +31,4 @@ typedef enum {
 } TemplateOpcode;
 #undef JIT_TEMPLATE
 
-#endif /* _DALVIK_VM_COMPILER_CODEGEN_ARM_ARMV5TE_VFP_ARCHVARIANT_H */
+#endif  // DALVIK_VM_COMPILER_CODEGEN_ARM_ARMV5TE_VFP_ARCHVARIANT_H_
index 66e236b..b4f4eb7 100644 (file)
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#ifndef _DALVIK_VM_COMPILER_CODEGEN_ARM_ARMV7_A_ARCHVARIANT_H
-#define _DALVIK_VM_COMPILER_CODEGEN_ARM_ARMV7_A_ARCHVARIANT_H
+#ifndef DALVIK_VM_COMPILER_CODEGEN_ARM_ARMV7_A_ARCHVARIANT_H_
+#define DALVIK_VM_COMPILER_CODEGEN_ARM_ARMV7_A_ARCHVARIANT_H_
 
 /* Create the TemplateOpcode enum */
 #define JIT_TEMPLATE(X) TEMPLATE_##X,
@@ -31,4 +31,4 @@ enum TemplateOpcode {
 };
 #undef JIT_TEMPLATE
 
-#endif /* _DALVIK_VM_COMPILER_CODEGEN_ARM_ARMV7_A_ARCHVARIANT_H */
+#endif  // DALVIK_VM_COMPILER_CODEGEN_ARM_ARMV7_A_ARCHVARIANT_H_
index 52c030f..3490f04 100644 (file)
  * limitations under the License.
  */
 
-#include "Dalvik.h"
+#ifndef DALVIK_VM_COMPILER_CODEGEN_X86_CALLOUT_HELPER_H_
+#define DALVIK_VM_COMPILER_CODEGEN_X86_CALLOUT_HELPER_H_
 
-#ifndef _DALVIK_VM_COMPILER_CODEGEN_X86_CALLOUT_HELPER_H
-#define _DALVIK_VM_COMPILER_CODEGEN_X86_CALLOUT_HELPER_H
+#include "Dalvik.h"
 
 /*
  * Declare/comment prototypes of all native callout functions invoked by the
@@ -56,4 +56,4 @@ Object* dvmAllocObject(ClassObject* clazz, int flags);  // OP_NEW_INSTANCE
  */
 extern "C" double sqrt(double x);  // INLINE_MATH_SQRT
 
-#endif /* _DALVIK_VM_COMPILER_CODEGEN_X86_CALLOUT_HELPER_H */
+#endif  // DALVIK_VM_COMPILER_CODEGEN_X86_CALLOUT_HELPER_H_
index 19f08e1..863aeab 100644 (file)
  * limitations under the License.
  */
 
+#ifndef DALVIK_VM_COMPILER_CODEGEN_X86_X86LIR_H_
+#define DALVIK_VM_COMPILER_CODEGEN_X86_X86LIR_H_
+
 #include "Dalvik.h"
 #include "compiler/CompilerInternals.h"
 
-#ifndef _DALVIK_VM_COMPILER_CODEGEN_X86_X86LIR_H
-#define _DALVIK_VM_COMPILER_CODEGEN_X86_X86LIR_H
-
 /*
  * For both JIT & interpreter:
  *     esi is Dalvik FP
@@ -179,4 +179,4 @@ typedef struct X86LIR {
 #define CHAIN_CELL_NORMAL_SIZE 12
 #define CHAIN_CELL_PREDICTED_SIZE 16
 
-#endif /* _DALVIK_VM_COMPILER_CODEGEN_X86_X86LIR_H */
+#endif  // DALVIK_VM_COMPILER_CODEGEN_X86_X86LIR_H_
index c5ce38e..f1c21d3 100644 (file)
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#ifndef _DALVIK_VM_COMPILER_CODEGEN_X86_IA32_ARCHVARIANT_H
-#define _DALVIK_VM_COMPILER_CODEGEN_X86_IA32_ARCHVARIANT_H
+#ifndef DALVIK_VM_COMPILER_CODEGEN_X86_IA32_ARCHVARIANT_H_
+#define DALVIK_VM_COMPILER_CODEGEN_X86_IA32_ARCHVARIANT_H_
 
 /* Create the TemplateOpcode enum */
 #define JIT_TEMPLATE(X) TEMPLATE_##X,
@@ -31,4 +31,4 @@ enum TemplateOpcode {
 };
 #undef JIT_TEMPLATE
 
-#endif /* _DALVIK_VM_COMPILER_CODEGEN_X86_IA32_ARCHVARIANT_H */
+#endif  // DALVIK_VM_COMPILER_CODEGEN_X86_IA32_ARCHVARIANT_H_
index e31ccc3..3ee8c61 100644 (file)
@@ -13,8 +13,8 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-#ifndef _DALVIK_HPROF_HPROF
-#define _DALVIK_HPROF_HPROF
+#ifndef DALVIK_HPROF_HPROF_H_
+#define DALVIK_HPROF_HPROF_H_
 
 #include "Dalvik.h"
 
@@ -224,4 +224,4 @@ bool hprofShutdown(hprof_context_t *ctx);
 void hprofFreeContext(hprof_context_t *ctx);
 int hprofDumpHeap(const char* fileName, int fd, bool directToDdms);
 
-#endif  // _DALVIK_HPROF_HPROF
+#endif  // DALVIK_HPROF_HPROF_H_
index 0667a2e..060f86a 100644 (file)
@@ -17,8 +17,8 @@
 /*
  * Dalvik interpreter public definitions.
  */
-#ifndef _DALVIK_INTERP_INTERP
-#define _DALVIK_INTERP_INTERP
+#ifndef DALVIK_INTERP_INTERP_H_
+#define DALVIK_INTERP_INTERP_H_
 
 /*
  * Stash the dalvik PC in the frame.  Called  during interpretation.
@@ -115,4 +115,4 @@ extern void* dvmAsmInstructionStart[];
 extern void* dvmAsmAltInstructionStart[];
 #endif
 
-#endif /*_DALVIK_INTERP_INTERP*/
+#endif  // DALVIK_INTERP_INTERP_H_
index f362442..acec648 100644 (file)
@@ -21,8 +21,8 @@
  *
  * Functions and globals declared here are defined in Interp.c.
  */
-#ifndef _DALVIK_INTERP_DEFS
-#define _DALVIK_INTERP_DEFS
+#ifndef DALVIK_INTERP_DEFS_H_
+#define DALVIK_INTERP_DEFS_H_
 
 #if defined(WITH_JIT)
 /*
@@ -105,4 +105,4 @@ static inline bool dvmJitHideTranslation()
 
 #endif
 
-#endif /*_DALVIK_INTERP_DEFS*/
+#endif  // DALVIK_INTERP_DEFS_H_
index 9b21bd1..37b7fdd 100644 (file)
@@ -21,8 +21,8 @@
  *
  * Functions and globals declared here are defined in Interp.c.
  */
-#ifndef _DALVIK_INTERP_STATE
-#define _DALVIK_INTERP_STATE
+#ifndef DALVIK_INTERP_STATE_H_
+#define DALVIK_INTERP_STATE_H_
 
 /*
  * Execution mode, e.g. interpreter vs. JIT.
@@ -234,4 +234,4 @@ struct JitTraceRun {
 
 #endif
 
-#endif /*_DALVIK_INTERP_STATE*/
+#endif  // DALVIK_INTERP_STATE_H_
index 89256ca..962040b 100644 (file)
@@ -16,8 +16,8 @@
 /*
  * Jit control
  */
-#ifndef _DALVIK_INTERP_JIT
-#define _DALVIK_INTERP_JIT
+#ifndef DALVIK_INTERP_JIT_H_
+#define DALVIK_INTERP_JIT_H_
 
 #include "InterpDefs.h"
 #include "mterp/common/jit-config.h"
@@ -177,4 +177,4 @@ void dvmJitUpdateThreadStateAll(void);
 void dvmJitResumeTranslation(Thread* self, const u2* pc, const u4* fp);
 }
 
-#endif /*_DALVIK_INTERP_JIT*/
+#endif  // DALVIK_INTERP_JIT_H_
index ec62e11..ef3db4a 100644 (file)
@@ -17,8 +17,8 @@
 /*
  * Stack frames, and uses thereof.
  */
-#ifndef _DALVIK_INTERP_STACK
-#define _DALVIK_INTERP_STACK
+#ifndef DALVIK_INTERP_STACK_H_
+#define DALVIK_INTERP_STACK_H_
 
 #include "jni.h"
 #include <stdarg.h>
@@ -276,4 +276,4 @@ extern "C" void dvmCleanupStackOverflow(Thread* self, const Object* exception);
 void dvmDumpThreadStack(const DebugOutputTarget* target, Thread* thread);
 void dvmDumpRunningThreadStack(const DebugOutputTarget* target, Thread* thread);
 
-#endif /*_DALVIK_INTERP_STACK*/
+#endif  // DALVIK_INTERP_STACK_H_
index 6bdab0f..0bbc0c6 100644 (file)
@@ -16,8 +16,8 @@
 /*
  * Expanding byte buffer, with primitives for appending basic data types.
  */
-#ifndef _DALVIK_JDWP_EXPANDBUF
-#define _DALVIK_JDWP_EXPANDBUF
+#ifndef DALVIK_JDWP_EXPANDBUF_H_
+#define DALVIK_JDWP_EXPANDBUF_H_
 
 #include "Common.h"     // need u1/u2/u4/u8 types
 
@@ -53,4 +53,4 @@ void expandBufAdd4BE(ExpandBuf* pBuf, u4 val);
 void expandBufAdd8BE(ExpandBuf* pBuf, u8 val);
 void expandBufAddUtf8String(ExpandBuf* pBuf, const u1* str);
 
-#endif /*_DALVIK_JDWP_EXPANDBUF*/
+#endif  // DALVIK_JDWP_EXPANDBUF_H_
index 9199a1e..467cecd 100644 (file)
@@ -21,8 +21,8 @@
  * attempts to remain independent of VM innards (e.g. it doesn't access VM
  * data structures directly).  All calls go through Debugger.c.
  */
-#ifndef _DALVIK_JDWP_JDWP
-#define _DALVIK_JDWP_JDWP
+#ifndef DALVIK_JDWP_JDWP_H_
+#define DALVIK_JDWP_JDWP_H_
 
 #include "jdwp/JdwpConstants.h"
 #include "jdwp/ExpandBuf.h"
@@ -233,4 +233,4 @@ bool dvmJdwpPostVMDeath(JdwpState* state);
 void dvmJdwpDdmSendChunkV(JdwpState* state, int type, const struct iovec* iov,
     int iovcnt);
 
-#endif /*_DALVIK_JDWP_JDWP*/
+#endif  // DALVIK_JDWP_JDWP_H_
index f3049e5..28e6d45 100644 (file)
@@ -16,8 +16,8 @@
 /*
  * These come out of the JDWP documentation.
  */
-#ifndef _DALVIK_JDWP_JDWPCONSTANTS
-#define _DALVIK_JDWP_JDWPCONSTANTS
+#ifndef DALVIK_JDWP_JDWPCONSTANTS_H_
+#define DALVIK_JDWP_JDWPCONSTANTS_H_
 
 /*
  * Error constants.
@@ -226,4 +226,4 @@ enum JdwpType {
     JT_CLASS_OBJECT          = 'c',
 };
 
-#endif /*_DALVIK_JDWP_JDWPCONSTANTS*/
+#endif  // DALVIK_JDWP_JDWPCONSTANTS_H_
index 1eb9b15..c7d3e3c 100644 (file)
@@ -16,8 +16,8 @@
 /*
  * Handle registration of events, and debugger event notification.
  */
-#ifndef _DALVIK_JDWP_JDWPEVENT
-#define _DALVIK_JDWP_JDWPEVENT
+#ifndef DALVIK_JDWP_JDWPEVENT_H_
+#define DALVIK_JDWP_JDWPEVENT_H_
 
 #include "JdwpConstants.h"
 #include "ExpandBuf.h"
@@ -126,4 +126,4 @@ void dvmJdwpUnregisterAll(JdwpState* state);
  */
 bool dvmJdwpSendRequest(JdwpState* state, ExpandBuf* pReq);
 
-#endif /*_DALVIK_JDWP_JDWPEVENT*/
+#endif  // DALVIK_JDWP_JDWPEVENT_H_
index aade65d..6381270 100644 (file)
@@ -16,8 +16,8 @@
 /*
  * Handle requests.
  */
-#ifndef _DALVIK_JDWP_JDWPHANDLER
-#define _DALVIK_JDWP_JDWPHANDLER
+#ifndef DALVIK_JDWP_JDWPHANDLER_H_
+#define DALVIK_JDWP_JDWPHANDLER_H_
 
 #include "Common.h"
 #include "ExpandBuf.h"
@@ -44,4 +44,4 @@ void dvmJdwpProcessRequest(JdwpState* state, const JdwpReqHeader* pHeader,
 /* helper function */
 void dvmJdwpAddLocation(ExpandBuf* pReply, const JdwpLocation* pLoc);
 
-#endif /*_DALVIK_JDWP_JDWPHANDLER*/
+#endif  // DALVIK_JDWP_JDWPHANDLER_H_
index 6b15fa9..11c3438 100644 (file)
@@ -16,8 +16,8 @@
 /*
  * JDWP internal interfaces.
  */
-#ifndef _DALVIK_JDWP_JDWPPRIV
-#define _DALVIK_JDWP_JDWPPRIV
+#ifndef DALVIK_JDWP_JDWPPRIV_H_
+#define DALVIK_JDWP_JDWPPRIV_H_
 
 #define LOG_TAG "jdwp"
 
@@ -174,4 +174,4 @@ INLINE bool dvmJdwpSendBufferedRequest(JdwpState* state,
     return (*state->transport->sendBufferedRequest)(state, iov, iovcnt);
 }
 
-#endif /*_DALVIK_JDWP_JDWPPRIV*/
+#endif  // DALVIK_JDWP_JDWPPRIV_H_
index d68e0b1..b27e4f7 100644 (file)
@@ -17,8 +17,8 @@
 /*
  * Some declarations used throughout mterp.
  */
-#ifndef _DALVIK_MTERP_MTERP
-#define _DALVIK_MTERP_MTERP
+#ifndef DALVIK_MTERP_MTERP_H_
+#define DALVIK_MTERP_MTERP_H_
 
 #include "Dalvik.h"
 #include "interp/InterpDefs.h"
@@ -51,4 +51,4 @@ extern "C" void dvmMterpStdBail(Thread* self, bool changeInterp);
  */
 extern "C" void dvmMterpPrintMethod(Method* method);
 
-#endif /*_DALVIK_MTERP_MTERP*/
+#endif  // DALVIK_MTERP_MTERP_H_
index e6b210d..006fc1e 100644 (file)
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#ifndef _DALVIK_NATIVE_INTERNALNATIVE
-#define _DALVIK_NATIVE_INTERNALNATIVE
+#ifndef DALVIK_NATIVE_INTERNALNATIVE_H_
+#define DALVIK_NATIVE_INTERNALNATIVE_H_
 
 /*
  * Some setup for internal native functions.
@@ -29,4 +29,4 @@ DalvikNativeFunc dvmLookupInternalNativeMethod(const Method* method);
 /* exception-throwing stub for abstract methods (DalvikNativeFunc) */
 extern "C" void dvmAbstractMethodStub(const u4* args, JValue* pResult);
 
-#endif /*_DALVIK_NATIVE_INTERNALNATIVE*/
+#endif  // DALVIK_NATIVE_INTERNALNATIVE_H_
index 9489ca2..0925a61 100644 (file)
@@ -17,8 +17,8 @@
 /*
  * Declarations and definitions common to internal native code.
  */
-#ifndef _DALVIK_NATIVE_INTERNALNATIVEPRIV
-#define _DALVIK_NATIVE_INTERNALNATIVEPRIV
+#ifndef DALVIK_NATIVE_INTERNALNATIVEPRIV_H_
+#define DALVIK_NATIVE_INTERNALNATIVEPRIV_H_
 
 /*
  * Return macros.  Note we use "->i" instead of "->z" for boolean; this
@@ -112,4 +112,4 @@ extern const DalvikNativeMethod dvm_org_apache_harmony_dalvik_ddmc_DdmVmInternal
 extern const DalvikNativeMethod dvm_org_apache_harmony_dalvik_NativeTestTarget[];
 extern const DalvikNativeMethod dvm_sun_misc_Unsafe[];
 
-#endif /*_DALVIK_NATIVE_INTERNALNATIVEPRIV*/
+#endif  // DALVIK_NATIVE_INTERNALNATIVEPRIV_H_
index 105c9e1..61d1650 100644 (file)
@@ -16,8 +16,8 @@
 /*
  * Check access to fields and methods.
  */
-#ifndef _DALVIK_OO_ACCESSCHECK
-#define _DALVIK_OO_ACCESSCHECK
+#ifndef DALVIK_OO_ACCESSCHECK_H_
+#define DALVIK_OO_ACCESSCHECK_H_
 
 /*
  * Determine whether the "accessFrom" class is allowed to get at "clazz".
@@ -40,4 +40,4 @@ bool dvmCheckFieldAccess(const ClassObject* accessFrom, const Field* field);
  */
 bool dvmInSamePackage(const ClassObject* class1, const ClassObject* class2);
 
-#endif /*_DALVIK_OO_ACCESSCHECK*/
+#endif  // DALVIK_OO_ACCESSCHECK_H_
index ea68f84..5390b1d 100644 (file)
@@ -16,8 +16,8 @@
 /*
  * Array handling.
  */
-#ifndef _DALVIK_OO_ARRAY
-#define _DALVIK_OO_ARRAY
+#ifndef DALVIK_OO_ARRAY_H_
+#define DALVIK_OO_ARRAY_H_
 
 /*
  * Find a matching array class.  If it doesn't exist, create it.
@@ -137,4 +137,4 @@ size_t dvmArrayObjectSize(const ArrayObject *array);
  */
 size_t dvmArrayClassElementWidth(const ClassObject* clazz);
 
-#endif /*_DALVIK_OO_ARRAY*/
+#endif  // DALVIK_OO_ARRAY_H_
index f859a6d..349c666 100644 (file)
@@ -16,8 +16,8 @@
 /*
  * Class loader.
  */
-#ifndef _DALVIK_OO_CLASS
-#define _DALVIK_OO_CLASS
+#ifndef DALVIK_OO_CLASS_H_
+#define DALVIK_OO_CLASS_H_
 
 /*
  * The classpath and bootclasspath differ in that only the latter is
@@ -281,4 +281,4 @@ int dvmCompareNameDescriptorAndMethod(const char* name,
  */
 size_t dvmClassObjectSize(const ClassObject *clazz);
 
-#endif /*_DALVIK_OO_CLASS*/
+#endif  // DALVIK_OO_CLASS_H_
index d3c3f0a..f43ecb5 100644 (file)
@@ -18,8 +18,8 @@
  * Declaration of the fundamental Object type and refinements thereof, plus
  * some functions for manipulating them.
  */
-#ifndef _DALVIK_OO_OBJECT
-#define _DALVIK_OO_OBJECT
+#ifndef DALVIK_OO_OBJECT_H_
+#define DALVIK_OO_OBJECT_H_
 
 #include <stddef.h>
 #include "Atomic.h"
@@ -769,4 +769,4 @@ INLINE u4 dvmGetMethodInsnsSize(const Method* meth) {
 /* debugging */
 void dvmDumpObject(const Object* obj);
 
-#endif /*_DALVIK_OO_OBJECT*/
+#endif  // DALVIK_OO_OBJECT_H_
index e47464b..44ce807 100644 (file)
@@ -17,8 +17,8 @@
 /*
  * Helper functions to access data fields in Objects.
  */
-#ifndef _DALVIK_OO_OBJECTINLINES
-#define _DALVIK_OO_OBJECTINLINES
+#ifndef DALVIK_OO_OBJECTINLINES_H_
+#define DALVIK_OO_OBJECTINLINES_H_
 
 /*
  * Store a single value in the array, and if the value isn't null,
@@ -354,4 +354,4 @@ INLINE void dvmSetStaticFieldObjectVolatile(StaticField* sfield, Object* val) {
     }
 }
 
-#endif /*_DALVIK_OO_OBJECTINLINES*/
+#endif  // DALVIK_OO_OBJECTINLINES_H_
index 5eb6814..56a35b7 100644 (file)
@@ -16,8 +16,8 @@
 /*
  * Resolve "constant pool" references into pointers to VM structs.
  */
-#ifndef _DALVIK_OO_RESOLVE
-#define _DALVIK_OO_RESOLVE
+#ifndef DALVIK_OO_RESOLVE_H_
+#define DALVIK_OO_RESOLVE_H_
 
 /*
  * "Direct" and "virtual" methods are stored independently.  The type of call
@@ -95,4 +95,4 @@ extern "C" StringObject* dvmResolveString(const ClassObject* referrer, u4 string
  */
 const char* dvmMethodTypeStr(MethodType methodType);
 
-#endif /*_DALVIK_OO_RESOLVE*/
+#endif  // DALVIK_OO_RESOLVE_H_
index 6ffdfe8..c3f19ea 100644 (file)
@@ -16,8 +16,8 @@
 /*
  * instanceof, checkcast, etc.
  */
-#ifndef _DALVIK_OO_TYPECHECK
-#define _DALVIK_OO_TYPECHECK
+#ifndef DALVIK_OO_TYPECHECK_H_
+#define DALVIK_OO_TYPECHECK_H_
 
 /* VM startup/shutdown */
 bool dvmInstanceofStartup(void);
@@ -75,4 +75,4 @@ INLINE int dvmIsSubClass(const ClassObject* sub, const ClassObject* clazz) {
 extern "C" bool dvmCanPutArrayElement(const ClassObject* elemClass,
     const ClassObject* arrayClass);
 
-#endif /*_DALVIK_OO_TYPECHECK*/
+#endif  // DALVIK_OO_TYPECHECK_H_
index 63260b5..21bb08d 100644 (file)
@@ -16,8 +16,8 @@
 /*
  * Basic reflection calls and utility functions.
  */
-#ifndef _DALVIK_REFLECT_REFLECT
-#define _DALVIK_REFLECT_REFLECT
+#ifndef DALVIK_REFLECT_REFLECT_H_
+#define DALVIK_REFLECT_REFLECT_H_
 
 /*
  * During startup, validate the "box" classes, e.g. java/lang/Integer.
@@ -260,4 +260,4 @@ bool dvmEncodedArrayIteratorHasNext(const EncodedArrayIterator* iterator);
 bool dvmEncodedArrayIteratorGetNext(EncodedArrayIterator* iterator,
         AnnotationValue* value);
 
-#endif /*_DALVIK_REFLECT_REFLECT*/
+#endif  // DALVIK_REFLECT_REFLECT_H_
index f17526f..e5acdfd 100644 (file)
 /*
  * Internal unit tests.
  */
-#ifndef _DALVIK_TEST_TEST
-#define _DALVIK_TEST_TEST
+#ifndef DALVIK_TEST_TEST_H_
+#define DALVIK_TEST_TEST_H_
 
 bool dvmTestHash(void);
 bool dvmTestAtomicSpeed(void);
 bool dvmTestIndirectRefTable(void);
 
-#endif /*_DALVIK_TEST_TEST*/
+#endif  // DALVIK_TEST_TEST_H_