3 * $Id: rxglue.h,v 1.1 2002/01/25 19:34:45 mdw Exp $
5 * REXX glue for C core functionality
7 * (c) 2001 Mark Wooding
10 /*----- Licensing notice --------------------------------------------------*
12 * This file is part of Jog: Programming for a jogging machine.
14 * Jog is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * Jog is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with Jog; if not, write to the Free Software Foundation,
26 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
36 /*----- Header files ------------------------------------------------------*/
44 /*----- Functions provided ------------------------------------------------*/
48 * Arguments: @const char *name@ = pointer to filename (or null)
49 * @const void *p@ = pointer to program text
50 * @size_t sz@ = size of program text
51 * @int ac@ = number of arguments
52 * @const char *const *av@ = vector of command-line arguments
54 * Returns: Exit code from program.
56 * Use: Runs a REXX script from memory.
59 extern int rx_run(const char */*name*/, const void */*p*/, size_t /*sz*/,
60 int /*ac*/, const char *const */*av*/);
62 /* --- @rx_runfile@ --- *
64 * Arguments: @const char *name@ = pointer to filename
65 * @int ac@ = number of command-line arguments
66 * @const char *const *av@ = vector of command-line arguments
68 * Returns: Exit code from program.
70 * Use: Runs a REXX script from a file, given its name.
73 extern int rx_runfile(const char */*name*/,
74 int /*ac*/, const char *const */*av*/);
76 /* --- @rx_init@ --- *
82 * Use: Initializes the REXX external functions.
85 extern void rx_init(void);
87 /*----- That's all, folks -------------------------------------------------*/