Mercurial > emacs
changeset 14460:61fc696a0c6a
(prepend_msg): New function.
author | Geoff Voelker <voelker@cs.washington.edu> |
---|---|
date | Fri, 02 Feb 1996 01:57:44 +0000 |
parents | c1d25453a95f |
children | 4fe9540be594 |
files | src/w32xfns.c |
diffstat | 1 files changed, 21 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 * "=<width>x<height>{+-}<xoffset>{+-}<yoffset>", where