Author: zoltan
Date: 2008-01-16 14:59:10 -0500 (Wed, 16 Jan 2008)
New Revision: 93089

Modified:
   trunk/mono/mono/metadata/ChangeLog
   trunk/mono/mono/metadata/threads-types.h
Log:
2008-01-16  Zoltan Varga  <[EMAIL PROTECTED]>

        * threads-types.h: Get rid of the unnecessary extern declarations.


Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog  2008-01-16 19:56:29 UTC (rev 93088)
+++ trunk/mono/mono/metadata/ChangeLog  2008-01-16 19:59:10 UTC (rev 93089)
@@ -1,3 +1,7 @@
+2008-01-16  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * threads-types.h: Get rid of the unnecessary extern declarations.
+
 2008-01-16  Gert Driesen  <[EMAIL PROTECTED]>
 
        * icall.c (ves_icall_Type_GetField): if NonPublic flag is set, only

Modified: trunk/mono/mono/metadata/threads-types.h
===================================================================
--- trunk/mono/mono/metadata/threads-types.h    2008-01-16 19:56:29 UTC (rev 
93088)
+++ trunk/mono/mono/metadata/threads-types.h    2008-01-16 19:59:10 UTC (rev 
93089)
@@ -42,76 +42,76 @@
 #define SPECIAL_STATIC_THREAD 1
 #define SPECIAL_STATIC_CONTEXT 2
 
-extern void mono_thread_create_internal (MonoDomain *domain, gpointer func, 
gpointer arg, gboolean threadpool_thread) MONO_INTERNAL;
+void mono_thread_create_internal (MonoDomain *domain, gpointer func, gpointer 
arg, gboolean threadpool_thread) MONO_INTERNAL;
 
-extern HANDLE ves_icall_System_Threading_Thread_Thread_internal(MonoThread 
*this_obj, MonoObject *start) MONO_INTERNAL;
-extern void ves_icall_System_Threading_Thread_Thread_init(MonoThread 
*this_obj) MONO_INTERNAL;
-extern void ves_icall_System_Threading_Thread_Thread_free_internal(MonoThread 
*this_obj, HANDLE thread) MONO_INTERNAL;
-extern void ves_icall_System_Threading_Thread_Sleep_internal(int ms) 
MONO_INTERNAL;
-extern gboolean ves_icall_System_Threading_Thread_Join_internal(MonoThread 
*this_obj, int ms, HANDLE thread) MONO_INTERNAL;
-extern gint32 ves_icall_System_Threading_Thread_GetDomainID (void) 
MONO_INTERNAL;
-extern MonoString* ves_icall_System_Threading_Thread_GetName_internal 
(MonoThread *this_obj) MONO_INTERNAL;
-extern void ves_icall_System_Threading_Thread_SetName_internal (MonoThread 
*this_obj, MonoString *name) MONO_INTERNAL;
-extern MonoObject* ves_icall_System_Threading_Thread_GetCachedCurrentCulture 
(MonoThread *this_obj) MONO_INTERNAL;
-extern MonoArray* 
ves_icall_System_Threading_Thread_GetSerializedCurrentCulture (MonoThread 
*this_obj) MONO_INTERNAL;
-extern void ves_icall_System_Threading_Thread_SetCachedCurrentCulture 
(MonoThread *this_obj, MonoObject *culture) MONO_INTERNAL;
+HANDLE ves_icall_System_Threading_Thread_Thread_internal(MonoThread *this_obj, 
MonoObject *start) MONO_INTERNAL;
+void ves_icall_System_Threading_Thread_Thread_init(MonoThread *this_obj) 
MONO_INTERNAL;
+void ves_icall_System_Threading_Thread_Thread_free_internal(MonoThread 
*this_obj, HANDLE thread) MONO_INTERNAL;
+void ves_icall_System_Threading_Thread_Sleep_internal(int ms) MONO_INTERNAL;
+gboolean ves_icall_System_Threading_Thread_Join_internal(MonoThread *this_obj, 
int ms, HANDLE thread) MONO_INTERNAL;
+gint32 ves_icall_System_Threading_Thread_GetDomainID (void) MONO_INTERNAL;
+MonoString* ves_icall_System_Threading_Thread_GetName_internal (MonoThread 
*this_obj) MONO_INTERNAL;
+void ves_icall_System_Threading_Thread_SetName_internal (MonoThread *this_obj, 
MonoString *name) MONO_INTERNAL;
+MonoObject* ves_icall_System_Threading_Thread_GetCachedCurrentCulture 
(MonoThread *this_obj) MONO_INTERNAL;
+MonoArray* ves_icall_System_Threading_Thread_GetSerializedCurrentCulture 
(MonoThread *this_obj) MONO_INTERNAL;
+void ves_icall_System_Threading_Thread_SetCachedCurrentCulture (MonoThread 
*this_obj, MonoObject *culture) MONO_INTERNAL;
 void ves_icall_System_Threading_Thread_SetSerializedCurrentCulture (MonoThread 
*this_obj, MonoArray *arr) MONO_INTERNAL;
-extern MonoObject* ves_icall_System_Threading_Thread_GetCachedCurrentUICulture 
(MonoThread *this_obj) MONO_INTERNAL;
-extern MonoArray* 
ves_icall_System_Threading_Thread_GetSerializedCurrentUICulture (MonoThread 
*this_obj) MONO_INTERNAL;
-extern void ves_icall_System_Threading_Thread_SetCachedCurrentUICulture 
(MonoThread *this_obj, MonoObject *culture) MONO_INTERNAL;
+MonoObject* ves_icall_System_Threading_Thread_GetCachedCurrentUICulture 
(MonoThread *this_obj) MONO_INTERNAL;
+MonoArray* ves_icall_System_Threading_Thread_GetSerializedCurrentUICulture 
(MonoThread *this_obj) MONO_INTERNAL;
+void ves_icall_System_Threading_Thread_SetCachedCurrentUICulture (MonoThread 
*this_obj, MonoObject *culture) MONO_INTERNAL;
 void ves_icall_System_Threading_Thread_SetSerializedCurrentUICulture 
