From 9d52f2a03e3167aea5c0e48ab111ced8715e97b6 Mon Sep 17 00:00:00 2001 From: devinacker Date: Fri, 15 Nov 2013 16:40:53 -0500 Subject: [PATCH] add license text to opening comments (just for those who want to copy compress.c/.h into their own projects) --- compress.c | 22 +++++++++++++++++++++- compress.h | 23 ++++++++++++++++++++--- exhal.c | 25 +++++++++++++++++++++---- inhal.c | 29 +++++++++++++++++++++++------ 4 files changed, 85 insertions(+), 14 deletions(-) diff --git a/compress.c b/compress.c index e573671..e171b91 100644 --- a/compress.c +++ b/compress.c @@ -1,9 +1,29 @@ /* exhal / inhal (de)compression routines - by Devin Acker This code is released under the terms of the MIT license. See COPYING.txt for details. + + Copyright (c) 2013 Devin Acker + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + */ #include diff --git a/compress.h b/compress.h index 0cc6963..13daa12 100644 --- a/compress.h +++ b/compress.h @@ -1,9 +1,26 @@ /* exhal / inhal (de)compression routines - by Devin Acker - This code is released under the terms of the MIT license. - See COPYING.txt for details. + Copyright (c) 2013 Devin Acker + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + */ #ifndef _COMPRESS_H diff --git a/exhal.c b/exhal.c index b429976..6720148 100644 --- a/exhal.c +++ b/exhal.c @@ -1,12 +1,29 @@ /* exhal - HAL Laboratory decompression tool - by Devin Acker - + Usage: exhal romfile offset outfile - This code is released under the terms of the MIT license. - See COPYING.txt for details. + Copyright (c) 2013 Devin Acker + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + */ #include diff --git a/inhal.c b/inhal.c index 033d2b7..9c36de7 100644 --- a/inhal.c +++ b/inhal.c @@ -1,13 +1,30 @@ /* inhal - HAL Laboratory compression tool - by Devin Acker - + Usage: - inhal infile romfile offset - inhal -n infile outfile + inhal [-fast] infile romfile offset + inhal -n [-fast] infile outfile - This code is released under the terms of the MIT license. - See COPYING.txt for details. + Copyright (c) 2013 Devin Acker + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + */ #include