From 7c69181b61d51094f461933198c114edbacad31b Mon Sep 17 00:00:00 2001 From: Geoff Voelker Date: Fri, 2 Feb 1996 01:57:44 +0000 Subject: [PATCH] (prepend_msg): New function. --- src/w32xfns.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/w32xfns.c b/src/w32xfns.c index e478bc24537..3898ff00d8f 100644 --- a/src/w32xfns.c +++ b/src/w32xfns.c @@ -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 * "=x{+-}{+-}", where -- 2.39.2