A dynamic tracer for Linux

func.h 393B

1234567891011121314151617181920
  1. #ifndef _FUNC_H
  2. #define _FUNC_H
  3. struct node;
  4. struct prog;
  5. struct type;
  6. struct func {
  7. const char *name;
  8. struct type *type;
  9. int (*static_validate)(const struct func *, struct node *);
  10. int (*type_infer)(const struct func *, struct node *);
  11. };
  12. int func_static_validate(const struct func *func, struct node *n);
  13. struct type *func_return_type(const struct func *func);
  14. #endif /* _FUNC_H */