@@ -9,7 +9,7 @@ package body string_ptr_pkg is
99 impure function new_vector (
1010 length : natural := 0 ;
1111 id : integer := 0 ;
12- val : val_t := val_t'low
12+ value : val_t := val_t'low
1313 ) return natural ;
1414
1515 impure function is_external (
@@ -44,7 +44,7 @@ package body string_ptr_pkg is
4444 ref : natural ;
4545 length : natural ;
4646 drop : natural := 0 ;
47- val : val_t := val_t'low
47+ value : val_t := val_t'low
4848 );
4949
5050 impure function to_string (
@@ -122,14 +122,14 @@ package body string_ptr_pkg is
122122 impure function new_vector (
123123 length : natural := 0 ;
124124 id : integer := 0 ;
125- val : val_t := val_t'low
125+ value : val_t := val_t'low
126126 ) return natural is begin
127127 reallocate_ids(st.ids, st.id);
128128 if id = 0 then
129129 st.ids(st.id) := (id => st.ptr, length => 0 );
130130
131131 reallocate_ptrs(st.ptrs, st.ptr);
132- st.ptrs(st.ptr) := new vec_t'(1 to length => val );
132+ st.ptrs(st.ptr) := new vec_t'(1 to length => value );
133133 st.ptr := st.ptr + 1 ;
134134 else
135135 assert length > 0 report " Length of external memory cannot be 0" severity error ;
@@ -246,7 +246,7 @@ package body string_ptr_pkg is
246246 ref : natural ;
247247 length : natural ;
248248 drop : natural := 0 ;
249- val : val_t := val_t'low
249+ value : val_t := val_t'low
250250 ) is
251251 variable oldp, newp : string_access_t;
252252 variable min_len : natural := length ;
@@ -256,7 +256,7 @@ package body string_ptr_pkg is
256256 -- @TODO Implement resize for external models
257257 check_external(ref, " resize" );
258258 else
259- newp := new vec_t'(1 to length => val );
259+ newp := new vec_t'(1 to length => value );
260260 oldp := st.ptrs(s.id);
261261 if min_len > oldp'length - drop then
262262 min_len := oldp'length - drop;
@@ -302,24 +302,24 @@ package body string_ptr_pkg is
302302 impure function new_string_ptr (
303303 length : natural := 0 ;
304304 id : integer := 0 ;
305- val : val_t := val_t'low
305+ value : val_t := val_t'low
306306 ) return ptr_t is begin
307307 return (ref => vec_ptr_storage.new_vector(
308308 length => length ,
309- val => val ,
309+ value => value ,
310310 id => id
311311 ));
312312 end ;
313313
314314 impure function new_string_ptr (
315315 length : natural := 0 ;
316316 id : integer := 0 ;
317- val : natural
317+ value : natural
318318 ) return ptr_t is begin
319319 return (ref => vec_ptr_storage.new_vector(
320320 length => length ,
321- val => character 'val (val ),
322- id => id
321+ value => character 'val (value ),
322+ id => id
323323 ));
324324 end ;
325325
@@ -394,9 +394,9 @@ package body string_ptr_pkg is
394394 procedure reallocate (
395395 ptr : ptr_t;
396396 length : natural ;
397- val : val_t := val_t'low
397+ value : val_t := val_t'low
398398 ) is
399- variable n_value : string (1 to length ) := (1 to length => val );
399+ variable n_value : string (1 to length ) := (1 to length => value );
400400 begin
401401 vec_ptr_storage.reallocate(ptr.ref, n_value);
402402 end ;
@@ -413,18 +413,18 @@ package body string_ptr_pkg is
413413 ptr : ptr_t;
414414 length : natural ;
415415 drop : natural := 0 ;
416- val : val_t := val_t'low
416+ value : val_t := val_t'low
417417 ) is begin
418- vec_ptr_storage.resize (ptr.ref, length , drop, val );
418+ vec_ptr_storage.resize (ptr.ref, length , drop, value );
419419 end ;
420420
421421 procedure resize (
422422 ptr : ptr_t;
423423 length : natural ;
424424 drop : natural := 0 ;
425- val : natural
425+ value : natural
426426 ) is begin
427- vec_ptr_storage.resize (ptr.ref, length , drop, character 'val (val ));
427+ vec_ptr_storage.resize (ptr.ref, length , drop, character 'val (value ));
428428 end ;
429429
430430 impure function to_string (
0 commit comments