Revised source dependencies
This commit is contained in:
117
lib/Makefile
117
lib/Makefile
@@ -7,12 +7,12 @@ include ../Makefile.global
|
||||
CLCOMM_SRCS = clcomm.c client.c crc.c semafore.c signame.c
|
||||
CLCOMM_OBJS = clcomm.o client.o crc.o semafore.o signame.o
|
||||
CLCOMM_HDRS = clcomm.h
|
||||
COMMON_SRCS = attach.c charconv_utf.c falists.c hdr.c msgflags.c parsedate.c rfcmsg.c unpacker.c \
|
||||
COMMON_SRCS = attach.c charconv_utf.c falists.c hdr.c parsedate.c rfcmsg.c unpacker.c \
|
||||
batchrd.c charset.c ftn.c nodelist.c pktname.c mangle.c \
|
||||
charconv.c dostran.c ftnmsg.c mbfile.c nodelock.c rawio.c strcasestr.c \
|
||||
charconv_hz.c execute.c expipe.c getheader.c mime.c noderecord.c rfcaddr.c strutil.c \
|
||||
charconv_jp.c faddr.c gmtoffset.c packet.c rfcdate.c term.c
|
||||
COMMON_OBJS = ftscprod.o attach.o charconv_utf.o falists.o hdr.o msgflags.o parsedate.o rfcmsg.o unpacker.o \
|
||||
COMMON_OBJS = ftscprod.o attach.o charconv_utf.o falists.o hdr.o parsedate.o rfcmsg.o unpacker.o \
|
||||
batchrd.o charset.o ftn.o nodelist.o pktname.o mangle.o \
|
||||
charconv.o dostran.o ftnmsg.o mbfile.o nodelock.o rawio.o strcasestr.o \
|
||||
charconv_hz.o execute.o expipe.o getheader.o mime.o noderecord.o rfcaddr.o strutil.o \
|
||||
@@ -115,61 +115,60 @@ depend: ftscprod.c
|
||||
|
||||
# DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT
|
||||
# Dependencies generated by make depend
|
||||
clcomm.o: libs.h clcomm.h
|
||||
client.o: libs.h clcomm.h
|
||||
crc.o: libs.h clcomm.h
|
||||
semafore.o: libs.h structs.h clcomm.h common.h
|
||||
signame.o: libs.h clcomm.h
|
||||
attach.o: libs.h structs.h users.h records.h clcomm.h common.h
|
||||
charconv_utf.o: libs.h structs.h common.h
|
||||
falists.o: libs.h structs.h clcomm.h common.h
|
||||
hdr.o: libs.h structs.h common.h
|
||||
msgflags.o: libs.h structs.h clcomm.h common.h
|
||||
parsedate.o: libs.h structs.h common.h
|
||||
rfcmsg.o: libs.h structs.h users.h records.h common.h clcomm.h
|
||||
unpacker.o: libs.h structs.h users.h records.h clcomm.h common.h
|
||||
batchrd.o: libs.h structs.h clcomm.h common.h
|
||||
charset.o: libs.h structs.h common.h clcomm.h
|
||||
ftn.o: libs.h structs.h users.h records.h clcomm.h dbftn.h common.h
|
||||
nodelist.o: libs.h structs.h users.h records.h clcomm.h common.h
|
||||
pktname.o: libs.h structs.h users.h records.h clcomm.h common.h
|
||||
mangle.o: libs.h structs.h clcomm.h common.h
|
||||
charconv.o: libs.h structs.h users.h records.h common.h clcomm.h
|
||||
dostran.o: libs.h structs.h users.h records.h common.h
|
||||
ftnmsg.o: libs.h structs.h common.h clcomm.h
|
||||
mbfile.o: libs.h structs.h clcomm.h common.h
|
||||
nodelock.o: libs.h structs.h clcomm.h common.h
|
||||
rawio.o: libs.h structs.h common.h
|
||||
strcasestr.o: libs.h
|
||||
charconv_hz.o: libs.h structs.h common.h clcomm.h
|
||||
execute.o: libs.h structs.h clcomm.h common.h
|
||||
expipe.o: libs.h structs.h clcomm.h common.h
|
||||
getheader.o: libs.h structs.h users.h records.h clcomm.h common.h
|
||||
mime.o: libs.h structs.h clcomm.h common.h
|
||||
noderecord.o: libs.h structs.h common.h users.h records.h dbnode.h common.h
|
||||
rfcaddr.o: libs.h structs.h users.h records.h clcomm.h common.h
|
||||
strutil.o: libs.h structs.h common.h
|
||||
charconv_jp.o: libs.h structs.h common.h
|
||||
faddr.o: libs.h structs.h common.h
|
||||
gmtoffset.o: libs.h structs.h common.h
|
||||
packet.o: libs.h structs.h users.h records.h clcomm.h common.h dbnode.h
|
||||
rfcdate.o: libs.h structs.h common.h clcomm.h
|
||||
term.o: libs.h structs.h users.h ansi.h records.h common.h
|
||||
dbcfg.o: libs.h mbse.h structs.h users.h records.h dbcfg.h
|
||||
dbdupe.o: libs.h structs.h clcomm.h dbdupe.h
|
||||
dbftn.o: libs.h structs.h users.h records.h dbcfg.h dbftn.h
|
||||
dbmsgs.o: libs.h structs.h users.h records.h clcomm.h dbcfg.h dbmsgs.h
|
||||
dbnode.o: libs.h structs.h common.h users.h records.h clcomm.h dbcfg.h dbnode.h
|
||||
dbtic.o: libs.h structs.h users.h records.h clcomm.h dbcfg.h dbtic.h
|
||||
dbuser.o: libs.h structs.h users.h records.h dbcfg.h dbuser.h
|
||||
jammsg.o: libs.h clcomm.h msgtext.h msg.h jam.h jammsg.h
|
||||
msg.o: libs.h msgtext.h msg.h jammsg.h
|
||||
msgtext.o: libs.h msgtext.h msg.h
|
||||
nntp.o: libs.h structs.h users.h records.h clcomm.h mbinet.h
|
||||
pop3.o: libs.h structs.h users.h records.h clcomm.h mbinet.h
|
||||
smtp.o: libs.h structs.h users.h records.h clcomm.h mbinet.h
|
||||
diesel.o: libs.h diesel.h
|
||||
mbdiesel.o: libs.h structs.h users.h records.h common.h clcomm.h diesel.h
|
||||
memwatch.o: ../config.h ../config.h libs.h memwatch.h
|
||||
ftscprod.o: libs.h structs.h common.h
|
||||
clcomm.o: ../config.h libs.h memwatch.h clcomm.h
|
||||
client.o: ../config.h libs.h memwatch.h clcomm.h
|
||||
crc.o: ../config.h libs.h memwatch.h clcomm.h
|
||||
semafore.o: ../config.h libs.h memwatch.h structs.h clcomm.h common.h
|
||||
signame.o: ../config.h libs.h memwatch.h clcomm.h
|
||||
attach.o: ../config.h libs.h memwatch.h structs.h users.h records.h clcomm.h common.h
|
||||
charconv_utf.o: ../config.h libs.h memwatch.h structs.h common.h
|
||||
falists.o: ../config.h libs.h memwatch.h structs.h clcomm.h common.h
|
||||
hdr.o: ../config.h libs.h memwatch.h structs.h common.h
|
||||
parsedate.o: ../config.h libs.h memwatch.h structs.h common.h
|
||||
rfcmsg.o: ../config.h libs.h memwatch.h structs.h users.h records.h common.h clcomm.h
|
||||
unpacker.o: ../config.h libs.h memwatch.h structs.h users.h records.h clcomm.h common.h
|
||||
batchrd.o: ../config.h libs.h memwatch.h structs.h clcomm.h common.h
|
||||
charset.o: ../config.h libs.h memwatch.h structs.h common.h clcomm.h
|
||||
ftn.o: ../config.h libs.h memwatch.h structs.h users.h records.h clcomm.h dbftn.h common.h
|
||||
nodelist.o: ../config.h libs.h memwatch.h structs.h users.h records.h clcomm.h common.h
|
||||
pktname.o: ../config.h libs.h memwatch.h structs.h users.h records.h clcomm.h common.h
|
||||
mangle.o: ../config.h libs.h memwatch.h structs.h clcomm.h common.h
|
||||
charconv.o: ../config.h libs.h memwatch.h structs.h users.h records.h common.h clcomm.h
|
||||
dostran.o: ../config.h libs.h memwatch.h structs.h users.h records.h common.h
|
||||
ftnmsg.o: ../config.h libs.h memwatch.h structs.h common.h clcomm.h
|
||||
mbfile.o: ../config.h libs.h memwatch.h structs.h clcomm.h common.h
|
||||
nodelock.o: ../config.h libs.h memwatch.h structs.h clcomm.h common.h
|
||||
rawio.o: ../config.h libs.h memwatch.h structs.h common.h
|
||||
strcasestr.o: ../config.h libs.h memwatch.h
|
||||
charconv_hz.o: ../config.h libs.h memwatch.h structs.h common.h clcomm.h
|
||||
execute.o: ../config.h libs.h memwatch.h structs.h clcomm.h common.h
|
||||
expipe.o: ../config.h libs.h memwatch.h structs.h clcomm.h common.h
|
||||
getheader.o: ../config.h libs.h memwatch.h structs.h users.h records.h clcomm.h common.h
|
||||
mime.o: ../config.h libs.h memwatch.h structs.h clcomm.h common.h
|
||||
noderecord.o: ../config.h libs.h memwatch.h structs.h common.h users.h records.h dbnode.h common.h
|
||||
rfcaddr.o: ../config.h libs.h memwatch.h structs.h users.h records.h clcomm.h common.h
|
||||
strutil.o: ../config.h libs.h memwatch.h structs.h common.h
|
||||
charconv_jp.o: ../config.h libs.h memwatch.h structs.h common.h
|
||||
faddr.o: ../config.h libs.h memwatch.h structs.h common.h
|
||||
gmtoffset.o: ../config.h libs.h memwatch.h structs.h common.h
|
||||
packet.o: ../config.h libs.h memwatch.h structs.h users.h records.h clcomm.h common.h dbnode.h
|
||||
rfcdate.o: ../config.h libs.h memwatch.h structs.h common.h clcomm.h
|
||||
term.o: ../config.h libs.h memwatch.h structs.h users.h ansi.h records.h common.h
|
||||
dbcfg.o: ../config.h libs.h memwatch.h mbse.h structs.h users.h records.h dbcfg.h
|
||||
dbdupe.o: ../config.h libs.h memwatch.h structs.h clcomm.h dbdupe.h
|
||||
dbftn.o: ../config.h libs.h memwatch.h structs.h users.h records.h dbcfg.h dbftn.h
|
||||
dbmsgs.o: ../config.h libs.h memwatch.h structs.h users.h records.h clcomm.h dbcfg.h dbmsgs.h
|
||||
dbnode.o: ../config.h libs.h memwatch.h structs.h common.h users.h records.h clcomm.h dbcfg.h dbnode.h
|
||||
dbtic.o: ../config.h libs.h memwatch.h structs.h users.h records.h clcomm.h dbcfg.h dbtic.h
|
||||
dbuser.o: ../config.h libs.h memwatch.h structs.h users.h records.h dbcfg.h dbuser.h
|
||||
jammsg.o: ../config.h libs.h memwatch.h clcomm.h msgtext.h msg.h jam.h jammsg.h
|
||||
msg.o: ../config.h libs.h memwatch.h msgtext.h msg.h jammsg.h
|
||||
msgtext.o: ../config.h libs.h memwatch.h msgtext.h msg.h
|
||||
nntp.o: ../config.h libs.h memwatch.h structs.h users.h records.h clcomm.h mbinet.h
|
||||
pop3.o: ../config.h libs.h memwatch.h structs.h users.h records.h clcomm.h mbinet.h
|
||||
smtp.o: ../config.h libs.h memwatch.h structs.h users.h records.h clcomm.h mbinet.h
|
||||
diesel.o: ../config.h libs.h memwatch.h diesel.h
|
||||
mbdiesel.o: ../config.h libs.h memwatch.h structs.h users.h records.h common.h clcomm.h diesel.h
|
||||
memwatch.o: ../config.h libs.h memwatch.h
|
||||
ftscprod.o: ../config.h libs.h memwatch.h structs.h common.h
|
||||
# End of generated dependencies
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "users.h"
|
||||
#include "records.h"
|
||||
|
@@ -29,7 +29,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "clcomm.h"
|
||||
#include "common.h"
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "users.h"
|
||||
#include "records.h"
|
||||
|
@@ -29,7 +29,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "common.h"
|
||||
#include "clcomm.h"
|
||||
|
@@ -29,7 +29,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "common.h"
|
||||
|
||||
|
@@ -29,7 +29,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "common.h"
|
||||
|
||||
|
@@ -29,7 +29,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "common.h"
|
||||
#include "clcomm.h"
|
||||
|
@@ -29,7 +29,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "clcomm.h"
|
||||
|
||||
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "clcomm.h"
|
||||
|
||||
static int sock = -1; /* Unix Datagram socket */
|
||||
|
10
lib/common.h
10
lib/common.h
@@ -903,16 +903,6 @@ extern CYYSTYPE cyylval;
|
||||
time_t parsedate(char *, TIMEINFO *);
|
||||
|
||||
|
||||
/*
|
||||
* msgflags.c
|
||||
*/
|
||||
int flag_on(char *,char *);
|
||||
int flagset(char *);
|
||||
char *compose_flags(int,char *);
|
||||
char *strip_flags(char *);
|
||||
int flag_on(char *,char *);
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* strcasestr.c
|
||||
|
@@ -29,7 +29,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "clcomm.h"
|
||||
|
||||
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "mbse.h"
|
||||
#include "structs.h"
|
||||
#include "users.h"
|
||||
|
@@ -29,7 +29,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "clcomm.h"
|
||||
#include "dbdupe.h"
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "users.h"
|
||||
#include "records.h"
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "users.h"
|
||||
#include "records.h"
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "common.h"
|
||||
#include "users.h"
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "users.h"
|
||||
#include "records.h"
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "users.h"
|
||||
#include "records.h"
|
||||
|
@@ -326,7 +326,9 @@ documented above, in outstring.
|
||||
|
||||
*/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "diesel.h"
|
||||
|
||||
/* Get(<var>, <structure_type>) allocates a new <structure_type> and
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "users.h"
|
||||
#include "records.h"
|
||||
|
@@ -29,7 +29,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "clcomm.h"
|
||||
#include "common.h"
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "clcomm.h"
|
||||
#include "common.h"
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "common.h"
|
||||
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "clcomm.h"
|
||||
#include "common.h"
|
||||
|
@@ -31,7 +31,9 @@
|
||||
|
||||
#define DB_FIDONET
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "users.h"
|
||||
#include "records.h"
|
||||
|
@@ -29,7 +29,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "common.h"
|
||||
#include "clcomm.h"
|
||||
|
@@ -30,7 +30,9 @@
|
||||
|
||||
#define DB_NODES
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "users.h"
|
||||
#include "records.h"
|
||||
|
@@ -29,7 +29,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "common.h"
|
||||
|
||||
|
@@ -29,7 +29,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "common.h"
|
||||
|
||||
|
@@ -34,7 +34,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "clcomm.h"
|
||||
#include "msgtext.h"
|
||||
#include "msg.h"
|
||||
|
@@ -33,8 +33,6 @@
|
||||
#ifndef _LIBS_H
|
||||
#define _LIBS_H
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE 1
|
||||
#endif
|
||||
@@ -85,7 +83,6 @@
|
||||
#include <setjmp.h>
|
||||
#include <grp.h>
|
||||
#include <sys/resource.h>
|
||||
#include "../lib/memwatch.h"
|
||||
|
||||
#pragma pack(1)
|
||||
|
||||
|
@@ -30,7 +30,9 @@
|
||||
* Ideas taken from Samba, Copyright (C) Andrew Tridgell 1992-1998
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "clcomm.h"
|
||||
#include "common.h"
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "users.h"
|
||||
#include "records.h"
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "clcomm.h"
|
||||
#include "common.h"
|
||||
|
@@ -82,7 +82,6 @@
|
||||
** Include files
|
||||
***********************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
|
||||
|
@@ -29,7 +29,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "clcomm.h"
|
||||
#include "common.h"
|
||||
|
@@ -2,7 +2,9 @@
|
||||
#
|
||||
|
||||
BEGIN {
|
||||
print "#include \"../config.h\""
|
||||
print "#include \"libs.h\""
|
||||
print "#include \"memwatch.h\""
|
||||
print "#include \"structs.h\""
|
||||
print "#include \"common.h\""
|
||||
print ""
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "msgtext.h"
|
||||
#include "msg.h"
|
||||
#include "jammsg.h"
|
||||
|
134
lib/msgflags.c
134
lib/msgflags.c
@@ -1,134 +0,0 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* Purpose ...............: MBSE BBS Mail Gate
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2001
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10
|
||||
* 1971 BV IJmuiden
|
||||
* the Netherlands
|
||||
*
|
||||
* This file is part of MBSE BBS.
|
||||
*
|
||||
* This BBS is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation; either version 2, or (at your option) any
|
||||
* later version.
|
||||
*
|
||||
* MBSE BBS 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
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with MBSE BBS; see the file COPYING. If not, write to the Free
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "libs.h"
|
||||
#include "structs.h"
|
||||
#include "clcomm.h"
|
||||
#include "common.h"
|
||||
|
||||
|
||||
static char *flnm[] = {
|
||||
(char *)"PVT",(char *)"CRS",(char *)"RCV",(char *)"SNT",
|
||||
(char *)"ATT",(char *)"TRN",(char *)"ORP",(char *)"K/S",
|
||||
(char *)"LOC",(char *)"HLD",(char *)"RSV",(char *)"FRQ",
|
||||
(char *)"RRQ",(char *)"RRC",(char *)"ARQ",(char *)"FUP"
|
||||
};
|
||||
|
||||
|
||||
|
||||
int flagset(char *s)
|
||||
{
|
||||
char *buf,*p;
|
||||
int i;
|
||||
int fl=0;
|
||||
|
||||
buf=xstrcpy(s);
|
||||
for (p=strtok(buf," ,\t\n"); p; p=strtok(NULL," ,\t\n")) {
|
||||
for (i=0;i<16;i++)
|
||||
if (!strcasecmp(p,flnm[i])) {
|
||||
fl |= (1 << i);
|
||||
}
|
||||
}
|
||||
free(buf);
|
||||
return fl;
|
||||
}
|
||||
|
||||
|
||||
|
||||
char *compose_flags(int flags, char *fkludge)
|
||||
{
|
||||
int i;
|
||||
char *buf = NULL, *p;
|
||||
|
||||
if ((fkludge == NULL) && (!flags))
|
||||
return buf;
|
||||
|
||||
if (fkludge) {
|
||||
if (!isspace(fkludge[0]))
|
||||
buf=xstrcpy((char *)" ");
|
||||
buf=xstrcat(buf,fkludge);
|
||||
p=buf+strlen(buf)-1;
|
||||
while (isspace(*p))
|
||||
*p--='\0';
|
||||
}
|
||||
|
||||
for (i = 0; i < 16; i++)
|
||||
if ((flags & (1 << i)) && (!flag_on(flnm[i],buf))) {
|
||||
buf=xstrcat(buf,(char *)" ");
|
||||
buf=xstrcat(buf,flnm[i]);
|
||||
}
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
||||
|
||||
char *strip_flags(char *flags)
|
||||
{
|
||||
char *p,*q=NULL,*tok;
|
||||
int canonic,i;
|
||||
|
||||
if (flags == NULL)
|
||||
return NULL;
|
||||
|
||||
p=xstrcpy(flags);
|
||||
for (tok=strtok(flags,", \t\n");tok;tok=strtok(NULL,", \t\n")) {
|
||||
canonic=0;
|
||||
for (i=0;i<16;i++)
|
||||
if (strcasecmp(tok,flnm[i]) == 0)
|
||||
canonic=1;
|
||||
if (!canonic) {
|
||||
q=xstrcat(q,(char *)" ");
|
||||
q=xstrcat(q,tok);
|
||||
}
|
||||
}
|
||||
free(p);
|
||||
return q;
|
||||
}
|
||||
|
||||
|
||||
|
||||
int flag_on(char *flag, char *flags)
|
||||
{
|
||||
char *p, *tok;
|
||||
int up = FALSE;
|
||||
|
||||
if (flags == NULL)
|
||||
return FALSE;
|
||||
|
||||
p = xstrcpy(flags);
|
||||
for (tok = strtok(p, ", \t\n"); tok; tok = strtok(NULL, ", \t\n")) {
|
||||
if (strcasecmp(flag, tok) == 0)
|
||||
up = TRUE;
|
||||
}
|
||||
free(p);
|
||||
return up;
|
||||
}
|
||||
|
||||
|
@@ -29,7 +29,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "msgtext.h"
|
||||
#include "msg.h"
|
||||
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "users.h"
|
||||
#include "records.h"
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "users.h"
|
||||
#include "records.h"
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "clcomm.h"
|
||||
#include "common.h"
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "common.h"
|
||||
#include "users.h"
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "users.h"
|
||||
#include "records.h"
|
||||
|
@@ -19,7 +19,9 @@
|
||||
/* SUPPRESS 593 on yynewstate *//* Label was not used */
|
||||
/* SUPPRESS 595 on yypvt *//* Automatic variable may be used before set */
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "common.h"
|
||||
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "users.h"
|
||||
#include "records.h"
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "users.h"
|
||||
#include "records.h"
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "common.h"
|
||||
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "users.h"
|
||||
#include "records.h"
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "common.h"
|
||||
#include "clcomm.h"
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "users.h"
|
||||
#include "records.h"
|
||||
|
@@ -29,7 +29,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "clcomm.h"
|
||||
#include "common.h"
|
||||
|
@@ -29,7 +29,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "clcomm.h"
|
||||
|
||||
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "users.h"
|
||||
#include "records.h"
|
||||
|
@@ -1,5 +1,7 @@
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
|
||||
#ifndef HAVE_STRCASESTR
|
||||
|
||||
|
@@ -28,7 +28,9 @@
|
||||
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "common.h"
|
||||
|
||||
|
@@ -30,7 +30,9 @@
|
||||
|
||||
#define DB_USERS
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "users.h"
|
||||
#include "ansi.h"
|
||||
|
@@ -27,7 +27,9 @@
|
||||
**
|
||||
*/
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
|
||||
#error "Hey! Don't just compile this program, read the comments first!"
|
||||
#ifndef SIGSEGV
|
||||
|
@@ -30,7 +30,9 @@
|
||||
|
||||
#define DB_ARCHIVE
|
||||
|
||||
#include "../config.h"
|
||||
#include "libs.h"
|
||||
#include "memwatch.h"
|
||||
#include "structs.h"
|
||||
#include "users.h"
|
||||
#include "records.h"
|
||||
|
Reference in New Issue
Block a user