Skip to content

Commit d403404

Browse files
authored
Merge pull request #8393 from cakebaker/od_improve_file_names
od: use underscores in filenames, adapt modules
2 parents 06a4223 + f60b310 commit d403404

File tree

12 files changed

+29
-25
lines changed

12 files changed

+29
-25
lines changed
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
//
33
// For the full copyright and license information, please view the LICENSE
44
// file that was distributed with this source code.
5-
// spell-checker:ignore bfloat
5+
6+
// spell-checker:ignore bfloat multifile
7+
68
use half::{bf16, f16};
79
use std::io;
810

911
use crate::byteorder_io::ByteOrder;
10-
use crate::multifilereader::HasError;
11-
use crate::peekreader::PeekRead;
12+
use crate::multifile_reader::HasError;
13+
use crate::peek_reader::PeekRead;
1214

1315
/// Processes an input and provides access to the data read in various formats
1416
///
@@ -169,7 +171,7 @@ impl MemoryDecoder<'_> {
169171
mod tests {
170172
use super::*;
171173
use crate::byteorder_io::ByteOrder;
172-
use crate::peekreader::PeekReader;
174+
use crate::peek_reader::PeekReader;
173175
use std::io::Cursor;
174176

175177
#[test]

src/uu/od/src/od.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@
88
// spell-checker:ignore Anone bfloat
99

1010
mod byteorder_io;
11-
mod formatteriteminfo;
12-
mod inputdecoder;
13-
mod inputoffset;
11+
mod formatter_item_info;
12+
mod input_decoder;
13+
mod input_offset;
1414
#[cfg(test)]
1515
mod mockstream;
16-
mod multifilereader;
16+
mod multifile_reader;
1717
mod output_info;
1818
mod parse_formats;
1919
mod parse_inputs;
2020
mod parse_nrofbytes;
21-
mod partialreader;
22-
mod peekreader;
21+
mod partial_reader;
22+
mod peek_reader;
2323
mod prn_char;
2424
mod prn_float;
2525
mod prn_int;
@@ -30,16 +30,16 @@ use std::fmt::Write;
3030
use std::io::BufReader;
3131

3232
use crate::byteorder_io::ByteOrder;
33-
use crate::formatteriteminfo::FormatWriter;
34-
use crate::inputdecoder::{InputDecoder, MemoryDecoder};
35-
use crate::inputoffset::{InputOffset, Radix};
36-
use crate::multifilereader::{HasError, InputSource, MultifileReader};
33+
use crate::formatter_item_info::FormatWriter;
34+
use crate::input_decoder::{InputDecoder, MemoryDecoder};
35+
use crate::input_offset::{InputOffset, Radix};
36+
use crate::multifile_reader::{HasError, InputSource, MultifileReader};
3737
use crate::output_info::OutputInfo;
3838
use crate::parse_formats::{ParsedFormatterItemInfo, parse_format_flags};
3939
use crate::parse_inputs::{CommandLineInputs, parse_inputs};
4040
use crate::parse_nrofbytes::parse_number_of_bytes;
41-
use crate::partialreader::PartialReader;
42-
use crate::peekreader::{PeekRead, PeekReader};
41+
use crate::partial_reader::PartialReader;
42+
use crate::peek_reader::{PeekRead, PeekReader};
4343
use crate::prn_char::format_ascii_dump;
4444
use clap::ArgAction;
4545
use clap::{Arg, ArgMatches, Command, parser::ValueSource};

src/uu/od/src/output_info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use std::cmp;
88
use std::slice::Iter;
99

10-
use crate::formatteriteminfo::FormatterItemInfo;
10+
use crate::formatter_item_info::FormatterItemInfo;
1111
use crate::parse_formats::ParsedFormatterItemInfo;
1212

1313
/// Size in bytes of the max datatype. ie set to 16 for 128-bit numbers.

src/uu/od/src/parse_formats.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::collections::HashMap;
88
use uucore::display::Quotable;
99
use uucore::locale::{get_message, get_message_with_args};
1010

11-
use crate::formatteriteminfo::FormatterItemInfo;
11+
use crate::formatter_item_info::FormatterItemInfo;
1212
use crate::prn_char::*;
1313
use crate::prn_float::*;
1414
use crate::prn_int::*;
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
//
33
// For the full copyright and license information, please view the LICENSE
44
// file that was distributed with this source code.
5-
// spell-checker:ignore mockstream abcdefgh bcdefgh
5+
6+
// spell-checker:ignore mockstream abcdefgh bcdefgh multifile
67

78
use std::cmp;
89
use std::io;
910
use std::io::Read;
1011

11-
use crate::multifilereader::HasError;
12+
use crate::multifile_reader::HasError;
1213
use uucore::locale::get_message;
1314

1415
/// When a large number of bytes must be skipped, it will be read into a
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
//
33
// For the full copyright and license information, please view the LICENSE
44
// file that was distributed with this source code.
5-
// spell-checker:ignore (ToDO) tempbuffer abcdefgh abcdefghij
5+
6+
// spell-checker:ignore (ToDO) tempbuffer abcdefgh abcdefghij multifile
67

78
//! Contains the trait `PeekRead` and type `PeekReader` implementing it.
89
910
use std::io;
1011
use std::io::{Read, Write};
1112

12-
use crate::multifilereader::HasError;
13+
use crate::multifile_reader::HasError;
1314

1415
/// A trait which supplies a function to peek into a stream without
1516
/// actually reading it.

src/uu/od/src/prn_char.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// For the full copyright and license information, please view the LICENSE
44
// file that was distributed with this source code.
55

6-
use crate::formatteriteminfo::{FormatWriter, FormatterItemInfo};
6+
use crate::formatter_item_info::{FormatWriter, FormatterItemInfo};
77

88
pub static FORMAT_ITEM_A: FormatterItemInfo = FormatterItemInfo {
99
byte_size: 1,

0 commit comments

Comments
 (0)