From stefan at users.sourceforge.net Tue Aug 20 20:37:03 2002 From: stefan at users.sourceforge.net (Stefan Seefeld) Date: Wed Mar 2 21:05:16 2005 Subject: [Synopsis-cvs] CVS: Synopsis/demo/C++ Makefile,1.31 Message-ID: Update of /cvsroot/synopsis/Synopsis/demo/C++ In directory usw-pr-cvs1:/tmp/cvs-serv385/demo/C++ Modified Files: Makefile Log Message: * use UML inheritance arrows * display operations and attributes if requested ***** Bogus filespec: Makefile,1.31 From stefan at users.sourceforge.net Tue Aug 20 20:38:01 2002 From: stefan at users.sourceforge.net (Stefan Seefeld) Date: Wed Mar 2 21:05:17 2005 Subject: [Synopsis-cvs] CVS: Synopsis/Synopsis/Formatter Dot.py,1.26 Message-ID: Update of /cvsroot/synopsis/Synopsis/Synopsis/Formatter In directory usw-pr-cvs1:/tmp/cvs-serv385/Synopsis/Formatter Modified Files: Dot.py Log Message: * use UML inheritance arrows * display operations and attributes if requested ***** Bogus filespec: Dot.py,1.26 From chalky at users.sourceforge.net Wed Aug 21 05:01:03 2002 From: chalky at users.sourceforge.net (Stephen Davies) Date: Wed Mar 2 21:05:17 2005 Subject: [Synopsis-cvs] CVS: Synopsis/docs/RefManual Makefile,1.34 Message-ID: Update of /cvsroot/synopsis/Synopsis/docs/RefManual In directory usw-pr-cvs1:/tmp/cvs-serv22588 Modified Files: Makefile Log Message: Change reference to synopsis script ***** Bogus filespec: Makefile,1.34 From chalky at users.sourceforge.net Thu Aug 22 05:22:04 2002 From: chalky at users.sourceforge.net (Stephen Davies) Date: Wed Mar 2 21:05:17 2005 Subject: [Synopsis-cvs] CVS: Synopsis/bin gen-emulations,1.1 Message-ID: Update of /cvsroot/synopsis/Synopsis/bin In directory usw-pr-cvs1:/tmp/cvs-serv2892 Added Files: gen-emulations Log Message: Initial version. Looks for gcc spec files ***** Bogus filespec: gen-emulations,1.1 From stefan at users.sourceforge.net Thu Aug 22 17:40:01 2002 From: stefan at users.sourceforge.net (Stefan Seefeld) Date: Wed Mar 2 21:05:17 2005 Subject: [Synopsis-cvs] CVS: Synopsis setup.py,1.1 Message-ID: Update of /cvsroot/synopsis/Synopsis In directory usw-pr-cvs1:/tmp/cvs-serv2501 Added Files: setup.py Log Message: some initial work on a distutils based build system ***** Bogus filespec: setup.py,1.1 From chalky at users.sourceforge.net Thu Aug 22 19:43:02 2002 From: chalky at users.sourceforge.net (Stephen Davies) Date: Wed Mar 2 21:05:17 2005 Subject: [Synopsis-cvs] CVS: Synopsis/Synopsis/Parser/C++/syn occ.cc,1.65 Message-ID: Update of /cvsroot/synopsis/Synopsis/Synopsis/Parser/C++/syn In directory usw-pr-cvs1:/tmp/cvs-serv30673 Modified Files: occ.cc Log Message: Allow 'occ.gdb foo -- blah blah blah' argument paradigm to pass options to parser verbatim ***** Bogus filespec: occ.cc,1.65 From chalky at users.sourceforge.net Thu Aug 22 19:44:02 2002 From: chalky at users.sourceforge.net (Stephen Davies) Date: Wed Mar 2 21:05:17 2005 Subject: [Synopsis-cvs] CVS: Synopsis/Synopsis/Parser/C++/syn dict.cc,1.10 dict.hh,1.9 lookup.cc,1.6 Message-ID: Update of /cvsroot/synopsis/Synopsis/Synopsis/Parser/C++/syn In directory usw-pr-cvs1:/tmp/cvs-serv30862 Modified Files: dict.cc dict.hh lookup.cc Log Message: Fixing exception failure (probably gcc bug) ***** Bogus filespec: lookup.cc,1.6 From chalky at users.sourceforge.net Thu Aug 22 21:35:04 2002 From: chalky at users.sourceforge.net (Stephen Davies) Date: Wed Mar 2 21:05:17 2005 Subject: [Synopsis-cvs] CVS: Synopsis/share syn-icon-c++.png,1.1 syn-icon-cache.png,1.1 syn-icon-html.png,1.1 syn-icon-parse.png,1.1 Message-ID: Update of /cvsroot/synopsis/Synopsis/share In directory usw-pr-cvs1:/tmp/cvs-serv21164 Added Files: syn-icon-c++.png syn-icon-cache.png syn-icon-html.png syn-icon-parse.png Log Message: Icons borrowed from my HD (Gnome & KDE I think) for temporary use in synopsis From chalky at users.sourceforge.net Thu Aug 22 21:36:02 2002 From: chalky at users.sourceforge.net (Stephen Davies) Date: Wed Mar 2 21:05:18 2005 Subject: [Synopsis-cvs] CVS: Synopsis/Synopsis/UI/Qt browse.py,1.9 Message-ID: Update of /cvsroot/synopsis/Synopsis/Synopsis/UI/Qt In directory usw-pr-cvs1:/tmp/cvs-serv21574 Modified Files: browse.py Log Message: Use png images w/ Dot. Only show classes in Classes list ***** Bogus filespec: browse.py,1.9 From chalky at users.sourceforge.net Thu Aug 22 21:37:04 2002 From: chalky at users.sourceforge.net (Stephen Davies) Date: Wed Mar 2 21:05:18 2005 Subject: [Synopsis-cvs] CVS: Synopsis/Synopsis/UI/Qt actionvis.py,1.8 Message-ID: Update of /cvsroot/synopsis/Synopsis/Synopsis/UI/Qt In directory usw-pr-cvs1:/tmp/cvs-serv21709 Modified Files: actionvis.py Log Message: Use icons! :) ***** Bogus filespec: actionvis.py,1.8 From chalky at users.sourceforge.net Thu Aug 22 21:38:02 2002 From: chalky at users.sourceforge.net (Stephen Davies) Date: Wed Mar 2 21:05:18 2005 Subject: [Synopsis-cvs] CVS: Synopsis/Synopsis/Core Util.py,1.18 Message-ID: Update of /cvsroot/synopsis/Synopsis/Synopsis/Core In directory usw-pr-cvs1:/tmp/cvs-serv21765/Synopsis/Core Modified Files: Util.py Log Message: Huge refactoring of Linker to make it modular, and use a config system similar to the HTML package ***** Bogus filespec: Util.py,1.18 From chalky at users.sourceforge.net Thu Aug 22 21:38:02 2002 From: chalky at users.sourceforge.net (Stephen Davies) Date: Wed Mar 2 21:05:18 2005 Subject: [Synopsis-cvs] CVS: Synopsis/Synopsis/Formatter/HTML core.py,1.32 Message-ID: Update of /cvsroot/synopsis/Synopsis/Synopsis/Formatter/HTML In directory usw-pr-cvs1:/tmp/cvs-serv21765/Synopsis/Formatter/HTML Modified Files: core.py Log Message: Huge refactoring of Linker to make it modular, and use a config system similar to the HTML package ***** Bogus filespec: core.py,1.32 From chalky at users.sourceforge.net Thu Aug 22 21:38:02 2002 From: chalky at users.sourceforge.net (Stephen Davies) Date: Wed Mar 2 21:05:18 2005 Subject: [Synopsis-cvs] CVS: Synopsis/Synopsis/Linker AccessRestrictor.py,1.1 EmptyNS.py,1.1 LanguageMapper.py,1.1 NameMapper.py,1.1 Stripper.py,1.1 Unduplicator.py,1.1 Comments.py,1.14 Linker.py,1.50 Message-ID: Update of /cvsroot/synopsis/Synopsis/Synopsis/Linker In directory usw-pr-cvs1:/tmp/cvs-serv21765/Synopsis/Linker Modified Files: Comments.py Linker.py Added Files: AccessRestrictor.py EmptyNS.py LanguageMapper.py NameMapper.py Stripper.py Unduplicator.py Log Message: Huge refactoring of Linker to make it modular, and use a config system similar to the HTML package From chalky at users.sourceforge.net Fri Aug 23 01:29:02 2002 From: chalky at users.sourceforge.net (Stephen Davies) Date: Wed Mar 2 21:05:18 2005 Subject: [Synopsis-cvs] CVS: Synopsis/Synopsis/Parser/C++/ucpp eval.c,1.5 Message-ID: Update of /cvsroot/synopsis/Synopsis/Synopsis/Parser/C++/ucpp In directory usw-pr-cvs1:/tmp/cvs-serv17426 Modified Files: eval.c Log Message: Better report for trailing-garbage error ***** Bogus filespec: eval.c,1.5 From chalky at users.sourceforge.net Fri Aug 23 01:29:03 2002 From: chalky at users.sourceforge.net (Stephen Davies) Date: Wed Mar 2 21:05:19 2005 Subject: [Synopsis-cvs] CVS: Synopsis/Synopsis/Parser/C++/ucpp macro.c,1.7 Message-ID: Update of /cvsroot/synopsis/Synopsis/Synopsis/Parser/C++/ucpp In directory usw-pr-cvs1:/tmp/cvs-serv17554 Modified Files: macro.c Log Message: Workaround for broken nested-macro detection to allow boost compilation ***** Bogus filespec: macro.c,1.7 From chalky at users.sourceforge.net Fri Aug 23 01:30:03 2002 From: chalky at users.sourceforge.net (Stephen Davies) Date: Wed Mar 2 21:05:19 2005 Subject: [Synopsis-cvs] CVS: Synopsis/Synopsis/Parser/C++/regression regressions.py,1.2 Message-ID: Update of /cvsroot/synopsis/Synopsis/Synopsis/Parser/C++/regression In directory usw-pr-cvs1:/tmp/cvs-serv17753 Modified Files: regressions.py Log Message: Added regression test for typeid() calls (particularly in constructor parameter initialiser, as boost had) ***** Bogus filespec: regressions.py,1.2 From chalky at users.sourceforge.net Fri Aug 23 01:31:02 2002 From: chalky at users.sourceforge.net (Stephen Davies) Date: Wed Mar 2 21:05:19 2005 Subject: [Synopsis-cvs] CVS: Synopsis/Synopsis/Parser/C++/occ parse.cc,1.22 parse.h,1.5 ptree.cc,1.6 ptree.h,1.8 token.cc,1.9 token.h,1.4 walker.cc,1.8 walker.h,1.5 Message-ID: Update of /cvsroot/synopsis/Synopsis/Synopsis/Parser/C++/occ In directory usw-pr-cvs1:/tmp/cvs-serv17906/occ Modified Files: parse.cc parse.h ptree.cc ptree.h token.cc token.h walker.cc walker.h Log Message: Add ability to parse typeid constructs, for boost. Index: ptree.h =================================================================== RCS file: /cvsroot/synopsis/Synopsis/Synopsis/Parser/C++/occ/ptree.h,v retrieving revision 1.6 retrieving revision 1.8 diff -C2 -d -r1.6 -r1.8 *** ptree.h 23 May 2001 05:08:47 -0000 1.6 --- ptree.h 23 Aug 2002 08:30:08 -0000 1.8 *************** *** 35,39 **** class CommentedLeaf : public Leaf { public: ! CommentedLeaf(Token& tk, Ptree* c) : Leaf(tk) { comments = c; } Ptree* GetComments() { return comments; } void SetComments(Ptree* c) { comments = c; } --- 35,40 ---- class CommentedLeaf : public Leaf { public: ! CommentedLeaf(Token& tk, Ptree* c = NULL) : Leaf(tk) { comments = c; } ! CommentedLeaf(char* p, int l, Ptree* c = NULL) : Leaf(p, l) { comments = c; } Ptree* GetComments() { return comments; } void SetComments(Ptree* c) { comments = c; } *************** *** 43,47 **** }; ! class LeafName : public Leaf { public: LeafName(Token&); --- 44,48 ---- }; ! class LeafName : public CommentedLeaf { public: LeafName(Token&); *************** *** 53,57 **** // The string given to the constructors are duplicated. ! class DupLeaf : public Leaf { public: DupLeaf(char*, int); --- 54,58 ---- // The string given to the constructors are duplicated. ! class DupLeaf : public CommentedLeaf { public: DupLeaf(char*, int); *************** *** 61,68 **** }; ! class LeafReserved : public Leaf { public: ! LeafReserved(Token& t) : Leaf(t) {} ! LeafReserved(char* str, int len) : Leaf(str, len) {} }; --- 62,69 ---- }; ! class LeafReserved : public CommentedLeaf { public: ! LeafReserved(Token& t) : CommentedLeaf(t) {} ! LeafReserved(char* str, int len) : CommentedLeaf(str, len) {} }; *************** *** 385,388 **** --- 386,390 ---- PtreeExprDecl(Throw); PtreeExprDecl(Sizeof); + PtreeExprDecl(Typeid); PtreeExprDecl(New); PtreeExprDecl(Delete); From chalky at users.sourceforge.net Fri Aug 23 01:31:03 2002 From: chalky at users.sourceforge.net (Stephen Davies) Date: Wed Mar 2 21:05:19 2005 Subject: [Synopsis-cvs] CVS: Synopsis/Synopsis/Parser/C++/syn swalker.cc,1.54 Message-ID: Update of /cvsroot/synopsis/Synopsis/Synopsis/Parser/C++/syn In directory usw-pr-cvs1:/tmp/cvs-serv17906/syn Modified Files: swalker.cc Log Message: Add ability to parse typeid constructs, for boost. ***** Bogus filespec: swalker.cc,1.54 From chalky at users.sourceforge.net Fri Aug 23 01:37:08 2002 From: chalky at users.sourceforge.net (Stephen Davies) Date: Wed Mar 2 21:05:20 2005 Subject: [Synopsis-cvs] CVS: Synopsis/Synopsis/Parser/C++/ucpp macro.c,1.8 Message-ID: Update of /cvsroot/synopsis/Synopsis/Synopsis/Parser/C++/ucpp In directory usw-pr-cvs1:/tmp/cvs-serv19973/ucpp Modified Files: macro.c Log Message: Increased recursion limit since I found one in boost bigger than 10. It's now 127 ***** Bogus filespec: macro.c,1.8 From stefan at users.sourceforge.net Fri Aug 23 04:49:03 2002 From: stefan at users.sourceforge.net (Stefan Seefeld) Date: Wed Mar 2 21:05:20 2005 Subject: [Synopsis-cvs] CVS: Synopsis/Synopsis/Parser/C++/syn synopsis.hh,1.27 Message-ID: Update of /cvsroot/synopsis/Synopsis/Synopsis/Parser/C++/syn In directory usw-pr-cvs1:/tmp/cvs-serv32716/Synopsis/Parser/C++/syn Modified Files: synopsis.hh Log Message: distutils uses different include paths... ***** Bogus filespec: synopsis.hh,1.27 From stefan at users.sourceforge.net Fri Aug 23 13:10:06 2002 From: stefan at users.sourceforge.net (Stefan Seefeld) Date: Wed Mar 2 21:05:20 2005 Subject: [Synopsis-cvs] CVS: Synopsis/Synopsis/Parser/C++/syn Makefile,1.45 Message-ID: Update of /cvsroot/synopsis/Synopsis/Synopsis/Parser/C++/syn In directory usw-pr-cvs1:/tmp/cvs-serv27829/Synopsis/Parser/C++/syn Modified Files: Makefile Log Message: change file name to avoid name clash with distutils ***** Bogus filespec: Makefile,1.45 From stefan at users.sourceforge.net Fri Aug 23 13:10:06 2002 From: stefan at users.sourceforge.net (Stefan Seefeld) Date: Wed Mar 2 21:05:20 2005 Subject: [Synopsis-cvs] CVS: Synopsis/Synopsis/Parser/C++/ucpp hashtable.c,1.4 Message-ID: Update of /cvsroot/synopsis/Synopsis/Synopsis/Parser/C++/ucpp In directory usw-pr-cvs1:/tmp/cvs-serv27829/Synopsis/Parser/C++/ucpp Modified Files: hashtable.c Log Message: change file name to avoid name clash with distutils ***** Bogus filespec: hashtable.c,1.4 From stefan at users.sourceforge.net Fri Aug 23 13:16:03 2002 From: stefan at users.sourceforge.net (Stefan Seefeld) Date: Wed Mar 2 21:05:20 2005 Subject: [Synopsis-cvs] CVS: Synopsis/Synopsis/Parser/C++/ucpp assert.c,1.4 cpp.c,1.8 macro.c,1.9 Message-ID: Update of /cvsroot/synopsis/Synopsis/Synopsis/Parser/C++/ucpp In directory usw-pr-cvs1:/tmp/cvs-serv29493/Synopsis/Parser/C++/ucpp Modified Files: assert.c cpp.c macro.c Log Message: change file name to avoid name clash with distutils Index: cpp.c =================================================================== RCS file: /cvsroot/synopsis/Synopsis/Synopsis/Parser/C++/ucpp/cpp.c,v retrieving revision 1.4 retrieving revision 1.8 diff -C2 -d -r1.4 -r1.8 *** cpp.c 22 Feb 2001 03:37:51 -0000 1.4 --- cpp.c 23 Aug 2002 20:15:39 -0000 1.8 *************** *** 53,57 **** #include "ucppi.h" #include "mem.h" ! #include "hash.h" #ifdef UCPP_MMAP #include --- 53,57 ---- #include "ucppi.h" #include "mem.h" ! #include "hashtable.h" #ifdef UCPP_MMAP #include *************** *** 82,85 **** --- 82,89 ---- static int current_incdir = -1; + #ifdef SYNOPSIS + void synopsis_macro_hook(const char* name, int line, int start, int end, int diff); + #endif + #ifndef NO_UCPP_ERROR_FUNCTIONS /* *************** *** 354,357 **** --- 358,365 ---- ls->macro_count = 0; #endif + #ifdef SYNOPSIS + ls->input_pos = 0; + ls->output_pos = 0; + #endif } *************** *** 1791,1794 **** --- 1799,1809 ---- if ((m = get_macro(ls->ctok->name)) != 0) { int x; + #ifdef SYNOPSIS + int o_pos, o_pos2, o_diff, o_line; + int i_pos, i_pos2, i_diff, i_line; + i_pos = ls->ctok->pos; + i_line = ls->line; + o_pos = ls->output_pos; + o_line = ls->oline; x = substitute_macro(ls, m, 0, 1, 0, *************** *** 1796,1799 **** --- 1811,1830 ---- if (!(ls->flags & LEXER)) garbage_collect(ls->gf); + o_pos2 = ls->output_pos; + o_diff = o_pos2 - o_pos; + i_pos2 = ls->input_pos + (ls->discard ? 1 : 0); + i_diff = i_pos2 - i_pos; + if (ls_depth == 0) { + /*printf("MACRO: INPUT(line %d: %d -> %d = +- %d) OUTPUT(line %d: %d -> %d = +- %d)\n", + i_line, i_pos, i_pos2, i_diff, + o_line, o_pos, o_pos2, o_diff);*/ + synopsis_macro_hook(m->name, i_line, o_pos, o_pos2, i_diff - o_diff); + } + #else + x = substitute_macro(ls, m, 0, 1, 0, + ls->ctok->line); + if (!(ls->flags & LEXER)) + garbage_collect(ls->gf); + #endif return r ? r : x; } ***** Bogus filespec: macro.c,1.9 From stefan at users.sourceforge.net Mon Aug 26 21:47:01 2002 From: stefan at users.sourceforge.net (Stefan Seefeld) Date: Wed Mar 2 21:05:20 2005 Subject: [Synopsis-cvs] CVS: Synopsis setup.py,1.2 Message-ID: Update of /cvsroot/synopsis/Synopsis In directory usw-pr-cvs1:/tmp/cvs-serv7450 Modified Files: setup.py Log Message: more work on setup.py ***** Bogus filespec: setup.py,1.2 From stefan at users.sourceforge.net Mon Aug 26 21:47:02 2002 From: stefan at users.sourceforge.net (Stefan Seefeld) Date: Wed Mar 2 21:05:21 2005 Subject: [Synopsis-cvs] CVS: Synopsis/Synopsis/Parser/C++/syn occ.cc,1.66 Message-ID: Update of /cvsroot/synopsis/Synopsis/Synopsis/Parser/C++/syn In directory usw-pr-cvs1:/tmp/cvs-serv7450/Synopsis/Parser/C++/syn Modified Files: occ.cc Log Message: more work on setup.py ***** Bogus filespec: occ.cc,1.66