sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 9278 - svn://svn.freehep.org/svn / misc / trunk / swig / SWIG / p1.diff
Show File - p1.diff  [show properties]
Search for Help
spinner
Index: Source/Modules/java.cxx
===================================================================
--- Source/Modules/java.cxx (revision 9269)
+++ Source/Modules/java.cxx (revision 9270)
@@ -657,7 +657,7 @@
   void emitBanner(File *f) {
     Printf(f, "/* ----------------------------------------------------------------------------\n");
     Printf(f, " * This file was automatically generated by SWIG (http://www.swig.org).\n");
- Printf(f, " * Version %s\n", PACKAGE_VERSION);
10  + Printf(f, " * Version %s\n", SWIG_package_version());
11       Printf(f, " *\n");
12       Printf(f, " * Do not make changes to this file unless you know what you are doing--modify\n");
13       Printf(f, " * the SWIG interface file instead.\n");
14  Index: Source/Modules/main.cxx
15  ===================================================================
16  --- Source/Modules/main.cxx (revision 9269)
17  +++ Source/Modules/main.cxx (revision 9270)
18  @@ -168,7 +168,7 @@
19   static String *external_runtime_name = 0;
20   static char *fake_version = 0;
21 
22  -static const char *swig_package_version() {
23  +const char *SWIG_package_version() {
24     return fake_version ? fake_version : PACKAGE_VERSION;
25   }
26 
27  @@ -561,12 +561,12 @@
28      Swig_arg_error();
29    }
30         } else if (strcmp(argv[i], "-version") == 0) {
31  - fprintf(stdout, "\nSWIG Version %s\n", swig_package_version());
32  + fprintf(stdout, "\nSWIG Version %s\n", SWIG_package_version());
33    fprintf(stdout, "\nCompiled with %s [%s]\n", SWIG_CXX, SWIG_PLATFORM);
34    fprintf(stdout, "Please see %s for reporting bugs and further information\n", PACKAGE_BUGREPORT);
35    SWIG_exit(EXIT_SUCCESS);
36         } else if (strcmp(argv[i], "-copyright") == 0) {
37  - fprintf(stdout, "\nSWIG Version %s\n", swig_package_version());
38  + fprintf(stdout, "\nSWIG Version %s\n", SWIG_package_version());
39    fprintf(stdout, "Copyright (c) 1995-1998\n");
40    fprintf(stdout, "University of Utah and the Regents of the University of California\n");
41    fprintf(stdout, "Copyright (c) 1998-2005\n");
42  @@ -763,7 +763,7 @@
43   #endif
44 
45     // Set the SWIG version value in format 0xAABBCC from package version expected to be in format A.B.C
46  - String *package_version = NewString(swig_package_version());
47  + String *package_version = NewString(SWIG_package_version());
48     char *token = strtok(Char(package_version), ".");
49     String *vers = NewString("SWIG_VERSION 0x");
50     int count = 0;
51  Index: Source/Modules/swigmod.h
52  ===================================================================
53  --- Source/Modules/swigmod.h (revision 9269)
54  +++ Source/Modules/swigmod.h (revision 9270)
55  @@ -301,6 +301,7 @@
56   void SWIG_config_file(const String_or_char *);
57   const String *SWIG_output_directory();
58   void SWIG_config_cppext(const char *ext);
59  +const char *SWIG_package_version();
60 
61   void SWIG_library_directory(const char *);
62   int emit_num_arguments(ParmList *);


feed icon

sventon 2.5.1