Skip to content

Commit

Permalink
style(integer_vector_ptr, string_ptr): use type 'natural' for param '…
Browse files Browse the repository at this point in the history
…index'"

wip

wip
  • Loading branch information
umarcor committed Apr 25, 2019
1 parent 4227e70 commit a3dff54
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
12 changes: 6 additions & 6 deletions vunit/vhdl/data_types/src/integer_vector_ptr_pkg-body-200x.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ package body integer_vector_ptr_pkg is
procedure
set(
ref : natural;
index : integer;
index : natural;
value : val_t
);

impure function
get(
ref : natural;
index : integer
index : natural
) return val_t;

procedure
Expand Down Expand Up @@ -100,7 +100,7 @@ package body integer_vector_ptr_pkg is
procedure
set(
ref : natural;
index : integer;
index : natural;
value : val_t
) is begin
ptrs(ref)(index) := value;
Expand All @@ -109,7 +109,7 @@ package body integer_vector_ptr_pkg is
impure function
get(
ref : natural;
index : integer
index : natural
) return val_t is begin
return ptrs(ref)(index);
end;
Expand Down Expand Up @@ -190,7 +190,7 @@ package body integer_vector_ptr_pkg is
procedure
set(
ptr : ptr_t;
index : integer;
index : natural;
value : val_t
) is begin
integer_vector_ptr_storage.set(ptr.ref, index, value);
Expand All @@ -199,7 +199,7 @@ package body integer_vector_ptr_pkg is
impure function
get(
ptr : ptr_t;
index : integer
index : natural
) return val_t is begin
return integer_vector_ptr_storage.get(ptr.ref, index);
end;
Expand Down
4 changes: 2 additions & 2 deletions vunit/vhdl/data_types/src/integer_vector_ptr_pkg-body-93.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ package body integer_vector_ptr_pkg is
procedure
set(
ptr : ptr_t;
index : integer;
index : natural;
value : val_t
) is begin
ptrs(ptr.ref)(index) := value;
Expand All @@ -61,7 +61,7 @@ package body integer_vector_ptr_pkg is
impure function
get(
ptr : ptr_t;
index : integer
index : natural
) return val_t is begin
return ptrs(ptr.ref)(index);
end;
Expand Down
4 changes: 2 additions & 2 deletions vunit/vhdl/data_types/src/integer_vector_ptr_pkg.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ package integer_vector_ptr_pkg is
procedure
set(
ptr : ptr_t;
index : integer;
index : natural;
value : val_t
);

impure function
get(
ptr : ptr_t;
index : integer
index : natural
) return val_t;

procedure
Expand Down
12 changes: 6 additions & 6 deletions vunit/vhdl/data_types/src/string_ptr_pkg-body-200x.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ package body string_ptr_pkg is
procedure
set(
ref : natural;
index : integer;
index : natural;
value : val_t
);

impure function
get(
ref : natural;
index : integer
index : natural
) return val_t;

procedure
Expand Down Expand Up @@ -104,7 +104,7 @@ package body string_ptr_pkg is
procedure
set(
ref : natural;
index : integer;
index : natural;
value : val_t
) is begin
ptrs(ref)(index) := value;
Expand All @@ -113,7 +113,7 @@ package body string_ptr_pkg is
impure function
get(
ref : natural;
index : integer
index : natural
) return val_t is begin
return ptrs(ref)(index);
end;
Expand Down Expand Up @@ -229,7 +229,7 @@ package body string_ptr_pkg is
procedure
set(
ptr : ptr_t;
index : integer;
index : natural;
value : val_t
) is begin
string_ptr_storage.set(ptr.ref, index, value);
Expand All @@ -238,7 +238,7 @@ package body string_ptr_pkg is
impure function
get(
ptr : ptr_t;
index : integer
index : natural
) return val_t is begin
return string_ptr_storage.get(ptr.ref, index);
end;
Expand Down
4 changes: 2 additions & 2 deletions vunit/vhdl/data_types/src/string_ptr_pkg-body-93.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ package body string_ptr_pkg is
procedure
set(
ptr : ptr_t;
index : integer;
index : natural;
value : val_t
) is begin
ptrs(ptr.ref)(index) := value;
Expand All @@ -59,7 +59,7 @@ package body string_ptr_pkg is
impure function
get(
ptr : ptr_t;
index : integer
index : natural
) return val_t is begin
return ptrs(ptr.ref)(index);
end;
Expand Down
4 changes: 2 additions & 2 deletions vunit/vhdl/data_types/src/string_ptr_pkg.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ package string_ptr_pkg is
procedure
set(
ptr : string_ptr_t;
index : integer;
index : natural;
value : character
);

impure function
get(
ptr : string_ptr_t;
index : integer
index : natural
) return character;

procedure
Expand Down

0 comments on commit a3dff54

Please sign in to comment.