#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "rexx.h"
#include "RexxMessageNumbers.h"
Go to the source code of this file.
Macros | |
#define | RXQUEUE_CLEAR -2 /* used for queue mode CLEAR flag */ |
#define | BAD_MESSAGE -6 /* Exit RC for message not found. */ |
#define | MSG_BUF_SIZE 256 /* Error message buffer size */ |
#define | LINEBUFSIZE 65472 /* Arbitrary but matches current docs */ |
#define | REXXMESSAGEFILE "rexx.cat" |
#define | CATD_ERR -1 |
Functions | |
void | options_error (int type, const char *queuename) |
size_t | get_line (char *, size_t, size_t *) |
int | main (int argc, char *argv[]) |
Variables | |
char | line [LINEBUFSIZE] |
char | work [256] |
int | queuemode =-1 |
#define BAD_MESSAGE -6 /* Exit RC for message not found. */ |
Definition at line 71 of file unix/rxqueue.cpp.
#define CATD_ERR -1 |
Definition at line 78 of file unix/rxqueue.cpp.
#define LINEBUFSIZE 65472 /* Arbitrary but matches current docs */ |
Definition at line 74 of file unix/rxqueue.cpp.
#define MSG_BUF_SIZE 256 /* Error message buffer size */ |
Definition at line 73 of file unix/rxqueue.cpp.
#define REXXMESSAGEFILE "rexx.cat" |
Definition at line 76 of file unix/rxqueue.cpp.
#define RXQUEUE_CLEAR -2 /* used for queue mode CLEAR flag */ |
Definition at line 70 of file unix/rxqueue.cpp.
static bool get_line | ( | char * | buffer, |
size_t | bufsize, | ||
size_t * | linelen | ||
) |
Definition at line 385 of file unix/rxqueue.cpp.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 91 of file unix/rxqueue.cpp.
References get_line(), line, MAKERXSTRING, options_error(), queuemode, RexxAddQueue(), RexxClearQueue(), RexxQueryQueue(), RXQUEUE_CLEAR, RXQUEUE_FIFO, RXQUEUE_LIFO, and work.
static void options_error | ( | int | type, |
const char * | queuename | ||
) |
Definition at line 240 of file unix/rxqueue.cpp.
References CATD_ERR, Error_RXQUE_access_msg, Error_RXQUE_exist_msg, Error_RXQUE_name_msg, Error_RXQUE_nomem_msg, Error_RXQUE_notinit_msg, Error_RXQUE_size_msg, Error_RXQUE_syntax_msg, MSG_BUF_SIZE, REXXMESSAGEFILE, RXQUEUE_BADQNAME, RXQUEUE_NOEMEM, RXQUEUE_NOTINIT, RXQUEUE_NOTREG, RXQUEUE_PRIORITY, RXQUEUE_SIZE, and type.
Referenced by main().
char line[LINEBUFSIZE] |
Definition at line 81 of file unix/rxqueue.cpp.
Referenced by BUILTIN(), RexxString::checkTE(), RexxSource::extract(), GetLine(), RexxActivity::lineOut(), main(), mystrstr(), RexxSource::position(), RexxActivity::queue(), RexxActivity::sayOutput(), RexxInstruction::setEnd(), SourceLocation::setEnd(), RexxClause::setEnd(), SourceLocation::setLocation(), RexxInstruction::setStart(), SourceLocation::setStart(), SysFileSearch(), RexxSource::traceBack(), RexxActivation::traceClause(), and RexxActivity::traceOutput().
int queuemode =-1 |
Definition at line 83 of file unix/rxqueue.cpp.
Referenced by main().
char work[256] |
Definition at line 82 of file unix/rxqueue.cpp.
Referenced by BUILTIN(), RexxActivity::createExceptionObject(), StreamInfo::getDescription(), Interpreter::getVersionNumber(), StreamInfo::implicitOpen(), main(), RexxCompoundTable::moveNode(), RexxActivation::random(), RexxActivity::reraiseException(), StreamInfo::streamFlush(), and StreamInfo::streamOpen().