Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[xsrc/xorg]: xsrc/external/mit/xclock/dist initial import of xclock-1.1.1
details: https://anonhg.NetBSD.org/xsrc/rev/9bafdf1cdf72
branches: xorg
changeset: 7013:9bafdf1cdf72
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Jul 11 08:00:29 2022 +0000
description:
initial import of xclock-1.1.1
diffstat:
external/mit/xclock/dist/ChangeLog | 114 +-
external/mit/xclock/dist/Clock.c | 2640 +++----
external/mit/xclock/dist/Makefile.in | 106 +-
external/mit/xclock/dist/README.md | 2 +-
external/mit/xclock/dist/aclocal.m4 | 2315 +++---
external/mit/xclock/dist/compile | 17 +-
external/mit/xclock/dist/config.guess | 1488 ++-
external/mit/xclock/dist/config.h.in | 13 +-
external/mit/xclock/dist/config.sub | 2885 ++++----
external/mit/xclock/dist/configure | 9842 ++++++++++++++++-------------
external/mit/xclock/dist/configure.ac | 8 +-
external/mit/xclock/dist/depcomp | 10 +-
external/mit/xclock/dist/install-sh | 172 +-
external/mit/xclock/dist/man/Makefile.in | 16 +-
external/mit/xclock/dist/man/xclock.man | 5 +-
external/mit/xclock/dist/missing | 16 +-
16 files changed, 10486 insertions(+), 9163 deletions(-)
diffs (truncated from 26107 to 300 lines):
diff -r 238b8d7e9b3f -r 9bafdf1cdf72 external/mit/xclock/dist/ChangeLog
--- a/external/mit/xclock/dist/ChangeLog Mon Jul 11 08:00:27 2022 +0000
+++ b/external/mit/xclock/dist/ChangeLog Mon Jul 11 08:00:29 2022 +0000
@@ -1,3 +1,115 @@
+commit a1202e71763cfc6aad4ade6e0dda4ac78b857e27
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date: Thu Apr 7 13:36:13 2022 -0700
+
+ xclock 1.1.1
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit f2acb1dbd75605d64f07740df2d83e73fe1b2ec3
+Author: Thomas Kuehne <thomas%kuehne.cn@localhost>
+Date: Sat Dec 11 18:00:11 2021 +0100
+
+ fix -Wabsolute-value compiler warning
+
+ fixes:
+ Clock.c:2011:14: warning: using integer absolute value function ‘abs’ when argument is of floating-point type ‘float’ [-Wabsolute-value]
+ 2011 | (abs(new->clock.update) <= SECOND_HAND_TIME);
+ | ^~~
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit e075308dccafb6f813ba0a8646b73860a7447a01
+Author: Thomas Kuehne <thomas%kuehne.cn@localhost>
+Date: Sat Dec 11 17:56:39 2021 +0100
+
+ fix -Wmissing-field-initializers warning
+
+ fixes:
+ Clock.c:269:6: warning: missing initializer for field ‘extension’ of ‘SimpleClassPart’ [-Wmissing-field-initializers]
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 96934f4472f10a1e5fcf53f6cbb9c88d743fa520
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date: Mon Apr 4 16:51:04 2022 -0700
+
+ Fall back to sin() and cos() calls on systems without sincos()
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 7126b722a055545d25291cd10076f4c3fe52f039
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date: Sun Apr 3 14:21:37 2022 -0700
+
+ xclock 1.1.0
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 65f9bee07f98d384068339bff025cf50d3cecead
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date: Sat Dec 4 10:50:42 2021 -0800
+
+ Build xz tarballs instead of bzip2
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 3b719d3587d3f8547eff584d949385c3f1926ed0
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date: Sat Dec 4 10:50:39 2021 -0800
+
+ gitlab CI: add a basic build test
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 8078de47f573fe60ee171647d23b9a097e818cc9
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date: Sun Nov 28 11:28:07 2021 -0800
+
+ Fix spelling/wording issues
+
+ Found by using:
+ codespell --builtin clear,rare,usage,informal,code,names
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 866881cde2f973b50dc2a9279f2a85611ec23974
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date: Sun Aug 1 16:28:13 2021 -0700
+
+ Fix build on Solaris
+
+ Solaris 11 has sqrt() in libc but needs to link with libm for sincos()
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 30be448a408bf8543047008ef823321016b73132
+Author: Keith Packard <keithp%keithp.com@localhost>
+Date: Thu Jul 15 23:24:30 2021 -0700
+
+ Update hands smoothly in Render mode
+
+ Draw hour and minute hand every time the clock repaints, placing them
+ at the correct position for the current time.
+
+ Signed-off-by: Keith Packard <keithp%keithp.com@localhost>
+
+commit ff94d3f086479724261b764b11a0012f5e6cdc63
+Author: rees4905 <jim%rees.org@localhost>
+Date: Fri Jun 12 22:27:10 2020 -0500
+
+ man: Indicate that -twelve & -twentyfour only affect brief display
+
+ Signed-off-by: rees4905 <jim%rees.org@localhost>
+
+commit 03dba28ffd633839e57af748edae07a2c8b06398
+Author: rees4905 <jim%rees.org@localhost>
+Date: Sun Jun 7 21:47:45 2020 -0500
+
+ re-indent Clock.c
+
+ Signed-off-by: rees4905 <jim%rees.org@localhost>
+
commit 755004c87b50e6334c07b0f4b9458a32b8c92566
Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
Date: Sun Jul 14 11:34:07 2019 -0700
@@ -867,7 +979,7 @@
Xft2/Render (enabled by default)
commit 80d8b6affb2ee823cf18a368ab33535cb1cf1721
-Author: Søren Sandmann Pedersen <sandmann%daimi.au.dk@localhost>
+Author: Søren Sandmann Pedersen <sandmann%daimi.au.dk@localhost>
Date: Fri Jul 1 17:55:48 2005 +0000
Build system for xclock
diff -r 238b8d7e9b3f -r 9bafdf1cdf72 external/mit/xclock/dist/Clock.c
--- a/external/mit/xclock/dist/Clock.c Mon Jul 11 08:00:27 2022 +0000
+++ b/external/mit/xclock/dist/Clock.c Mon Jul 11 08:00:29 2022 +0000
@@ -25,7 +25,6 @@
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
-
Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
@@ -76,9 +75,10 @@
/* $XFree86: xc/programs/xclock/Clock.c,v 3.25 2003/07/04 16:24:30 eich Exp $ */
#ifdef HAVE_CONFIG_H
-# include "config.h"
+#include "config.h"
#endif
+#define _GNU_SOURCE
#include <X11/Xlib.h>
#include <X11/StringDefs.h>
#include <X11/IntrinsicP.h>
@@ -87,6 +87,7 @@
#include <stdio.h>
#include <X11/Xos.h>
#include <X11/Xaw/XawInit.h>
+#include <math.h>
#if !defined(NO_I18N) && defined(HAVE_ICONV) && defined(HAVE_NL_LANGINFO)
#include <iconv.h>
#include <langinfo.h>
@@ -108,15 +109,14 @@
#endif
#ifndef NO_I18N
-#include <stdlib.h> /* for getenv() */
+#include <stdlib.h> /* for getenv() */
#include <locale.h>
-extern Boolean no_locale; /* if True, use old (unlocalized) behaviour */
+extern Boolean no_locale; /* if True, use old (unlocalized) behaviour */
#endif
-
/* Private Definitions */
-#define VERTICES_IN_HANDS 6 /* to draw triangle */
+#define VERTICES_IN_HANDS 6 /* to draw triangle */
#define PI 3.14159265358979
#define TWOPI (2. * PI)
@@ -134,7 +134,6 @@
#define min(a, b) ((a) < (b) ? (a) : (b))
/* #define abs(a) ((a) < 0 ? -(a) : (a)) */
-
/* Initialization of defaults */
#define offset(field) XtOffsetOf(ClockRec, clock.field)
@@ -142,138 +141,139 @@
static XtResource resources[] = {
{XtNwidth, XtCWidth, XtRDimension, sizeof(Dimension),
- goffset(width), XtRImmediate, (XtPointer) 0},
+ goffset(width), XtRImmediate, (XtPointer) 0},
{XtNheight, XtCHeight, XtRDimension, sizeof(Dimension),
- goffset(height), XtRImmediate, (XtPointer) 0},
+ goffset(height), XtRImmediate, (XtPointer) 0},
{XtNupdate, XtCInterval, XtRFloat, sizeof(float),
- offset(update), XtRString, "60.0" },
+ offset(update), XtRString, "60.0"},
#ifndef XRENDER
{XtNforeground, XtCForeground, XtRPixel, sizeof(Pixel),
- offset(fgpixel), XtRString, XtDefaultForeground},
+ offset(fgpixel), XtRString, XtDefaultForeground},
#endif
{XtNhand, XtCForeground, XtRPixel, sizeof(Pixel),
- offset(Hdpixel), XtRString, XtDefaultForeground},
+ offset(Hdpixel), XtRString, XtDefaultForeground},
{XtNhighlight, XtCForeground, XtRPixel, sizeof(Pixel),
- offset(Hipixel), XtRString, XtDefaultForeground},
+ offset(Hipixel), XtRString, XtDefaultForeground},
{XtNutime, XtCBoolean, XtRBoolean, sizeof(Boolean),
- offset(utime), XtRImmediate, (XtPointer) FALSE},
+ offset(utime), XtRImmediate, (XtPointer) FALSE},
{XtNanalog, XtCBoolean, XtRBoolean, sizeof(Boolean),
- offset(analog), XtRImmediate, (XtPointer) TRUE},
+ offset(analog), XtRImmediate, (XtPointer) TRUE},
{XtNtwentyfour, XtCBoolean, XtRBoolean, sizeof(Boolean),
- offset(twentyfour), XtRImmediate, (XtPointer) TRUE},
+ offset(twentyfour), XtRImmediate, (XtPointer) TRUE},
{XtNbrief, XtCBoolean, XtRBoolean, sizeof(Boolean),
- offset(brief), XtRImmediate, (XtPointer) FALSE},
+ offset(brief), XtRImmediate, (XtPointer) FALSE},
{XtNstrftime, XtCString, XtRString, sizeof(String),
- offset(strftime), XtRString, ""},
+ offset(strftime), XtRString, ""},
{XtNchime, XtCBoolean, XtRBoolean, sizeof(Boolean),
- offset(chime), XtRImmediate, (XtPointer) FALSE },
+ offset(chime), XtRImmediate, (XtPointer) FALSE},
{XtNpadding, XtCMargin, XtRInt, sizeof(int),
- offset(padding), XtRImmediate, (XtPointer) 8},
+ offset(padding), XtRImmediate, (XtPointer) 8},
{XtNfont, XtCFont, XtRFontStruct, sizeof(XFontStruct *),
- offset(font), XtRString, XtDefaultFont},
+ offset(font), XtRString, XtDefaultFont},
#ifndef NO_I18N
- {XtNfontSet, XtCFontSet, XtRFontSet, sizeof(XFontSet),
- offset(fontSet), XtRString, XtDefaultFontSet},
+ {XtNfontSet, XtCFontSet, XtRFontSet, sizeof(XFontSet),
+ offset(fontSet), XtRString, XtDefaultFontSet},
#endif
- {XtNbackingStore, XtCBackingStore, XtRBackingStore, sizeof (int),
- offset (backing_store), XtRString, "default"},
+ {XtNbackingStore, XtCBackingStore, XtRBackingStore, sizeof(int),
+ offset(backing_store), XtRString, "default"},
#ifdef XRENDER
{XtNrender, XtCBoolean, XtRBoolean, sizeof(Boolean),
- offset(render), XtRImmediate, (XtPointer) TRUE },
+ offset(render), XtRImmediate, (XtPointer) TRUE},
{XtNbuffer, XtCBoolean, XtRBoolean, sizeof(Boolean),
- offset(buffer), XtRImmediate, (XtPointer) TRUE },
+ offset(buffer), XtRImmediate, (XtPointer) TRUE},
{XtNsharp, XtCBoolean, XtRBoolean, sizeof(Boolean),
- offset(sharp), XtRImmediate, (XtPointer) FALSE },
+ offset(sharp), XtRImmediate, (XtPointer) FALSE},
{XtNforeground, XtCForeground, XtRXftColor, sizeof(XftColor),
- offset(fg_color), XtRString, XtDefaultForeground},
+ offset(fg_color), XtRString, XtDefaultForeground},
{XtNhourColor, XtCForeground, XtRXftColor, sizeof(XftColor),
- offset(hour_color), XtRString, XtDefaultForeground},
+ offset(hour_color), XtRString, XtDefaultForeground},
{XtNminuteColor, XtCForeground, XtRXftColor, sizeof(XftColor),
- offset(min_color), XtRString, XtDefaultForeground},
+ offset(min_color), XtRString, XtDefaultForeground},
{XtNsecondColor, XtCForeground, XtRXftColor, sizeof(XftColor),
- offset(sec_color), XtRString, XtDefaultForeground},
+ offset(sec_color), XtRString, XtDefaultForeground},
{XtNmajorColor, XtCForeground, XtRXftColor, sizeof(XftColor),
- offset(major_color), XtRString, XtDefaultForeground},
+ offset(major_color), XtRString, XtDefaultForeground},
{XtNminorColor, XtCForeground, XtRXftColor, sizeof(XftColor),
- offset(minor_color), XtRString, XtDefaultForeground},
- {XtNface, XtCFace, XtRXftFont, sizeof (XftFont *),
- offset (face), XtRString, ""},
+ offset(minor_color), XtRString, XtDefaultForeground},
+ {XtNface, XtCFace, XtRXftFont, sizeof(XftFont *),
+ offset(face), XtRString, ""},
#endif
};
#undef offset
#undef goffset
-static void ClassInitialize ( void );
-static void Initialize ( Widget request, Widget new, ArgList args,
- Cardinal *num_args );
-static void Realize ( Widget gw, XtValueMask *valueMask,
- XSetWindowAttributes *attrs );
-static void Destroy ( Widget gw );
-static void Resize ( Widget gw );
-static void Redisplay ( Widget gw, XEvent *event, Region region );
-static void clock_tic ( XtPointer client_data, XtIntervalId *id );
-static void erase_hands ( ClockWidget w, struct tm *tm );
-static void ClockAngle ( int tick_units, double *sinp, double *cosp );
-static void DrawLine ( ClockWidget w, Dimension blank_length,
- Dimension length, int tick_units );
-static void DrawHand ( ClockWidget w, Dimension length, Dimension width,
- int tick_units );
-static void DrawSecond ( ClockWidget w, Dimension length, Dimension width,
- Dimension offset, int tick_units );
-static void SetSeg ( ClockWidget w, int x1, int y1, int x2, int y2 );
-static void DrawClockFace ( ClockWidget w );
Home |
Main Index |
Thread Index |
Old Index