aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2014-02-07 19:15:26 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2014-02-07 19:15:26 +0200
commitc9b5abe560c2fe06368cb733df8bcbfdb33a8526 (patch)
treef47eefa10b62e8564e80fd3424bd1cd8700c9620 /src
parente0db6733fc8563896090f678d382375897757d18 (diff)
downloadcflow-c9b5abe560c2fe06368cb733df8bcbfdb33a8526.tar.gz
cflow-c9b5abe560c2fe06368cb733df8bcbfdb33a8526.tar.bz2
Update copyright statements. Remove 'Front-Cover' clause from cflow.texi
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am5
-rw-r--r--src/argcv.c7
-rw-r--r--src/argcv.h6
-rw-r--r--src/c.l6
-rw-r--r--src/cflow.h8
-rw-r--r--src/depmap.c2
-rw-r--r--src/gnu.c8
-rw-r--r--src/linked-list.c8
-rw-r--r--src/main.c8
-rw-r--r--src/output.c8
-rw-r--r--src/parser.c6
-rw-r--r--src/parser.h6
-rw-r--r--src/posix.c8
-rw-r--r--src/rc.c8
-rw-r--r--src/symbol.c8
15 files changed, 37 insertions, 65 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index a66f42a..bad0476 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -5,28 +5,25 @@
#
# 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 3 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.
-
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
bin_PROGRAMS = cflow
cflow_SOURCES = \
argcv.c\
argcv.h\
c.l\
cflow.h\
depmap.c\
gnu.c\
linked-list.c\
main.c\
output.c\
diff --git a/src/argcv.c b/src/argcv.c
index 51e335e..611cb64 100644
--- a/src/argcv.c
+++ b/src/argcv.c
@@ -2,28 +2,27 @@
Copyright (C) 1999, 2000, 2001, 2005, 2007 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This library 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
Lesser General Public License for more details.
- You should have received a copy of the GNU Lesser General
- Public License along with this library; if not, write to the
- Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301 USA */
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <ctype.h>
#include <errno.h>
#include <argcv.h>
/*
* takes a string and splits it into several strings, breaking at ' '
* command is the string to split
diff --git a/src/argcv.h b/src/argcv.h
index 17a2f31..c082709 100644
--- a/src/argcv.h
+++ b/src/argcv.h
@@ -2,28 +2,26 @@
Copyright (C) 1999, 2000, 2001, 2005, 2007 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This library 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
Lesser General Public License for more details.
- You should have received a copy of the GNU Lesser General
- Public License along with this library; if not, write to the
- Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301 USA */
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef _ARGCV_H
#define _ARGCV_H 1
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#ifdef __cplusplus
extern "C" {
#endif
diff --git a/src/c.l b/src/c.l
index d0466ed..510ee1f 100644
--- a/src/c.l
+++ b/src/c.l
@@ -2,28 +2,26 @@
Copyright (C) 1997, 2005, 2007, 2010, 2014 Sergey Poznyakoff
GNU cflow 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 3 of the License, or
(at your option) any later version.
GNU cflow 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 GNU cflow; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- MA 02110-1301 USA */
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
%top {
#include <cflow.h>
#include <ctype.h>
#include <parser.h>
}
%x comment
%x string
%x stringwait
%x longline
%{
diff --git a/src/cflow.h b/src/cflow.h
index 07cc8cf..28ba0db 100644
--- a/src/cflow.h
+++ b/src/cflow.h
@@ -1,29 +1,27 @@
/* This file is part of GNU cflow
- Copyright (C) 1997, 2005, 2007, 2009, 2010 Sergey Poznyakoff
+ Copyright (C) 1997, 2005, 2007, 2009-2010, 2014 Sergey Poznyakoff
GNU cflow 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 3 of the License, or
(at your option) any later version.
GNU cflow 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 GNU cflow; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- MA 02110-1301 USA */
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <getopt.h>
#include <errno.h>
#define obstack_chunk_alloc xmalloc
diff --git a/src/depmap.c b/src/depmap.c
index e1753ce..6cb4c8e 100644
--- a/src/depmap.c
+++ b/src/depmap.c
@@ -1,14 +1,14 @@
/* This file is part of GNU cflow.
- Copyright (C) 2008, 2009, 2010 Sergey Poznyakoff
+ Copyright (C) 2008-2010, 2014 Sergey Poznyakoff
GNU cflow 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 3, or (at your option)
any later version.
GNU cflow 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
diff --git a/src/gnu.c b/src/gnu.c
index e471892..aae4909 100644
--- a/src/gnu.c
+++ b/src/gnu.c
@@ -1,29 +1,27 @@
/* This file is part of GNU cflow
- Copyright (C) 1997, 2005, 2007, 2010 Sergey Poznyakoff
+ Copyright (C) 1997, 2005, 2007, 2010, 2014 Sergey Poznyakoff
GNU cflow 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 3 of the License, or
(at your option) any later version.
GNU cflow 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 GNU cflow; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- MA 02110-1301 USA */
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <cflow.h>
void
print_function_name(Symbol *sym, int has_subtree)
{
fprintf(outfile, "%s", sym->name);
if (sym->arity >= 0)
fprintf(outfile, "()");
if (sym->decl)
fprintf(outfile, " <%s at %s:%d>",
sym->decl,
diff --git a/src/linked-list.c b/src/linked-list.c
index e81fd1c..1091dd7 100644
--- a/src/linked-list.c
+++ b/src/linked-list.c
@@ -1,29 +1,27 @@
/* This file is part of GNU cflow
- Copyright (C) 1997, 2005, 2006, 2007, 2009, 2010 Sergey Poznyakoff
+ Copyright (C) 1997, 2005-2007, 2009-2010, 2014 Sergey Poznyakoff
GNU cflow 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 3 of the License, or
(at your option) any later version.
GNU cflow 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 GNU cflow; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- MA 02110-1301 USA */
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <cflow.h>
static struct linked_list *
deref_linked_list (struct linked_list **plist)
{
if (!*plist) {
struct linked_list *list = xmalloc(sizeof(*list));
list->free_data = NULL;
list->head = list->tail = NULL;
*plist = list;
}
diff --git a/src/main.c b/src/main.c
index 34db7a1..e78993a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,29 +1,27 @@
/* This file is part of GNU cflow
- Copyright (C) 1997, 2005, 2007, 2009, 2010, 2011 Sergey Poznyakoff
+ Copyright (C) 1997, 2005, 2007, 2009-2011, 2014 Sergey Poznyakoff
GNU cflow 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 3 of the License, or
(at your option) any later version.
GNU cflow 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 GNU cflow; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- MA 02110-1301 USA */
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <cflow.h>
#include <argp.h>
#include <argp-version-etc.h>
#include <progname.h>
#include <stdarg.h>
#include <parser.h>
#include <version-etc.h>
const char *argp_program_bug_address = "<" PACKAGE_BUGREPORT ">";
static char doc[] = N_("generate a program flowgraph")
"\v"
diff --git a/src/output.c b/src/output.c
index 519a332..d46b496 100644
--- a/src/output.c
+++ b/src/output.c
@@ -1,29 +1,27 @@
/* This file is part of GNU cflow
- Copyright (C) 1997, 2005, 2007, 2009, 2010, 2011 Sergey Poznyakoff
+ Copyright (C) 1997, 2005, 2007, 2009-2011, 2014 Sergey Poznyakoff
GNU cflow 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 3 of the License, or
(at your option) any later version.
GNU cflow 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 GNU cflow; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- MA 02110-1301 USA */
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <cflow.h>
#include <parser.h>
unsigned char *level_mark;
/* Tree level information. level_mark[i] contains 1 if there are more
* leafs on the level `i', otherwise it contains 0
*/
int level_mark_size = 0; /* Actual size of level_mark */
int level_mark_incr = 128; /* level_mark is expanded by this number of bytes */
int out_line = 1; /* Current output line number */
diff --git a/src/parser.c b/src/parser.c
index 8dc2a4f..be82197 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -3,28 +3,26 @@
2014 Sergey Poznyakoff
GNU cflow 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 3 of the License, or
(at your option) any later version.
GNU cflow 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 GNU cflow; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- MA 02110-1301 USA */
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <cflow.h>
#include <parser.h>
typedef struct {
char *name;
int type_end;
int parmcnt;
int line;
enum storage storage;
} Ident;
diff --git a/src/parser.h b/src/parser.h
index 49c8b45..4204e2f 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -1,29 +1,27 @@
/* This file is part of GNU cflow
- * Copyright (C) 1997, 2007, 2010 Sergey Poznyakoff
+ * Copyright (C) 1997, 2007, 2010, 2014 Sergey Poznyakoff
*
* GNU cflow 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 3 of the License, or
* (at your option) any later version.
*
* GNU cflow 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 GNU cflow; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301 USA
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* tokens */
#define WORD 257
#define LBRACE0 258
#define RBRACE0 259
#define IDENTIFIER 260
#define EXTERN 261
#define STATIC 262
#define TYPEDEF 263
#define STRUCT 264
#define MODIFIER 265
#define OP 266
diff --git a/src/posix.c b/src/posix.c
index 4b30545..d0caac8 100644
--- a/src/posix.c
+++ b/src/posix.c
@@ -1,29 +1,27 @@
/* This file is part of GNU cflow
- Copyright (C) 1997, 2005, 2007, 2010 Sergey Poznyakoff
+ Copyright (C) 1997, 2005, 2007, 2010, 2014 Sergey Poznyakoff
GNU cflow 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 3 of the License, or
(at your option) any later version.
GNU cflow 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 GNU cflow; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- MA 02110-1301 USA */
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <cflow.h>
#include <ctype.h>
static void
print_symbol_type(FILE *outfile, Symbol *sym)
{
if (sym->decl)
fprintf(outfile, "%s, <%s %d>",
sym->decl,
sym->source,
sym->def_line);
diff --git a/src/rc.c b/src/rc.c
index 0b3ddf9..bb9d25a 100644
--- a/src/rc.c
+++ b/src/rc.c
@@ -1,29 +1,27 @@
/* This file is part of GNU cflow
- Copyright (C) 1997, 2005, 2007, 2010 Sergey Poznyakoff
+ Copyright (C) 1997, 2005, 2007, 2010, 2014 Sergey Poznyakoff
GNU cflow 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 3 of the License, or
(at your option) any later version.
GNU cflow 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 GNU cflow; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- MA 02110-1301 USA */
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <cflow.h>
#include <parser.h>
#include <sys/stat.h>
#include <ctype.h>
#include <argcv.h>
#ifndef LOCAL_RC
# define LOCAL_RC ".cflowrc"
#endif
static void
diff --git a/src/symbol.c b/src/symbol.c
index 567e458..7c54a97 100644
--- a/src/symbol.c
+++ b/src/symbol.c
@@ -1,29 +1,27 @@
/* This file is part of GNU cflow
- Copyright (C) 1997, 2005, 2006, 2007, 2009, 2010 Sergey Poznyakoff
+ Copyright (C) 1997, 2005-2007, 2009-2010, 2014 Sergey Poznyakoff
GNU cflow 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 3 of the License, or
(at your option) any later version.
GNU cflow 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 GNU cflow; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- MA 02110-1301 USA */
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <cflow.h>
#include <parser.h>
#include <hash.h>
static Hash_table *symbol_table;
static struct linked_list *static_symbol_list;
static struct linked_list *auto_symbol_list;
static struct linked_list *static_func_list;
static void

Return to:

Send suggestions and report system problems to the System administrator.