diff options
Diffstat (limited to 'misc/pascal/include/pas.h')
-rw-r--r-- | misc/pascal/include/pas.h | 114 |
1 files changed, 0 insertions, 114 deletions
diff --git a/misc/pascal/include/pas.h b/misc/pascal/include/pas.h deleted file mode 100644 index 5a4829948..000000000 --- a/misc/pascal/include/pas.h +++ /dev/null @@ -1,114 +0,0 @@ -/***************************************************************************
- * pas.h
- * External Declarations associated with pas.c
- *
- * Copyright (C) 2008 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * 3. Neither the name NuttX nor the names of its contributors may be
- * used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- ***************************************************************************/
-
-#ifndef __PAS_H
-#define __PAS_H
-
-/***************************************************************************
- * Compilation Switches
- ***************************************************************************/
-
-#define LSTTOFILE 1
-
-/***************************************************************************
- * Included Files
- ***************************************************************************/
-
-#include "pdefs.h"
-#include "pofflib.h"
-
-/***************************************************************************
- * Definitions
- ***************************************************************************/
-
-/* This is a helper macro just to make things pretty in the source code */
-
-#define FP0 (&fileState[0]) /* Main file description */
-#define FP (&fileState[includeIndex]) /* Current file description */
-#define FPP (&fileState[includeIndex-1]) /* Previous file description */
-#define IS_NESTED_UNIT ((includeIndex > 0) && (FP->kind == eIsUnit))
-
-/***************************************************************************
- * Global Types
- ***************************************************************************/
-
-/***************************************************************************
- * Global Variable
- ***************************************************************************/
-
-extern uint16 token; /* Current token */
-extern uint16 tknSubType; /* Extended token type */
-extern sint32 tknInt; /* Integer token value */
-extern float64 tknReal; /* Real token value */
-extern STYPE *tknPtr; /* Pointer to symbol token */
-extern FTYPE files[MAX_FILES+1]; /* File Table */
-extern fileState_t fileState[MAX_INCL]; /* State of all open files */
-
-/* sourceFileName : Source file name from command line
- * includePath[] : Pathes to search when including file
- */
-
-extern char *sourceFileName;
-extern char *includePath[MAX_INCPATHES];
-
-extern poffHandle_t poffHandle; /* Handle for POFF object */
-
-extern FILE *poffFile; /* POFF output file */
-extern FILE *errFile; /* Error file pointer */
-extern FILE *lstFile; /* List file pointer */
-
-extern WTYPE withRecord; /* RECORD of WITH statement */
-extern sint16 level; /* Static nesting level */
-extern sint16 includeIndex; /* Include file index */
-extern sint16 nIncPathes; /* Number pathes in includePath[] */
-extern uint16 label; /* Last label number */
-extern sint16 nsym; /* Number symbol table entries */
-extern sint16 nconst; /* Number constant table entries */
-extern sint16 sym_strt; /* Symbol search start index */
-extern sint16 const_strt; /* Constant search start index */
-extern sint16 err_count; /* Error counter */
-extern sint16 nfiles; /* Program file counter */
-extern sint32 warn_count; /* Warning counter */
-extern sint32 dstack; /* data stack size */
-
-/***************************************************************************
- * Global Function Prototypes
- ***************************************************************************/
-
-extern void openNestedFile (const char *fileName);
-extern void closeNestedFile (void);
-
-#endif /* __PAS_H */
|