mirror of
https://review.haiku-os.org/buildtools
synced 2026-02-04 16:03:15 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b16647ffb4 | ||
|
|
1fd444a297 |
@@ -102,6 +102,24 @@ int istream::peek()
|
||||
return ch;
|
||||
}
|
||||
|
||||
// [zooey]: added for R5-compatibility with bdb
|
||||
istream& istream::read(char *ptr, int n)
|
||||
{
|
||||
return read((char*)ptr, (streamsize)n);
|
||||
}
|
||||
istream& istream::read(unsigned char *ptr, int n)
|
||||
{
|
||||
return read((char*)ptr, (streamsize)n);
|
||||
}
|
||||
istream& istream::read(signed char *ptr, int n)
|
||||
{
|
||||
return read((char*)ptr, (streamsize)n);
|
||||
}
|
||||
istream& istream::read(void *ptr, int n)
|
||||
{
|
||||
return read((char*)ptr, (streamsize)n);
|
||||
}
|
||||
|
||||
istream& istream::ignore(int n /* = 1 */, int delim /* = EOF */)
|
||||
{
|
||||
_gcount = 0;
|
||||
@@ -1022,6 +1040,24 @@ ostream& ostream::write(const char *s, streamsize n)
|
||||
return *this;
|
||||
}
|
||||
|
||||
// [zooey]: added for R5-compatibility
|
||||
ostream& ostream::write(const char *s, int n)
|
||||
{
|
||||
return write((const char*)s, (streamsize)n);
|
||||
}
|
||||
ostream& ostream::write(const unsigned char *s, int n)
|
||||
{
|
||||
return write((const char*)s, (streamsize)n);
|
||||
}
|
||||
ostream& ostream::write(const signed char *s, int n)
|
||||
{
|
||||
return write((const char*)s, (streamsize)n);
|
||||
}
|
||||
ostream& ostream::write(const void *s, int n)
|
||||
{
|
||||
return write((const char*)s, (streamsize)n);
|
||||
}
|
||||
|
||||
void ostream::do_osfx()
|
||||
{
|
||||
if (flags() & ios::unitbuf)
|
||||
|
||||
@@ -69,15 +69,12 @@ class ostream : virtual public ios
|
||||
ostream& write(const void *s, streamsize n)
|
||||
{ return write((const char*)s, n);}
|
||||
#ifdef _STREAM_COMPAT
|
||||
// [zooey]: added for R5-compatibility
|
||||
ostream& write(const char *s, int n)
|
||||
{ return write((const char*)s, (streamsize)n);}
|
||||
ostream& write(const unsigned char *s, int n)
|
||||
{ return write((const char*)s, (streamsize)n);}
|
||||
ostream& write(const signed char *s, int n)
|
||||
{ return write((const char*)s, (streamsize)n);}
|
||||
ostream& write(const void *s, int n)
|
||||
{ return write((const char*)s, (streamsize)n);}
|
||||
// [zooey]: added for R5-compatibility with bdb,
|
||||
// these can't be inlined as they wouldn't end up in the lib then.
|
||||
ostream& write(const char *s, int n);
|
||||
ostream& write(const unsigned char *s, int n);
|
||||
ostream& write(const signed char *s, int n);
|
||||
ostream& write(const void *s, int n);
|
||||
#endif
|
||||
ostream& seekp(streampos);
|
||||
ostream& seekp(streamoff, _seek_dir);
|
||||
@@ -153,15 +150,12 @@ protected:
|
||||
istream& read(void *ptr, streamsize n)
|
||||
{ return read((char*)ptr, n); }
|
||||
#ifdef _STREAM_COMPAT
|
||||
// [zooey]: added for R5-compatibility
|
||||
istream& read(char *ptr, int n)
|
||||
{ return read((char*)ptr, (streamsize)n); }
|
||||
istream& read(unsigned char *ptr, int n)
|
||||
{ return read((char*)ptr, (streamsize)n); }
|
||||
istream& read(signed char *ptr, int n)
|
||||
{ return read((char*)ptr, (streamsize)n); }
|
||||
istream& read(void *ptr, int n)
|
||||
{ return read((char*)ptr, (streamsize)n); }
|
||||
// [zooey]: added for R5-compatibility with bdb,
|
||||
// these can't be inlined as they wouldn't end up in the lib then.
|
||||
istream& read(char *ptr, int n);
|
||||
istream& read(unsigned char *ptr, int n);
|
||||
istream& read(signed char *ptr, int n);
|
||||
istream& read(void *ptr, int n);
|
||||
#endif
|
||||
istream& get(streambuf& sb, char delim = '\n');
|
||||
istream& gets(char **s, char delim = '\n');
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#! /bin/sh
|
||||
|
||||
BINUTILS=binutils-2.15-beos
|
||||
GCC=gcc-2.95.3-beos
|
||||
BINUTILS=binutils
|
||||
GCC=gcc
|
||||
|
||||
echo generation html-docs for as...
|
||||
ln -sf ../../$BINUTILS/gas/doc/all.texi asconfig.texi
|
||||
@@ -49,7 +49,7 @@ texi2html -split=section -nonumber -top_file=index.html -toc_file=toc.html -subd
|
||||
ln -sf iostream/index.html iostream.html
|
||||
|
||||
echo generation html-docs for ld...
|
||||
texi2html -split=section -top_file=index.html -toc_file=toc.html -subdir=ld -I ../../binutils-2.15-beos/bfd/doc ../../$BINUTILS/ld/ld.texinfo
|
||||
texi2html -split=section -top_file=index.html -toc_file=toc.html -subdir=ld -I ../../$BINUTILS/bfd/doc ../../$BINUTILS/ld/ld.texinfo
|
||||
ln -sf ld/index.html ld.html
|
||||
|
||||
echo generation html-docs for ldint...
|
||||
|
||||
Reference in New Issue
Block a user