Skip to content
This repository was archived by the owner on Oct 24, 2021. It is now read-only.

Commit ac7176b

Browse files
author
user
committed
Add version 1.4
Version 1.4 by Wolfram Gloger. Downloaded from: https://www.ibiblio.org/pub/X11/contrib/applications/sunclock-1.4.tar.gz
1 parent d16a532 commit ac7176b

File tree

8 files changed

+217
-76
lines changed

8 files changed

+217
-76
lines changed

CHANGES

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
Version 1.4
2+
- Packaged files into subdirectory
3+
- Fixed timeout handling for modern window managers (e.g. WindowMaker)
4+
- Fixed city drawing; use small font for cities
5+
- Added -animateicon / -a option to animate icon
6+
- Uploaded by Wolfram Gloger (wmglo@Dent.MED.Uni-Muenchen.DE)
7+
18
Version 1.3
29
- Timezone now displayed in icon. Suggested by Rich Gonzalez
310
(gonzo@u.washington.edu)

Imakefile

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
# your struct tm contains a tm_zone field), i.e. SunOS 4.1.x. Don't
66
# define for system V or Solaris
77
# Set -DBIGFONT= and -DSMALLFONT= whatever fonts you like
8-
# Pick -O or -g
98
#
109

1110
#ifdef HPArchitecture
1211
CCOPTIONS = -Ae -DBIGFONT=\"9x15\" -DSMALLFONT=\"6x10\"
1312
#else
14-
# SunOS
15-
CCOPTIONS=-DBIGFONT=\"9x15\" -DSMALLFONT=\"6x10\" -O -DNEW_CTIME
16-
# Solaris
17-
#CCOPTIONS=-DBIGFONT=\"9x15\" -DSMALLFONT=\"6x10\" -O
13+
# gcc
14+
CCOPTIONS = -DBIGFONT=\"9x15\" -DSMALLFONT=\"6x10\" -Wall
1815
#endif
1916

2017
SRCS=sunclock.c bitmaps.c astro.c tildepath.c
2118
OBJS=sunclock.o bitmaps.o astro.o tildepath.o
22-
LOCAL_LIBRARIES=$(XLIB) -lm
23-
DEPLIBS= # I don't know what I'm doing, and I hate imake!
19+
20+
# may have to replace XONLYLIB with XLIB for old imake
21+
LOCAL_LIBRARIES=$(XONLYLIB) -lm
22+
23+
#DEPLIBS= # I don't know what I'm doing, and I hate imake!
2424

2525
ComplexProgramTarget(sunclock)

README

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1-
Sun Clock - X11 Version 1.3, November 16, 1994.
1+
Sun Clock - X11 Version 1.4, Mar 30, 1998.
22
===============================================
33

4+
This version is fixed for modern X servers and window managers. The
5+
icon can now be animated with the `-a' option. See CHANGES.
6+
7+
Wolfram Gloger, wmglo@dent.med.uni-muenchen.de
8+
9+
Version 1.3, November 16, 1994.
10+
===============================
11+
412
This version should now work under Linux/XFree86. The only additional
513
feature is that the timezone is now displayed in the icon.
614

astro.c

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ double m, ecc;
6868
or apparent, as desired) is returned as degrees in
6969
SLONG. */
7070

71+
void
7172
sunpos(jd, apparent, ra, dec, rv, slong)
7273
double jd;
7374
int apparent;

bitmaps.h

+11-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@
88
#define EXTERN extern
99
#endif
1010

11+
#ifdef __STDC__
12+
#define CONST const
13+
#else
14+
#define CONST
15+
#endif
16+
1117
#define icon_map_width 128
1218
#define icon_map_height 63
13-
EXTERN char icon_map_bits[]
19+
EXTERN CONST char icon_map_bits[]
1420
#ifdef DEFINE_BITS
1521
#include "icon.bits.h"
1622
#else
@@ -19,9 +25,12 @@ EXTERN char icon_map_bits[]
1925

2026
#define large_map_width 640
2127
#define large_map_height 320
22-
EXTERN char large_map_bits[]
28+
EXTERN CONST char large_map_bits[]
2329
#ifdef DEFINE_BITS
2430
#include "large.bits.h"
2531
#else
2632
;
2733
#endif
34+
35+
#undef CONST
36+
#undef EXTERN

0 commit comments

Comments
 (0)