mirror of the now-defunct rocklinux.org
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.

90 lines
2.5 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/jimmy/motor/no-exceptions.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- ./src/Makefile.in.orig 2002-12-12 19:03:33.000000000 +0200
  20. +++ ./src/Makefile.in 2002-12-15 11:58:56.000000000 +0200
  21. @@ -101,7 +101,7 @@
  22. CPPFLAGS = -DSHARE_DIR=\"$(pkgdatadir)\" -DLOCALE_DIR=\"$(datadir)/locale\"
  23. bin_PROGRAMS = motor
  24. -motor_SOURCES = main.cc motormisc.cc
  25. +motor_SOURCES = main.cc motormisc.cc motorcommon.cc
  26. EXTRA_DIST = motorcommon.h motormisc.h
  27. @@ -122,7 +122,7 @@
  28. DEFS = @DEFS@ -I. -I$(srcdir) -I..
  29. LDFLAGS = @LDFLAGS@
  30. LIBS = @LIBS@
  31. -motor_OBJECTS = main.o motormisc.o
  32. +motor_OBJECTS = main.o motormisc.o motorcommon.o
  33. motor_DEPENDENCIES = project/libproject.a debugger/libdebugger.a \
  34. executor/libexecutor.a configuration/libconfiguration.a \
  35. manager/libmanager.a ui/ncurses/libncursesui.a ui/libui.a \
  36. --- ./src/motorcommon.cc.orig 2002-12-15 14:10:28.000000000 +0200
  37. +++ ./src/motorcommon.cc 2002-12-15 11:58:56.000000000 +0200
  38. @@ -0,0 +1,7 @@
  39. +#include "motorcommon.h"
  40. +
  41. +#ifndef MOTOR_USE_EXCEPTIONS
  42. +__MOTOR_BEGIN_NAMESPACE
  43. +jmp_buf motor_jump;
  44. +__MOTOR_END_NAMESPACE
  45. +#endif
  46. --- ./src/motorcommon.h.orig 2001-11-02 09:43:51.000000000 +0200
  47. +++ ./src/motorcommon.h 2002-12-15 11:58:56.000000000 +0200
  48. @@ -60,4 +60,38 @@
  49. #endif
  50. +#ifdef __STL_USE_EXCEPTIONS
  51. +#define MOTOR_USE_EXCEPTIONS
  52. +#endif
  53. +
  54. +#ifndef MOTOR_USE_EXCEPTIONS
  55. +
  56. +#ifdef __THROW
  57. +#undef __THROW
  58. +#define __THROW
  59. +#endif
  60. +
  61. +#include <setjmp.h>
  62. +
  63. +__MOTOR_BEGIN_NAMESPACE
  64. +extern jmp_buf motor_jump;
  65. +__MOTOR_END_NAMESPACE
  66. +
  67. +#ifdef try
  68. +#undef try
  69. +#endif
  70. +#define try if(!setjmp(motor_jump))
  71. +
  72. +#ifdef throw
  73. +#undef throw
  74. +#endif
  75. +#define throw(val) longjmp(motor_jump, (val))
  76. +
  77. +#ifdef catch
  78. +#undef catch
  79. +#endif
  80. +#define catch(val) else
  81. +
  82. +#endif
  83. +
  84. #endif