From 0f1217a2175537dda9de3675fc0eb938e2d7694d Mon Sep 17 00:00:00 2001 From: "ben.franksen" <ben.franksen@online.de> Date: Mon, 10 May 2010 15:29:05 +0000 Subject: [PATCH] added HZB copyright notice, moved changelogs from sources to separate file --- Changelogs.old | 111 +++++++++++++++++++++++++++++++++++++++++ Copyright.HZB | 25 ++++++++++ src/dev/devSequencer.c | 4 ++ src/seq/seqCom.h | 13 +++-- src/seq/seqPvt.h | 13 +++-- src/seq/seq_main.c | 6 +-- src/seq/seq_task.c | 9 ++-- src/snc/analysis.c | 11 ++++ src/snc/analysis.h | 11 ++++ src/snc/gen_code.c | 31 ++---------- src/snc/gen_code.h | 11 ++++ src/snc/gen_ss_code.c | 28 ++--------- src/snc/gen_ss_code.h | 11 ++++ src/snc/gen_tables.c | 27 ++-------- src/snc/gen_tables.h | 11 ++++ src/snc/lexer.h | 8 +++ src/snc/parse.c | 26 ++-------- src/snc/parse.h | 19 ++----- src/snc/snc_main.c | 23 ++------- src/snc/snc_main.h | 9 +++- src/snc/snl.lem | 7 +++ src/snc/snl.lt | 7 +++ src/snc/snl.re | 7 +++ src/snc/sym_table.c | 7 +++ src/snc/sym_table.h | 7 +++ src/snc/types.h | 11 ++++ 26 files changed, 310 insertions(+), 143 deletions(-) create mode 100644 Changelogs.old create mode 100644 Copyright.HZB diff --git a/Changelogs.old b/Changelogs.old new file mode 100644 index 00000000..67b828a7 --- /dev/null +++ b/Changelogs.old @@ -0,0 +1,111 @@ +src/snc/snc_main.c +------------------ +20nov91,ajk Removed call to init_snc(). +20nov91,ajk Removed some debug stuff. +28apr92,ajk Implemented new event flag mode. +29oct93,ajk Added 'v' (vxWorks include) option. +17may94,ajk Changed setlinebuf() to setvbuf(). +17may94,ajk Removed event flag option (-e). +17feb95,ajk Changed yyparse() to Global_yyparse(), because FLEX makes + yyparse() static. +02mar95,ajk Changed bcopy () to strcpy () in 2 places. +26jun95,ajk Due to popular demand, reinstated event flag (-e) option. +29apr99,wfl Avoided compilation warnings. +29apr99,wfl Removed unused vx_opt option. +06jul99,wfl Supported "+m" (main) option; minor cosmetic changes. + +src/snc/parse.h +--------------- +18nov91,ajk Replaced lstLib stuff with in-line links. +28oct93,ajk Added support for assigning array elements to pv's. +28oct93,ajk Added support for pointer declarations (see VC_*) +05nov93,ajk Changed structures var & db_chan to handle array assignments. +05nov93,ajk changed malloc() to calloc() 3 places. +20jul95,ajk Added unsigned types (V_U...). +08aug96,wfl Added syncQ variables to var struct. +01sep99,grw Added E_OPTION, E_ENTRY, E_EXIT. +07sep99,wfl Added E_DECL (for local variable declarations). + +src/snc/parse.c +--------------- +19nov91,ajk Replaced lstLib calls with built-in links. +20nov91,ajk Removed snc_init() - no longer did anything useful. +20nov91,ajk Added option_stmt() routine. +28apr92,ajk Implemented new event flag mode. +29opc93,ajk Implemented assignment of pv's to array elements. +29oct93,ajk Implemented variable class (VC_SIMPLE, VC_ARRAY, & VC_POINTER). +29oct93,ajk Added 'v' (vxWorks include) option. +17may94,ajk Removed old event flag (-e) option. +08aug96,wfl Added new syncq_stmt() routine. +29apr99,wfl Avoided compilation warnings; removed unused vx_opt option. +17may99,wfl Fixed crash in debug output. +06jul99,wfl Added "+m" (main) option. +07sep99,wfl Added E_DECL expression type (for local declarations). +22sep99,grw Supported entry and exit actions; supported state options. +06mar00,wfl Avoided NULL pointer crash when DEBUG is enabled. +31mar00,wfl Supported entry handler. + +src/snc/gen_tables.c +-------------------- +28apr92,ajk Implemented new event flag mode. +01mar94,ajk Implemented new interface to sequencer (see seqCom.h). +01mar94,ajk Implemented assignment of array elements to db channels. +17may94,ajk removed old event flag (-e) option. +25may95,ajk re-instated old event flag (-e) option. +20jul95,ajk Added unsigned types. +22jul96,ajk Added castS to action, event, delay, and exit functions. +08aug96,wfl Added emission of code for syncQ queues. +11mar98,wfl Corrected calculation of number of event words. +29apr99,wfl Avoided compilation warnings. +29apr99,wfl Removed unnecessary include files and unused vx_opt option. +06jul99,wfl Supported "+m" (main) option; minor cosmetic changes. +07sep99,wfl Set all event bits when array referenced in "when" test. +22sep99,grw Supported entry and exit actions; supported state options; + avoided warnings when no variables are mapped to channels. +18feb00,wfl Partial support for local declarations (not yet complete). +31mar00,wfl Supported entry handler. + +src/snc/gen_ss_code.c +--------------------- +19nov91,ajk Changed find_var() to findVar(). +28apr92,ajk Implemented efClear() & efTestAndClear(). +01mar94,ajk Changed table generation to the new structures defined $ + in seqCom.h. +09aug96,wfl Supported pvGetQ(). +13aug96,wfl Supported pvFreeQ(). +23jun97,wfl Avoided SEGV if variable or event flag was undeclared. +13jan98,wfl Fixed handling of compound expressions, using E_COMMA. +29apr99,wfl Avoided compilation warnings. +29apr99,wfl Removed unnecessary include files. +06jul99,wfl Cosmetic changes to improve look of generated C code +07sep99,wfl Added support for local declarations (not yet complete); + Added support for "pvName", "pvMessage" and pvPutComplete"; + Supported "pv" functions with array length and optional parms; + Added sequencer variable name to generated seq_pv*() calls +22sep99,grw Supported entry and exit actions +18feb00,wfl More partial support for local declarations (still not done) +31mar00,wfl Put 'when' code in a block (allows local declarations); + supported entry handler + +src/snc/gen_code.c +------------------ +19nov91,ajk Replaced lstLib calls with built-in linked list. +19nov91,ajk Removed extraneous "static" from "UserVar" declaration. +01mar94,ajk Implemented new interface to sequencer (seqCom.h). +01mar94,ajk Implemented assignment of array elements to db channels. +01mar94,ajk Changed algorithm for assigning event bits. +20jul95,ajk Added unsigned types. +11aug96,wfl Supported syncQ queues. +13jan98,wfl Supported E_COMMA token (for compound expressions). +01oct98,wfl Supported setting initial value on declaration. +29apr99,wfl Avoided compilation warnings; removed unused include files. +17may99,wfl Added main program under UNIX. +06jul99,wfl Changed to use "+m" (main) option; minor cosmetic changes. +07sep99,wfl Added ASYNC/SYNC defns in generated output; + Supported E_DECL (for local declarations). +22sep99,grw Supported entry and exit actions. +18feb00,wfl More partial support for local declarations (still not done). +29feb00,wfl Added errlogInit() and taskwdInit() to Unix main program. +06mar00,wfl Added threadInit() to main program; removed ASYNC/SYNC #defines. +17mar00,wfl Added necessary includes for C main program. +31mar00,wfl Supported entry handler. diff --git a/Copyright.HZB b/Copyright.HZB new file mode 100644 index 00000000..9cf601ad --- /dev/null +++ b/Copyright.HZB @@ -0,0 +1,25 @@ +This software is copyrighted by the HELMHOLTZ-ZENTRUM BERLIN FUER +MATERIALIEN UND ENERGIE G.M.B.H., BERLIN, GERMANY (HZB). +The following terms apply to all files associated with the +software. + +HZB hereby grants permission to use, copy, and modify this +software and its documentation for non-commercial educational or +research purposes, provided that existing copyright notices are +retained in all copies. + +The receiver of the software provides HZB with all enhancements, +including complete translations, made by the receiver. + +IN NO EVENT SHALL HZB BE LIABLE TO ANY PARTY FOR DIRECT, +INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY +DERIVATIVES THEREOF, EVEN IF HZB HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + +HZB SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR +A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE IS +PROVIDED ON AN "AS IS" BASIS, AND HZB HAS NO OBLIGATION TO +PROVIDE MAlNTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR +MODIFICATIONS. diff --git a/src/dev/devSequencer.c b/src/dev/devSequencer.c index 6f547bb9..28afe25c 100644 --- a/src/dev/devSequencer.c +++ b/src/dev/devSequencer.c @@ -1,3 +1,7 @@ +/* Copyright, 2010, Helmholtz-Zentrum Berlin f. Materialien + und Energie GmbH, Germany (HZB) + (see file Copyright.HZB included in this distribution) +*/ /* Device support to permit database access to sequencer internals * * This is experimental only. Note the following: diff --git a/src/seq/seqCom.h b/src/seq/seqCom.h index 717f44f5..9c8ea029 100644 --- a/src/seq/seqCom.h +++ b/src/seq/seqCom.h @@ -1,8 +1,11 @@ -/* * base/include seqCom.h,v 1.3 1995/10/10 01:25:08 wright Exp - * - * DESCRIPTION: Common defs for state programs and run-time sequencer. - * - * Author: Andy Kozubal +/************************************************************************** + Copyright, 2010, Helmholtz-Zentrum Berlin f. Materialien + und Energie GmbH, Germany (HZB) + (see file Copyright.HZB included in this distribution) +*************************************************************************** + Common defs for state programs and run-time sequencer +***************************************************************************/ +/* Author: Andy Kozubal * Date: 01mar94 * * Experimental Physics and Industrial Control System (EPICS) diff --git a/src/seq/seqPvt.h b/src/seq/seqPvt.h index ed91975c..e6975cad 100644 --- a/src/seq/seqPvt.h +++ b/src/seq/seqPvt.h @@ -1,8 +1,11 @@ -/*seqPvt.h - * - * DESCRIPTION: Definitions for the run-time sequencer. - * - * Author: Andy Kozubal +/************************************************************************** + Copyright, 2010, Helmholtz-Zentrum Berlin f. Materialien + und Energie GmbH, Germany (HZB) + (see file Copyright.HZB included in this distribution) +*************************************************************************** + Definitions for the run-time sequencer +***************************************************************************/ +/* Author: Andy Kozubal * Date: * * Experimental Physics and Industrial Control System (EPICS) diff --git a/src/seq/seq_main.c b/src/seq/seq_main.c index bbdb3a6d..d6324b30 100644 --- a/src/seq/seq_main.c +++ b/src/seq/seq_main.c @@ -4,15 +4,15 @@ and the University of Chicago. Los Alamos National Laboratory - seq_main.c,v 1.2 1995/06/27 15:25:58 wright Exp + Copyright, 2010, Helmholtz-Zentrum Berlin f. Materialien + und Energie GmbH, Germany (HZB) + (see file Copyright.HZB included in this distribution) DESCRIPTION: Seq() initiates a sequence as a group of cooperating tasks. An optional string parameter specifies the values for macros. The PV context and auxiliary thread are shared by all state programs. - ENVIRONMENT: VxWorks - HISTORY: 23apr91,ajk Fixed problem with state program invoking the sequencer. 01jul91,ajk Added ANSI functional prototypes. diff --git a/src/seq/seq_task.c b/src/seq/seq_task.c index 03d43445..90107104 100644 --- a/src/seq/seq_task.c +++ b/src/seq/seq_task.c @@ -4,12 +4,13 @@ The Regents of the University of California and the University of Chicago. Los Alamos National Laboratory - seq_task.c,v 1.3 1995/10/19 16:30:18 wright Exp - DESCRIPTION: Seq_task.c: Thread creation and control for sequencer - state-sets. + Copyright, 2010, Helmholtz-Zentrum Berlin f. Materialien + und Energie GmbH, Germany (HZB) + (see file Copyright.HZB included in this distribution) + + DESCRIPTION: Thread creation and control for sequencer state-sets. - ENVIRONMENT: VxWorks HISTORY: 04dec91,ajk Implemented linked list of state programs, eliminating task diff --git a/src/snc/analysis.c b/src/snc/analysis.c index 0fc5afb7..0f10cc7c 100644 --- a/src/snc/analysis.c +++ b/src/snc/analysis.c @@ -1,3 +1,14 @@ +/************************************************************************** + GTA PROJECT AT division + Copyright, 1990, The Regents of the University of California. + Los Alamos National Laboratory + + Copyright, 2010, Helmholtz-Zentrum Berlin f. Materialien + und Energie GmbH, Germany (HZB) + (see file Copyright.HZB included in this distribution) +*************************************************************************** + Analysis of parse tree +***************************************************************************/ #include <stdlib.h> #include <string.h> #include <limits.h> diff --git a/src/snc/analysis.h b/src/snc/analysis.h index 4e43d3f9..b3304d0a 100644 --- a/src/snc/analysis.h +++ b/src/snc/analysis.h @@ -1,3 +1,14 @@ +/************************************************************************** + GTA PROJECT AT division + Copyright, 1990, The Regents of the University of California. + Los Alamos National Laboratory + + Copyright, 2010, Helmholtz-Zentrum Berlin f. Materialien + und Energie GmbH, Germany (HZB) + (see file Copyright.HZB included in this distribution) +*************************************************************************** + Analysis of parse tree +***************************************************************************/ #ifndef INCLanalysish #define INCLanalysish diff --git a/src/snc/gen_code.c b/src/snc/gen_code.c index 4e81436d..63f030db 100644 --- a/src/snc/gen_code.c +++ b/src/snc/gen_code.c @@ -3,33 +3,12 @@ Copyright, 1990, The Regents of the University of California. Los Alamos National Laboratory - DESCRIPTION: Phase 2 code generation routines for SNC. - Produces code and tables in C output file. - See also: gen_ss_code.c and gen_tables.c - ENVIRONMENT: UNIX - HISTORY: -19nov91,ajk Replaced lstLib calls with built-in linked list. -19nov91,ajk Removed extraneous "static" from "UserVar" declaration. -01mar94,ajk Implemented new interface to sequencer (seqCom.h). -01mar94,ajk Implemented assignment of array elements to db channels. -01mar94,ajk Changed algorithm for assigning event bits. -20jul95,ajk Added unsigned types. -11aug96,wfl Supported syncQ queues. -13jan98,wfl Supported E_COMMA token (for compound expressions). -01oct98,wfl Supported setting initial value on declaration. -29apr99,wfl Avoided compilation warnings; removed unused include files. -17may99,wfl Added main program under UNIX. -06jul99,wfl Changed to use "+m" (main) option; minor cosmetic changes. -07sep99,wfl Added ASYNC/SYNC defns in generated output; - Supported E_DECL (for local declarations). -22sep99,grw Supported entry and exit actions. -18feb00,wfl More partial support for local declarations (still not done). -29feb00,wfl Added errlogInit() and taskwdInit() to Unix main program. -06mar00,wfl Added threadInit() to main program; removed ASYNC/SYNC #defines. -17mar00,wfl Added necessary includes for C main program. -31mar00,wfl Supported entry handler. + Copyright, 2010, Helmholtz-Zentrum Berlin f. Materialien + und Energie GmbH, Germany (HZB) + (see file Copyright.HZB included in this distribution) +*************************************************************************** + Code generation ***************************************************************************/ - #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/src/snc/gen_code.h b/src/snc/gen_code.h index 23fde33a..e6c6fbfb 100644 --- a/src/snc/gen_code.h +++ b/src/snc/gen_code.h @@ -1,3 +1,14 @@ +/************************************************************************** + GTA PROJECT AT division + Copyright, 1990, The Regents of the University of California. + Los Alamos National Laboratory + + Copyright, 2010, Helmholtz-Zentrum Berlin für Materialien + und Energie GmbH, Berlin, Germany (HZB) + (see file Copyright.HZB included in this distribution) +*************************************************************************** + Code generation +***************************************************************************/ #ifndef INCLgencodeh #define INCLgencodeh diff --git a/src/snc/gen_ss_code.c b/src/snc/gen_ss_code.c index fb5fa192..d21acd26 100644 --- a/src/snc/gen_ss_code.c +++ b/src/snc/gen_ss_code.c @@ -3,29 +3,11 @@ Copyright, 1990, The Regents of the University of California. Los Alamos National Laboratory - DESCRIPTION: gen_ss_code.c -- routines to generate state set code - - ENVIRONMENT: UNIX - HISTORY: -19nov91,ajk Changed find_var() to findVar(). -28apr92,ajk Implemented efClear() & efTestAndClear(). -01mar94,ajk Changed table generation to the new structures defined - in seqCom.h. -09aug96,wfl Supported pvGetQ(). -13aug96,wfl Supported pvFreeQ(). -23jun97,wfl Avoided SEGV if variable or event flag was undeclared. -13jan98,wfl Fixed handling of compound expressions, using E_COMMA. -29apr99,wfl Avoided compilation warnings. -29apr99,wfl Removed unnecessary include files. -06jul99,wfl Cosmetic changes to improve look of generated C code -07sep99,wfl Added support for local declarations (not yet complete); - Added support for "pvName", "pvMessage" and pvPutComplete"; - Supported "pv" functions with array length and optional parms; - Added sequencer variable name to generated seq_pv*() calls -22sep99,grw Supported entry and exit actions -18feb00,wfl More partial support for local declarations (still not done) -31mar00,wfl Put 'when' code in a block (allows local declarations); - supported entry handler + Copyright, 2010, Helmholtz-Zentrum Berlin f. Materialien + und Energie GmbH, Germany (HZB) + (see file Copyright.HZB included in this distribution) +*************************************************************************** + State set code generation ***************************************************************************/ #include <stdio.h> #include <string.h> diff --git a/src/snc/gen_ss_code.h b/src/snc/gen_ss_code.h index 9b012b2a..69aa07c6 100644 --- a/src/snc/gen_ss_code.h +++ b/src/snc/gen_ss_code.h @@ -1,3 +1,14 @@ +/************************************************************************** + GTA PROJECT AT division + Copyright, 1990, The Regents of the University of California. + Los Alamos National Laboratory + + Copyright, 2010, Helmholtz-Zentrum Berlin f. Materialien + und Energie GmbH, Germany (HZB) + (see file Copyright.HZB included in this distribution) +*************************************************************************** + State set code generation +***************************************************************************/ #ifndef INCLgensscodeh #define INCLgensscodeh diff --git a/src/snc/gen_tables.c b/src/snc/gen_tables.c index fd64cc83..28b7dc15 100644 --- a/src/snc/gen_tables.c +++ b/src/snc/gen_tables.c @@ -3,29 +3,12 @@ Copyright, 1990, The Regents of the University of California. Los Alamos National Laboratory - DESCRIPTION: Generate tables for run-time sequencer. - - ENVIRONMENT: UNIX - HISTORY: -28apr92,ajk Implemented new event flag mode. -01mar94,ajk Implemented new interface to sequencer (see seqCom.h). -01mar94,ajk Implemented assignment of array elements to db channels. -17may94,ajk removed old event flag (-e) option. -25may95,ajk re-instated old event flag (-e) option. -20jul95,ajk Added unsigned types. -22jul96,ajk Added castS to action, event, delay, and exit functions. -08aug96,wfl Added emission of code for syncQ queues. -11mar98,wfl Corrected calculation of number of event words. -29apr99,wfl Avoided compilation warnings. -29apr99,wfl Removed unnecessary include files and unused vx_opt option. -06jul99,wfl Supported "+m" (main) option; minor cosmetic changes. -07sep99,wfl Set all event bits when array referenced in "when" test. -22sep99,grw Supported entry and exit actions; supported state options; - avoided warnings when no variables are mapped to channels. -18feb00,wfl Partial support for local declarations (not yet complete). -31mar00,wfl Supported entry handler. + Copyright, 2010, Helmholtz-Zentrum Berlin f. Materialien + und Energie GmbH, Germany (HZB) + (see file Copyright.HZB included in this distribution) +*************************************************************************** + Generate tables for runtime sequencer ***************************************************************************/ - #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/src/snc/gen_tables.h b/src/snc/gen_tables.h index 585d2946..af5144a7 100644 --- a/src/snc/gen_tables.h +++ b/src/snc/gen_tables.h @@ -1,3 +1,14 @@ +/************************************************************************** + GTA PROJECT AT division + Copyright, 1990, The Regents of the University of California. + Los Alamos National Laboratory + + Copyright, 2010, Helmholtz-Zentrum Berlin f. Materialien + und Energie GmbH, Germany (HZB) + (see file Copyright.HZB included in this distribution) +*************************************************************************** + Generate tables for runtime sequencer +***************************************************************************/ #ifndef INCLgentablesh #define INCLgentablesh diff --git a/src/snc/lexer.h b/src/snc/lexer.h index 41b94ce7..266bd4a3 100644 --- a/src/snc/lexer.h +++ b/src/snc/lexer.h @@ -1,3 +1,11 @@ +/************************************************************************** + Copyright, 2010, Helmholtz-Zentrum Berlin f. Materialien + und Energie GmbH, Germany (HZB) + (see file Copyright.HZB included in this distribution) +*************************************************************************** + Interface to lemon generated parser + TODO: should rename this file +***************************************************************************/ #ifndef INCLlexerh #define INCLlexerh diff --git a/src/snc/parse.c b/src/snc/parse.c index 0d07a9c1..3f73e1c4 100644 --- a/src/snc/parse.c +++ b/src/snc/parse.c @@ -3,28 +3,12 @@ Copyright, 1990, The Regents of the University of California. Los Alamos National Laboratory - DESCRIPTION: Parsing support routines for state notation compiler. - - ENVIRONMENT: UNIX - HISTORY: -19nov91,ajk Replaced lstLib calls with built-in links. -20nov91,ajk Removed snc_init() - no longer did anything useful. -20nov91,ajk Added option_stmt() routine. -28apr92,ajk Implemented new event flag mode. -29opc93,ajk Implemented assignment of pv's to array elements. -29oct93,ajk Implemented variable class (VC_SIMPLE, VC_ARRAY, & VC_POINTER). -29oct93,ajk Added 'v' (vxWorks include) option. -17may94,ajk Removed old event flag (-e) option. -08aug96,wfl Added new syncq_stmt() routine. -29apr99,wfl Avoided compilation warnings; removed unused vx_opt option. -17may99,wfl Fixed crash in debug output. -06jul99,wfl Added "+m" (main) option. -07sep99,wfl Added E_DECL expression type (for local declarations). -22sep99,grw Supported entry and exit actions; supported state options. -06mar00,wfl Avoided NULL pointer crash when DEBUG is enabled. -31mar00,wfl Supported entry handler. + Copyright, 2010, Helmholtz-Zentrum Berlin f. Materialien + und Energie GmbH, Germany (HZB) + (see file Copyright.HZB included in this distribution) +*************************************************************************** + Parser support routines ***************************************************************************/ - #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/src/snc/parse.h b/src/snc/parse.h index f475c5d7..df1fcee3 100644 --- a/src/snc/parse.h +++ b/src/snc/parse.h @@ -3,21 +3,12 @@ Copyright, 1989-93, The Regents of the University of California. Los Alamos National Laboratory - DESCRIPTION: Structures for parsing the state notation language. - - ENVIRONMENT: UNIX - HISTORY: -18nov91,ajk Replaced lstLib stuff with in-line links. -28oct93,ajk Added support for assigning array elements to pv's. -28oct93,ajk Added support for pointer declarations (see VC_*) -05nov93,ajk Changed structures var & db_chan to handle array assignments. -05nov93,ajk changed malloc() to calloc() 3 places. -20jul95,ajk Added unsigned types (V_U...). -08aug96,wfl Added syncQ variables to var struct. -01sep99,grw Added E_OPTION, E_ENTRY, E_EXIT. -07sep99,wfl Added E_DECL (for local variable declarations). + Copyright, 2010, Helmholtz-Zentrum Berlin f. Materialien + und Energie GmbH, Germany (HZB) + (see file Copyright.HZB included in this distribution) +*************************************************************************** + Parser support routines ***************************************************************************/ - #ifndef INCLparseh #define INCLparseh diff --git a/src/snc/snc_main.c b/src/snc/snc_main.c index d9f0958d..3fbc7b1d 100644 --- a/src/snc/snc_main.c +++ b/src/snc/snc_main.c @@ -3,24 +3,11 @@ Copyright, 1990, The Regents of the University of California. Los Alamos National Laboratory - DESCRIPTION: Main program and miscellaneous routines for - State Notation Compiler. - - ENVIRONMENT: UNIX - HISTORY: -20nov91,ajk Removed call to init_snc(). -20nov91,ajk Removed some debug stuff. -28apr92,ajk Implemented new event flag mode. -29oct93,ajk Added 'v' (vxWorks include) option. -17may94,ajk Changed setlinebuf() to setvbuf(). -17may94,ajk Removed event flag option (-e). -17feb95,ajk Changed yyparse() to Global_yyparse(), because FLEX makes - yyparse() static. -02mar95,ajk Changed bcopy () to strcpy () in 2 places. -26jun95,ajk Due to popular demand, reinstated event flag (-e) option. -29apr99,wfl Avoided compilation warnings. -29apr99,wfl Removed unused vx_opt option. -06jul99,wfl Supported "+m" (main) option; minor cosmetic changes. + Copyright, 2010, Helmholtz-Zentrum Berlin f. Materialien + und Energie GmbH, Germany (HZB) + (see file Copyright.HZB included in this distribution) +*************************************************************************** + Main program, reporting and printing procedures ***************************************************************************/ #include <stdio.h> #include <stdlib.h> diff --git a/src/snc/snc_main.h b/src/snc/snc_main.h index 145dd63a..0a37840f 100644 --- a/src/snc/snc_main.h +++ b/src/snc/snc_main.h @@ -1,8 +1,13 @@ +/************************************************************************** + Copyright, 2010, Helmholtz-Zentrum Berlin f. Materialien + und Energie GmbH, Germany (HZB) + (see file Copyright.HZB included in this distribution) +*************************************************************************** + Various reporting and printing procedures +***************************************************************************/ #ifndef INCLsncmainh #define INCLsncmainh -/* Export various reporting and printing procedures. */ - /* append '# <line_num> "<src_file>"\n' to output (if not disabled by cmd-line option) */ void gen_line_marker_prim(int line_num, char *src_file); diff --git a/src/snc/snl.lem b/src/snc/snl.lem index 31239361..790a816d 100644 --- a/src/snc/snl.lem +++ b/src/snc/snl.lem @@ -1,3 +1,10 @@ +/************************************************************************** + Copyright, 2010, Helmholtz-Zentrum Berlin f. Materialien + und Energie GmbH, Germany (HZB) + (see file Copyright.HZB included in this distribution) +*************************************************************************** + Parser specification/implementation +***************************************************************************/ %include { #include <stdlib.h> #include <string.h> diff --git a/src/snc/snl.lt b/src/snc/snl.lt index 64bb42e0..ac160b90 100644 --- a/src/snc/snl.lt +++ b/src/snc/snl.lt @@ -1,3 +1,10 @@ +/************************************************************************** + Copyright, 2010, Helmholtz-Zentrum Berlin f. Materialien + und Energie GmbH, Germany (HZB) + (see file Copyright.HZB included in this distribution) +*************************************************************************** + Lemon parser template +***************************************************************************/ /* Driver template for the LEMON parser generator. ** The author disclaims copyright to this source code. */ diff --git a/src/snc/snl.re b/src/snc/snl.re index c0341c32..a9815f44 100644 --- a/src/snc/snl.re +++ b/src/snc/snl.re @@ -1,3 +1,10 @@ +/************************************************************************** + Copyright, 2010, Helmholtz-Zentrum Berlin f. Materialien + und Energie GmbH, Germany (HZB) + (see file Copyright.HZB included in this distribution) +*************************************************************************** + Lexer specification/implementation +***************************************************************************/ #include <stdlib.h> #include <stdio.h> #include <string.h> diff --git a/src/snc/sym_table.c b/src/snc/sym_table.c index 408103e1..15b909cd 100644 --- a/src/snc/sym_table.c +++ b/src/snc/sym_table.c @@ -1,3 +1,10 @@ +/************************************************************************** + Copyright, 2010, Helmholtz-Zentrum Berlin f. Materialien + und Energie GmbH, Germany (HZB) + (see file Copyright.HZB included in this distribution) +*************************************************************************** + Symbol table +***************************************************************************/ #include <stdio.h> /* gpHash.h mentions FILE but does not include stdio */ #include <gpHash.h> #include <assert.h> diff --git a/src/snc/sym_table.h b/src/snc/sym_table.h index 23860c5a..b9f511ae 100644 --- a/src/snc/sym_table.h +++ b/src/snc/sym_table.h @@ -1,3 +1,10 @@ +/************************************************************************** + Copyright, 2010, Helmholtz-Zentrum Berlin f. Materialien + und Energie GmbH, Germany (HZB) + (see file Copyright.HZB included in this distribution) +*************************************************************************** + Symbol table +***************************************************************************/ #ifndef INCLsymtableh #define INCLsymtableh diff --git a/src/snc/types.h b/src/snc/types.h index 21330fcc..0a22795f 100644 --- a/src/snc/types.h +++ b/src/snc/types.h @@ -1,3 +1,14 @@ +/************************************************************************** + GTA PROJECT AT division + Copyright, 1989-93, The Regents of the University of California. + Los Alamos National Laboratory + + Copyright, 2010, Helmholtz-Zentrum Berlin f. Materialien + und Energie GmbH, Germany (HZB) + (see file Copyright.HZB included in this distribution) +*************************************************************************** + Common types, enumerations, and macros +***************************************************************************/ #ifndef INCLtypesh #define INCLtypesh -- GitLab