spec.h 581 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef SPEC_H
  2. #define SPEC_H
  3. #include <string.h>
  4. #include <stdlib.h>
  5. #if __cplusplus
  6. extern "C" {
  7. #endif
  8. extern int num_lines;
  9. typedef struct {
  10. int isConst;
  11. int type;
  12. int bits;
  13. int ptrLevel;
  14. char name[256];
  15. char typeName[256];
  16. } VarType;
  17. extern VarType *currType;
  18. typedef struct {
  19. char name[256];
  20. int sync;
  21. int handcodeApi;
  22. int direct;
  23. int nocontext;
  24. int paramCount;
  25. VarType ret;
  26. VarType params[16];
  27. } ApiEntry;
  28. extern ApiEntry apis[128];
  29. extern int apiCount;
  30. extern int typeNextState;
  31. #if __cplusplus
  32. } // extern "C"
  33. #endif
  34. #endif // SPEC_H