X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fcompiler.h;h=a7e91bfec1f805b35c8f2c6d15608fcf556bbc68;hb=refs%2Fheads%2Fpivot-table2;hp=d22819446f5e5ee7a5eececf9c4f0e3ef261e758;hpb=cb586666724d5fcbdb658ce471b85484f0a7babe;p=pspp diff --git a/src/libpspp/compiler.h b/src/libpspp/compiler.h index d22819446f..a7e91bfec1 100644 --- a/src/libpspp/compiler.h +++ b/src/libpspp/compiler.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2006, 2009 Free Software Foundation, Inc. + Copyright (C) 2006, 2009, 2010 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 @@ -77,4 +77,14 @@ #define PURE_FUNCTION #endif +/* This attribute indicates that the argument with the given + IDX must be a null pointer. IDX counts backward in the + argument list, so that 0 is the last argument, 1 is the + second-from-last argument, and so on. */ +#if __GNUC__ > 3 +#define SENTINEL(IDX) ATTRIBUTE ((sentinel(IDX))) +#else +#define SENTINEL(IDX) +#endif + #endif /* compiler.h */