Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

compiler/: provide header for migrated functions fpvm_init and fpvm_a…

…ssign
  • Loading branch information...
commit 63ef1c2880418108cb99aceebd6641b149173751 1 parent 63674ae
Werner Almesberger authored December 10, 2011 sbourdeauducq committed December 12, 2011
1  src/compiler/compiler.c
@@ -27,6 +27,7 @@
27 27
 #include <fpvm/pfpu.h>
28 28
 
29 29
 #include "../pixbuf/pixbuf.h"
  30
+#include "fpvm.h"
30 31
 #include "unique.h"
31 32
 #include "compiler.h"
32 33
 
7  src/compiler/fpvm.c
@@ -22,12 +22,7 @@
22 22
 
23 23
 #include "unique.h"
24 24
 #include "parser_helper.h"
25  
-
26  
-
27  
-/* @@@ move later */
28  
-int fpvm_do_assign(struct fpvm_fragment *fragment, const char *dest,
29  
-    struct ast_node *n);
30  
-void fpvm_do_init(struct fpvm_fragment *fragment, int vector_mode);
  25
+#include "fpvm.h"
31 26
 
32 27
 
33 28
 void fpvm_init(struct fpvm_fragment *fragment, int vector_mode)
35  src/compiler/fpvm.h
... ...
@@ -0,0 +1,35 @@
  1
+/*
  2
+ * Milkymist SoC (Software)
  3
+ * Copyright (C) 2007, 2008, 2009, 2010, 2011 Sebastien Bourdeauducq
  4
+ *
  5
+ * This program is free software: you can redistribute it and/or modify
  6
+ * it under the terms of the GNU General Public License as published by
  7
+ * the Free Software Foundation, version 3 of the License.
  8
+ *
  9
+ * This program is distributed in the hope that it will be useful,
  10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12
+ * GNU General Public License for more details.
  13
+ *
  14
+ * You should have received a copy of the GNU General Public License
  15
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  16
+ */
  17
+
  18
+/*
  19
+ * Floating Point Virtual Machine compiler.
  20
+ * This library takes a series of equations and turn them into
  21
+ * FPVM code that evaluates them.
  22
+ */
  23
+
  24
+#ifndef __FPVM_H
  25
+#define __FPVM_H
  26
+
  27
+#include <fpvm/fpvm.h>
  28
+
  29
+
  30
+void fpvm_init(struct fpvm_fragment *fragment, int vector_mode);
  31
+
  32
+int fpvm_assign(struct fpvm_fragment *fragment, const char *dest,
  33
+    const char *expr);
  34
+
  35
+#endif /* __FPVM_H */

0 notes on commit 63ef1c2

Please sign in to comment.
Something went wrong with that request. Please try again.