mirror of
https://github.com/jezhiggins/arabica
synced 2024-11-17 07:48:50 +01:00
Updated to take advantage of the new library parser configuration
This commit is contained in:
parent
13d4953da9
commit
cc0523251e
3 changed files with 11 additions and 14 deletions
|
@ -46,9 +46,9 @@ INCS_DIRS = -I../.. -I../../include
|
|||
LIBS_DIRS = -L../../bin
|
||||
|
||||
#STATIC_LIBS = -lstlport_gcc -lSAX -lexpat -lstdc++
|
||||
STATIC_LIBS = -lSAX -lexpat -lstdc++
|
||||
|
||||
STATIC_LIBS = -lSAX -lstdc++
|
||||
|
||||
PARSER_LIBS = -lexpat
|
||||
|
||||
#/////////////////////////////////////////////////////////////////////////
|
||||
#//////////////////////////////////////////////
|
||||
|
@ -75,15 +75,15 @@ WRITER_OBJS = $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(WRITER_SRCS)))
|
|||
all : pyx simple_handler writer
|
||||
|
||||
pyx : $(PYX_OBJS)
|
||||
$(CPP) $(PYX_OBJS) $(LIBS_DIRS) $(STATIC_LIBS) -o pyx
|
||||
$(CPP) $(PYX_OBJS) $(LIBS_DIRS) $(STATIC_LIBS) $(PARSER_LIBS) -o pyx
|
||||
cp pyx ../../bin
|
||||
|
||||
simple_handler : $(SIMPLE_OBJS)
|
||||
$(CPP) $(SIMPLE_OBJS) $(LIBS_DIRS) $(STATIC_LIBS) -o simple_handler
|
||||
$(CPP) $(SIMPLE_OBJS) $(LIBS_DIRS) $(STATIC_LIBS) $(PARSER_LIBS) -o simple_handler
|
||||
cp simple_handler ../../bin
|
||||
|
||||
writer : $(WRITER_OBJS)
|
||||
$(CPP) $(WRITER_OBJS) $(LIBS_DIRS) $(STATIC_LIBS) -o writer
|
||||
$(CPP) $(WRITER_OBJS) $(LIBS_DIRS) $(STATIC_LIBS) $(PARSER_LIBS) -o writer
|
||||
cp writer ../../bin
|
||||
|
||||
#/////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
#pragma hdrstop
|
||||
#ifdef __BORLANDC__
|
||||
#include <condefs.h>
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable:4786)
|
||||
|
||||
#endif
|
||||
|
||||
#include "SimpleHandler.h"
|
||||
#include <SAX/InputSource.h>
|
||||
|
@ -14,17 +11,17 @@
|
|||
////////////////////////////////////////////////
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
if(argc < 3)
|
||||
if(argc < 2)
|
||||
{
|
||||
std::cout << "Usage : " << argv[0] << " xmlfile ... " << std::endl;
|
||||
return 0;
|
||||
} // if(argc == 0)
|
||||
|
||||
SimpleHandler myHandler;
|
||||
SimpleHandler myHandler;
|
||||
SAX::FeatureNames<std::string> fNames;
|
||||
SAX::PropertyNames<std::string> pNames;
|
||||
|
||||
for(int i = 2; i < argc; ++i)
|
||||
for(int i = 1; i < argc; ++i)
|
||||
{
|
||||
SAX::XMLReader<std::string> parser;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#pragma warning(disable:4786)
|
||||
|
||||
#include <SAX/wrappers/saxexpat.h>
|
||||
#include <SAX/XMLReader.h>
|
||||
#include <SAX/helpers/FeatureNames.h>
|
||||
#include <SAX/InputSource.h>
|
||||
#include <iostream>
|
||||
|
|
Loading…
Reference in a new issue