From 5e7842a056f7e99faadc68857a34f4f7cd307898 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 26 Dec 2013 12:14:55 +0100 Subject: rb: add a header mentionning the GPL license in every source file --- Makefile | 16 ++++++++++++++++ README.md | 3 +++ rb.h | 18 ++++++++++++++++++ rb_str.h | 18 ++++++++++++++++++ src/rb.c | 18 ++++++++++++++++++ src/rb_str.c | 18 ++++++++++++++++++ 6 files changed, 91 insertions(+) diff --git a/Makefile b/Makefile index 98d1a73..af1ebc7 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,19 @@ +# Copyright (C) 2013 Olivier Gayot +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + CC ?= gcc CFLAGS += -W -Wall -std=c99 -Wextra CFLAGS += -I./ diff --git a/README.md b/README.md index 39d78b6..b35ccc6 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,6 @@ ring_buffer =========== A ready to use library meant to deal with ring buffers. + +This library is free software covered by the GPL license v2. You should +read the LICENSE file to understand what is implied. diff --git a/rb.h b/rb.h index 8a8eb0e..1483977 100644 --- a/rb.h +++ b/rb.h @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2013 Olivier Gayot + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + #ifndef RING_BUFFER_H #define RING_BUFFER_H diff --git a/rb_str.h b/rb_str.h index bebca5e..6931868 100644 --- a/rb_str.h +++ b/rb_str.h @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2013 Olivier Gayot + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + #ifndef RB_STR_H #define RB_STR_H diff --git a/src/rb.c b/src/rb.c index d8a801c..dec2082 100644 --- a/src/rb.c +++ b/src/rb.c @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2013 Olivier Gayot + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + #include #include diff --git a/src/rb_str.c b/src/rb_str.c index f6b3878..13b911d 100644 --- a/src/rb_str.c +++ b/src/rb_str.c @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2013 Olivier Gayot + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + #include #include "rb_str.h" -- cgit v1.2.3