4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright (c) 2000 by Sun Microsystems, Inc.
24 * All rights reserved.
27 #pragma ident "%Z%%M% %I% %E% SMI"
30 #include <fcode/private.h>
31 #include <fcode/log.h>
35 static fcode_env_t
*envs
[4];
38 do_clone(fcode_env_t
*cenv
)
45 new = clone_environment(cenv
, NULL
);
52 system_message(cenv
, "clone failed");
56 do_switch(fcode_env_t
*cenv
)
63 } while ((env
== NULL
) && (!bail
));
64 log_message(MSG_INFO
, "Env: %x\n", env
);
68 do_release(fcode_env_t
*cenv
)
71 destroy_environment(envs
[envp
]);
77 } while ((env
== NULL
) && (!bail
));
85 fcode_env_t
*env
= initial_env
;
93 FORTH(0, "clone", do_clone
);
94 FORTH(0, "switch", do_switch
);
95 FORTH(0, "release", do_release
);