OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../tetex/xputenv.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  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. # --- SDE-COPYRIGHT-NOTE-END ---
  17. --- ./texk/kpathsea/xputenv.c~ Tue Jan 26 21:49:35 1999
  18. +++ ./texk/kpathsea/xputenv.c Sun Jun 27 01:01:15 1999
  19. @@ -26,6 +26,14 @@
  20. extern int putenv ();
  21. #endif /* not WIN32 */
  22. +/* I don't understand the code here compleatly. My xdvi (and other programms)
  23. + dump core becouse saved_env_items[i] is set to var_name - but varname is
  24. + (at least when called from xputenv_int) not a malloced() variable. So it's
  25. + value at the next invocation is undefined. In my case the assertation for
  26. + old_item fired ... I just define SMART_PUTENV here. I'm not sure if this
  27. + is the right thing to do - but it solves my problem - Clifford */
  28. +#define SMART_PUTENV
  29. +
  30. /* This `x' function is different from the others in that it takes
  31. different parameters than the standard function; but I find it much
  32. more convenient to pass the variable and the value separately. Also,