1/* -----------------------------------------------------------------------------
2 * See the LICENSE file for information on copyright, usage and redistribution
3 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
4 *
5 * swigfile.h
6 *
7 * File handling functions in the SWIG core
8 * ----------------------------------------------------------------------------- */
9
10/* $Id: swig.h 9603 2006-12-05 21:47:01Z beazley $ */
11
12extern List   *Swig_add_directory(const_String_or_char_ptr dirname);
13extern void    Swig_push_directory(const_String_or_char_ptr dirname);
14extern void    Swig_pop_directory(void);
15extern String *Swig_last_file(void);
16extern List   *Swig_search_path(void);
17extern FILE   *Swig_include_open(const_String_or_char_ptr name);
18extern FILE   *Swig_open(const_String_or_char_ptr name);
19extern String *Swig_read_file(FILE *f);
20extern String *Swig_include(const_String_or_char_ptr name);
21extern String *Swig_include_sys(const_String_or_char_ptr name);
22extern int     Swig_insert_file(const_String_or_char_ptr name, File *outfile);
23extern void    Swig_set_push_dir(int dopush);
24extern int     Swig_get_push_dir(void);
25extern void    Swig_register_filebyname(const_String_or_char_ptr filename, File *outfile);
26extern File   *Swig_filebyname(const_String_or_char_ptr filename);
27extern char   *Swig_file_suffix(const_String_or_char_ptr filename);
28extern char   *Swig_file_basename(const_String_or_char_ptr filename);
29extern char   *Swig_file_filename(const_String_or_char_ptr filename);
30extern char   *Swig_file_dirname(const_String_or_char_ptr filename);
31
32/* Delimiter used in accessing files and directories */
33
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
41