From 8d1e3745fc7dcd77f68e7e3841209bb73e284aa6 Mon Sep 17 00:00:00 2001 From: charlet Date: Mon, 30 Nov 2009 10:28:23 +0000 Subject: 2009-11-30 Sergey Rybin * gnat_ugn.texi: Update gnatcheck doc. 2009-11-30 Robert Dewar make.adb, prj-makr.adb, g-sothco.ads: Minor reformattting * s-taprop-dummy.adb: Minor code reorganization (raise with msgs start with lower case). * i-vxwoio.adb, g-dirope.adb, g-sercom-linux.adb, g-enblsp-vms-alpha.adb, g-regist.adb, s-imgcha.adb, s-tarest.adb, s-taprop-mingw.adb, g-exctra.adb, g-expect.adb, g-comlin.adb, g-debpoo.adb, g-expect-vms.adb, g-pehage.adb, g-trasym-vms-alpha.adb, g-enblsp-vms-ia64.adb, s-fatgen.adb, s-fileio.adb: Minor code reorganization (use conditional expressions). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154773 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ada/g-exctra.adb | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'gcc/ada/g-exctra.adb') diff --git a/gcc/ada/g-exctra.adb b/gcc/ada/g-exctra.adb index 7d51ba4b79b..8534bbbb47e 100644 --- a/gcc/ada/g-exctra.adb +++ b/gcc/ada/g-exctra.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 2000-2005, AdaCore -- +-- Copyright (C) 2000-2009, AdaCore -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -88,17 +88,11 @@ package body GNAT.Exception_Traces is procedure Set_Trace_Decorator (Decorator : Traceback_Decorator) is begin Current_Decorator := Decorator; - - if Current_Decorator /= null then - Traceback_Decorator_Wrapper := Decorator_Wrapper'Access; - else - Traceback_Decorator_Wrapper := null; - end if; + Traceback_Decorator_Wrapper := + (if Current_Decorator /= null + then Decorator_Wrapper'Access else null); end Set_Trace_Decorator; - -- Trace_On/Trace_Off control the kind of automatic output to occur - -- by way of the global Exception_Trace variable. - --------------- -- Trace_Off -- --------------- -- cgit v1.2.1