summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVern Paxson <vern@ee.lbl.gov>1989-05-24 11:42:56 +0000
committerVern Paxson <vern@ee.lbl.gov>1989-05-24 11:42:56 +0000
commit071c8d64b6def6889e14c790753c9c165fe8224c (patch)
treea717bd658f359473b8f657d46cd625acaf8e2628
parenta8bd4c0dc7996a4bdf6ef13889d1ea6d9b8385ca (diff)
added BSD copyright notice
-rw-r--r--ccl.c32
-rw-r--r--dfa.c32
-rw-r--r--misc.c34
-rw-r--r--parse.y28
-rw-r--r--scan.l26
-rw-r--r--sym.c32
-rw-r--r--tblcmp.c32
-rw-r--r--yylex.c34
8 files changed, 196 insertions, 54 deletions
diff --git a/ccl.c b/ccl.c
index 7d1b552..37f3351 100644
--- a/ccl.c
+++ b/ccl.c
@@ -1,24 +1,42 @@
/* ccl - routines for character classes */
/*
- * Copyright (c) 1987, the University of California
+ * Copyright (c) 1989 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Vern Paxson.
*
* The United States Government has rights in this work pursuant to
* contract no. DE-AC03-76SF00098 between the United States Department of
* Energy and the University of California.
- *
- * This program may be redistributed. Enhancements and derivative works
- * may be created provided the new works, if made available to the general
- * public, are made available for use by anyone.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley. The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-#include "flexdef.h"
-
#ifndef lint
+
+static char copyright[] =
+ "@(#) Copyright (c) 1989 The Regents of the University of California.\n\
+ All rights reserved.\n";
+
static char rcsid[] =
"@(#) $Header$ (LBL)";
+
#endif
+#include "flexdef.h"
+
/* ccladd - add a single character to a ccl
*
* synopsis
diff --git a/dfa.c b/dfa.c
index 796a8d3..e177797 100644
--- a/dfa.c
+++ b/dfa.c
@@ -1,24 +1,42 @@
/* dfa - DFA construction routines */
/*
- * Copyright (c) 1987, the University of California
+ * Copyright (c) 1989 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Vern Paxson.
*
* The United States Government has rights in this work pursuant to
* contract no. DE-AC03-76SF00098 between the United States Department of
* Energy and the University of California.
- *
- * This program may be redistributed. Enhancements and derivative works
- * may be created provided the new works, if made available to the general
- * public, are made available for use by anyone.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley. The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-#include "flexdef.h"
-
#ifndef lint
+
+static char copyright[] =
+ "@(#) Copyright (c) 1989 The Regents of the University of California.\n\
+ All rights reserved.\n";
+
static char rcsid[] =
"@(#) $Header$ (LBL)";
+
#endif
+#include "flexdef.h"
+
/* check_for_backtracking - check a DFA state for backtracking
*
diff --git a/misc.c b/misc.c
index 74934e4..5b36e57 100644
--- a/misc.c
+++ b/misc.c
@@ -1,25 +1,43 @@
/* misc - miscellaneous flex routines */
/*
- * Copyright (c) 1987, the University of California
+ * Copyright (c) 1989 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Vern Paxson.
*
* The United States Government has rights in this work pursuant to
* contract no. DE-AC03-76SF00098 between the United States Department of
* Energy and the University of California.
- *
- * This program may be redistributed. Enhancements and derivative works
- * may be created provided the new works, if made available to the general
- * public, are made available for use by anyone.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley. The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-#include <ctype.h>
-#include "flexdef.h"
-
#ifndef lint
+
+static char copyright[] =
+ "@(#) Copyright (c) 1989 The Regents of the University of California.\n\
+ All rights reserved.\n";
+
static char rcsid[] =
"@(#) $Header$ (LBL)";
+
#endif
+#include <ctype.h>
+#include "flexdef.h"
+
char *malloc(), *realloc();
diff --git a/parse.y b/parse.y
index 55cb3c5..a26c5d4 100644
--- a/parse.y
+++ b/parse.y
@@ -1,15 +1,27 @@
/* parse.y - parser for flex input */
/*
- * Copyright (c) 1987, the University of California
+ * Copyright (c) 1989 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Vern Paxson.
*
* The United States Government has rights in this work pursuant to
* contract no. DE-AC03-76SF00098 between the United States Department of
* Energy and the University of California.
- *
- * This program may be redistributed. Enhancements and derivative works
- * may be created provided the new works, if made available to the general
- * public, are made available for use by anyone.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley. The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
%token CHAR NUMBER SECTEND SCDECL XSCDECL WHITESPACE NAME PREVCCL
@@ -19,8 +31,14 @@
#include "flexdef.h"
#ifndef lint
+
+static char copyright[] =
+ "@(#) Copyright (c) 1989 The Regents of the University of California.\n\
+ All rights reserved.\n";
+
static char rcsid[] =
"@(#) $Header$ (LBL)";
+
#endif
int pat, scnum, eps, headcnt, trailcnt, anyccl, lastchar, i, actvp, rulelen;
diff --git a/scan.l b/scan.l
index 4ac8ba1..4717cfa 100644
--- a/scan.l
+++ b/scan.l
@@ -1,15 +1,27 @@
/* scan.l - scanner for flex input */
/*
- * Copyright (c) 1987, the University of California
+ * Copyright (c) 1989 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Vern Paxson.
*
* The United States Government has rights in this work pursuant to
* contract no. DE-AC03-76SF00098 between the United States Department of
* Energy and the University of California.
- *
- * This program may be redistributed. Enhancements and derivative works
- * may be created provided the new works, if made available to the general
- * public, are made available for use by anyone.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley. The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
%{
@@ -17,6 +29,10 @@
#include "parse.h"
#ifndef lint
+static char copyright[] =
+"@(#) Copyright (c) 1989 The Regents of the University of California.\n\
+ All rights reserved.\n";
+
static char rcsid[] =
"@(#) $Header$ (LBL)";
#endif
diff --git a/sym.c b/sym.c
index 78111c7..34314f5 100644
--- a/sym.c
+++ b/sym.c
@@ -1,24 +1,42 @@
/* sym - symbol table routines */
/*
- * Copyright (c) 1987, the University of California
+ * Copyright (c) 1989 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Vern Paxson.
*
* The United States Government has rights in this work pursuant to
* contract no. DE-AC03-76SF00098 between the United States Department of
* Energy and the University of California.
- *
- * This program may be redistributed. Enhancements and derivative works
- * may be created provided the new works, if made available to the general
- * public, are made available for use by anyone.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley. The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-#include "flexdef.h"
-
#ifndef lint
+
+static char copyright[] =
+ "@(#) Copyright (c) 1989 The Regents of the University of California.\n\
+ All rights reserved.\n";
+
static char rcsid[] =
"@(#) $Header$ (LBL)";
+
#endif
+#include "flexdef.h"
+
struct hash_entry *ndtbl[NAME_TABLE_HASH_SIZE];
struct hash_entry *sctbl[START_COND_HASH_SIZE];
struct hash_entry *ccltab[CCL_HASH_SIZE];
diff --git a/tblcmp.c b/tblcmp.c
index 320eec9..18d653f 100644
--- a/tblcmp.c
+++ b/tblcmp.c
@@ -1,24 +1,42 @@
/* tblcmp - table compression routines */
/*
- * Copyright (c) 1987, the University of California
+ * Copyright (c) 1989 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Vern Paxson.
*
* The United States Government has rights in this work pursuant to
* contract no. DE-AC03-76SF00098 between the United States Department of
* Energy and the University of California.
- *
- * This program may be redistributed. Enhancements and derivative works
- * may be created provided the new works, if made available to the general
- * public, are made available for use by anyone.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley. The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-#include "flexdef.h"
-
#ifndef lint
+
+static char copyright[] =
+ "@(#) Copyright (c) 1989 The Regents of the University of California.\n\
+ All rights reserved.\n";
+
static char rcsid[] =
"@(#) $Header$ (LBL)";
+
#endif
+#include "flexdef.h"
+
/* bldtbl - build table entries for dfa state
*
* synopsis
diff --git a/yylex.c b/yylex.c
index 9874c0e..357aa07 100644
--- a/yylex.c
+++ b/yylex.c
@@ -1,25 +1,43 @@
/* yylex - scanner front-end for flex */
/*
- * Copyright (c) 1987, the University of California
+ * Copyright (c) 1989 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Vern Paxson.
*
* The United States Government has rights in this work pursuant to
* contract no. DE-AC03-76SF00098 between the United States Department of
* Energy and the University of California.
- *
- * This program may be redistributed. Enhancements and derivative works
- * may be created provided the new works, if made available to the general
- * public, are made available for use by anyone.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley. The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-#include "flexdef.h"
-#include "parse.h"
-
#ifndef lint
+
+static char copyright[] =
+ "@(#) Copyright (c) 1989 The Regents of the University of California.\n\
+ All rights reserved.\n";
+
static char rcsid[] =
"@(#) $Header$ (LBL)";
+
#endif
+#include "flexdef.h"
+#include "parse.h"
+
/* yylex - scan for a regular expression token
*
* synopsis