diff options
author | Geoff Voelker <voelker@cs.washington.edu> | 1996-02-02 01:57:44 +0000 |
---|---|---|
committer | Geoff Voelker <voelker@cs.washington.edu> | 1996-02-02 01:57:44 +0000 |
commit | 7c69181b61d51094f461933198c114edbacad31b (patch) | |
tree | 46377f9c4682d49cf244d44ac3d34697dc0ed254 /src/w32xfns.c | |
parent | 140f8645fe75e9ec1535e5ab13e7c2850236fc09 (diff) | |
download | emacs-7c69181b61d51094f461933198c114edbacad31b.tar.gz |
(prepend_msg): New function.
Diffstat (limited to 'src/w32xfns.c')
-rw-r--r-- | src/w32xfns.c | 21 |
1 files changed, 21 insertions, 0 deletions
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 * "=<width>x<height>{+-}<xoffset>{+-}<yoffset>", where |