summaryrefslogtreecommitdiff
path: root/support/vvcode/vveparse.h
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/vvcode/vveparse.h
Initial commit
Diffstat (limited to 'support/vvcode/vveparse.h')
-rw-r--r--support/vvcode/vveparse.h109
1 files changed, 109 insertions, 0 deletions
diff --git a/support/vvcode/vveparse.h b/support/vvcode/vveparse.h
new file mode 100644
index 0000000000..eb569d6c59
--- /dev/null
+++ b/support/vvcode/vveparse.h
@@ -0,0 +1,109 @@
+/*-
+******************************************************************************
+******************************************************************************
+**
+** ARCHIVE HEADER INFORMATION
+**
+** @C-file{
+** FILENAME = "vveparse.h",
+** VERSION = "1.00",
+** DATE = "",
+** TIME = "",
+**
+** AUTHOR = "Niel Kempson",
+** ADDRESS = "25 Whitethorn Drive, Cheltenham, GL52 5LL, England",
+** TELEPHONE = "+44-242 579105",
+** EMAIL = "kempson@tex.ac.uk (Internet)",
+**
+** SUPPORTED = "yes",
+** ARCHIVED = "tex.ac.uk, ftp.tex.ac.uk",
+** KEYWORDS = "VVcode",
+**
+** CODETABLE = "ISO/ASCII",
+** CHECKSUM = "51492 1481 5732 57976",
+**
+** DOCSTRING = { This file is part of VVcode.
+** }
+** }
+**
+** MODULE CONTENTS
+**
+** chk_skipfrom [tbs]
+** getv_characterset -
+** getv_decodeversion -
+** getv_format -
+** getv_mode -
+** getv_operatingsystem -
+** getv_reclen -
+** getv_timestamp -
+** parse_begin_header -
+** rd_next_line -
+**
+** COPYRIGHT
+**
+** Copyright (c) 1991-1993 by Niel Kempson <kempson@tex.ac.uk>
+**
+** 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**
+** In other words, you are welcome to use, share and improve this
+** program. You are forbidden to forbid anyone else to use, share
+** and improve what you give them. Help stamp out software-hoarding!
+**
+** CHANGE LOG
+**
+******************************************************************************
+******************************************************************************
+*/
+
+
+/*
+**----------------------------------------------------------------------------
+** Forward declarations of functions in the file 'vveparse.c'
+**----------------------------------------------------------------------------
+*/
+Boolean chk_skipfrom ARGS ((CONST char *line_ptr,
+ CONST Int16 part_needed,
+ CONST char *hdrf_spec,
+ CONST Header_Struct *skipfrom_hdr,
+ File_Info *ip_file));
+void getv_characterset ARGS ((
+ CONST Header_Struct *characterset_hdr,
+ char **character_set));
+void getv_decodeversion ARGS ((
+ CONST Header_Struct *decodeversion_hdr,
+ Int16 *decode_version));
+void getv_format ARGS ((CONST Header_Struct *format_hdr,
+ CONST char *format_str_array[],
+ File_Info *vve_file));
+void getv_mode ARGS ((CONST Header_Struct *mode_hdr,
+ CONST char *format_str_array[],
+ File_Info *vve_file));
+void getv_operatingsystem ARGS ((
+ CONST Header_Struct *operatingsystem_hdr,
+ char **operating_system));
+void getv_reclen ARGS ((CONST Header_Struct *reclen_hdr,
+ File_Info *vve_file));
+void getv_timestamp ARGS ((CONST Header_Struct *timestamp_hdr,
+ File_Info *vve_file));
+void parse_begin_header ARGS ((CONST char *line_ptr,
+ CONST File_Info *ip_file,
+ CONST Int16 decoding_type,
+ Header_Struct *hdr_struct,
+ char **hdr_file_spec));
+char *rd_next_line ARGS ((CONST Int32 max_chars,
+ CONST char *vve_line_prefix,
+ char *buffer,
+ File_Info *ip_file,
+ Int32 *byte_count));