[cig-commits] commit: Initialising nameAllocationType to NON_GLOBAL, to get rid of compile warnings

Mercurial hg at geodynamics.org
Mon Feb 1 15:33:09 PST 2010


changeset:   743:7e392c26eb0b
branch:      pcu_rejig
user:        JulianGiordani
date:        Wed Dec 16 11:55:56 2009 +1100
files:       Base/Context/src/Codelet.c Base/Context/src/ContextEntryPoint.c Base/Context/src/Variable.c Base/Extensibility/src/ClassHook.c Base/Extensibility/src/ClassPtrExtensionInfo.c Base/Extensibility/src/EntryPoint.c Base/Extensibility/src/ExtensionManager.c Base/Extensibility/src/Hook.c Base/Extensibility/src/Plugin.c Base/Extensibility/src/SimpleExtensionInfo.c Base/Extensibility/src/Toolbox.c Base/Foundation/src/ObjectAdaptor.c
description:
Initialising nameAllocationType to NON_GLOBAL, to get rid of compile warnings


diff -r 427a033af921 -r 7e392c26eb0b Base/Context/src/Codelet.c
--- a/Base/Context/src/Codelet.c	Wed Dec 16 11:12:08 2009 +1100
+++ b/Base/Context/src/Codelet.c	Wed Dec 16 11:55:56 2009 +1100
@@ -77,7 +77,7 @@ void* Codelet_New(
 	Stg_Class_CopyFunction*          _copy = _Codelet_Copy;
 
 	/* Variables that are set to ZERO are variables that will be set either by the current _New function or another parent _New function further up the hierachy */
-	AllocationType  nameAllocationType = ZERO;
+	AllocationType  nameAllocationType = NON_GLOBAL /* default value NON_GLOBAL */;
 
 	return _Codelet_New(  CODELET_PASSARGS  );
 }
diff -r 427a033af921 -r 7e392c26eb0b Base/Context/src/ContextEntryPoint.c
--- a/Base/Context/src/ContextEntryPoint.c	Wed Dec 16 11:12:08 2009 +1100
+++ b/Base/Context/src/ContextEntryPoint.c	Wed Dec 16 11:55:56 2009 +1100
@@ -60,7 +60,7 @@ ContextEntryPoint* ContextEntryPoint_New
 	EntryPoint_GetRunFunction*      _getRun = _ContextEntryPoint_GetRun;
 
 	/* Variables that are set to ZERO are variables that will be set either by the current _New function or another parent _New function further up the hierachy */
-	AllocationType  nameAllocationType = ZERO;
+	AllocationType  nameAllocationType = NON_GLOBAL /* default value NON_GLOBAL */;
 
 	return _ContextEntryPoint_New(  CONTEXTENTRYPOINT_PASSARGS  );
 }
