Skip to content

Commit 0645784

Browse files
author
automatic-merge
committed
Merge remote branch 'origin/master' into edge
2 parents 58ee0d6 + a30c0db commit 0645784

File tree

4 files changed

+61
-2
lines changed

4 files changed

+61
-2
lines changed

source/gnatdoc-comments-extractor-trailing.adb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ package body GNATdoc.Comments.Extractor.Trailing is
945945
end loop;
946946

947947
if State /= None then
948-
raise Program_Error;
948+
Apply;
949949
end if;
950950
end;
951951
end Process;
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
--
2+
-- Copyright (C) 2018-2021, AdaCore
3+
--
4+
-- SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5+
--
6+
7+
procedure Monitor_Loop (Timeout : Duration);
8+
-- Drive process control engine, deliver events, watch child processes, etc.
9+
--
10+
-- Timeout to run. Don't wait if zero. If there are some events then procedure
11+
-- will return before timeout expires.
12+
--
13+
-- Note: This procedure is NOT thread-safe! In multi-tasking environment
14+
-- create a dedicated task to drive the engine.
15+
--
16+
-- In single task application you should call this to drive process engine.
17+
--
18+
-- In Glib enabled application the engine is integrated it the Glib event
19+
-- loop and this procedure shouldn't be used.

testsuite/extractor/subprograms_gnat/test.out

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,3 +562,40 @@ Documentation of the subprogram.
562562
<EndName subprograms_gnat.ads:263:5-263:21>
563563
<Id "Subprograms_GNAT" subprograms_gnat.ads:263:5-263:21>
564564
<PragmaNodeList subprograms_gnat.ads:263:22-263:22>
565+
<CompilationUnit monitor_loop.ads:7:1-7:45>
566+
<AdaNodeList monitor_loop.ads:7:1-7:1>
567+
<LibraryItem monitor_loop.ads:7:1-7:45>
568+
<PrivateAbsent monitor_loop.ads:7:1-7:1>
569+
<SubpDecl ["Monitor_Loop"] monitor_loop.ads:7:1-7:45>
570+
**************************
571+
\/ RAW <<CALLABLE>> ()
572+
Drive process control engine, deliver events, watch child processes, etc.
573+
574+
Timeout to run. Don't wait if zero. If there are some events then procedure
575+
will return before timeout expires.
576+
577+
Note: This procedure is NOT thread-safe! In multi-tasking environment
578+
create a dedicated task to drive the engine.
579+
580+
In single task application you should call this to drive process engine.
581+
582+
In Glib enabled application the engine is integrated it the Glib event
583+
loop and this procedure shouldn't be used.
584+
\/ PARAMETER timeout (Timeout)
585+
\/ SNIPPET ada ()
586+
procedure Monitor_Loop (Timeout : Duration)
587+
\/ DESCRIPTION ()
588+
Drive process control engine, deliver events, watch child processes, etc.
589+
590+
Timeout to run. Don't wait if zero. If there are some events then procedure
591+
will return before timeout expires.
592+
593+
Note: This procedure is NOT thread-safe! In multi-tasking environment
594+
create a dedicated task to drive the engine.
595+
596+
In single task application you should call this to drive process engine.
597+
598+
In Glib enabled application the engine is integrated it the Glib event
599+
loop and this procedure shouldn't be used.
600+
**************************
601+
<PragmaNodeList monitor_loop.ads:7:45-7:45>
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
extractor_source: subprograms_gnat.ads
1+
description: Check documentation extraction for subprogram declarations.
2+
extractor_sources:
3+
- subprograms_gnat.ads
4+
- monitor_loop.ads

0 commit comments

Comments
 (0)