mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-22 14:17:43 +02:00
textio: create callback typedef cb_textio_input_t
This commit is contained in:
committed by
Tim Edwards
parent
c8ca1d242e
commit
6ed8f17136
+4
-3
@@ -175,10 +175,11 @@ NullTextSize(text, size, r)
|
||||
* ----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/** @typedef cb_textio_input_t */
|
||||
void
|
||||
nullStdin(fd, cdata)
|
||||
int fd;
|
||||
ClientData cdata;
|
||||
nullStdin(
|
||||
int fd,
|
||||
ClientData cdata) /* notused */
|
||||
{
|
||||
int ch;
|
||||
TxInputEvent *event;
|
||||
|
||||
+10
-7
@@ -64,7 +64,7 @@ extern void GrOGLClose(), GrOGLFlush();
|
||||
extern void GrOGLDelete(), GrOGLConfigure(), GrOGLRaise(), GrOGLLower();
|
||||
extern void GrOGLLock(), GrOGLUnlock(), GrOGLIconUpdate();
|
||||
extern bool GrOGLInit(), GrOGLCreate();
|
||||
extern void grOGLWStdin();
|
||||
extern void grOGLWStdin(int fd, ClientData cdata); /* cb_textio_input_t (unused) */
|
||||
|
||||
|
||||
/*---------------------------------------------------------
|
||||
@@ -418,8 +418,11 @@ oglSetProjection(llx, lly, width, height)
|
||||
/* is a macro and can be re-implemented using XNextEvent() calls. */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
/** @typedef cb_textio_input_t */
|
||||
void
|
||||
pipehandler()
|
||||
pipehandler(
|
||||
int fd,
|
||||
ClientData cdata) /* notused */
|
||||
{
|
||||
TxInputEvent *event;
|
||||
XEvent xevent;
|
||||
@@ -757,12 +760,12 @@ oglSetDisplay (dispType, outFileName, mouseFileName)
|
||||
*
|
||||
* ----------------------------------------------------------------------------
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
|
||||
/*ARGSUSED*/
|
||||
/** @typedef cb_textio_input_t */
|
||||
void
|
||||
grOGLWStdin(fd, cdata)
|
||||
int fd;
|
||||
ClientData cdata;
|
||||
grOGLWStdin(
|
||||
int fd,
|
||||
ClientData cdata) /* notused */
|
||||
{
|
||||
int ch;
|
||||
TxInputEvent *event;
|
||||
|
||||
+11
-6
@@ -118,7 +118,7 @@ extern void GrX11Close(), GrX11Flush();
|
||||
extern bool GrX11Init(), GrX11Create();
|
||||
extern void GrX11Delete(), GrX11Configure(), GrX11Raise(), GrX11Lower();
|
||||
extern void GrX11Lock(), GrX11Unlock(), GrX11IconUpdate();
|
||||
extern void grXWStdin();
|
||||
extern void grXWStdin(int fd, ClientData cdata); /* cb_textio_input_t (unused) */
|
||||
extern bool grx11GetCursorPos();
|
||||
|
||||
|
||||
@@ -739,7 +739,7 @@ GrX11Flush ()
|
||||
/*
|
||||
* ---------------------------------------------------------------------------
|
||||
*
|
||||
* grXStdin --
|
||||
* grX11Stdin --
|
||||
*
|
||||
* Handle the stdin device for the X driver.
|
||||
*
|
||||
@@ -752,8 +752,12 @@ GrX11Flush ()
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/*ARGSUSED*/
|
||||
/** @typedef cb_textio_input_t */
|
||||
void
|
||||
grX11Stdin()
|
||||
grX11Stdin(
|
||||
int fd,
|
||||
ClientData cdata) /* notused */
|
||||
{
|
||||
TxInputEvent *event;
|
||||
XEvent xevent;
|
||||
@@ -1104,10 +1108,11 @@ x11SetDisplay (dispType, outFileName, mouseFileName)
|
||||
* ----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/** @typedef cb_textio_input_t */
|
||||
void
|
||||
grXWStdin(fd, cdata)
|
||||
int fd;
|
||||
ClientData cdata;
|
||||
grXWStdin(
|
||||
int fd,
|
||||
ClientData cdata) /* notused */
|
||||
{
|
||||
int ch;
|
||||
TxInputEvent *event;
|
||||
|
||||
Reference in New Issue
Block a user