[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/I18N/Common HandlerCollection.cs, 1.
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/I18N/Common HandlerCollection.cs, 1.3, 1.4 Manager.cs, 1.15, 1.16 |
Date: |
Wed, 13 Aug 2003 01:16:01 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/I18N/Common
In directory subversions:/tmp/cvs-serv23951/I18N/Common
Modified Files:
HandlerCollection.cs Manager.cs
Log Message:
Convert the I18N directory into a two-phase build so that
"I18N-handlers.def" can be bound to I18N.dll as a resource.
Index: HandlerCollection.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/I18N/Common/HandlerCollection.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** HandlerCollection.cs 2 Jun 2003 02:25:41 -0000 1.3
--- HandlerCollection.cs 13 Aug 2003 05:15:59 -0000 1.4
***************
*** 40,44 ****
// Estimate of the number of handlers (should be >= the number
// of lines in the "I18N-handlers.def" file).
! private const int HandlerCountEstimate = 160;
// Constructor.
--- 40,44 ----
// Estimate of the number of handlers (should be >= the number
// of lines in the "I18N-handlers.def" file).
! private const int HandlerCountEstimate = 512;
// Constructor.
Index: Manager.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/I18N/Common/Manager.cs,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** Manager.cs 2 Jun 2003 03:50:21 -0000 1.15
--- Manager.cs 13 Aug 2003 05:15:59 -0000 1.16
***************
*** 468,486 ****
private void LoadClassList()
{
! FileStream stream;
! // Look for "I18N-handlers.def" in the same
directory
! // as this assembly. Note: this assumes that
the
! // "Assembly.GetFile" method can access files
that
! // aren't explicitly part of the assembly
manifest.
! //
! // This is necessary because the
"I18N-handlers.def"
! // file is generated after the "i18n" assembly
is
! // compiled and linked. So it cannot be
embedded
! // directly into the assembly manifest.
try
{
stream = Assembly.GetExecutingAssembly()
!
.GetFile("I18N-handlers.def");
if(stream == null)
{
--- 468,478 ----
private void LoadClassList()
{
! Stream stream;
! // Look for "I18N-handlers.def" in the manifest
resources.
try
{
stream = Assembly.GetExecutingAssembly()
!
.GetManifestResourceStream("I18N-handlers.def");
if(stream == null)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/I18N/Common HandlerCollection.cs, 1.3, 1.4 Manager.cs, 1.15, 1.16,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/I18N .cvsignore, 1.1, 1.2 I18N.build, 1.7, 1.8 Makefile.am, 1.3, 1.4 README, 1.2, 1.3
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.1252,1.1253
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/I18N .cvsignore, 1.1, 1.2 I18N.build, 1.7, 1.8 Makefile.am, 1.3, 1.4 README, 1.2, 1.3
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.1252,1.1253
- Index(es):