;
; xdata
;
; Static data for the Shared C Library
;
;  1993-1998 Straylight
;

;----- Licensing note -------------------------------------------------------
;
; This file is part of Straylight's C library stubs (xstubs).
;
; xstubs is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 2, or (at your option)
; any later version.
;
; xstubs is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with xstubs.  If not, write to the Free Software Foundation,
; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

;----- Setting up the macros ------------------------------------------------

		GBLA	current
current		SETA	0

		MACRO
$label		OFFSET	$off
		ASSERT	$off>=current
		%	$off-current
$label
current		SETA	$off
		MEND

;----- The data definitions -------------------------------------------------

				AREA	|Stub$$Data|,DATA,NOINIT

				EXPORT	xstub__kdata
				EXPORT	xstub__ekdata
				EXPORT	xstub__cdata
				EXPORT	xstub__ecdata

				EXPORT	|_stub_kallocExtendsWS|
				EXPORT	|__iob|
				EXPORT	|__ctype|
				EXPORT	|__errno|
				EXPORT	|__huge_val|

;----- Kernel data ----------------------------------------------------------

xstub__kdata

|_stub_imageBase|		OFFSET	&0000
|_stub_rtsDataBase|		OFFSET	&0004
|_stub_rtsDataLimit|		OFFSET	&0008
|_stub_errorR12|		OFFSET	&000c
|_stub_errorBuffer|		OFFSET	&0010
|_stub_errorNumber|		OFFSET	&0014
|_stub_errorString|		OFFSET	&0018
|_stub_registerDump|		OFFSET	&007c
|_stub_oldAbortHandlers|	OFFSET	&00bc
|_stub_oldExitHandler|		OFFSET	&00cc
|_stub_oldMemoryLimit|		OFFSET	&00d4
|_stub_oldErrorHandler|		OFFSET	&00d8
|_stub_oldErrorR0|		OFFSET	&00dc
|_stub_oldErrorBuffer|		OFFSET	&00e0
|_stub_oldCallBackHandler|	OFFSET	&00e4
|_stub_oldEscapeHandler|	OFFSET	&00f0
|_stub_oldEventHandler|		OFFSET	&00f8
|_stub_oldUpCallHandler|	OFFSET	&0100
|_stub_languageEnvSave|		OFFSET	&0108
|_stub_hadEscape|		OFFSET	&0114
|_stub_kallocExtendsWS|		OFFSET	&0115
|_stub_inTrapHandler|		OFFSET	&0116
|_stub_beingDebugged|		OFFSET	&0117
|_stub_fpPresent|		OFFSET	&0118
|_stub_initialised|		OFFSET	&0119
|_stub_callbackInactive|	OFFSET	&011a
|_stub_unused_byte_2|		OFFSET	&011b
|_stub_IIHandlerInData|		OFFSET	&011c
|_stub_PAHandlerInData|		OFFSET	&0128
|_stub_DAHandlerInData|		OFFSET	&0134
|_stub_AEHandlerInData|		OFFSET	&0140
|_stub_eventCode|		OFFSET	&014c
|_stub_eventUserR13|		OFFSET	&0150
|_stub_eventRegisters|		OFFSET	&0154
|_stub_fastEventStack|		OFFSET	&0184
|_stub_fastEventStackEnd|	OFFSET	&0284
|_stub_heapTop|			OFFSET	&0284
|_stub_heapLimit|		OFFSET	&0288
|_stub_allocProc|		OFFSET	&028c
|_stub_freeProc|		OFFSET	&0290
|_stub_returnCode|		OFFSET	&0294
|_stub_moduleDataWord|		OFFSET	&0298
|_stub_APCS_A_Client|		OFFSET	&029c
|_stub_escapeSeen|		OFFSET	&029d
|_stub_unwinding|		OFFSET	&029e
|_stub_underDesktop|		OFFSET	&029f
|_stub_heapBase|		OFFSET	&02a0
|_stub_ArgString|		OFFSET	&02a4
|_stub_heapExtender|		OFFSET	&02a8
|_stub_knownSlotSize|		OFFSET	&02ac
|_stub_initSlotSize|		OFFSET	&02b0
|_stub_lk_RestoreOSHandlers|	OFFSET	&02b4
|_stub_extendChunk|		OFFSET	&02b8
|_stub_rootStackChunk|		OFFSET	&02bc
|_stub_returnCodeLimit|		OFFSET	&02c0
|_stub_unused|			OFFSET	&02cc

|_stub_kernelSpace|		OFFSET	&031c

xstub__ekdata

;----- C library data -------------------------------------------------------

xstub__cdata

|__errno|			OFFSET	&031c
|__iob|				OFFSET	&0320
|_interrupts_off|		OFFSET	&05a0
|_stub__saved_interrupt|	OFFSET	&05a4
|_stub_ctype_eof|		OFFSET	&05a8
|__ctype|			OFFSET	&05ac
|__huge_val|			OFFSET	&06ac
|_stub_stack_o_flag|		OFFSET	&06b4
|_stub_inSignalHandler|		OFFSET	&06b5
|_stub_|			OFFSET	&06b6
|_stub_ClibSpace|		OFFSET	&0e64

xstub__ecdata

				END
