preprocess.h 432 B

12345678910111213141516171819
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. #ifndef PREPROCESS_H
  3. #define PREPROCESS_H
  4. enum variable_flavor {
  5. VAR_SIMPLE,
  6. VAR_RECURSIVE,
  7. VAR_APPEND,
  8. };
  9. struct gstr;
  10. void env_write_dep(struct gstr *gs);
  11. void variable_add(const char *name, const char *value,
  12. enum variable_flavor flavor);
  13. void variable_all_del(void);
  14. char *expand_dollar(const char **str);
  15. char *expand_one_token(const char **str);
  16. #endif /* PREPROCESS_H */