[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] pnetlib/SharpZipLib .cvsignore, NONE, 1.1 Assembly
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] pnetlib/SharpZipLib .cvsignore, NONE, 1.1 AssemblyInfo.cs, NONE, 1.1 Makefile.am, NONE, 1.1 Math.cs, NONE, 1.1 README, NONE, 1.1 SharpZipLib.build, NONE, 1.1 ZipException.cs, NONE, 1.1 |
Date: |
Wed, 08 Oct 2003 07:37:06 +0000 |
Update of /cvsroot/dotgnu-pnet/pnetlib/SharpZipLib
In directory subversions:/tmp/cvs-serv5756/SharpZipLib
Added Files:
.cvsignore AssemblyInfo.cs Makefile.am Math.cs README
SharpZipLib.build ZipException.cs
Log Message:
Add the "SharpZipLib" directory to pnetlib, which is a port of
SharpDevelop's compression handling library.
--- NEW FILE: ZipException.cs ---
// ZipException.cs
// Copyright (C) 2001 Mike Krueger
//
// This file was translated from java, it was part of the GNU Classpath
// Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
//
// This program 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
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// Linking this library statically or dynamically with other modules is
// making a combined work based on this library. Thus, the terms and
// conditions of the GNU General Public License cover the whole
// combination.
//
// As a special exception, the copyright holders of this library give you
// permission to link this library with independent modules to produce an
// executable, regardless of the license terms of these independent
// modules, and to copy and distribute the resulting executable under
// terms of your choice, provided that you also meet, for each linked
// independent module, the terms and conditions of the license of that
// module. An independent module is a module which is not derived from
// or based on this library. If you modify this library, you may extend
// this exception to your version of the library, but you are not
// obligated to do so. If you do not wish to do so, delete this
// exception statement from your version.
using System;
namespace ICSharpCode.SharpZipLib
{
/// <summary>
/// Is thrown during the creation or input of a zip file.
/// </summary>
public class ZipException : Exception
{
/// <summary>
/// Initializes a new instance of the ZipException class with
default properties.
/// </summary>
public ZipException()
{
}
/// <summary>
/// Initializes a new instance of the ZipException class with a
specified error message.
/// </summary>
public ZipException(string msg) : base(msg)
{
}
}
}
--- NEW FILE: SharpZipLib.build ---
<?xml version="1.0"?>
<project name="pnetlib SharpZipLib" default="all">
<target name="all">
<!-- Build the primary ICSharpCode.SharpZipLib.dll library -->
<compile output="ICSharpCode.SharpZipLib.dll"
target="library"
unsafe="true"
nostdlib="true"
debug="${CONFIG_DEBUG_LINES}"
optimize="true">
<sources>
<includes name="**/*.cs"/>
</sources>
<references>
<file name="../runtime/mscorlib.dll"/>
</references>
<arg compiler="cscc"
value="-fassembly-version=0.5.1.0"/>
<arg compiler="cscc" value="-Wno-empty-input"/>
<arg compiler="cscc" value="-fminimize-parameters"/>
<arg compiler="cscc" value="-flatin1-charset"/>
<arg compiler="csc" value="/nowarn:626"/>
<arg compiler="csc" value="/nowarn:649"/>
<arg compiler="csc" value="/nowarn:168"/>
<arg compiler="csc" value="/nowarn:67"/>
<arg compiler="csc" value="/nowarn:169"/>
<arg compiler="csc" value="/nowarn:679"/>
</compile>
</target>
</project>
--- NEW FILE: Math.cs ---
/*
* Math.cs - Implementation of the "System.Math" class for when
* the base class library does not have it.
*
* Copyright (C) 2001, 2003 Southern Storm Software, Pty Ltd.
*
* This program 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 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System
{
#if !CONFIG_EXTENDED_NUMERICS
internal sealed class Math
{
// Get the maximum of two values.
[CLSCompliant(false)]
public static sbyte Max(sbyte val1, sbyte val2)
{
return (sbyte)((val1 > val2) ? val1 : val2);
}
public static byte Max(byte val1, byte val2)
{
return (byte)((val1 > val2) ? val1 : val2);
}
public static short Max(short val1, short val2)
{
return (short)((val1 > val2) ? val1 : val2);
}
[CLSCompliant(false)]
public static ushort Max(ushort val1, ushort val2)
{
return (ushort)((val1 > val2) ? val1 : val2);
}
public static int Max(int val1, int val2)
{
return ((val1 > val2) ? val1 : val2);
}
[CLSCompliant(false)]
public static uint Max(uint val1, uint val2)
{
return ((val1 > val2) ? val1 : val2);
}
public static long Max(long val1, long val2)
{
return ((val1 > val2) ? val1 : val2);
}
[CLSCompliant(false)]
public static ulong Max(ulong val1, ulong val2)
{
return ((val1 > val2) ? val1 : val2);
}
// Get the minimum of two values.
[CLSCompliant(false)]
public static sbyte Min(sbyte val1, sbyte val2)
{
return (sbyte)((val1 < val2) ? val1 : val2);
}
public static byte Min(byte val1, byte val2)
{
return (byte)((val1 < val2) ? val1 : val2);
}
public static short Min(short val1, short val2)
{
return (short)((val1 < val2) ? val1 : val2);
}
[CLSCompliant(false)]
public static ushort Min(ushort val1, ushort val2)
{
return (ushort)((val1 < val2) ? val1 : val2);
}
public static int Min(int val1, int val2)
{
return ((val1 < val2) ? val1 : val2);
}
[CLSCompliant(false)]
public static uint Min(uint val1, uint val2)
{
return ((val1 < val2) ? val1 : val2);
}
public static long Min(long val1, long val2)
{
return ((val1 < val2) ? val1 : val2);
}
[CLSCompliant(false)]
public static ulong Min(ulong val1, ulong val2)
{
return ((val1 < val2) ? val1 : val2);
}
}; // class Math
#endif // !CONFIG_EXTENDED_NUMERICS
}; // namespace System
--- NEW FILE: README ---
The library in this directory comes from the SharpDevelop distribution:
http://www.icsharpcode.net/OpenSource/SD/
The license is GPL plus the following linking exception:
// Linking this library statically or dynamically with other modules is
// making a combined work based on this library. Thus, the terms and
// conditions of the GNU General Public License cover the whole
// combination.
//
// As a special exception, the copyright holders of this library give you
// permission to link this library with independent modules to produce an
// executable, regardless of the license terms of these independent
// modules, and to copy and distribute the resulting executable under
// terms of your choice, provided that you also meet, for each linked
// independent module, the terms and conditions of the license of that
// module. An independent module is a module which is not derived from
// or based on this library. If you modify this library, you may extend
// this exception to your version of the library, but you are not
// obligated to do so. If you do not wish to do so, delete this
// exception statement from your version.
--- NEW FILE: Makefile.am ---
.PHONY: ICSharpCode.SharpZipLib.dll
all-local: ICSharpCode.SharpZipLib.dll
ICSharpCode.SharpZipLib.dll:
"$(CSANT)" $(CSANT_FLAGS) -f SharpZipLib.build all
CLEANFILES = ICSharpCode.SharpZipLib.dll
pnetassembliesdir = $(libdir)/cscc/lib
pnetassemblies_DATA = ICSharpCode.SharpZipLib.dll
--- NEW FILE: AssemblyInfo.cs ---
// AssemblyInfo.cs
// Copyright (C) 2001 Mike Krueger
//
// This program 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
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// Linking this library statically or dynamically with other modules is
// making a combined work based on this library. Thus, the terms and
// conditions of the GNU General Public License cover the whole
// combination.
//
// As a special exception, the copyright holders of this library give you
// permission to link this library with independent modules to produce an
// executable, regardless of the license terms of these independent
// modules, and to copy and distribute the resulting executable under
// terms of your choice, provided that you also meet, for each linked
// independent module, the terms and conditions of the license of that
// module. An independent module is a module which is not derived from
// or based on this library. If you modify this library, you may extend
// this exception to your version of the library, but you are not
// obligated to do so. If you do not wish to do so, delete this
// exception statement from your version.
using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle("ICSharpCode.SharpZipLibrary")]
[assembly: AssemblyDescription("free C# zlib implementation")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("#ZipLibrary")]
[assembly: AssemblyCopyright("(c) Mike Krueger 2001-2003")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("0.5.1.0")]
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("ICSharpCode.SharpZipLib.key")]
--- NEW FILE: .cvsignore ---
Makefile
Makefile.in
.deps
*.dll
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] pnetlib/SharpZipLib .cvsignore, NONE, 1.1 AssemblyInfo.cs, NONE, 1.1 Makefile.am, NONE, 1.1 Math.cs, NONE, 1.1 README, NONE, 1.1 SharpZipLib.build, NONE, 1.1 ZipException.cs, NONE, 1.1,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] pnetlib ChangeLog, 1.1383, 1.1384 Makefile.am, 1.28, 1.29 configure.in, 1.94, 1.95
- Next by Date:
[Dotgnu-pnet-commits] pnetlib/SharpZipLib/Zip/Compression - New directory
- Previous by thread:
[Dotgnu-pnet-commits] pnetlib ChangeLog, 1.1383, 1.1384 Makefile.am, 1.28, 1.29 configure.in, 1.94, 1.95
- Next by thread:
[Dotgnu-pnet-commits] pnetlib/SharpZipLib/Zip/Compression - New directory
- Index(es):