comparison libinterp/corefcn/ls-mat5.cc @ 18678:6113e0c6920b

maint: Clean up extra spaces before/after parentheses.
author Rik <rik@octave.org>
date Fri, 25 Apr 2014 13:25:25 -0700
parents 6a71e5030df5
children 9a6646cc7c3e
comparison
equal deleted inserted replaced
18677:f684f7075aee 18678:6113e0c6920b
437 bool& is_small_data_element) 437 bool& is_small_data_element)
438 { 438 {
439 unsigned int upper; 439 unsigned int upper;
440 int32_t temp; 440 int32_t temp;
441 441
442 if (! is.read (reinterpret_cast<char *> (&temp), 4 )) 442 if (! is.read (reinterpret_cast<char *> (&temp), 4))
443 goto data_read_error; 443 goto data_read_error;
444 444
445 if (swap) 445 if (swap)
446 swap_bytes<4> (&temp); 446 swap_bytes<4> (&temp);
447 447
454 bytes = upper; 454 bytes = upper;
455 is_small_data_element = true; 455 is_small_data_element = true;
456 } 456 }
457 else 457 else
458 { 458 {
459 if (! is.read (reinterpret_cast<char *> (&temp), 4 )) 459 if (! is.read (reinterpret_cast<char *> (&temp), 4))
460 goto data_read_error; 460 goto data_read_error;
461 if (swap) 461 if (swap)
462 swap_bytes<4> (&temp); 462 swap_bytes<4> (&temp);
463 bytes = temp; 463 bytes = temp;
464 is_small_data_element = false; 464 is_small_data_element = false;
699 699
700 std::streampos tmp_pos = is.tellg (); 700 std::streampos tmp_pos = is.tellg ();
701 701
702 if (len) 702 if (len)
703 { 703 {
704 if (! is.read (name, len )) 704 if (! is.read (name, len))
705 goto data_read_error; 705 goto data_read_error;
706 706
707 is.seekg (tmp_pos + static_cast<std::streamoff> 707 is.seekg (tmp_pos + static_cast<std::streamoff>
708 (READ_PAD (is_small_data_element, len))); 708 (READ_PAD (is_small_data_element, len)));
709 } 709 }
1161 1161
1162 std::streampos tmp_pos = is.tellg (); 1162 std::streampos tmp_pos = is.tellg ();
1163 1163
1164 if (len) 1164 if (len)
1165 { 1165 {
1166 if (! is.read (name, len )) 1166 if (! is.read (name, len))
1167 goto data_read_error; 1167 goto data_read_error;
1168 1168
1169 is.seekg (tmp_pos + static_cast<std::streamoff> 1169 is.seekg (tmp_pos + static_cast<std::streamoff>
1170 (READ_PAD (is_small_data_element, len))); 1170 (READ_PAD (is_small_data_element, len)));
1171 } 1171 }
1191 { 1191 {
1192 error ("load: invalid field name length subelement"); 1192 error ("load: invalid field name length subelement");
1193 goto data_read_error; 1193 goto data_read_error;
1194 } 1194 }
1195 1195
1196 if (! is.read (reinterpret_cast<char *> (&field_name_length), fn_len )) 1196 if (! is.read (reinterpret_cast<char *> (&field_name_length), fn_len))
1197 goto data_read_error; 1197 goto data_read_error;
1198 1198
1199 if (swap) 1199 if (swap)
1200 swap_bytes<4> (&field_name_length); 1200 swap_bytes<4> (&field_name_length);
1201 1201