Some documentation fixes

This commit is contained in:
Michiel Broek 2003-12-20 21:13:22 +00:00
parent f3b74ad244
commit 63e3358b8f
6 changed files with 17 additions and 25 deletions

View File

@ -10,6 +10,7 @@ v0.39.4 08-Dec-2003
Cleanup in main makefile, added help.
Revised configure and all Makefiles for better support of
linking with threads libraries.
Changed endian tests using the configure script.
upgrade:
If you didn't change anything of the language defaults then

View File

@ -18,7 +18,7 @@ universal setup on most distributions.
Login as root and type the following commands to do the basic install:
cd /tmp
tar xfvz /pathtopackage/@PACKAGE@-@VERSION@.tar.gz
tar xfvj /@prefix@/@PACKAGE@-@VERSION@.tar.bz2
cd @PACKAGE@-@VERSION@
bash ./SETUP.sh
@ -27,7 +27,7 @@ necessary users. If this in successfull, logout and login as user "mbse".
To build and install mbse bbs type the following commands:
cd
tar xfvz /pathtopackage/@PACKAGE@-@VERSION@.tar.gz
tar xfvj /pathtopackage/@PACKAGE@-@VERSION@.tar.bz2
cd @PACKAGE@-@VERSION@
./configure
make
@ -50,7 +50,7 @@ Login as user "mbse", backup your bbs configuration, and then type the
following commands:
cd
tar xfvz /pathtopackage/@PACKAGE@-@VERSION@.tar.gz
tar xfvj /pathtopackage/@PACKAGE@-@VERSION@.tar.bz2
cd @PACKAGE@-@VERSION@
./configure
make

5
README
View File

@ -5,7 +5,7 @@ $Id$
Distribution naming scheme:
mbsebbs-0.33.18.tar.gz
mbsebbs-0.33.18.tar.bz2
| | | |
| | | +-------- minor patchlevel
| | +----------- minor version
@ -22,4 +22,7 @@ The even minor version numbers will be stable releases, they will be available
at http://www.mbse.dds.nl and at 2:280/2802. The first version using this
scheme is 0.36.00
For first time installing, see the file INSTALL. After installation, the html
guide is installed in /opt/mbse/html.

View File

@ -169,7 +169,7 @@ While in mbse's home directory (/opt/mbse) unpack the distribution archives:
tar xfvz /path/to/mbsebbs-@VERSION@.tar.bz2
</pre>
You now have the subdirectory with sources in the right place.
Next build the binaries and install them using the folowing commands:
Next build the binaries and install them using the following commands:
<pre>
cd ~/mbsebbs-@VERSION@
./configure

View File

@ -41,22 +41,11 @@
*/
int le_int(int val)
{
#ifdef BYTE_ORDER
if (BYTE_ORDER == 1234) {
return val;
} else if (BYTE_ORDER == 4321) {
#ifdef WORDS_BIGENDIAN
return ((val & 0xff) << 24) | (((val >> 8) & 0xff) << 16) | (((val >> 16) & 0xff) << 8) | ((val >> 24) & 0xff);
} else {
#endif
#ifdef __i386__
return val;
#else
return ((val & 0xff) << 24) | (((val >> 8) & 0xff) << 16) | (((val >> 16) & 0xff) << 8) | ((val >> 24) & 0xff);
return val;
#endif
#ifdef BYTE_ORDER
}
#endif
return val;
}

View File

@ -109,15 +109,14 @@ static int txoptions, rxoptions;
static char *put_long(char *buffer, long val)
{
#if defined(__i386__)
*(unsigned long *) buffer = (unsigned long) val;
#else
#ifdef WORDS_BIGENDIAN
buffer[0] = (unsigned long) val & 0xff;
buffer[1] = ((unsigned long) val >> 8) & 0xff;
buffer[2] = ((unsigned long) val >> 16) & 0xff;
buffer[3] = ((unsigned long) val >> 24) & 0xff;
#else
*(unsigned long *) buffer = (unsigned long) val;
#endif
return buffer;
}
@ -125,11 +124,11 @@ static char *put_long(char *buffer, long val)
static long get_long(char *buffer)
{
#if defined(__i386__)
return *(long *) buffer;
#else
#ifdef WORDS_BIGENDIAN
return ((unsigned long) ((unsigned char) buffer[0])) | ((unsigned long) ((unsigned char) buffer[1]) << 8) |
((unsigned long) ((unsigned char) buffer[2]) << 16) | ((unsigned long) ((unsigned char) buffer[3]) << 24);
#else
return *(long *) buffer;
#endif
}