find.h 589 B

12345678910111213141516171819202122232425
  1. /** @file
  2. * @brief Routines to find a type entry and a label entry.
  3. */
  4. #ifndef _FIND_H_
  5. #define _FIND_H_
  6. /**
  7. * Find a label by name.
  8. * @param tp the type of label to find
  9. * @param name the label name
  10. * @return a pointer to the label struct; or NULL if it can't be found
  11. */
  12. Label *typeFindlabel(Type *tp, char *name);
  13. /**
  14. * Find a label type, optionally creating it if it doesn't exist.
  15. * @param name the type name
  16. * @param create whether or not to create the type if it doesn't exist
  17. * @return a pointer to the type struct
  18. */
  19. Type *findtype(char *name, int create);
  20. #endif