50 if (!
fin->is_open()) {
80 ALIint wsiz = wordlist.size();
82 for (
ii = 0;
ii < wsiz;
ii++) {
87 const ALIint NMAXLIN = 1000;
91 for (
ii = 0;
ii < NMAXLIN;
ii++)
96 for (
ii = 0;
ii < NMAXLIN;
ii++) {
97 if (ltemp[
ii] ==
'\0')
100 if (
ii == NMAXLIN - 1) {
102 std::cerr <<
"!!!! line longer than " << NMAXLIN <<
" characters" << std::endl
103 <<
" please split it putting a '\\' at the end of line" << std::endl;
115 std::istrstream istr_line(ltemp);
122 if (*
tt !=
' ' && *(
tt) !=
'\0') {
126 }
else if (*(
tt - 1) ==
' ' || *(
tt - 1) ==
'\015' || *(
tt - 1) ==
'\t') {
132 }
while (*
tt !=
'\0' && stemp.length() != 0);
134 if (stempt.length() == 0)
139 for (
ii = 0;
ii < NoWords;
ii++) {
142 if (stemp.length() == 0)
148 }
else if (comment > 0) {
149 stemp = stemp.substr(0, comment);
150 wordlist.push_back(stemp);
154 wordlist.push_back(stemp);
164 if (!wordlist.empty()) {
165 if ((*(wordlist.end() - 1)) ==
"\\") {
179 if (wordlist[0] ==
"#include") {
180 if (wordlist.size() != 2) {
182 std::cerr <<
"'#include' should have as second argument the filename " << std::endl;