Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/xorg]: xsrc/external/mit/xcalc/dist initial import of xcalc-1.1.2



details:   https://anonhg.NetBSD.org/xsrc/rev/523d9ce5f319
branches:  xorg
changeset: 7540:523d9ce5f319
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Jun 19 07:31:02 2023 +0000

description:
initial import of xcalc-1.1.2

diffstat:

 external/mit/xcalc/dist/ChangeLog                |  76 ++++++++++++++++++++++++
 external/mit/xcalc/dist/aclocal.m4               |  64 +++++++++++++------
 external/mit/xcalc/dist/app-defaults/XCalc       |  10 +++
 external/mit/xcalc/dist/app-defaults/XCalc-color |  56 ++++++++++++----
 external/mit/xcalc/dist/config.guess             |  56 ++++++++++++----
 external/mit/xcalc/dist/config.sub               |  47 +++++++++++---
 external/mit/xcalc/dist/configure                |  36 ++++++-----
 external/mit/xcalc/dist/configure.ac             |   4 +-
 external/mit/xcalc/dist/man/xcalc.man            |  15 +++-
 external/mit/xcalc/dist/math.c                   |  10 +-
 external/mit/xcalc/dist/xcalc.c                  |  41 +++++++++---
 11 files changed, 314 insertions(+), 101 deletions(-)

diffs (truncated from 954 to 300 lines):

diff -r b25386640841 -r 523d9ce5f319 external/mit/xcalc/dist/ChangeLog
--- a/external/mit/xcalc/dist/ChangeLog Mon Jun 19 07:31:00 2023 +0000
+++ b/external/mit/xcalc/dist/ChangeLog Mon Jun 19 07:31:02 2023 +0000
@@ -1,3 +1,79 @@
+commit 62bfb33c545c6afd0cd5ee050168ce1fd461a956
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Thu May 4 16:54:24 2023 -0700
+
+    xcalc 1.1.2
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit b81cfc8c61991a8f997340f5c67704d695c1fc21
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sat Feb 18 13:45:45 2023 -0800
+
+    Accept number keys on main keyboard when NumLock is on
+    
+    Adds translations with NumLock modifier active, since removing "None"
+    from the existing translations would make shifted keys enter numbers
+    instead of doing the operations corresponding to the shifted character.
+    
+    Fixes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=173314
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit d8e95b8b949970dbeeeeba73b1bc71d7f662e5cc
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sun Feb 5 11:13:41 2023 -0800
+
+    Add -help option
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit fc6543c0f9292880180531d656e80c903e8e7dfd
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sun Feb 5 10:22:09 2023 -0800
+
+    Stop casting function returns to void
+    
+    This was used with old versions of lint to stop warnings about
+    unused return values.
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 28429cd68dfdc9850d3ebc7f712dc752a1c9244c
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sun Feb 5 10:17:01 2023 -0800
+
+    Fix -version handling to not require opening a display first
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit d624c05dc44dcb69ae48d0c0665e326fcdc972ba
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sat Jan 28 11:25:46 2023 -0800
+
+    Add -version option
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 846249c8bb9f113573c7c6504ea45ae673f4652b
+Author: Michael Bäuerle  <michael.baeuerle%stz-e.de@localhost>
+Date:   Wed Jan 25 16:00:51 2023 +0100
+
+    Key color highlighting still incorrect
+    
+    Update red keys on right and make the hexadecimal digit keys white too
+    
+    Fixes: 19eb8ce ("TI mode: correct key color highlighting")
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 478c9725430c0087e08547fad5f93072f459da94
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Wed Jul 13 15:46:06 2022 -0700
+
+    gitlab CI: stop requiring Signed-off-by in commits
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
 commit dfbeedae7eefa1605ed2f912beb0de31810ec63f
 Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
 Date:   Sun Apr 3 10:33:30 2022 -0700