(MonoThread *this_obj, MonoArray *arr) MONO_INTERNAL;
-extern HANDLE 
ves_icall_System_Threading_Mutex_CreateMutex_internal(MonoBoolean owned, 
MonoString *name, MonoBoolean *created) MONO_INTERNAL;
-extern MonoBoolean ves_icall_System_Threading_Mutex_ReleaseMutex_internal 
(HANDLE handle ) MONO_INTERNAL;
-extern HANDLE ves_icall_System_Threading_Mutex_OpenMutex_internal (MonoString 
*name, gint32 rights, gint32 *error) MONO_INTERNAL;
-extern HANDLE ves_icall_System_Threading_Semaphore_CreateSemaphore_internal 
(gint32 initialCount, gint32 maximumCount, MonoString *name, MonoBoolean 
*created) MONO_INTERNAL;
-extern gint32 ves_icall_System_Threading_Semaphore_ReleaseSemaphore_internal 
(HANDLE handle, gint32 releaseCount, MonoBoolean *fail) MONO_INTERNAL;
-extern HANDLE ves_icall_System_Threading_Semaphore_OpenSemaphore_internal 
(MonoString *name, gint32 rights, gint32 *error) MONO_INTERNAL;
-extern HANDLE ves_icall_System_Threading_Events_CreateEvent_internal 
(MonoBoolean manual, MonoBoolean initial, MonoString *name, MonoBoolean 
*created) MONO_INTERNAL;
-extern gboolean ves_icall_System_Threading_Events_SetEvent_internal (HANDLE 
handle) MONO_INTERNAL;
-extern gboolean ves_icall_System_Threading_Events_ResetEvent_internal (HANDLE 
handle) MONO_INTERNAL;
-extern void ves_icall_System_Threading_Events_CloseEvent_internal (HANDLE 
handle) MONO_INTERNAL;
-extern HANDLE ves_icall_System_Threading_Events_OpenEvent_internal (MonoString 
*name, gint32 rights, gint32 *error) MONO_INTERNAL;
+HANDLE ves_icall_System_Threading_Mutex_CreateMutex_internal(MonoBoolean 
owned, MonoString *name, MonoBoolean *created) MONO_INTERNAL;
+MonoBoolean ves_icall_System_Threading_Mutex_ReleaseMutex_internal (HANDLE 
handle ) MONO_INTERNAL;
+HANDLE ves_icall_System_Threading_Mutex_OpenMutex_internal (MonoString *name, 
gint32 rights, gint32 *error) MONO_INTERNAL;
+HANDLE ves_icall_System_Threading_Semaphore_CreateSemaphore_internal (gint32 
initialCount, gint32 maximumCount, MonoString *name, MonoBoolean *created) 
MONO_INTERNAL;
+gint32 ves_icall_System_Threading_Semaphore_ReleaseSemaphore_internal (HANDLE 
handle, gint32 releaseCount, MonoBoolean *fail) MONO_INTERNAL;
+HANDLE ves_icall_System_Threading_Semaphore_OpenSemaphore_internal (MonoString 
*name, gint32 rights, gint32 *error) MONO_INTERNAL;
+HANDLE ves_icall_System_Threading_Events_CreateEvent_internal (MonoBoolean 
manual, MonoBoolean initial, MonoString *name, MonoBoolean *created) 
MONO_INTERNAL;
+gboolean ves_icall_System_Threading_Events_SetEvent_internal (HANDLE handle) 
MONO_INTERNAL;
+gboolean ves_icall_System_Threading_Events_ResetEvent_internal (HANDLE handle) 
MONO_INTERNAL;
+void ves_icall_System_Threading_Events_CloseEvent_internal (HANDLE handle) 
MONO_INTERNAL;
+HANDLE ves_icall_System_Threading_Events_OpenEvent_internal (MonoString *name, 
gint32 rights, gint32 *error) MONO_INTERNAL;
 
