Update of /cvsroot/mahogany/M/lib/compface
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29955/lib/compface

Modified Files:
        compface.c compface_private.h 
Added Files:
        Makefile.M compface.dsp compface.vcproj 
Log Message:
compilation fixes and new makefile for imported sources

***** Error reading new file: [Errno 2] No such file or directory: 'Makefile.M'
--- NEW FILE ---
# Microsoft Developer Studio Project File - Name="compface" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **

# TARGTYPE "Win32 (x86) Static Library" 0x0104

CFG=compface - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE 
!MESSAGE NMAKE /f "compface.mak".
!MESSAGE 
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE 
!MESSAGE NMAKE /f "compface.mak" CFG="compface - Win32 Debug"
!MESSAGE 
!MESSAGE Possible choices for configuration are:
!MESSAGE 
!MESSAGE "compface - Win32 Release" (based on "Win32 (x86) Static Library")
!MESSAGE "compface - Win32 Debug" (based on "Win32 (x86) Static Library")
!MESSAGE 

# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
RSC=rc.exe

!IF  "$(CFG)" == "compface - Win32 Release"

# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD 
/c
# ADD CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /D 
"SYSV32" /YX /FD /c
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo

!ELSEIF  "$(CFG)" == "compface - Win32 Debug"

# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" 
/YX /FD /GZ /c
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" 
/D "SYSV32" /YX /FD /GZ /c
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo

!ENDIF 

# Begin Target

# Name "compface - Win32 Release"
# Name "compface - Win32 Debug"
# Begin Group "Source Files"

# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File

SOURCE=.\arith.c
# End Source File
# Begin Source File

SOURCE=.\compface.c
# End Source File
# Begin Source File

SOURCE=.\compress.c
# End Source File
# Begin Source File

SOURCE=.\file.c
# End Source File
# Begin Source File

SOURCE=.\gen.c
# End Source File
# Begin Source File

SOURCE=.\uncompface.c
# End Source File
# End Group
# Begin Group "Header Files"

# PROP Default_Filter "h;hpp;hxx;hm;inl"
# End Group
# End Target
# End Project

