/trunk/Source/Swig/swigfile.h

# · C Header · 43 lines · 27 code · 3 blank · 13 comment · 0 complexity · d5c90d289d6c455c2ece95c390029438 MD5 · raw file

  1. /* -----------------------------------------------------------------------------
  2. * This file is part of SWIG, which is licensed as a whole under version 3
  3. * (or any later version) of the GNU General Public License. Some additional
  4. * terms also apply to certain portions of SWIG. The full details of the SWIG
  5. * license and copyrights can be found in the LICENSE and COPYRIGHT files
  6. * included with the SWIG source code as distributed by the SWIG developers
  7. * and at http://www.swig.org/legal.html.
  8. *
  9. * swigfile.h
  10. *
  11. * File handling functions in the SWIG core
  12. * ----------------------------------------------------------------------------- */
  13. extern List *Swig_add_directory(const_String_or_char_ptr dirname);
  14. extern void Swig_push_directory(const_String_or_char_ptr dirname);
  15. extern void Swig_pop_directory(void);
  16. extern String *Swig_last_file(void);
  17. extern List *Swig_search_path(void);
  18. extern FILE *Swig_include_open(const_String_or_char_ptr name);
  19. extern FILE *Swig_open(const_String_or_char_ptr name);
  20. extern String *Swig_read_file(FILE *f);
  21. extern String *Swig_include(const_String_or_char_ptr name);
  22. extern String *Swig_include_sys(const_String_or_char_ptr name);
  23. extern int Swig_insert_file(const_String_or_char_ptr name, File *outfile);
  24. extern void Swig_set_push_dir(int dopush);
  25. extern int Swig_get_push_dir(void);
  26. extern void Swig_register_filebyname(const_String_or_char_ptr filename, File *outfile);
  27. extern File *Swig_filebyname(const_String_or_char_ptr filename);
  28. extern char *Swig_file_suffix(const_String_or_char_ptr filename);
  29. extern char *Swig_file_basename(const_String_or_char_ptr filename);
  30. extern char *Swig_file_filename(const_String_or_char_ptr filename);
  31. extern char *Swig_file_dirname(const_String_or_char_ptr filename);
  32. extern void Swig_file_debug_set();
  33. /* Delimiter used in accessing files and directories */
  34. #if defined(MACSWIG)
  35. # define SWIG_FILE_DELIMITER ":"
  36. #elif defined(_WIN32)
  37. # define SWIG_FILE_DELIMITER "\\"
  38. #else
  39. # define SWIG_FILE_DELIMITER "/"
  40. #endif