1 --- tools/plyheader.old.cpp 2011-04-15 23:15:24.574312747 -0700
2 +++ tools/plyheader.cpp 2011-04-15 23:17:02.857440649 -0700
13 - if ((short_opt == 'h') || (std::strcmp(long_opt, "help") == 0)) {
14 + if ((short_opt == 'h') || (strcmp(long_opt, "help") == 0)) {
15 std::cout << "Usage: plyheader [OPTION] [[INFILE] OUTFILE]\n";
16 std::cout << "Extract the header from a PLY file.\n";
22 - else if ((short_opt == 'v') || (std::strcmp(long_opt, "version") == 0)) {
23 + else if ((short_opt == 'v') || (strcmp(long_opt, "version") == 0)) {
24 std::cout << "plyheader (" << PACKAGE_NAME << ") " << PACKAGE_VERSION << "\n";
25 std::cout << "Copyright (C) 2007 " << PACKAGE_AUTHOR << "\n";
28 const char* ifilename = "";
31 - if (std::strcmp(ifilename, "-") != 0) {
32 + if (strcmp(ifilename, "-") != 0) {
33 ifstream.open(ifilename);
34 if (!ifstream.is_open()) {
35 std::cerr << "plyheader: " << ifilename << ": " << "no such file or directory" << "\n";
37 const char* ofilename = "";
40 - if (std::strcmp(ofilename, "-") != 0) {
41 + if (strcmp(ofilename, "-") != 0) {
42 ofstream.open(ofilename);
43 if (!ofstream.is_open()) {
44 std::cerr << "plyheader: " << ofilename << ": " << "could not open file" << "\n";