001-throw-in-funcdef.patch 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../rng-tools/throw-in-funcdef.patch.argp-standalone
  5. # Copyright (C) 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. No __THROW in function implementation.
  17. --jsaw
  18. --- a/argp.h
  19. +++ b/argp.h
  20. @@ -560,17 +560,17 @@ __argp_short_program_name(const struct a
  21. # endif
  22. # ifndef ARGP_EI
  23. -# define ARGP_EI extern __inline__
  24. +# define ARGP_EI extern inline
  25. # endif
  26. ARGP_EI void
  27. -__argp_usage (__const struct argp_state *__state) __THROW
  28. +__argp_usage (__const struct argp_state *__state)
  29. {
  30. __argp_state_help (__state, stderr, ARGP_HELP_STD_USAGE);
  31. }
  32. ARGP_EI int
  33. -__option_is_short (__const struct argp_option *__opt) __THROW
  34. +__option_is_short (__const struct argp_option *__opt)
  35. {
  36. if (__opt->flags & OPTION_DOC)
  37. return 0;
  38. @@ -582,7 +582,7 @@ __option_is_short (__const struct argp_o
  39. }
  40. ARGP_EI int
  41. -__option_is_end (__const struct argp_option *__opt) __THROW
  42. +__option_is_end (__const struct argp_option *__opt)
  43. {
  44. return !__opt->key && !__opt->name && !__opt->doc && !__opt->group;
  45. }
  46. --- a/argp-parse.c
  47. +++ b/argp-parse.c
  48. @@ -1277,13 +1277,13 @@ weak_alias (__argp_input, _argp_input)
  49. /* Defined here, in case a user is not inlining the definitions in
  50. * argp.h */
  51. void
  52. -__argp_usage (__const struct argp_state *__state) __THROW
  53. +__argp_usage (__const struct argp_state *__state)
  54. {
  55. __argp_state_help (__state, stderr, ARGP_HELP_STD_USAGE);
  56. }
  57. int
  58. -__option_is_short (__const struct argp_option *__opt) __THROW
  59. +__option_is_short (__const struct argp_option *__opt)
  60. {
  61. if (__opt->flags & OPTION_DOC)
  62. return 0;
  63. @@ -1297,7 +1297,7 @@ __option_is_short (__const struct argp_o
  64. }
  65. int
  66. -__option_is_end (__const struct argp_option *__opt) __THROW
  67. +__option_is_end (__const struct argp_option *__opt)
  68. {
  69. return !__opt->key && !__opt->name && !__opt->doc && !__opt->group;
  70. }