mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-16 16:19:10 +00:00
* Correct warning: cast to smaller integer type -- X_init/lispbitmap * Fixes to INTRSAFE, INTRSAFE0 and ensure TIMEOUT, TIMEOUT0 used appropriately INTRSAFE and INTRSAFE0 must clear errno before executing the library or system call because not all library calls set errno on success. Avoid casting pointers or larger integer values down to smaller ints before comparing to 0 or -1, and use NULL (a pointer) rather than 0. Fix cases where the result of the library call is a pointer rather than an int to use TIMEOUT0 instead of TIMEOUT, testing for NULL rather than -1 on timeout (errno == EINTR) * Remove useless validity check of LASTVMEMFILEPAGE_word pointer * Convert pointer arithmetic type in drawline from int to ptrdiff_t * Add NOTE warning about a 32-bit vs 64-bit issue affecting currently unused GET_NATIVE_ADDR_FROM_LISP_PTR
11 lines
392 B
C
11 lines
392 B
C
#ifndef XINITDEFS_H
|
|
#define XINITDEFS_H 1
|
|
#include "devif.h" /* for DspInterface */
|
|
void init_Xevent(DspInterface dsp);
|
|
void lisp_Xexit(DspInterface dsp);
|
|
void Xevent_before_raid(DspInterface dsp);
|
|
void Xevent_after_raid(DspInterface dsp);
|
|
void Open_Display(DspInterface dsp);
|
|
DspInterface X_init(DspInterface dsp, LispPTR lispbitmap, int width_hint, int height_hint, int depth_hint);
|
|
#endif
|