--- NEW FILE ---
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
        ProjectType="Visual C++"
        Version="7.10"
        Name="compface"
        SccProjectName=""
        SccLocalPath="">
        <Platforms>
                <Platform
                        Name="Win32"/>
        </Platforms>
        <Configurations>
                <Configuration
                        Name="Release|Win32"
                        OutputDirectory=".\Release"
                        IntermediateDirectory=".\Release"
                        ConfigurationType="4"
                        UseOfMFC="0"
                        ATLMinimizesCRunTimeLibraryUsage="FALSE"
                        CharacterSet="2">
                        <Tool
                                Name="VCCLCompilerTool"
                                Optimization="2"
                                InlineFunctionExpansion="1"
                                PreprocessorDefinitions="WIN32;NDEBUG;_LIB;SYSV32"
                                StringPooling="TRUE"
                                RuntimeLibrary="2"
                                EnableFunctionLevelLinking="TRUE"
                                UsePrecompiledHeader="2"
                                PrecompiledHeaderFile=".\Release/compface.pch"
                                AssemblerListingLocation=".\Release/"
                                ObjectFile=".\Release/"
                                ProgramDataBaseFileName=".\Release/"
                                WarningLevel="3"
                                SuppressStartupBanner="TRUE"/>
                        <Tool
                                Name="VCCustomBuildTool"/>
                        <Tool
                                Name="VCLibrarianTool"
                                OutputFile=".\Release\compface.lib"
                                SuppressStartupBanner="TRUE"/>
                        <Tool
                                Name="VCMIDLTool"/>
                        <Tool
                                Name="VCPostBuildEventTool"/>
                        <Tool
                                Name="VCPreBuildEventTool"/>
                        <Tool
                                Name="VCPreLinkEventTool"/>
                        <Tool
                                Name="VCResourceCompilerTool"
                                PreprocessorDefinitions="NDEBUG"
                                Culture="1033"/>
                        <Tool
                                Name="VCWebServiceProxyGeneratorTool"/>
                        <Tool
                                Name="VCXMLDataGeneratorTool"/>
                        <Tool
                                Name="VCManagedWrapperGeneratorTool"/>
                        <Tool
                                Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
                </Configuration>
                <Configuration
                        Name="Debug|Win32"
                        OutputDirectory=".\Debug"
                        IntermediateDirectory=".\Debug"
                        ConfigurationType="4"
                        UseOfMFC="0"
                        ATLMinimizesCRunTimeLibraryUsage="FALSE"
                        CharacterSet="2">
                        <Tool
                                Name="VCCLCompilerTool"
                                Optimization="0"
                                PreprocessorDefinitions="WIN32;_DEBUG;_LIB;SYSV32"
                                BasicRuntimeChecks="3"
                                RuntimeLibrary="3"
                                UsePrecompiledHeader="2"
                                PrecompiledHeaderFile=".\Debug/compface.pch"
                                AssemblerListingLocation=".\Debug/"
                                ObjectFile=".\Debug/"
                                ProgramDataBaseFileName=".\Debug/"
                                WarningLevel="3"
                                SuppressStartupBanner="TRUE"
                                DebugInformationFormat="4"/>
                        <Tool
                                Name="VCCustomBuildTool"/>
                        <Tool
                                Name="VCLibrarianTool"
                                OutputFile=".\Debug\compface.lib"
                                SuppressStartupBanner="TRUE"/>
                        <Tool
                                Name="VCMIDLTool"/>
                        <Tool
                                Name="VCPostBuildEventTool"/>
                        <Tool
                                Name="VCPreBuildEventTool"/>
                        <Tool
                                Name="VCPreLinkEventTool"/>
                        <Tool
                                Name="VCResourceCompilerTool"
                                PreprocessorDefinitions="_DEBUG"
                                Culture="1033"/>
                        <Tool
                                Name="VCWebServiceProxyGeneratorTool"/>
                        <Tool
                                Name="VCXMLDataGeneratorTool"/>
                        <Tool
                                Name="VCManagedWrapperGeneratorTool"/>
                        <Tool
                                Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
                </Configuration>
        </Configurations>
        <References>
        </References>
        <Files>
                <Filter
                        Name="Source Files"
                        Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat">
                        <File
                                RelativePath="arith.c">
                                <FileConfiguration
                                        Name="Release|Win32">
                                        <Tool
                                                Name="VCCLCompilerTool"
                                                Optimization="2"
                                                PreprocessorDefinitions=""/>
                                </FileConfiguration>
                                <FileConfiguration
                                        Name="Debug|Win32">
                                        <Tool
                                                Name="VCCLCompilerTool"
                                                Optimization="0"
                                                PreprocessorDefinitions=""
                                                BasicRuntimeChecks="3"/>
                                </FileConfiguration>
                        </File>
                        <File
                                RelativePath="compface.c">
                                <FileConfiguration
                                        Name="Release|Win32">
                                        <Tool
                                                Name="VCCLCompilerTool"
                                                Optimization="2"
                                                PreprocessorDefinitions=""/>
                                </FileConfiguration>
                                <FileConfiguration
                                        Name="Debug|Win32">
                                        <Tool
                                                Name="VCCLCompilerTool"
                                                Optimization="0"
                                                PreprocessorDefinitions=""
                                                BasicRuntimeChecks="3"/>
                                </FileConfiguration>
                        </File>
                        <File
                                RelativePath="compress.c">
                                <FileConfiguration
                                        Name="Release|Win32">
                                        <Tool
                                                Name="VCCLCompilerTool"
                                                Optimization="2"
                                                PreprocessorDefinitions=""/>
                                </FileConfiguration>
                                <FileConfiguration
                                        Name="Debug|Win32">
                                        <Tool
                                                Name="VCCLCompilerTool"
                                                Optimization="0"
                                                PreprocessorDefinitions=""
                                                BasicRuntimeChecks="3"/>
                                </FileConfiguration>
                        </File>
                        <File
                                RelativePath="file.c">
                                <FileConfiguration
                                        Name="Release|Win32">
                                        <Tool
                                                Name="VCCLCompilerTool"
                                                Optimization="2"
                                                PreprocessorDefinitions=""/>
                                </FileConfiguration>
                                <FileConfiguration
                                        Name="Debug|Win32">
                                        <Tool
                                                Name="VCCLCompilerTool"
                                                Optimization="0"
                                                PreprocessorDefinitions=""
                                                BasicRuntimeChecks="3"/>
                                </FileConfiguration>
                        </File>
                        <File
                                RelativePath="gen.c">
                                <FileConfiguration
                                        Name="Release|Win32">
                                        <Tool
                                                Name="VCCLCompilerTool"
                                                Optimization="2"
                                                PreprocessorDefinitions=""/>
                                </FileConfiguration>
                                <FileConfiguration
                                        Name="Debug|Win32">
                                        <Tool
                                                Name="VCCLCompilerTool"
                                                Optimization="0"
                                                PreprocessorDefinitions=""
                                                BasicRuntimeChecks="3"/>
                                </FileConfiguration>
                        </File>
                        <File
                                RelativePath="uncompface.c">
                                <FileConfiguration
                                        Name="Release|Win32">
                                        <Tool
                                                Name="VCCLCompilerTool"
                                                Optimization="2"
                                                PreprocessorDefinitions=""/>
                                </FileConfiguration>
                                <FileConfiguration
                                        Name="Debug|Win32">
                                        <Tool
                                                Name="VCCLCompilerTool"
                                                Optimization="0"
                                                PreprocessorDefinitions=""
                                                BasicRuntimeChecks="3"/>
                                </FileConfiguration>
                        </File>
                </Filter>
                <Filter
                        Name="Header Files"
                        Filter="h;hpp;hxx;hm;inl">
                </Filter>
        </Files>
        <Globals>
        </Globals>
