ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rclock.C
(Generate patch)

Comparing rxvt-unicode/src/rclock.C (file contents):
Revision 1.6 by root, Sat Jul 17 00:10:15 2021 UTC vs.
Revision 1.7 by root, Sat Jul 17 00:14:54 2021 UTC

304 0, 0, /* base size */ 304 0, 0, /* base size */
305 NorthWestGravity /* gravity */ 305 NorthWestGravity /* gravity */
306}; 306};
307 307
308/* subroutine declarations */ 308/* subroutine declarations */
309static void geometry2sizehint (mywindow_t * /* win */ , 309static void geometry2sizehint (mywindow_t *win, const char *geom);
310 const char * /* geom */ );
311static void Create_Windows (int /* argc */ , 310static void Create_Windows (int argc, char *argv[]);
312 char * /* argv */ []);
313static void getXevent (); 311static void getXevent ();
314static void print_error (const char * /* fmt */ , ...); 312static void print_error (const char *fmt, ...);
315 313
316static void Draw_Window (mywindow_t * /* this_win */ , 314static void Draw_Window (mywindow_t *this_win, int full_redraw);
317 int /* full_redraw */ );
318static void Reminder (); 315static void Reminder ();
319static void Next_Reminder (int /* update_only */ ); 316static void Next_Reminder (int update_only);
320 317
321/* Arguments for Next_Reminder() */ 318/* Arguments for Next_Reminder() */
322#define REPLACE 0 319#define REPLACE 0
323#define UPDATE 1 320#define UPDATE 1
324 321
636 633
637/* 634/*
638 * translate geometry string to appropriate sizehint 635 * translate geometry string to appropriate sizehint
639 */ 636 */
640static void 637static void
641geometry2sizehint (mywindow_t * win, const char *geom) 638geometry2sizehint (mywindow_t *win, const char *geom)
642{ 639{
643 int x, y, flags; 640 int x, y, flags;
644 unsigned int width, height; 641 unsigned int width, height;
645 642
646 /* copy in values */ 643 /* copy in values */
770} 767}
771 768
772static time_t 769static time_t
773mk_time (struct tm *tmval) 770mk_time (struct tm *tmval)
774{ 771{
775 return (tmval->tm_min + 60 * (tmval->tm_hour + 24 * (tmval->tm_mday + 31 * ((tmval->tm_mon + 1) + 12 * tmval->tm_year)))); 772 return (tmval->tm_min
773 + 60 * (tmval->tm_hour
774 + 24 * (tmval->tm_mday
775 + 31 * ((tmval->tm_mon + 1)
776 + 12 * tmval->tm_year))));
776} 777}
777 778
778#ifdef MAIL 779#ifdef MAIL
779static int 780static int
780MailAvailable () 781MailAvailable ()
811 * Redraw the whole window after an exposure or size change. 812 * Redraw the whole window after an exposure or size change.
812 * After a timeout, only redraw the hands. 813 * After a timeout, only redraw the hands.
813 * Provide reminder if needed. 814 * Provide reminder if needed.
814 *----------------------------------------------------------------------*/ 815 *----------------------------------------------------------------------*/
815static void 816static void
816Draw_Window (mywindow_t * W, int full_redraw) 817Draw_Window (mywindow_t *W, int full_redraw)
817{ 818{
818 static int savedDay = -1; 819 static int savedDay = -1;
819 820
820 time_t currentTime; 821 time_t currentTime;
821 struct tm *tmval; 822 struct tm *tmval;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines