1993-07-08 19:37:25 +02:00
|
|
|
static char RCSId[] = "$Id: kernel.c,v 1.2 1993/07/04 04:04:21 root Exp root $";
|
1993-06-29 18:33:12 +02:00
|
|
|
static char Copyright[] = "Copyright Robert J. Amstadt, 1993";
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "prototypes.h"
|
1993-09-04 12:09:32 +02:00
|
|
|
#include "regfunc.h"
|
Release 0.7
Thu Jan 13 11:45:13 1994 John Richardson <jrichard@cs.uml.edu>
* [window/win.c]
Added functions EnableWindow, IsWindowEnabled, and helper
WIN_SetSensitive.
* [window/event.c]
Added checks for WS_DISABLED windows in EVENT_key, EVENT_MotionNotify,
EVENT_ButtonPress, EVENT_ButtonRelease, EVENT_ConfigureNotify,
EVENT_FocusIn, EVENT_FocusOut, and EVENT_EnterNotify. Key and
button presses beep for a disabled window.
If anyone finds better places for these checks, please tell me.
Jan 17, 94 martin2@trgcorp.solucorp.qc.ca (Martin Ayotte)
* [misc/message.c]
Cleanup on buttons answer value returned.
* [control/combo.c]
Now use OBM_COMBO bitmap dropdown button.
Mon Jan 17 21:56:45 1994 Erik Bos (erik@trashcan.hacktic.nl)
* [misc/comm/c]
A few bugfixes.
Tue Jan 18 06:36:48 1994 julliard@di.epfl.ch (Alexandre Julliard)
* [loader/cursor.c]
Added X cursor for IDC_SIZENS and IDC_SIZEWE.
* [include/options.h] [misc/main.c] (New files)
Rewrote main() function to get rid of Xt application context,
and added command-line option parsing.
* [objects/color.c]
Use of a private map now configurable with command-line option.
* [windows/defwnd.c]
Added WM_SYSCOMMAND handling, and better WM_SETCURSOR handling.
* [windows/event.c]
Removed ConfigureNotify event handler (no longer needed).
* [windows/message.c]
Send WM_SETCURSOR message on mouse events.
* [windows/nonclient.c]
Use OEM bitmaps for the drawing of the non-client area.
Added caption bar buttons handling, and moving and resizing of
the window via the window frame (bypassing the window manager).
* [windows/painting.c]
Bug fix in BeginPaint().
* [windows/win.c]
Set the override_redirect flag for windows (to bypass window
manager).
* [windows/winpos.c]
Implemented WindowFromPoint(), ChildWindowFromPoint(),
BringWindowToTop(), Get/SetInternalWindowPos(),
Get/SetWindowPlacement().
Mon Jan 17 20:48:24 1994 Bob Amstadt (bob@pooh)
* [memory/heap.c]
Added support for multiple local heaps.
1994-01-19 00:04:40 +01:00
|
|
|
#include "options.h"
|
1993-06-29 18:33:12 +02:00
|
|
|
|
1993-09-04 12:09:32 +02:00
|
|
|
extern unsigned short WIN_StackSize;
|
1993-06-29 18:33:12 +02:00
|
|
|
|
|
|
|
/**********************************************************************
|
|
|
|
* KERNEL_LockSegment
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
KERNEL_LockSegment(int segment)
|
|
|
|
{
|
|
|
|
if (segment == -1)
|
|
|
|
segment = *(Stack16Frame + 6);
|
|
|
|
|
|
|
|
#ifdef RELAY_DEBUG
|
1993-07-01 12:58:21 +02:00
|
|
|
printf("LockSegment: segment %x\n", segment);
|
1993-06-29 18:33:12 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return segment;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**********************************************************************
|
|
|
|
* KERNEL_UnlockSegment
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
KERNEL_UnlockSegment(int segment)
|
|
|
|
{
|
|
|
|
if (segment == -1)
|
|
|
|
segment = *(Stack16Frame + 6);
|
|
|
|
|
|
|
|
#ifdef RELAY_DEBUG
|
1993-07-01 12:58:21 +02:00
|
|
|
printf("UnlockSegment: segment %x\n", segment);
|
1993-06-29 18:33:12 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return segment;
|
|
|
|
}
|
|
|
|
|
1993-09-04 12:09:32 +02:00
|
|
|
/**********************************************************************
|
|
|
|
* KERNEL_InitTask
|
|
|
|
*/
|
|
|
|
KERNEL_InitTask()
|
|
|
|
{
|
|
|
|
_BX = 0x81;
|
|
|
|
_AX = 1;
|
|
|
|
_CX = WIN_StackSize;
|
Release 0.7
Thu Jan 13 11:45:13 1994 John Richardson <jrichard@cs.uml.edu>
* [window/win.c]
Added functions EnableWindow, IsWindowEnabled, and helper
WIN_SetSensitive.
* [window/event.c]
Added checks for WS_DISABLED windows in EVENT_key, EVENT_MotionNotify,
EVENT_ButtonPress, EVENT_ButtonRelease, EVENT_ConfigureNotify,
EVENT_FocusIn, EVENT_FocusOut, and EVENT_EnterNotify. Key and
button presses beep for a disabled window.
If anyone finds better places for these checks, please tell me.
Jan 17, 94 martin2@trgcorp.solucorp.qc.ca (Martin Ayotte)
* [misc/message.c]
Cleanup on buttons answer value returned.
* [control/combo.c]
Now use OBM_COMBO bitmap dropdown button.
Mon Jan 17 21:56:45 1994 Erik Bos (erik@trashcan.hacktic.nl)
* [misc/comm/c]
A few bugfixes.
Tue Jan 18 06:36:48 1994 julliard@di.epfl.ch (Alexandre Julliard)
* [loader/cursor.c]
Added X cursor for IDC_SIZENS and IDC_SIZEWE.
* [include/options.h] [misc/main.c] (New files)
Rewrote main() function to get rid of Xt application context,
and added command-line option parsing.
* [objects/color.c]
Use of a private map now configurable with command-line option.
* [windows/defwnd.c]
Added WM_SYSCOMMAND handling, and better WM_SETCURSOR handling.
* [windows/event.c]
Removed ConfigureNotify event handler (no longer needed).
* [windows/message.c]
Send WM_SETCURSOR message on mouse events.
* [windows/nonclient.c]
Use OEM bitmaps for the drawing of the non-client area.
Added caption bar buttons handling, and moving and resizing of
the window via the window frame (bypassing the window manager).
* [windows/painting.c]
Bug fix in BeginPaint().
* [windows/win.c]
Set the override_redirect flag for windows (to bypass window
manager).
* [windows/winpos.c]
Implemented WindowFromPoint(), ChildWindowFromPoint(),
BringWindowToTop(), Get/SetInternalWindowPos(),
Get/SetWindowPlacement().
Mon Jan 17 20:48:24 1994 Bob Amstadt (bob@pooh)
* [memory/heap.c]
Added support for multiple local heaps.
1994-01-19 00:04:40 +01:00
|
|
|
_DX = Options.cmdShow;
|
1993-09-04 12:09:32 +02:00
|
|
|
_SI = 0;
|
|
|
|
ReturnFromRegisterFunc();
|
|
|
|
/* Function does not return */
|
|
|
|
}
|
|
|
|
|
1993-06-29 18:33:12 +02:00
|
|
|
/**********************************************************************
|
|
|
|
* KERNEL_WaitEvent
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
KERNEL_WaitEvent(int task)
|
|
|
|
{
|
|
|
|
#ifdef RELAY_DEBUG
|
1993-07-01 12:58:21 +02:00
|
|
|
printf("WaitEvent: task %d\n", task);
|
1993-06-29 18:33:12 +02:00
|
|
|
#endif
|
|
|
|
return 0;
|
|
|
|
}
|