diff -r 427a033af921 -r 7e392c26eb0b Base/Context/src/Variable.c
--- a/Base/Context/src/Variable.c	Wed Dec 16 11:12:08 2009 +1100
+++ b/Base/Context/src/Variable.c	Wed Dec 16 11:55:56 2009 +1100
@@ -85,7 +85,7 @@ Variable* Variable_New(
 	Stg_Component_DestroyFunction*                        _destroy = _Variable_Destroy;
 
 	/* Variables that are set to ZERO are variables that will be set either by the current _New function or another parent _New function further up the hierachy */
-	AllocationType  nameAllocationType = ZERO;
+	AllocationType  nameAllocationType = NON_GLOBAL /* default value NON_GLOBAL */;
 
 	Variable* self = _Variable_New(  VARIABLE_PASSARGS  );
 
@@ -120,7 +120,7 @@ Variable* _Variable_DefaultNew( Name nam
 	Variable_Register*                                          vr = NULL;
 
 	/* Variables that are set to ZERO are variables that will be set either by the current _New function or another parent _New function further up the hierachy */
-	AllocationType  nameAllocationType = ZERO;
+	AllocationType  nameAllocationType = NON_GLOBAL /* default value NON_GLOBAL */;
 
 	Variable* self = _Variable_New(  VARIABLE_PASSARGS  );
 	
@@ -153,7 +153,7 @@ Variable* Variable_NewScalar(
 	SizeT*                                           structSizePtr = 0;
 
 	/* Variables that are set to ZERO are variables that will be set either by the current _New function or another parent _New function further up the hierachy */
-	AllocationType  nameAllocationType = ZERO;
+	AllocationType  nameAllocationType = NON_GLOBAL /* default value NON_GLOBAL */;
 
 	Variable*			self;
 	SizeT					dataOffsets[] = { 0 };
@@ -197,7 +197,7 @@ Variable* Variable_NewVector(
 	SizeT*                                           structSizePtr = 0;
 
 	/* Variables that are set to ZERO are variables that will be set either by the current _New function or another parent _New function further up the hierachy */
-	AllocationType  nameAllocationType = ZERO;
+	AllocationType  nameAllocationType = NON_GLOBAL /* default value NON_GLOBAL */;
 
 	Variable*			self;
 	SizeT					dataOffsets[] = { 0 };
@@ -255,7 +255,7 @@ Variable* Variable_NewVector2(
 	SizeT*                                           structSizePtr = 0;
 
 	/* Variables that are set to ZERO are variables that will be set either by the current _New function or another parent _New function further up the hierachy */
-	AllocationType  nameAllocationType = ZERO;
+	AllocationType  nameAllocationType = NON_GLOBAL /* default value NON_GLOBAL */;
 
 	Variable*			self;
 	SizeT					dataOffsets[] = { 0 };
diff -r 427a033af921 -r 7e392c26eb0b Base/Extensibility/src/ClassHook.c
--- a/Base/Extensibility/src/ClassHook.c	Wed Dec 16 11:12:08 2009 +1100
+++ b/Base/Extensibility/src/ClassHook.c	Wed Dec 16 11:55:56 2009 +1100
@@ -58,7 +58,7 @@ ClassHook* ClassHook_New( Name name, Fun
 	Stg_Class_CopyFunction*          _copy = _ClassHook_Copy;
 
 	/* Variables that are set to ZERO are variables that will be set either by the current _New function or another parent _New function further up the hierachy */
-	AllocationType  nameAllocationType = ZERO;
+	AllocationType  nameAllocationType = NON_GLOBAL /* default value NON_GLOBAL */;
 
 	return _ClassHook_New(  CLASSHOOK_PASSARGS  );
 }
diff -r 427a033af921 -r 7e392c26eb0b Base/Extensibility/src/ClassPtrExtensionInfo.c
--- a/Base/Extensibility/src/ClassPtrExtensionInfo.c	Wed Dec 16 11:12:08 2009 +1100
+++ b/Base/Extensibility/src/ClassPtrExtensionInfo.c	Wed Dec 16 11:55:56 2009 +1100
@@ -64,7 +64,7 @@ ClassPtrExtensionInfo* ClassPtrExtension
 	ExtensionInfo_DataCopyFunction*    _dataCopy = _ClassPtrExtensionInfo_DataCopy;
 
 	/* Variables that are set to ZERO are variables that will be set either by the current _New function or another parent _New function further up the hierachy */
-	AllocationType  nameAllocationType = ZERO;
+	AllocationType  nameAllocationType = NON_GLOBAL /* default value NON_GLOBAL */;
 	SizeT                         size = ZERO;
 
 	return _ClassPtrExtensionInfo_New(  CLASSPTREXTENSIONINFO_PASSARGS  );
diff -r 427a033af921 -r 7e392c26eb0b Base/Extensibility/src/EntryPoint.c
--- a/Base/Extensibility/src/EntryPoint.c	Wed Dec 16 11:12:08 2009 +1100
+++ b/Base/Extensibility/src/EntryPoint.c	Wed Dec 16 11:55:56 2009 +1100
@@ -71,7 +71,7 @@ EntryPoint* EntryPoint_New( const Name n
 	EntryPoint_GetRunFunction*      _getRun = _EntryPoint_GetRun;
 
 	/* Variables that are set to ZERO are variables that will be set either by the current _New function or another parent _New function further up the hierachy */
-	AllocationType  nameAllocationType = ZERO;
+	AllocationType  nameAllocationType = NON_GLOBAL /* default value NON_GLOBAL */;
 
 	return _EntryPoint_New(  ENTRYPOINT_PASSARGS  );
 }
diff -r 427a033af921 -r 7e392c26eb0b Base/Extensibility/src/ExtensionManager.c
--- a/Base/Extensibility/src/ExtensionManager.c	Wed Dec 16 11:12:08 2009 +1100
+++ b/Base/Extensibility/src/ExtensionManager.c	Wed Dec 16 11:55:56 2009 +1100
@@ -69,7 +69,7 @@ ExtensionManager* ExtensionManager_New_O
 	Index                                count = 0;
 
 	/* Variables that are set to ZERO are variables that will be set either by the current _New function or another parent _New function further up the hierachy */
-	AllocationType  nameAllocationType = ZERO;
+	AllocationType  nameAllocationType = NON_GLOBAL /* default value NON_GLOBAL */;
 
 	return _ExtensionManager_New(  EXTENSIONMANAGER_PASSARGS  );
 }
@@ -91,7 +91,7 @@ ExtensionManager* ExtensionManager_New_O
 	Index                            count = 0;
 
 	/* Variables that are set to ZERO are variables that will be set either by the current _New function or another parent _New function further up the hierachy */
-	AllocationType  nameAllocationType = ZERO;
+	AllocationType  nameAllocationType = NON_GLOBAL /* default value NON_GLOBAL */;
 
 	return _ExtensionManager_New(  EXTENSIONMANAGER_PASSARGS  );
 }
@@ -113,7 +113,7 @@ ExtensionManager* ExtensionManager_New_O
 	ExtensionManager*                       em = NULL;
 
 	/* Variables that are set to ZERO are variables that will be set either by the current _New function or another parent _New function further up the hierachy */
-	AllocationType  nameAllocationType = ZERO;
+	AllocationType  nameAllocationType = NON_GLOBAL /* default value NON_GLOBAL */;
 
 	return _ExtensionManager_New(  EXTENSIONMANAGER_PASSARGS  );
 }
@@ -135,7 +135,7 @@ ExtensionManager* ExtensionManager_New_O
 	SizeT                             itemSize = 0;
 
 	/* Variables that are set to ZERO are variables that will be set either by the current _New function or another parent _New function further up the hierachy */
-	AllocationType  nameAllocationType = ZERO;
+	AllocationType  nameAllocationType = NON_GLOBAL /* default value NON_GLOBAL */;
 
 	return _ExtensionManager_New(  EXTENSIONMANAGER_PASSARGS  );
 }
diff -r 427a033af921 -r 7e392c26eb0b Base/Extensibility/src/Hook.c
--- a/Base/Extensibility/src/Hook.c	Wed Dec 16 11:12:08 2009 +1100
+++ b/Base/Extensibility/src/Hook.c	Wed Dec 16 11:55:56 2009 +1100
@@ -57,7 +57,7 @@ Hook* Hook_New( Name name, Func_Ptr func
 	Stg_Class_CopyFunction*          _copy = _Hook_Copy;
 
 	/* Variables that are set to ZERO are variables that will be set either by the current _New function or another parent _New function further up the hierachy */
-	AllocationType  nameAllocationType = ZERO;
+	AllocationType  nameAllocationType = NON_GLOBAL /* default value NON_GLOBAL */;
 
 	return _Hook_New(  HOOK_PASSARGS  );
 }
diff -r 427a033af921 -r 7e392c26eb0b Base/Extensibility/src/Plugin.c
--- a/Base/Extensibility/src/Plugin.c	Wed Dec 16 11:12:08 2009 +1100
+++ b/Base/Extensibility/src/Plugin.c	Wed Dec 16 11:55:56 2009 +1100
@@ -68,7 +68,7 @@ Plugin* Plugin_New( Name name, Stg_Objec
 	Module_MangleNameFunction*   MangleName = _Plugin_MangleName;
 
 	/* Variables that are set to ZERO are variables that will be set either by the current _New function or another parent _New function further up the hierachy */
-	AllocationType  nameAllocationType = ZERO;
+	AllocationType  nameAllocationType = NON_GLOBAL /* default value NON_GLOBAL */;
 
 	return _Plugin_New(  PLUGIN_PASSARGS  );
 }
diff -r 427a033af921 -r 7e392c26eb0b Base/Extensibility/src/SimpleExtensionInfo.c
--- a/Base/Extensibility/src/SimpleExtensionInfo.c	Wed Dec 16 11:12:08 2009 +1100
+++ b/Base/Extensibility/src/SimpleExtensionInfo.c	Wed Dec 16 11:55:56 2009 +1100
@@ -64,7 +64,7 @@ SimpleExtensionInfo* SimpleExtensionInfo
 	ExtensionInfo_DataCopyFunction*    _dataCopy = _SimpleExtensionInfo_DataCopy;
 
 	/* Variables that are set to ZERO are variables that will be set either by the current _New function or another parent _New function further up the hierachy */
-	AllocationType  nameAllocationType = ZERO;
+	AllocationType  nameAllocationType = NON_GLOBAL /* default value NON_GLOBAL */;
 
 	return _SimpleExtensionInfo_New(  SIMPLEEXTENSIONINFO_PASSARGS  );
 }
