/[usata]/usata2/src/texture-meta-parser.cpp
ViewVC logotype

Diff of /usata2/src/texture-meta-parser.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by Descender, Sun Dec 26 18:36:42 2004 UTC revision 1.5 by skunix, Thu Dec 30 15:34:22 2004 UTC
# Line 12  Line 12 
12  //  //
13  // $Id$  // $Id$
14    
 #include <fstream>  
15  #include <deque>  #include <deque>
16    
17  #include <boost/function.hpp>  #include <boost/function.hpp>
# Line 116  namespace usata Line 115  namespace usata
115                  {                  {
116                          using namespace boost;                          using namespace boost;
117                          using std::string;                          using std::string;
118                            
119                          std::deque<std::string> line_proc;                          std::deque<std::string> line_proc;                      // Processed line
120                          ++line_num;                          ++line_num;
121                          strip_comments(line);                          strip_comments(line);
122                          boost::trim(line);                          boost::trim(line);
# Line 135  namespace usata Line 134  namespace usata
134                                  begin++;                                  begin++;
135                          }                          }
136                                                    
137                          if (line_proc.empty()) continue; //whatever                          if (line_proc.empty())                                          // ie. no tokens
138                                    continue;                                                              
139                                                    
140                          std::string tfilename = line_proc.front();                          std::string tfilename = line_proc.front();
141                          line_proc.pop_front();                          line_proc.pop_front();
# Line 152  namespace usata Line 152  namespace usata
152                          }                          }
153                          add(&x);                                  add(&x);        
154                  }                  }
155                            return true;    
156          }          }
157                    
158  }  }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26