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.
29 /*----- Revision history --------------------------------------------------*
32 * Revision 1.1 2002/01/25 19:34:45 mdw
44 /*----- Header files ------------------------------------------------------*/
52 /*----- Functions provided ------------------------------------------------*/
56 * Arguments: @const char *name@ = pointer to filename (or null)
57 * @const void *p@ = pointer to program text
58 * @size_t sz@ = size of program text
59 * @int ac@ = number of arguments
60 * @const char *const *av@ = vector of command-line arguments
62 * Returns: Exit code from program.
64 * Use: Runs a REXX script from memory.
67 extern int rx_run(const char */*name*/, const void */*p*/, size_t /*sz*/,
68 int /*ac*/, const char *const */*av*/);
70 /* --- @rx_runfile@ --- *
72 * Arguments: @const char *name@ = pointer to filename
73 * @int ac@ = number of command-line arguments
74 * @const char *const *av@ = vector of command-line arguments
76 * Returns: Exit code from program.
78 * Use: Runs a REXX script from a file, given its name.
81 extern int rx_runfile(const char */*name*/,
82 int /*ac*/, const char *const */*av*/);
84 /* --- @rx_init@ --- *
90 * Use: Initializes the REXX external functions.
93 extern void rx_init(void);
95 /*----- That's all, folks -------------------------------------------------*/