diff mc-parse.h @ 779:a0f84a0a990a

float value sharing
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 19 Nov 2010 14:09:56 +0900
parents 5fad4649bed8
children a5f9e5a4db1b
line wrap: on
line diff
--- a/mc-parse.h	Fri Nov 19 04:39:47 2010 +0900
+++ b/mc-parse.h	Fri Nov 19 14:09:56 2010 +0900
@@ -171,10 +171,17 @@
 
 /* used in mc-macro.c */
 
+typedef union {
+       double d; float f; int i; long l; long long ll; char c;
+} Value, *ValuePtr;
+
 extern struct cheap *cheap;
 extern struct cheap *st_cheap, *cheap1;  // for ST_COMMENT
 
 extern NMTBL *get_name(char *name,int *i,int mode);
+extern NMTBL * get_data(ValuePtr name,int len, int mode);
+extern int get_data_label(ValuePtr name,int len, void emit(ValuePtr, int , void *), void *arg);
+
 #define DEF 1
 #define NONDEF 2