/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 2000 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <string.h>
/*
* value_fetch and value_store are the same as "fetch" and "store", but
* we'll leave them implemented here for now.
*/
static void
{
}
static void
{
}
void *
{
int *ptr;
if (*ptr > 0)
}
void
{
}
void
{
}
void
{
fstack_t d;
}
void
{
if (!*d) { /* check if buffer not alloc'ed yet */
if (instance) {
int n, off;
n = TOKEN_ROUNDUP(d[1]);
} else {
}
}
}
void
{
token_t *d;
d = get_instance_address(env);
}
void
{
token_t *d;
do_buffer_data(env, d, 0);
}
void
{
}
(token_t)&internal_env_addr },
};
int
{
if ((p[0] & 1) == 0) {
" indirect\n", acf, p[0]);
return (1);
}
p = (token_t *)(p[0] & ~1);
return (1);
}
if (p[0] == (token_t)&do_default_action) {
fstack_t d;
return (0);
}
acf, p[0]);
return (1);
}
void
{
acf_t a;
}
void
{
}
void
{
env->action_count++;
}
void
{
int n;
token_t *d;
*d++ = (token_t)&do_default_action;
*d++ = n;
env->num_actions = n;
env->action_count = 0;
env->action_ptr = d;
d += n;
}
void
{
token_t p;
}
void
{
TODO; /* use-actions in compile state. */
} else {
}
}
void
{
int n;
acf_t a;
if (run_action(env, a, n)) {
}
}
void
{
int a;
a = 0;
while (n--) {
COMPILE_TOKEN(&array[a]);
a++;
}
}
/*
* This is for things like my-self which have meaning to the
* forth engine but I don't want to turn them into standard forth values
* that would make the 'C' variables hard to understand, instead these
* 'global' state variables will act directly upon the native 'C' structures.
*/
void
{
}
void
{
}
void
{
}
void
{
}
#if defined(DEBUG)
void
{
}
void
{
}
void
{
}
void
{
int i;
for (i = 0; i < NUM_DEFAULT_ACTIONS; i++) {
value_actions[i]);
}
}
#endif /* DEBUG */
static void
_init(void)
{
int i;
for (i = 0; i < NUM_DEFAULT_ACTIONS; i++) {
}
#if defined(DEBUG)
#endif /* DEBUG */
}