X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fexpressions%2Fpublic.h;h=3bddb4b8a1d36477f8551856485b36fefaf725de;hb=751d7694b0904b580fad3903205341c85c04d421;hp=864a258d29aef67dfc118f884d6414d678770454;hpb=244ade48f9c233532cc535d3233fdef53bf9266b;p=pspp diff --git a/src/language/expressions/public.h b/src/language/expressions/public.h index 864a258d29..3bddb4b8a1 100644 --- a/src/language/expressions/public.h +++ b/src/language/expressions/public.h @@ -1,21 +1,18 @@ -/* PSPP - computes sample statistics. +/* PSPP - a program for statistical analysis. Copyright (C) 1997-9, 2000 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 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 3 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. + 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. */ + along with this program. If not, see . */ #if !expr_h #define expr_h 1 @@ -36,9 +33,11 @@ struct ccase; struct pool; union value; struct dataset ; +struct lexer ; -struct expression *expr_parse (struct dataset *, enum expr_type); -struct expression *expr_parse_pool (struct pool *, +struct expression *expr_parse (struct lexer *lexer, struct dataset *, enum expr_type); +struct expression *expr_parse_pool (struct lexer *, + struct pool *, struct dataset *, enum expr_type); void expr_free (struct expression *); @@ -49,4 +48,10 @@ double expr_evaluate_num (struct expression *, const struct ccase *, void expr_evaluate_str (struct expression *, const struct ccase *, int case_idx, char *dst, size_t dst_size); +const struct operation *expr_get_function (size_t idx); +size_t expr_get_function_cnt (void); +const char *expr_operation_get_name (const struct operation *); +const char *expr_operation_get_prototype (const struct operation *); +int expr_operation_get_arg_cnt (const struct operation *); + #endif /* expr.h */