Commit 305bff6 Lars Asplund
committed
1 parent 0b6de74 commit 305bff6 Copy full SHA for 305bff6
File tree 3 files changed +21
-21
lines changed
vunit/vhdl/data_types/src
3 files changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ package body integer_vector_ptr_pkg is
141
141
end ;
142
142
143
143
impure function to_integer_vector_ptr (
144
- value : integer
144
+ value : val_t
145
145
) return ptr_t is begin
146
146
-- @TODO maybe assert that the ref is valid
147
147
return (ref => value);
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ package body integer_vector_ptr_pkg is
96
96
end ;
97
97
98
98
impure function to_integer_vector_ptr (
99
- value : integer
99
+ value : val_t
100
100
) return ptr_t is begin
101
101
-- @TODO maybe assert that the ref is valid
102
102
return (ref => value);
Original file line number Diff line number Diff line change @@ -28,76 +28,76 @@ package string_ptr_pkg is
28
28
alias vava_t is string_access_vector_access_t;
29
29
30
30
function to_integer (
31
- value : string_ptr_t
31
+ value : ptr_t
32
32
) return integer ;
33
33
34
34
impure function to_string_ptr (
35
35
value : integer
36
- ) return string_ptr_t ;
36
+ ) return ptr_t ;
37
37
38
38
impure function new_string_ptr (
39
39
length : natural := 0
40
- ) return string_ptr_t ;
40
+ ) return ptr_t ;
41
41
42
42
impure function new_string_ptr (
43
43
value : string
44
- ) return string_ptr_t ;
44
+ ) return ptr_t ;
45
45
46
46
procedure deallocate (
47
- ptr : string_ptr_t
47
+ ptr : ptr_t
48
48
);
49
49
50
50
impure function length (
51
- ptr : string_ptr_t
51
+ ptr : ptr_t
52
52
) return integer ;
53
53
54
54
procedure set (
55
- ptr : string_ptr_t ;
55
+ ptr : ptr_t ;
56
56
index : natural ;
57
- value : character
57
+ value : val_t
58
58
);
59
59
60
60
impure function get (
61
- ptr : string_ptr_t ;
61
+ ptr : ptr_t ;
62
62
index : natural
63
- ) return character ;
63
+ ) return val_t ;
64
64
65
65
procedure reallocate (
66
- ptr : string_ptr_t ;
66
+ ptr : ptr_t ;
67
67
length : natural
68
68
);
69
69
70
70
procedure reallocate (
71
- ptr : string_ptr_t ;
71
+ ptr : ptr_t ;
72
72
value : string
73
73
);
74
74
75
75
procedure resize (
76
- ptr : string_ptr_t ;
76
+ ptr : ptr_t ;
77
77
length : natural ;
78
78
drop : natural := 0
79
79
);
80
80
81
81
impure function to_string (
82
- ptr : string_ptr_t
82
+ ptr : ptr_t
83
83
) return string ;
84
84
85
85
function encode (
86
- data : string_ptr_t
86
+ data : ptr_t
87
87
) return string ;
88
88
89
89
function decode (
90
90
code : string
91
- ) return string_ptr_t ;
91
+ ) return ptr_t ;
92
92
93
93
procedure decode (
94
94
constant code : string ;
95
95
variable index : inout positive ;
96
- variable result : out string_ptr_t
96
+ variable result : out ptr_t
97
97
);
98
98
99
- alias encode_string_ptr_t is encode[string_ptr_t return string ];
100
- alias decode_string_ptr_t is decode[string return string_ptr_t ];
99
+ alias encode_ptr_t is encode[ptr_t return string ];
100
+ alias decode_ptr_t is decode[string return ptr_t ];
101
101
102
102
constant string_ptr_t_code_length : positive := integer_code_length;
103
103
You can’t perform that action at this time.
0 commit comments