Commit c41b1a7d authored by claes's avatar claes

*** empty log message ***

parent 70d4314a
...@@ -15,6 +15,7 @@ extern "C" { ...@@ -15,6 +15,7 @@ extern "C" {
#include "pwr.h" #include "pwr.h"
using namespace std; using namespace std;
typedef enum { typedef enum {
......
...@@ -11,5 +11,6 @@ pwr_obj:cnv_classread_html.obj ...@@ -11,5 +11,6 @@ pwr_obj:cnv_classread_html.obj
pwr_obj:cnv_classread_xtthelp.obj pwr_obj:cnv_classread_xtthelp.obj
pwr_obj:cnv_classread_src.obj pwr_obj:cnv_classread_src.obj
pwr_obj:cnv_classread_struct.obj pwr_obj:cnv_classread_struct.obj
pwr_obj:cnv_help.obj
pwr_lib:libpwr_co/lib pwr_lib:libpwr_co/lib
pwr_obj:pwr_msg_co.obj pwr_obj:pwr_msg_co.obj
...@@ -212,7 +212,7 @@ main () ...@@ -212,7 +212,7 @@ main ()
static void static void
Init () Init ()
{ {
pwr_tUInt32 sts; pwr_tStatus sts;
sStore *sp; sStore *sp;
LstHead(sStore) *sl; LstHead(sStore) *sl;
sNode *np; sNode *np;
...@@ -263,8 +263,8 @@ Init () ...@@ -263,8 +263,8 @@ Init ()
LstIni(&lHelCB.StoreL); LstIni(&lHelCB.StoreL);
lHelCB.Tree = tree_CreateTable(sizeof(pwr_tNodeId), offsetof(sNode, Nid), lHelCB.Tree = tree_CreateTable(&sts, sizeof(pwr_tNodeId), offsetof(sNode, Nid),
sizeof(sNode), 10, tree_eComp_nid, NULL); sizeof(sNode), 10, tree_Comp_nid);
if (lHelCB.Tree == NULL) if (lHelCB.Tree == NULL)
Log_Error_Exit(MH__NOSPACE, "Couldn't allocate tree."); Log_Error_Exit(MH__NOSPACE, "Couldn't allocate tree.");
...@@ -314,9 +314,10 @@ Insert ( ...@@ -314,9 +314,10 @@ Insert (
LstLink(sStore) *sl; LstLink(sStore) *sl;
int ctime; int ctime;
pwr_tVaxTime BirthVaxTime; pwr_tVaxTime BirthVaxTime;
pwr_tStatus sts;
np = tree_Find(lHelCB.Tree, &ip->Id.Nix); np = tree_Find(&sts, lHelCB.Tree, &ip->Id.Nix);
if (np == NULL) if (np == NULL)
np = InsertNode((pwr_tNodeId)ip->Id.Nix); np = InsertNode((pwr_tNodeId)ip->Id.Nix);
...@@ -348,11 +349,12 @@ static sNode * ...@@ -348,11 +349,12 @@ static sNode *
InsertNode ( InsertNode (
pwr_tNodeId Nid pwr_tNodeId Nid
) { ) {
pwr_tStatus sts;
sNode *np; sNode *np;
pwr_tVaxTime BirthVaxTime; pwr_tVaxTime BirthVaxTime;
struct SQLCA sqlca; struct SQLCA sqlca;
np = tree_Insert(lHelCB.Tree, &Nid); np = tree_Insert(&sts, lHelCB.Tree, &Nid);
np->Nid = Nid; np->Nid = Nid;
mh_HeldbSetTxro(&sqlca); mh_HeldbSetTxro(&sqlca);
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include "rt_lst.h" #include "rt_lst.h"
#include "rt_errh.h" #include "rt_errh.h"
#include "rt_syi.h" #include "rt_syi.h"
#include "rt_load.h"
#if defined OS_VMS #if defined OS_VMS
# define cPrio_neth 8 # define cPrio_neth 8
......
...@@ -10,4 +10,5 @@ pwr_lib:libpwr_rt/lib ...@@ -10,4 +10,5 @@ pwr_lib:libpwr_rt/lib
pwr_lib:libpwr_co/lib pwr_lib:libpwr_co/lib
pwr_obj:pwr_msg_co.obj pwr_obj:pwr_msg_co.obj
pwr_obj:pwr_msg_rt.obj pwr_obj:pwr_msg_rt.obj
ucx$rpc:ucx$rpcxdr/lib
sys$library:decc$shr/share sys$library:decc$shr/share
...@@ -45,7 +45,9 @@ ...@@ -45,7 +45,9 @@
# endif # endif
#endif #endif
#if defined OS_VMS && defined __cplusplus
namespace std {};
#endif
#define pwr_dLittleEndian 1 #define pwr_dLittleEndian 1
#define pwr_dBigEndian 2 #define pwr_dBigEndian 2
...@@ -156,7 +158,7 @@ typedef struct { ...@@ -156,7 +158,7 @@ typedef struct {
int high; int high;
} pwr_tVaxTime; } pwr_tVaxTime;
#if defined OS_VMS && ! defined _TIMESPEC_T_ #if (defined OS_VMS || defined OS_ELN) && (! defined _TIMESPEC_T_ && !defined TIMERS_INCLUDED)
# define _TIMESPEC_T_ # define _TIMESPEC_T_
typedef struct timespec { typedef struct timespec {
unsigned long tv_sec; unsigned long tv_sec;
......
...@@ -6,6 +6,12 @@ ...@@ -6,6 +6,12 @@
. */ . */
#if defined OS_ELN
#include string
#include unistd
#include types
#include errno
#else
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <sys/mman.h> #include <sys/mman.h>
...@@ -13,6 +19,7 @@ ...@@ -13,6 +19,7 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#endif
#include "pwr.h" #include "pwr.h"
#include "co_dbs.h" #include "co_dbs.h"
......
...@@ -154,8 +154,11 @@ co_vaxf2ieee(co_eBO sbo, ...@@ -154,8 +154,11 @@ co_vaxf2ieee(co_eBO sbo,
else else
v.i = *(int *)sp; v.i = *(int *)sp;
(char *)i3ep = tp; #if (pwr_dHost_byteOrder == pwr_dLittleEndian)
i3ep = (union i3e_s_le *) tp;
#else
i3ep = (union i3e_s_be *) tp;
#endif
if (v.b.f22_16 == 0x7f && v.b.exp == 0xff && v.b.f15_0 == 0xffff) { /* High value. */ if (v.b.f22_16 == 0x7f && v.b.exp == 0xff && v.b.f15_0 == 0xffff) { /* High value. */
i3ep->i = 0, i3ep->v.exp = 0xff; i3ep->i = 0, i3ep->v.exp = 0xff;
...@@ -196,7 +199,11 @@ co_ieee2vaxf(co_eBO sbo, ...@@ -196,7 +199,11 @@ co_ieee2vaxf(co_eBO sbo,
else else
i3e.i = *(int *)sp; i3e.i = *(int *)sp;
(int *)vp = tp; #if (pwr_dHost_byteOrder == pwr_dLittleEndian)
vp = (union vax_f_le *) tp;
#else
vp = (union vax_f_be *) tp;
#endif
if (i3e.b.f22_0 == 0x0 && i3e.b.exp == 0xff) { /* High value. */ if (i3e.b.f22_0 == 0x0 && i3e.b.exp == 0xff) { /* High value. */
vp->b.f22_16 = 0x7f; vp->b.f22_16 = 0x7f;
......
...@@ -52,7 +52,7 @@ class Lng { ...@@ -52,7 +52,7 @@ class Lng {
static char *translate( char *str); static char *translate( char *str);
static int translate( char *in, char *out); static int translate( char *in, char *out);
static char *get_language_str(); static char *get_language_str();
static void Lng::get_uid( char *in, char *out); static void get_uid( char *in, char *out);
}; };
#if defined __cplusplus #if defined __cplusplus
......
...@@ -5,14 +5,20 @@ ...@@ -5,14 +5,20 @@
This module contains the PDR-routines */ This module contains the PDR-routines */
#if defined OS_ELN
#include string
#else
#include <string.h> #include <string.h>
#endif
#include "co_pdr.h" #include "co_pdr.h"
#include "co_float.h" #include "co_float.h"
#if defined OS_ELN
#include in
#else
#include <netinet/in.h> #include <netinet/in.h>
#endif
......
#ifndef co_pdr_h #ifndef co_pdr_h
#define co_pdr_h #define co_pdr_h
#if defined OS_VMS
#include <types.h>
#elif defined OS_ELN
#include <rpc/rpc.h>
#endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include "rt_qdb_msg.h" #include "rt_qdb_msg.h"
#include "rt_qcom_msg.h" #include "rt_qcom_msg.h"
#include "rt_qdb.h" #include "rt_qdb.h"
#include "rt_errh.h"
typedef struct { typedef struct {
qdb_sQue *qp; qdb_sQue *qp;
......
...@@ -173,7 +173,7 @@ cvolc_GetObjectInfo ( ...@@ -173,7 +173,7 @@ cvolc_GetObjectInfo (
if (tbl == NULL) if (tbl == NULL)
errh_Bugcheck(*sts, "failed getting address for conversion table"); errh_Bugcheck(*sts, "failed getting address for conversion table");
} }
ndc_ConvertRemoteToNativeDataTable(sts, ccp, tbl, rarp, ndc_ConvertRemoteToNativeTable(sts, ccp, tbl, rarp,
arp, p, rmp->info, size); arp, p, rmp->info, size);
} else { } else {
......
...@@ -116,7 +116,7 @@ static char *get_name (char*, int); ...@@ -116,7 +116,7 @@ static char *get_name (char*, int);
static char get_severity (pwr_tStatus); static char get_severity (pwr_tStatus);
static void openLog (); static void openLog ();
static void set_name (char*); static void set_name (char*);
static void send (char*); static void errh_send (char*);
static void log_message (errh_sLog*, char, char*, va_list); static void log_message (errh_sLog*, char, char*, va_list);
static int msg_vsprintf (char *, const char *, aa_list, va_list); static int msg_vsprintf (char *, const char *, aa_list, va_list);
...@@ -204,7 +204,7 @@ errh_Log ( ...@@ -204,7 +204,7 @@ errh_Log (
if (interactive) if (interactive)
printf("%s\n", buff); printf("%s\n", buff);
else else
send(buff); errh_send(buff);
return buff; return buff;
} }
...@@ -434,7 +434,7 @@ errh_CErrLog ( ...@@ -434,7 +434,7 @@ errh_CErrLog (
s = get_header(get_severity(sts), string); s = get_header(get_severity(sts), string);
msg_vsprintf(s, msg, args, NULL); msg_vsprintf(s, msg, args, NULL);
send(string); errh_send(string);
} }
/* Format a string. */ /* Format a string. */
...@@ -669,7 +669,7 @@ log_message (errh_sLog *lp, char severity, char *msg, va_list ap) ...@@ -669,7 +669,7 @@ log_message (errh_sLog *lp, char severity, char *msg, va_list ap)
if (interactive) if (interactive)
printf("%s\n", string); printf("%s\n", string);
else else
send(string); errh_send(string);
if (lp != NULL && lp->send) { if (lp != NULL && lp->send) {
lp->put.data = string; lp->put.data = string;
...@@ -1026,7 +1026,7 @@ number ( ...@@ -1026,7 +1026,7 @@ number (
} }
static void static void
send (char *s) errh_send (char *s)
{ {
int len = strlen(s); int len = strlen(s);
......
...@@ -494,13 +494,14 @@ typedef struct { ...@@ -494,13 +494,14 @@ typedef struct {
gdb_sCcVolKey key; /**< Hash table key */ gdb_sCcVolKey key; /**< Hash table key */
pwr_tTime time; /**< Time for the class volume */ pwr_tTime time; /**< Time for the class volume */
pwr_tBoolean equalClasses; /**< True if the cached volume has the same versions as the local */ pwr_tBoolean equalClasses; /**< True if the cached volume has the same versions as the local */
// gdb_sTouchQ ccache; /**< The cache of classes */ /* gdb_sTouchQ ccache; */ /**< The cache of classes */
} gdb_sCclassVolume; } gdb_sCclassVolume;
#if 0 #if 0
/** Cached Attribute /** Cached Attribute
*/ */
#if 0
typedef struct { typedef struct {
} ndc_sAttribute; } ndc_sAttribute;
...@@ -510,7 +511,7 @@ typedef struct { ...@@ -510,7 +511,7 @@ typedef struct {
typedef struct { typedef struct {
net_sCattribute g; net_sCattribute g;
// ndc_sAttribute conv; /* ndc_sAttribute conv; */
} gdb_sCattribute; } gdb_sCattribute;
......
...@@ -2319,7 +2319,7 @@ gdh_SubData ( ...@@ -2319,7 +2319,7 @@ gdh_SubData (
tbl = pool_Address(NULL, gdbroot->pool, ccp->rnConv); tbl = pool_Address(NULL, gdbroot->pool, ccp->rnConv);
if (tbl == NULL)errh_Bugcheck(GDH__WEIRD, "gdh_SubData, get cached class address"); if (tbl == NULL)errh_Bugcheck(GDH__WEIRD, "gdh_SubData, get cached class address");
ndc_ConvertRemoteToNativeDataTable(&sts, ccp, tbl, &cp->raref, &cp->aref, bp, p, MIN(bsize, cp->aref.Size)); ndc_ConvertRemoteToNativeTable(&sts, ccp, tbl, &cp->raref, &cp->aref, bp, p, MIN(bsize, cp->aref.Size));
} else } else
memcpy(bp, p, MIN(bsize, cp->aref.Size)); memcpy(bp, p, MIN(bsize, cp->aref.Size));
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "rt_net.h" #include "rt_net.h"
#include "rt_sub.h" #include "rt_sub.h"
#include "rt_dvms.h" #include "rt_dvms.h"
#include "co_time.h"
static dvmsFctn *convFctn = NULL; static dvmsFctn *convFctn = NULL;
...@@ -288,7 +289,7 @@ updateObject ( ...@@ -288,7 +289,7 @@ updateObject (
} }
op->u.n.flags.b.isMountClean = o->flags.b.isMountClean; op->u.n.flags.b.isMountClean = o->flags.b.isMountClean;
// op->u.n.rbTime = o->rbody.time; /* op->u.n.rbTime = o->rbody.time; */
op->u.n.time = o->time; op->u.n.time = o->time;
op->u.n.lflags.m = o->flags.m; op->u.n.lflags.m = o->flags.m;
...@@ -575,7 +576,7 @@ ivol_LoadObject ( ...@@ -575,7 +576,7 @@ ivol_LoadObject (
if (vol_LinkObject(sts, lv->vp, op, ilink) == NULL) if (vol_LinkObject(sts, lv->vp, op, ilink) == NULL)
return NULL; return NULL;
op->u.n.flags.b.isMountClean = o->flags.b.isMountClean; op->u.n.flags.b.isMountClean = o->flags.b.isMountClean;
// op->u.n.rbTime = o->rbody.time; /* op->u.n.rbTime = o->rbody.time; */
op->u.n.time = o->time; op->u.n.time = o->time;
op->u.n.lflags.m = o->flags.m; op->u.n.lflags.m = o->flags.m;
return op; return op;
......
...@@ -743,7 +743,7 @@ ndc_ConvertNativeToRemoteData ( ...@@ -743,7 +743,7 @@ ndc_ConvertNativeToRemoteData (
adef.b.privatepointer = 1; adef.b.privatepointer = 1;
if (!conv_Fctn[cidx](cap->elem, tasize, tp + cap->offs, &size, ap->elem, sasize, sp + ap->offs, adef)) { if (!conv_Fctn[cidx](cap->elem, tasize, (char *)tp + cap->offs, (int *)&size, ap->elem, sasize, (const char *)sp + ap->offs, adef)) {
pwr_Return(NO, sts, NDC__CONVERT); pwr_Return(NO, sts, NDC__CONVERT);
} }
break; break;
...@@ -751,7 +751,7 @@ ndc_ConvertNativeToRemoteData ( ...@@ -751,7 +751,7 @@ ndc_ConvertNativeToRemoteData (
} }
if (j >= cp->acount) {/* the remote attribute doesn't exist locally */ if (j >= cp->acount) {/* the remote attribute doesn't exist locally */
if (!conv_Fctn[conv_eIdx_zero](cap->elem, tasize, tp + cap->offs, &size, 0, 0, 0, adef)) { if (!conv_Fctn[conv_eIdx_zero](cap->elem, tasize, (char *)tp + cap->offs, (int *)&size, 0, 0, 0, adef)) {
pwr_Return(NO, sts, NDC__CONVERT); pwr_Return(NO, sts, NDC__CONVERT);
} }
} }
...@@ -781,7 +781,7 @@ ndc_ConvertNativeToRemoteData ( ...@@ -781,7 +781,7 @@ ndc_ConvertNativeToRemoteData (
adef.b.privatepointer = 1; adef.b.privatepointer = 1;
if (!conv_Fctn[cidx](cap->elem, tasize, tp, &size, if (!conv_Fctn[cidx](cap->elem, tasize, tp, (int *)&size,
nap->elem, sasize, sp, adef) nap->elem, sasize, sp, adef)
) { ) {
pwr_Return(NO, sts, NDC__CONVERT); pwr_Return(NO, sts, NDC__CONVERT);
...@@ -915,14 +915,14 @@ ndc_ConvertRemoteToNativeData ( ...@@ -915,14 +915,14 @@ ndc_ConvertRemoteToNativeData (
adef.m = cap->flags.m; adef.m = cap->flags.m;
adef.b.privatepointer = 1; adef.b.privatepointer = 1;
if (!conv_Fctn[cidx](ap->elem, tasize, tp, &size, cap->elem, sasize, sp, adef)) { if (!conv_Fctn[cidx](ap->elem, tasize, tp, (int *)&size, cap->elem, sasize, sp, adef)) {
pwr_Return(NO, sts, NDC__CONVERT); pwr_Return(NO, sts, NDC__CONVERT);
} }
} }
} }
if (j >= ccp->acount) {/* the native attribute doesn't exist remotely */ if (j >= ccp->acount) {/* the native attribute doesn't exist remotely */
if (!conv_Fctn[cidx](ap->elem, tasize, tp, &size, 0, 0, 0, adef)) { if (!conv_Fctn[cidx](ap->elem, tasize, tp, (int *)&size, 0, 0, 0, adef)) {
pwr_Return(NO, sts, NDC__CONVERT); pwr_Return(NO, sts, NDC__CONVERT);
} }
} }
...@@ -953,7 +953,7 @@ ndc_ConvertRemoteToNativeData ( ...@@ -953,7 +953,7 @@ ndc_ConvertRemoteToNativeData (
adef.b.privatepointer = 1; adef.b.privatepointer = 1;
if (!conv_Fctn[cidx](nap->elem, tasize, tp, &size, if (!conv_Fctn[cidx](nap->elem, tasize, tp, (int *)&size,
cap->elem, sasize, sp, adef) cap->elem, sasize, sp, adef)
) { ) {
pwr_Return(NO, sts, NDC__CONVERT); pwr_Return(NO, sts, NDC__CONVERT);
...@@ -969,7 +969,7 @@ ndc_ConvertRemoteToNativeData ( ...@@ -969,7 +969,7 @@ ndc_ConvertRemoteToNativeData (
* The data has already been converted to native data format * The data has already been converted to native data format
*/ */
pwr_tBoolean pwr_tBoolean
ndc_ConvertRemoteToNativeDataTable ( ndc_ConvertRemoteToNativeTable (
pwr_tStatus *sts, pwr_tStatus *sts,
const gdb_sCclass *ccp, /**< Cached class */ const gdb_sCclass *ccp, /**< Cached class */
const ndc_sRemoteToNative *tbl, const ndc_sRemoteToNative *tbl,
...@@ -1067,7 +1067,7 @@ ndc_ConvertRemoteToNativeDataTable ( ...@@ -1067,7 +1067,7 @@ ndc_ConvertRemoteToNativeDataTable (
if(!conv_Fctn[cidx](ap->elem, ap->size/ap->elem, (char *)tp + (ap->offs - base), &size, if(!conv_Fctn[cidx](ap->elem, ap->size/ap->elem, (char *)tp + (ap->offs - base), (int *)&size,
relem, cap->size/cap->elem, (const char *)sp + roffs, adef)) relem, cap->size/cap->elem, (const char *)sp + roffs, adef))
pwr_Return(NO, sts, NDC__CONVERT); pwr_Return(NO, sts, NDC__CONVERT);
......
...@@ -39,7 +39,7 @@ typedef enum { ...@@ -39,7 +39,7 @@ typedef enum {
typedef struct { typedef struct {
conv_eIdx cidx; /**< Index in the conversion routine table */ conv_eIdx cidx; /**< Index in the conversion routine table */
pwr_tUInt32 raidx; /**< Native attribute index */ pwr_tUInt32 raidx; /**< Native attribute index */
// pwr_tBoolean private;/**< Set if attribute is a private pointer */ /* pwr_tBoolean private; */ /**< Set if attribute is a private pointer */
} ndc_sRemoteToNative; } ndc_sRemoteToNative;
...@@ -113,7 +113,7 @@ ndc_ConvertRemoteToNativeData ( ...@@ -113,7 +113,7 @@ ndc_ConvertRemoteToNativeData (
* The data has already been converted to native data format * The data has already been converted to native data format
*/ */
pwr_tBoolean pwr_tBoolean
ndc_ConvertRemoteToNativeDataTable ( ndc_ConvertRemoteToNativeTable (
pwr_tStatus *sts, pwr_tStatus *sts,
const gdb_sCclass *ccp, /**< Cached class */ const gdb_sCclass *ccp, /**< Cached class */
const ndc_sRemoteToNative *tbl, const ndc_sRemoteToNative *tbl,
......
...@@ -1070,7 +1070,7 @@ struct net_sGetGclass { ...@@ -1070,7 +1070,7 @@ struct net_sGetGclass {
% %
% if (EVEN(sts)) { % if (EVEN(sts)) {
% acntmsg = 0; % acntmsg = 0;
% if (!xdr_pwr_tUInt32(xdrs, &acntmsg)) { % if (!xdr_pwr_tUInt32(xdrs, (unsigned int *)&acntmsg)) {
% return (FALSE); % return (FALSE);
% } % }
% return (TRUE); % return (TRUE);
...@@ -1191,7 +1191,7 @@ struct net_sGetCclass { ...@@ -1191,7 +1191,7 @@ struct net_sGetCclass {
% %
% if (EVEN(sts) || equal) { % if (EVEN(sts) || equal) {
% acntmsg = 0; % acntmsg = 0;
% if (!xdr_pwr_tUInt32(xdrs, &acntmsg)) { % if (!xdr_pwr_tUInt32(xdrs, (unsigned int *)&acntmsg)) {
% return (FALSE); % return (FALSE);
% } % }
% return (TRUE); % return (TRUE);
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#define EVEN(a) (((int)(a) & 1) == 0) #define EVEN(a) (((int)(a) & 1) == 0)
#define max(Dragon,Eagle) ((Dragon) > (Eagle) ? (Dragon) : (Eagle)) #define max(Dragon,Eagle) ((Dragon) > (Eagle) ? (Dragon) : (Eagle))
#define min(Dragon,Eagle) ((Dragon) < (Eagle) ? (Dragon) : (Eagle)) #define min(Dragon,Eagle) ((Dragon) < (Eagle) ? (Dragon) : (Eagle))
#define abs(Dragon) ((Dragon) >= 0 ? (Dragon) : (-(Dragon)))
typedef struct { typedef struct {
pwr_tFloat32 *DataP; pwr_tFloat32 *DataP;
......
...@@ -601,7 +601,7 @@ qcom_Init ( ...@@ -601,7 +601,7 @@ qcom_Init (
#elif defined OS_VMS #elif defined OS_VMS
atexit(exitHandler); atexit(exitHandler);
*sts = lib$get_ef(&qdb->ap->ef); *sts = lib$get_ef(&qdb->ap->ef);
if (EVEN(*sts)) pwr_Bugcheck(sts, "lib$get_ef()"); if (EVEN(*sts)) errh_Bugcheck(sts, "lib$get_ef()");
#endif #endif
qdb_ScopeLock { qdb_ScopeLock {
......
...@@ -207,7 +207,7 @@ subcm_Data ( ...@@ -207,7 +207,7 @@ subcm_Data (
if (cp->cclass == pool_cNRef) if (cp->cclass == pool_cNRef)
memcpy(adrs, dp->data, MIN(dp->size, cp->usersize)); memcpy(adrs, dp->data, MIN(dp->size, cp->usersize));
else if (!cp->old) { else if (!cp->old) {
ndc_ConvertRemoteToNativeDataTable(&cp->sts, ccp, tbl, &cp->raref, &cp->aref, adrs, dp->data, cp->usersize); ndc_ConvertRemoteToNativeTable(&cp->sts, ccp, tbl, &cp->raref, &cp->aref, adrs, dp->data, cp->usersize);
if (EVEN(cp->sts)) if (EVEN(cp->sts))
cp->old = TRUE; cp->old = TRUE;
} }
......
...@@ -14,12 +14,12 @@ ...@@ -14,12 +14,12 @@
#endif #endif
typedef struct s_commonpart typedef struct
{ {
void *parent_ctx; void *parent_ctx;
Widget parent_wid; Widget parent_wid;
char *name; char *name;
} trace_t_commonpart, *commonpart; } trace_t_commonpart;
typedef struct tra_sCtx *tra_tCtx; typedef struct tra_sCtx *tra_tCtx;
typedef struct trace_s_node trace_t_node; typedef struct trace_s_node trace_t_node;
......
...@@ -27,6 +27,7 @@ endif ...@@ -27,6 +27,7 @@ endif
vpath %.h $(hw_source):$(os_source):$(co_source) vpath %.h $(hw_source):$(os_source):$(co_source)
vpath %.c $(hw_source):$(os_source):$(co_source) vpath %.c $(hw_source):$(os_source):$(co_source)
vpath %.x $(hw_source):$(os_source):$(co_source) vpath %.x $(hw_source):$(os_source):$(co_source)
vpath %.pdr $(hw_source):$(os_source):$(co_source)
source_dirs = $(hw_source) $(os_source) $(co_source) source_dirs = $(hw_source) $(os_source) $(co_source)
...@@ -58,16 +59,29 @@ xdr_sources := $(sort \ ...@@ -58,16 +59,29 @@ xdr_sources := $(sort \
) \ ) \
) )
pdr_sources := $(sort \
$(foreach file, \
$(foreach dir, \
$(source_dirs), \
$(wildcard $(dir)/$(comp_name)*.pdr) \
), $(notdir $(file)) \
) \
)
xdr_includes := $(addprefix $(inc_dir)/,$(patsubst %.x, %.h, $(xdr_sources))) xdr_includes := $(addprefix $(inc_dir)/,$(patsubst %.x, %.h, $(xdr_sources)))
xdr_objects := $(patsubst %.x, %_xdr.obj, $(xdr_sources)) xdr_objects := $(patsubst %.x, %_xdr.obj, $(xdr_sources))
pdr_includes := $(addprefix $(inc_dir)/,$(patsubst %.pdr, %.h, $(pdr_sources)))
pdr_objects := $(patsubst %.pdr, %_pdr.obj, $(pdr_sources))
export_includes := $(addprefix $(inc_dir)/, $(includes)) export_includes := $(addprefix $(inc_dir)/, $(includes))
export_includes += $(xdr_includes) export_includes += $(xdr_includes) $(pdr_includes)
clean_includes := $(patsubst %.h, clean_%.h, $(includes)) clean_includes := $(patsubst %.h, clean_%.h, $(includes))
objects := $(addsuffix $(obj_ext), $(basename $(c_sources))) objects := $(addsuffix $(obj_ext), $(basename $(c_sources)))
objects += $(xdr_objects) objects += $(xdr_objects) $(pdr_objects)
source_dependencies := $(notdir $(basename $(c_sources))) source_dependencies := $(notdir $(basename $(c_sources)))
source_dependencies := $(addprefix $(bld_dir)/, $(source_dependencies)) source_dependencies := $(addprefix $(bld_dir)/, $(source_dependencies))
......
...@@ -142,6 +142,19 @@ $(inc_dir)/%.h : %.x ...@@ -142,6 +142,19 @@ $(inc_dir)/%.h : %.x
@ if f$$search("$(to-vms $(tmp_dir)/$(tname).h)") .nes. "" then $(rm) $(rmflags) $(to-vms $(tmp_dir)/$(tname).h);* @ if f$$search("$(to-vms $(tmp_dir)/$(tname).h)") .nes. "" then $(rm) $(rmflags) $(to-vms $(tmp_dir)/$(tname).h);*
@ set def 'saved_def @ set def 'saved_def
$(inc_dir)/%.h : %.pdr
@ $(log_x_h)
tools_pdrgen -h -o $(target) $(source)
(%_pdr.obj) : %.pdr
@ $(log_x_lib)
@ tools_pdrgen -c -o $(to-vms $(bld_dir)/$(sname)_pdr.c) $(source)
@ \@pwrb_root:[os_vms.hw_vax.exp.exe]pwr_repl $(to-vms $(bld_dir)/$(sname)_pdr.c) "[.-.-]$(sname)" "$(sname)"
@ $(cc) $(cflags) $(csetos) $(cinc) $(clibobj) $(clis) $(to-vms $(bld_dir)/$(sname)_pdr.c)
@ $(pur) $(purflags) $(to-vms $(bld_dir)/$(sname)_pdr.c)
@ $(ar) $(arflags) $(to-vms $(export_lib)) $(libobj)
@ if f$$search("$(libobj)") .nes. "" then $(rm) $(rmflags) $(libobj);*
(%_xdr.obj) : %.x (%_xdr.obj) : %.x
@ $(log_x_lib) @ $(log_x_lib)
@ saved_def = f$$environment("default") @ saved_def = f$$environment("default")
......
...@@ -99,7 +99,7 @@ xdr_includes := $(addprefix $(inc_dir)/,$(patsubst %.x, %.h, $(xdr_sources))) ...@@ -99,7 +99,7 @@ xdr_includes := $(addprefix $(inc_dir)/,$(patsubst %.x, %.h, $(xdr_sources)))
xdr_objects := $(patsubst %.x, %_xdr.obj, $(xdr_sources)) xdr_objects := $(patsubst %.x, %_xdr.obj, $(xdr_sources))
pdr_includes := $(addprefix $(inc_dir)/,$(patsubst %.pdr, %.h, $(pdr_sources))) pdr_includes := $(addprefix $(inc_dir)/,$(patsubst %.pdr, %.h, $(pdr_sources)))
pdr_objects := $(patsubst %.pdr, %_pdr.o, $(pdr_sources)) pdr_objects := $(patsubst %.pdr, %_pdr.obj, $(pdr_sources))
export_includes := $(addprefix $(inc_dir)/, $(includes)) export_includes := $(addprefix $(inc_dir)/, $(includes))
export_includes += $(xdr_includes) $(pdr_includes) export_includes += $(xdr_includes) $(pdr_includes)
......
...@@ -185,12 +185,13 @@ $(inc_dir)/%.hpp : %.hpp ...@@ -185,12 +185,13 @@ $(inc_dir)/%.hpp : %.hpp
$(inc_dir)/%.h : %.pdr $(inc_dir)/%.h : %.pdr
@ $(log_x_h) @ $(log_x_h)
@ tools_pdrgen -h -o $(target) $(source) tools_pdrgen -h -o $(target) $(source)
(%_pdr.obj) : %.pdr (%_pdr.obj) : %.pdr
@ $(log_x_lib) @ $(log_x_lib)
@ tools_pdrgen -c -o $(bld_dir)/$(sname)_pdr.c $(source) tools_pdrgen -c -o $(to-vms $(bld_dir)/$(sname)_pdr.c) $(source)
@ $(cc)/warn=dis=TRAILCOMMA $(cflags) $(csetos) $(cinc) $(clibobj) $(clis) $(to-vms $(bld_dir)/$(sname)_pdr.c) \@pwr_exe:pwr_repl $(to-vms $(bld_dir)/$(sname)_pdr.c) "[.-.-]$(sname)" "$(sname)"
$(cc)/warn=dis=TRAILCOMMA $(cflags) $(csetos) $(cinc) $(clibobj) $(clis) $(to-vms $(bld_dir)/$(sname)_pdr.c)
@ $(pur) $(purflags) $(to-vms $(bld_dir)/$(sname)_pdr.c) @ $(pur) $(purflags) $(to-vms $(bld_dir)/$(sname)_pdr.c)
@ $(ar) $(arflags) $(to-vms $(export_lib)) $(libobj) @ $(ar) $(arflags) $(to-vms $(export_lib)) $(libobj)
@ if f$$search("$(libobj)") .nes. "" then $(rm) $(rmflags) $(libobj);* @ if f$$search("$(libobj)") .nes. "" then $(rm) $(rmflags) $(libobj);*
......
...@@ -86,7 +86,7 @@ static char CPP[] = "cl"; ...@@ -86,7 +86,7 @@ static char CPP[] = "cl";
static char CPPFLAGS[] = "/C /EP /nologo"; static char CPPFLAGS[] = "/C /EP /nologo";
#elif defined OS_VMS #elif defined OS_VMS
static char CPP[] = "cc"; static char CPP[] = "cc";
static char CPPFLAGS[] = "/prep="; static char CPPFLAGS[] = "/decc/prep=";
#else #else
static char CPP[] = "/lib/cpp"; static char CPP[] = "/lib/cpp";
static char CPPFLAGS[] = "-C"; static char CPPFLAGS[] = "-C";
...@@ -205,7 +205,11 @@ int main(int argc, ...@@ -205,7 +205,11 @@ int main(int argc,
} }
#endif #endif
#ifdef OS_VMS
exit(1);
#else
exit(0); exit(0);
#endif
} }
/* /*
......
...@@ -917,7 +917,11 @@ ldh_ObjidToName(ldh_tSession session, pwr_tOid oid, ldh_eName type, char *buf, i ...@@ -917,7 +917,11 @@ ldh_ObjidToName(ldh_tSession session, pwr_tOid oid, ldh_eName type, char *buf, i
case ldh_eName_Object: case ldh_eName_Object:
{ {
wb_object o = sp->object(oid); wb_object o = sp->object(oid);
if (!o) return o.sts(); if (!o) { /* return o.sts(); */
strncpy( buf, cdh_ObjidToString( NULL, oid, 1), maxsize);
*size = strlen( buf);
return LDH__SUCCESS;
}
try { try {
char name[200]; char name[200];
...@@ -938,8 +942,11 @@ ldh_ObjidToName(ldh_tSession session, pwr_tOid oid, ldh_eName type, char *buf, i ...@@ -938,8 +942,11 @@ ldh_ObjidToName(ldh_tSession session, pwr_tOid oid, ldh_eName type, char *buf, i
case ldh_eName_Volume: case ldh_eName_Volume:
{ {
wb_object o = sp->object(oid); wb_object o = sp->object(oid);
if (!o) return o.sts(); if (!o) { /* return o.sts(); */
strncpy( buf, cdh_ObjidToString( NULL, oid, 1), maxsize);
*size = strlen( buf);
return LDH__SUCCESS;
}
try { try {
char name[200]; char name[200];
strcpy( name, o.longName().name( type)); strcpy( name, o.longName().name( type));
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#ifndef wb_print_wbl_h #ifndef wb_print_wbl_h
#define wb_print_wbl_h #define wb_print_wbl_h
#include <iostream> #include <iostream.h>
#include "pwr_class.h" #include "pwr_class.h"
......
...@@ -357,6 +357,8 @@ void wb_vrepdb::adopt(wb_db_txn *txn, wb_db_ohead &o, wb_destination &dest) ...@@ -357,6 +357,8 @@ void wb_vrepdb::adopt(wb_db_txn *txn, wb_db_ohead &o, wb_destination &dest)
o.boid(d.boid()); o.boid(d.boid());
o.aoid(d.oid()); o.aoid(d.oid());
break; break;
default:
;
} }
if (o.boid().vid != pwr_cNVid) { if (o.boid().vid != pwr_cNVid) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment