URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 304 |
Rev 384 |
package body Thin_Pointer2_Pkg is
|
package body Thin_Pointer2_Pkg is
|
|
|
type SB is access constant String;
|
type SB is access constant String;
|
|
|
function Inner (S : SB) return Character is
|
function Inner (S : SB) return Character is
|
begin
|
begin
|
if S /= null and then S'Length > 0 then
|
if S /= null and then S'Length > 0 then
|
return S (S'First);
|
return S (S'First);
|
end if;
|
end if;
|
return '*';
|
return '*';
|
end;
|
end;
|
|
|
function F return Character is
|
function F return Character is
|
begin
|
begin
|
return Inner (SB (S));
|
return Inner (SB (S));
|
end;
|
end;
|
|
|
end Thin_Pointer2_Pkg;
|
end Thin_Pointer2_Pkg;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.