X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fi-ring.c;h=ccab71a020c795374a20829b62c0a25e3fb29dd1;hb=5191b3546cfb6c163228c23f214e325ddf60d46f;hp=8beef688aa488e1c4ca1f50b04679b49744a11ed;hpb=349d7fe0e307d59d508b3579317ee8d4eacfeb9c;p=gnulib.git diff --git a/lib/i-ring.c b/lib/i-ring.c index 8beef688a..ccab71a02 100644 --- a/lib/i-ring.c +++ b/lib/i-ring.c @@ -1,5 +1,5 @@ /* a simple ring buffer - Copyright (C) 2006, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2006, 2009-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,14 +21,6 @@ #include -/* The attribute __pure__ was added in gcc 2.96. */ -#undef _GL_ATTRIBUTE_PURE -#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) -# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__)) -#else -# define _GL_ATTRIBUTE_PURE /* empty */ -#endif - void i_ring_init (I_ring *ir, int default_val) { @@ -41,7 +33,7 @@ i_ring_init (I_ring *ir, int default_val) ir->ir_default_val = default_val; } -bool _GL_ATTRIBUTE_PURE +bool i_ring_empty (I_ring const *ir) { return ir->ir_empty;