summaryrefslogtreecommitdiffstats
path: root/private/crt32/misc/i386/cinitone.asm
diff options
context:
space:
mode:
authorAdam <you@example.com>2020-05-17 05:51:50 +0200
committerAdam <you@example.com>2020-05-17 05:51:50 +0200
commite611b132f9b8abe35b362e5870b74bce94a1e58e (patch)
treea5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/crt32/misc/i386/cinitone.asm
downloadNT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip
Diffstat (limited to 'private/crt32/misc/i386/cinitone.asm')
-rw-r--r--private/crt32/misc/i386/cinitone.asm78
1 files changed, 78 insertions, 0 deletions
diff --git a/private/crt32/misc/i386/cinitone.asm b/private/crt32/misc/i386/cinitone.asm
new file mode 100644
index 000000000..e4bf0ef39
--- /dev/null
+++ b/private/crt32/misc/i386/cinitone.asm
@@ -0,0 +1,78 @@
+ page ,132
+ title cinitone - C Run-Time Initialization for _onexit/atexit
+;***
+;cinitone.asm - WIN32 C Run-Time Initialization for _onexit()/atexit() routines
+;
+; Copyright (c) 1992, Microsoft Corporation. All rights reserved.
+;
+;Purpose:
+; Initialization entry for the _onexit()/atexit() functions.
+; This module adds an entry for _onexitinit() to the initializer table.
+; ONEXIT.C references the dummy variable __c_onexit in order to force
+; the loading of this module.
+;
+;Notes:
+;
+;Revision History:
+; 03-19-92 SKS Module created.
+; 03-24-92 SKS Added MIPS support (NO_UNDERSCORE)
+; 04-30-92 SKS Add "offset FLAT:" to get correct fixups for OMF objs
+; 08-06-92 SKS Revised to use new section names and macros
+;
+;*******************************************************************************
+
+.xlist
+include cruntime.inc
+include defsects.inc
+.list
+
+ifndef _WIN32_
+.err
+%out _WIN32_ MUST be defined!
+endif
+
+
+ifndef NO_UNDERSCORE ; I386 VERSION *************************
+
+
+ extrn _onexitinit:NEAR
+
+
+beginSection XIC
+
+ dd offset FLAT: _onexitinit
+
+endSection XIC
+
+
+ .DATA
+
+ public __c_onexit
+
+__c_onexit dd 0
+
+
+else ; NO_UNDERSCORE ; MIPS VERSION *************************
+
+
+ extrn onexitinit:NEAR
+
+
+beginSection XIC
+
+ dd offset FLAT: onexitinit
+
+endSection XIC
+
+
+ .DATA
+
+ public _c_onexit
+
+_c_onexit dd 0
+
+
+endif ; NO_UNDERSCORE ; **** VERSION *************************
+
+
+ end