diff -r 427a033af921 -r 7e392c26eb0b Base/Extensibility/src/Toolbox.c
--- a/Base/Extensibility/src/Toolbox.c	Wed Dec 16 11:12:08 2009 +1100
+++ b/Base/Extensibility/src/Toolbox.c	Wed Dec 16 11:55:56 2009 +1100
@@ -69,7 +69,7 @@ Toolbox* Toolbox_New( Name name, Stg_Obj
 	Module_MangleNameFunction*   MangleName = _Toolbox_MangleName;
 
 	/* Variables that are set to ZERO are variables that will be set either by the current _New function or another parent _New function further up the hierachy */
-	AllocationType  nameAllocationType = ZERO;
+	AllocationType  nameAllocationType = NON_GLOBAL /* default value NON_GLOBAL */;
 
 	return _Toolbox_New(  TOOLBOX_PASSARGS  );
 }
diff -r 427a033af921 -r 7e392c26eb0b Base/Foundation/src/ObjectAdaptor.c
--- a/Base/Foundation/src/ObjectAdaptor.c	Wed Dec 16 11:12:08 2009 +1100
+++ b/Base/Foundation/src/ObjectAdaptor.c	Wed Dec 16 11:55:56 2009 +1100
@@ -63,7 +63,7 @@ Stg_ObjectAdaptor* Stg_ObjectAdaptor_New
 	Stg_ObjectAdaptor_CopyPointerFunction*        ptrCopy = NULL;
 
 	/* Variables that are set to ZERO are variables that will be set either by the current _New function or another parent _New function further up the hierachy */
-	AllocationType  nameAllocationType = ZERO;
+	AllocationType  nameAllocationType = NON_GLOBAL /* default value NON_GLOBAL */;
 
 	return _Stg_ObjectAdaptor_New(  STG_OBJECTADAPTOR_PASSARGS  ); 
 }
@@ -105,7 +105,7 @@ Stg_ObjectAdaptor* Stg_ObjectAdaptor_New
 	Bool                        isStgClass = False;
 
 	/* Variables that are set to ZERO are variables that will be set either by the current _New function or another parent _New function further up the hierachy */
-	AllocationType  nameAllocationType = ZERO;
+	AllocationType  nameAllocationType = NON_GLOBAL /* default value NON_GLOBAL */;
 
 	return _Stg_ObjectAdaptor_New(  STG_OBJECTADAPTOR_PASSARGS  ); 
 }



More information about the CIG-COMMITS mailing list