From 524b588553afb0759c5be590a7aa41db92dcd2ae Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 4 Jan 1995 19:10:35 +0000 Subject: Added 1995 to copyright message. Setup.in: clarified Tk comments somewhat. structmodule.c: use memcpy() instead of double precision assignment. --- Modules/Setup.in | 15 +++++++++++---- Modules/almodule.c | 4 ++-- Modules/arraymodule.c | 4 ++-- Modules/audioop.c | 4 ++-- Modules/cdmodule.c | 4 ++-- Modules/cgen.py | 16 ++++++++-------- Modules/clmodule.c | 4 ++-- Modules/config.c.in | 12 ++++++------ Modules/cstubs | 4 ++-- Modules/dbmmodule.c | 4 ++-- Modules/dlmodule.c | 4 ++-- Modules/fcntlmodule.c | 4 ++-- Modules/flmodule.c | 4 ++-- Modules/fmmodule.c | 4 ++-- Modules/gdbmmodule.c | 4 ++-- Modules/grpmodule.c | 4 ++-- Modules/imageop.c | 4 ++-- Modules/imgfile.c | 4 ++-- Modules/mathmodule.c | 4 ++-- Modules/md5module.c | 4 ++-- Modules/mpzmodule.c | 4 ++-- Modules/parsermodule.c | 4 ++-- Modules/posixmodule.c | 4 ++-- Modules/pwdmodule.c | 4 ++-- Modules/regexmodule.c | 4 ++-- Modules/selectmodule.c | 4 ++-- Modules/sgimodule.c | 4 ++-- Modules/signalmodule.c | 4 ++-- Modules/socketmodule.c | 4 ++-- Modules/stdwinmodule.c | 4 ++-- Modules/stropmodule.c | 4 ++-- Modules/structmodule.c | 12 ++++++++---- Modules/sunaudiodev.c | 4 ++-- Modules/svmodule.c | 4 ++-- Modules/threadmodule.c | 4 ++-- Modules/timemodule.c | 4 ++-- Modules/xxmodule.c | 4 ++-- Modules/yuv.h | 4 ++-- Modules/yuvconvert.c | 4 ++-- 39 files changed, 103 insertions(+), 92 deletions(-) diff --git a/Modules/Setup.in b/Modules/Setup.in index 661c775..65c559f 100644 --- a/Modules/Setup.in +++ b/Modules/Setup.in @@ -227,15 +227,22 @@ md5 md5module.c md5c.c #timing timingmodule.c -# Steen Lumholt's tkinter module. For use with plain Tk, use the -# first line. For use with extended Tk, edit tkappinit.c, add -# appropriate -DWITH_... and libraries/objects to the second line, and -# use that. In all cases also enable the last line (TKPATH). +# Steen Lumholt's tkinter module. +# +# For use with plain Tk, use the first line. +# +# For use with extended Tk (i.e. if you have added extra widgets to +# the Tk library, such as the common "studButton" and "triButton" +# extensions), edit tkappinit.c, add appropriate -DWITH_... and +# libraries/objects to the second line, and use that. +# +# In all cases also enable the last line (TKPATH). # *** Use ONE of the following two lines, see previous comments *** #tkinter tkintermodule.c -I/usr/local/include -L/usr/local/lib -ltk -ltcl -lX11 #tkinter tkintermodule.c tkappinit.c -DWITH_APPINIT -I/usr/local/include -L/usr/local/lib -ltk -ltcl -lX11 +# *** ALWAYS use this line as well *** #TKPATH=:$(DESTLIB)/tkinter diff --git a/Modules/almodule.c b/Modules/almodule.c index 2ab60d4..052939e 100644 --- a/Modules/almodule.c +++ b/Modules/almodule.c @@ -1,6 +1,6 @@ /********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 2584b03..735c615 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/audioop.c b/Modules/audioop.c index 22e309d..640e816 100644 --- a/Modules/audioop.c +++ b/Modules/audioop.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/cdmodule.c b/Modules/cdmodule.c index 0630ebc..3e09577 100644 --- a/Modules/cdmodule.c +++ b/Modules/cdmodule.c @@ -1,6 +1,6 @@ /********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/cgen.py b/Modules/cgen.py index c133b2c..b06308c 100644 --- a/Modules/cgen.py +++ b/Modules/cgen.py @@ -1,17 +1,17 @@ ######################################################################## -# Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -# Amsterdam, The Netherlands. -# +# Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +# The Netherlands. +# # All Rights Reserved -# -# Permission to use, copy, modify, and distribute this software and its -# documentation for any purpose and without fee is hereby granted, +# +# Permission to use, copy, modify, and distribute this software and its +# documentation for any purpose and without fee is hereby granted, # provided that the above copyright notice appear in all copies and that -# both that copyright notice and this permission notice appear in +# both that copyright notice and this permission notice appear in # supporting documentation, and that the names of Stichting Mathematisch # Centrum or CWI not be used in advertising or publicity pertaining to # distribution of the software without specific, written prior permission. -# +# # STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO # THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND # FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE diff --git a/Modules/clmodule.c b/Modules/clmodule.c index 75542d1..5ccf321 100644 --- a/Modules/clmodule.c +++ b/Modules/clmodule.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/config.c.in b/Modules/config.c.in index 2be3e37..ba8b9d7 100644 --- a/Modules/config.c.in +++ b/Modules/config.c.in @@ -1,13 +1,13 @@ /* -*- C -*- *********************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1994 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved -Permission to use, copy, modify, and distribute this software and its -documentation for any purpose and without fee is hereby granted, +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that -both that copyright notice and this permission notice appear in +both that copyright notice and this permission notice appear in supporting documentation, and that the names of Stichting Mathematisch Centrum or CWI not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. @@ -117,7 +117,7 @@ getversion() char * getcopyright() { - return "Copyright 1991-1994 Stichting Mathematisch Centrum, Amsterdam"; + return "Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam"; } diff --git a/Modules/cstubs b/Modules/cstubs index 8481024..246b15f 100644 --- a/Modules/cstubs +++ b/Modules/cstubs @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/dbmmodule.c b/Modules/dbmmodule.c index b484917..867461f 100644 --- a/Modules/dbmmodule.c +++ b/Modules/dbmmodule.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/dlmodule.c b/Modules/dlmodule.c index b6457cd..1f1ce46 100644 --- a/Modules/dlmodule.c +++ b/Modules/dlmodule.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c index 0c6b4f0..9eb38c7 100644 --- a/Modules/fcntlmodule.c +++ b/Modules/fcntlmodule.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/flmodule.c b/Modules/flmodule.c index ab23b47..f1dc6344 100644 --- a/Modules/flmodule.c +++ b/Modules/flmodule.c @@ -1,6 +1,6 @@ /********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/fmmodule.c b/Modules/fmmodule.c index 4875d9a..5fa78bd 100644 --- a/Modules/fmmodule.c +++ b/Modules/fmmodule.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/gdbmmodule.c b/Modules/gdbmmodule.c index ccf934f..56626d1 100644 --- a/Modules/gdbmmodule.c +++ b/Modules/gdbmmodule.c @@ -3,8 +3,8 @@ follows: */ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/grpmodule.c b/Modules/grpmodule.c index edb50cf..ecb9ade 100644 --- a/Modules/grpmodule.c +++ b/Modules/grpmodule.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/imageop.c b/Modules/imageop.c index d3d14e4..431bf50 100644 --- a/Modules/imageop.c +++ b/Modules/imageop.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/imgfile.c b/Modules/imgfile.c index 7163d72..9c318be 100644 --- a/Modules/imgfile.c +++ b/Modules/imgfile.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index a1357da..5b486fd 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/md5module.c b/Modules/md5module.c index 9909d2c..bb98cc2 100644 --- a/Modules/md5module.c +++ b/Modules/md5module.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/mpzmodule.c b/Modules/mpzmodule.c index 0067397..4807914 100644 --- a/Modules/mpzmodule.c +++ b/Modules/mpzmodule.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c index 8e3d96b..0d95bcc 100644 --- a/Modules/parsermodule.c +++ b/Modules/parsermodule.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 3e3f9cc..0b8a6a8 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/pwdmodule.c b/Modules/pwdmodule.c index 5775473..a9253c2 100644 --- a/Modules/pwdmodule.c +++ b/Modules/pwdmodule.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/regexmodule.c b/Modules/regexmodule.c index c4b15ff..41ae9ca 100644 --- a/Modules/regexmodule.c +++ b/Modules/regexmodule.c @@ -4,8 +4,8 @@ XXX support mstop parameter on search */ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index ef3ec23..a9f55c3 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/sgimodule.c b/Modules/sgimodule.c index 69f9f7c..75a5746 100644 --- a/Modules/sgimodule.c +++ b/Modules/sgimodule.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index cf921a7..713afbf 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 39aa81e..08a6f4d 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/stdwinmodule.c b/Modules/stdwinmodule.c index 2342527..eb41112 100644 --- a/Modules/stdwinmodule.c +++ b/Modules/stdwinmodule.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/stropmodule.c b/Modules/stropmodule.c index 578a771..326dfb8 100644 --- a/Modules/stropmodule.c +++ b/Modules/stropmodule.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/structmodule.c b/Modules/structmodule.c index 7d8815e..a0ecb67 100644 --- a/Modules/structmodule.c +++ b/Modules/structmodule.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved @@ -290,7 +290,7 @@ struct_pack(self, args) res += sizeof(float); break; case 'd': - *(double*)res = fval; + memcpy(res, (char*)&fval, sizeof fval); res += sizeof(double); break; } @@ -415,9 +415,13 @@ struct_unpack(self, args) break; case 'd': - v = newfloatobject(*(double*)str); + { + double d; + memcpy((char *)&d, str, sizeof d); + v = newfloatobject(d); str += sizeof(double); break; + } default: err_setstr(StructError, "bad char in fmt"); diff --git a/Modules/sunaudiodev.c b/Modules/sunaudiodev.c index a2f3869..4902224 100644 --- a/Modules/sunaudiodev.c +++ b/Modules/sunaudiodev.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/svmodule.c b/Modules/svmodule.c index dad2414..dd48b7a 100644 --- a/Modules/svmodule.c +++ b/Modules/svmodule.c @@ -1,6 +1,6 @@ /********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c index 3e742f3..f2b8d2f 100644 --- a/Modules/threadmodule.c +++ b/Modules/threadmodule.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/timemodule.c b/Modules/timemodule.c index ac50fb9..6caa37f 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/xxmodule.c b/Modules/xxmodule.c index 52f4895..153bb81 100644 --- a/Modules/xxmodule.c +++ b/Modules/xxmodule.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/yuv.h b/Modules/yuv.h index 60b6287..7de0fbe 100644 --- a/Modules/yuv.h +++ b/Modules/yuv.h @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved diff --git a/Modules/yuvconvert.c b/Modules/yuvconvert.c index 69ec47c..68933b7 100644 --- a/Modules/yuvconvert.c +++ b/Modules/yuvconvert.c @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, -Amsterdam, The Netherlands. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. All Rights Reserved -- cgit v0.12