summaryrefslogtreecommitdiffstats
path: root/private/crt32/misc/i386/cinitone.asm
blob: e4bf0ef3975f770620b3c34d499ceb44e1f0d8d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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