pike.git/
src/
modules/
Wnotify/
wnotify.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2014-12-06
2014-12-06 19:14:32 by Bill Welliver <bill@welliver.org>
02a01be53d23059918d6c213efb6536eef74da15 (
11
lines) (+
6
/-
5
)
[
Show
|
Annotate
]
Branch:
8.0
build: Windows buildability fixes.
149:
struct array * ph; HANDLE nh; HANDLE * handles;
-
h = get_storage(handle, NotificationHandle_program);
+
h = get_storage(handle,
Wnotify_
NotificationHandle_program);
if(!h) { pop_stack();
158:
ph = append_array(THIS->phandles, &Pike_sp[-args]); THIS->phandles = ph;
-
nh = OBJ2_NOTIFICATIONHANDLE(handle)->handle;
+
nh = OBJ2_
WNOTIFY_
NOTIFICATIONHANDLE(handle)->handle;
if(THIS->handles_size <= THIS->handles_used) {
192:
Pike_error("poll: no paths to monitor.\n"); }
-
if(!timeout ||
(timeout->type == PIKE
_
T
_
INT &&
timeout
->u.integer == 0
))
+
if(!timeout ||
SAFE
_
IS
_
ZERO(
timeout))
{ to = INFINITE; }
-
else if(timeout
->type
== PIKE_T_FLOAT)
+
else if(
TYPEOF(*
timeout
)
== PIKE_T_FLOAT)
{ to = (DWORD)timeout->u.float_number * 1000; }
215:
struct svalue * sv; sv = THIS->phandles->item+res; /* TODO: proper value checking of the items in the array! */
-
OBJ2_NOTIFICATIONHANDLE(sv->u.object)->triggered = 1;
+
OBJ2_
WNOTIFY_
NOTIFICATIONHANDLE(sv->u.object)->triggered = 1;
push_svalue(&ITEM(THIS->phandles)[res]); FindNextChangeNotification(THIS->handles+res);