From 79db36edbe0184c2d47dc44e5ccc8c4623287629 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 29 May 2026 10:12:14 +0200 Subject: [PATCH] add license headers --- src/context_buffer.rs | 5 +++++ src/lib.rs | 5 +++++ src/line_buffer.rs | 5 +++++ src/main.rs | 5 +++++ src/matcher.rs | 5 +++++ src/output.rs | 5 +++++ src/searcher.rs | 5 +++++ 7 files changed, 35 insertions(+) diff --git a/src/context_buffer.rs b/src/context_buffer.rs index 9e9b0d8..76ea5db 100644 --- a/src/context_buffer.rs +++ b/src/context_buffer.rs @@ -1,3 +1,8 @@ +// This file is part of the uutils grep package. +// +// For the full copyright and license information, please view the LICENSE +// file that was distributed with this source code. + pub struct LineView<'a> { /// Line content (without the terminator). pub line: &'a [u8], diff --git a/src/lib.rs b/src/lib.rs index 863c040..b2b75bd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,8 @@ +// This file is part of the uutils grep package. +// +// For the full copyright and license information, please view the LICENSE +// file that was distributed with this source code. + mod context_buffer; mod line_buffer; mod matcher; diff --git a/src/line_buffer.rs b/src/line_buffer.rs index 878afe7..54e7057 100644 --- a/src/line_buffer.rs +++ b/src/line_buffer.rs @@ -1,3 +1,8 @@ +// This file is part of the uutils grep package. +// +// For the full copyright and license information, please view the LICENSE +// file that was distributed with this source code. + use memchr::memchr; use std::fs::File; use std::io::{self, Read as _}; diff --git a/src/main.rs b/src/main.rs index 288f967..34eb03a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1 +1,6 @@ +// This file is part of the uutils grep package. +// +// For the full copyright and license information, please view the LICENSE +// file that was distributed with this source code. + uucore::bin!(uu_grep); diff --git a/src/matcher.rs b/src/matcher.rs index 2416679..5d68996 100644 --- a/src/matcher.rs +++ b/src/matcher.rs @@ -1,3 +1,8 @@ +// This file is part of the uutils grep package. +// +// For the full copyright and license information, please view the LICENSE +// file that was distributed with this source code. + use crate::{Config, RegexMode}; use onig::{EncodedBytes, Regex, RegexOptions, Region, SearchOptions, Syntax, SyntaxBehavior}; use onig_sys::{OnigEncCtype_ONIGENC_CTYPE_WORD, OnigEncodingUTF8}; diff --git a/src/output.rs b/src/output.rs index f5672f2..dc40bf6 100644 --- a/src/output.rs +++ b/src/output.rs @@ -1,3 +1,8 @@ +// This file is part of the uutils grep package. +// +// For the full copyright and license information, please view the LICENSE +// file that was distributed with this source code. + use crate::Config; use crate::context_buffer::LineView; use std::ffi::OsStr; diff --git a/src/searcher.rs b/src/searcher.rs index 35b05d3..c63c826 100644 --- a/src/searcher.rs +++ b/src/searcher.rs @@ -1,3 +1,8 @@ +// This file is part of the uutils grep package. +// +// For the full copyright and license information, please view the LICENSE +// file that was distributed with this source code. + use crate::context_buffer::{ContextBuffer, LineView}; use crate::line_buffer::LineBuffer; use crate::matcher::Matcher;