diff options
Diffstat (limited to 'doc/references')
| -rw-r--r-- | doc/references/CodingStyle.rst | 10 | ||||
| -rw-r--r-- | doc/references/ImplementationOfVHDL.rst | 32 | 
2 files changed, 21 insertions, 21 deletions
| diff --git a/doc/references/CodingStyle.rst b/doc/references/CodingStyle.rst index 2fb09c6ef..b9da53804 100644 --- a/doc/references/CodingStyle.rst +++ b/doc/references/CodingStyle.rst @@ -10,7 +10,7 @@ Use assertions.  We try to follow the 'GNU Coding Standards' when possible: comments before  declarations, two spaces at end of sentences, finish sentences with a dot. -But: 3 spaces for indentation. +But: 2 spaces for indentation in code blocks.  No trailing spaces, no TAB (HT). @@ -82,7 +82,7 @@ declaration).  Don't repeat the comment before the subprogram body.          procedure Translate_Assign (Target : Mnode; Expr : Iir; Target_Type : Iir)          is -           Val : O_Enode; +          Val : O_Enode;          begin    vs. @@ -130,9 +130,9 @@ declaration).  Don't repeat the comment before the subprogram body.       .. code-block:: Ada          is -           N_Info : constant Iir := Get_Sub_Aggregate_Info (Info); -           Assoc  : Iir; -           Sub    : Iir; +          N_Info : constant Iir := Get_Sub_Aggregate_Info (Info); +          Assoc  : Iir; +          Sub    : Iir;          begin    If the initialization expression has a side effect (such as allocation), do diff --git a/doc/references/ImplementationOfVHDL.rst b/doc/references/ImplementationOfVHDL.rst index 0074d2c7c..0169d7ad8 100644 --- a/doc/references/ImplementationOfVHDL.rst +++ b/doc/references/ImplementationOfVHDL.rst @@ -355,7 +355,7 @@ in Ada:    with System;    ...    function Ghdl_Main (Argc : Integer; Argv : System.Address) -     return Integer; +    return Integer;    pragma import (C, Ghdl_Main, "ghdl_main"); @@ -445,26 +445,26 @@ level design name.    with Ghdl_Main;    procedure Test_Grt is -     --  VHPI handle. -     H : VhpiHandleT; -     Status : Integer; +    --  VHPI handle. +    H : VhpiHandleT; +    Status : Integer; -     --  Name. -     Name : String (1 .. 64); -     Name_Len : Integer; +    --  Name. +    Name : String (1 .. 64); +    Name_Len : Integer;    begin -     --  Elaborate and run the design. -     Status := Ghdl_Main (0, Null_Address); +    --  Elaborate and run the design. +    Status := Ghdl_Main (0, Null_Address); -     --  Display the status of the simulation. -     Put_Line ("Status is " & Integer'Image (Status)); +    --  Display the status of the simulation. +    Put_Line ("Status is " & Integer'Image (Status)); -     --  Get the root instance. -     Get_Root_Inst(H); +    --  Get the root instance. +    Get_Root_Inst(H); -     --  Disp its name using vhpi API. -     Vhpi_Get_Str (VhpiNameP, H, Name, Name_Len); -     Put_Line ("Root instance name: " & Name (1 .. Name_Len)); +    --  Disp its name using vhpi API. +    Vhpi_Get_Str (VhpiNameP, H, Name, Name_Len); +    Put_Line ("Root instance name: " & Name (1 .. Name_Len));    end Test_Grt; | 
