~ubuntu-branches/ubuntu/raring/rheolef/raring-proposed

« back to all changes in this revision

Viewing changes to util/lib/rheostream.cc

  • Committer: Package Import Robot
  • Author(s): Pierre Saramito, Pierre Saramito, Sylvestre Ledru
  • Date: 2012-05-14 14:02:09 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120514140209-dzbdlidkotyflf9e
Tags: 6.1-1
[ Pierre Saramito ]
* New upstream release 6.1 (minor changes):
  - support arbitrarily polynomial order Pk
  - source code supports g++-4.7 (closes: #671996)

[ Sylvestre Ledru ]
* update of the watch file

Show diffs side-by-side

added added

removed removed

Lines of Context:
161
161
 
162
162
    // get full file path with the optional '.gz' suffix:
163
163
    string full_name = get_full_name_from_rheo_path (name, suffix);
 
164
    if (full_name.length() == 0) {
 
165
      if (suffix.length() != 0) {
 
166
        error_macro ("file \"" << name << "[." << suffix << "[.gz]]\" not found");
 
167
      } else {
 
168
        error_macro ("file \"" << name << "[.gz]\" not found");
 
169
      }
 
170
    }
 
171
    // open the file[.gz]:
164
172
    bool has_gz = has_suffix (full_name, "gz");
165
 
 
166
 
    // open the file[.gz]:
167
173
    if (!has_gz) {
168
174
      _ifs.open (full_name.c_str(), ios_base::in);
169
175
    } else {