Mercurial > hg > octave-jordi
diff liboctave/util/unwind-prot.h @ 21011:91a45293b618
maint: Move GCC_ATTR_DEPRECATED to beginning of function declaration.
* error.h, symtab.h, variables.h, ov.h, DiagArray2.h, PermMatrix.h,
dSparse.h, unwind-prot.h:
Move GCC_ATTR_DEPRECATED to beginning of function declaration.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 29 Dec 2015 11:02:26 -0800 (2015-12-29) |
parents | f7084eae3318 |
children | 3e7cfee5f786 |
line wrap: on
line diff
--- a/liboctave/util/unwind-prot.h +++ b/liboctave/util/unwind-prot.h @@ -50,14 +50,14 @@ lifo.push (new_elem); } - void add (void (*fcn) (void *), void *ptr = 0) GCC_ATTR_DEPRECATED + GCC_ATTR_DEPRECATED void add (void (*fcn) (void *), void *ptr = 0) { add (new fcn_arg_elem<void *> (fcn, ptr)); } operator bool (void) const { return ! empty (); } - void run_top (void) GCC_ATTR_DEPRECATED { run_first (); } + GCC_ATTR_DEPRECATED void run_top (void) { run_first (); } void run_first (void) { @@ -70,9 +70,9 @@ } } - void run_top (int num) GCC_ATTR_DEPRECATED { run (num); } + GCC_ATTR_DEPRECATED void run_top (int num) { run (num); } - void discard_top (void) GCC_ATTR_DEPRECATED { discard_first (); } + GCC_ATTR_DEPRECATED void discard_top (void) { discard_first (); } void discard_first (void) { @@ -84,7 +84,7 @@ } } - void discard_top (int num) GCC_ATTR_DEPRECATED { discard (num); } + GCC_ATTR_DEPRECATED void discard_top (int num) { discard (num); } size_t size (void) const { return lifo.size (); }