aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32notify.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/w32notify.c')
-rw-r--r--src/w32notify.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/w32notify.c b/src/w32notify.c
index 764ded6559f..ab6cd12ab93 100644
--- a/src/w32notify.c
+++ b/src/w32notify.c
@@ -118,9 +118,7 @@ BYTE file_notifications[16384];
118DWORD notifications_size; 118DWORD notifications_size;
119void *notifications_desc; 119void *notifications_desc;
120 120
121static Lisp_Object Qfile_name, Qdirectory_name, Qattributes; 121static Lisp_Object watch_list;
122static Lisp_Object Qlast_write_time, Qlast_access_time, Qcreation_time;
123static Lisp_Object Qsecurity_desc, Qsubtree, watch_list;
124 122
125/* Signal to the main thread that we have file notifications for it to 123/* Signal to the main thread that we have file notifications for it to
126 process. */ 124 process. */
@@ -582,7 +580,7 @@ generate notifications correctly, though. */)
582 report_file_error ("Cannot watch file", Fcons (file, Qnil)); 580 report_file_error ("Cannot watch file", Fcons (file, Qnil));
583 } 581 }
584 /* Store watch object in watch list. */ 582 /* Store watch object in watch list. */
585 watch_descriptor = XIL ((EMACS_INT)dirwatch); 583 watch_descriptor = make_pointer_integer (dirwatch);
586 watch_object = Fcons (watch_descriptor, callback); 584 watch_object = Fcons (watch_descriptor, callback);
587 watch_list = Fcons (watch_object, watch_list); 585 watch_list = Fcons (watch_object, watch_list);
588 586
@@ -607,7 +605,7 @@ WATCH-DESCRIPTOR should be an object returned by `w32notify-add-watch'. */)
607 if (!NILP (watch_object)) 605 if (!NILP (watch_object))
608 { 606 {
609 watch_list = Fdelete (watch_object, watch_list); 607 watch_list = Fdelete (watch_object, watch_list);
610 dirwatch = (struct notification *)XLI (watch_descriptor); 608 dirwatch = (struct notification *)XINTPTR (watch_descriptor);
611 if (w32_valid_pointer_p (dirwatch, sizeof(struct notification))) 609 if (w32_valid_pointer_p (dirwatch, sizeof(struct notification)))
612 status = remove_watch (dirwatch); 610 status = remove_watch (dirwatch);
613 } 611 }
@@ -622,7 +620,7 @@ WATCH-DESCRIPTOR should be an object returned by `w32notify-add-watch'. */)
622Lisp_Object 620Lisp_Object
623w32_get_watch_object (void *desc) 621w32_get_watch_object (void *desc)
624{ 622{
625 Lisp_Object descriptor = XIL ((EMACS_INT)desc); 623 Lisp_Object descriptor = make_pointer_integer (desc);
626 624
627 /* This is called from the input queue handling code, inside a 625 /* This is called from the input queue handling code, inside a
628 critical section, so we cannot possibly QUIT if watch_list is not 626 critical section, so we cannot possibly QUIT if watch_list is not