Skip to content

Commit

Permalink
Merge pull request #117 from mainframed/master
Browse files Browse the repository at this point in the history
reverting /inc and /src back to original states
  • Loading branch information
Peter-Jacob authored Apr 28, 2024
2 parents 56b18a2 + 06a3bae commit 04b8faa
Show file tree
Hide file tree
Showing 166 changed files with 10,411 additions and 25,670 deletions.
19 changes: 19 additions & 0 deletions inc/addrlink.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#ifndef ADDRLINK_H
#define ADDRLINK_H

#include "lstring.h"

#define MAX_ARGS 16

typedef struct trx_link_params_r15 {
void* moduleName;
void* dcbAddress;
} RX_LINK_PARAMS_R15, *RX_LINK_PARAMS_R15_PTR;

typedef struct trx_link_params_r1 {
void* ptr[MAX_ARGS];
} RX_LINK_PARAMS_R1, *RX_LINK_PARAMS_R1_PTR;

int handleLinkCommands(PLstr cmd, PLstr env);

#endif //ADDRLINK_H
3 changes: 2 additions & 1 deletion inc/bintree.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ void __CDECL BinDel( BinTree *tree, PLstr name,
void (__CDECL *BinFreeData)(void *) );
void __CDECL BinPrint(PBinLeaf leaf, PLstr filter);
void __CDECL BinBalance( BinTree *tree );
int __CDECL BinVarDump(PLstr result, PBinLeaf leaf, PLstr filter,int mode);
int __CDECL BinVarDump(PLstr result, PBinLeaf leaf, PLstr filter,int mode,PLstr asclause);
int __CDECL BinStemCount(PLstr misuse,PBinLeaf leaf,PLstr stem);

#undef EXTERN
#endif
58 changes: 0 additions & 58 deletions inc/dbginfo.h

This file was deleted.

138 changes: 0 additions & 138 deletions inc/dynit.h

This file was deleted.

20 changes: 20 additions & 0 deletions inc/external.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#ifndef EXTERNAL_H
#define EXTERNAL_H
#include "lstring.h"

#define MAX_ARGS 15
#define EVALBLOCK_HEADER_LENGTH 16
#define EVALBLOCK_DATA_LENGTH 4096

typedef struct trx_ext_params_r15 {
void* moduleName;
void* dcbAddress;
} RX_EXT_PARAMS_R15, *RX_EXT_PARAMS_R15_PTR;

typedef struct trx_ext_params_r1 {
void* ptr[1];
} RX_EXT_PARAMS_R1, *RX_EXT_PARAMS_R1_PTR;

int callExternalFunction(char *functionName, char* arguments[MAX_ARGS], int numArguments, PLstr result);

#endif //EXTERNAL_H
80 changes: 0 additions & 80 deletions inc/fss.h

This file was deleted.

40 changes: 40 additions & 0 deletions inc/hostenv.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#ifndef __HOSTENV_H
#define __HOSTENV_H

#include "rxmvsext.h"

#define SPACE_LENGTH 1
#define CPPL_HEADER_LENGTH 4
#define MAX_ENV_LENGTH 8
#define MAX_CMD_LENGTH 256
#define MAX_CPPLBUF_DATA_LENGTH ( MAX_ENV_LENGTH + SPACE_LENGTH + MAX_CMD_LENGTH )

extern void ** entry_R13;

typedef struct cpplbuf_t {
word length;
word offset;
char data[MAX_CPPLBUF_DATA_LENGTH];
} cpplbuf;

typedef struct dynrexx_ctx_t {
PLstr code;
} RX_DYNREXX_CTX, *RX_DYNREXX_CTX_PTR;

// HOST ENVIRONMENTS
int __MVS(PLstr cmd, char **tokens);
int __TSO(RX_ENVIRONMENT_BLK_PTR pEnvBlock, RX_HOSTENV_PARAMS_PTR pParms);
int __ISPEXEC(RX_ENVIRONMENT_BLK_PTR pEnvBlock, RX_HOSTENV_PARAMS_PTR pParms);
int __FSS(char **tokens);
int __LINK(RX_ENVIRONMENT_BLK_PTR pEnvBlock, RX_HOSTENV_PARAMS_PTR pParms);
int __LINKPGM(RX_ENVIRONMENT_BLK_PTR pEnvBlock, RX_HOSTENV_PARAMS_PTR pParms);
int __LINKMVS(RX_ENVIRONMENT_BLK_PTR pEnvBlock, RX_HOSTENV_PARAMS_PTR pParms);
int __DYNREXX(RX_HOSTENV_PARAMS_PTR pParms);
int __COMMAND(RX_ENVIRONMENT_BLK_PTR pEnvBlock, RX_HOSTENV_PARAMS_PTR pParms);
int __CONSOLE(RX_ENVIRONMENT_BLK_PTR pEnvBlock, RX_HOSTENV_PARAMS_PTR pParms);

// HELPER FUNCTIONS
int tokenizeCmd(char *cmd, char **tokens);
int findToken(char *cmd, char **tokens);

#endif
Loading

0 comments on commit 04b8faa

Please sign in to comment.