# HG changeset patch # User Geoff Voelker # Date 823226264 0 # Node ID 61fc696a0c6ac747b33d2620fbfbae3bfde4d190 # Parent c1d25453a95f48d46831a7643fe97848e0fd8763 (prepend_msg): New function. diff -r c1d25453a95f -r 61fc696a0c6a src/w32xfns.c --- a/src/w32xfns.c Thu Feb 01 21:30:03 1996 +0000 +++ b/src/w32xfns.c Fri Feb 02 01:57:44 1996 +0000 @@ -143,6 +143,27 @@ 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