DyLP 1.10.4
Loading...
Searching...
No Matches
dy_cmdint.h
Go to the documentation of this file.
1/*
2 This file is a part of the Dylp LP distribution.
3
4 Copyright (C) 2005 -- 2007 Lou Hafer
5
6 School of Computing Science
7 Simon Fraser University
8 Burnaby, B.C., V5A 1S6, Canada
9 lou@cs.sfu.ca
10
11 This code is licensed under the terms of the Eclipse Public License (EPL).
12*/
13
14#ifndef _DY_CMDINT_H
15#define _DY_CMDINT_H
16
17/*
18 @(#)dy_cmdint.h 3.3 06/22/04
19 svn/cvs: $Id: dy_cmdint.h 407 2010-12-31 20:48:48Z lou $
20
21 Declarations specific to dylp's command interpreter.
22*/
23
24#include "dylib_std.h"
25#include "dylib_io.h"
26#include "dylib_errs.h"
27
28/*
29 We need dylp.h only for the typedefs of lpopts_struct and lptols_struct,
30 and extern declarations for dy_logchn and dy_gtxecho.
31*/
32#define DYLP_INTERNAL
33#include "dylp.h"
34
35/*
36 cmdint.c
37*/
38
39/*
40 Return codes for command execution routines called from the command
41 interpreter:
42
43 cmdOK execution of the command was adequately successful, further
44 command interpretation should continue.
45 cmdHALTNOERROR execution of the command was adequately successful, but break
46 out of the command interpretation loop.
47 cmdHALTERROR an error occurred during execution of the command, break
48 out of the command interpretation loop.
49
50 As return codes for process_cmds, the interpretation is slightly different:
51 cmdOK command interpretation was ended by an eof on the top level
52 command channel (this is the normal case when command execution
53 completes without error).
54 cmdHALTNOERROR some command returned a cmdHALTNOERROR return code.
55 cmdHALTERROR either a command returned a cmdHALTERROR return code, or a
56 fatal error occurred in process_cmds.
57*/
58
60
61cmd_retval dy_processcmds(ioid cmdchn, bool silent,
62 lpopts_struct *lpopts, lptols_struct *lptols) ;
63
64#endif /* _DY_CMDINT_H */
cmd_retval
Definition dy_cmdint.h:59
@ cmdHALTERROR
Definition dy_cmdint.h:59
@ cmdOK
Definition dy_cmdint.h:59
@ cmdHALTNOERROR
Definition dy_cmdint.h:59
cmd_retval dy_processcmds(ioid cmdchn, bool silent, lpopts_struct *lpopts, lptols_struct *lptols)
int ioid
Definition dylib_io.h:39