-extern gboolean 
ves_icall_System_Threading_WaitHandle_WaitAll_internal(MonoArray *mono_handles, 
gint32 ms, gboolean exitContext) MONO_INTERNAL;
-extern gint32 ves_icall_System_Threading_WaitHandle_WaitAny_internal(MonoArray 
*mono_handles, gint32 ms, gboolean exitContext) MONO_INTERNAL;
-extern gboolean 
ves_icall_System_Threading_WaitHandle_WaitOne_internal(MonoObject *this_obj, 
HANDLE handle, gint32 ms, gboolean exitContext) MONO_INTERNAL;
+gboolean ves_icall_System_Threading_WaitHandle_WaitAll_internal(MonoArray 
*mono_handles, gint32 ms, gboolean exitContext) MONO_INTERNAL;
+gint32 ves_icall_System_Threading_WaitHandle_WaitAny_internal(MonoArray 
*mono_handles, gint32 ms, gboolean exitContext) MONO_INTERNAL;
+gboolean ves_icall_System_Threading_WaitHandle_WaitOne_internal(MonoObject 
*this_obj, HANDLE handle, gint32 ms, gboolean exitContext) MONO_INTERNAL;
 
-extern gint32 ves_icall_System_Threading_Interlocked_Increment_Int(gint32 
*location) MONO_INTERNAL;
-extern gint64 ves_icall_System_Threading_Interlocked_Increment_Long(gint64 
*location) MONO_INTERNAL;
-extern gint32 ves_icall_System_Threading_Interlocked_Decrement_Int(gint32 
*location) MONO_INTERNAL;
-extern gint64 ves_icall_System_Threading_Interlocked_Decrement_Long(gint64 * 
location) MONO_INTERNAL;
+gint32 ves_icall_System_Threading_Interlocked_Increment_Int(gint32 *location) 
MONO_INTERNAL;
+gint64 ves_icall_System_Threading_Interlocked_Increment_Long(gint64 *location) 
MONO_INTERNAL;
+gint32 ves_icall_System_Threading_Interlocked_Decrement_Int(gint32 *location) 
MONO_INTERNAL;
+gint64 ves_icall_System_Threading_Interlocked_Decrement_Long(gint64 * 
location) MONO_INTERNAL;
 
