update Win32 build to VS2005

This commit is contained in:
Mark 2005-11-14 22:40:36 +00:00
parent 80f55f8b1f
commit 1836cd08cb
2 changed files with 143 additions and 63 deletions

6
seen.c
View file

@ -121,7 +121,7 @@ int dbsavetimer(void *userptr)
{
sd->recordsaved = 1;
strlcpy( nicklower, sd->nick, MAXNICK );
DBAStore( "seendata", strlwr(nicklower),( void * )sd, sizeof( SeenData ) );
DBAStore( "seendata", ns_strlwr(nicklower),( void * )sd, sizeof( SeenData ) );
if( !SeenServ.memorylist )
{
ns_free( sd );
@ -391,7 +391,7 @@ int CheckSeenData(const CmdParams *cmdparams, SEEN_CHECK checktype)
{
sdo = ns_calloc( sizeof( SeenData ) );
strlcpy( nicklower, cmdparams->av[0], MAXNICK );
if( DBAFetch( "seendata", strlwr(nicklower), ( void * )sdo, sizeof( SeenData ) ) != NS_FAILURE )
if( DBAFetch( "seendata", ns_strlwr(nicklower), ( void * )sdo, sizeof( SeenData ) ) != NS_FAILURE )
seenentriesfound = 1;
} else {
ln = list_last(seenlist);
@ -516,7 +516,7 @@ int CheckSeenData(const CmdParams *cmdparams, SEEN_CHECK checktype)
/* delete record if DB Only and past expiration date */
if( SeenServ.expiretime > 0 && ( ( me.now - ( SeenServ.expiretime * TS_ONE_DAY ) ) > sdo->seentime ) )
{
DBADelete( "seendata", strlwr(nicklower) );
DBADelete( "seendata", ns_strlwr(nicklower) );
}
ns_free( sdo );
} else {

View file

@ -1,75 +1,127 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.10"
Version="8.00"
Name="seenserv"
ProjectGUID="{E033ECCE-E55E-43BC-89E7-ABE8AA46CE1F}"
Keyword="Win32Proj">
ProjectGUID="{16FE1E40-CD22-4D39-AD48-F23620AA860C}"
RootNamespace="seenserv"
Keyword="Win32Proj"
>
<Platforms>
<Platform
Name="Win32"/>
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
IntermediateDirectory="Debug"
ConfigurationType="2"
CharacterSet="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\adns;..\dev\lib\curl;..\dev\lib\pcre"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;seenserv_EXPORTS"
MinimalRebuild="TRUE"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="4"
RuntimeLibrary="0"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="4"/>
Detect64BitPortabilityProblems="true"
DebugInformationFormat="4"
/>
<Tool
Name="VCCustomBuildTool"/>
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="Ws2_32.lib neostats.lib pcred.lib"
AdditionalDependencies="Ws2_32.lib neostats.lib pcred.lib"
OutputFile="../dev/modules/seenservd.dll"
LinkIncremental="2"
AdditionalLibraryDirectories="C:\cygwin\home\Mark\nsdev\dev\lib;..\dev\src\Debug"
IgnoreDefaultLibraryNames="LIBCD"
GenerateDebugInformation="TRUE"
GenerateDebugInformation="true"
ProgramDatabaseFile="$(OutDir)/seenserv.pdb"
SubSystem="2"
ResourceOnlyDLL="TRUE"
ResourceOnlyDLL="false"
ImportLibrary="$(OutDir)/seenserv.lib"
TargetMachine="1"/>
TargetMachine="1"
/>
<Tool
Name="VCMIDLTool"/>
Name="VCALinkTool"
/>
<Tool
Name="VCPostBuildEventTool"/>
Name="VCManifestTool"
/>
<Tool
Name="VCPreBuildEventTool"/>
Name="VCXDCMakeTool"
/>
<Tool
Name="VCPreLinkEventTool"/>
Name="VCBscMakeTool"
/>
<Tool
Name="VCResourceCompilerTool"/>
Name="VCFxCopTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
Name="VCAppVerifierTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"/>
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
IntermediateDirectory="Release"
ConfigurationType="2"
CharacterSet="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="..\dev\include;..\dev\lib\adns;..\dev\lib\curl;..\dev\lib\pcre"
@ -77,42 +129,55 @@
RuntimeLibrary="0"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="3"/>
Detect64BitPortabilityProblems="true"
DebugInformationFormat="3"
/>
<Tool
Name="VCCustomBuildTool"/>
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="Ws2_32.lib neostats.lib pcre.lib"
AdditionalDependencies="Ws2_32.lib neostats.lib pcre.lib"
OutputFile="../seenserv.dll"
LinkIncremental="1"
AdditionalLibraryDirectories="C:\cygwin\home\Mark\nsdev\dev\lib;..\dev\src\Release"
GenerateDebugInformation="TRUE"
GenerateDebugInformation="true"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
ImportLibrary="$(OutDir)/seenserv.lib"
TargetMachine="1"/>
TargetMachine="1"
/>
<Tool
Name="VCMIDLTool"/>
Name="VCALinkTool"
/>
<Tool
Name="VCPostBuildEventTool"/>
Name="VCManifestTool"
/>
<Tool
Name="VCPreBuildEventTool"/>
Name="VCXDCMakeTool"
/>
<Tool
Name="VCPreLinkEventTool"/>
Name="VCBscMakeTool"
/>
<Tool
Name="VCResourceCompilerTool"/>
Name="VCFxCopTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
Name="VCAppVerifierTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"/>
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
@ -121,53 +186,68 @@
<Filter
Name="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath=".\events.c">
RelativePath=".\events.c"
>
</File>
<File
RelativePath=".\seen.c">
RelativePath=".\seen.c"
>
</File>
<File
RelativePath=".\seenserv.c">
RelativePath=".\seenserv.c"
>
</File>
<File
RelativePath=".\seenserv_help.c">
RelativePath=".\seenserv_help.c"
>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}">
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
RelativePath=".\modconfigwin32.h">
RelativePath=".\modconfigwin32.h"
>
</File>
<File
RelativePath=".\seenserv.h">
RelativePath=".\seenserv.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}">
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
>
</Filter>
<File
RelativePath=".\ChangeLog">
RelativePath=".\ChangeLog"
>
</File>
<File
RelativePath=".\License">
RelativePath=".\License"
>
</File>
<File
RelativePath=".\Makefile.in">
RelativePath=".\Makefile.in"
>
</File>
<File
RelativePath=".\modconfig.h.in">
RelativePath=".\modconfig.h.in"
>
</File>
<File
RelativePath=".\README.SeenServ">
RelativePath=".\README.SeenServ"
>
</File>
<File
RelativePath=".\Relnotes">
RelativePath=".\Relnotes"
>
</File>
</Files>
<Globals>