Some minor adaptions
This commit is contained in:
parent
5f35f2b26b
commit
93e08cb946
|
@ -6,10 +6,11 @@
|
||||||
|
|
||||||
EMHOME = ../..
|
EMHOME = ../..
|
||||||
LIBDIR= $(EMHOME)/lib
|
LIBDIR= $(EMHOME)/lib
|
||||||
|
MODLIBDIR = $(EMHOME)/modules/lib
|
||||||
PREFLAGS= -I$(EMHOME)/h -DNDEBUG -DNASSERT
|
PREFLAGS= -I$(EMHOME)/h -DNDEBUG -DNASSERT
|
||||||
CFLAGS = $(PREFLAGS) -O
|
CFLAGS = $(PREFLAGS) -O
|
||||||
LDFLAGS = -i
|
LDFLAGS = -i
|
||||||
LDLIBS = $(EMHOME)/modules/lib/libstring.a $(EMHOME)/modules/lib/libobject.a
|
LDLIBS = $(MODLIBDIR)/libstring.a $(MODLIBDIR)/libobject.a
|
||||||
LINTFLAGS=-phbxa $(PREFLAGS)
|
LINTFLAGS=-phbxa $(PREFLAGS)
|
||||||
PR = pr
|
PR = pr
|
||||||
PRFLAGS =
|
PRFLAGS =
|
||||||
|
|
|
@ -61,13 +61,13 @@ adjust_names(name, head, chars)
|
||||||
register char *chars;
|
register char *chars;
|
||||||
{
|
{
|
||||||
register int cnt;
|
register int cnt;
|
||||||
register ind_t charoff;
|
register long charoff;
|
||||||
|
|
||||||
cnt = head->oh_nname;
|
cnt = head->oh_nname;
|
||||||
charoff = OFF_CHAR(*head);
|
charoff = OFF_CHAR(*head);
|
||||||
while (cnt--) {
|
while (cnt--) {
|
||||||
if (name->on_foff != (long)0)
|
if (name->on_foff != (long)0)
|
||||||
name->on_mptr = chars + name->on_foff - charoff;
|
name->on_mptr = chars + (ind_t)(name->on_foff - charoff);
|
||||||
name++;
|
name++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue