From 95ffe547c50e4590f1eb4d925cd8c23e1fda9e73 Mon Sep 17 00:00:00 2001 From: Bruce Cowan <bruce.cowan@strath.ac.uk> Date: Thu, 26 Dec 2019 10:28:10 +0000 Subject: [PATCH] Add copyright headers to libs --- lib/types/hashtable.c | 19 +++++++++++++++++++ lib/types/hashtable.h | 19 +++++++++++++++++++ lib/types/slist.c | 19 +++++++++++++++++++ lib/types/slist.h | 19 +++++++++++++++++++ lib/types/types.h | 19 +++++++++++++++++++ lib/utils/utils.c | 19 +++++++++++++++++++ lib/utils/utils.h | 19 +++++++++++++++++++ 7 files changed, 133 insertions(+) diff --git a/lib/types/hashtable.c b/lib/types/hashtable.c index 4eed6ef..a7c2631 100644 --- a/lib/types/hashtable.c +++ b/lib/types/hashtable.c @@ -1,3 +1,22 @@ +/* hashtable.c + * + * Copyright 2019 Bruce Cowan <bruce@bcowan.me.uk> + * + * 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. + * + * SPDX-License-Identifier: Apache-2.0 + */ + #include "hashtable.h" #include "mem.h" diff --git a/lib/types/hashtable.h b/lib/types/hashtable.h index c71f049..c263c64 100644 --- a/lib/types/hashtable.h +++ b/lib/types/hashtable.h @@ -1,3 +1,22 @@ +/* hashtable.h + * + * Copyright 2019 Bruce Cowan <bruce@bcowan.me.uk> + * + * 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. + * + * SPDX-License-Identifier: Apache-2.0 + */ + #pragma once #include "slist.h" diff --git a/lib/types/slist.c b/lib/types/slist.c index a15cc63..300c53f 100644 --- a/lib/types/slist.c +++ b/lib/types/slist.c @@ -1,3 +1,22 @@ +/* slist.c + * + * Copyright 2019 Bruce Cowan <bruce@bcowan.me.uk> + * + * 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. + * + * SPDX-License-Identifier: Apache-2.0 + */ + #include "slist.h" #include <stdlib.h> diff --git a/lib/types/slist.h b/lib/types/slist.h index 243a0b6..dc2ad70 100644 --- a/lib/types/slist.h +++ b/lib/types/slist.h @@ -1,3 +1,22 @@ +/* slist.h + * + * Copyright 2019 Bruce Cowan <bruce@bcowan.me.uk> + * + * 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. + * + * SPDX-License-Identifier: Apache-2.0 + */ + #pragma once #include "types.h" diff --git a/lib/types/types.h b/lib/types/types.h index 7b59b91..66aeaf1 100644 --- a/lib/types/types.h +++ b/lib/types/types.h @@ -1,3 +1,22 @@ +/* types.h + * + * Copyright 2019 Bruce Cowan <bruce@bcowan.me.uk> + * + * 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. + * + * SPDX-License-Identifier: Apache-2.0 + */ + #pragma once #include <stdbool.h> diff --git a/lib/utils/utils.c b/lib/utils/utils.c index 4ca6fa4..2ee64a1 100644 --- a/lib/utils/utils.c +++ b/lib/utils/utils.c @@ -1,3 +1,22 @@ +/* utils.c + * + * Copyright 2019 Bruce Cowan <bruce@bcowan.me.uk> + * + * 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. + * + * SPDX-License-Identifier: Apache-2.0 + */ + #include <stdio.h> #include <stdlib.h> diff --git a/lib/utils/utils.h b/lib/utils/utils.h index 4a21c4b..765ded8 100644 --- a/lib/utils/utils.h +++ b/lib/utils/utils.h @@ -1,3 +1,22 @@ +/* utils.h + * + * Copyright 2019 Bruce Cowan <bruce@bcowan.me.uk> + * + * 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. + * + * SPDX-License-Identifier: Apache-2.0 + */ + #pragma once int * -- GitLab