create a common banner header for all target language specific files
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11016 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
67e2785cb7
commit
cc522323d7
19 changed files with 82 additions and 80 deletions
|
|
@ -54,7 +54,7 @@ const char *Swig_package_version(void) {
|
|||
/* -----------------------------------------------------------------------------
|
||||
* Swig_banner()
|
||||
*
|
||||
* Emits the SWIG identifying banner.
|
||||
* Emits the SWIG identifying banner for the C/C++ wrapper file.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
void Swig_banner(File *f) {
|
||||
|
|
@ -71,6 +71,20 @@ void Swig_banner(File *f) {
|
|||
|
||||
}
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* Swig_banner_target_lang()
|
||||
*
|
||||
* Emits a SWIG identifying banner in the target language
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
void Swig_banner_target_lang(File *f, const String_or_char *commentchar) {
|
||||
Printf(f, "%s This file was automatically generated by SWIG (http://www.swig.org).\n", commentchar);
|
||||
Printf(f, "%s Version %s\n", commentchar, Swig_package_version());
|
||||
Printf(f, "%s\n", commentchar);
|
||||
Printf(f, "%s Do not make changes to this file unless you know what you are doing--modify\n", commentchar);
|
||||
Printf(f, "%s the SWIG interface file instead.\n", commentchar);
|
||||
}
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* Swig_strip_c_comments()
|
||||
*
|
||||
|
|
@ -124,6 +138,7 @@ String *Swig_strip_c_comments(const String *s) {
|
|||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
void Swig_filename_correct(String *filename) {
|
||||
(void)filename;
|
||||
#if defined(_WIN32) || defined(MACSWIG)
|
||||
/* accept Unix path separator on non-Unix systems */
|
||||
Replaceall(filename, "/", SWIG_FILE_DELIMITER);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue