aboutsummaryrefslogtreecommitdiffstats
path: root/src/lread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lread.c')
-rw-r--r--src/lread.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lread.c b/src/lread.c
index 57c7df74127..9518631ba6d 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -609,7 +609,7 @@ read_filtered_event (bool no_switch_frame, bool ascii_required,
609 bool error_nonascii, bool input_method, Lisp_Object seconds) 609 bool error_nonascii, bool input_method, Lisp_Object seconds)
610{ 610{
611 Lisp_Object val, delayed_switch_frame; 611 Lisp_Object val, delayed_switch_frame;
612 EMACS_TIME end_time; 612 struct timespec end_time;
613 613
614#ifdef HAVE_WINDOW_SYSTEM 614#ifdef HAVE_WINDOW_SYSTEM
615 if (display_hourglass_p) 615 if (display_hourglass_p)
@@ -622,8 +622,8 @@ read_filtered_event (bool no_switch_frame, bool ascii_required,
622 if (NUMBERP (seconds)) 622 if (NUMBERP (seconds))
623 { 623 {
624 double duration = extract_float (seconds); 624 double duration = extract_float (seconds);
625 EMACS_TIME wait_time = EMACS_TIME_FROM_DOUBLE (duration); 625 struct timespec wait_time = dtotimespec (duration);
626 end_time = add_emacs_time (current_emacs_time (), wait_time); 626 end_time = timespec_add (current_timespec (), wait_time);
627 } 627 }
628 628
629 /* Read until we get an acceptable event. */ 629 /* Read until we get an acceptable event. */
@@ -1262,7 +1262,7 @@ Return t if the file exists and loads successfully. */)
1262 } 1262 }
1263 1263
1264 if (result == 0 1264 if (result == 0
1265 && EMACS_TIME_LT (get_stat_mtime (&s1), get_stat_mtime (&s2))) 1265 && timespec_cmp (get_stat_mtime (&s1), get_stat_mtime (&s2)) < 0)
1266 { 1266 {
1267 /* Make the progress messages mention that source is newer. */ 1267 /* Make the progress messages mention that source is newer. */
1268 newer = 1; 1268 newer = 1;
@@ -3229,7 +3229,7 @@ substitute_object_recurse (Lisp_Object object, Lisp_Object placeholder, Lisp_Obj
3229 if (BOOL_VECTOR_P (subtree)) 3229 if (BOOL_VECTOR_P (subtree))
3230 return subtree; /* No sub-objects anyway. */ 3230 return subtree; /* No sub-objects anyway. */
3231 else if (CHAR_TABLE_P (subtree) || SUB_CHAR_TABLE_P (subtree) 3231 else if (CHAR_TABLE_P (subtree) || SUB_CHAR_TABLE_P (subtree)
3232 || COMPILEDP (subtree)) 3232 || COMPILEDP (subtree) || HASH_TABLE_P (subtree))
3233 length = ASIZE (subtree) & PSEUDOVECTOR_SIZE_MASK; 3233 length = ASIZE (subtree) & PSEUDOVECTOR_SIZE_MASK;
3234 else if (VECTORP (subtree)) 3234 else if (VECTORP (subtree))
3235 length = ASIZE (subtree); 3235 length = ASIZE (subtree);