aboutsummaryrefslogtreecommitdiffstats
path: root/src/ghdldrv/ghdlmain.ads
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-08-14 10:18:48 +0200
committerTristan Gingold <tgingold@free.fr>2019-08-14 10:18:48 +0200
commita7556a720e6ad04b7cb16a75727ad61c83cd5d3d (patch)
treec8916274c3156b187e1a78ebde2928d4dbda50ba /src/ghdldrv/ghdlmain.ads
parentc787526d2fac59fa2637233806a2c509dbe5e348 (diff)
downloadghdl-a7556a720e6ad04b7cb16a75727ad61c83cd5d3d.tar.gz
ghdl-a7556a720e6ad04b7cb16a75727ad61c83cd5d3d.tar.bz2
ghdl-a7556a720e6ad04b7cb16a75727ad61c83cd5d3d.zip
ghdldrv: move command_str_disp from ghdlvpi to ghdlmain
Diffstat (limited to 'src/ghdldrv/ghdlmain.ads')
-rw-r--r--src/ghdldrv/ghdlmain.ads16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ghdldrv/ghdlmain.ads b/src/ghdldrv/ghdlmain.ads
index 54c9ebfef..894c6aad4 100644
--- a/src/ghdldrv/ghdlmain.ads
+++ b/src/ghdldrv/ghdlmain.ads
@@ -52,6 +52,22 @@ package Ghdlmain is
procedure Perform_Action (Cmd : Command_Type; Args : Argument_List)
is abstract;
+ -- A command that accepts command and help strings.
+ type Command_Str_Type is abstract new Command_Type with record
+ Cmd_Str : String_Access;
+ Help_Str : String_Access;
+ end record;
+ function Decode_Command (Cmd : Command_Str_Type; Name : String)
+ return Boolean;
+ function Get_Short_Help (Cmd : Command_Str_Type) return String;
+
+ -- A command that display a string.
+ type String_Func is access function return String;
+ type Command_Str_Disp is new Command_Str_Type with record
+ Disp : String_Func;
+ end record;
+ procedure Perform_Action (Cmd : Command_Str_Disp; Args : Argument_List);
+
-- Register a command.
procedure Register_Command (Cmd : Command_Acc);