X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fcaseproto.h;h=0bc02812d18590aeb3ba4ca664445f8134d488bf;hb=81579d9e9f994fb2908f50af41c3eb033d216e58;hp=3fc8c2c051451cddea401b712f534371eceb9043;hpb=ed0dda01c61c6b086e47f64302b75da5df97db87;p=pspp-builds.git diff --git a/src/data/caseproto.h b/src/data/caseproto.h index 3fc8c2c0..0bc02812 100644 --- a/src/data/caseproto.h +++ b/src/data/caseproto.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009, 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,10 @@ #include #include #include -#include -#include + +#include "data/value.h" +#include "libpspp/cast.h" +#include "libpspp/compiler.h" /* Case prototype. @@ -78,7 +80,6 @@ struct pool; /* Creation and destruction. */ struct caseproto *caseproto_create (void) MALLOC_LIKE; -struct caseproto *caseproto_clone (const struct caseproto *) ; static inline struct caseproto *caseproto_ref (const struct caseproto *); struct caseproto *caseproto_ref_pool (const struct caseproto *, struct pool *); static inline void caseproto_unref (struct caseproto *); @@ -145,7 +146,7 @@ void caseproto_free__ (struct caseproto *); static inline struct caseproto * caseproto_ref (const struct caseproto *proto_) { - struct caseproto *proto = (struct caseproto *) proto_; + struct caseproto *proto = CONST_CAST (struct caseproto *, proto_); proto->ref_cnt++; return proto; }