/******************************************** -*-c-*- ***********************************************/
/* */
/* testPrint.main.c */
/* */
/****************************************************************************************************/
/****************************************************************************************************/
/* */
/* Copyright (C) 2004 Joerg Kunze */
/* */
/* This file is part of siliconBrainLib. */
/* */
/* siliconBrainLib is free software; you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License, or */
/* (at your option) any later version. */
/* */
/* siliconBrainLib is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU General Public License for more details. */
/* */
/* You should have received a copy of the GNU General Public License */
/* along with this program; if not, write to the Free Software */
/* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
/* */
/****************************************************************************************************/
char *siliconBrainRelease = "$siliconBrainRelease: 0.0.4 $";
char *siliconBrainRcsIdentifier = "$Id: testPrint.main.c,v 1.10 2004/12/14 23:09:01 joerg Exp $";
char *siliconBrainSaveStamp = "$siliconBrainSaveStamp: 2004/12/14 22:31:10, Joerg Kunze$";
/****************************************************************************************************/
/* */
/* include: */
/* */
/****************************************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#define siliconBrainPrintShortNames
#include "siliconBrainLib"
/****************************************************************************************************/
/* */
/* main: */
/* */
/****************************************************************************************************/
int main( int argc, const char *argv[] ) {
SiliconBrainPrinter siliconBrainPrinter;
siliconBrainPrinterInit( &siliconBrainPrinter, argc, argv );
tag( "joerg" );
tag( "command" );
attribute( "name", "myCommand" );
tag( "command2" );
end();
comment( "Next tag has an attribute with a ' in its value" );
tag( "command2" );
attribute( "name", "myCommand'2" );
end();
comment( "This comment\nhas a newline in it" );
tag( "description" );
text(
"first line\n"
"bla bla\n"
"long line:fd fdsf asdfasd <well/> dasfasdf asdf asdf asdf sadf sadf asdf asdfsdafsad fasdf asdf asdf asdfasdf asdf asdf asdfasd f adsf\n"
"fo fooo\n"
"last line\n"
);
text( "And yet another line" );
end();
end();
end();
tag( "siliconBrain" );
tag( "ftpHost" ); text( "siliconbrain.com" ); end();
tag( "ftpDir" ); text( "pub/ftp" ); end();
tag( "foo" ); text( "bar" ); end();
tag( "ute" ); text( "joerg" ); end();
key( "ute2", "tim" );
key( "ute32", "florian" );
key( "ute432", "katja" );
end();
destroy();
return 0;
}
/*
$Log: testPrint.main.c,v $
Revision 1.10 2004/12/14 23:09:01 joerg
published for new release 0.0.4
Revision 1.9 2004/12/14 23:02:56 joerg
published for new release 0.0.3
Revision 1.8 2004/12/14 22:44:36 joerg
allFiles: all sources have a Log CVS keyword at the end now.
*/