head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.108 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.106 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.104 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.102 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.100 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.98 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.96 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.94 pkgsrc-2024Q2-base:1.1 pkgsrc-2024Q1:1.1.0.92 pkgsrc-2024Q1-base:1.1 pkgsrc-2023Q4:1.1.0.90 pkgsrc-2023Q4-base:1.1 pkgsrc-2023Q3:1.1.0.88 pkgsrc-2023Q3-base:1.1 pkgsrc-2023Q2:1.1.0.86 pkgsrc-2023Q2-base:1.1 pkgsrc-2023Q1:1.1.0.84 pkgsrc-2023Q1-base:1.1 pkgsrc-2022Q4:1.1.0.82 pkgsrc-2022Q4-base:1.1 pkgsrc-2022Q3:1.1.0.80 pkgsrc-2022Q3-base:1.1 pkgsrc-2022Q2:1.1.0.78 pkgsrc-2022Q2-base:1.1 pkgsrc-2022Q1:1.1.0.76 pkgsrc-2022Q1-base:1.1 pkgsrc-2021Q4:1.1.0.74 pkgsrc-2021Q4-base:1.1 pkgsrc-2021Q3:1.1.0.72 pkgsrc-2021Q3-base:1.1 pkgsrc-2021Q2:1.1.0.70 pkgsrc-2021Q2-base:1.1 pkgsrc-2021Q1:1.1.0.68 pkgsrc-2021Q1-base:1.1 pkgsrc-2020Q4:1.1.0.66 pkgsrc-2020Q4-base:1.1 pkgsrc-2020Q3:1.1.0.64 pkgsrc-2020Q3-base:1.1 pkgsrc-2020Q2:1.1.0.60 pkgsrc-2020Q2-base:1.1 pkgsrc-2020Q1:1.1.0.40 pkgsrc-2020Q1-base:1.1 pkgsrc-2019Q4:1.1.0.62 pkgsrc-2019Q4-base:1.1 pkgsrc-2019Q3:1.1.0.58 pkgsrc-2019Q3-base:1.1 pkgsrc-2019Q2:1.1.0.56 pkgsrc-2019Q2-base:1.1 pkgsrc-2019Q1:1.1.0.54 pkgsrc-2019Q1-base:1.1 pkgsrc-2018Q4:1.1.0.52 pkgsrc-2018Q4-base:1.1 pkgsrc-2018Q3:1.1.0.50 pkgsrc-2018Q3-base:1.1 pkgsrc-2018Q2:1.1.0.48 pkgsrc-2018Q2-base:1.1 pkgsrc-2018Q1:1.1.0.46 pkgsrc-2018Q1-base:1.1 pkgsrc-2017Q4:1.1.0.44 pkgsrc-2017Q4-base:1.1 pkgsrc-2017Q3:1.1.0.42 pkgsrc-2017Q3-base:1.1 pkgsrc-2017Q2:1.1.0.38 pkgsrc-2017Q2-base:1.1 pkgsrc-2017Q1:1.1.0.36 pkgsrc-2017Q1-base:1.1 pkgsrc-2016Q4:1.1.0.34 pkgsrc-2016Q4-base:1.1 pkgsrc-2016Q3:1.1.0.32 pkgsrc-2016Q3-base:1.1 pkgsrc-2016Q2:1.1.0.30 pkgsrc-2016Q2-base:1.1 pkgsrc-2016Q1:1.1.0.28 pkgsrc-2016Q1-base:1.1 pkgsrc-2015Q4:1.1.0.26 pkgsrc-2015Q4-base:1.1 pkgsrc-2015Q3:1.1.0.24 pkgsrc-2015Q3-base:1.1 pkgsrc-2015Q2:1.1.0.22 pkgsrc-2015Q2-base:1.1 pkgsrc-2015Q1:1.1.0.20 pkgsrc-2015Q1-base:1.1 pkgsrc-2014Q4:1.1.0.18 pkgsrc-2014Q4-base:1.1 pkgsrc-2014Q3:1.1.0.16 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.14 pkgsrc-2014Q2-base:1.1 pkgsrc-2014Q1:1.1.0.12 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.10 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.8 pkgsrc-2013Q3-base:1.1 pkgsrc-2013Q2:1.1.0.6 pkgsrc-2013Q2-base:1.1 pkgsrc-2013Q1:1.1.0.4 pkgsrc-2013Q1-base:1.1 pkgsrc-2012Q4:1.1.0.2 pkgsrc-2012Q4-base:1.1; locks; strict; comment @// @; 1.1 date 2012.12.21.10.29.46; author dholland; state Exp; branches; next ; desc @@ 1.1 log @Chase after that moving target known lightly as the C++ "standard". Fixes build. Also clean up insecure-temporary-files. PKGREVISION -> 1. @ text @$NetBSD$ Chase after the C++ standard: - use the newfangled names for C++ headers - use "std" qualification - string constants are const char * --- doctype/anzlic.cxx~ 2000-02-04 22:49:32.000000000 +0000 +++ doctype/anzlic.cxx @@@@ -116,12 +116,12 @@@@ Original: Edward C. Zimmermann, edz@@bsn. Copyright: A/WWW Enterprises, MCNC/CNIDR and USGS/ANZLIC @@@@@@-*/ -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include "isearch.hxx" #include "sgmlnorm.hxx" @@@@ -136,11 +136,11 @@@@ void ANZLIC::LoadFieldTable() { StrList.GetValue("FIELDTYPE", &FieldTypeFilename); if (FieldTypeFilename.GetLength() == 0) { - cout << "No fieldtype file specified. Assuming all fields are text."; - cout << endl; - cout << "Make sure you use the correct doctype option:" << endl; - cout << endl; - cout << " -o fieldtype=" << endl; + std::cout << "No fieldtype file specified. Assuming all fields are text."; + std::cout << std::endl; + std::cout << "Make sure you use the correct doctype option:" << std::endl; + std::cout << std::endl; + std::cout << " -o fieldtype=" << std::endl; return; } @@@@ -151,11 +151,11 @@@@ void ANZLIC::LoadFieldTable() { // Let's bring the entire file into memory if (!fp) { - cout << "Specified fieldtype file not found. Assuming all fields are text."; - cout << endl; - cout << "Make sure you use the correct doctype option:" << endl; - cout << endl; - cout << " -o fieldtype=" << endl; + std::cout << "Specified fieldtype file not found. Assuming all fields are text."; + std::cout << std::endl; + std::cout << "Make sure you use the correct doctype option:" << std::endl; + std::cout << std::endl; + std::cout << " -o fieldtype=" << std::endl; return; } fseek(fp, 0L, SEEK_END); @@@@ -246,7 +246,7 @@@@ DOUBLE ANZLIC::ParseDateSingle(const PCH else if (Hold.IsNumber()) fVal = Hold.GetFloat(); else { - cout << "Bad date, value=" << Buffer << endl; + std::cout << "Bad date, value=" << Buffer << std::endl; fVal = -1.0; } return fVal; @@@@ -276,7 +276,7 @@@@ void ANZLIC::ParseDateRange(const PCHR B } else if (Hold.IsNumber()) { *fStart = Hold.GetFloat(); } else { - cout << "Bad Start date, value=" << Buffer << endl; + std::cout << "Bad Start date, value=" << Buffer << std::endl; *fStart = -1.0; } @@@@ -294,7 +294,7 @@@@ void ANZLIC::ParseDateRange(const PCHR B } else if (Hold.IsNumber()) { *fEnd = Hold.GetFloat(); } else { - cout << "Bad End Date, value=" << Buffer << endl; + std::cout << "Bad End Date, value=" << Buffer << std::endl; *fEnd = 99999999; } @@@@ -344,7 +344,7 @@@@ void ANZLIC::ParseFields (PRECORD NewRec PCHR *tags = parse_tags (RecBuffer, ActualLength); if (tags == NULL) { - cout << "Unable to parse `" << doctype << "' tags in file " << fn << "\n"; + std::cout << "Unable to parse `" << doctype << "' tags in file " << fn << "\n"; // Clean up delete [] RecBuffer; return; @@@@ -382,14 +382,14 @@@@ void ANZLIC::ParseFields (PRECORD NewRec pTmp = (PAMD_Element)Nested.Top(); if (Tag == pTmp->get_tag()) { pTmp = (PAMD_Element)Nested.Pop(); -// cout << "Popped " << pTmp->get_tag() << " off the stack. "; +// std::cout << "Popped " << pTmp->get_tag() << " off the stack. "; delete pTmp; if (Nested.GetSize() != 0) { pTmp = (PAMD_Element)Nested.Top(); -// cout << "Still inside " << pTmp->get_tag() << ".\n"; +// std::cout << "Still inside " << pTmp->get_tag() << ".\n"; x = FullFieldname.SearchReverse('_'); FullFieldname.EraseAfter(x-1); -// cout << "Full fieldname is now " << FullFieldname << ".\n"; +// std::cout << "Full fieldname is now " << FullFieldname << ".\n"; } } } else @@@@ -429,14 +429,14 @@@@ void ANZLIC::ParseFields (PRECORD NewRec } } - PCHR unified_name = UnifiedName(*tags_ptr); + PKCHR unified_name = UnifiedName(*tags_ptr); // Ignore "unclassified" fields if (unified_name == NULL) continue; // ignore these FieldName = unified_name; if (!(FieldName.IsPrint())) { FieldName.MakePrintable(); - cout << "Non-ascii characters found in " << FieldName << endl; + std::cout << "Non-ascii characters found in " << FieldName << std::endl; } if (FieldName == "custom") @@@@ -464,7 +464,7 @@@@ void ANZLIC::ParseFields (PRECORD NewRec FullFieldname.Cat(FieldName); if (!(FullFieldname.IsPrint())) { FullFieldname.MakePrintable(); - cout << "Non-ascii characters found in " << FullFieldname << endl; + std::cout << "Non-ascii characters found in " << FullFieldname << std::endl; } STRING FieldType; @@@@ -500,8 +500,8 @@@@ void ANZLIC::ParseFields (PRECORD NewRec dfd_full.SetFieldName (FullFieldname); dfd_full.SetFieldType (FieldType); -// cout << "Found " << FullFieldname << " of type " << FieldType -// << endl; +// std::cout << "Found " << FullFieldname << " of type " << FieldType +// << std::endl; Db->DfdtAddEntry (dfd_full); fc_full.SetFieldStart (val_start); fc_full.SetFieldEnd (val_end); @@@@ -522,7 +522,7 @@@@ void ANZLIC::ParseFields (PRECORD NewRec } else if (p == NULL) { #if 1 // Give some information - cout << doctype << " Warning: \"" + std::cout << doctype << " Warning: \"" << fn << "\" offset " << (*tags_ptr - RecBuffer) << ": " << "No end tag for <" << *tags_ptr << "> found, skipping field.\n"; #endif @@@@ -840,7 +840,7 @@@@ ANZLIC::Present (const RESULT& ResultRec b.ReadFile(FullFilename); } else { - cout << "Error: presentation file not found." << endl; + std::cout << "Error: presentation file not found." << std::endl; } } } @