Mercurial > mxe-octave
annotate src/tinyxml-test.cpp @ 3661:ecc8ad4c560c
remove redundant package from ghostscript dependency list
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 09 Jul 2014 09:25:57 -0400 |
parents | 99516e73b368 |
children |
rev | line source |
---|---|
2351
8a6c466753e2
Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents:
2333
diff
changeset
|
1 /* |
8a6c466753e2
Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents:
2333
diff
changeset
|
2 * This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2351
diff
changeset
|
3 * See index.html for further information. |
2351
8a6c466753e2
Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents:
2333
diff
changeset
|
4 */ |
1391 | 5 |
6 #include <iostream> | |
7 #include <tinyxml.h> | |
8 | |
9 int main(int argc, char *argv[]) | |
10 { | |
1395
6e4fd771390f
shortened test program for package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents:
1393
diff
changeset
|
11 if (argc != 2) { |
6e4fd771390f
shortened test program for package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents:
1393
diff
changeset
|
12 std::cerr << "Usage: tinyxml-test <xml-file>" << std::endl; |
6e4fd771390f
shortened test program for package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents:
1393
diff
changeset
|
13 return 1; |
1393
1d73365278e8
remove nasty tabs and trailing whitespaces from the test program for package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents:
1391
diff
changeset
|
14 } |
1395
6e4fd771390f
shortened test program for package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents:
1393
diff
changeset
|
15 std::string fpn = argv[1]; |
1391 | 16 |
1393
1d73365278e8
remove nasty tabs and trailing whitespaces from the test program for package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents:
1391
diff
changeset
|
17 TiXmlDocument doc(fpn); |
1d73365278e8
remove nasty tabs and trailing whitespaces from the test program for package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents:
1391
diff
changeset
|
18 if (!doc.LoadFile()) { |
1395
6e4fd771390f
shortened test program for package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents:
1393
diff
changeset
|
19 std::cerr << "failed to load " << fpn << std::endl; |
6e4fd771390f
shortened test program for package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents:
1393
diff
changeset
|
20 return 1; |
1393
1d73365278e8
remove nasty tabs and trailing whitespaces from the test program for package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents:
1391
diff
changeset
|
21 } |
1391 | 22 |
23 return 0; | |
24 } |