1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
/*
* This source code is part of hsc, a html-preprocessor,
* Copyright (C) 1995-1998 Thomas Aglassinger
*
* 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 2 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., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
/*
* hsclib/include.h
*/
#ifndef HSCLIB_INCLUDE_H
#define HSCLIB_INCLUDE_H
/*
* flags for include_hsc_xxx()
*/
#define IH_PARSE_END (1<<0) /* check for unclosed tags & co at end */
#define IH_PARSE_PRE (1<<1) /* parse with replacing "><&" */
#define IH_PARSE_MACRO (1<<2) /* include macro */
#define IH_PARSE_HSC (1<<3) /* include text of a special
* hsc-command (eg $insert time) */
#define IH_PARSE_SOURCE (1<<4) /* include source (replace special chars) */
#define IH_NO_STATUS (1<<5) /* oppress status message */
#define IH_UPDATE_PRJ (1<<6) /* update project file */
#define IH_POS_PARENT (1<<7) /* use position of next file on stack
* for messages */
#define IH_IS_INCLUDE (1<<8) /* included vai <$include>
* (should be stored in project-file */
#define IH_IS_SOURCE (1<<9) /* this is the main source-file
* (should be stored in project-file */
#ifndef NOEXTERN_HSCLIB_INCLUDE_H
extern BOOL hsc_include_file(HSCPRC * hp, STRPTR filename, ULONG optn);
extern BOOL hsc_include_string(HSCPRC * hp, STRPTR filename, STRPTR s, ULONG optn);
extern BOOL hsc_base_include_file(HSCPRC * hp, STRPTR filename, ULONG optn, INFILEPOS * base_pos);
extern BOOL hsc_base_include_string(HSCPRC * hp, STRPTR filename, STRPTR s, ULONG optn, INFILEPOS * base_pos);
#endif /* NOEXTERN_HSCLIB_INCLUDE_H */
#endif /* HSCLIB_INCLUDE_H */
|