Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit bdad094c authored by deuce's avatar deuce

Added required string wrappers - strlwr() and strupr()

parent a2f48c0b
......@@ -138,6 +138,7 @@ OBJECTS := ${OBJDIR}ODAuto${OBJFILE}\
${OBJDIR}ODSpawn${OBJFILE}\
${OBJDIR}ODStand${OBJFILE}\
${OBJDIR}ODStat${OBJFILE}\
${OBJDIR}ODStr${OBJFILE}\
${OBJDIR}ODUtil${OBJFILE}\
${OBJDIR}ODWCat${OBJFILE}\
${OBJDIR}ODWin${OBJFILE}
......
......@@ -42,6 +42,7 @@
#include <ctype.h>
#include "OpenDoor.h"
#include "ODStr.h"
#include "ODTypes.h"
#include "ODGen.h"
#include "ODPlat.h"
......
......@@ -45,6 +45,7 @@
#include <time.h>
#include "OpenDoor.h"
#include "ODStr.h"
#include "ODCore.h"
#include "ODGen.h"
#include "ODInEx.h"
......
......@@ -52,9 +52,7 @@
#include <ctype.h>
#include "OpenDoor.h"
#ifdef ODPLAT_NIX
#define stricmp strcasecmp
#endif
#include "ODStr.h"
#include "ODPlat.h"
#include "ODCore.h"
#include "ODInEx.h"
......
......@@ -80,6 +80,7 @@
#include <errno.h>
#include "OpenDoor.h"
#include "ODStr.h"
#include "ODGen.h"
#include "ODPlat.h"
#include "ODCom.h"
......
......@@ -56,6 +56,7 @@
#include <stdarg.h>
#include "OpenDoor.h"
#include "ODStr.h"
#include "ODCore.h"
#include "ODGen.h"
#include "ODCom.h"
......
......@@ -87,9 +87,7 @@
#include <time.h>
#include "OpenDoor.h"
#ifdef ODPLAT_NIX
#define strnicmp strncasecmp
#endif
#include "ODStr.h"
#include "ODCore.h"
#include "ODGen.h"
#include "ODScrn.h"
......
......@@ -73,6 +73,7 @@
#include <time.h>
#include "OpenDoor.h"
#include "ODStr.h"
#include "ODCore.h"
#include "ODGen.h"
#include "ODCom.h"
......
......@@ -48,6 +48,7 @@
#include <stdio.h>
#include "OpenDoor.h"
#include "ODStr.h"
#include "ODCore.h"
#include "ODGen.h"
#include "ODScrn.h"
......
......@@ -43,6 +43,7 @@
#include <time.h>
#include "OpenDoor.h"
#include "ODStr.h"
#include "ODCore.h"
#include "ODGen.h"
#include "ODScrn.h"
......
......@@ -58,6 +58,8 @@
#include "OpenDoor.h"
#ifdef ODPLAT_NIX
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
#endif
#include "ODCore.h"
#include "ODGen.h"
......
/* OpenDoors Online Software Programming Toolkit
* (C) Copyright 1991 - 1999 by Brian Pirie.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*
* File: ODStr.c
*
* Description: Functions used to mainuplate strings
*
* Revisions: Date Ver Who Change
* ---------------------------------------------------------------
* Aug 10, 2003 6.23 SH *nix support
*/
#include "OpenDoor.h"
#ifdef ODPLAT_NIX
#include <string.h>
int
strlwr(char *str)
{
size_t i;
for(i=0;i<strlen(str);i++)
{
if(str[i]>64 && str[i]<=91) str[i]=str[i]|32;
}
return 0;
}
int
strupr(char *str)
{
size_t i;
for(i=0;i<strlen(str);i++)
{
if(str[i]>96 && str[i]<123) str[i] &= 223;
}
return 0;
}
#endif
/* OpenDoors Online Software Programming Toolkit
* (C) Copyright 1991 - 1999 by Brian Pirie.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*
* File: ODStr.h
*
* Description: Functions used to maipulate strings
*
* Revisions: Date Ver Who Change
* ---------------------------------------------------------------
* Aug 10, 2003 6.23 SH Initial rev.
*/
#include "OpenDoor.h"
#ifndef _INC_ODSTR
#define _INC_ODSTR
#ifdef ODPLAT_NIX
#define strnicmp strncasecmp
#define stricmp strcasecmp
int strlwr(char *str);
int strupr(char *str);
#endif
#endif
......@@ -44,9 +44,7 @@
#include <stdio.h>
#include "OpenDoor.h"
#ifdef ODPLAT_NIX
#define stricmp strcasecmp
#endif
#include "ODStr.h"
#include "ODUtil.h"
#include "ODGen.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment