From c8fd2c090c4732fb44d0d4250a2aa1b6722fde76 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Wed, 29 Jun 2016 20:56:12 -0700 Subject: [PATCH] Add license headers to source files --- LICENSE-APACHE | 2 +- build.rs | 13 +++++++++++++ font/src/darwin/byte_order.rs | 14 ++++++++++++++ font/src/darwin/cg_color.rs | 13 +++++++++++++ font/src/darwin/mod.rs | 14 ++++++++++++++ font/src/ft/list_fonts.rs | 14 ++++++++++++++ font/src/ft/mod.rs | 14 ++++++++++++++ font/src/lib.rs | 14 ++++++++++++++ src/ansi.rs | 14 ++++++++++++++ src/grid.rs | 14 ++++++++++++++ src/input.rs | 14 ++++++++++++++ src/macros.rs | 14 ++++++++++++++ src/main.rs | 14 ++++++++++++++ src/meter.rs | 14 ++++++++++++++ src/renderer/mod.rs | 13 +++++++++++++ src/term.rs | 16 +++++++++++++++- src/tty.rs | 14 ++++++++++++++ src/util.rs | 14 ++++++++++++++ 18 files changed, 237 insertions(+), 2 deletions(-) diff --git a/LICENSE-APACHE b/LICENSE-APACHE index c9f1d40..d79db12 100644 --- a/LICENSE-APACHE +++ b/LICENSE-APACHE @@ -186,7 +186,7 @@ APPENDIX: How to apply the Apache License to your work. same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright 2016 Joe Wilm +Copyright 2016 Joe Wilm, The Alacritty Project Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/build.rs b/build.rs index c63f796..0bdea32 100644 --- a/build.rs +++ b/build.rs @@ -1,3 +1,16 @@ +// Copyright 2016 Joe Wilm, The Alacritty Project Contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. extern crate gl_generator; use gl_generator::{Registry, Api, Profile, Fallbacks, GlobalGenerator}; diff --git a/font/src/darwin/byte_order.rs b/font/src/darwin/byte_order.rs index 5b69655..29efb5b 100644 --- a/font/src/darwin/byte_order.rs +++ b/font/src/darwin/byte_order.rs @@ -1,3 +1,17 @@ +// Copyright 2016 Joe Wilm, The Alacritty Project Contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// //! Constants for bitmap byte order #![allow(non_upper_case_globals)] pub const kCGBitmapByteOrder32Little: u32 = 2 << 12; diff --git a/font/src/darwin/cg_color.rs b/font/src/darwin/cg_color.rs index 552137c..79ea086 100644 --- a/font/src/darwin/cg_color.rs +++ b/font/src/darwin/cg_color.rs @@ -1,3 +1,16 @@ +// Copyright 2016 Joe Wilm, The Alacritty Project Contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. use core_foundation::base::{CFRelease, CFRetain, CFTypeID, CFTypeRef, TCFType}; use core_graphics::color_space::{CGColorSpace, CGColorSpaceRef}; use core_graphics::base::CGFloat; diff --git a/font/src/darwin/mod.rs b/font/src/darwin/mod.rs index 5e53abd..6d006e6 100644 --- a/font/src/darwin/mod.rs +++ b/font/src/darwin/mod.rs @@ -1,3 +1,17 @@ +// Copyright 2016 Joe Wilm, The Alacritty Project Contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// //! Font rendering based on CoreText //! //! TODO error handling... just search for unwrap. diff --git a/font/src/ft/list_fonts.rs b/font/src/ft/list_fonts.rs index f171f57..c9eccec 100644 --- a/font/src/ft/list_fonts.rs +++ b/font/src/ft/list_fonts.rs @@ -1,3 +1,17 @@ +// Copyright 2016 Joe Wilm, The Alacritty Project Contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// use std::collections::HashMap; use std::ffi::{CStr, CString}; use std::fmt; diff --git a/font/src/ft/mod.rs b/font/src/ft/mod.rs index f288cda..024d33f 100644 --- a/font/src/ft/mod.rs +++ b/font/src/ft/mod.rs @@ -1,3 +1,17 @@ +// Copyright 2016 Joe Wilm, The Alacritty Project Contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// //! Rasterization powered by FreeType and FontConfig use std::collections::HashMap; diff --git a/font/src/lib.rs b/font/src/lib.rs index bd485ff..a42020d 100644 --- a/font/src/lib.rs +++ b/font/src/lib.rs @@ -1,3 +1,17 @@ +// Copyright 2016 Joe Wilm, The Alacritty Project Contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// //! Compatibility layer for different font engines //! //! This module is developed as part of Alacritty; Alacritty does not include Windows support diff --git a/src/ansi.rs b/src/ansi.rs index c0e9ec3..2fc3e4f 100644 --- a/src/ansi.rs +++ b/src/ansi.rs @@ -1,3 +1,17 @@ +// Copyright 2016 Joe Wilm, The Alacritty Project Contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// //! ANSI Terminal Stream Parsing //! //! The `Parser` implementation is largely based on the suck-less _simple terminal_ parser. Because diff --git a/src/grid.rs b/src/grid.rs index 3ce0a03..c3f4785 100644 --- a/src/grid.rs +++ b/src/grid.rs @@ -1,3 +1,17 @@ +// Copyright 2016 Joe Wilm, The Alacritty Project Contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// //! Functions for computing properties of the terminal grid use std::ops::{Index, IndexMut, Deref, DerefMut, Range, RangeTo, RangeFrom}; diff --git a/src/input.rs b/src/input.rs index 69ff0a8..6d4d3ab 100644 --- a/src/input.rs +++ b/src/input.rs @@ -1,3 +1,17 @@ +// Copyright 2016 Joe Wilm, The Alacritty Project Contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// //! Handle input from glutin //! //! Certain key combinations should send some escape sequence back to the pty. diff --git a/src/macros.rs b/src/macros.rs index 7c85f3c..e35eeb9 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -1,3 +1,17 @@ +// Copyright 2016 Joe Wilm, The Alacritty Project Contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #[macro_export] macro_rules! die { ($($arg:tt)*) => { diff --git a/src/main.rs b/src/main.rs index 2dbbae1..ec68ebf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,17 @@ +// Copyright 2016 Joe Wilm, The Alacritty Project Contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// //! Alacritty - The GPU Enhanced Terminal #![feature(question_mark)] #![feature(range_contains)] diff --git a/src/meter.rs b/src/meter.rs index 3badf33..470f613 100644 --- a/src/meter.rs +++ b/src/meter.rs @@ -1,3 +1,17 @@ +// Copyright 2016 Joe Wilm, The Alacritty Project Contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// //! Rendering time meter //! //! Used to track rendering times and provide moving averages. diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs index 8e548dd..19a69b8 100644 --- a/src/renderer/mod.rs +++ b/src/renderer/mod.rs @@ -1,3 +1,16 @@ +// Copyright 2016 Joe Wilm, The Alacritty Project Contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. use std::collections::HashMap; use std::ffi::CString; use std::fs::File; diff --git a/src/term.rs b/src/term.rs index d4168ea..0ddd8f0 100644 --- a/src/term.rs +++ b/src/term.rs @@ -1,4 +1,18 @@ -/// Exports the `Term` type which is a high-level API for the Grid +// Copyright 2016 Joe Wilm, The Alacritty Project Contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +//! Exports the `Term` type which is a high-level API for the Grid use std::ops::Range; use ansi::{self, Attr}; diff --git a/src/tty.rs b/src/tty.rs index a653d9a..accf022 100644 --- a/src/tty.rs +++ b/src/tty.rs @@ -1,3 +1,17 @@ +// Copyright 2016 Joe Wilm, The Alacritty Project Contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// //! tty related functionality //! use std::env; diff --git a/src/util.rs b/src/util.rs index 217f0b4..805acea 100644 --- a/src/util.rs +++ b/src/util.rs @@ -1,3 +1,17 @@ +// Copyright 2016 Joe Wilm, The Alacritty Project Contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// /// Threading utilities pub mod thread { /// Like `thread::spawn`, but with a `name` argument