diff -r b25386640841 -r 523d9ce5f319 external/mit/xcalc/dist/aclocal.m4
--- a/external/mit/xcalc/dist/aclocal.m4        Mon Jun 19 07:31:00 2023 +0000
+++ b/external/mit/xcalc/dist/aclocal.m4        Mon Jun 19 07:31:02 2023 +0000
@@ -1426,7 +1426,7 @@ AS_VAR_IF([$1], [""], [$5], [$4])dnl
 
 dnl xorg-macros.m4.  Generated from xorg-macros.m4.in xorgversion.m4 by configure.
 dnl
-dnl Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
+dnl Copyright (c) 2005, 2023, Oracle and/or its affiliates.
 dnl
 dnl Permission is hereby granted, free of charge, to any person obtaining a
 dnl copy of this software and associated documentation files (the "Software"),
@@ -1463,7 +1463,7 @@ dnl DEALINGS IN THE SOFTWARE.
 # See the "minimum version" comment for each macro you use to see what
 # version you require.
 m4_defun([XORG_MACROS_VERSION],[
-m4_define([vers_have], [1.19.3])
+m4_define([vers_have], [1.20.0])
 m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.])))
 m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.])))
 m4_if(m4_cmp(maj_have, maj_needed), 0,,
@@ -1793,7 +1793,7 @@ AC_SUBST(MAKE_HTML)
 # Documentation tools are not always available on all platforms and sometimes
 # not at the appropriate level. This macro enables a module to test for the
 # presence of the tool and obtain it's path in separate variables. Coupled with
-# the --with-xmlto option, it allows maximum flexibilty in making decisions
+# the --with-xmlto option, it allows maximum flexibility in making decisions
 # as whether or not to use the xmlto package. When DEFAULT is not specified,
 # --with-xmlto assumes 'auto'.
 #
@@ -2007,7 +2007,7 @@ AM_CONDITIONAL([HAVE_PERL], [test "$have
 # Documentation tools are not always available on all platforms and sometimes
 # not at the appropriate level. This macro enables a module to test for the
 # presence of the tool and obtain it's path in separate variables. Coupled with
-# the --with-asciidoc option, it allows maximum flexibilty in making decisions
+# the --with-asciidoc option, it allows maximum flexibility in making decisions
 # as whether or not to use the asciidoc package. When DEFAULT is not specified,
 # --with-asciidoc assumes 'auto'.
 #
@@ -2077,7 +2077,7 @@ AM_CONDITIONAL([HAVE_ASCIIDOC], [test "$
 # Documentation tools are not always available on all platforms and sometimes
 # not at the appropriate level. This macro enables a module to test for the
 # presence of the tool and obtain it's path in separate variables. Coupled with
-# the --with-doxygen option, it allows maximum flexibilty in making decisions
+# the --with-doxygen option, it allows maximum flexibility in making decisions
 # as whether or not to use the doxygen package. When DEFAULT is not specified,
 # --with-doxygen assumes 'auto'.
 #
@@ -2161,7 +2161,7 @@ AM_CONDITIONAL([HAVE_DOXYGEN], [test "$h
 # Documentation tools are not always available on all platforms and sometimes
 # not at the appropriate level. This macro enables a module to test for the
 # presence of the tool and obtain it's path in separate variables. Coupled with
-# the --with-groff option, it allows maximum flexibilty in making decisions
+# the --with-groff option, it allows maximum flexibility in making decisions
 # as whether or not to use the groff package. When DEFAULT is not specified,
 # --with-groff assumes 'auto'.
 #
@@ -2269,7 +2269,7 @@ AM_CONDITIONAL([HAVE_GROFF_HTML], [test 
 # Documentation tools are not always available on all platforms and sometimes
 # not at the appropriate level. This macro enables a module to test for the
 # presence of the tool and obtain it's path in separate variables. Coupled with
-# the --with-fop option, it allows maximum flexibilty in making decisions
+# the --with-fop option, it allows maximum flexibility in making decisions
 # as whether or not to use the fop package. When DEFAULT is not specified,
 # --with-fop assumes 'auto'.
 #
@@ -2363,7 +2363,7 @@ AC_SUBST([M4], [$ac_cv_path_M4])
 # Documentation tools are not always available on all platforms and sometimes
 # not at the appropriate level. This macro enables a module to test for the
 # presence of the tool and obtain it's path in separate variables. Coupled with
-# the --with-ps2pdf option, it allows maximum flexibilty in making decisions
+# the --with-ps2pdf option, it allows maximum flexibility in making decisions
 # as whether or not to use the ps2pdf package. When DEFAULT is not specified,
 # --with-ps2pdf assumes 'auto'.
 #
@@ -2418,7 +2418,7 @@ AM_CONDITIONAL([HAVE_PS2PDF], [test "$ha
 # not at the appropriate level. This macro enables a builder to skip all
 # documentation targets except traditional man pages.
 # Combined with the specific tool checking macros XORG_WITH_*, it provides
-# maximum flexibilty in controlling documentation building.
+# maximum flexibility in controlling documentation building.
 # Refer to:
 # XORG_WITH_XMLTO         --with-xmlto
 # XORG_WITH_ASCIIDOC      --with-asciidoc
@@ -2451,7 +2451,7 @@ AC_MSG_RESULT([$build_docs])
 #
 # This macro enables a builder to skip all developer documentation.
 # Combined with the specific tool checking macros XORG_WITH_*, it provides
-# maximum flexibilty in controlling documentation building.
+# maximum flexibility in controlling documentation building.
 # Refer to:
 # XORG_WITH_XMLTO         --with-xmlto
 # XORG_WITH_ASCIIDOC      --with-asciidoc
@@ -2484,7 +2484,7 @@ AC_MSG_RESULT([$build_devel_docs])
 #
 # This macro enables a builder to skip all functional specification targets.
 # Combined with the specific tool checking macros XORG_WITH_*, it provides
-# maximum flexibilty in controlling documentation building.
+# maximum flexibility in controlling documentation building.
 # Refer to:
 # XORG_WITH_XMLTO         --with-xmlto
 # XORG_WITH_ASCIIDOC      --with-asciidoc
@@ -2959,7 +2959,11 @@ AM_CONDITIONAL(MAKE_LINT_LIB, [test x$ma
 AC_DEFUN([XORG_COMPILER_BRAND], [
 AC_LANG_CASE(
        [C], [
-               AC_REQUIRE([AC_PROG_CC_C99])
+               dnl autoconf-2.70 folded AC_PROG_CC_C99 into AC_PROG_CC
+               dnl and complains that AC_PROG_CC_C99 is obsolete
+               m4_version_prereq([2.70],
+                       [AC_REQUIRE([AC_PROG_CC])],
+                       [AC_REQUIRE([AC_PROG_CC_C99])])
        ],
        [C++], [
                AC_REQUIRE([AC_PROG_CXX])
@@ -2975,7 +2979,7 @@ AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"
 # Minimum version: 1.16.0
 #
 # Test if the compiler works when passed the given flag as a command line argument.
-# If it succeeds, the flag is appeneded to the given variable.  If not, it tries the
+# If it succeeds, the flag is appended to the given variable.  If not, it tries the
 # next flag in the list until there are no more options.
 #
 # Note that this does not guarantee that the compiler supports the flag as some
@@ -2991,7 +2995,11 @@ AC_LANG_COMPILER_REQUIRE
 
 AC_LANG_CASE(
        [C], [
-               AC_REQUIRE([AC_PROG_CC_C99])
+               dnl autoconf-2.70 folded AC_PROG_CC_C99 into AC_PROG_CC
+               dnl and complains that AC_PROG_CC_C99 is obsolete
+               m4_version_prereq([2.70],
+                       [AC_REQUIRE([AC_PROG_CC])],
+                       [AC_REQUIRE([AC_PROG_CC_C99])])
                define([PREFIX], [C])
                define([CACHE_PREFIX], [cc])
                define([COMPILER], [$CC])
@@ -3132,7 +3140,7 @@ XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]
 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
 
-# Turn some warnings into errors, so we don't accidently get successful builds
+# Turn some warnings into errors, so we don't accidentally get successful builds
 # when there are problems that should be fixed.
 
 if test "x$SELECTIVE_WERROR" = "xyes" ; then
@@ -3241,23 +3249,35 @@ AC_SUBST([BASE_]PREFIX[FLAGS])
 AC_LANG_CASE([C], AC_SUBST([CWARNFLAGS]))
 ]) # XORG_STRICT_OPTION
 
+# XORG_DEFAULT_NOCODE_OPTIONS
+# ---------------------------
+# Minimum version: 1.20.0
+#
+# Defines default options for X.Org modules which don't compile code,
+# such as fonts, bitmaps, cursors, and docs.
+#
+AC_DEFUN([XORG_DEFAULT_NOCODE_OPTIONS], [
+AC_REQUIRE([AC_PROG_INSTALL])
+XORG_RELEASE_VERSION
+XORG_CHANGELOG
+XORG_INSTALL
+XORG_MANPAGE_SECTIONS
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])],
+    [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])])
+]) # XORG_DEFAULT_NOCODE_OPTIONS
+
 # XORG_DEFAULT_OPTIONS
 # --------------------
 # Minimum version: 1.3.0
 #
-# Defines default options for X.Org modules.
+# Defines default options for X.Org modules which compile code.
 #
 AC_DEFUN([XORG_DEFAULT_OPTIONS], [
 AC_REQUIRE([AC_PROG_INSTALL])
 XORG_COMPILER_FLAGS
 XORG_CWARNFLAGS
 XORG_STRICT_OPTION
-XORG_RELEASE_VERSION
-XORG_CHANGELOG
-XORG_INSTALL
-XORG_MANPAGE_SECTIONS
-m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])],
-    [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])])
+XORG_DEFAULT_NOCODE_OPTIONS
 ]) # XORG_DEFAULT_OPTIONS
 
 # XORG_INSTALL()
diff -r b25386640841 -r 523d9ce5f319 external/mit/xcalc/dist/app-defaults/XCalc
--- a/external/mit/xcalc/dist/app-defaults/XCalc        Mon Jun 19 07:31:00 2023 +0000
+++ b/external/mit/xcalc/dist/app-defaults/XCalc        Mon Jun 19 07:31:02 2023 +0000
@@ -68,6 +68,16 @@ XCalc*ti.bevel.screen.LCD.translations:      
        None<Key>7:digit(7)\n\
        None<Key>8:digit(8)\n\
        None<Key>9:digit(9)\n\
+       Mod2<Key>0:digit(0)\n\
+       Mod2<Key>1:digit(1)\n\
+       Mod2<Key>2:digit(2)\n\
+       Mod2<Key>3:digit(3)\n\
+       Mod2<Key>4:digit(4)\n\
+       Mod2<Key>5:digit(5)\n\
+       Mod2<Key>6:digit(6)\n\
+       Mod2<Key>7:digit(7)\n\
+       Mod2<Key>8:digit(8)\n\
+       Mod2<Key>9:digit(9)\n\
        Shift<Key>a:digit(A)\n\
        Shift<Key>b:digit(B)\n\
        Shift<Key>c:digit(C)\n\
diff -r b25386640841 -r 523d9ce5f319 external/mit/xcalc/dist/app-defaults/XCalc-color
--- a/external/mit/xcalc/dist/app-defaults/XCalc-color  Mon Jun 19 07:31:00 2023 +0000
+++ b/external/mit/xcalc/dist/app-defaults/XCalc-color  Mon Jun 19 07:31:02 2023 +0000
@@ -28,21 +28,6 @@ XCalc*ti.Command.borderColor:                rgb:8/9/a
 XCalc*ti.Command.background:           rgb:c/d/e
 XCalc*ti.Command.foreground:           gray5
 
-XCalc*ti.button20.foreground:          gray5



Home | Main Index | Thread Index | Old Index