-#/*
+/*
+** Splint - annotation-assisted static program checker
+** Copyright (C) 1994-2002 University of Virginia,
+** Massachusetts Institute of Technology
+**
+** 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 the
+** Free Software Foundation; either version 2 of the License, or (at your
+** option) any later version.
+**
+** This program is distributed in the hope that it will be useful, but
+** WITHOUT ANY WARRANTY; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+** General Public License for more details.
+**
+** The GNU General Public License is available from http://www.gnu.org/ or
+** the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+** MA 02111-1307, USA.
+**
+** For information on splint: info@splint.org
+** To report a bug: splint-bug@splint.org
+** For more information: http://www.splint.org
+*/
+
+/*
** constraintExprData.c
*/
-# include "lclintMacros.nf"
+# include "splintMacros.nf"
# include "basic.h"
# include "cgrammar.h"
# include "cgrammar_tokens.h"
return ret;
}
-// constraintExprData constraintExprData_copy (constraintExprData data, constraintExprKind kind)
-// {
-// constraintExprData ret;
-// llassert(constraintExprData_isDefined(data));
-// ret = dmalloc (sizeof (*ret) );
-// switch (kind)
-// {
-// case binaryexpr:
-// ret->binaryOp.binaryOp = data->binaryOp.binaryOp;
-// ret->binaryOp.expr1 = constraintExpr_copy (data->binaryOp.expr1);
-// ret->binaryOp.expr2 = constraintExpr_copy (data->binaryOp.expr2);
-// break;
-// case unaryExpr:
-// ret->unaryOp.unaryOp = data->unaryOp.unaryOp;
-// ret->unaryOp.expr = constraintExpr_copy (data->unaryOp.expr);
-// break;
-// case term:
-// ret->term = constraintTerm_copy (data->term);
-// }
-
-// return ret;
-// }
-
- constraintExprData constraintExprData_termSetTerm (/*@returned@*/ constraintExprData data, /*@only@*/constraintTerm term)
+constraintExprData constraintExprData_termSetTerm (/*@returned@*/ constraintExprData data, /*@only@*/constraintTerm term)
{
llassert (constraintExprData_isDefined(data));
return data;
}
-// binaryExpr stuff
-
+/*
+** binaryExpr stuff
+*/
constraintExprBinaryOpKind constraintExprData_binaryExprGetOp (constraintExprData data)
{