-extern gint32 ves_icall_System_Threading_Interlocked_Exchange_Int(gint32 
*location, gint32 value) MONO_INTERNAL;
-extern gint64 ves_icall_System_Threading_Interlocked_Exchange_Long(gint64 
*location, gint64 value) MONO_INTERNAL;
-extern MonoObject 
*ves_icall_System_Threading_Interlocked_Exchange_Object(MonoObject **location, 
MonoObject *value) MONO_INTERNAL;
-extern gfloat ves_icall_System_Threading_Interlocked_Exchange_Single(gfloat 
*location, gfloat value) MONO_INTERNAL;
-extern gdouble ves_icall_System_Threading_Interlocked_Exchange_Double(gdouble 
*location, gdouble value) MONO_INTERNAL;
+gint32 ves_icall_System_Threading_Interlocked_Exchange_Int(gint32 *location, 
gint32 value) MONO_INTERNAL;
+gint64 ves_icall_System_Threading_Interlocked_Exchange_Long(gint64 *location, 
gint64 value) MONO_INTERNAL;
+MonoObject *ves_icall_System_Threading_Interlocked_Exchange_Object(MonoObject 
**location, MonoObject *value) MONO_INTERNAL;
+gfloat ves_icall_System_Threading_Interlocked_Exchange_Single(gfloat 
*location, gfloat value) MONO_INTERNAL;
+gdouble ves_icall_System_Threading_Interlocked_Exchange_Double(gdouble 
*location, gdouble value) MONO_INTERNAL;
 
-extern gint32 
ves_icall_System_Threading_Interlocked_CompareExchange_Int(gint32 *location, 
gint32 value, gint32 comparand) MONO_INTERNAL;
-extern gint64 
ves_icall_System_Threading_Interlocked_CompareExchange_Long(gint64 *location, 
gint64 value, gint64 comparand) MONO_INTERNAL;
-extern MonoObject 
*ves_icall_System_Threading_Interlocked_CompareExchange_Object(MonoObject 
**location, MonoObject *value, MonoObject *comparand) MONO_INTERNAL;
-extern gfloat 
ves_icall_System_Threading_Interlocked_CompareExchange_Single(gfloat *location, 
gfloat value, gfloat comparand) MONO_INTERNAL;
-extern gdouble 
ves_icall_System_Threading_Interlocked_CompareExchange_Double(gdouble 
*location, gdouble value, gdouble comparand) MONO_INTERNAL;
-extern MonoObject* 
ves_icall_System_Threading_Interlocked_CompareExchange_T(MonoObject **location, 
MonoObject *value, MonoObject *comparand) MONO_INTERNAL;
-extern MonoObject* 
ves_icall_System_Threading_Interlocked_Exchange_T(MonoObject **location, 
MonoObject *value) MONO_INTERNAL;
+gint32 ves_icall_System_Threading_Interlocked_CompareExchange_Int(gint32 
*location, gint32 value, gint32 comparand) MONO_INTERNAL;
+gint64 ves_icall_System_Threading_Interlocked_CompareExchange_Long(gint64 
*location, gint64 value, gint64 comparand) MONO_INTERNAL;
+MonoObject 
*ves_icall_System_Threading_Interlocked_CompareExchange_Object(MonoObject 
**location, MonoObject *value, MonoObject *comparand) MONO_INTERNAL;
+gfloat ves_icall_System_Threading_Interlocked_CompareExchange_Single(gfloat 
*location, gfloat value, gfloat comparand) MONO_INTERNAL;
+gdouble ves_icall_System_Threading_Interlocked_CompareExchange_Double(gdouble 
*location, gdouble value, gdouble comparand) MONO_INTERNAL;
+MonoObject* 
ves_icall_System_Threading_Interlocked_CompareExchange_T(MonoObject **location, 
MonoObject *value, MonoObject *comparand) MONO_INTERNAL;
+MonoObject* ves_icall_System_Threading_Interlocked_Exchange_T(MonoObject 
**location, MonoObject *value) MONO_INTERNAL;
 
