From: Guido van Rossum Date: Wed, 4 Jan 1995 19:10:35 +0000 (+0000) Subject: Added 1995 to copyright message. X-Git-Tag: v1.2b1~81 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=524b588553afb0759c5be590a7aa41db92dcd2ae;p=thirdparty%2FPython%2Fcpython.git Added 1995 to copyright message. Setup.in: clarified Tk comments somewhat. structmodule.c: use memcpy() instead of double precision assignment. --- diff --git a/Modules/Setup.in b/Modules/Setup.in index 661c7753aa2b..65c559fd9fec 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 2ab60d47c48d..052939ec5ff6 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 2584b03aa1c8..735c615016d1 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 22e309dc7ab9..640e8162dcef 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 0630ebc735b0..3e095778aeef 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 c133b2c878dd..b06308c85b22 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 75542d1ecb2c..5ccf321739a5 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 2be3e37154f2..ba8b9d78a5e8 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 848102459fa0..246b15f01dca 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 b4849178124e..867461fc654c 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 b6457cdf71cc..1f1ce462b113 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 0c6b4f073041..9eb38c7e0076 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 ab23b4734794..f1dc634442ba 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 4875d9a2d5f6..5fa78bd30632 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 ccf934f305f5..56626d155a0c 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 edb50cf4ccbb..ecb9ade83931 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 d3d14e4362eb..431bf5053115 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 7163d722742c..9c318be136c8 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 a1357dac8694..5b486fd174bd 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 9909d2cb4a9f..bb98cc229d28 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 006739745200..48079147a9d0 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 8e3d96bf58e4..0d95bcc98e84 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 3e3f9ccc349c..0b8a6a87d9fa 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 5775473697d7..a9253c2d3655 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 c4b15ff0536f..41ae9caf88aa 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 ef3ec23346cf..a9f55c30a5be 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 69f9f7c0f33a..75a5746fef9a 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 cf921a74612a..713afbf073b4 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 39aa81e6490e..08a6f4d9a358 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 23425276358a..eb411123fc7f 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 578a771c3909..326dfb8854a0 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 7d8815e2604c..a0ecb675d026 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 a2f3869d8548..49022240b586 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 dad2414f18a3..dd48b7aea948 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 3e742f31f24b..f2b8d2ffb77d 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 ac50fb91f706..6caa37f2f594 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 52f48954e53f..153bb8155188 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 60b6287316d8..7de0fbe16ccd 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 69ec47c0fe9e..68933b7f622a 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