Synopsis - Cross-Reference
File: /Synopsis/Parsers/C/synopsis.py.in1#! /usr/bin/env python 2 3from Synopsis import config 4from Synopsis.process import process 5from Synopsis.Processor import * 6from Synopsis.Processors import * 7from Synopsis.Parsers import Cxx 8 9from distutils import sysconfig 10import sys, os.path 11 12topdir = '@topdir@' 13srcdir = '@srcdir@' 14 15cppflags = ['-I.', 16 '-I%s'%(topdir + '/Cxx-API/include'), 17 '-I%s'%(srcdir), 18 '-I%s'%(sysconfig.get_python_inc())] 19 20cxx = Cxx.Parser(base_path = topdir + '/', 21 cppflags = cppflags, 22 syntax_prefix = 'links', 23 xref_prefix = 'xref') 24 25link = Linker(Comments.Translator(filter = Comments.SSDFilter())) 26 27process(cxx = cxx, 28 link = link)