-extern gint32 ves_icall_System_Threading_Interlocked_Add_Int(gint32 *location, 
gint32 value) MONO_INTERNAL;
-extern gint64 ves_icall_System_Threading_Interlocked_Add_Long(gint64 
*location, gint64 value) MONO_INTERNAL;
-extern gint64 ves_icall_System_Threading_Interlocked_Read_Long(gint64 
*location) MONO_INTERNAL;
+gint32 ves_icall_System_Threading_Interlocked_Add_Int(gint32 *location, gint32 
value) MONO_INTERNAL;
+gint64 ves_icall_System_Threading_Interlocked_Add_Long(gint64 *location, 
gint64 value) MONO_INTERNAL;
+gint64 ves_icall_System_Threading_Interlocked_Read_Long(gint64 *location) 
MONO_INTERNAL;
 
-extern gint32 ves_icall_System_Threading_Interlocked_Increment_Int(gint32 
*location) MONO_INTERNAL;
-extern gint64 ves_icall_System_Threading_Interlocked_Increment_Long(gint64 
*location) MONO_INTERNAL;
+gint32 ves_icall_System_Threading_Interlocked_Increment_Int(gint32 *location) 
MONO_INTERNAL;
+gint64 ves_icall_System_Threading_Interlocked_Increment_Long(gint64 *location) 
MONO_INTERNAL;
 
-extern gint32 ves_icall_System_Threading_Interlocked_Decrement_Int(gint32 
*location) MONO_INTERNAL;
-extern gint64 ves_icall_System_Threading_Interlocked_Decrement_Long(gint64 * 
location) MONO_INTERNAL;
+gint32 ves_icall_System_Threading_Interlocked_Decrement_Int(gint32 *location) 
MONO_INTERNAL;
+gint64 ves_icall_System_Threading_Interlocked_Decrement_Long(gint64 * 
location) MONO_INTERNAL;
 
-extern void ves_icall_System_Threading_Thread_Abort (MonoThread *thread, 
MonoObject *state) MONO_INTERNAL;
-extern void ves_icall_System_Threading_Thread_ResetAbort (void) MONO_INTERNAL;
-extern void ves_icall_System_Threading_Thread_Suspend (MonoThread *thread) 
MONO_INTERNAL;
-extern void ves_icall_System_Threading_Thread_Resume (MonoThread *thread) 
MONO_INTERNAL;
-extern void ves_icall_System_Threading_Thread_ClrState (MonoThread *thread, 
guint32 state) MONO_INTERNAL;
-extern void ves_icall_System_Threading_Thread_SetState (MonoThread *thread, 
guint32 state) MONO_INTERNAL;
-extern guint32 ves_icall_System_Threading_Thread_GetState (MonoThread *thread) 
MONO_INTERNAL;
+void ves_icall_System_Threading_Thread_Abort (MonoThread *thread, MonoObject 
*state) MONO_INTERNAL;
+void ves_icall_System_Threading_Thread_ResetAbort (void) MONO_INTERNAL;
+void ves_icall_System_Threading_Thread_Suspend (MonoThread *thread) 
MONO_INTERNAL;
+void ves_icall_System_Threading_Thread_Resume (MonoThread *thread) 
MONO_INTERNAL;
+void ves_icall_System_Threading_Thread_ClrState (MonoThread *thread, guint32 
state) MONO_INTERNAL;
+void ves_icall_System_Threading_Thread_SetState (MonoThread *thread, guint32 
state) MONO_INTERNAL;
+guint32 ves_icall_System_Threading_Thread_GetState (MonoThread *thread) 
MONO_INTERNAL;
 
 gint8 ves_icall_System_Threading_Thread_VolatileRead1 (void *ptr) 
MONO_INTERNAL;
 gint16 ves_icall_System_Threading_Thread_VolatileRead2 (void *ptr) 
MONO_INTERNAL;
@@ -126,25 +126,25 @@
 void ves_icall_System_Threading_Thread_VolatileWriteIntPtr (void *ptr, void *) 
MONO_INTERNAL;
 
 void ves_icall_System_Threading_Thread_MemoryBarrier (void) MONO_INTERNAL;
-extern void ves_icall_System_Threading_Thread_Interrupt_internal (MonoThread 
*this_obj) MONO_INTERNAL;
-extern void ves_icall_System_Threading_Thread_SpinWait_internal (gint32) 
MONO_INTERNAL;
+void ves_icall_System_Threading_Thread_Interrupt_internal (MonoThread 
*this_obj) MONO_INTERNAL;
+void ves_icall_System_Threading_Thread_SpinWait_internal (gint32) 
MONO_INTERNAL;
 
 void mono_alloc_special_static_data_free (GHashTable *special_static_fields) 
MONO_INTERNAL;
 void mono_thread_free_local_slot_values (int slot, MonoBoolean thread_local) 
MONO_INTERNAL;
-extern void mono_thread_current_check_pending_interrupt (void) MONO_INTERNAL;
-extern void mono_thread_get_stack_bounds (guint8 **staddr, size_t *stsize) 
MONO_INTERNAL;
+void mono_thread_current_check_pending_interrupt (void) MONO_INTERNAL;
+void mono_thread_get_stack_bounds (guint8 **staddr, size_t *stsize) 
MONO_INTERNAL;
 
-extern void mono_thread_set_state (MonoThread *thread, MonoThreadState state) 
MONO_INTERNAL;
-extern void mono_thread_clr_state (MonoThread *thread, MonoThreadState state) 
MONO_INTERNAL;
-extern gboolean mono_thread_test_state (MonoThread *thread, MonoThreadState 
test) MONO_INTERNAL;
+void mono_thread_set_state (MonoThread *thread, MonoThreadState state) 
MONO_INTERNAL;
+void mono_thread_clr_state (MonoThread *thread, MonoThreadState state) 
MONO_INTERNAL;
+gboolean mono_thread_test_state (MonoThread *thread, MonoThreadState test) 
MONO_INTERNAL;
 
-extern void mono_thread_init_apartment_state (void) MONO_INTERNAL;
-extern void mono_thread_cleanup_apartment_state (void) MONO_INTERNAL;
+void mono_thread_init_apartment_state (void) MONO_INTERNAL;
+void mono_thread_cleanup_apartment_state (void) MONO_INTERNAL;
 
-extern gboolean mono_threads_set_shutting_down (gboolean may_abort) 
MONO_INTERNAL;
-extern gboolean mono_threads_is_shutting_down (void) MONO_INTERNAL;
+gboolean mono_threads_set_shutting_down (gboolean may_abort) MONO_INTERNAL;
+gboolean mono_threads_is_shutting_down (void) MONO_INTERNAL;
 
-extern MonoException * mono_thread_get_undeniable_exception (void);
+MonoException * mono_thread_get_undeniable_exception (void);
 
 typedef struct {
        gpointer hazard_pointers [2];
@@ -152,9 +152,9 @@
 
 typedef void (*MonoHazardousFreeFunc) (gpointer p);
 
-extern void mono_thread_hazardous_free_or_queue (gpointer p, 
MonoHazardousFreeFunc free_func);
+void mono_thread_hazardous_free_or_queue (gpointer p, MonoHazardousFreeFunc 
free_func);
 
-extern MonoThreadHazardPointers* mono_hazard_pointer_get (void);
+MonoThreadHazardPointers* mono_hazard_pointer_get (void);
 
 #define mono_hazard_pointer_set(hp,i,v)        \
        do { g_assert ((i) == 0 || (i) == 1); \

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to