Changeset 340

Show
Ignore:
Timestamp:
05/09/06 07:12:41 (2 years ago)
Author:
athomas
Message:

Dev Todo:

  • Fixes #25
  • Fix for compilation under G++ 4.1
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • todo/trunk/configure.in

    r292 r340  
    11AC_INIT(src/main.cc) 
    2 AM_INIT_AUTOMAKE(devtodo,0.1.19
     2AM_INIT_AUTOMAKE(devtodo,0.1.20
    33 
    44# We don't want the util source to be made into a shared lib as it's 
  • todo/trunk/src/TodoDB.h

    r290 r340  
    109109                void initColourPost(); 
    110110                Todo::Priority getPriority(string current = ""); 
    111                 int TodoDB::markDone(Todo &todo); 
     111                int markDone(Todo &todo); 
    112112 
    113113                void formatItem(ostream &out, int depth, Todo const &item, string const &format); 
  • todo/trunk/src/Todo.h

    r290 r340  
    1414        01/02/01        Initial creation 
    1515*/ 
     16 
     17class TodoDB; 
    1618 
    1719class Todo { 
  • todo/trunk/util/XML.cc

    r290 r340  
    5252                xmlScan.addPattern(XmlEnd, "</[a-zA-Z0-9_-]+>"); 
    5353                xmlScan.addPattern(XmlDataBegin, "<!DATA[[:space:]]*\\[\\["); 
    54                 xmlScan.addPattern(XmlContent, "([^<]|[\n\r])+");                                      
     54                xmlScan.addPattern(XmlContent, "([\n\r]|[^<])+"); 
     55 
    5556 
    5657                commentScan.addPattern(CommentEnd, "-->[[:space:]]*"); 
     
    167168                                _child.push_back(new XML(Body, this, token)); 
    168169                        break; 
     170                        default: 
     171                                throw exception("unexpected token '" + token.value() + "'", token.line()); 
     172                        break; 
    169173                } 
    170174}