Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
Ocarina
Commits
80fb771d
Commit
80fb771d
authored
Aug 27, 2013
by
yoogx
Browse files
* Add support for Long_Float
parent
967045c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/backends/ocarina-backends-po_hi_ada-runtime.ads
View file @
80fb771d
...
...
@@ -6,7 +6,7 @@
-- --
-- S p e c --
-- --
-- Copyright (C) 2006-2009 Telecom ParisTech, 2010-201
2
ESA & ISAE. --
-- Copyright (C) 2006-2009 Telecom ParisTech, 2010-201
3
ESA & ISAE. --
-- --
-- Ocarina is free software; you can redistribute it and/or modify --
-- it under terms of the GNU General Public License as published by the --
...
...
@@ -175,6 +175,7 @@ package Ocarina.Backends.PO_HI_Ada.Runtime is
RE_Natural
,
-- Standard.Natural
RE_Positive
,
-- Standard.Positive
RE_Float
,
-- Standard.Float
RE_Long_Float
,
-- Standard.Long_Float
RE_String
,
-- Standard.String
RE_Character
,
-- Standard.Character
RE_Wide_Character
,
-- Standard.Wide_Character
...
...
@@ -272,6 +273,7 @@ package Ocarina.Backends.PO_HI_Ada.Runtime is
RE_Natural
=>
RU_Standard
,
RE_Positive
=>
RU_Standard
,
RE_Float
=>
RU_Standard
,
RE_Long_Float
=>
RU_Standard
,
RE_String
=>
RU_Standard
,
RE_Character
=>
RU_Standard
,
RE_Wide_Character
=>
RU_Standard
,
...
...
src/backends/ocarina-backends-po_hi_ada-types.adb
View file @
80fb771d
...
...
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
-- Copyright (C) 2006-2009 Telecom ParisTech, 2010-201
2
ESA & ISAE. --
-- Copyright (C) 2006-2009 Telecom ParisTech, 2010-201
3
ESA & ISAE. --
-- --
-- Ocarina is free software; you can redistribute it and/or modify --
-- it under terms of the GNU General Public License as published by the --
...
...
@@ -417,12 +417,10 @@ package body Ocarina.Backends.PO_HI_Ada.Types is
end
;
when
Data_Float
=>
-- In HI system floating point types are not supported
Display_Located_Error
(
Loc
(
E
),
"No floating point in for HI applications"
,
Fatal
=>
True
);
N
:=
Make_Full_Type_Declaration
(
Defining_Identifier
=>
Map_Ada_Defining_Identifier
(
E
),
Type_Definition
=>
Make_Derived_Type_Definition
(
RE
(
RE_Long_Float
)));
when
Data_Fixed
=>
declare
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment