Skip to content

Commit

Permalink
update code style (dotnet#1285)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonerdo committed Nov 21, 2017
1 parent 0c3b863 commit 474dd62
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
4 changes: 0 additions & 4 deletions src/Native/Bootstrap/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,11 +361,7 @@ int main(int argc, char* argv[])
try
#endif
{
#ifndef CORERT_DLL
retval = __managed__Main(argc, argv);
#else
retval = 0;
#endif // !CORERT_DLL
}
#ifdef CPPCODEGEN
catch (const char* &e)
Expand Down
8 changes: 4 additions & 4 deletions src/Native/Runtime/thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
EXTERN_C REDHAWK_API void* REDHAWK_CALLCONV RhpHandleAlloc(void* pObject, int type);
EXTERN_C REDHAWK_API void REDHAWK_CALLCONV RhHandleFree(void*);

static int (*InitializeRuntimePtr)();
static int (*g_RuntimeInitializationCallback)();
static Thread* g_RuntimeInitializingThread;

#ifdef _MSC_VER
Expand Down Expand Up @@ -1120,17 +1120,17 @@ FORCEINLINE bool Thread::InlineTryFastReversePInvoke(ReversePInvokeFrame * pFram

EXTERN_C void RhSetRuntimeInitializationCallback(int (*fPtr)())
{
InitializeRuntimePtr = fPtr;
g_RuntimeInitializationCallback = fPtr;
}

void Thread::ReversePInvokeAttachOrTrapThread(ReversePInvokeFrame * pFrame)
{
if (!IsStateSet(TSF_Attached))
{
if (*InitializeRuntimePtr != NULL && g_RuntimeInitializingThread != this)
if (*g_RuntimeInitializationCallback != NULL && g_RuntimeInitializingThread != this)
{
g_RuntimeInitializingThread = this;
(*InitializeRuntimePtr)();
(*g_RuntimeInitializationCallback)();
g_RuntimeInitializingThread = NULL;
}

Expand Down
2 changes: 0 additions & 2 deletions src/Native/Runtime/unix/PalRedhawkUnix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1205,8 +1205,6 @@ REDHAWK_PALEXPORT bool PalGetMaximumStackBounds(_Out_ void** ppStackLowOut, _Out
return true;
}

extern "C" int main(int argc, char** argv);

// retrieves the full path to the specified module, if moduleBase is NULL retreieves the full path to the
// executable module of the current process.
//
Expand Down

0 comments on commit 474dd62

Please sign in to comment.