mailr2542 - /branches/warning/relax


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on August 30, 2006 - 07:00:
Author: bugman
Date: Wed Aug 30 07:00:05 2006
New Revision: 2542

URL: http://svn.gna.org/viewcvs/relax?rev=2542&view=rev
Log:
Shifting of the error and warning system initialisation to being after the 
Pedantic flag
initialisation but before the command line argument parsing.  This removes 
the problem of the
AllRelaxErrors structure not being initialised prior to the command line 
argument parsing.


Modified:
    branches/warning/relax

Modified: branches/warning/relax
URL: 
http://svn.gna.org/viewcvs/relax/branches/warning/relax?rev=2542&r1=2541&r2=2542&view=diff
==============================================================================
--- branches/warning/relax (original)
+++ branches/warning/relax Wed Aug 30 07:00:05 2006
@@ -93,51 +93,46 @@
         # Get and store the PID of this process.
         self.pid = getpid()
 
-        # Set up the program internal errors and warnings.
-        #RelaxErrors()
-        #RelaxWarnings()
-        #__builtin__.warn = warn
-
         # Debugging flag (default is off).
         __builtin__.Debug = 0
         
         # Pedantic flag (default is off).
         __builtin__.Pedantic = 0
 
-        # Set the program introduction string to nothing.
-        self.intro_string = None
-
-        # The program data storage object.
-        self.data = Data()
-
-        # The thread data storage object.
-        self.thread_data = ThreadData()
-
-        # File operation functions.
-        self.IO = IO(self)
-
-        # Colour operations.
-        self.colour = Colour()
-
-        # Setup the specific setup object.
-        self.specific_setup = Specific_setup(self)
-
-        # Setup the object containing the generic functions.
-        self.generic = Generic(self)
-
-        # Setup the object containing the specific functions.
-        self.specific = Specific(self)
-
-        # Setup the object containing the thread setup functions.
-        self.threading = Threading(self)
-
-        # Process the command line arguments and determine the relax mode.
-        mode, log_file, tee_file = self.arguments()
-        
         # Set up the program internal errors and warnings.
         RelaxErrors(self)
         RelaxWarnings()
         __builtin__.warn = warn
+
+        # Set the program introduction string to nothing.
+        self.intro_string = None
+
+        # The program data storage object.
+        self.data = Data()
+
+        # The thread data storage object.
+        self.thread_data = ThreadData()
+
+        # File operation functions.
+        self.IO = IO(self)
+
+        # Colour operations.
+        self.colour = Colour()
+
+        # Setup the specific setup object.
+        self.specific_setup = Specific_setup(self)
+
+        # Setup the object containing the generic functions.
+        self.generic = Generic(self)
+
+        # Setup the object containing the specific functions.
+        self.specific = Specific(self)
+
+        # Setup the object containing the thread setup functions.
+        self.threading = Threading(self)
+
+        # Process the command line arguments and determine the relax mode.
+        mode, log_file, tee_file = self.arguments()
         
         # Show the version number and exit.
         if mode == 'version':




Related Messages


Powered by MHonArc, Updated Thu Aug 31 12:40:08 2006