Mercurial > emacs
comparison src/w32xfns.c @ 14460:61fc696a0c6a
(prepend_msg): New function.
author | Geoff Voelker <voelker@cs.washington.edu> |
---|---|
date | Fri, 02 Feb 1996 01:57:44 +0000 |
parents | a05133ebf2bf |
children | c1494aa589e8 |
comparison
equal
deleted
inserted
replaced
14459:c1d25453a95f | 14460:61fc696a0c6a |
---|---|
136 SetEvent (hEvent); | 136 SetEvent (hEvent); |
137 } | 137 } |
138 | 138 |
139 lpTail = lpNew; | 139 lpTail = lpNew; |
140 | 140 |
141 leave_crit (); | |
142 | |
143 return (TRUE); | |
144 } | |
145 | |
146 BOOL | |
147 prepend_msg (Win32Msg *lpmsg) | |
148 { | |
149 int_msg * lpNew = (int_msg *) myalloc (sizeof (int_msg)); | |
150 | |
151 if (!lpNew) | |
152 return (FALSE); | |
153 | |
154 bcopy (lpmsg, &(lpNew->w32msg), sizeof (Win32Msg)); | |
155 | |
156 enter_crit (); | |
157 | |
158 nQueue++; | |
159 lpNew->lpNext = lpHead; | |
160 lpHead = lpNew; | |
161 | |
141 leave_crit (); | 162 leave_crit (); |
142 | 163 |
143 return (TRUE); | 164 return (TRUE); |
144 } | 165 } |
145 | 166 |