X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=Ada95%2Fsamples%2Fsample-explanation.adb;h=a2d18226fc3d5bbd886be2c79b3d806ed1d31e5d;hp=5587099b242a0883145275092164cd75a8eaf61e;hb=11d10ad0a17342a8e773a8f1948a9cc4c5f32ce7;hpb=d7e4a265b50f6fddbad20ea238fdc05a35cbdc2f diff --git a/Ada95/samples/sample-explanation.adb b/Ada95/samples/sample-explanation.adb index 5587099b..a2d18226 100644 --- a/Ada95/samples/sample-explanation.adb +++ b/Ada95/samples/sample-explanation.adb @@ -7,7 +7,7 @@ -- B O D Y -- -- -- ------------------------------------------------------------------------------ --- Copyright (c) 1998-2009,2011 Free Software Foundation, Inc. -- +-- Copyright (c) 1998-2011,2014 Free Software Foundation, Inc. -- -- -- -- Permission is hereby granted, free of charge, to any person obtaining a -- -- copy of this software and associated documentation files (the -- @@ -35,8 +35,8 @@ ------------------------------------------------------------------------------ -- Author: Juergen Pfeifer, 1996 -- Version Control --- $Revision: 1.26 $ --- $Date: 2011/03/26 22:33:29 $ +-- $Revision: 1.27 $ +-- $Date: 2014/09/13 19:10:18 $ -- Binding Version 01.00 ------------------------------------------------------------------------------ -- Poor mans help system. This scans a sequential file for key lines and @@ -321,8 +321,10 @@ package body Sample.Explanation is Outer : loop exit Outer when not Next_Line; - if Last = (1 + Key'Length) and then Key = Buffer (2 .. Last) - and then Buffer (1) = '#' then + if Last = (1 + Key'Length) + and then Key = Buffer (2 .. Last) + and then Buffer (1) = '#' + then loop exit when not Next_Line; exit when Buffer (1) = '#';