ViewVC (http://viewvc.tigris.org) CVS/SVN repository viewer, with some advanced features like full-text indexing of file contents (including binary like *.doc) using Sphinx Search and Apache TIka.
 
 
 
 
 
 
Go to file
dionisos 55889fd691 Exception usage cleanup. Use exceptions to terminate the parser in all cases.
Also protect pointers with auto_ptr to ensure cleanup.

Note: Before this change exceptions *could* occur, but all pointer-referenced
memory would be leaked.

* tparse/tparse.h: Change #include-s to C++ names.
  (RCSParseError):  Change to be a public descendant of exception. Use
  string datatype to ensure automatic cleanup. Implement a destructor
  as required by exception.
  (RCSExpected):  Use string datatype to ensure automatic cleanup. Add
  constructor for expected characters.
  (Branche): Removed.  Replaced with std::list<>.
  (Sink): Change method definition to reflect switch to exceptions.
  (TokenParser::match):  Add method for matching characters.
  (TokenParser::semicol, TokenParser::matchsemicol): Removed.
  Obsolete because we're now able to match single characters.
  (tparseParser):  Change method definition to reflect the switch
  to exceptions.
  (tparseParser::parse):  Adapt to changed method definitions.

* tparse/tparse.cpp: Change #include-s to C++ names.
  (TokenParser::get): Space changes and conversion to auto_ptr.
  (tparseParser::parse_rcs_admin,
   tparseParser::parse_rcs_description,
   tparseParser::parse_rcs_deltatext): Conversion to auto_ptr and exceptions.
  (tparseParser::parse_rcs_tree): Conversion to auto_ptr and exceptions. Also
  adjust for removal of Branche class.

* tparse/tparsemodule.h:  Include Python.h, since
  we,re actually using python types.

* tparse/tparsemodule.cpp (pyobject, pystring):
  New classes.  Used to anchor python objects ensuring their refcounts
  are decremented.
  (chkpy):  New.  Function to check python return value and act appropriately.
  (initparse):  Correctly anchor python strings.
  (rcstoken_to_pystring):  Removed.  Now integrated into the pystring class.
  (PythonSink):  Claim ownership for the duration of the instance lifetime.
  Also adjust all methods for the switch to exceptions.
  (tparse):  Adapt to the switch to exceptions.  Also prevent memory leakage
  when an exception occurs.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1060 8cb11bc2-c004-0410-86c3-e597b4017df7
2005-05-01 13:56:23 +00:00
elemx switch to a single, top-level makefile 2002-04-26 08:01:41 +00:00
lib Fix Bug #1181208. 2005-04-18 23:35:37 +00:00
templates * templates/docroot/images/broken.png 2005-03-01 20:25:52 +00:00
tests Ensure that we open ,v files in binary mode. 2003-02-26 02:31:31 +00:00
tools Fix loginfo crashes on "cvs import" and "cvs add <directory>". Thanks to John 2004-12-10 02:43:07 +00:00
tparse Exception usage cleanup. Use exceptions to terminate the parser in all cases. 2005-05-01 13:56:23 +00:00
website Sorta kinda revert my changes from Feb. 1 2005, wherein I stopped 2005-03-07 15:13:23 +00:00
windows Update windows README 2004-10-14 01:48:30 +00:00
www make query page work straight from the source directory without 2003-10-27 17:28:30 +00:00
CHANGES Minor updates to documentation. 2005-02-06 19:53:17 +00:00
INSTALL Support relative images and links in checked out HTML pages when 2005-02-13 16:48:12 +00:00
README Update the documentation so it's no longer an impediment to a 1.0 2004-10-08 17:57:14 +00:00
TODO removed some obviously resolved items and added a preface indicating, 2001-10-28 11:07:44 +00:00
cvsgraph.conf.dist Generate CvsGraph image map links with get_url function just like other 2004-12-10 02:09:46 +00:00
standalone.py Replace dodgy os.dup calls with calls to os.dup2 2005-02-03 13:08:59 +00:00
viewcvs-install * viewcvs-install 2005-01-06 20:10:47 +00:00
viewcvs.conf.dist Sorta kinda revert my changes from Feb. 1 2005, wherein I stopped 2005-03-07 15:13:23 +00:00

README

ViewCVS -- Viewing the content of CVS repositories with a Webbrowser.

Please read the file INSTALL for more information.

And see windows/README for more information on running ViewCVS on
Microsoft Windows.