prefix.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* Provide prototypes for functions exported from prefix.c.
  2. Copyright (C) 1999-2019 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify it under
  5. the terms of the GNU Library General Public License as published by
  6. the Free Software Foundation; either version 3 of the License, or (at
  7. your option) any later version.
  8. GCC is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Library General Public License for more details.
  12. You should have received a copy of the GNU Library General Public
  13. License along with GCC; see the file COPYING3. If not see
  14. <http://www.gnu.org/licenses/>. */
  15. #ifndef GCC_PREFIX_H
  16. #define GCC_PREFIX_H
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. /* These functions are called by the Ada frontend with C convention. */
  21. /* Update PATH using KEY if PATH starts with PREFIX. The returned
  22. string is always malloc-ed, and the caller is responsible for
  23. freeing it. */
  24. extern char *update_path (const char *path, const char *key);
  25. extern void set_std_prefix (const char *, int);
  26. #ifdef __cplusplus
  27. }
  28. #endif
  29. #endif /* ! GCC_PREFIX_H */