]> git.sur5r.net Git - cc65/blobdiff - src/cc65/function.h
Added the io module
[cc65] / src / cc65 / function.h
index fed098b74445eb0dbdff184a6e98fd6a934d2907..a2b11f1b7ad1f53de3f66b3c5776f2c82297902a 100644 (file)
@@ -43,14 +43,21 @@ type* GetReturnType (Function* F);
 int HasVoidReturn (const Function* F);
 /* Return true if the function does not have a return value */
 
+void RememberEntry (Function* F);
+/* Remember the current output position for local space creation later */
+
 unsigned GetRetLab (const Function* F);
 /* Return the return jump label */
 
-unsigned AllocLocalSpace (Function* F, unsigned Size);
-/* Allocate space for the function locals, return stack offset  */
+int ReserveLocalSpace (Function* F, unsigned Size);
+/* Reserve (but don't allocate) the given local space and return the stack
+ * offset.
+ */
 
-void FreeLocalSpace (Function* F, unsigned Size);
-/* Free space allocated for function locals */
+void AllocLocalSpace (Function* F);
+/* Allocate any local space previously reserved. The function will do
+ * nothing if there is no reserved local space.
+ */
 
 void NewFunc (struct SymEntry* Func);
 /* Parse argument declarations and function body. */