Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: third_party/minicrt/dllcrt0.cc

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/minicrt/crt0twin.cc ('k') | third_party/minicrt/dllsupp.obj » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/minicrt/dllcrt0.cc
diff --git a/third_party/minicrt/dllcrt0.cc b/third_party/minicrt/dllcrt0.cc
deleted file mode 100644
index 6c5f14064875eeee0007d66f9ab429fe1114ee61..0000000000000000000000000000000000000000
--- a/third_party/minicrt/dllcrt0.cc
+++ /dev/null
@@ -1,57 +0,0 @@
-//==========================================
-// LIBCTINY - Matt Pietrek 2001
-// MSDN Magazine, January 2001
-// FILE: DLLCRT0.CPP
-//==========================================
-#include "libctiny.h"
-#include <windows.h>
-#include "initterm.h"
-
-// Force the linker to include KERNEL32.LIB
-#pragma comment(linker, "/defaultlib:kernel32.lib")
-
-// #pragma comment(linker, "/nodefaultlib:libc.lib")
-// #pragma comment(linker, "/nodefaultlib:libcmt.lib")
-
-// User routine DllMain is called on all notifications
-
-extern BOOL WINAPI DllMain(
- HANDLE hDllHandle,
- DWORD dwReason,
- LPVOID lpreserved
- ) ;
-
-extern "C" void DoInitialization();
-extern "C" void DoCleanup();
-
-//
-// Modified version of the Visual C++ startup code. Simplified to
-// make it easier to read. Only supports ANSI programs.
-//
-extern "C"
-BOOL WINAPI _DllMainCRTStartup(
- HANDLE hDllHandle,
- DWORD dwReason,
- LPVOID lpreserved
- ) {
- if (dwReason == DLL_PROCESS_ATTACH)
- {
- // set up our minimal cheezy atexit table
- _atexit_init();
-
- // Call C++ constructors
- _initterm( __xc_a, __xc_z );
-
- // DoInitialization();
- }
-
- BOOL retcode = DllMain(hDllHandle, dwReason, lpreserved);
-
- if (dwReason == DLL_PROCESS_DETACH)
- {
- _DoExit();
- // DoCleanup();
- }
-
- return retcode ;
-}
« no previous file with comments | « third_party/minicrt/crt0twin.cc ('k') | third_party/minicrt/dllsupp.obj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698