File: pf_core.h

package info (click to toggle)
pforth 21-11
  • links: PTS
  • area: main
  • in suites: lenny, squeeze, wheezy
  • size: 820 kB
  • ctags: 873
  • sloc: ansic: 5,050; makefile: 102
file content (51 lines) | stat: -rw-r--r-- 1,618 bytes parent folder | download | duplicates (5)
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
/* @(#) pf_core.h 98/01/26 1.3 */
#ifndef _pf_core_h
#define _pf_core_h

/***************************************************************
** Include file for PForth 'C' Glue support
**
** Author: Phil Burk
** Copyright 1994 3DO, Phil Burk, Larry Polansky, Devid Rosenboom
**
** The pForth software code is dedicated to the public domain,
** and any third party may reproduce, distribute and modify
** the pForth software code or any derivative works thereof
** without any compensation or license.  The pForth software
** code is provided on an "as is" basis without any warranty
** of any kind, including, without limitation, the implied
** warranties of merchantability and fitness for a particular
** purpose and their equivalents under the laws of any jurisdiction.
**
***************************************************************/

#ifdef __cplusplus
extern "C" {
#endif

/* Main entry point fo pForth. */
int32  pfDoForth( const char *DicName, const char *SourceName, int32 IfInit );

void   pfInitGlobals( void );
cfTaskData *pfCreateTask( int32 UserStackDepth, int32 ReturnStackDepth );
void   pfDeleteTask( cfTaskData *cftd );
void   pfSetCurrentTask( cfTaskData *cftd );

cfDictionary *pfCreateDictionary( uint32 HeaderSize, uint32 CodeSize );
void   pfDeleteDictionary( cfDictionary *dic );

void   pfSetQuiet( int32 IfQuiet );
int32  pfQueryQuiet( void );
int32  pfRunForth( void );
int32  pfIncludeFile( const char *FileName );
void   pfMessage( const char *CString );
void   pfExecByName( const char *CString );

void   ResetForthTask( void );

#ifdef __cplusplus
}   
#endif


#endif /* _pf_core_h */