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