1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-04 23:17:46 +00:00

docs/polish ~ remove outdated commentary

This commit is contained in:
Roy Ivy III 2020-05-27 12:20:43 -05:00
parent b9642a0253
commit 70871edac9

View file

@ -7,40 +7,6 @@
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
// #[macro_export]
// macro_rules! main { ($($arg:tt)+) => ({
// extern crate uu_arch;
// use std::io::Write;
// use uu_arch::uumain;
// fn main() {
// uucore::panic::install_sigpipe_hook();
// let code = uumain(uucore::args().collect());
// // Since stdout is line-buffered by default, we need to ensure any pending
// // writes are flushed before exiting. Ideally, this should be enforced by
// // each utility.
// //
// // See: https://github.com/rust-lang/rust/issues/23818
// //
// std::io::stdout().flush().expect("could not flush stdout");
// std::process::exit(code);
// }
// })}
// extern crate proc_macro;
// use proc_macro::TokenStream;
// #[proc_macro_attribute]
// pub fn hello(attr: TokenStream, item: TokenStream) -> TokenStream {
// let result = quote! {
// fn main() {
// uucore::panic::install_sigpipe_hook();
// std::io::stdout().flush().expect("could not flush stdout");
// std::process::exit(code);
// }
// };
// }
#[macro_export] #[macro_export]
macro_rules! executable( macro_rules! executable(
() => ({ () => ({