brintos

brintos / linux-shallow public Read only

0
0
Text · 3.1 KiB · 716a2ae Raw
92 lines · c
1/*2 * Assembler for the sequencer program downloaded to Aic7xxx SCSI host adapters3 *4 * Copyright (c) 1997 Justin T. Gibbs.5 * Copyright (c) 2001, 2002 Adaptec Inc.6 * All rights reserved.7 *8 * Redistribution and use in source and binary forms, with or without9 * modification, are permitted provided that the following conditions10 * are met:11 * 1. Redistributions of source code must retain the above copyright12 *    notice, this list of conditions, and the following disclaimer,13 *    without modification.14 * 2. Redistributions in binary form must reproduce at minimum a disclaimer15 *    substantially similar to the "NO WARRANTY" disclaimer below16 *    ("Disclaimer") and any redistribution must be conditioned upon17 *    including a substantially similar Disclaimer requirement for further18 *    binary redistribution.19 * 3. Neither the names of the above-listed copyright holders nor the names20 *    of any contributors may be used to endorse or promote products derived21 *    from this software without specific prior written permission.22 *23 * Alternatively, this software may be distributed under the terms of the24 * GNU General Public License ("GPL") version 2 as published by the Free25 * Software Foundation.26 *27 * NO WARRANTY28 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS29 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT30 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR31 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT32 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,36 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING37 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE38 * POSSIBILITY OF SUCH DAMAGES.39 *40 * $Id: //depot/aic7xxx/aic7xxx/aicasm/aicasm.h#14 $41 *42 * $FreeBSD$43 */44 45#include "../queue.h"46 47#ifndef TRUE48#define TRUE 149#endif50 51#ifndef FALSE52#define FALSE 053#endif54 55typedef struct path_entry {56	char	*directory;57	int	quoted_includes_only;58	SLIST_ENTRY(path_entry) links;59} *path_entry_t;60 61typedef enum {  62	QUOTED_INCLUDE,63	BRACKETED_INCLUDE,64	SOURCE_FILE65} include_type;66 67SLIST_HEAD(path_list, path_entry);68 69extern struct path_list search_path;70extern struct cs_tailq cs_tailq;71extern struct scope_list scope_stack;72extern struct symlist patch_functions;73extern int includes_search_curdir;		/* False if we've seen -I- */74extern char *appname;75extern char *stock_include_file;76extern int yylineno;77extern char *yyfilename;78extern char *prefix;79extern char *patch_arg_list;80extern char *versions;81extern int   src_mode;82extern int   dst_mode;83struct symbol;84 85void stop(const char *errstring, int err_code);86void include_file(char *file_name, include_type type);87void expand_macro(struct symbol *macro_symbol);88struct instruction *seq_alloc(void);89struct critical_section *cs_alloc(void);90struct scope *scope_alloc(void);91void process_scope(struct scope *);92