home: hub: minipeg

Download patch

ref: 9e4951e219841e3b2b4091998cd4bd6db396bb39
parent: 3916902cb6178992d35c04df7aba13ecd1e61375
author: Andrew Chambers <ac@acha.ninja>
date: Thu Apr 7 21:27:26 CDT 2022

Shift copyright notices.

--- a/amalgamate.sh
+++ b/amalgamate.sh
@@ -2,6 +2,22 @@
 set -eu
 cat <<EOF
 /*
+   Copyright (c) 2007 by Ian Piumarta
+   Copyright (c) 2022 by Andrew Chambers
+   All rights reserved.
+   
+   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, and/or sell
+   copies of the Software, and to permit persons to whom the Software is
+   furnished to do so, provided that the above copyright notice(s) and this
+   permission notice appear in all copies of the Software.  Acknowledgement
+   of the use of this Software in supporting documentation would be
+   appreciated but is not required.
+   
+   THE SOFTWARE IS PROVIDED 'AS IS'.  USE ENTIRELY AT YOUR OWN RISK.
+
    This file is a distributable version of the minipeg[1] project.
    Visit https://github.com/andrewchambers/minipeg for source code.
 */
--- a/compile.c
+++ b/compile.c
@@ -1,21 +1,3 @@
-/* Copyright (c) 2007--2013 by Ian Piumarta
- * All rights reserved.
- * 
- * 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, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, provided that the above copyright notice(s) and this
- * permission notice appear in all copies of the Software.  Acknowledgement
- * of the use of this Software in supporting documentation would be
- * appreciated but is not required.
- * 
- * THE SOFTWARE IS PROVIDED 'AS IS'.  USE ENTIRELY AT YOUR OWN RISK.
- * 
- * Last edited: 2016-07-22 09:43:05 by piumarta on zora.local
- */
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
--- a/peg.peg
+++ b/peg.peg
@@ -1,22 +1,3 @@
-# LE Grammar for LE Grammars
-# 
-# Copyright (c) 2007 by Ian Piumarta
-# All rights reserved.
-# 
-# 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, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, provided that the above copyright notice(s) and this
-# permission notice appear in all copies of the Software.  Acknowledgement
-# of the use of this Software in supporting documentation would be
-# appreciated but is not required.
-# 
-# THE SOFTWARE IS PROVIDED 'AS IS'.  USE ENTIRELY AT YOUR OWN RISK.
-# 
-# Last edited: 2016-07-22 09:45:53 by piumarta on zora.local
-
 %{
 #include "tree.h"
 #include "version.h"
--- a/tree.c
+++ b/tree.c
@@ -1,21 +1,3 @@
-/* Copyright (c) 2007 by Ian Piumarta
- * All rights reserved.
- * 
- * 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, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, provided that the above copyright notice(s) and this
- * permission notice appear in all copies of the Software.  Acknowledgement
- * of the use of this Software in supporting documentation would be
- * appreciated but is not required.
- * 
- * THE SOFTWARE IS PROVIDED 'AS IS'.  USE ENTIRELY AT YOUR OWN RISK.
- * 
- * Last edited: 2016-07-15 10:25:14 by piumarta on zora
- */
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
--- a/tree.h
+++ b/tree.h
@@ -1,21 +1,3 @@
-/* Copyright (c) 2007 by Ian Piumarta
- * All rights reserved.
- * 
- * 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, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, provided that the above copyright notice(s) and this
- * permission notice appear in all copies of the Software.  Acknowledgement
- * of the use of this Software in supporting documentation would be
- * appreciated but is not required.
- * 
- * THE SOFTWARE IS PROVIDED 'AS IS'.  USE ENTIRELY AT YOUR OWN RISK.
- * 
- * Last edited: 2016-07-22 09:42:48 by piumarta on zora.local
- */
-
 #include <stdio.h>
 
 enum { Unknown= 0, Rule, Variable, Name, Dot, Character, String, Class, Action, Inline, Predicate, Error, Alternate, Sequence, PeekFor, PeekNot, Query, Star, Plus };