* added graalvm (22.0.0.1) - A high-performance JDK distribution
[t2.git] / package / textproc / tetex / xputenv.patch
blob5779df38780dbf5aee37a6d8903e8ba6460df38f
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../tetex/xputenv.patch
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
7 #
8 # More information can be found in the files COPYING and README.
9 #
10 # This patch file is dual-licensed. It is available under the license the
11 # patched project is licensed under, as long as it is an OpenSource license
12 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
13 # of the GNU General Public License as published by the Free Software
14 # Foundation; either version 2 of the License, or (at your option) any later
15 # version.
16 # --- T2-COPYRIGHT-NOTE-END ---
18 --- ./texk/kpathsea/xputenv.c~ Tue Jan 26 21:49:35 1999
19 +++ ./texk/kpathsea/xputenv.c Sun Jun 27 01:01:15 1999
20 @@ -26,6 +26,14 @@
21 extern int putenv ();
22 #endif /* not WIN32 */
24 +/* I don't understand the code here compleatly. My xdvi (and other programms)
25 + dump core becouse saved_env_items[i] is set to var_name - but varname is
26 + (at least when called from xputenv_int) not a malloced() variable. So it's
27 + value at the next invocation is undefined. In my case the assertation for
28 + old_item fired ... I just define SMART_PUTENV here. I'm not sure if this
29 + is the right thing to do - but it solves my problem - Clifford */
30 +#define SMART_PUTENV
32 /* This `x' function is different from the others in that it takes
33 different parameters than the standard function; but I find it much
34 more convenient to pass the variable and the value separately. Also,