X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fcase.h;h=4b20d477d6a2b66b1e6cf98a99ed820dc547e3f4;hb=0fc606c52d7cec253af9b7463b15baabfbc9a33a;hp=c07b07d2b9c4a062ae37a6452ec30cdcf03f8120;hpb=f5f8c375e650d350eab25680c6aa348229524984;p=pspp diff --git a/src/data/case.h b/src/data/case.h index c07b07d2b9..4b20d477d6 100644 --- a/src/data/case.h +++ b/src/data/case.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2004, 2007, 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2004, 2007, 2009, 2010, 2011 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,8 +21,9 @@ #include #include #include -#include -#include + +#include "libpspp/compiler.h" +#include "data/caseproto.h" struct variable; @@ -137,7 +138,7 @@ case_unshare (struct ccase *c) static inline void case_unref (struct ccase *c) { - if (c != NULL && !--c->ref_cnt) + if (c != NULL && --c->ref_cnt == 0) case_unref__ (c); }