diff --git a/Changelogs.old b/Changelogs.old new file mode 100644 index 0000000000000000000000000000000000000000..67b828a7447423ccd18cf6fabf1e3dc456d82322 --- /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 0000000000000000000000000000000000000000..9cf601adbd215633fe18bdd9e02ed39ebbc8efb9 --- /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 6f547bb949a22efb3d41d9d812088461da9044e4..28afe25cdd4adaab1034d23790c727f602c2bd73 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 717f44f5c88aaa746ddb45cc5a828f2b9b4ea543..9c8ea0298c5b7369ee991d07f0d76122b9e8deed 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 ed91975c019d6f7c93003f9061acb0dc3defb043..e6975cade8f80c0f1bd49446ece0048eeac3a942 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 bbdb3a6db371a563e1f1c4986cd339efa81a8b04..d6324b30a19ae9a27458872de5297d2b8d6f4c1c 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 03d43445fea68fde851ffee830880a72b205fb8a..901071040703add0fde35a7e7efec5262aaee9e5 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 0fc5afb7598bd4da46f34ebe93108ae0d2b34d8c..0f10cc7c4a4b923d384c04410293c0cac9f12ffd 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 4e43d3f98ae2778e7dc08cce5553568b3f5d22e2..b3304d0a8b4e99b2e35675261c856a4b3ce40c14 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 4e81436d1dcc1842787ff7b8803502c679676491..63f030db6247bc7530170486d40b40793aa8da8e 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 23fde33a6596745b2645a77bc4b9ad6bbe37b1c1..e6c6fbfb2096b5b9fe1e10443fad7cb20b3c2cd5 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 fb5fa1926f9285d4486a23604e353069236ea7b8..d21acd26cebc54b55a36ef1e83bc4fd7ed34c97a 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 9b012b2aa7cc0e6af09c9cc53686ae825e6f5a72..69aa07c66a2e022816d25d9a06f7935f644da0b2 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 fd64cc8377a87ef5aa52679a9faff40e8e79b4b6..28b7dc151eb963fbad19a7cc8c0fd358b6cfa285 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 585d2946a845e3a850122e076a32971183fa6524..af5144a778b7f9c7f706e94a06073a65d2c5db79 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 41b94ce74cbdd1b91f1e2566ca1b9e027deedf16..266bd4a32f9761765cc5dc962d14b3274767f602 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 0d07a9c13d391ca92fc9819658bd5c7e5811670a..3f73e1c4069f0b3ba82aa7c7ebd3a6a948cf1091 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 f475c5d7f2a6a3566c5019c9aacf6839383b7f2a..df1fcee3b6392f3da149a73b8892b70998675bf2 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 d9f0958d667edd5f4a94c6959a8939d14d7f5f00..3fbc7b1d143cd21733d6847e778ade71ff086c31 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 145dd63a44c16f72fd9565c62ec73d6a6be7e6cd..0a37840f54e031689f942fe9a8e7463d7d5623f0 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 31239361a2aa6cca36ed9f0db08c9d1318b81def..790a816d179b4e973db0e85283eb0563b46a0817 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 64bb42e0059667a5b4e2d12f49fa192dabd64a23..ac160b90d981bbe4926a104139b2396ece7298b9 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 c0341c3289b47cb57d5d130adde70c34330eb9e9..a9815f448c9a5c18ffd04efb76dd119d87b3da3c 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 408103e1b082e77ea0b93e1e095f2b0063ca9915..15b909cdebf05c69c9cf5e2d8cfaf4552af34823 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 23860c5ace2f1aee41c88753db17f3ced6fa4a23..b9f511ae4fc7a1b79bfdd85d86d3a2ca406b0dc6 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 21330fccb161892033476913582c534482e800f4..0a22795faa6518b3885330d01472fdbed3c4edb8 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