Compare commits
26 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
608a45e845 | ||
![]() |
934452544f | ||
![]() |
062d6e6818 | ||
![]() |
5acf4831a5 | ||
![]() |
31fbff02a7 | ||
![]() |
6f7a4bfee9 | ||
![]() |
5ab617f6b3 | ||
![]() |
b237e6f4b8 | ||
![]() |
cd2c72c632 | ||
![]() |
6fe3d6f48a | ||
![]() |
82c5b9b340 | ||
![]() |
5b3bbb90d4 | ||
![]() |
bf569decd5 | ||
![]() |
e46a476fde | ||
![]() |
963f5aeffb | ||
![]() |
1be22af909 | ||
![]() |
ac4d05617c | ||
![]() |
35f76b9b00 | ||
![]() |
d8ccb49a75 | ||
![]() |
b25d6372d1 | ||
![]() |
d04fc16dbc | ||
![]() |
dbeb2736c4 | ||
![]() |
e1df9471c1 | ||
![]() |
703bd701c5 | ||
![]() |
601765196b | ||
![]() |
cd3bbc28b3 |
62 changed files with 57112 additions and 27184 deletions
15
.gitattributes
vendored
15
.gitattributes
vendored
|
@ -3,9 +3,12 @@
|
|||
/COPYING -text
|
||||
/ChangeLog -text
|
||||
/LICENSE -text
|
||||
/Makefile.am -text
|
||||
/Makefile.in -text
|
||||
/NEWS -text
|
||||
/README.StupidServ -text
|
||||
/RELNOTES -text
|
||||
/RELNOTES.win32.txt -text
|
||||
/aclocal.m4 -text
|
||||
/b1ff.c -text
|
||||
/brooklyn.c -text
|
||||
/chef.c -text
|
||||
|
@ -15,17 +18,20 @@
|
|||
/configure -text
|
||||
/configure.in -text
|
||||
/drawl.c -text
|
||||
flex/austro.l -text
|
||||
flex/b1ff.l -text
|
||||
flex/brooklyn.l -text
|
||||
flex/chef.l -text
|
||||
flex/cockney.l -text
|
||||
flex/drawl.l -text
|
||||
flex/dubya.l -text
|
||||
flex/fudd.l -text
|
||||
flex/funetak.l -text
|
||||
flex/jethro.l -text
|
||||
flex/jive.l -text
|
||||
flex/kraut.l -text
|
||||
flex/pansy.l -text
|
||||
flex/pirate.l -text
|
||||
flex/postmodern.l -text
|
||||
flex/redneck.l -text
|
||||
flex/valspeak.l -text
|
||||
|
@ -39,12 +45,19 @@ flex/warez.l -text
|
|||
/modconfig.h.in -text
|
||||
/pansy.c -text
|
||||
/postmodern.c -text
|
||||
/pulse.xml -text
|
||||
/redneck.c -text
|
||||
/s_help.c -text
|
||||
/ss.c -text
|
||||
/ss.h -text
|
||||
/stamp-h1 -text
|
||||
/stupidserv.sln -text
|
||||
/stupidserv.vcproj -text
|
||||
/talkfilters.c -text
|
||||
/talkfilters.h -text
|
||||
/valspeak.c -text
|
||||
/warez.c -text
|
||||
win32/StupidServ.qsp -text
|
||||
win32/buildwin32snap.bat -text
|
||||
win32/modconfigwin32.h -text
|
||||
win32/neostatsversion.rc -text
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
StupidServ Module for NeoStats Changelog.
|
||||
==============================================================================
|
||||
3.0.0 - Fish
|
||||
- Win32 build files and minor fixes (F)
|
||||
- Upgrade to TalkFilters 2.3.8 which adds a few new translations (F)
|
||||
- StupidServ had more leaks than a swimming pool after a atomic bomb. Fixed (F)
|
||||
|
||||
3.0.a3 - Mark
|
||||
- Port to version 3.0 API (M)
|
||||
|
||||
1.3 - 29/09/200 - Fish (F) & Mark *(M)
|
||||
- Added Marks segv code and modinit tidyups (M/F)
|
||||
- Added "make dist" support to makefile/configure (M)
|
||||
|
|
16
Makefile.am
Normal file
16
Makefile.am
Normal file
|
@ -0,0 +1,16 @@
|
|||
AUTOMAKE_OPTIONS = foreign
|
||||
ACLOCAL_AMFLAGS = -I autotools
|
||||
AM_MAKEFLAGS = -s
|
||||
|
||||
pkglib_LTLIBRARIES = stupidserv.la
|
||||
stupidserv_la_SOURCES = ss.c s_help.c flex/b1ff.l flex/chef.l common.c flex/fudd.l flex/jethro.l flex/kraut.l flex/postmodern.l talkfilters.c \
|
||||
flex/warez.l flex/brooklyn.l flex/cockney.l flex/drawl.l flex/funetak.l flex/jive.l flex/pansy.l flex/redneck.l flex/valspeak.l \
|
||||
flex/austro.l flex/dubya.l flex/pirate.l
|
||||
noinst_HEADERS = common.h ss.h talkfilters.h
|
||||
|
||||
stupidserv_la_LDFLAGS = -module -avoid-version -noundefined
|
||||
|
||||
EXTRA_DIST = autotools/ccdv.c autotools/shtool RELNOTES
|
||||
|
||||
|
||||
include $(top_srcdir)/autotools/rules.mk
|
837
Makefile.in
837
Makefile.in
|
@ -1,49 +1,812 @@
|
|||
#Neostats Module Makefile!
|
||||
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
top_builddir = .
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = @INSTALL@
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
DIST_COMMON = $(am__configure_deps) $(noinst_HEADERS) \
|
||||
$(srcdir)/Makefile.am $(srcdir)/Makefile.in \
|
||||
$(srcdir)/modconfig.h.in $(top_srcdir)/autotools/rules.mk \
|
||||
$(top_srcdir)/configure AUTHORS COPYING ChangeLog NEWS \
|
||||
austro.c autotools/compile autotools/config.guess \
|
||||
autotools/config.sub autotools/depcomp autotools/install-sh \
|
||||
autotools/ltmain.sh autotools/missing autotools/mkinstalldirs \
|
||||
autotools/ylwrap b1ff.c brooklyn.c chef.c cockney.c drawl.c \
|
||||
dubya.c fudd.c funetak.c install-sh jethro.c jive.c kraut.c \
|
||||
pansy.c pirate.c postmodern.c redneck.c valspeak.c warez.c
|
||||
subdir = .
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/autotools/acinclude.m4 \
|
||||
$(top_srcdir)/autotools/ax_distversion.m4 \
|
||||
$(top_srcdir)/autotools/ax_maintainer_mode_auto_silent.m4 \
|
||||
$(top_srcdir)/autotools/ccdv.m4 $(top_srcdir)/configure.in
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||
configure.lineno configure.status.lineno
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/autotools/mkinstalldirs
|
||||
CONFIG_HEADER = modconfig.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
|
||||
am__installdirs = "$(DESTDIR)$(pkglibdir)"
|
||||
pkglibLTLIBRARIES_INSTALL = $(INSTALL)
|
||||
LTLIBRARIES = $(pkglib_LTLIBRARIES)
|
||||
stupidserv_la_LIBADD =
|
||||
am_stupidserv_la_OBJECTS = ss.lo s_help.lo b1ff.lo chef.lo common.lo \
|
||||
fudd.lo jethro.lo kraut.lo postmodern.lo talkfilters.lo \
|
||||
warez.lo brooklyn.lo cockney.lo drawl.lo funetak.lo jive.lo \
|
||||
pansy.lo redneck.lo valspeak.lo austro.lo dubya.lo pirate.lo
|
||||
stupidserv_la_OBJECTS = $(am_stupidserv_la_OBJECTS)
|
||||
DEFAULT_INCLUDES = -I. -I$(srcdir) -I.
|
||||
depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
|
||||
am__depfiles_maybe = depfiles
|
||||
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
|
||||
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
|
||||
$(AM_CFLAGS) $(CFLAGS)
|
||||
CCLD = $(CC)
|
||||
LEXCOMPILE = $(LEX) $(LFLAGS) $(AM_LFLAGS)
|
||||
LTLEXCOMPILE = $(LIBTOOL) --mode=compile $(LEX) $(LFLAGS) $(AM_LFLAGS)
|
||||
YLWRAP = $(top_srcdir)/autotools/ylwrap
|
||||
SOURCES = $(stupidserv_la_SOURCES)
|
||||
DIST_SOURCES = $(stupidserv_la_SOURCES)
|
||||
HEADERS = $(noinst_HEADERS)
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
top_distdir = $(distdir)
|
||||
am__remove_distdir = \
|
||||
{ test ! -d $(distdir) \
|
||||
|| { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
|
||||
&& rm -fr $(distdir); }; }
|
||||
DIST_ARCHIVES = $(distdir).tar.gz
|
||||
GZIP_ENV = --best
|
||||
distuninstallcheck_listfiles = find . -type f -print
|
||||
distcleancheck_listfiles = find . -type f -print
|
||||
pkglibdir = $(prefix)/modules
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMDEP_FALSE = @AMDEP_FALSE@
|
||||
AMDEP_TRUE = @AMDEP_TRUE@
|
||||
AMTAR = @AMTAR@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CCDV = @CCDV@
|
||||
CFLAGS = @CFLAGS@
|
||||
LDFLAGS = @LIBS@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DIRINST = @DIRINST@
|
||||
DISTDIRVERSION = @DISTDIRVERSION@
|
||||
ECHO = @ECHO@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
GREP = @GREP@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
DIRECTORY = @DIRINST@/dl/
|
||||
INCLUDES = -I@DIRINST@/include/ -I.
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LEX = @LEX@
|
||||
LEXLIB = @LEXLIB@
|
||||
LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBTOOL_DEPS = @LIBTOOL_DEPS@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAINT = @MAINT@
|
||||
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
|
||||
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
OBJEXT = @OBJEXT@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
RANLIB = @RANLIB@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRIP = @STRIP@
|
||||
USECCDV = @USECCDV@
|
||||
VERSION = @VERSION@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
||||
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
datadir = $(prefix)/data
|
||||
datarootdir = @datarootdir@
|
||||
docdir = $(prefix)/doc
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
wi_PWD = @wi_PWD@
|
||||
AUTOMAKE_OPTIONS = foreign
|
||||
ACLOCAL_AMFLAGS = -I autotools
|
||||
AM_MAKEFLAGS = -s
|
||||
pkglib_LTLIBRARIES = stupidserv.la
|
||||
stupidserv_la_SOURCES = ss.c s_help.c flex/b1ff.l flex/chef.l common.c flex/fudd.l flex/jethro.l flex/kraut.l flex/postmodern.l talkfilters.c \
|
||||
flex/warez.l flex/brooklyn.l flex/cockney.l flex/drawl.l flex/funetak.l flex/jive.l flex/pansy.l flex/redneck.l flex/valspeak.l \
|
||||
flex/austro.l flex/dubya.l flex/pirate.l
|
||||
|
||||
SRCS= ss.c s_help.c b1ff.c chef.c common.c fudd.c jethro.c kraut.c postmodern.c talkfilters.c warez.c brooklyn.c cockney.c drawl.c funetak.c jive.c pansy.c redneck.c valspeak.c
|
||||
OBJS= ${SRCS:.c=.o}
|
||||
TARGET= stupidserv.so
|
||||
DOCS=README.StupidServ
|
||||
DATA=
|
||||
DISTFILES = $(SRCS) $(DATA) $(DOCS) modconfig.h.in configure install-sh ChangeLog Makefile.in common.h talkfilters.h ss.h
|
||||
DISTDIR = @PACKAGE@-@VERSION@
|
||||
noinst_HEADERS = common.h ss.h talkfilters.h
|
||||
stupidserv_la_LDFLAGS = -module -avoid-version -noundefined
|
||||
EXTRA_DIST = autotools/ccdv.c autotools/shtool RELNOTES
|
||||
LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
|
||||
$(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
|
||||
distdir = @DISTDIRVERSION@
|
||||
all: modconfig.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-am
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .l .lo .o .obj
|
||||
am--refresh:
|
||||
@:
|
||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/autotools/rules.mk $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
|
||||
cd $(srcdir) && $(AUTOMAKE) --foreign \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
echo ' $(SHELL) ./config.status'; \
|
||||
$(SHELL) ./config.status;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
$(SHELL) ./config.status --recheck
|
||||
|
||||
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
||||
cd $(srcdir) && $(AUTOCONF)
|
||||
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
|
||||
cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
||||
|
||||
modconfig.h: stamp-h1
|
||||
@if test ! -f $@; then \
|
||||
rm -f stamp-h1; \
|
||||
$(MAKE) stamp-h1; \
|
||||
else :; fi
|
||||
|
||||
stamp-h1: $(srcdir)/modconfig.h.in $(top_builddir)/config.status
|
||||
@rm -f stamp-h1
|
||||
cd $(top_builddir) && $(SHELL) ./config.status modconfig.h
|
||||
$(srcdir)/modconfig.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
||||
cd $(top_srcdir) && $(AUTOHEADER)
|
||||
rm -f stamp-h1
|
||||
touch $@
|
||||
|
||||
distclean-hdr:
|
||||
-rm -f modconfig.h stamp-h1
|
||||
|
||||
uninstall-pkglibLTLIBRARIES:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@set -x; list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \
|
||||
p=$(am__strip_dir) \
|
||||
echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$p'"; \
|
||||
$(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$p"; \
|
||||
done
|
||||
|
||||
clean-pkglibLTLIBRARIES:
|
||||
-test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES)
|
||||
@list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \
|
||||
dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
|
||||
test "$$dir" != "$$p" || dir=.; \
|
||||
echo "rm -f \"$${dir}/so_locations\""; \
|
||||
rm -f "$${dir}/so_locations"; \
|
||||
done
|
||||
stupidserv.la: $(stupidserv_la_OBJECTS) $(stupidserv_la_DEPENDENCIES)
|
||||
$(LINK) -rpath $(pkglibdir) $(stupidserv_la_LDFLAGS) $(stupidserv_la_OBJECTS) $(stupidserv_la_LIBADD) $(LIBS)
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.$(OBJEXT)
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/austro.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/b1ff.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/brooklyn.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/chef.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cockney.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/common.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drawl.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dubya.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fudd.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/funetak.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jethro.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jive.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kraut.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pansy.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pirate.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/postmodern.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/redneck.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/s_help.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ss.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/talkfilters.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/valspeak.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/warez.Plo@am__quote@
|
||||
|
||||
.l.c:
|
||||
$(SHELL) $(YLWRAP) $< $(LEX_OUTPUT_ROOT).c $@ -- $(LEXCOMPILE)
|
||||
|
||||
b1ff.c: flex/b1ff.l
|
||||
$(SHELL) $(YLWRAP) `test -f 'flex/b1ff.l' || echo '$(srcdir)/'`flex/b1ff.l $(LEX_OUTPUT_ROOT).c b1ff.c -- $(LEX) $(LFLAGS) $(AM_LFLAGS)
|
||||
|
||||
chef.c: flex/chef.l
|
||||
$(SHELL) $(YLWRAP) `test -f 'flex/chef.l' || echo '$(srcdir)/'`flex/chef.l $(LEX_OUTPUT_ROOT).c chef.c -- $(LEX) $(LFLAGS) $(AM_LFLAGS)
|
||||
|
||||
fudd.c: flex/fudd.l
|
||||
$(SHELL) $(YLWRAP) `test -f 'flex/fudd.l' || echo '$(srcdir)/'`flex/fudd.l $(LEX_OUTPUT_ROOT).c fudd.c -- $(LEX) $(LFLAGS) $(AM_LFLAGS)
|
||||
|
||||
jethro.c: flex/jethro.l
|
||||
$(SHELL) $(YLWRAP) `test -f 'flex/jethro.l' || echo '$(srcdir)/'`flex/jethro.l $(LEX_OUTPUT_ROOT).c jethro.c -- $(LEX) $(LFLAGS) $(AM_LFLAGS)
|
||||
|
||||
kraut.c: flex/kraut.l
|
||||
$(SHELL) $(YLWRAP) `test -f 'flex/kraut.l' || echo '$(srcdir)/'`flex/kraut.l $(LEX_OUTPUT_ROOT).c kraut.c -- $(LEX) $(LFLAGS) $(AM_LFLAGS)
|
||||
|
||||
postmodern.c: flex/postmodern.l
|
||||
$(SHELL) $(YLWRAP) `test -f 'flex/postmodern.l' || echo '$(srcdir)/'`flex/postmodern.l $(LEX_OUTPUT_ROOT).c postmodern.c -- $(LEX) $(LFLAGS) $(AM_LFLAGS)
|
||||
|
||||
warez.c: flex/warez.l
|
||||
$(SHELL) $(YLWRAP) `test -f 'flex/warez.l' || echo '$(srcdir)/'`flex/warez.l $(LEX_OUTPUT_ROOT).c warez.c -- $(LEX) $(LFLAGS) $(AM_LFLAGS)
|
||||
|
||||
brooklyn.c: flex/brooklyn.l
|
||||
$(SHELL) $(YLWRAP) `test -f 'flex/brooklyn.l' || echo '$(srcdir)/'`flex/brooklyn.l $(LEX_OUTPUT_ROOT).c brooklyn.c -- $(LEX) $(LFLAGS) $(AM_LFLAGS)
|
||||
|
||||
cockney.c: flex/cockney.l
|
||||
$(SHELL) $(YLWRAP) `test -f 'flex/cockney.l' || echo '$(srcdir)/'`flex/cockney.l $(LEX_OUTPUT_ROOT).c cockney.c -- $(LEX) $(LFLAGS) $(AM_LFLAGS)
|
||||
|
||||
drawl.c: flex/drawl.l
|
||||
$(SHELL) $(YLWRAP) `test -f 'flex/drawl.l' || echo '$(srcdir)/'`flex/drawl.l $(LEX_OUTPUT_ROOT).c drawl.c -- $(LEX) $(LFLAGS) $(AM_LFLAGS)
|
||||
|
||||
funetak.c: flex/funetak.l
|
||||
$(SHELL) $(YLWRAP) `test -f 'flex/funetak.l' || echo '$(srcdir)/'`flex/funetak.l $(LEX_OUTPUT_ROOT).c funetak.c -- $(LEX) $(LFLAGS) $(AM_LFLAGS)
|
||||
|
||||
jive.c: flex/jive.l
|
||||
$(SHELL) $(YLWRAP) `test -f 'flex/jive.l' || echo '$(srcdir)/'`flex/jive.l $(LEX_OUTPUT_ROOT).c jive.c -- $(LEX) $(LFLAGS) $(AM_LFLAGS)
|
||||
|
||||
pansy.c: flex/pansy.l
|
||||
$(SHELL) $(YLWRAP) `test -f 'flex/pansy.l' || echo '$(srcdir)/'`flex/pansy.l $(LEX_OUTPUT_ROOT).c pansy.c -- $(LEX) $(LFLAGS) $(AM_LFLAGS)
|
||||
|
||||
redneck.c: flex/redneck.l
|
||||
$(SHELL) $(YLWRAP) `test -f 'flex/redneck.l' || echo '$(srcdir)/'`flex/redneck.l $(LEX_OUTPUT_ROOT).c redneck.c -- $(LEX) $(LFLAGS) $(AM_LFLAGS)
|
||||
|
||||
valspeak.c: flex/valspeak.l
|
||||
$(SHELL) $(YLWRAP) `test -f 'flex/valspeak.l' || echo '$(srcdir)/'`flex/valspeak.l $(LEX_OUTPUT_ROOT).c valspeak.c -- $(LEX) $(LFLAGS) $(AM_LFLAGS)
|
||||
|
||||
austro.c: flex/austro.l
|
||||
$(SHELL) $(YLWRAP) `test -f 'flex/austro.l' || echo '$(srcdir)/'`flex/austro.l $(LEX_OUTPUT_ROOT).c austro.c -- $(LEX) $(LFLAGS) $(AM_LFLAGS)
|
||||
|
||||
dubya.c: flex/dubya.l
|
||||
$(SHELL) $(YLWRAP) `test -f 'flex/dubya.l' || echo '$(srcdir)/'`flex/dubya.l $(LEX_OUTPUT_ROOT).c dubya.c -- $(LEX) $(LFLAGS) $(AM_LFLAGS)
|
||||
|
||||
pirate.c: flex/pirate.l
|
||||
$(SHELL) $(YLWRAP) `test -f 'flex/pirate.l' || echo '$(srcdir)/'`flex/pirate.l $(LEX_OUTPUT_ROOT).c pirate.c -- $(LEX) $(LFLAGS) $(AM_LFLAGS)
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
distclean-libtool:
|
||||
-rm -f libtool
|
||||
uninstall-info-am:
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: $(HEADERS) $(SOURCES) modconfig.h.in $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) modconfig.h.in $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$tags $$unique; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: $(HEADERS) $(SOURCES) modconfig.h.in $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) modconfig.h.in $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$tags $$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& cd $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) $$here
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
$(am__remove_distdir)
|
||||
mkdir $(distdir)
|
||||
$(mkdir_p) $(distdir)/autotools
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||
list='$(DISTFILES)'; for file in $$list; do \
|
||||
case $$file in \
|
||||
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||
esac; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
dir="/$$dir"; \
|
||||
$(mkdir_p) "$(distdir)$$dir"; \
|
||||
else \
|
||||
dir=''; \
|
||||
fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
fi; \
|
||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
|
||||
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|
||||
|| chmod -R a+r $(distdir)
|
||||
dist-gzip: distdir
|
||||
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-bzip2: distdir
|
||||
tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-tarZ: distdir
|
||||
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-shar: distdir
|
||||
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-zip: distdir
|
||||
-rm -f $(distdir).zip
|
||||
zip -rq $(distdir).zip $(distdir)
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist dist-all: distdir
|
||||
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||
$(am__remove_distdir)
|
||||
|
||||
# This target untars the dist file and tries a VPATH configuration. Then
|
||||
# it guarantees that the distribution is self-contained by making another
|
||||
# tarfile.
|
||||
distcheck: dist
|
||||
case '$(DIST_ARCHIVES)' in \
|
||||
*.tar.gz*) \
|
||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
|
||||
*.tar.bz2*) \
|
||||
bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
|
||||
*.tar.Z*) \
|
||||
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
|
||||
*.shar.gz*) \
|
||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
|
||||
*.zip*) \
|
||||
unzip $(distdir).zip ;;\
|
||||
esac
|
||||
chmod -R a-w $(distdir); chmod a+w $(distdir)
|
||||
mkdir $(distdir)/_build
|
||||
mkdir $(distdir)/_inst
|
||||
chmod a-w $(distdir)
|
||||
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
|
||||
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
|
||||
&& cd $(distdir)/_build \
|
||||
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
|
||||
$(DISTCHECK_CONFIGURE_FLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
|
||||
distuninstallcheck \
|
||||
&& chmod -R a-w "$$dc_install_base" \
|
||||
&& ({ \
|
||||
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
|
||||
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
|
||||
} || { rm -rf "$$dc_destdir"; exit 1; }) \
|
||||
&& rm -rf "$$dc_destdir" \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dist \
|
||||
&& rm -rf $(DIST_ARCHIVES) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck
|
||||
$(am__remove_distdir)
|
||||
@(echo "$(distdir) archives ready for distribution: "; \
|
||||
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
|
||||
sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(LTLIBRARIES) $(HEADERS) modconfig.h
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(pkglibdir)"; do \
|
||||
test -z "$$dir" || $(mkdir_p) "$$dir"; \
|
||||
done
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
-rm -f austro.c
|
||||
-rm -f b1ff.c
|
||||
-rm -f brooklyn.c
|
||||
-rm -f chef.c
|
||||
-rm -f cockney.c
|
||||
-rm -f drawl.c
|
||||
-rm -f dubya.c
|
||||
-rm -f fudd.c
|
||||
-rm -f funetak.c
|
||||
-rm -f jethro.c
|
||||
-rm -f jive.c
|
||||
-rm -f kraut.c
|
||||
-rm -f pansy.c
|
||||
-rm -f pirate.c
|
||||
-rm -f postmodern.c
|
||||
-rm -f redneck.c
|
||||
-rm -f valspeak.c
|
||||
-rm -f warez.c
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic clean-libtool clean-pkglibLTLIBRARIES \
|
||||
mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-compile distclean-generic \
|
||||
distclean-hdr distclean-libtool distclean-tags
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-exec-am: install-pkglibLTLIBRARIES
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-man:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||
-rm -rf $(top_srcdir)/autom4te.cache
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
||||
mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-info-am uninstall-pkglibLTLIBRARIES
|
||||
|
||||
.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
|
||||
clean-generic clean-libtool clean-pkglibLTLIBRARIES ctags dist \
|
||||
dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip \
|
||||
distcheck distclean distclean-compile distclean-generic \
|
||||
distclean-hdr distclean-libtool distclean-tags distcleancheck \
|
||||
distdir distuninstallcheck dvi dvi-am html html-am info \
|
||||
info-am install install-am install-data install-data-am \
|
||||
install-exec install-exec-am install-info install-info-am \
|
||||
install-man install-pkglibLTLIBRARIES install-strip \
|
||||
installcheck installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
||||
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
||||
tags uninstall uninstall-am uninstall-info-am \
|
||||
uninstall-pkglibLTLIBRARIES
|
||||
|
||||
|
||||
all: module
|
||||
.c.o:
|
||||
@USECCDV@ @echo "Building $@"
|
||||
@am__fastdepCC_TRUE@ @if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
|
||||
@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
|
||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
|
||||
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
|
||||
@am__fastdepCC_TRUE@ fi
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ @source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
|
||||
|
||||
.c.o:
|
||||
$(CC) -c -DHAVE_CONFIG_H -DLIBRARY_MODE $(CFLAGS) $(INCLUDES) $<
|
||||
.c.obj:
|
||||
@USECCDV@ @echo "Building $@"
|
||||
@am__fastdepCC_TRUE@ @if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
|
||||
@am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \
|
||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
|
||||
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
|
||||
@am__fastdepCC_TRUE@ fi
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ @source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(LTCOMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
|
||||
|
||||
module: $(OBJS)
|
||||
$(LD) -shared -o $(TARGET) $(LDFLAGS) $(OBJS)
|
||||
.c.lo:
|
||||
@USECCDV@ @echo "Building $@"
|
||||
@am__fastdepCC_TRUE@ @if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
|
||||
@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
|
||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \
|
||||
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
|
||||
@am__fastdepCC_TRUE@ fi
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ @source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
|
||||
|
||||
clean:
|
||||
/bin/rm -rf $(TARGET) *.o Makefile *.log modconfig.h
|
||||
install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES)
|
||||
@$(NORMAL_INSTALL)
|
||||
$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
|
||||
@list='ls .libs/*.so'; for p in $$list; do \
|
||||
if test -f $$p; then \
|
||||
f="`echo $$p | sed -e 's|^.*/||'`"; \
|
||||
$(CCDV) $(LIBTOOL) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(pkglibdir)/$$f; \
|
||||
if test "x#" != "x@USECCDV@"; then echo "Installing $$f"; fi; \
|
||||
else :; fi; \
|
||||
done
|
||||
|
||||
install: module
|
||||
$(INSTALL) -m 644 $(TARGET) $(DIRECTORY)
|
||||
$(INSTALL) -m 644 $(DOCS) $(DIRECTORY)../doc/
|
||||
install-binSCRIPTS: $(bin_SCRIPTS)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
|
||||
@list='$(bin_SCRIPTS)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
if test -f $$d$$p; then \
|
||||
f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
|
||||
$(CCDV) $(binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \
|
||||
if test "x#" != "x@USECCDV@"; then echo "Installing $$f"; fi; \
|
||||
else :; fi; \
|
||||
done
|
||||
|
||||
$(OBJS): Makefile
|
||||
install-dist_binSCRIPTS: $(dist_bin_SCRIPTS)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
|
||||
@list='$(dist_bin_SCRIPTS)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
if test -f $$d$$p; then \
|
||||
f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
|
||||
$(CCDV) $(dist_binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \
|
||||
if test "x#" != "x@USECCDV@"; then echo "Installing $$f"; fi; \
|
||||
else :; fi; \
|
||||
done
|
||||
|
||||
dist:
|
||||
@echo -n "Creating Directories"
|
||||
@-rm -rf $(DISTDIR)
|
||||
@mkdir $(DISTDIR)
|
||||
@echo "Done"
|
||||
@echo -n "Copying Core Distribution Files"
|
||||
@for file in $(DISTFILES); do \
|
||||
echo -n "."; \
|
||||
cp -pr $$file $(DISTDIR)/$$file; \
|
||||
done
|
||||
@echo "Done"
|
||||
@tar -czf $(DISTDIR).tar.gz $(DISTDIR)/*
|
||||
@echo "Tar file $(DISTDIR).tar.gz created, Freshmeat Time"
|
||||
install-dist_dataDATA: $(dist_data_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(datadir)" || $(mkdir_p) "$(DESTDIR)$(datadir)"
|
||||
@list='$(dist_data_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
$(CCDV) $(dist_dataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(datadir)/$$f"; \
|
||||
if test "x#" != "x@USECCDV@"; then echo "Installing $$f"; fi; \
|
||||
done
|
||||
|
||||
install-dist_docDATA: $(dist_doc_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(docdir)" || $(mkdir_p) "$(DESTDIR)$(docdir)"
|
||||
@list='$(dist_doc_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
$(CCDV) $(dist_docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \
|
||||
if test "x#" != "x@USECCDV@"; then echo "Installing $$f"; fi; \
|
||||
done
|
||||
|
||||
install-includeHEADERS: $(include_HEADERS)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
|
||||
@list='$(include_HEADERS)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
$(CCDV) $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
|
||||
if test "x#" != "x@USECCDV@"; then echo "Installing $$f"; fi; \
|
||||
done
|
||||
|
||||
install-binPROGRAMS: $(bin_PROGRAMS)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
|
||||
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||
p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
|
||||
if test -f $$p \
|
||||
|| test -f $$p1 \
|
||||
; then \
|
||||
f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
|
||||
$(CCDV) $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
|
||||
if test "x#" != "x@USECCDV@"; then echo "Installing $$f"; fi; \
|
||||
else :; fi; \
|
||||
done
|
||||
|
||||
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
|
||||
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||
if test -f $$p; then \
|
||||
f=$(am__strip_dir) \
|
||||
$(CCDV) $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
|
||||
if test "x#" != "x@USECCDV@"; then echo "Installing $$f"; fi; \
|
||||
else :; fi; \
|
||||
done
|
||||
|
||||
install-neoSCRIPTS: $(neo_SCRIPTS)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(neodir)" || $(mkdir_p) "$(DESTDIR)$(neodir)"
|
||||
@list='$(neo_SCRIPTS)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
if test -f $$d$$p; then \
|
||||
f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
|
||||
$(CCDV) $(neoSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(neodir)/$$f"; \
|
||||
else :; fi; \
|
||||
done
|
||||
distcleancheck:
|
||||
@:
|
||||
distuninstallcheck:
|
||||
@:
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
|
|
|
@ -1,61 +0,0 @@
|
|||
StupidServ 1.0
|
||||
=====================================================================
|
||||
This module is so stupid, I couldnt help but call it StupidServ.
|
||||
It servs absolutly no purpose on your network other than to have a
|
||||
laugh.
|
||||
It takes you text and will translate it to a "language" for you
|
||||
Currently, it has 15 languages available.
|
||||
|
||||
The actual module was inspired by "Talkfilters" which is a libary that
|
||||
was put together to bring them all together.
|
||||
|
||||
More information on "talkfilters" can be found
|
||||
at http://www2.dystance.net:8080/ping/talkfilters/
|
||||
|
||||
This module is *NOT* supported at all. I just thought I'd share it all
|
||||
with you as it was very easy to make, and can be a laugh when your
|
||||
bored
|
||||
|
||||
Fish.
|
||||
fish@dynam.ac
|
||||
http://www.neostats.net/
|
||||
|
||||
|
||||
|
||||
The following is from the original TalkFilters readme file:
|
||||
=====================================================================
|
||||
|
||||
This group of filters serves no utilitarian purpose but is nonetheless
|
||||
quite amusing and hence should be maintained for posterity.
|
||||
|
||||
These programs are maintained by Mark Lindner
|
||||
(mark_a_lindner@yahoo.com). The original authors of these programs are
|
||||
listed in the file `AUTHORS'.
|
||||
|
||||
If you are the author of one of these programs and do not wish to have
|
||||
it distributed in this package, contact the maintainer immediately.
|
||||
|
||||
These filters are provided for amusement only. No racial or societal
|
||||
slurs are intended.
|
||||
|
||||
Some of these filters contain vulgarity, and thus are inappropriate
|
||||
for some audiences. If you find something offensive in one or more of
|
||||
these filters, please do not flame me or ask me to censor or remove
|
||||
the filter(s) in question. Requests of this type will be silently
|
||||
ignored. Note that I am only the package maintainer; I am NOT the
|
||||
author of the translation rules in the filters (with the exception of
|
||||
the `wrap' filter).
|
||||
|
||||
These filters are not guaranteed to be idempotent across all inputs;
|
||||
that is, repeated applications of a given filter on an input may cause
|
||||
the output to differ each time. Moreover, some of the filters use
|
||||
randomization techniques so a given input is not guaranteed to produce
|
||||
the same output across invocations.
|
||||
|
||||
You no longer need to have `flex' (or any other lexer program, for
|
||||
that matter) to build and use this package. However, you *will* need a
|
||||
lexer (specifically, `flex') to recompile if you change any `.l'
|
||||
files.
|
||||
|
||||
Mark Lindner
|
||||
February 8, 2003
|
7
RELNOTES
Normal file
7
RELNOTES
Normal file
|
@ -0,0 +1,7 @@
|
|||
StupidServ 3.0.0
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
No Known Issues with this release
|
||||
|
||||
see http://wiki.neostats.net/confluence/display/StupidServ/Home for the
|
||||
online manual
|
7
RELNOTES.win32.txt
Normal file
7
RELNOTES.win32.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
StupidServ 3.0.0
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
No Known Issues with this release
|
||||
|
||||
see http://wiki.neostats.net/confluence/display/StupidServ/Home for the
|
||||
online manual
|
7293
aclocal.m4
vendored
Normal file
7293
aclocal.m4
vendored
Normal file
File diff suppressed because it is too large
Load diff
2285
brooklyn.c
2285
brooklyn.c
File diff suppressed because it is too large
Load diff
22
common.c
22
common.c
|
@ -18,24 +18,30 @@
|
|||
Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#ifdef WIN32
|
||||
#include "modconfigwin32.h"
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stddef.h>
|
||||
#include <stdarg.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
#include "common.h"
|
||||
|
||||
/*
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
*/
|
||||
|
||||
/*
|
||||
*/
|
||||
|
||||
void gtf_strbuf_init(gtf_databuf_t *sbuf, char *buf, size_t bufsz)
|
||||
{
|
||||
sbuf->buf = buf;
|
||||
|
@ -69,6 +75,8 @@ int gtf_strbuf_vprintf(gtf_databuf_t *buf, const char *fmt, ...)
|
|||
buf->pos += l;
|
||||
*(buf->pos) = 0;
|
||||
}
|
||||
|
||||
return(l);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
21
common.h
21
common.h
|
@ -24,8 +24,17 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
|
||||
#if (defined WIN32) && !(defined __MINGW32__)
|
||||
#define fileno _fileno
|
||||
#define strcasecmp stricmp
|
||||
#endif
|
||||
|
||||
#ifndef WIN32
|
||||
#include "modconfig.h"
|
||||
#else
|
||||
#include "modconfigwin32.h"
|
||||
#endif
|
||||
typedef struct
|
||||
{
|
||||
char *buf;
|
||||
|
@ -63,8 +72,8 @@ extern int gtf_strbuf_puts(gtf_databuf_t *buf, const char *s);
|
|||
extern int gtf_strbuf_putc(gtf_databuf_t *buf, char c);
|
||||
|
||||
#ifdef LIBRARY_MODE
|
||||
#define gtf_printf(args...) \
|
||||
gtf_strbuf_vprintf(buf, ## args)
|
||||
#define gtf_printf(...) \
|
||||
gtf_strbuf_vprintf(buf, __VA_ARGS__)
|
||||
#define gtf_putc(S) \
|
||||
gtf_strbuf_putc(buf, (S))
|
||||
#define gtf_puts(S) \
|
||||
|
@ -76,8 +85,10 @@ extern int gtf_strbuf_putc(gtf_databuf_t *buf, char c);
|
|||
fputs((S), stdout)
|
||||
#endif /* LIBRARY_MODE */
|
||||
|
||||
#if 0
|
||||
#define gtf_unput_last() \
|
||||
unput(*(yytext + yyleng - 1))
|
||||
#endif
|
||||
|
||||
#define gtf_match_case(X, Y) \
|
||||
isupper(X) ? toupper(Y) : tolower(Y)
|
||||
|
@ -88,8 +99,6 @@ extern int gtf_strbuf_putc(gtf_databuf_t *buf, char c);
|
|||
#define gtf_echo() \
|
||||
gtf_puts(yytext)
|
||||
|
||||
#define gtf_reset() \
|
||||
{ yyrestart(NULL); BEGIN(0); }
|
||||
|
||||
extern void gtf_random_seed(void);
|
||||
|
||||
|
@ -104,6 +113,6 @@ Options:\n\
|
|||
This program is a filter; it reads data from standard input, processes it,\n\
|
||||
and writes the results to standard output.\n"
|
||||
|
||||
#define GTF_VERSION "GNU Talk Filters v2.0"
|
||||
#define GTF_VERSION "GNU Talk Filters v" VERSION
|
||||
|
||||
#endif /* __gtf_common_h */
|
||||
|
|
107
configure.in
107
configure.in
|
@ -1,20 +1,30 @@
|
|||
dnl Process this file with autoconf to produce a configure script.
|
||||
AC_INIT(ss.c)
|
||||
AC_CONFIG_HEADER(modconfig.h)
|
||||
PACKAGE=StupidServ
|
||||
MODULE_MAJOR=1
|
||||
MODULE_MINOR=3
|
||||
VERSION=$MODULE_MAJOR.$MODULE_MINOR
|
||||
AC_DEFINE_UNQUOTED(MODULE_VERSION, "$VERSION")
|
||||
AC_DEFINE_UNQUOTED(MODULE_MAJOR, "$MODULE_MAJOR")
|
||||
AC_DEFINE_UNQUOTED(MODULE_MINOR, "$MODULE_MINOR")
|
||||
DIRINST=~/NeoStats/
|
||||
AC_PREFIX_DEFAULT(~/NeoStats/)
|
||||
CFLAGS="$CFLAGS -O2"
|
||||
AC_CONFIG_AUX_DIR(autotools)
|
||||
AM_CONFIG_HEADER(modconfig.h)
|
||||
AM_MAINTAINER_MODE
|
||||
MODPACKAGE=StupidServ
|
||||
MODULE_MAJOR=3
|
||||
MODULE_MINOR=0
|
||||
MODULE_REV=1
|
||||
MODVERSION=$MODULE_MAJOR.$MODULE_MINOR.$MODULE_REV
|
||||
AC_DEFINE_UNQUOTED(MODULE_VERSION, "$VERSION", "Complete Module Version")
|
||||
AC_DEFINE_UNQUOTED(MODULE_MAJOR, $MODULE_MAJOR, "Major Module Version")
|
||||
AC_DEFINE_UNQUOTED(MODULE_MINOR, $MODULE_MINOR, "Minor Module Version")
|
||||
AC_DEFINE_UNQUOTED(MODULE_REV, $MODULE_REV, "Module Revision")
|
||||
DIRINST=~/NeoStats3.0/
|
||||
AC_PREFIX_DEFAULT(~/NeoStats3.0/)
|
||||
AM_INIT_AUTOMAKE($MODPACKAGE, $MODVERSION)
|
||||
#AM_INIT_AUTOMAKE("","")
|
||||
CFLAGS="$CFLAGS -g -O2 -fno-strict-aliasing -DLIBRARY_MODE"
|
||||
|
||||
dnl Checks for programs.
|
||||
AC_PROG_CC
|
||||
AC_PROG_INSTALL
|
||||
AC_DISABLE_STATIC
|
||||
CARES_CLEAR_LIBTOOL_TAGS
|
||||
AC_PROG_LIBTOOL
|
||||
AM_PROG_LEX
|
||||
|
||||
AC_MSG_CHECKING(Location of NeoStats...)
|
||||
AC_ARG_WITH(neostats,
|
||||
|
@ -22,8 +32,7 @@ AC_ARG_WITH(neostats,
|
|||
[DIRINST=$withval])
|
||||
AC_MSG_RESULT($DIRINST)
|
||||
|
||||
|
||||
AC_CHECK_FILE($DIRINST/include/dl.h,
|
||||
AC_CHECK_FILE($DIRINST/include/neostats.h,
|
||||
[INCLUDEDIR="$DIRINST/include/"],
|
||||
[AC_MSG_ERROR(Can't find existing NeoStats Installation please supply with --with-neostats option)])
|
||||
|
||||
|
@ -35,11 +44,9 @@ AC_TRY_RUN(
|
|||
#include <config.h>
|
||||
#include <stdlib.h>
|
||||
int main(void) {
|
||||
if (MAJOR >= 2) {
|
||||
if (MINOR >= 5) {
|
||||
if (REV >= 14) {
|
||||
exit(0);
|
||||
}
|
||||
if (MAJOR >= 3) {
|
||||
if (MINOR >= 0) {
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
exit(1);
|
||||
|
@ -48,21 +55,21 @@ int main(void) {
|
|||
ns_version_ok='no',
|
||||
ns_version_ok='no')
|
||||
if test "$ns_version_ok" = "yes"; then
|
||||
AC_MSG_RESULT(Compatible Version);
|
||||
AC_MSG_RESULT(Compatible version);
|
||||
prefix=$DIRINST
|
||||
else
|
||||
AC_MSG_ERROR(This Module requires NeoStats 2.5.2 or Higher)
|
||||
AC_MSG_ERROR(This module requires NeoStats 3.0.a3-dev or higher)
|
||||
fi
|
||||
|
||||
|
||||
dnl check if we are running with Debug....
|
||||
AC_MSG_CHECKING(Whether to Enable Debuging...)
|
||||
dnl check if we are running with debug....
|
||||
AC_MSG_CHECKING(Whether to enable debug...)
|
||||
AC_ARG_ENABLE(debug,
|
||||
[ --enable-debug - Enable Debuging],
|
||||
[ --enable-debug - enable debug],
|
||||
[ case "$enableval" in
|
||||
yes)
|
||||
CFLAGS="$CFLAGS -Wall -ggdb"
|
||||
AC_DEFINE(DEBUG,1)
|
||||
AC_MSG_RESULT(yes - Watch your Log Files)
|
||||
AC_DEFINE(MODDEBUG, "1", "Enable Debugging")
|
||||
AC_MSG_RESULT(yes)
|
||||
;;
|
||||
*)
|
||||
AC_MSG_RESULT(no)
|
||||
|
@ -71,24 +78,40 @@ AC_ARG_ENABLE(debug,
|
|||
AC_MSG_RESULT(no)
|
||||
)
|
||||
|
||||
|
||||
wi_ARG_DISABLE_CCDV
|
||||
wi_PROG_CCDV
|
||||
|
||||
AC_MSG_CHECKING(To Enable AutoTools Debug Mode?)
|
||||
AC_ARG_ENABLE(autodebug, [ --enable-autodebug - Enable AutoTools Debug],
|
||||
[ case "$enableval" in
|
||||
yes)
|
||||
AC_MSG_RESULT(yes)
|
||||
;;
|
||||
*)
|
||||
AC_MSG_RESULT(no)
|
||||
AX_MAINTAINER_MODE_AUTO_SILENT
|
||||
;;
|
||||
esac],
|
||||
AC_MSG_RESULT(no)
|
||||
AX_MAINTAINER_MODE_AUTO_SILENT
|
||||
)
|
||||
|
||||
CFLAGS="$CFLAGS -DBUILDINGMOD"
|
||||
|
||||
AX_DISTVERSION
|
||||
|
||||
AC_SUBST(DIRINST)
|
||||
AC_SUBST(CFLAGS)
|
||||
AC_SUBST(LDFLAGS)
|
||||
AC_SUBST(PACKAGE)
|
||||
AC_SUBST(VERSION)
|
||||
AC_SUBST(LIBTOOL_DEPS)
|
||||
AC_SUBST(CCDV)
|
||||
AC_OUTPUT(Makefile)
|
||||
echo "(*----------------------------------------------------------*)"
|
||||
echo "(| Important Instructions |)"
|
||||
echo "(*----------------------------------------------------------*)"
|
||||
echo "(| Now that configure is complete, type 'make' to compile |)"
|
||||
echo "(| the module. When the compile has completed, type |)"
|
||||
echo "(| 'make install' to install the module. |)"
|
||||
echo "(| For BSD you might need to use 'gmake' and 'gmake install'|)"
|
||||
echo "(*----------------------------------------------------------*)"
|
||||
echo "(| For Support please visit: |)"
|
||||
echo "(| IRC: /server irc.irc-chat.org |)"
|
||||
echo "(| #neostats channel |)"
|
||||
echo "(| WWW: http://www.neostats.net/boards/ |)"
|
||||
echo "(*----------------------------------------------------------*)"
|
||||
echo "(|This Module was written by: |)"
|
||||
echo "(| fish (fish@dynam.ac) |)"
|
||||
echo "(*----------------------------------------------------------*)"
|
||||
echo "Configuration complete."
|
||||
read -p "Press Enter key to read the release notes"
|
||||
clear
|
||||
more RELNOTES
|
||||
echo "Run 'make' (or 'gmake' on some systems) to compile NeoStats."
|
||||
echo "If you require support, see the README file."
|
||||
|
|
121
flex/austro.l
Normal file
121
flex/austro.l
Normal file
|
@ -0,0 +1,121 @@
|
|||
/* GNU Talkfilters
|
||||
Copyright (C) 1998-2003 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Talkfilters
|
||||
|
||||
GNU Talkfilters 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.
|
||||
|
||||
This software is distributed in the hope that it will be amusing, 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 this software; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
%option prefix="austro_yy"
|
||||
%option outfile="lex.yy.c"
|
||||
%option noyywrap
|
||||
%option nounput
|
||||
|
||||
%e 2000
|
||||
%p 5000
|
||||
%n 1000
|
||||
%k 500
|
||||
%a 4000
|
||||
%o 2000
|
||||
|
||||
BW [ \t]
|
||||
EW [ \t.,;!?]
|
||||
EOT \4
|
||||
|
||||
%{
|
||||
|
||||
#include "common.h"
|
||||
#include "talkfilters.h"
|
||||
|
||||
#define YY_DECL int yylex(gtf_databuf_t *buf)
|
||||
|
||||
%}
|
||||
|
||||
%%
|
||||
|
||||
\<(\/)?[A-Za-z][^\>]*\> gtf_echo(); // don't damage HTML tags
|
||||
|
||||
[Ss]ch gtf_puts_case("sh");
|
||||
" c" gtf_puts(" k");
|
||||
" C" gtf_puts(" K");
|
||||
ec gtf_puts("ek");
|
||||
ac gtf_puts("ak");
|
||||
[Pp]h gtf_puts_case("f");
|
||||
cc gtf_puts("c");
|
||||
ee gtf_puts("e");
|
||||
ff gtf_puts("f");
|
||||
ll gtf_puts("l");
|
||||
mm gtf_puts("m");
|
||||
nn gtf_puts("n");
|
||||
pp gtf_puts("p");
|
||||
rr gtf_puts("r");
|
||||
ss gtf_puts("s");
|
||||
tt gtf_puts("t");
|
||||
[Tt]h gtf_puts_case("z");
|
||||
w gtf_puts("v");
|
||||
ou gtf_puts("u");
|
||||
"de " gtf_puts("d ");
|
||||
"le " gtf_puts("l ");
|
||||
"me " gtf_puts("m ");
|
||||
"ne " gtf_puts("n ");
|
||||
"re " gtf_puts("r ");
|
||||
"ve " gtf_puts("v ");
|
||||
[Cc] gtf_puts_case("s");
|
||||
[Pp]ie gtf_puts_case("mozer's pie");
|
||||
[Ss]teak gtf_puts_case("shnitzel");
|
||||
[Gg]overnor gtf_puts_case("govenator");
|
||||
|
||||
{EOT} /* ignore trailing EOT character */
|
||||
. gtf_echo();
|
||||
\n gtf_puts("\n");
|
||||
|
||||
%%
|
||||
|
||||
#ifdef LIBRARY_MODE
|
||||
|
||||
int gtf_filter_austro(const char *input, char *buf, size_t bufsz)
|
||||
{
|
||||
gtf_databuf_t buffer;
|
||||
YY_BUFFER_STATE _yybuf;
|
||||
|
||||
gtf_strbuf_init(&buffer, buf, bufsz);
|
||||
_yybuf = yy_scan_string(input);
|
||||
yylex(&buffer);
|
||||
yy_delete_buffer(_yybuf);
|
||||
austro_yylex_destroy();
|
||||
|
||||
return(buffer.overflow);
|
||||
}
|
||||
|
||||
int __gtf_filter_austro(const char *input, char *buf, size_t bufsz)
|
||||
{
|
||||
return(gtf_filter_austro(input, buf, bufsz));
|
||||
}
|
||||
|
||||
#else /* LIBRARY_MODE */
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
gtf_parse_args();
|
||||
gtf_random_seed();
|
||||
|
||||
yylex(NULL);
|
||||
|
||||
return(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
#endif /* LIBRARY_MODE */
|
||||
|
||||
/* end of source file */
|
15
flex/b1ff.l
15
flex/b1ff.l
|
@ -86,6 +86,7 @@ modified and improved by David Whitten
|
|||
%option prefix="b1ff_yy"
|
||||
%option outfile="lex.yy.c"
|
||||
%option noyywrap
|
||||
%option nounput
|
||||
|
||||
%e 3000
|
||||
%p 6000
|
||||
|
@ -97,6 +98,7 @@ modified and improved by David Whitten
|
|||
%{
|
||||
|
||||
#include "common.h"
|
||||
#include "talkfilters.h"
|
||||
|
||||
#define YY_DECL int yylex(gtf_databuf_t *buf)
|
||||
|
||||
|
@ -111,7 +113,9 @@ EOT \4
|
|||
%s INW NIW
|
||||
|
||||
%%
|
||||
|
||||
|
||||
\<(\/)?[A-Za-z][^\>]*\> gtf_echo(); // don't damage HTML tags
|
||||
|
||||
\\[^ \n]+ gtf_echo();
|
||||
{NW} BEGIN NIW; gtf_echo();
|
||||
"..." { BEGIN NIW; gtf_printf(gtf_random(2) ? "...C00L HUH!?! "
|
||||
|
@ -120,7 +124,7 @@ EOT \4
|
|||
".\"" BEGIN NIW; gtf_printf(gtf_random(2) ? "!!!\"" : "!1!!\"" );
|
||||
"!"$ BEGIN NIW; gtf_printf("!!!!!!!!!!1");
|
||||
"!"+/{NW} BEGIN NIW; gtf_printf("!1!");
|
||||
"?"/{NW} BEGIN NIW; gtf_printf("??!!");
|
||||
"?"/{NW} BEGIN NIW; gtf_printf("\?\?!!");
|
||||
":)" BEGIN NIW; gtf_printf(";-)!!! ");
|
||||
"8)" BEGIN NIW; gtf_printf(";-)!!! ");
|
||||
":*)" BEGIN NIW; gtf_printf(";-)!!!! ");
|
||||
|
@ -214,11 +218,16 @@ int gtf_filter_b1ff(const char *input, char *buf, size_t bufsz)
|
|||
_yybuf = yy_scan_string(input);
|
||||
yylex(&buffer);
|
||||
yy_delete_buffer(_yybuf);
|
||||
gtf_reset();
|
||||
b1ff_yylex_destroy();
|
||||
|
||||
return(buffer.overflow);
|
||||
}
|
||||
|
||||
int __gtf_filter_b1ff(const char *input, char *buf, size_t bufsz)
|
||||
{
|
||||
return(gtf_filter_b1ff(input, buf, bufsz));
|
||||
}
|
||||
|
||||
#else /* LIBRARY_MODE */
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
|
|
@ -41,6 +41,7 @@ EOT \4
|
|||
%{
|
||||
|
||||
#include "common.h"
|
||||
#include "talkfilters.h"
|
||||
|
||||
#define YY_DECL int yylex(gtf_databuf_t *buf)
|
||||
|
||||
|
@ -54,6 +55,8 @@ static const char *expletives[] = { "Okay?", "Right?", "Yuh got me so fahr?",
|
|||
|
||||
<NIW,INITIAL>{
|
||||
|
||||
\<(\/)?[A-Za-z][^\>]*\> gtf_echo(); // don't damage HTML tags
|
||||
|
||||
[Nn]othing/{NW} gtf_puts_case("nuttin'");
|
||||
[Tt]hin gtf_puts_case("tin"); BEGIN(INW);
|
||||
[Tt]hir gtf_puts_case("toi"); BEGIN(INW);
|
||||
|
@ -140,11 +143,16 @@ int gtf_filter_brooklyn(const char *input, char *buf, size_t bufsz)
|
|||
_yybuf = yy_scan_string(input);
|
||||
yylex(&buffer);
|
||||
yy_delete_buffer(_yybuf);
|
||||
gtf_reset();
|
||||
brooklyn_yylex_destroy();
|
||||
|
||||
return(buffer.overflow);
|
||||
}
|
||||
|
||||
int __gtf_filter_brooklyn(const char *input, char *buf, size_t bufsz)
|
||||
{
|
||||
return(gtf_filter_brooklyn(input, buf, bufsz));
|
||||
}
|
||||
|
||||
#else /* LIBRARY_MODE */
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
|
11
flex/chef.l
11
flex/chef.l
|
@ -33,10 +33,12 @@
|
|||
%option prefix="chef_yy"
|
||||
%option outfile="lex.yy.c"
|
||||
%option noyywrap
|
||||
%option nounput
|
||||
|
||||
%{
|
||||
|
||||
#include "common.h"
|
||||
#include "talkfilters.h"
|
||||
|
||||
#define YY_DECL int yylex(gtf_databuf_t *buf)
|
||||
|
||||
|
@ -52,6 +54,8 @@ EOT \4
|
|||
|
||||
%%
|
||||
|
||||
\<(\/)?[A-Za-z][^\>]*\> gtf_echo(); // don't damage HTML tags
|
||||
|
||||
\\[^ \n\4]+ gtf_echo();
|
||||
|
||||
{NW} { BEGIN NIW; i_seen = 0; gtf_echo(); }
|
||||
|
@ -106,11 +110,16 @@ int gtf_filter_chef(const char *input, char *buf, size_t bufsz)
|
|||
_yybuf = yy_scan_string(input);
|
||||
yylex(&buffer);
|
||||
yy_delete_buffer(_yybuf);
|
||||
gtf_reset();
|
||||
chef_yylex_destroy();
|
||||
|
||||
return(buffer.overflow);
|
||||
}
|
||||
|
||||
int __gtf_filter_chef(const char *input, char *buf, size_t bufsz)
|
||||
{
|
||||
return(gtf_filter_chef(input, buf, bufsz));
|
||||
}
|
||||
|
||||
#else /* LIBRARY_MODE */
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
|
|
@ -50,6 +50,7 @@
|
|||
%{
|
||||
|
||||
#include "common.h"
|
||||
#include "talkfilters.h"
|
||||
|
||||
#define YY_DECL int yylex(gtf_databuf_t *buf)
|
||||
|
||||
|
@ -66,6 +67,8 @@ EOT \4
|
|||
|
||||
<NIW,INITIAL>{
|
||||
|
||||
\<(\/)?[A-Za-z][^\>]*\> gtf_echo(); // don't damage HTML tags
|
||||
|
||||
[Tt]alk/{NW} gtf_puts_case("go on");
|
||||
[Tt]alked/{NW} gtf_puts_case("went on");
|
||||
[Tt]alking/{NW} gtf_puts_case("goin' on");
|
||||
|
@ -524,11 +527,16 @@ int gtf_filter_cockney(const char *input, char *buf, size_t bufsz)
|
|||
_yybuf = yy_scan_string(input);
|
||||
yylex(&buffer);
|
||||
yy_delete_buffer(_yybuf);
|
||||
gtf_reset();
|
||||
cockney_yylex_destroy();
|
||||
|
||||
return(buffer.overflow);
|
||||
}
|
||||
|
||||
int __gtf_filter_cockney(const char *input, char *buf, size_t bufsz)
|
||||
{
|
||||
return(gtf_filter_cockney(input, buf, bufsz));
|
||||
}
|
||||
|
||||
#else /* LIBRARY_MODE */
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
|
10
flex/drawl.l
10
flex/drawl.l
|
@ -31,6 +31,7 @@
|
|||
%{
|
||||
|
||||
#include "common.h"
|
||||
#include "talkfilters.h"
|
||||
|
||||
#define YY_DECL int yylex(gtf_databuf_t *buf)
|
||||
|
||||
|
@ -47,6 +48,8 @@ EOT \4
|
|||
|
||||
<NIW,INITIAL>{
|
||||
|
||||
\<(\/)?[A-Za-z][^\>]*\> gtf_echo(); // don't damage HTML tags
|
||||
|
||||
American/{NW} gtf_puts_case("Amerkin");
|
||||
California gtf_puts_case("Caleyfornyuh"); BEGIN(INW);
|
||||
Dallas/{NW} gtf_puts_case("Big D.");
|
||||
|
@ -456,11 +459,16 @@ int gtf_filter_drawl(const char *input, char *buf, size_t bufsz)
|
|||
_yybuf = yy_scan_string(input);
|
||||
yylex(&buffer);
|
||||
yy_delete_buffer(_yybuf);
|
||||
gtf_reset();
|
||||
drawl_yylex_destroy();
|
||||
|
||||
return(buffer.overflow);
|
||||
}
|
||||
|
||||
int __gtf_filter_drawl(const char *input, char *buf, size_t bufsz)
|
||||
{
|
||||
return(gtf_filter_drawl(input, buf, bufsz));
|
||||
}
|
||||
|
||||
#else /* LIBRARY_MODE */
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
|
225
flex/dubya.l
Normal file
225
flex/dubya.l
Normal file
|
@ -0,0 +1,225 @@
|
|||
/* GNU Talkfilters
|
||||
Copyright (C) 1998-2003 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Talkfilters
|
||||
|
||||
GNU Talkfilters 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.
|
||||
|
||||
This software is distributed in the hope that it will be amusing, 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 this software; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
%option prefix="dubya_yy"
|
||||
%option outfile="lex.yy.c"
|
||||
%option noyywrap
|
||||
|
||||
%option nowarn
|
||||
|
||||
%e 3000
|
||||
%p 6000
|
||||
%n 1000
|
||||
%k 500
|
||||
%a 4000
|
||||
%o 2000
|
||||
|
||||
%{
|
||||
|
||||
#include "common.h"
|
||||
#include "talkfilters.h"
|
||||
|
||||
#define YY_DECL int yylex(gtf_databuf_t *buf)
|
||||
|
||||
%}
|
||||
|
||||
WB [\n\t ]
|
||||
WC [A-Za-z']
|
||||
NW [^A-Za-z']
|
||||
EOT \4
|
||||
|
||||
%s NIW INW
|
||||
|
||||
%%
|
||||
|
||||
<NIW,INITIAL>{
|
||||
|
||||
\<(\/)?[A-Za-z][^\>]*\> gtf_echo(); // don't damage HTML tags
|
||||
|
||||
[Tt]errorist |
|
||||
[Oo]sama |
|
||||
[Bb]in(-|{WB})[Ll]ad(e|i)n { switch(gtf_random(3))
|
||||
{
|
||||
case 0: gtf_puts_case("bad guy"); break;
|
||||
case 1: gtf_puts_case("evildoer"); break;
|
||||
case 2: gtf_puts_case("terrier"); break;
|
||||
}
|
||||
}
|
||||
[Uu]njustified/{NW} gtf_puts_case("pre-emptive");
|
||||
[Cc]ontra/{NW} gtf_puts_case("freedom-fighter");
|
||||
[Un]nder gtf_puts_case("misunder"); BEGIN(INW);
|
||||
[Mm]isunderstand gtf_puts_case("misunderestimate"); BEGIN(INW);
|
||||
[Mm]isunderstood gtf_puts_case("misunderestimated"); BEGIN(INW);
|
||||
[Kk]ill/{NW} gtf_puts_case("oblitifry");
|
||||
[Kk]illed/{NW} gtf_puts_case("oblitifried");
|
||||
[Dd]destroy/{NW} gtf_puts_case("destructifry");
|
||||
[Dd]destroyed/{NW} gtf_puts_case("destructifried");
|
||||
[Rr]esonat/{NW} gtf_puts_case("resignat");
|
||||
[Ee]ven(-|{WB})[Hh]anded/{NW} gtf_puts_case("foreign-handed");
|
||||
[Ee]mbitter gtf_puts_case("embetter"); BEGIN(INW);
|
||||
[Ff]allability/{NW} gtf_puts_case("fallacy");
|
||||
[An]tidote/{NW} gtf_puts_case("anecdote");
|
||||
[Ss]ubliminal/{NW} gtf_puts_case("subliminabable");
|
||||
[Pp]eacemaker gtf_puts_case("pacemaker"); BEGIN(INW);
|
||||
[Ii]nvad gtf_puts_case("liberat"); BEGIN(INW);
|
||||
[Hh]ostage/{NW} gtf_puts_case("hostile");
|
||||
[Cc]ommensurate/{NW} gtf_puts_case("commiserate");
|
||||
[Ss]addam/{NW} gtf_puts_case("soddam");
|
||||
[Nn]uclear gtf_puts_case("nucular"); BEGIN(INW);
|
||||
[Dd]iplomacy/{NW} gtf_puts_case("a preemptive military strike"); BEGIN(INW);
|
||||
[Oo]verthrow/{NW} gtf_puts_case("change");
|
||||
[Gg]overnment(ification)/{NW} gtf_puts_case("regime");
|
||||
[Oo]il/{NW} |
|
||||
[Bb]ig{WB}[Bb]usiness/{NW} { switch(gtf_random(3))
|
||||
{
|
||||
case 0: gtf_puts_case("freedom"); break;
|
||||
case 1: gtf_puts_case("democracy"); break;
|
||||
case 2: gtf_puts_case("liberty"); break;
|
||||
}
|
||||
}
|
||||
[Ii]raq gtf_puts_case("Eyeraq"); BEGIN(INW);
|
||||
[Ii]ran/{NW} |
|
||||
[Nn]orth{WB}Korea/{NW} |
|
||||
[Ss]yria/{NW} |
|
||||
[Cc]uba/{NW} |
|
||||
[Ss]udan/{NW} |
|
||||
[Ll]ibya/{NW} { switch(gtf_random(5))
|
||||
{
|
||||
case 0: gtf_puts_case("a rogue state");
|
||||
break;
|
||||
case 1: gtf_puts_case("a failed nation");
|
||||
break;
|
||||
case 2: gtf_puts_case("a nation in the axis of evil");
|
||||
break;
|
||||
case 3: gtf_puts_case("an enemy of freedom");
|
||||
break;
|
||||
case 4: gtf_puts_case("a state sponsor of terrorism");
|
||||
break;
|
||||
}
|
||||
}
|
||||
[Bb]udget/{NW} gtf_puts_case("lot of numbers");
|
||||
[Dd]emocrats/{NW} |
|
||||
[Dd]emocratic{WB}[Pp]arty/{NW} gtf_puts_case("the Party o' Cut n' Run");
|
||||
[Aa]re/{NW} gtf_puts_case("is");
|
||||
[Rr]esort gtf_puts_case("retort"); BEGIN(INW);
|
||||
[Rr]eveng gtf_puts_case("justic"); BEGIN(INW);
|
||||
[Tt]hey{WB}were/{NW} gtf_puts_case("them were");
|
||||
[Pp]olicy/{NW} gtf_puts_case("policy stuff");
|
||||
[Aa]re{WB}our/{NW} gtf_puts_case("is our");
|
||||
[Tt]he{WB}[Ii]nternet/{NW} gtf_puts_case("dark dungeons of the Innurnet");
|
||||
[Oo]mnipresent/{NW} gtf_puts_case("hemispheric");
|
||||
[Ss]atirist/{NW} gtf_puts_case("garbage man");
|
||||
[Ee]ditor/{NW} gtf_puts_case("fucking son of a bitch");
|
||||
"Dick Cheney" gtf_puts("Big Dick");
|
||||
"George Bush Sr." |
|
||||
"George H W Bush" gtf_puts("Daddy"); BEGIN(INW);
|
||||
[Uu]pset |
|
||||
[Aa]ggravate |
|
||||
[Ii]nflame gtf_puts_case("vulcanize"); BEGIN(INW);
|
||||
[Dd]issent/{NW} gtf_puts_case("Anti-Americanism");
|
||||
[Dd]issenting/{NW} gtf_puts_case("Unpatriotic");
|
||||
[Ff]iscal{WB}policy |
|
||||
[Ee]conomic{WB}(stimulus|reform) gtf_puts_case("Tax cuts"); BEGIN(INW);
|
||||
[Ee]conomics/{NW} gtf_puts_case("Reaganomics");
|
||||
[Aa]nd{WB}the/{NW} gtf_puts_case("And -- but first things first. The -- These");
|
||||
[Ll]eave\. gtf_puts_case("cut n' run.");
|
||||
|
||||
{WC} { BEGIN(INW); gtf_echo(); }
|
||||
|
||||
}
|
||||
|
||||
<INW>{
|
||||
ic/{NW} gtf_puts_case("ically"); BEGIN(NIW);
|
||||
al/{NW} gtf_puts_case("abable"); BEGIN(NIW);
|
||||
ate/{NW} gtf_puts_case("atify"); BEGIN(NIW);
|
||||
ation/{NW} gtf_puts_case("atification"); BEGIN(NIW);
|
||||
ct/{NW} gtf_puts_case("ctify"); BEGIN(NIW);
|
||||
ction/{NW} gtf_puts_case("ctification"); BEGIN(NIW);
|
||||
ain/{NW} gtf_puts_case("ainify"); BEGIN(NIW);
|
||||
ent/{NW} gtf_puts_case("entification");
|
||||
ten/{NW} gtf_puts_case("tenify"); BEGIN(NIW);
|
||||
ize/{NW} gtf_puts_case("izification"); BEGIN(NIW);
|
||||
lysis/{NW} gtf_puts_case("lyzation"); BEGIN(NIW);
|
||||
ing/{NW} gtf_puts_case("in'"); BEGIN(NIW);
|
||||
"." { switch(gtf_random(10))
|
||||
{
|
||||
case 0: gtf_puts_case(". Yee haw!"); break;
|
||||
case 1: gtf_puts_case(", by golly."); break;
|
||||
case 2:
|
||||
case 3: gtf_puts_case(". Stay the course!"); break;
|
||||
case 4: gtf_puts_case(". I'm the decider!"); break;
|
||||
default: gtf_echo();
|
||||
}
|
||||
BEGIN(NIW);
|
||||
}
|
||||
", " { switch(gtf_random(5))
|
||||
{
|
||||
case 0: gtf_puts(" -- I think -- "); break;
|
||||
case 1: gtf_puts(" -- I mean -- "); break;
|
||||
case 2: gtf_puts(", and uhh... umm..., "); break;
|
||||
default: gtf_echo();
|
||||
}
|
||||
}
|
||||
|
||||
{NW} BEGIN(NIW); unput(*(yytext + yyleng - 1));
|
||||
|
||||
}
|
||||
|
||||
{EOT} /* ignore trailing EOT character */
|
||||
. gtf_echo();
|
||||
|
||||
%%
|
||||
|
||||
#ifdef LIBRARY_MODE
|
||||
|
||||
int gtf_filter_dubya(const char *input, char *buf, size_t bufsz)
|
||||
{
|
||||
gtf_databuf_t buffer;
|
||||
YY_BUFFER_STATE _yybuf;
|
||||
|
||||
gtf_strbuf_init(&buffer, buf, bufsz);
|
||||
_yybuf = yy_scan_string(input);
|
||||
yylex(&buffer);
|
||||
yy_delete_buffer(_yybuf);
|
||||
dubya_yylex_destroy();
|
||||
|
||||
return(buffer.overflow);
|
||||
}
|
||||
|
||||
int __gtf_filter_dubya(const char *input, char *buf, size_t bufsz)
|
||||
{
|
||||
return(gtf_filter_dubya(input, buf, bufsz));
|
||||
}
|
||||
|
||||
#else /* LIBRARY_MODE */
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
gtf_parse_args();
|
||||
gtf_random_seed();
|
||||
|
||||
yylex(NULL);
|
||||
|
||||
return(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
#endif /* LIBRARY_MODE */
|
||||
|
||||
/* end of source file */
|
13
flex/fudd.l
13
flex/fudd.l
|
@ -21,6 +21,7 @@
|
|||
%option prefix="fudd_yy"
|
||||
%option outfile="lex.yy.c"
|
||||
%option noyywrap
|
||||
%option nounput
|
||||
|
||||
%e 2000
|
||||
%p 5000
|
||||
|
@ -36,6 +37,7 @@ EOT \4
|
|||
%{
|
||||
|
||||
#include "common.h"
|
||||
#include "talkfilters.h"
|
||||
|
||||
#define YY_DECL int yylex(gtf_databuf_t *buf)
|
||||
|
||||
|
@ -43,6 +45,8 @@ EOT \4
|
|||
|
||||
%%
|
||||
|
||||
\<(\/)?[A-Za-z][^\>]*\> gtf_echo(); // don't damage HTML tags
|
||||
|
||||
"r" gtf_printf("w");
|
||||
"l" gtf_printf("w");
|
||||
"qu" gtf_printf("qw");
|
||||
|
@ -74,11 +78,16 @@ int gtf_filter_fudd(const char *input, char *buf, size_t bufsz)
|
|||
_yybuf = yy_scan_string(input);
|
||||
yylex(&buffer);
|
||||
yy_delete_buffer(_yybuf);
|
||||
gtf_reset();
|
||||
fudd_yylex_destroy();
|
||||
|
||||
return(buffer.overflow);
|
||||
}
|
||||
|
||||
int __gtf_filter_fudd(const char *input, char *buf, size_t bufsz)
|
||||
{
|
||||
return(gtf_filter_fudd(input, buf, bufsz));
|
||||
}
|
||||
|
||||
#else /* LIBRARY_MODE */
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
@ -92,4 +101,4 @@ int main(int argc, char **argv)
|
|||
|
||||
#endif /* LIBRARY_MODE */
|
||||
|
||||
/* end of source file */
|
||||
/* end of source file */
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
%option prefix="funetak_yy"
|
||||
%option outfile="lex.yy.c"
|
||||
%option noyywrap
|
||||
%option nounput
|
||||
|
||||
%e 2000
|
||||
%p 6000
|
||||
|
@ -34,6 +35,7 @@
|
|||
%{
|
||||
|
||||
#include "common.h"
|
||||
#include "talkfilters.h"
|
||||
|
||||
#define YY_DECL int yylex(gtf_databuf_t *buf)
|
||||
|
||||
|
@ -50,6 +52,8 @@ EOT \4
|
|||
|
||||
<NIW,INITIAL>{
|
||||
|
||||
\<(\/)?[A-Za-z][^\>]*\> gtf_echo(); // don't damage HTML tags
|
||||
|
||||
[Aa]nybody/{NW} gtf_puts_case("uni boodi");
|
||||
[Aa]re/{NW} gtf_puts_case("ure");
|
||||
[Aa]sshole/{NW} gtf_puts_case("uss hool");
|
||||
|
@ -120,7 +124,7 @@ EOT \4
|
|||
[Dd]ay gtf_puts_case("di"); BEGIN(INW);
|
||||
[Dd]id gtf_puts_case("ded"); BEGIN(INW);
|
||||
[Dd]o gtf_puts_case("dew"); BEGIN(INW);
|
||||
[Dd]oes { if (random()%3) gtf_puts_case("dus");
|
||||
[Dd]oes { if (gtf_random(3)) gtf_puts_case("dus");
|
||||
else gtf_puts_case("duz");
|
||||
BEGIN(INW); }
|
||||
[Dd]ude/{NW} gtf_puts_case("do ed");
|
||||
|
@ -199,7 +203,7 @@ EOT \4
|
|||
gtf_puts_case("dis");
|
||||
else if(gtf_random(3) == 0)
|
||||
gtf_puts_case("dus");
|
||||
else gtf_puts("duz");
|
||||
else gtf_puts_case("duz");
|
||||
}
|
||||
[Tt]ime gtf_puts_case("tym"); BEGIN(INW);
|
||||
[Tt]o gtf_puts_case("two"); BEGIN(INW);
|
||||
|
@ -250,11 +254,16 @@ int gtf_filter_funetak(const char *input, char *buf, size_t bufsz)
|
|||
_yybuf = yy_scan_string(input);
|
||||
yylex(&buffer);
|
||||
yy_delete_buffer(_yybuf);
|
||||
gtf_reset();
|
||||
funetak_yylex_destroy();
|
||||
|
||||
return(buffer.overflow);
|
||||
}
|
||||
|
||||
int __gtf_filter_funetak(const char *input, char *buf, size_t bufsz)
|
||||
{
|
||||
return(gtf_filter_funetak(input, buf, bufsz));
|
||||
}
|
||||
|
||||
#else /* LIBRARY_MODE */
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
|
|
@ -48,6 +48,7 @@
|
|||
|
||||
%{
|
||||
#include "common.h"
|
||||
#include "talkfilters.h"
|
||||
|
||||
#define YY_DECL int yylex(gtf_databuf_t *buf)
|
||||
|
||||
|
@ -64,6 +65,8 @@ EOT \4
|
|||
|
||||
<NIW,INITIAL>{
|
||||
|
||||
\<(\/)?[A-Za-z][^\>]*\> gtf_echo(); // don't damage HTML tags
|
||||
|
||||
[Gg]reetings/{NW} |
|
||||
[Hh]i/{NW} |
|
||||
[Hh]ello/{NW} gtf_puts_case("Howdy");
|
||||
|
@ -308,11 +311,17 @@ int gtf_filter_jethro(const char *input, char *buf, size_t bufsz)
|
|||
_yybuf = yy_scan_string(input);
|
||||
yylex(&buffer);
|
||||
yy_delete_buffer(_yybuf);
|
||||
gtf_reset();
|
||||
jethro_yylex_destroy();
|
||||
|
||||
|
||||
return(buffer.overflow);
|
||||
}
|
||||
|
||||
int __gtf_filter_jethro(const char *input, char *buf, size_t bufsz)
|
||||
{
|
||||
return(gtf_filter_jethro(input, buf, bufsz));
|
||||
}
|
||||
|
||||
#else /* LIBRARY_MODE */
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
|
23
flex/jive.l
23
flex/jive.l
|
@ -32,6 +32,7 @@
|
|||
%{
|
||||
|
||||
#include "common.h"
|
||||
#include "talkfilters.h"
|
||||
|
||||
#define YY_DECL int yylex(gtf_databuf_t *buf)
|
||||
|
||||
|
@ -48,6 +49,8 @@ EOT \4
|
|||
|
||||
<NIW,INITIAL>{
|
||||
|
||||
\<(\/)?[A-Za-z][^\>]*\> gtf_echo(); // don't damage HTML tags
|
||||
|
||||
[Ff]iles/{NW} gtf_puts_case("stashes");
|
||||
[Ff]ile/{NW} gtf_puts_case("stash");
|
||||
[Ss]end gtf_puts_case("t'row"); BEGIN(INW);
|
||||
|
@ -84,7 +87,7 @@ modem/{NW} gtf_puts_case("doodad");
|
|||
[Mm]an/{NW} gtf_puts_case("dude");
|
||||
[Ww]oman/{NW} gtf_puts_case("mama");
|
||||
([Mm]o(m|ther))/{NW} gtf_puts_case("mama");
|
||||
([Dd]ad|[Ff]ather)/{NW} gtf_puts_case("daddy");
|
||||
([Dd]ad|[Ff]ather)/{NW} gtf_puts_case("big daddy");
|
||||
[Gg]irl/{NW} gtf_puts_case("goat");
|
||||
[Ss]omething/{NW} gtf_puts_case("sump'n");
|
||||
(lie|[Ll]ies)/{NW} gtf_puts_case("honky jibe");
|
||||
|
@ -111,7 +114,7 @@ Are{WB}you/{NW} gtf_puts_case("Is you");
|
|||
[Oo]ther gtf_puts_case("oda'"); BEGIN(INW);
|
||||
[Ss]hoe/{NW} gtf_puts_case("kicker");
|
||||
[Hh]ave{WB}to/{NW} gtf_puts_case("gots'ta");
|
||||
have/{NW} gtf_puts_case("gots'");
|
||||
have/{NW} gtf_puts_case("gots");
|
||||
has|(have{WB}to)/{NW} gtf_puts_case("gots'ta");
|
||||
[Cc]ome{WB}over/{NW} gtf_puts_case("mosey on down");
|
||||
[Gg]o{WB}down/{NW} gtf_puts_case("mosey on down");
|
||||
|
@ -252,7 +255,9 @@ I{WB}told{WB}her/{NW} gtf_puts_case("Ah sez to her");
|
|||
I{WB}told{WB}him/{NW} gtf_puts_case("Ah sez to him");
|
||||
[Ii]/{NW} gtf_puts_case("Ah'");
|
||||
[Tt]alking/{NW} gtf_puts_case("rappin'");
|
||||
[Tt]elephone/{NW} gtf_puts_case("rap rod");
|
||||
[Tt]alk gtf_puts_case("rap"); BEGIN(INW);
|
||||
[Hh]ello/{NW} gtf_puts_case("sappnin'");
|
||||
John{WB}Lennon/{NW} gtf_puts_case("L L Cool J");
|
||||
The{WB}Beatles/{NW} gtf_puts_case("Boyz II Men");
|
||||
kick{WB}your{WB}ass/{NW} gtf_puts_case("get evil on yo' ass");
|
||||
|
@ -261,6 +266,9 @@ kick{WB}your{WB}ass/{NW} gtf_puts_case("get evil on yo' ass");
|
|||
basketball/{NW} gtf_puts_case("hoop");
|
||||
bastard gtf_puts_case("bast'id"); BEGIN(INW);
|
||||
football/{NW} gtf_puts_case("ball");
|
||||
[Hh]e's/{NW} gtf_puts_case("he be");
|
||||
[Ss]he's/{NW} gtf_puts_case("she be");
|
||||
[Tt]hey're/{NW} gtf_puts_case("dey be");
|
||||
[Ff]riend/{NW} gtf_puts_case("homey");
|
||||
[Ss]chool/{NW} gtf_puts_case("farm");
|
||||
(swing|boing|.[ltr]?ing)/{NW} gtf_puts_case(yytext);
|
||||
|
@ -280,6 +288,7 @@ Well, gtf_puts_case("Sheeit...");
|
|||
[Tt]hink/{NW} gtf_puts_case(yytext);
|
||||
[Tt]h gtf_puts_case("d"); BEGIN(INW);
|
||||
|
||||
|
||||
{WC} { BEGIN(INW); gtf_echo(); }
|
||||
|
||||
}
|
||||
|
@ -293,8 +302,9 @@ Well, gtf_puts_case("Sheeit...");
|
|||
gtf_printf("%s check it:", yytext);
|
||||
BEGIN(NIW); }
|
||||
[a-b]"." gtf_printf("%s Sheeeiit.", yytext); BEGIN(NIW);
|
||||
[c-d]"." gtf_printf("%s Word!", yytext); BEGIN(INW);
|
||||
[c-d]"." gtf_printf("%s Word!", yytext); BEGIN(INW);
|
||||
[e-f]"." gtf_printf("%s What it is, Mama!", yytext); BEGIN(NIW);
|
||||
[g-h]"." gtf_printf("%s Lop some boogie.", yytext); BEGIN(NIW);
|
||||
[i-j]"." gtf_printf("%s Ya' know?", yytext); BEGIN(NIW);
|
||||
[m-n]"." gtf_printf("%s 'S coo', bro.", yytext); BEGIN(NIW);
|
||||
[o-p]"." { gtf_printf( "%s Jes hang loose, brotha'.", yytext);
|
||||
|
@ -339,11 +349,16 @@ int gtf_filter_jive(const char *input, char *buf, size_t bufsz)
|
|||
_yybuf = yy_scan_string(input);
|
||||
yylex(&buffer);
|
||||
yy_delete_buffer(_yybuf);
|
||||
gtf_reset();
|
||||
jive_yylex_destroy();
|
||||
|
||||
return(buffer.overflow);
|
||||
}
|
||||
|
||||
int __gtf_filter_jive(const char *input, char *buf, size_t bufsz)
|
||||
{
|
||||
return(gtf_filter_jive(input, buf, bufsz));
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
|
49
flex/kraut.l
49
flex/kraut.l
|
@ -21,6 +21,7 @@
|
|||
%option prefix="kraut_yy"
|
||||
%option outfile="lex.yy.c"
|
||||
%option noyywrap
|
||||
%option nounput
|
||||
|
||||
%e 2000
|
||||
%p 5000
|
||||
|
@ -32,6 +33,7 @@
|
|||
%{
|
||||
|
||||
#include "common.h"
|
||||
#include "talkfilters.h"
|
||||
|
||||
#define YY_DECL int yylex(gtf_databuf_t *buf)
|
||||
|
||||
|
@ -43,30 +45,32 @@ EOT \4
|
|||
|
||||
%%
|
||||
|
||||
\<(\/)?[A-Za-z][^\>]*\> gtf_echo(); // don't damage HTML tags
|
||||
|
||||
"Why " gtf_printf("Warum ");
|
||||
"damn" gtf_printf("verdamt");
|
||||
"dammit" gtf_printf("Gott verdamt");
|
||||
ing gtf_printf("ingkt");
|
||||
"Chevy" gtf_printf("Volkswagen");
|
||||
"[Dd]amn" gtf_puts_case("verdammt");
|
||||
"dammit" gtf_printf("Gott verdammt");
|
||||
ing gtf_printf("inkt");
|
||||
"Chev(y|rolet)" gtf_printf("Volkswagen");
|
||||
" not " gtf_printf(" nicht ");
|
||||
" not." gtf_printf("nicht.");
|
||||
" not?" gtf_printf("nicht?");
|
||||
" not!" gtf_printf("nicht!");
|
||||
" the " gtf_printf(" ze ");
|
||||
"The " gtf_printf("Ze ");
|
||||
" with " gtf_printf(" mitt ");
|
||||
"With " gtf_printf("Mitt ");
|
||||
" with " gtf_printf(" mit ");
|
||||
"With " gtf_printf("Mit ");
|
||||
wr gtf_printf("w-r-r");
|
||||
Wr gtf_printf("W-r-r");
|
||||
R gtf_printf("R-r-r");
|
||||
"Yes " gtf_printf("Jawohl ");
|
||||
" r" gtf_printf(" r-r-r");
|
||||
"Yes " gtf_printf("Jawohl ");
|
||||
"Yes." gtf_printf("Jawohl.");
|
||||
"Yes!" gtf_printf("Jawohl!");
|
||||
"YES!" gtf_printf("JAWOHL!");
|
||||
" yes " gtf_printf(" ja ");
|
||||
" yes." gtf_printf(" ja.");
|
||||
" yes!" gtf_printf(" yes!");
|
||||
" yes!" gtf_printf(" ja!");
|
||||
"No " gtf_printf("Nein ");
|
||||
"No!" gtf_printf("Nein!");
|
||||
"No?" gtf_printf("Nein?");
|
||||
|
@ -79,34 +83,30 @@ R gtf_printf("R-r-r");
|
|||
Miss gtf_printf("Fraulein");
|
||||
" of " gtf_printf(" uff ");
|
||||
"Of " gtf_printf("Uff ");
|
||||
my gtf_printf("mein");
|
||||
My gtf_printf("Mein");
|
||||
" and " gtf_printf(" undt ");
|
||||
"And " gtf_printf("Undt ");
|
||||
[M]y gtf_puts_case("mein");
|
||||
" and " gtf_printf(" und ");
|
||||
"And " gtf_printf("Und ");
|
||||
"One " gtf_printf("Ein ");
|
||||
" one" gtf_printf(" ein");
|
||||
"Is " gtf_printf("Ist ");
|
||||
" is " gtf_printf(" ist ");
|
||||
"ow " gtf_printf("ow ");
|
||||
"w " gtf_printf("w ");
|
||||
sh gtf_printf("sch");
|
||||
Sh gtf_printf("Sch");
|
||||
ch gtf_printf("ch");
|
||||
Ch gtf_printf("Ch");
|
||||
[Ss]h gtf_puts_case("sch");
|
||||
[Cc]h gtf_puts_case("ch");
|
||||
" c" gtf_printf(" k");
|
||||
" C" gtf_printf(" K");
|
||||
v gtf_printf("f");
|
||||
V gtf_printf("F");
|
||||
[Vv] gtf_puts_case("f");
|
||||
" w" gtf_printf(" v");
|
||||
W gtf_printf("V");
|
||||
[Tt]his gtf_puts_case("das");
|
||||
[Tt]h gtf_puts_case("d");
|
||||
[Jj]ohn gtf_printf("Johann");
|
||||
[Ww]illiam|[Bb]ill|[Bb]rad gtf_printf("Wilhelm");
|
||||
[Gg]ary gtf_printf("Gerhardt");
|
||||
[Jj]o(h)?n gtf_printf("Hansel");
|
||||
[Jj]o(h)?n gtf_printf("Hans");
|
||||
[Ss]mith gtf_printf("Schultz");
|
||||
[a-f]"!" gtf_printf("%s Naturlich!", yytext);
|
||||
[p-z]"!" gtf_printf("%s Seig Heil!", yytext);
|
||||
[g-m]"!" gtf_printf("%s Scheisse!", yytext);
|
||||
|
||||
{EOT} /* ignore trailing EOT character */
|
||||
. gtf_echo();
|
||||
|
@ -125,11 +125,16 @@ int gtf_filter_kraut(const char *input, char *buf, size_t bufsz)
|
|||
_yybuf = yy_scan_string(input);
|
||||
yylex(&buffer);
|
||||
yy_delete_buffer(_yybuf);
|
||||
gtf_reset();
|
||||
kraut_yylex_destroy();
|
||||
|
||||
return(buffer.overflow);
|
||||
}
|
||||
|
||||
int __gtf_filter_kraut(const char *input, char *buf, size_t bufsz)
|
||||
{
|
||||
return(gtf_filter_kraut(input, buf, bufsz));
|
||||
}
|
||||
|
||||
#else /* LIBRARY_MODE */
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
|
11
flex/pansy.l
11
flex/pansy.l
|
@ -21,6 +21,7 @@
|
|||
%option prefix="pansy_yy"
|
||||
%option outfile="lex.yy.c"
|
||||
%option noyywrap
|
||||
%option nounput
|
||||
|
||||
%e 2000
|
||||
%p 6000
|
||||
|
@ -36,6 +37,7 @@ EOT \4
|
|||
%{
|
||||
|
||||
#include "common.h"
|
||||
#include "talkfilters.h"
|
||||
|
||||
#define YY_DECL int yylex(gtf_databuf_t *buf)
|
||||
|
||||
|
@ -43,6 +45,8 @@ EOT \4
|
|||
|
||||
%%
|
||||
|
||||
\<(\/)?[A-Za-z][^\>]*\> gtf_echo(); // don't damage HTML tags
|
||||
|
||||
"ise" gtf_puts("izthe");
|
||||
" man " gtf_puts(" bitch ");
|
||||
guy gtf_puts("babe");
|
||||
|
@ -100,11 +104,16 @@ int gtf_filter_pansy(const char *input, char *buf, size_t bufsz)
|
|||
_yybuf = yy_scan_string(input);
|
||||
yylex(&buffer);
|
||||
yy_delete_buffer(_yybuf);
|
||||
gtf_reset();
|
||||
pansy_yylex_destroy();
|
||||
|
||||
return(buffer.overflow);
|
||||
}
|
||||
|
||||
int __gtf_filter_pansy(const char *input, char *buf, size_t bufsz)
|
||||
{
|
||||
return(gtf_filter_pansy(input, buf, bufsz));
|
||||
}
|
||||
|
||||
#else /* LIBRARY_MODE */
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
|
299
flex/pirate.l
Normal file
299
flex/pirate.l
Normal file
|
@ -0,0 +1,299 @@
|
|||
/* GNU Talkfilters
|
||||
Copyright (C) 1998-2003 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Talkfilters
|
||||
|
||||
GNU Talkfilters 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.
|
||||
|
||||
This software is distributed in the hope that it will be amusing, 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 this software; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
%option prefix="pirate_yy"
|
||||
%option outfile="lex.yy.c"
|
||||
%option noyywrap
|
||||
%option nowarn
|
||||
|
||||
%e 2000
|
||||
%p 6000
|
||||
%n 1000
|
||||
%k 500
|
||||
%a 4000
|
||||
%o 2000
|
||||
|
||||
%{
|
||||
|
||||
#include "common.h"
|
||||
#include "talkfilters.h"
|
||||
|
||||
#define YY_DECL int yylex(gtf_databuf_t *buf)
|
||||
|
||||
%}
|
||||
|
||||
WB [\n\t ]
|
||||
WC [A-Za-z'0-9]
|
||||
NW [^A-Za-z'0-9]
|
||||
EOT \4
|
||||
|
||||
%s NIW INW
|
||||
|
||||
%%
|
||||
|
||||
<NIW,INITIAL>{
|
||||
|
||||
\<(\/)?[A-Za-z][^\>]*\> gtf_echo(); // don't damage HTML tags
|
||||
|
||||
[Tt]o./{NW} gtf_echo();
|
||||
[Mm]y/{NW} gtf_puts_case("me");
|
||||
([Bb]oss|[Mm]anager)/{NW} gtf_puts_case("admiral");
|
||||
[Cc]aptain/{NW} gtf_puts_case("cap'n");
|
||||
[Ff]riends|[Bb]uddies/{NW} gtf_puts_case("crew");
|
||||
([Dd]elete|[Ee]rase|[Tt]hrow{WB}away)/{NW} gtf_puts_case("scuttle");
|
||||
([Dd]eleted|[Ee]rased|[Tt]hr(ew|own){WB}away)/{NW} gtf_puts_case("scuttled");
|
||||
[Mm]yself/{NW} gtf_puts_case("meself");
|
||||
[Yy]our/{NW} gtf_puts_case("yer");
|
||||
[Yy]ou/{NW} gtf_puts_case("ye");
|
||||
[Ff]riend/{NW} gtf_puts_case("matey");
|
||||
[Ff]riends/{NW} gtf_puts_case("maties");
|
||||
[Cc]o(-)?worker/{NW} gtf_puts_case("shipmate");
|
||||
[Cc]o(-)?workers/{NW} gtf_puts_case("shipmates");
|
||||
[Pp]erson gtf_puts_case("landlubber");
|
||||
[Pp]eople gtf_puts_case("landlubbers");
|
||||
[Gg]uys/{NW} gtf_puts_case("scurvey dogs");
|
||||
([Bb]efore|[Ee]arlier)/{NW} gtf_puts_case("afore");
|
||||
[Oo]ld/{NW} gtf_puts_case("auld");
|
||||
[Tt]he/{NW} gtf_puts_case("th'");
|
||||
[Oo]f/{NW} gtf_puts_case("o'");
|
||||
[Dd]o(n'|{WB}no)t/{NW} gtf_puts_case("dern't");
|
||||
[Nn]ever gtf_puts_case("ne'er"); BEGIN(INW);
|
||||
[Ee]ver/{NW} gtf_puts_case("e'er");
|
||||
[Oo]ver gtf_puts_case("o'er"); BEGIN(INW);
|
||||
[Yy](es|eah|up)/{NW} gtf_puts_case("aye");
|
||||
[Nn](o|ah|ope)/{NW} gtf_puts_case("nay");
|
||||
[Dd]on't{WB}know/{NW} gtf_puts_case("dinna");
|
||||
[Hh]a(d|ve)n't/{NW} gtf_puts_case("ha'nae");
|
||||
[Dd]idn't/{NW} gtf_puts_case("di'nae");
|
||||
[Ww]asn't/{NW} gtf_puts_case("weren't");
|
||||
[Ff]or gtf_puts_case("fer"); BEGIN(INW);
|
||||
[Bb]etween/{NW} gtf_puts_case("betwixt");
|
||||
[Aa]round/{NW} gtf_puts_case("aroun'");
|
||||
[Tt]o gtf_puts_case("t'"); BEGIN(INW);
|
||||
It's/{NW} gtf_puts("'Tis");
|
||||
it's/{NW} gtf_puts("'tis");
|
||||
([Ww]oman|[Ll]ady)/{NW} gtf_puts_case("wench");
|
||||
[Ww]ife/{NW} gtf_puts_case("lady");
|
||||
[Gg]irl/{NW} gtf_puts_case("lass");
|
||||
[Gg]irls/{NW} gtf_puts_case("lassies");
|
||||
[Gg]uy/{NW} |
|
||||
[Mm]an/{NW} |
|
||||
[Ff]ellow/{NW} |
|
||||
[Dd]ude/{NW} gtf_puts_case("lubber");
|
||||
[Bb]oy/{NW} gtf_puts_case("lad");
|
||||
[Bb]oys/{NW} gtf_puts_case("laddies");
|
||||
[Aa]m/{NW} gtf_puts_case("be");
|
||||
[Aa]re/{NW} gtf_puts_case("be");
|
||||
[Cc]hildren/{NW} gtf_puts_case("little sandcrabs");
|
||||
[Kk]ids/{NW} gtf_puts_case("minnows");
|
||||
[Hh]im/{NW} gtf_puts_case("that scurvey dog");
|
||||
[Hh]er/{NW} gtf_puts_case("that comely wench");
|
||||
[Hh]im\. gtf_puts_case("that drunken sailor.");
|
||||
[Hh]er\. gtf_puts_case("that comely lass.");
|
||||
[Hh]e/{NW} gtf_puts_case("that ornery cuss");
|
||||
[Ss]he/{NW} gtf_puts_case("that winsome lass");
|
||||
[Hh]e's/{NW} gtf_puts_case("he be");
|
||||
[Ss]he's/{NW} gtf_puts_case("she be");
|
||||
[Tt]hey're/{NW} gtf_puts_case("they be");
|
||||
was/{NW} gtf_puts_case("were bein'");
|
||||
[Hh](ey|i|ello)/{NW} gtf_puts_case("avast");
|
||||
[Oo]cean/{NW} gtf_puts_case("high seas");
|
||||
[Ff]ood/{NW} gtf_puts_case("chow");
|
||||
[Rr]oad/{NW} gtf_puts_case("sea");
|
||||
[Ff]reeway/{NW} gtf_puts_case("high seas");
|
||||
[Rr]oads/{NW} gtf_puts_case("seas");
|
||||
[Ss]treet/{NW} gtf_puts_case("river");
|
||||
[Ss]treets/{NW} gtf_puts_case("rivers");
|
||||
[Hh]ighway/{NW} gtf_puts_case("ocean");
|
||||
[Hh]ighways/{NW} gtf_puts_case("oceans");
|
||||
[Cc]ar/{NW} gtf_puts_case("boat");
|
||||
[Cc]ars/{NW} gtf_puts_case("boats");
|
||||
[Tt]ruck/{NW} gtf_puts_case("schooner");
|
||||
[Tt]rucks/{NW} gtf_puts_case("schooners");
|
||||
SUV/{NW} gtf_puts_case("ship");
|
||||
([Aa]irplane|[Jj]et)/{NW} gtf_puts_case("flying machine");
|
||||
[Mm]achine/{NW} gtf_puts_case("contraption");
|
||||
[Dd]riving|[Tt]ravel(l)ing/{NW} gtf_puts_case("sailing");
|
||||
[Ss]hit! |
|
||||
[Dd]amn! gtf_puts_case("Arrrr!"); BEGIN(NIW);
|
||||
[Aa]ss|[Bb]utt/{NW} gtf_puts_case("dungbie");
|
||||
([Cc]heat|[Ff]raud)/{NW} gtf_puts_case("hornswaggle");
|
||||
([Cc]heated|[Dd]efrauded)/{NW} gtf_puts_case("hornswaggled");
|
||||
[Pp]irate/{NW} gtf_puts_case("buccaneer");
|
||||
([Bb]eer|[Ww]ine|[Bb]ooze)/{NW} gtf_puts_case("grog");
|
||||
[Bb]asement/{NW} gtf_puts_case("bilge");
|
||||
[Pp]unish/{NW} gtf_puts_case("keel-haul");
|
||||
[Pp]unished/{NW} gtf_puts_case("keel-hauled");
|
||||
[Dd]ollar/{NW} gtf_puts_case("doubloon");
|
||||
[Dd]ollars/{NW} gtf_puts_case("doubloons");
|
||||
[Mm]oney/{NW} { switch(gtf_random(2))
|
||||
{
|
||||
case 0:
|
||||
gtf_puts_case("gold");
|
||||
break;
|
||||
case 1:
|
||||
gtf_puts_case("treasure");
|
||||
break;
|
||||
}
|
||||
}
|
||||
[Dd]rive|[Tt]ravel/{NW} gtf_puts_case("sail");
|
||||
[Dd]rove|[Tt]ravel(l)ed/{NW} gtf_puts_case("sailed");
|
||||
|
||||
{WC} { BEGIN(INW); gtf_echo(); }
|
||||
|
||||
}
|
||||
|
||||
<INW>{
|
||||
|
||||
"!" { switch(gtf_random(10))
|
||||
{
|
||||
case 0:
|
||||
gtf_puts("! Walk the plank!");
|
||||
break;
|
||||
case 1:
|
||||
gtf_puts(", Arrrr!");
|
||||
break;
|
||||
case 2:
|
||||
gtf_puts(", Yaaarrrr!");
|
||||
break;
|
||||
case 3:
|
||||
gtf_puts(", and dinna spare the whip!");
|
||||
break;
|
||||
case 4:
|
||||
gtf_puts("! Shiver me timbers!");
|
||||
break;
|
||||
case 5:
|
||||
gtf_puts("! Fire the cannons!");
|
||||
break;
|
||||
case 6:
|
||||
gtf_puts("! We'll keel-haul ye!");
|
||||
break;
|
||||
default:
|
||||
gtf_echo();
|
||||
}
|
||||
BEGIN(NIW);
|
||||
}
|
||||
|
||||
"," { switch(gtf_random(10))
|
||||
{
|
||||
case 0:
|
||||
gtf_puts(", aye,");
|
||||
break;
|
||||
case 1:
|
||||
gtf_puts(", I'll warrant ye,");
|
||||
break;
|
||||
case 2:
|
||||
gtf_puts(", to be sure,");
|
||||
break;
|
||||
case 3:
|
||||
gtf_puts(", arrrr,");
|
||||
break;
|
||||
case 4:
|
||||
gtf_puts(", by Blackbeard's sword,");
|
||||
break;
|
||||
default:
|
||||
gtf_echo();
|
||||
}
|
||||
BEGIN(NIW);
|
||||
}
|
||||
|
||||
"." { switch(gtf_random(20))
|
||||
{
|
||||
case 0:
|
||||
gtf_puts(", and a bottle of rum!");
|
||||
break;
|
||||
case 1:
|
||||
gtf_puts(". And swab the deck!");
|
||||
break;
|
||||
case 2:
|
||||
gtf_puts(", by Davy Jones's locker.");
|
||||
break;
|
||||
case 3:
|
||||
gtf_puts(", ye scurvey dog.");
|
||||
break;
|
||||
case 4:
|
||||
gtf_puts(", I'll warrant ye.");
|
||||
break;
|
||||
case 5:
|
||||
gtf_puts(", arrrr.");
|
||||
break;
|
||||
case 6:
|
||||
gtf_puts(", with a chest full a' booty.");
|
||||
break;
|
||||
case 7:
|
||||
gtf_puts(". Pass the grog!");
|
||||
break;
|
||||
case 8:
|
||||
gtf_puts(". Hoist the mainsail!");
|
||||
break;
|
||||
default:
|
||||
gtf_echo();
|
||||
}
|
||||
BEGIN(NIW);
|
||||
}
|
||||
|
||||
{NW} BEGIN(NIW); unput(yytext[0]);
|
||||
|
||||
}
|
||||
|
||||
{EOT} /* ignore trailing EOT character */
|
||||
. gtf_echo();
|
||||
|
||||
%%
|
||||
|
||||
/*
|
||||
*/
|
||||
|
||||
#ifdef LIBRARY_MODE
|
||||
|
||||
int gtf_filter_pirate(const char *input, char *buf, size_t bufsz)
|
||||
{
|
||||
gtf_databuf_t buffer;
|
||||
YY_BUFFER_STATE _yybuf;
|
||||
|
||||
gtf_strbuf_init(&buffer, buf, bufsz);
|
||||
_yybuf = yy_scan_string(input);
|
||||
yylex(&buffer);
|
||||
yy_delete_buffer(_yybuf);
|
||||
pirate_yylex_destroy();
|
||||
|
||||
return(buffer.overflow);
|
||||
}
|
||||
|
||||
int __gtf_filter_pirate(const char *input, char *buf, size_t bufsz)
|
||||
{
|
||||
return(gtf_filter_pirate(input, buf, bufsz));
|
||||
}
|
||||
|
||||
#else /* LIBRARY_MODE */
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
gtf_parse_args();
|
||||
gtf_random_seed();
|
||||
|
||||
yylex(NULL);
|
||||
|
||||
return(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
#endif /* LIBRARY_MODE */
|
||||
|
||||
/* end of source file */
|
|
@ -27,6 +27,7 @@ various humanities type classes
|
|||
%option prefix="postmodern_yy"
|
||||
%option outfile="lex.yy.c"
|
||||
%option noyywrap
|
||||
%option nounput
|
||||
|
||||
%a 3000
|
||||
%e 3000
|
||||
|
@ -36,6 +37,7 @@ various humanities type classes
|
|||
%{
|
||||
|
||||
#include "common.h"
|
||||
#include "talkfilters.h"
|
||||
|
||||
#define YY_DECL int yylex(gtf_databuf_t *buf)
|
||||
|
||||
|
@ -48,6 +50,8 @@ EOT \4
|
|||
|
||||
%%
|
||||
|
||||
\<(\/)?[A-Za-z][^\>]*\> gtf_echo(); // don't damage HTML tags
|
||||
|
||||
[Ww]e/{NW} gtf_puts_case("the dysfunctional group");
|
||||
[Tt]hing/{NW} gtf_puts_case("phallic-symbol-like weapon");
|
||||
[Hh]elp/{NW} gtf_puts_case("assault");
|
||||
|
@ -116,11 +120,16 @@ int gtf_filter_postmodern(const char *input, char *buf, size_t bufsz)
|
|||
_yybuf = yy_scan_string(input);
|
||||
yylex(&buffer);
|
||||
yy_delete_buffer(_yybuf);
|
||||
gtf_reset();
|
||||
postmodern_yylex_destroy();
|
||||
|
||||
return(buffer.overflow);
|
||||
}
|
||||
|
||||
int __gtf_filter_postmodern(const char *input, char *buf, size_t bufsz)
|
||||
{
|
||||
return(gtf_filter_postmodern(input, buf, bufsz));
|
||||
}
|
||||
|
||||
#else /* LIBRARY_MODE */
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
%{
|
||||
|
||||
#include "common.h"
|
||||
#include "talkfilters.h"
|
||||
|
||||
#define YY_DECL int yylex(gtf_databuf_t *buf)
|
||||
|
||||
|
@ -51,6 +52,8 @@ EOT \4
|
|||
|
||||
<NIW,INITIAL>{
|
||||
|
||||
\<(\/)?[A-Za-z][^\>]*\> gtf_echo(); // don't damage HTML tags
|
||||
|
||||
[Gg]et{WB}your/{NW} gtf_puts_case("gitcher");
|
||||
[Gg]et{WB}you/{NW} gtf_puts_case("gitcha");
|
||||
[Ff]inger gtf_puts_case("finger"); BEGIN(INW);
|
||||
|
@ -391,11 +394,16 @@ int gtf_filter_redneck(const char *input, char *buf, size_t bufsz)
|
|||
_yybuf = yy_scan_string(input);
|
||||
yylex(&buffer);
|
||||
yy_delete_buffer(_yybuf);
|
||||
gtf_reset();
|
||||
redneck_yylex_destroy();
|
||||
|
||||
return(buffer.overflow);
|
||||
}
|
||||
|
||||
int __gtf_filter_redneck(const char *input, char *buf, size_t bufsz)
|
||||
{
|
||||
return(gtf_filter_redneck(input, buf, bufsz));
|
||||
}
|
||||
|
||||
#else /* LIBRARY_MODE */
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
%{
|
||||
|
||||
#include "common.h"
|
||||
#include "talkfilters.h"
|
||||
|
||||
#define YY_DECL int yylex(gtf_databuf_t *buf)
|
||||
|
||||
|
@ -41,6 +42,8 @@ EOT \4
|
|||
|
||||
<NIW,INITIAL>{
|
||||
|
||||
\<(\/)?[A-Za-z][^\>]*\> gtf_echo(); // don't damage HTML tags
|
||||
|
||||
[Bb]ad gtf_puts_case("mean"); BEGIN(INW);
|
||||
[Bb]ig/{NW} gtf_puts_case("bitchin'est");
|
||||
[Bb]ody/{NW} gtf_puts_case("bod");
|
||||
|
@ -189,11 +192,16 @@ int gtf_filter_valspeak(const char *input, char *buf, size_t bufsz)
|
|||
_yybuf = yy_scan_string(input);
|
||||
yylex(&buffer);
|
||||
yy_delete_buffer(_yybuf);
|
||||
gtf_reset();
|
||||
valspeak_yylex_destroy();
|
||||
|
||||
return(buffer.overflow);
|
||||
}
|
||||
|
||||
int __gtf_filter_valspeak(const char *input, char *buf, size_t bufsz)
|
||||
{
|
||||
return(gtf_filter_valspeak(input, buf, bufsz));
|
||||
}
|
||||
|
||||
#else /* LIBRARY_MODE */
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
|
24
flex/warez.l
24
flex/warez.l
|
@ -44,7 +44,7 @@
|
|||
%option prefix="warez_yy"
|
||||
%option outfile="lex.yy.c"
|
||||
%option noyywrap
|
||||
%option nounput
|
||||
%option nounput
|
||||
|
||||
%e 2000
|
||||
%p 5000
|
||||
|
@ -60,6 +60,7 @@ EOT \4
|
|||
%{
|
||||
|
||||
#include "common.h"
|
||||
#include "talkfilters.h"
|
||||
|
||||
#define YY_DECL int yylex(gtf_databuf_t *buf)
|
||||
|
||||
|
@ -67,7 +68,7 @@ static const char *a_array[] = {"4", "4", "4", "a", "a", "A", "@"};
|
|||
#define A_LEN (sizeof(a_array) / sizeof(a_array[0]))
|
||||
static const char *b_array[] = {"8", "b", "b", "B"};
|
||||
#define B_LEN (sizeof(b_array) / sizeof(b_array[0]))
|
||||
static const char *c_array[] = {"c", "c", "C", "k", "k", "<"};
|
||||
static const char *c_array[] = {"c", "c", "C", "k", "k" /*, "<" */};
|
||||
#define C_LEN (sizeof(c_array) / sizeof(c_array[0]))
|
||||
static const char *d_array[] = {"d", "d", "D", "|)"};
|
||||
#define D_LEN (sizeof(d_array) / sizeof(d_array[0]))
|
||||
|
@ -83,7 +84,7 @@ static const char *i_array[] = {"1", "i", "I", "!", "Y", "|"};
|
|||
#define I_LEN (sizeof(i_array) / sizeof(i_array[0]))
|
||||
static const char *j_array[] = {"j", "j", "J", ";"};
|
||||
#define J_LEN (sizeof(j_array) / sizeof(j_array[0]))
|
||||
static const char *k_array[] = {"k", "k", "K", "|<", "c", "C"};
|
||||
static const char *k_array[] = {"k", "K", "c", "C"};
|
||||
#define K_LEN (sizeof(k_array) / sizeof(k_array[0]))
|
||||
static const char *l_array[] = {"1", "l", "l", "L"};
|
||||
#define L_LEN (sizeof(l_array) / sizeof(l_array[0]))
|
||||
|
@ -109,7 +110,7 @@ static const char *v_array[] = {"v", "v", "V", "\\/"};
|
|||
#define V_LEN (sizeof(v_array) / sizeof(v_array[0]))
|
||||
static const char *w_array[] = {"w", "w", "W", "W", "\\/\\/"};
|
||||
#define W_LEN (sizeof(w_array) / sizeof(w_array[0]))
|
||||
static const char *x_array[] = {"x", "X", "><", "kz" };
|
||||
static const char *x_array[] = {"x", "X", /*"><",*/ "kz" };
|
||||
#define X_LEN (sizeof(x_array) / sizeof(x_array[0]))
|
||||
static const char *y_array[] = {"y", "Y"};
|
||||
#define Y_LEN (sizeof(y_array) / sizeof(y_array[0]))
|
||||
|
@ -126,6 +127,8 @@ static const char *__warez_rand(const char **array, int length)
|
|||
|
||||
%%
|
||||
|
||||
\<(\/)?[A-Za-z][^\>]*\> gtf_echo(); // don't damage HTML tags
|
||||
|
||||
[aA] gtf_puts(__warez_rand(a_array, A_LEN));
|
||||
[bB] gtf_puts(__warez_rand(b_array, B_LEN));
|
||||
[cC] gtf_puts(__warez_rand(c_array, C_LEN));
|
||||
|
@ -167,7 +170,8 @@ Are gtf_puts("R");
|
|||
[Ee]xperienced gtf_puts("1337");
|
||||
[Yy]our gtf_puts_case("j00r");
|
||||
[Hh]acker |
|
||||
[Pp]rogrammer gtf_puts_case("h4x0r");
|
||||
[Pp]rogrammer |
|
||||
[Dd]eveloper gtf_puts_case("h4x0r");
|
||||
[Ee]lite gtf_puts("31337");
|
||||
[Pp]ornography gtf_puts_case("pr0n");
|
||||
[Pp]orn(o)? gtf_puts_case("pr0n");
|
||||
|
@ -184,6 +188,7 @@ Are gtf_puts("R");
|
|||
[Bb]roke(n)? |
|
||||
[Mm]alfunctioning |
|
||||
[Bb]uggy gtf_puts_case("fux0red");
|
||||
[Ss]uckers gtf_puts_case("sux0rz");
|
||||
|
||||
{EOT} /* ignore trailing EOT character */
|
||||
. gtf_echo();
|
||||
|
@ -202,11 +207,16 @@ int gtf_filter_warez(const char *input, char *buf, size_t bufsz)
|
|||
_yybuf = yy_scan_string(input);
|
||||
yylex(&buffer);
|
||||
yy_delete_buffer(_yybuf);
|
||||
gtf_reset();
|
||||
warez_yylex_destroy();
|
||||
|
||||
return(buffer.overflow);
|
||||
}
|
||||
|
||||
int __gtf_filter_warez(const char *input, char *buf, size_t bufsz)
|
||||
{
|
||||
return(gtf_filter_warez(input, buf, bufsz));
|
||||
}
|
||||
|
||||
#else /* LIBRARY_MODE */
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
@ -221,4 +231,4 @@ int main(int argc, char **argv)
|
|||
|
||||
#endif /* LIBRARY_MODE */
|
||||
|
||||
/* end of source file */
|
||||
/* end of source file */
|
||||
|
|
|
@ -1,11 +1,54 @@
|
|||
/* define this to enable debug code for this module */
|
||||
#undef DEBUG
|
||||
/* modconfig.h.in. Generated from configure.in by autoheader. */
|
||||
|
||||
/* Version number of package */
|
||||
#undef MODULE_VERSION
|
||||
/* "Enable Debugging" */
|
||||
#undef MODDEBUG
|
||||
|
||||
/* Major Version */
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#undef HAVE_DLFCN_H
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#undef HAVE_INTTYPES_H
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#undef HAVE_MEMORY_H
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#undef HAVE_STDINT_H
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#undef HAVE_STDLIB_H
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#undef HAVE_STRINGS_H
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#undef HAVE_STRING_H
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#undef HAVE_SYS_STAT_H
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#undef HAVE_SYS_TYPES_H
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H
|
||||
|
||||
/* "Major Module Version" */
|
||||
#undef MODULE_MAJOR
|
||||
|
||||
/* Minor Version */
|
||||
/* "Minor Module Version" */
|
||||
#undef MODULE_MINOR
|
||||
|
||||
/* "Module Revision" */
|
||||
#undef MODULE_REV
|
||||
|
||||
/* "Complete Module Version" */
|
||||
#undef MODULE_VERSION
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS
|
||||
|
||||
/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
|
||||
`char[]'. */
|
||||
#undef YYTEXT_POINTER
|
||||
|
||||
|
|
2418
postmodern.c
2418
postmodern.c
File diff suppressed because it is too large
Load diff
62
pulse.xml
Normal file
62
pulse.xml
Normal file
|
@ -0,0 +1,62 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project default-recipe="default">
|
||||
<recipe name="Configure">
|
||||
<post-processor name="checkbuild.pp">
|
||||
<gcc.pp name="gcc.pp"/>
|
||||
<make.pp name="make.pp"/>
|
||||
</post-processor>
|
||||
<executable name="ShutUp Configure" exe="touch" args="${base.dir}/.hush"> </executable>
|
||||
<executable name="run configure" exe="${base.dir}/configure" args="--enable-debug --disable-ccdv --enable-autodebug"> </executable>
|
||||
<make name="build">
|
||||
<process processor="${checkbuild.pp}"/>
|
||||
</make>
|
||||
</recipe>
|
||||
<recipe name="SnapShowCheck">
|
||||
<post-processor name="checkbuild.pp">
|
||||
<gcc.pp name="gcc.pp"/>
|
||||
<make.pp name="make.pp"/>
|
||||
</post-processor>
|
||||
<executable name="ShutUp Configure" exe="touch" args="${base.dir}/.hush"> </executable>
|
||||
<executable name="run configure" exe="${base.dir}/configure" args="--enable-debug --disable-ccdv --enable-autodebug --with-distversion=${build.revision}"> </executable>
|
||||
<command name="Build">
|
||||
<make name="build" targets="distcheck">
|
||||
<process processor="${checkbuild.pp}"/>
|
||||
</make>
|
||||
<artifact name="SnapShot" file="StupidServ-*.tar.gz"/>
|
||||
</command>
|
||||
</recipe>
|
||||
<recipe name="Win32-Build">
|
||||
<post-processor name="checkbuild.pp">
|
||||
<regex.pp name="compile.pp">
|
||||
<pattern category="error" expression="\\.[chl]\\([0-9]+\\): error"/>
|
||||
<pattern category="warning" expression="\\.[chl]\\([0-9]+\\): warning"/>
|
||||
</regex.pp>
|
||||
</post-processor>
|
||||
<resource name="Win32" required="true" version="1"/>
|
||||
<command name="Build-Core">
|
||||
<executable name="MSBuild core" exe="${MSBuildPath}\MSBuild.exe" args="stupidserv.sln /p:Configuration=Release">
|
||||
<environment name="VCBUILD_DEFAULT_OPTIONS" value="/u"/>
|
||||
<process processor="${checkbuild.pp}"/>
|
||||
</executable>
|
||||
</command>
|
||||
</recipe>
|
||||
<recipe name="Win32-Snapshow">
|
||||
<post-processor name="checkbuild.pp">
|
||||
<regex.pp name="compile.pp">
|
||||
<pattern category="error" expression="\\.[chl]\\([0-9]+\\): error"/>
|
||||
<pattern category="warning" expression="\\.[chl]\\([0-9]+\\): warning"/>
|
||||
</regex.pp>
|
||||
</post-processor>
|
||||
<resource name="Win32" required="true" version="1"/>
|
||||
<command name="Build-Core">
|
||||
<executable name="MSBuild core" exe="${MSBuildPath}\MSBuild.exe" args="stupidserv.sln /p:Configuration=Release">
|
||||
<environment name="VCBUILD_DEFAULT_OPTIONS" value="/u"/>
|
||||
<process processor="${checkbuild.pp}"/>
|
||||
</executable>
|
||||
</command>
|
||||
<command name="MakeDist">
|
||||
<executable name="MakeSnap" exe="${base.dir}\\win32\\buildwin32snap.bat" args="${build.revision}"/>
|
||||
<artifact name="StupidServ Setup File" file="${base.dir}\\win32\\StupidServ-Setup-*.exe"/>
|
||||
</command>
|
||||
</recipe>
|
||||
</project>
|
18
s_help.c
18
s_help.c
|
@ -25,13 +25,8 @@
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
const char s_help_send_oneline [] = "Convert and send text";
|
||||
const char s_help_convert_oneline [] = "Convert text and echo";
|
||||
const char s_help_list_oneline [] = "List languages available";
|
||||
const char s_help_about_oneline [] = "About StupidServ";
|
||||
const char s_help_version_oneline [] = "Display version info";
|
||||
|
||||
const char *s_help_send[] = {
|
||||
"Convert and send text",
|
||||
"Syntax: \2SEND <lang> <nick|channel> <text>\2",
|
||||
"",
|
||||
"Converts the text to the selected language, and sends",
|
||||
|
@ -40,6 +35,7 @@ const char *s_help_send[] = {
|
|||
};
|
||||
|
||||
const char *s_help_convert[] = {
|
||||
"Convert text and echo",
|
||||
"Syntax: \2CONVERT <lang> <text>\2",
|
||||
"",
|
||||
"Converts the text to the selected and echo's it back to you",
|
||||
|
@ -47,20 +43,14 @@ const char *s_help_convert[] = {
|
|||
};
|
||||
|
||||
const char *s_help_list[] = {
|
||||
"List languages available",
|
||||
"Syntax: \2LIST\2",
|
||||
"",
|
||||
"Lists all available Languages",
|
||||
NULL
|
||||
};
|
||||
|
||||
const char *s_help_version[] = {
|
||||
"Syntax: \2VERSION\2",
|
||||
"",
|
||||
"StupidServ version information",
|
||||
NULL
|
||||
};
|
||||
|
||||
const char *s_help_about[] = {
|
||||
const char *s_about[] = {
|
||||
"\2StupidServ\2 was created with the help of some software",
|
||||
"called TalkFilters which is a collection of Translators",
|
||||
"created by a wide range of authors.",
|
||||
|
|
220
ss.c
220
ss.c
|
@ -1,5 +1,5 @@
|
|||
/* NeoStats - IRC Statistical Services Copyright (c) 1999-2004 NeoStats Group Inc.
|
||||
** Copyright (c) 1999-2004 Adam Rutter, Justin Hammond
|
||||
** Copyright (c) 1999-2004 Adam Rutter, Justin Hammond, Mark Hetherington
|
||||
** http://www.neostats.net/
|
||||
**
|
||||
** Portions Copyright (c) 2000-2001 ^Enigma^
|
||||
|
@ -24,16 +24,15 @@
|
|||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#ifndef WIN32
|
||||
#include "modconfig.h"
|
||||
#endif
|
||||
#include "neostats.h"
|
||||
#include "ss.h"
|
||||
#include "talkfilters.h"
|
||||
|
||||
/*
|
||||
* StupidServ name
|
||||
*/
|
||||
static char s_StupidServ[MAXNICK];
|
||||
static ModUser *ss_bot;
|
||||
/** Bot pointer */
|
||||
static Bot *ss_bot;
|
||||
|
||||
struct ss_cfg {
|
||||
char user[MAXUSER];
|
||||
|
@ -44,138 +43,84 @@ struct ss_cfg {
|
|||
/*
|
||||
* Local declarations
|
||||
*/
|
||||
static int s_send(User *u, char **av, int ac);
|
||||
static int s_convert(User *u, char **av, int ac);
|
||||
static int s_list(User *u, char **av, int ac);
|
||||
static int s_version(User *u, char **av, int ac);
|
||||
static int s_about(User *u, char **av, int ac);
|
||||
static int s_send (const CmdParams* cmdparams);
|
||||
static int s_convert (const CmdParams* cmdparams);
|
||||
static int s_list (const CmdParams* cmdparams);
|
||||
|
||||
static bot_cmd ss_commands[]=
|
||||
{
|
||||
{"SEND", s_send, 3, 0, s_help_send, s_help_send_oneline },
|
||||
{"CONVERT", s_convert, 2, 0, s_help_convert, s_help_convert_oneline },
|
||||
{"LIST", s_list, 0, 0, s_help_list, s_help_list_oneline },
|
||||
{"VERSION", s_version, 0, 0, s_help_version, s_help_version_oneline },
|
||||
{"ABOUT", s_about, 0, 0, s_help_about, s_help_about_oneline },
|
||||
{NULL, NULL, 0, 0, NULL, NULL}
|
||||
{"SEND", s_send, 3, 0, s_help_send },
|
||||
{"CONVERT", s_convert, 2, 0, s_help_convert },
|
||||
{"LIST", s_list, 0, 0, s_help_list },
|
||||
NS_CMD_END()
|
||||
};
|
||||
|
||||
static bot_setting ss_settings[]=
|
||||
{
|
||||
{"NICK", &s_StupidServ, SET_TYPE_NICK, 0, MAXNICK, NS_ULEVEL_ADMIN, "Nick", NULL, ns_help_set_nick },
|
||||
{"USER", &ss_cfg.user, SET_TYPE_USER, 0, MAXUSER, NS_ULEVEL_ADMIN, "User", NULL, ns_help_set_user },
|
||||
{"HOST", &ss_cfg.host, SET_TYPE_HOST, 0, MAXHOST, NS_ULEVEL_ADMIN, "Host", NULL, ns_help_set_host },
|
||||
{"REALNAME",&ss_cfg.realname,SET_TYPE_REALNAME, 0, MAXREALNAME, NS_ULEVEL_ADMIN, "RealName",NULL, ns_help_set_realname },
|
||||
{NULL, NULL, 0, 0, 0, 0, NULL, NULL, NULL },
|
||||
/** Copyright info */
|
||||
const char *ss_copyright[] = {
|
||||
"Copyright (c) 1999-2004, NeoStats",
|
||||
"http://www.neostats.net/",
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
* Module info descriptor
|
||||
*/
|
||||
ModuleInfo __module_info = {
|
||||
"StupidServ",
|
||||
"A Language Translator",
|
||||
MODULE_VERSION,
|
||||
/** Module info */
|
||||
ModuleInfo module_info = {
|
||||
"StupidServ",
|
||||
"A Language Translator",
|
||||
ss_copyright,
|
||||
s_about,
|
||||
NEOSTATS_VERSION,
|
||||
"3,0",
|
||||
__DATE__,
|
||||
__TIME__
|
||||
__TIME__,
|
||||
0,
|
||||
0,
|
||||
};
|
||||
|
||||
/** BotInfo */
|
||||
static BotInfo ss_botinfo =
|
||||
{
|
||||
"StupidServ",
|
||||
"StupidServ1",
|
||||
"SS",
|
||||
BOT_COMMON_HOST,
|
||||
"A Language Translator",
|
||||
BOT_FLAG_SERVICEBOT|BOT_FLAG_DEAF,
|
||||
ss_commands,
|
||||
NULL,
|
||||
};
|
||||
|
||||
/*
|
||||
* Introduce the StupidServ bot onto the network
|
||||
*/
|
||||
static int Online(char **av, int ac)
|
||||
int ModSynch (void)
|
||||
{
|
||||
ss_bot = init_mod_bot(s_StupidServ, ss_cfg.user, ss_cfg.host, ss_cfg.realname,
|
||||
services_bot_modes, BOT_FLAG_DEAF, ss_commands, ss_settings, __module_info.module_name);
|
||||
return 1;
|
||||
};
|
||||
|
||||
/*
|
||||
* IRC events that StupidServ responds to
|
||||
*/
|
||||
EventFnList __module_events[] = {
|
||||
{ EVENT_ONLINE, Online},
|
||||
{ NULL, NULL}
|
||||
};
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
int __ModInit(int modnum, int apiver)
|
||||
{
|
||||
char *temp = NULL;
|
||||
|
||||
#ifdef NS_ERR_VERSION /* Forward port version checks */
|
||||
/* Check that our compiled version if compatible with the calling version of NeoStats */
|
||||
if( ircstrncasecmp (me.version, NEOSTATS_VERSION, VERSIONSIZE) !=0) {
|
||||
return NS_ERR_VERSION;
|
||||
ss_bot = AddBot (&ss_botinfo);
|
||||
if (!ss_bot) {
|
||||
return NS_FAILURE;
|
||||
}
|
||||
#endif
|
||||
if(GetConf((void *) &temp, CFGSTR, "Nick") < 0) {
|
||||
strlcpy(s_StupidServ ,"StupidServ" ,MAXNICK);
|
||||
}
|
||||
else {
|
||||
strlcpy(s_StupidServ , temp, MAXNICK);
|
||||
free(temp);
|
||||
}
|
||||
if(GetConf((void *) &temp, CFGSTR, "User") < 0) {
|
||||
strlcpy(ss_cfg.user, "SS", MAXUSER);
|
||||
}
|
||||
else {
|
||||
strlcpy(ss_cfg.user, temp, MAXUSER);
|
||||
free(temp);
|
||||
}
|
||||
if(GetConf((void *) &temp, CFGSTR, "Host") < 0) {
|
||||
strlcpy(ss_cfg.host, me.name, MAXHOST);
|
||||
}
|
||||
else {
|
||||
strlcpy(ss_cfg.host, temp, MAXHOST);
|
||||
free(temp);
|
||||
}
|
||||
if(GetConf((void *) &temp, CFGSTR, "RealName") < 0) {
|
||||
strlcpy(ss_cfg.realname, "A Language Translator", MAXREALNAME);
|
||||
}
|
||||
else {
|
||||
strlcpy(ss_cfg.realname, temp, MAXREALNAME);
|
||||
free(temp);
|
||||
}
|
||||
return 1;
|
||||
return NS_SUCCESS;
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
void __ModFini()
|
||||
int ModInit( void )
|
||||
{
|
||||
};
|
||||
|
||||
/*
|
||||
* Routine for VERSION
|
||||
*/
|
||||
static int s_version(User *u, char **av, int ac)
|
||||
{
|
||||
SET_SEGV_LOCATION();
|
||||
prefmsg(u->nick, s_StupidServ, "\2%s Version Information\2", s_StupidServ);
|
||||
prefmsg(u->nick, s_StupidServ, "%s Version: %s Compiled %s at %s", s_StupidServ,
|
||||
__module_info.module_version, __module_info.module_build_date, __module_info.module_build_time);
|
||||
prefmsg(u->nick, s_StupidServ, "%s Author Fish <fish@neostats.net>", s_StupidServ);
|
||||
prefmsg(u->nick, s_StupidServ, "http://www.neostats.net");
|
||||
return NS_SUCCESS;
|
||||
}
|
||||
|
||||
/*
|
||||
* Routine for VERSION
|
||||
*
|
||||
*/
|
||||
static int s_about(User *u, char **av, int ac)
|
||||
int ModFini( void )
|
||||
{
|
||||
SET_SEGV_LOCATION();
|
||||
privmsg_list(u->nick, s_StupidServ, s_help_about);
|
||||
return NS_SUCCESS;
|
||||
}
|
||||
|
||||
/*
|
||||
* Routine for convert
|
||||
*/
|
||||
static int s_convert(User *u, char **av, int ac)
|
||||
static int s_convert (const CmdParams* cmdparams)
|
||||
{
|
||||
const gtf_filter_t *fp;
|
||||
char *inbuf;
|
||||
|
@ -184,68 +129,71 @@ static int s_convert(User *u, char **av, int ac)
|
|||
SET_SEGV_LOCATION();
|
||||
|
||||
/* now find the language they want */
|
||||
fp = gtf_filter_lookup(av[2]);
|
||||
fp = gtf_filter_lookup(cmdparams->av[0]);
|
||||
if (!fp) {
|
||||
prefmsg(u->nick, s_StupidServ, "Can not find that Language. /msg %s list for language list", s_StupidServ);
|
||||
return;
|
||||
irc_prefmsg (ss_bot, cmdparams->source, "Can not find that Language. /msg %s list for language list", ss_bot->name);
|
||||
return NS_SUCCESS;
|
||||
}
|
||||
inbuf = joinbuf(av, ac, 3);
|
||||
inbuf = joinbuf(cmdparams->av, cmdparams->ac, 1);
|
||||
if (fp->filter(inbuf, outbuf, 450) > 0) {
|
||||
prefmsg(u->nick, s_StupidServ, "Translated Text was too Long. Sending shortened text only");
|
||||
irc_prefmsg (ss_bot, cmdparams->source, "Translated Text was too Long. Sending shortened text only");
|
||||
}
|
||||
prefmsg(u->nick, s_StupidServ, "%s", outbuf);
|
||||
irc_prefmsg (ss_bot, cmdparams->source, "%s", outbuf);
|
||||
free(inbuf);
|
||||
return NS_SUCCESS;
|
||||
}
|
||||
|
||||
/*
|
||||
* Routine for list
|
||||
*/
|
||||
static int s_list(User *u, char **av, int ac)
|
||||
static int s_list (const CmdParams* cmdparams)
|
||||
{
|
||||
const gtf_filter_t *fp, *fp1;
|
||||
int i;
|
||||
|
||||
prefmsg(u->nick, s_StupidServ, "There are %d available Languages", gtf_filter_count());
|
||||
irc_prefmsg (ss_bot, cmdparams->source, "There are %d available Languages", gtf_filter_count());
|
||||
fp1 = gtf_filter_list();
|
||||
for (i = 0, fp = fp1; i < gtf_filter_count(); i++, fp++) {
|
||||
prefmsg(u->nick, s_StupidServ, "Language: %s, Description: %s", fp->name, fp->desc);
|
||||
irc_prefmsg (ss_bot, cmdparams->source, "Language: %s, Description: %s", fp->name, fp->desc);
|
||||
}
|
||||
prefmsg(u->nick, s_StupidServ, "End of List.");
|
||||
irc_prefmsg (ss_bot, cmdparams->source, "End of List.");
|
||||
return NS_SUCCESS;
|
||||
}
|
||||
|
||||
/*
|
||||
* Routine for send
|
||||
*/
|
||||
static int s_send(User *u, char **av, int ac)
|
||||
static int s_send (const CmdParams* cmdparams)
|
||||
{
|
||||
const gtf_filter_t *fp;
|
||||
char *inbuf;
|
||||
char outbuf[450];
|
||||
|
||||
SET_SEGV_LOCATION();
|
||||
if (findchan(av[3])) {
|
||||
if (UserLevel(u) < NS_ULEVEL_OPER) {
|
||||
prefmsg(u->nick, s_StupidServ, "Only Operators can send to channels.");
|
||||
return;
|
||||
}
|
||||
} else if (!finduser(av[3])) {
|
||||
prefmsg(u->nick, s_StupidServ, "That user cannot be found on IRC. As a result, your message was not sent. Please check the spelling and try again!");
|
||||
return;
|
||||
}
|
||||
/* The user has passed the minimum requirements for input */
|
||||
if (FindChannel(cmdparams->av[1])) {
|
||||
if (UserLevel(cmdparams->source) < NS_ULEVEL_OPER) {
|
||||
irc_prefmsg (ss_bot, cmdparams->source, "Only Operators can send to channels.");
|
||||
return NS_SUCCESS;
|
||||
}
|
||||
} else if (!FindUser(cmdparams->av[1])) {
|
||||
irc_prefmsg (ss_bot, cmdparams->source, "That user cannot be found on IRC. As a result, your message was not sent. Please check the spelling and try again!");
|
||||
return NS_SUCCESS;
|
||||
}
|
||||
/* The user has passed the minimum requirements for input */
|
||||
|
||||
/* now find the language they want */
|
||||
fp = gtf_filter_lookup(av[2]);
|
||||
fp = gtf_filter_lookup(cmdparams->av[0]);
|
||||
if (!fp) {
|
||||
prefmsg(u->nick, s_StupidServ, "Can not find that Language. /msg %s list for language list", s_StupidServ);
|
||||
return;
|
||||
irc_prefmsg (ss_bot, cmdparams->source, "Can not find that Language. /msg %s list for language list", ss_bot->name);
|
||||
return NS_SUCCESS;
|
||||
}
|
||||
inbuf = joinbuf(av, ac, 4);
|
||||
inbuf = joinbuf(cmdparams->av, cmdparams->ac, 2);
|
||||
if (fp->filter(inbuf, outbuf, 450) > 0) {
|
||||
prefmsg(u->nick, s_StupidServ, "Translated Text was too Long. Sending shortened text only");
|
||||
irc_prefmsg (ss_bot, cmdparams->source, "Translated Text was too Long. Sending shortened text only");
|
||||
}
|
||||
prefmsg(av[3], s_StupidServ, "%s is talking %s, and sent this:", u->nick, av[2]);
|
||||
prefmsg(av[3], s_StupidServ, "%s", outbuf);
|
||||
prefmsg(u->nick, s_StupidServ, "Your Message was sent to %s", av[3]);
|
||||
irc_prefmsg (ss_bot, FindUser(cmdparams->av[1]), "%s is talking %s, and sent this:", cmdparams->source->name, cmdparams->av[0]);
|
||||
irc_prefmsg (ss_bot, FindUser(cmdparams->av[1]), "%s", outbuf);
|
||||
irc_prefmsg (ss_bot, cmdparams->source, "Your Message was sent to %s", cmdparams->av[1]);
|
||||
free(inbuf);
|
||||
return NS_SUCCESS;
|
||||
}
|
||||
|
|
12
ss.h
12
ss.h
|
@ -23,17 +23,7 @@
|
|||
** $Id$
|
||||
*/
|
||||
|
||||
extern const char s_help_send_oneline[];
|
||||
extern const char s_help_convert_oneline[];
|
||||
extern const char s_help_list_oneline[];
|
||||
extern const char s_help_about_oneline[];
|
||||
extern const char s_help_version_oneline[];
|
||||
extern const char *s_help_send[];
|
||||
extern const char *s_help_convert[];
|
||||
extern const char *s_help_list[];
|
||||
extern const char *s_help_version[];
|
||||
extern const char *s_help_about[];
|
||||
extern const char *ss_help_set_nick[];
|
||||
extern const char *ss_help_set_user[];
|
||||
extern const char *ss_help_set_host[];
|
||||
extern const char *ss_help_set_realname[];
|
||||
extern const char *s_about[];
|
||||
|
|
2
stamp-h1
2
stamp-h1
|
@ -1 +1 @@
|
|||
timestamp for config.h
|
||||
timestamp for modconfig.h
|
||||
|
|
17
stupidserv.sln
Normal file
17
stupidserv.sln
Normal file
|
@ -0,0 +1,17 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual C++ Express 2005
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "StupidServ", "stupidserv.vcproj", "{D4947737-CFE5-4368-92AF-B79C0F55D09B}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{D4947737-CFE5-4368-92AF-B79C0F55D09B}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{D4947737-CFE5-4368-92AF-B79C0F55D09B}.Release|Win32.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
320
stupidserv.vcproj
Normal file
320
stupidserv.vcproj
Normal file
|
@ -0,0 +1,320 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8.00"
|
||||
Name="StupidServ"
|
||||
ProjectGUID="{D4947737-CFE5-4368-92AF-B79C0F55D09B}"
|
||||
RootNamespace="StupidServ"
|
||||
Keyword="Win32Proj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="Debug"
|
||||
IntermediateDirectory="Debug"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\dev\include;..\dev\lib\curl;..\dev\lib\pcre"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;StupidServ_EXPORTS"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="0"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="4"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="Ws2_32.lib neostats.lib pcred.lib"
|
||||
OutputFile="../dev/modules/StupidServd.dll"
|
||||
LinkIncremental="2"
|
||||
AdditionalLibraryDirectories="..\\dev\lib;..\dev\src\Debug"
|
||||
IgnoreDefaultLibraryNames="LIBC"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile="$(OutDir)/StupidServ.pdb"
|
||||
SubSystem="2"
|
||||
ResourceOnlyDLL="false"
|
||||
ImportLibrary="$(OutDir)/StupidServ.lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="Release"
|
||||
IntermediateDirectory="Release"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories=""%programfiles%\NeoStats\include";"C:\Program Files\NeoStats\include";win32"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;StupidServ_EXPORTS;LIBRARY_MODE;YY_NO_UNISTD_H;TALKFILTERS_EXPORTS"
|
||||
RuntimeLibrary="0"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="Ws2_32.lib neostats.lib pcre.lib"
|
||||
OutputFile="StupidServ.dll"
|
||||
LinkIncremental="1"
|
||||
AdditionalLibraryDirectories=""C:\program Files\NeoStats\libs""
|
||||
IgnoreDefaultLibraryNames="LIBC"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
ImportLibrary="$(OutDir)/StupidServ.lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\austro.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\b1ff.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\brooklyn.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\chef.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\cockney.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\common.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\drawl.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\dubya.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\fudd.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\funetak.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\jethro.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\jive.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\kraut.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\pansy.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\pirate.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\postmodern.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\redneck.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\s_help.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ss.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\talkfilters.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\valspeak.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\warez.c"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\common.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\win32\modconfigwin32.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ss.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\StupidServ.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\talkfilters.h"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
|
||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\win32\neostatsversion.rc"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
|
@ -18,35 +18,84 @@
|
|||
Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "modconfig.h"
|
||||
#endif
|
||||
|
||||
#include <stddef.h>
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
#include "talkfilters.h"
|
||||
|
||||
static const char *__gtf_version = "GNU Talkfilters v2.0";
|
||||
#ifdef WIN32
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning (disable: 4996)
|
||||
#define strcasecmp stricmp
|
||||
#endif
|
||||
|
||||
static const char *__gtf_version = "GNU Talkfilters v2.3.7";
|
||||
|
||||
extern int __gtf_filter_austro(const char *, char *, size_t);
|
||||
extern int __gtf_filter_b1ff(const char *, char *, size_t);
|
||||
extern int __gtf_filter_brooklyn(const char *, char *, size_t);
|
||||
extern int __gtf_filter_chef(const char *, char *, size_t);
|
||||
extern int __gtf_filter_cockney(const char *, char *, size_t);
|
||||
extern int __gtf_filter_drawl(const char *, char *, size_t);
|
||||
extern int __gtf_filter_dubya(const char *, char *, size_t);
|
||||
extern int __gtf_filter_fudd(const char *, char *, size_t);
|
||||
extern int __gtf_filter_funetak(const char *, char *, size_t);
|
||||
extern int __gtf_filter_jethro(const char *, char *, size_t);
|
||||
extern int __gtf_filter_jive(const char *, char *, size_t);
|
||||
extern int __gtf_filter_kraut(const char *, char *, size_t);
|
||||
extern int __gtf_filter_pansy(const char *, char *, size_t);
|
||||
extern int __gtf_filter_pirate(const char *, char *, size_t);
|
||||
extern int __gtf_filter_postmodern(const char *, char *, size_t);
|
||||
extern int __gtf_filter_redneck(const char *, char *, size_t);
|
||||
extern int __gtf_filter_valspeak(const char *, char *, size_t);
|
||||
extern int __gtf_filter_warez(const char *, char *, size_t);
|
||||
|
||||
static gtf_filter_t __gtf_filters[] =
|
||||
{
|
||||
{ "b1ff", "B1FF", gtf_filter_b1ff },
|
||||
{ "brooklyn", "Brooklyn", gtf_filter_brooklyn },
|
||||
{ "chef", "Swedish Chef", gtf_filter_chef },
|
||||
{ "cockney", "London Cockney", gtf_filter_cockney },
|
||||
{ "drawl", "Southern Drawl", gtf_filter_drawl },
|
||||
{ "fudd", "Elmer Fudd", gtf_filter_fudd },
|
||||
{ "funetak", "Funetak", gtf_filter_funetak },
|
||||
{ "jethro", "Jethro", gtf_filter_jethro },
|
||||
{ "jive", "Jive", gtf_filter_jive },
|
||||
{ "kraut", "Kraut", gtf_filter_kraut },
|
||||
{ "pansy", "Pansy", gtf_filter_pansy },
|
||||
{ "postmodern", "Postmodernist", gtf_filter_postmodern },
|
||||
{ "redneck", "Redneck", gtf_filter_redneck },
|
||||
{ "valspeak", "Valley Speak", gtf_filter_valspeak },
|
||||
{ "warez", "Warez (H4x0r)", gtf_filter_warez },
|
||||
{ "austro", "Austro", __gtf_filter_austro },
|
||||
{ "b1ff", "B1FF", __gtf_filter_b1ff },
|
||||
{ "brooklyn", "Brooklyn", __gtf_filter_brooklyn },
|
||||
{ "chef", "Swedish Chef", __gtf_filter_chef },
|
||||
{ "cockney", "London Cockney", __gtf_filter_cockney },
|
||||
{ "drawl", "Southern Drawl", __gtf_filter_drawl },
|
||||
{ "dubya", "George Dubya", __gtf_filter_dubya },
|
||||
{ "fudd", "Elmer Fudd", __gtf_filter_fudd },
|
||||
{ "funetak", "Funetak", __gtf_filter_funetak },
|
||||
{ "jethro", "Jethro", __gtf_filter_jethro },
|
||||
{ "jive", "Jive", __gtf_filter_jive },
|
||||
{ "kraut", "Kraut", __gtf_filter_kraut },
|
||||
{ "pansy", "Pansy", __gtf_filter_pansy },
|
||||
{ "pirate", "Pirate", __gtf_filter_pirate },
|
||||
{ "postmodern", "Postmodernist", __gtf_filter_postmodern },
|
||||
{ "redneck", "Redneck", __gtf_filter_redneck },
|
||||
{ "valspeak", "Valley Speak", __gtf_filter_valspeak },
|
||||
{ "warez", "Warez (H4x0r)", __gtf_filter_warez },
|
||||
};
|
||||
|
||||
static int __gtf_filter_count = sizeof(__gtf_filters) / sizeof(gtf_filter_t);
|
||||
|
||||
/*
|
||||
*/
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||
{
|
||||
return(TRUE);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
*/
|
||||
|
||||
|
|
|
@ -23,7 +23,23 @@
|
|||
|
||||
#include <sys/types.h>
|
||||
|
||||
/* filter lookup interface */
|
||||
// DLL kludges
|
||||
|
||||
#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
|
||||
#if defined(TALKFILTERS_EXPORTS)
|
||||
#define TALKFILTERS_API __declspec(dllexport)
|
||||
#else // ! TALKFILTERS_EXPORTS
|
||||
#define TALKFILTERS_API __declspec(dllimport)
|
||||
#endif // TALKFILTERS_EXPORTS
|
||||
#else // ! WIN32
|
||||
#define TALKFILTERS_API
|
||||
#endif // WIN32
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// filter lookup interface
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
@ -32,42 +48,70 @@ typedef struct
|
|||
int (*filter)(const char *, char *, size_t);
|
||||
} gtf_filter_t;
|
||||
|
||||
extern int gtf_filter_count(void);
|
||||
extern TALKFILTERS_API int gtf_filter_count(void);
|
||||
|
||||
extern const gtf_filter_t *gtf_filter_list(void);
|
||||
extern TALKFILTERS_API const gtf_filter_t *gtf_filter_list(void);
|
||||
|
||||
extern const gtf_filter_t *gtf_filter_lookup(const char *name);
|
||||
extern TALKFILTERS_API const gtf_filter_t *gtf_filter_lookup(const char *name);
|
||||
|
||||
/* individual filters */
|
||||
// individual filters
|
||||
|
||||
extern int gtf_filter_b1ff(const char *input, char *buf, size_t bufsz);
|
||||
extern TALKFILTERS_API int gtf_filter_austro(const char *input, char *buf,
|
||||
size_t bufsz);
|
||||
|
||||
extern int gtf_filter_brooklyn(const char *input, char *buf, size_t bufsz);
|
||||
extern TALKFILTERS_API int gtf_filter_b1ff(const char *input, char *buf,
|
||||
size_t bufsz);
|
||||
|
||||
extern int gtf_filter_chef(const char *input, char *buf, size_t bufsz);
|
||||
extern TALKFILTERS_API int gtf_filter_brooklyn(const char *input, char *buf,
|
||||
size_t bufsz);
|
||||
|
||||
extern int gtf_filter_cockney(const char *input, char *buf, size_t bufsz);
|
||||
extern TALKFILTERS_API int gtf_filter_chef(const char *input, char *buf,
|
||||
size_t bufsz);
|
||||
|
||||
extern int gtf_filter_drawl(const char *input, char *buf, size_t bufsz);
|
||||
extern TALKFILTERS_API int gtf_filter_cockney(const char *input, char *buf,
|
||||
size_t bufsz);
|
||||
|
||||
extern int gtf_filter_fudd(const char *input, char *buf, size_t bufsz);
|
||||
extern TALKFILTERS_API int gtf_filter_drawl(const char *input, char *buf,
|
||||
size_t bufsz);
|
||||
|
||||
extern int gtf_filter_funetak(const char *input, char *buf, size_t bufsz);
|
||||
extern TALKFILTERS_API int gtf_filter_dubya(const char *input, char *buf,
|
||||
size_t bufsz);
|
||||
|
||||
extern int gtf_filter_jethro(const char *input, char *buf, size_t bufsz);
|
||||
extern TALKFILTERS_API int gtf_filter_fudd(const char *input, char *buf,
|
||||
size_t bufsz);
|
||||
|
||||
extern int gtf_filter_jive(const char *input, char *buf, size_t bufsz);
|
||||
extern TALKFILTERS_API int gtf_filter_funetak(const char *input, char *buf,
|
||||
size_t bufsz);
|
||||
|
||||
extern int gtf_filter_kraut(const char *input, char *buf, size_t bufsz);
|
||||
extern TALKFILTERS_API int gtf_filter_jethro(const char *input, char *buf,
|
||||
size_t bufsz);
|
||||
|
||||
extern int gtf_filter_pansy(const char *input, char *buf, size_t bufsz);
|
||||
extern TALKFILTERS_API int gtf_filter_jive(const char *input, char *buf,
|
||||
size_t bufsz);
|
||||
|
||||
extern int gtf_filter_postmodern(const char *input, char *buf, size_t bufsz);
|
||||
extern TALKFILTERS_API int gtf_filter_kraut(const char *input, char *buf,
|
||||
size_t bufsz);
|
||||
|
||||
extern int gtf_filter_redneck(const char *input, char *buf, size_t bufsz);
|
||||
extern TALKFILTERS_API int gtf_filter_pansy(const char *input, char *buf,
|
||||
size_t bufsz);
|
||||
|
||||
extern int gtf_filter_valspeak(const char *input, char *buf, size_t bufsz);
|
||||
extern TALKFILTERS_API int gtf_filter_pirate(const char *input, char *buf,
|
||||
size_t bufsz);
|
||||
|
||||
extern int gtf_filter_warez(const char *input, char *buf, size_t bufsz);
|
||||
extern TALKFILTERS_API int gtf_filter_postmodern(const char *input, char *buf,
|
||||
size_t bufsz);
|
||||
|
||||
extern TALKFILTERS_API int gtf_filter_redneck(const char *input, char *buf,
|
||||
size_t bufsz);
|
||||
|
||||
extern TALKFILTERS_API int gtf_filter_valspeak(const char *input, char *buf,
|
||||
size_t bufsz);
|
||||
|
||||
extern TALKFILTERS_API int gtf_filter_warez(const char *input, char *buf,
|
||||
size_t bufsz);
|
||||
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif /* __gnu_talkfilters_h */
|
||||
|
|
2702
valspeak.c
2702
valspeak.c
File diff suppressed because it is too large
Load diff
311
win32/StupidServ.qsp
Normal file
311
win32/StupidServ.qsp
Normal file
|
@ -0,0 +1,311 @@
|
|||
[General]
|
||||
FileVersion=1.1
|
||||
FileType=QSetupIniFile
|
||||
ComposerVersion=8.5.0.4
|
||||
OperatingSystem=WinXP 5.1 2600 (Service Pack 2)
|
||||
ProcessorNameString=Intel(R) Xeon(TM) CPU 2.40GHz
|
||||
ComputerRAM=1534 MB
|
||||
ProjectDrive=
|
||||
DateTime=07-MAR-2008 15:46:37
|
||||
OutputType=EXE
|
||||
Language=ENGLISH
|
||||
License=PRO
|
||||
|
||||
[Project]
|
||||
ProjectName=StupidServ
|
||||
ProjectDirectory=win32
|
||||
NonSFXDirectory=
|
||||
MediaFileName=win32\StupidServ-Setup
|
||||
CopyMediaToFName=
|
||||
ProgramDescriptiveName=StupidServ for NeoStats
|
||||
ProgramVersion=3.0.4.0
|
||||
CompanyName=NeoStats
|
||||
ProgVerLiveUpdate=1
|
||||
RegisterAsApp=0
|
||||
LanguageFlag=1
|
||||
LanguageNames=|
|
||||
UseNonSFXDir=0
|
||||
ClrNonSFXDir=0
|
||||
BuildNonSFXTree=0
|
||||
CompressNonSFXFiles=0
|
||||
ForceCopyNonSFXFiles=0
|
||||
CompressionLevel=0
|
||||
SetupWillExpire=0
|
||||
ExpireByDate=0
|
||||
ExpireByDays=1
|
||||
ExpireDate=2008-03-07
|
||||
ExpireDays=90
|
||||
SpanCDs=0
|
||||
SpanCDsSize=650
|
||||
DebugWindow=0
|
||||
DebugOnThisPC=1
|
||||
DebugOnEveryPC=0
|
||||
|
||||
[Language]
|
||||
|
||||
[LanguageShortcut]
|
||||
|
||||
[LanguageCustomDLG]
|
||||
|
||||
[Display]
|
||||
AddSetupBackground=1
|
||||
SetupBackground3D=0
|
||||
TopLabel=1
|
||||
TopLabelVer=0
|
||||
TopLabel2=0
|
||||
BottomLabel=0
|
||||
TopLabelText="StupidServ for NeoStats"
|
||||
TopLabel2Text=""
|
||||
BottomLabelText="Copyright © 2008"
|
||||
BackgroundDesign=Windmill (Right)
|
||||
TopBackgroundColor=16758613
|
||||
BottomBackgroundColor=11613445
|
||||
AddBottomColor=1
|
||||
DlgBmp3DFrame=1
|
||||
DialogStyle=Modern
|
||||
AddDialogBitmap=0
|
||||
DialogBitmapFileName=
|
||||
AddBackgroundBitmap=0
|
||||
BackgroundBitmapFileName=
|
||||
BackgroundBitmapLocation=|Top/Left|0|0|
|
||||
AddBackgroundWave=0
|
||||
BgBmpTransparent=0
|
||||
BackgroundWaveFileName=
|
||||
BackgroundWaveLocation=|Center|300|0|
|
||||
BackgroundWaveLoop=1
|
||||
BackgroundWaveDelay=0
|
||||
AddBackgroundWaveSlider=1
|
||||
BackgroundWaveSliderType=Fixed
|
||||
TopLabelSide=Left
|
||||
TopLabel2Side=Left
|
||||
BottomLabelSide=Left
|
||||
DialogLocation=|Center|0|0|
|
||||
TopLabelFont=|Tahoma|32|16777215|1|0|1|0|
|
||||
TopLabel2Font=|Tahoma|16|16777215|1|0|1|0|
|
||||
BottomLabelFont=|Tahoma|10|16777215|1|0|1|0|
|
||||
CompanyUrl=
|
||||
|
||||
[TargetExe]
|
||||
TargetDirectory=<ProgramFilesDir>NeoStats
|
||||
CommonDirectory=<CommonFilesDir>NeoStats\modules
|
||||
AuxDirectory=<FontDir>
|
||||
TargetExeName=<Common Folder>\StupidServ.dll
|
||||
|
||||
[Dialogs]
|
||||
SelectedDialogs=*Welcome,*License,*Readme,User Information,Setup Type,Custom,*Destination,Associate,Shortcuts,*Confirm Setup,*Copy Files,*Complete
|
||||
LicenseTextFile=COPYING
|
||||
ReadmeTextFile=RELNOTES.win32.txt
|
||||
ReadmeTextFile2=
|
||||
UseNotepad=0
|
||||
SpaceReqOnDriveCheckBox=0
|
||||
SpaceReqOnDrive=
|
||||
RequestUserName=1
|
||||
RequestCompanyName=1
|
||||
RequestSerialNumberAlso=0
|
||||
MandatoryUserName=1
|
||||
MandatoryCompanyName=1
|
||||
MandatorySerialNumber=1
|
||||
FromPcUserName=0
|
||||
FromPcCompanyName=0
|
||||
RequestSerialCheckDLL=0
|
||||
SerialCheckDll=
|
||||
RequestPredefinedSerial=0
|
||||
CaseSensitiveSerial=0
|
||||
RequestTokenizedSerial=0
|
||||
CDSetup=0
|
||||
ShowCompactSetupAlso=1
|
||||
ForcePartialSetup=0
|
||||
ShowProgBar2=1
|
||||
SilentSetup=0
|
||||
EnableCancelButton=1
|
||||
HiddenSetup=0
|
||||
ProposeReadme=0
|
||||
ProposeLaunch=0
|
||||
ProposeRestart=0
|
||||
ProposeReadmeChecked=0
|
||||
ProposeLaunchChecked=0
|
||||
ForceRestart=0
|
||||
ShowCloseRecommendation=1
|
||||
ShowAdwareDisclaimer=0
|
||||
ShowCopyrightWarning=1
|
||||
|
||||
[Shortcuts]
|
||||
AddMainShortCut=0
|
||||
ForceRemoveShortcutFolder=0
|
||||
ProgramLinkFolder=StupidServ for NeoStats
|
||||
ProgramLinkName=StupidServ
|
||||
ProgramLinkParam=
|
||||
ProgramLinkWorkDir=
|
||||
ProgramLinkRun=Normal Window
|
||||
ProgramLinkIconFile=
|
||||
ProgramLinkIconNum=0
|
||||
StartMenuLinkName=StupidServ for NeoStats
|
||||
DesktopLinkName=StupidServ for NeoStats
|
||||
SendToLinkName=StupidServ for NeoStats
|
||||
StartUpLinkName=StupidServ for NeoStats
|
||||
QuickLaunchLinkName=StupidServ for NeoStats
|
||||
StartMenuCheckBox=0
|
||||
DesktopCheckBox=0
|
||||
SendToCheckBox=0
|
||||
StartUpCheckBox=0
|
||||
QuickLaunchCheckBox=0
|
||||
StartMenuChecked=1
|
||||
DesktopChecked=1
|
||||
SendToChecked=1
|
||||
StartUpChecked=1
|
||||
QuickLaunchChecked=1
|
||||
SetAllUsers=0
|
||||
SelectedByEndUser=0
|
||||
AddUninstallShortcut=1
|
||||
UnInstallSubFolder=0
|
||||
UnInstallSubFolderText=
|
||||
|
||||
[Billboard]
|
||||
AddBillboard=0
|
||||
Item-000=|1|0|0|1|0|Center|0|0|8388608|16711680|Verdana|14|16777215|1|0|360|360|0|1|0|1|
|
||||
|
||||
[SplitSetup]
|
||||
SplitSetup=0
|
||||
ForceDownload=1
|
||||
DownloadURL_SPLIT=http://
|
||||
ConfirmSplitDownload=0
|
||||
|
||||
[AutoUpdate]
|
||||
AutoUpdate=0
|
||||
CheckAUSetupEnd=0
|
||||
RunAutoUpdate=1
|
||||
AddAutoUpdateShortcut=1
|
||||
AutoUpdateLog=0
|
||||
AutoUpdateSubFolder=0
|
||||
AutoUpdateSubFolderText=
|
||||
ReqConfirmDownload=0
|
||||
ReqConfirmInstall=0
|
||||
ShutDownMethod=Don't Shut Down
|
||||
BackgroundUpdate=0
|
||||
RestartProcess=0
|
||||
InformFinish=0
|
||||
UpdateProjectFName=
|
||||
DownloadURL_UPDATE=http:
|
||||
NameOfUpdateFile=
|
||||
RunningProcess=
|
||||
VersionOriginal=1
|
||||
ValidVersions=
|
||||
VersionNew=1
|
||||
ReAskDays=0
|
||||
AutoUpdateProbeSpin=1
|
||||
AutoUpdateProbeText=Only at Agent Start
|
||||
SelectInformFile=1
|
||||
DownloadUrlInform=1
|
||||
DownloadURL_INFORM=http://
|
||||
NameOfInformFile=
|
||||
UpdateSetupPageIndex=0
|
||||
AutoInformW=360
|
||||
AutoInformH=360
|
||||
|
||||
[Switches]
|
||||
OperatingSystems=All,95,98,ME,NT,2000,XP,2003,Vista
|
||||
OverwriteFlag=1
|
||||
CreateLogFile=0
|
||||
ConfirmExtract=0
|
||||
ShowActivityBar=1
|
||||
TestAdminRights=1
|
||||
TestAdminRightsUnInstall=1
|
||||
SetAllowFullAccess=1
|
||||
TestDotNetFramework=0
|
||||
InstallDotNetFx=0
|
||||
InstallDotNetFxText=
|
||||
InstallDotNetFxUrl=0
|
||||
InstallDotNetFxUrlText=http://
|
||||
DotNetFrameworkReqVer=1.0,1.1,2.0
|
||||
TestExeBeforeInstall=0
|
||||
TestExeBeforeUnInstall=1
|
||||
AutorunCreateInfFile=0
|
||||
AutorunTest=0
|
||||
AutorunStartApp=0
|
||||
AddAppToRunOnce=0
|
||||
AddAppToRun=0
|
||||
IfPreviousInstallationFound=1
|
||||
PreviousInstallationOp=UnInstall before Setup start
|
||||
UnInstallPreviousMode=Silent
|
||||
CreateUnInstall=0
|
||||
ScrambleUnInstallData=0
|
||||
SilentUnInstall=0
|
||||
HiddenUnInstall=0
|
||||
HideErrMsgUnInstall=0
|
||||
HideLogBtnUnInstall=0
|
||||
AddRemoveProgramsUnInstall=1
|
||||
AddChangeButtonUnInstall=0
|
||||
UnInstallExeStampSwitch=0
|
||||
UnInstallExeStamp=
|
||||
UnInstallExeDirSwitch=0
|
||||
UnInstallExeDir=
|
||||
|
||||
[UnInstall]
|
||||
UnInstallDisplayName=StupidServ for NeoStats
|
||||
UnInstallDisplayIcon=
|
||||
UnInstallDisplayIconNum=
|
||||
UnInstallHelpLink=
|
||||
UnInstallInfoAboutURL=
|
||||
|
||||
[Registry]
|
||||
|
||||
[IniFile]
|
||||
|
||||
[Environment]
|
||||
|
||||
[Association]
|
||||
OpenWith=0
|
||||
OpenWithName=
|
||||
OpenWithMenuText=Open with
|
||||
OpenWithExtensions=
|
||||
|
||||
[VerInfo]
|
||||
CopyFromExe=0
|
||||
DefineManually=0
|
||||
Item-001=|Comments||
|
||||
Item-002=|CompanyName||
|
||||
Item-003=|FileDescription||
|
||||
Item-004=|FileVersion||
|
||||
Item-005=|InternalName||
|
||||
Item-006=|LegalCopyright||
|
||||
Item-007=|LegalTrademarks||
|
||||
Item-008=|OriginalFilename||
|
||||
Item-009=|ProductName||
|
||||
Item-010=|ProductVersion||
|
||||
CopyIconFromTargetExe=0
|
||||
CopyIconFromOtherApp=0
|
||||
OtherIconAppFileName=
|
||||
Spin1=0
|
||||
Spin2=0
|
||||
|
||||
[Execute]
|
||||
ExecuteDllCheckBox=0
|
||||
ExecutionDllFileName=
|
||||
Exec-000=*||CheckNeoStats|Setup Start|10|Conditional|0|1|Application Found||0|0|0|File Found||0|0|0|File Found||1|Display Message||1|Exit||0|Display Message||0|Display Message||0|Display Message||0|Display Message||1|
|
||||
Arg-000-1=neostats.exe
|
||||
Arg-000-2==
|
||||
Arg-000-6==
|
||||
Arg-000-10==
|
||||
Arg-000-13=NeoStats must be installed to install StupidServ
|
||||
Exec-001=*||CheckingRunning|Setup Start|10|While Loop|0|0|Application is Running||0|0|0|File Found||0|0|0|File Found||1|Display Message||0|Display Message||0|Display Message||0|Display Message||0|Display Message||0|Display Message||1|
|
||||
Arg-001-1=neostats.exe
|
||||
Arg-001-2==
|
||||
Arg-001-6==
|
||||
Arg-001-10==
|
||||
Arg-001-13=You must shutdown NeoStats before installing StupidServ
|
||||
|
||||
[MSI]
|
||||
Version=1
|
||||
AddMergeModule=0
|
||||
Msm2MsiData=|MSM2MSI_StupidServ-Setup.exe.msi|1|1|1|0|
|
||||
|
||||
[GroupNames]
|
||||
Group-000=Modules
|
||||
|
||||
[Group-000]
|
||||
TypicalCompactData=15
|
||||
Description=Modules
|
||||
SizeInKB=0
|
||||
Item-000=Fol*<Common Folder>
|
||||
Item-001=Fil*StupidServ.dll
|
||||
|
4
win32/buildwin32snap.bat
Normal file
4
win32/buildwin32snap.bat
Normal file
|
@ -0,0 +1,4 @@
|
|||
@echo off
|
||||
IF EXIST win32\StupidServ-Setup*.exe del win32\StupidServ-Setup*.exe
|
||||
"C:\Program Files\Pantaray\QSetup\Composer.exe" win32\StupidServ.qsp /Compile /Exit
|
||||
move win32\StupidServ-Setup.exe win32\StupidServ-Setup-3-0-1-%1.exe
|
20
win32/modconfigwin32.h
Normal file
20
win32/modconfigwin32.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
/* modconfig.h. Generated by configure. */
|
||||
/* define this to enable debug code for this module */
|
||||
/* #undef DEBUG */
|
||||
|
||||
/* Version number of package */
|
||||
#define MODULE_VERSION "3.0.1"
|
||||
|
||||
/* Major Version */
|
||||
#define MODULE_MAJOR "3"
|
||||
|
||||
/* Minor Version */
|
||||
#define MODULE_MINOR "0"
|
||||
|
||||
/* Revision */
|
||||
#define MODULE_REV "1"
|
||||
|
||||
/* "Full Version" */
|
||||
#define MOD_VERSION "3.0.1"
|
||||
#define MOD_WIN32VER "3,0,1,0"
|
||||
#define MOD_WIN32VERN 3,0,1
|
29
win32/neostatsversion.rc
Normal file
29
win32/neostatsversion.rc
Normal file
|
@ -0,0 +1,29 @@
|
|||
#include "modconfigwin32.h"
|
||||
1 VERSIONINFO
|
||||
FILEVERSION MOD_WIN32VERN
|
||||
PRODUCTVERSION MOD_WIN32VERN
|
||||
FILEFLAGSMASK 0x3fL
|
||||
FILEFLAGS 0x1L
|
||||
FILEOS 0x4L
|
||||
FILETYPE 0x1L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040704e4"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "NeoStats"
|
||||
VALUE "Copyright (C) 2008", "Copyright (c) 1999-2008 Adam Rutter, Justin Hammond, Mark Hetherington"
|
||||
VALUE "FileDescription", "NeoStats IRC Services"
|
||||
VALUE "FileVersion", MOD_WIN32VER
|
||||
VALUE "InternalName", "stupidserv.dll"
|
||||
VALUE "OriginalFilename", "stupidserv.dll"
|
||||
VALUE "ProductName", "StupidServ for win32"
|
||||
VALUE "ProductVersion", MOD_WIN32VER
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x407, 1252
|
||||
END
|
||||
END
|
Reference in a new issue