Commit 7c69181b authored by Geoff Voelker's avatar Geoff Voelker

(prepend_msg): New function.

parent 140f8645
......@@ -143,6 +143,27 @@ post_msg (lpmsg)
return (TRUE);
}
BOOL
prepend_msg (Win32Msg *lpmsg)
{
int_msg * lpNew = (int_msg *) myalloc (sizeof (int_msg));
if (!lpNew)
return (FALSE);
bcopy (lpmsg, &(lpNew->w32msg), sizeof (Win32Msg));
enter_crit ();
nQueue++;
lpNew->lpNext = lpHead;
lpHead = lpNew;
leave_crit ();
return (TRUE);
}
/*
* XParseGeometry parses strings of the form
* "=<width>x<height>{+-}<xoffset>{+-}<yoffset>", where
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment