[Synopsis-changes] Synopsis/Synopsis/demo/C++/Boost synopsis.py,1.3,1.4

Stefan Seefeld stefan at synopsis.fresco.org
Sun Nov 23 17:27:34 UTC 2003


Update of /cvs/synopsis/Synopsis/demo/C++/Boost
In directory frida:/tmp/cvs-serv23292

Modified Files:
	synopsis.py 
Log Message:
adapt to Linker

Index: synopsis.py
===================================================================
RCS file: /cvs/synopsis/Synopsis/demo/C++/Boost/synopsis.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -d -r1.3 -r1.4
--- synopsis.py	18 Nov 2003 17:05:17 -0000	1.3
+++ synopsis.py	23 Nov 2003 17:27:32 -0000	1.4
@@ -11,6 +11,9 @@ from Synopsis.Formatters import HTML
 import glob
 extra_input = glob.glob('boost/boost/python/*.hpp')
 
+# the python include path can be obtained from distutils.sysconfig,
+# assuming that the python version used to run synopsis is the same
+# boost should be compiled with
 parser = Cxx.Parser(cppflags = ['-DPYTHON_INCLUDE=<python2.2/Python.h>',
                                 '-DBOOST_PYTHON_SYNOPSIS',
                                 '-Iboost',
@@ -27,16 +30,15 @@ parser = Cxx.Parser(cppflags = ['-DPYTHO
 xref = XRefCompiler(prefix='xref/')    # compile xref dictionary
 
 
-linker = Composite(Unduplicator(),     # remove duplicate and forward declarations
-                   Stripper(),         # strip prefix (see Linker.Stripper.Stripper docs)
-                   NameMapper(),       # apply name mapping if any (prefix adding, etc.)
-                   SSComments(),       # filter out any non-'//' comments
-                   Grouper1(),         # group declarations according to '@group' tags
-                   CommentStripper(),  # strip any 'suspicious' comments
-                   Previous(),         # attach '//<-' comments
-                   Dummies(),          # drop 'dummy' declarations
-                   EmptyNS(),          # skip empty namespaces
-                   AccessRestrictor()) # filter out unwanted ('private', say) declarations
+linker = Linker(Stripper(),         # strip prefix (see Linker.Stripper.Stripper docs)
+                NameMapper(),       # apply name mapping if any (prefix adding, etc.)
+                SSComments(),       # filter out any non-'//' comments
+                Grouper2(),         # group declarations according to '@group' tags
+                CommentStripper(),  # strip any 'suspicious' comments
+                Previous(),         # attach '//<-' comments
+                Dummies(),          # drop 'dummy' declarations
+                EmptyNS(),          # skip empty namespaces
+                AccessRestrictor()) # filter out unwanted ('private', say) declarations
 
 formatter = HTML.Formatter(stylesheet_file = '../../html.css')
 





More information about the Synopsis-changes mailing list