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.

80 lines
2.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../argp-standalone/argp-standalone-throw-in-funcdef.patch
  5. # Copyright (C) 2013 The OpenSDE Project
  6. # Copyright (C) 2006 The T2 SDE 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. # --- SDE-COPYRIGHT-NOTE-END ---
  17. No __THROW in function implementation.
  18. --jsaw
  19. --- argp-standalone-1.4-test2/argp.h.orig 2006-01-06 02:29:59.000000000 +0100
  20. +++ argp-standalone-1.4-test2/argp.h 2006-01-06 02:41:10.000000000 +0100
  21. @@ -560,17 +560,17 @@
  22. # endif
  23. # ifndef ARGP_EI
  24. -# define ARGP_EI extern __inline__
  25. +# define ARGP_EI extern inline
  26. # endif
  27. ARGP_EI void
  28. -__argp_usage (__const struct argp_state *__state) __THROW
  29. +__argp_usage (__const struct argp_state *__state)
  30. {
  31. __argp_state_help (__state, stderr, ARGP_HELP_STD_USAGE);
  32. }
  33. ARGP_EI int
  34. -__option_is_short (__const struct argp_option *__opt) __THROW
  35. +__option_is_short (__const struct argp_option *__opt)
  36. {
  37. if (__opt->flags & OPTION_DOC)
  38. return 0;
  39. @@ -582,7 +582,7 @@
  40. }
  41. ARGP_EI int
  42. -__option_is_end (__const struct argp_option *__opt) __THROW
  43. +__option_is_end (__const struct argp_option *__opt)
  44. {
  45. return !__opt->key && !__opt->name && !__opt->doc && !__opt->group;
  46. }
  47. --- argp-standalone-1.4-test2/argp-parse.c.orig 2006-01-06 02:47:48.000000000 +0100
  48. +++ argp-standalone-1.4-test2/argp-parse.c 2006-01-06 02:48:16.000000000 +0100
  49. @@ -1290,13 +1290,13 @@
  50. /* Defined here, in case a user is not inlining the definitions in
  51. * argp.h */
  52. void
  53. -__argp_usage (__const struct argp_state *__state) __THROW
  54. +__argp_usage (__const struct argp_state *__state)
  55. {
  56. __argp_state_help (__state, stderr, ARGP_HELP_STD_USAGE);
  57. }
  58. int
  59. -__option_is_short (__const struct argp_option *__opt) __THROW
  60. +__option_is_short (__const struct argp_option *__opt)
  61. {
  62. if (__opt->flags & OPTION_DOC)
  63. return 0;
  64. @@ -1310,7 +1310,7 @@
  65. }
  66. int
  67. -__option_is_end (__const struct argp_option *__opt) __THROW
  68. +__option_is_end (__const struct argp_option *__opt)
  69. {
  70. return !__opt->key && !__opt->name && !__opt->doc && !__opt->group;
  71. }