2
0

func.h 818 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. ** $Id: func.h,v 1.7 1996/03/08 12:04:04 roberto Exp roberto $
  3. */
  4. #ifndef func_h
  5. #define func_h
  6. #include "types.h"
  7. #include "lua.h"
  8. #include "tree.h"
  9. typedef struct LocVar
  10. {
  11. TaggedString *varname; /* NULL signals end of scope */
  12. int line;
  13. } LocVar;
  14. /*
  15. ** Function Headers
  16. */
  17. typedef struct TFunc
  18. {
  19. struct TFunc *next;
  20. int marked;
  21. int size;
  22. Byte *code;
  23. int lineDefined;
  24. char *fileName;
  25. LocVar *locvars;
  26. } TFunc;
  27. Long luaI_funccollector (void);
  28. void luaI_insertfunction (TFunc *f);
  29. void luaI_initTFunc (TFunc *f);
  30. void luaI_freefunc (TFunc *f);
  31. void luaI_registerlocalvar (TaggedString *varname, int line);
  32. void luaI_unregisterlocalvar (int line);
  33. void luaI_closelocalvars (TFunc *func);
  34. char *luaI_getlocalname (TFunc *func, int local_number, int line);
  35. #endif