mojoshader_compiler.c
changeset 940 bc2a5efade5e
parent 939 64cc93ee5a56
child 945 f00ea3986db8
--- a/mojoshader_compiler.c	Wed Nov 03 22:54:17 2010 -0400
+++ b/mojoshader_compiler.c	Thu Nov 04 02:14:51 2010 -0400
@@ -123,6 +123,10 @@
 } Context;
 
 
+// !!! FIXME: cut and paste between every damned source file follows...
+// !!! FIXME: We need to make some sort of ContextBase that applies to all
+// !!! FIXME:  files and move this stuff to mojoshader_common.c ...
+
 // Convenience functions for allocators...
 
 static inline void out_of_memory(Context *ctx)
@@ -308,6 +312,9 @@
 } // destroy_symbolmap
 
 
+// !!! FIXME: move this to to mojoshader_ast.c
+// !!! FIXME: new_* and delete_* should take an allocator, not a context.
+
 // These functions are mostly for construction and cleanup of nodes in the
 //  parse tree. Mostly this is simple allocation and initialization, so we
 //  can do as little in the lemon code as possible, and then sort it all out
@@ -1906,7 +1913,7 @@
     // !!! FIXME: do everything else.  :)
 } // semantic_analysis
 
-
+// !!! FIXME: isn't this a cut-and-paste of somewhere else?
 static inline int64 strtoi64(const char *str, unsigned int len)
 {
     int64 retval = 0;
@@ -1944,6 +1951,7 @@
     return retval;
 } // strtoi64
 
+// !!! FIXME: isn't this a cut-and-paste of somewhere else?
 static inline double strtodouble(const char *_str, unsigned int len)
 {
     // !!! FIXME: laziness prevails.