[gnumeric] Cleanup: remove outdated and unused file.
- From: Morten Welinder <mortenw src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnumeric] Cleanup: remove outdated and unused file.
- Date: Mon, 8 Jun 2009 12:30:08 -0400 (EDT)
commit 5b0993d58dd4a90da85ed2a559ea73789deb4f8f
Author: Morten Welinder <terra gnome org>
Date: Mon Jun 8 12:29:36 2009 -0400
Cleanup: remove outdated and unused file.
---
src/test-parser.c | 50 --------------------------------------------------
1 files changed, 0 insertions(+), 50 deletions(-)
diff --git a/src/test-parser.c b/src/test-parser.c
deleted file mode 100644
index 06a300c..0000000
--- a/src/test-parser.c
+++ /dev/null
@@ -1,50 +0,0 @@
-#include <gnumeric-config.h>
-#include <gnumeric.h>
-#include <glib.h>
-#include <stdio.h>
-#include "numbers.h"
-#include "str.h"
-#include "expr.h"
-
-char *exp [] = {
- "1+2",
- "1.5+1.2",
- "1.0*5.3",
- "2*4.1",
- "4.1*3",
- "5/0",
- "10.0/0",
- "a1+1",
- "$a1+1",
- "a$1+1",
- "$a$1+1",
- NULL
-};
-
-int
-main ()
-{
- GnmValue *v;
- EvalTree *node;
- GnmParseError perr;
- int i;
- char *error;
-
- for (i = 0; exp [i]; i++){
- printf ("Expression: %s; ", exp [i]);
- node = expr_parse_string (exp [i], 0, 0, 0, NULL, &perr);
- if (node == NULL){
- printf ("parse error: %s\n", perr.message);
- continue;
- }
- /* This is wrong, make a parsepos */
- v = gnm_expr_eval (node, NULL, &error);
- if (v == NULL){
- printf ("eval error: %s\n", error);
- continue;
- }
- value_dump (v);
- }
-
- return 0;
-}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]