From: Dan Nicolaescu Date: Thu, 29 Jul 2010 15:50:04 +0000 (-0700) Subject: Make lisp_time_argument work on all systems. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~49^2~102 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=26469a38e110614fd3ea603f0b6ee2ab6d27a3be;p=emacs.git Make lisp_time_argument work on all systems. * src/lisp.h (lisp_time_argument): Move declaration ... * src/systime.h (lisp_time_argument): ... here * src/editfns.c (lisp_time_argument): Remove declaration. (Bug#6751) --- diff --git a/src/ChangeLog b/src/ChangeLog index 83997354718..6dfd993ede4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2010-07-29 Dan Nicolaescu + + Make lisp_time_argument declaration work on all systems. + * lisp.h (lisp_time_argument): Move declaration ... + * systime.h (lisp_time_argument): ... here + * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751) + 2010-07-29 Jan Djärv * vm-limit.c (POINTER): Add typedef for it. diff --git a/src/editfns.c b/src/editfns.c index 24140eff152..e27e37fb33f 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -97,7 +97,6 @@ static int tm_diff (struct tm *, struct tm *); static void find_field (Lisp_Object, Lisp_Object, Lisp_Object, int *, Lisp_Object, int *); static void update_buffer_properties (int, int); static Lisp_Object region_limit (int); -int lisp_time_argument (Lisp_Object, time_t *, int *); static size_t emacs_memftimeu (char *, size_t, const char *, size_t, const struct tm *, int); static void general_insert_function (void (*) (const unsigned char *, EMACS_INT), diff --git a/src/lisp.h b/src/lisp.h index 06a8b672fba..f278f856f5c 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -2995,7 +2995,6 @@ EXFUN (Ffield_beginning, 3); EXFUN (Ffield_end, 3); EXFUN (Ffield_string_no_properties, 1); extern void set_time_zone_rule (const char *); -extern int lisp_time_argument (Lisp_Object, time_t *, int *); /* Defined in buffer.c */ extern int mouse_face_overlay_overlaps (Lisp_Object); diff --git a/src/systime.h b/src/systime.h index bd789e9bd32..9f6a907a9c2 100644 --- a/src/systime.h +++ b/src/systime.h @@ -147,6 +147,9 @@ extern void set_waiting_for_input (EMACS_TIME *); #ifdef GCPRO1 /* defined in dired.c */ extern Lisp_Object make_time (time_t); + +/* defined in editfns.c*/ +extern int lisp_time_argument (Lisp_Object, time_t *, int *); #endif /* Compare times T1 and T2. Value is 0 if T1 and T2 are the same.