</VisualStudioProject>

Index: compface.c
===================================================================
RCS file: /cvsroot/mahogany/M/lib/compface/compface.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -b -u -2 -r1.1.1.1 -r1.2
--- compface.c  2 May 2004 10:37:00 -0000       1.1.1.1
+++ compface.c  2 May 2004 12:31:20 -0000       1.2
@@ -14,6 +14,4 @@
  */
 
-#define MAIN
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"

Index: compface_private.h
===================================================================
RCS file: /cvsroot/mahogany/M/lib/compface/compface_private.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -b -u -2 -r1.1.1.1 -r1.2
--- compface_private.h  2 May 2004 10:36:58 -0000       1.1.1.1
+++ compface_private.h  2 May 2004 12:31:20 -0000       1.2
@@ -16,6 +16,11 @@
 #include "compface.h"
 
+#ifdef MAIN
 #define EXTERN
 #define INIT(x) = x
+#else /* !MAIN */
+#define EXTERN extern
+#define INIT(x)
+#endif /* MAIN/!MAIN */
 
 /* need to know how many bits per hexadecimal digit for io */
@@ -29,6 +34,8 @@
 /* data.h was established by sampling over 1000 faces and icons */
 EXTERN Guesses G
+#ifdef MAIN
 =
 #include "data.h"
+#endif
 ;
 
@@ -38,4 +45,5 @@
 
 EXTERN Prob levels[4][3]
+#ifdef MAIN
 =
 {
@@ -45,7 +53,9 @@
        {{131, 0},      {0, 0},         {125, 131}}     /* Grey disallowed at bottom */
 }
+#endif
 ;
 
 EXTERN Prob freqs[16]
+#ifdef MAIN
 =
 {
@@ -55,4 +65,5 @@
        {13, 217},      {6, 242},       {5, 248},       {3, 253}
 }
+#endif
 ;
 



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to