fix changes in variable names
This commit is contained in:
parent
e81f473802
commit
786d6abeda
2
C/init.c
2
C/init.c
@ -1193,7 +1193,7 @@ static void
|
|||||||
InitVersion(void)
|
InitVersion(void)
|
||||||
{
|
{
|
||||||
Yap_PutValue(AtomVersionNumber,
|
Yap_PutValue(AtomVersionNumber,
|
||||||
MkAtomTerm(Yap_LookupAtom(YAP_SVERSION)));
|
MkAtomTerm(Yap_LookupAtom(YAP_FULL_VERSION)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
2
C/qlyw.c
2
C/qlyw.c
@ -800,7 +800,7 @@ save_header(IOSTREAM *stream)
|
|||||||
{
|
{
|
||||||
char msg[256];
|
char msg[256];
|
||||||
|
|
||||||
sprintf(msg, "#!/bin/sh\nexec_dir=${YAPBINDIR:-%s}\nexec $exec_dir/yap $0 \"$@\"\n%s", YAP_BINDIR, YAP_SVERSION);
|
sprintf(msg, "#!/bin/sh\nexec_dir=${YAPBINDIR:-%s}\nexec $exec_dir/yap $0 \"$@\"\n%s", YAP_BINDIR, YAP_FULL_VERSION);
|
||||||
return save_bytes(stream, msg, strlen(msg)+1);
|
return save_bytes(stream, msg, strlen(msg)+1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
4
C/save.c
4
C/save.c
@ -344,7 +344,7 @@ put_info(int info, int mode USES_REGS)
|
|||||||
{
|
{
|
||||||
char msg[256];
|
char msg[256];
|
||||||
|
|
||||||
sprintf(msg, "#!/bin/sh\nexec_dir=${YAPBINDIR:-%s}\nexec $exec_dir/yap $0 \"$@\"\n%cYAP-%s", YAP_BINDIR, 1, YAP_SVERSION);
|
sprintf(msg, "#!/bin/sh\nexec_dir=${YAPBINDIR:-%s}\nexec $exec_dir/yap $0 \"$@\"\n%cYAP-%s", YAP_BINDIR, 1, YAP_FULL_VERSION);
|
||||||
if (mywrite(splfild, msg, strlen(msg) + 1))
|
if (mywrite(splfild, msg, strlen(msg) + 1))
|
||||||
return -1;
|
return -1;
|
||||||
if (putout(Unsigned(info)) < 0)
|
if (putout(Unsigned(info)) < 0)
|
||||||
@ -677,7 +677,7 @@ check_header(CELL *info, CELL *ATrail, CELL *AStack, CELL *AHeap USES_REGS)
|
|||||||
}
|
}
|
||||||
} while (pp[0] != 1);
|
} while (pp[0] != 1);
|
||||||
/* now check the version */
|
/* now check the version */
|
||||||
sprintf(msg, "YAP-%s", YAP_SVERSION);
|
sprintf(msg, "YAP-%s", YAP_FULL_VERSION);
|
||||||
{
|
{
|
||||||
int count = 0, n, to_read = Unsigned(strlen(msg) + 1);
|
int count = 0, n, to_read = Unsigned(strlen(msg) + 1);
|
||||||
while (count < to_read) {
|
while (count < to_read) {
|
||||||
|
@ -144,7 +144,7 @@ dump_runtime_variables(void)
|
|||||||
fprintf(stdout,"YAP_ROOTDIR=\"%s\"\n",YAP_ROOTDIR);
|
fprintf(stdout,"YAP_ROOTDIR=\"%s\"\n",YAP_ROOTDIR);
|
||||||
fprintf(stdout,"YAP_LIBS=\"%s\"\n",C_LIBS);
|
fprintf(stdout,"YAP_LIBS=\"%s\"\n",C_LIBS);
|
||||||
fprintf(stdout,"YAP_SHLIB_SUFFIX=\"%s\"\n",SO_EXT);
|
fprintf(stdout,"YAP_SHLIB_SUFFIX=\"%s\"\n",SO_EXT);
|
||||||
fprintf(stdout,"YAP_VERSION=%d\n",YAP_VERSION);
|
fprintf(stdout,"YAP_VERSION=%d\n",YAP_NUMERIC_VERSION);
|
||||||
exit(0);
|
exit(0);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user