25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

31 satır
602B

  1. #ifndef IR_H
  2. #define IR_H
  3. /* This is the tree node structure */
  4. typedef struct n {
  5. node_index_t type;
  6. void *data;
  7. struct s *entry;
  8. uint64_t n_children;
  9. struct n **children;
  10. } node_t;
  11. // Export the initializer function, it is needed by the parser
  12. void node_init (
  13. node_t *nd, node_index_t type, void *data, uint64_t n_children, ...
  14. );
  15. typedef enum {
  16. SYM_GLOBAL_VAR, SYM_FUNCTION, SYM_PARAMETER, SYM_LOCAL_VAR
  17. } symtype_t;
  18. typedef struct s {
  19. char *name;
  20. symtype_t type;
  21. node_t *node;
  22. size_t seq;
  23. size_t nparms;
  24. tlhash_t *locals;
  25. } symbol_t;
  26. #endif