X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fexpressions%2Foperations.def;fp=src%2Flanguage%2Fexpressions%2Foperations.def;h=303c1d5c9103e50ea2b3397f32e3b25bed431702;hb=3a61659a8fc11c51ad5af02b20f5613dcde50382;hp=e1ae2a531e49cd34f6275637d25872fd5a15d372;hpb=799e56c0e3a9911a860607e1c07caf2acf8cc9ef;p=pspp-builds.git diff --git a/src/language/expressions/operations.def b/src/language/expressions/operations.def index e1ae2a53..303c1d5c 100644 --- a/src/language/expressions/operations.def +++ b/src/language/expressions/operations.def @@ -1,4 +1,23 @@ // -*- c -*- +// +// PSPP - computes sample statistics. +// Copyright (C) 2005, 2006 Free Software Foundation, Inc. +// Written by Ben Pfaff . +// +// 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. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +// 02110-1301, USA. */ operator NEG (x) = -x; @@ -567,7 +586,7 @@ absorb_miss string function STRING (x, no_format f) v.f = x; dst = alloc_string (e, f->w); - assert ((formats[f->type].cat & FCAT_STRING) == 0); + assert (!fmt_is_string (f->type)); data_out (dst.string, f, &v); return dst; }