* \r\n on Bconputs()
* natfeat support code git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23550 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -214,9 +214,11 @@ static inline int Bconputs(int16 handle, const char *string)
|
|||||||
int i, err;
|
int i, err;
|
||||||
for (i = 0; string[i]; i++) {
|
for (i = 0; string[i]; i++) {
|
||||||
err = Bconout(handle, string[i]);
|
err = Bconout(handle, string[i]);
|
||||||
if (err)
|
if (err < 0)
|
||||||
return i;
|
break;
|
||||||
}
|
}
|
||||||
|
Bconout(handle, '\r');
|
||||||
|
Bconout(handle, '\n');
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -400,6 +402,23 @@ static inline NatFeatCookie *nat_features(void)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline int32 nat_feat_getid(const char *name)
|
||||||
|
{
|
||||||
|
NatFeatCookie *c = nat_features();
|
||||||
|
if (!c)
|
||||||
|
return 0;
|
||||||
|
return c->nfGetID(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
#define nat_feat_call(id, code, a...) \
|
||||||
|
({ \
|
||||||
|
int32 ret; \
|
||||||
|
NatFeatCookie *c = nat_features(); \
|
||||||
|
if (!c) \
|
||||||
|
return -1; \
|
||||||
|
ret = c->nfCall(id | code, a##...); \
|
||||||
|
ret; \
|
||||||
|
})
|
||||||
|
|
||||||
/* XHDI NatFeat */
|
/* XHDI NatFeat */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user