[Box Backup-commit] COMMIT r3051 - box/invisnet/vs2010/0.11/lib/common

subversion at boxbackup.org subversion at boxbackup.org
Thu Jan 19 18:18:16 GMT 2012


Author: invisnet
Date: 2012-01-19 18:18:16 +0000 (Thu, 19 Jan 2012)
New Revision: 3051

Modified:
   box/invisnet/vs2010/0.11/lib/common/makeexception.pl.in
Log:
autogen MC files

Modified: box/invisnet/vs2010/0.11/lib/common/makeexception.pl.in
===================================================================
--- box/invisnet/vs2010/0.11/lib/common/makeexception.pl.in	2012-01-19 18:11:59 UTC (rev 3050)
+++ box/invisnet/vs2010/0.11/lib/common/makeexception.pl.in	2012-01-19 18:18:16 UTC (rev 3051)
@@ -2,6 +2,7 @@
 
 # global exception list file
 my $global_list = '../../ExceptionCodes.txt';
+my $event_messages = '../win32/messages.mc';
 
 
 my @exception;
@@ -50,6 +51,7 @@
 
 open CPP,">autogen_${class}Exception.cpp" or die "Can't open cpp file for writing";
 open H,">autogen_${class}Exception.h" or die "Can't open h file for writing";
+open MC,">autogen_${class}Exception.mc" or die "Can't open mc file for writing";
 
 # write header file
 my $guardname = uc 'AUTOGEN_'.$class.'EXCEPTION_H';
@@ -205,8 +207,24 @@
 
 __E
 
+for(my $e = 0; $e <= $#exception; $e++)
+{
+	if($exception[$e] ne '')
+	{
+		printf MC "MessageId=0x%02X%02X\n",$class_number,$e;
+		print MC "Severity=Warning\n";
+		print MC "SymbolicName=MSG_${exception[$e]}\n";
+		if($exception_desc[$e] ne '')
+		{
+			print MC $exception_desc[$e]."\n";
+		}
+		print MC "%1\n.\n";
+	}
+}
+
 close H;
 close CPP;
+close MC;
 
 # update the global exception list
 my $list_before;
@@ -281,5 +299,3 @@
 print GLOBAL $list_after;
 
 close GLOBAL;
-
-




More information about the Boxbackup-commit mailing list