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.

93 lines
2.6 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 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. --- ./src/Makefile.in.orig 2002-12-12 19:03:33.000000000 +0200
  23. +++ ./src/Makefile.in 2002-12-15 11:58:56.000000000 +0200
  24. @@ -101,7 +101,7 @@
  25. CPPFLAGS = -DSHARE_DIR=\"$(pkgdatadir)\" -DLOCALE_DIR=\"$(datadir)/locale\"
  26. bin_PROGRAMS = motor
  27. -motor_SOURCES = main.cc motormisc.cc
  28. +motor_SOURCES = main.cc motormisc.cc motorcommon.cc
  29. EXTRA_DIST = motorcommon.h motormisc.h
  30. @@ -122,7 +122,7 @@
  31. DEFS = @DEFS@ -I. -I$(srcdir) -I..
  32. LDFLAGS = @LDFLAGS@
  33. LIBS = @LIBS@
  34. -motor_OBJECTS = main.o motormisc.o
  35. +motor_OBJECTS = main.o motormisc.o motorcommon.o
  36. motor_DEPENDENCIES = project/libproject.a debugger/libdebugger.a \
  37. executor/libexecutor.a configuration/libconfiguration.a \
  38. manager/libmanager.a ui/ncurses/libncursesui.a ui/libui.a \
  39. --- ./src/motorcommon.cc.orig 2002-12-15 14:10:28.000000000 +0200
  40. +++ ./src/motorcommon.cc 2002-12-15 11:58:56.000000000 +0200
  41. @@ -0,0 +1,7 @@
  42. +#include "motorcommon.h"
  43. +
  44. +#ifndef MOTOR_USE_EXCEPTIONS
  45. +__MOTOR_BEGIN_NAMESPACE
  46. +jmp_buf motor_jump;
  47. +__MOTOR_END_NAMESPACE
  48. +#endif
  49. --- ./src/motorcommon.h.orig 2001-11-02 09:43:51.000000000 +0200
  50. +++ ./src/motorcommon.h 2002-12-15 11:58:56.000000000 +0200
  51. @@ -60,4 +60,38 @@
  52. #endif
  53. +#ifdef __STL_USE_EXCEPTIONS
  54. +#define MOTOR_USE_EXCEPTIONS
  55. +#endif
  56. +
  57. +#ifndef MOTOR_USE_EXCEPTIONS
  58. +
  59. +#ifdef __THROW
  60. +#undef __THROW
  61. +#define __THROW
  62. +#endif
  63. +
  64. +#include <setjmp.h>
  65. +
  66. +__MOTOR_BEGIN_NAMESPACE
  67. +extern jmp_buf motor_jump;
  68. +__MOTOR_END_NAMESPACE
  69. +
  70. +#ifdef try
  71. +#undef try
  72. +#endif
  73. +#define try if(!setjmp(motor_jump))
  74. +
  75. +#ifdef throw
  76. +#undef throw
  77. +#endif
  78. +#define throw(val) longjmp(motor_jump, (val))
  79. +
  80. +#ifdef catch
  81. +#undef catch
  82. +#endif
  83. +#define catch(val) else
  84. +
  85. +#endif
  86. +
  87. #endif