Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
why3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
119
Issues
119
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Why3
why3
Commits
e53acad2
Commit
e53acad2
authored
Apr 20, 2020
by
Guillaume Melquiond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid identity printers.
parent
2ab4b765
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/extract/c.ml
src/extract/c.ml
+4
-4
No files found.
src/extract/c.ml
View file @
e53acad2
...
...
@@ -550,9 +550,9 @@ module Print = struct
(* prints the c inline keyword *)
let
print_local_ident
fmt
id
=
fprintf
fmt
"%s"
(
id_unique
(
Opt
.
get
!
local_printer
)
id
)
pp_print_string
fmt
(
id_unique
(
Opt
.
get
!
local_printer
)
id
)
let
print_global_ident
fmt
id
=
fprintf
fmt
"%s"
(
id_unique
(
Opt
.
get
!
global_printer
)
id
)
pp_print_string
fmt
(
id_unique
(
Opt
.
get
!
global_printer
)
id
)
let
clear_local_printer
()
=
Ident
.
forget_all
(
Opt
.
get
!
local_printer
)
...
...
@@ -698,7 +698,7 @@ module Print = struct
gen_syntax_arguments_prec
fmt
s
pr
pl
and
print_const
fmt
=
function
|
Cint
(
s
,_
)
|
Cfloat
s
->
fprintf
fmt
"%s"
s
|
Cint
(
s
,_
)
|
Cfloat
s
->
pp_print_string
fmt
s
|
Cchar
s
->
fprintf
fmt
"'%s'"
Constant
.(
escape
char_escape
s
)
|
Cstring
s
->
fprintf
fmt
"
\"
%s
\"
"
Constant
.(
escape
default_escape
s
)
let
print_id_init
?
(
size
=
None
)
~
stars
fmt
ie
=
...
...
@@ -1162,7 +1162,7 @@ module MLToC = struct
|
ILitOct
->
Format
.
fprintf
fmt
"0%a"
(
print_in_base
8
None
)
n
|
ILitDec
|
ILitUnk
->
(* default to base 10 *)
Format
.
fprintf
fmt
"%a"
(
print_in_base
10
None
)
n
in
print_in_base
10
None
fmt
n
in
let
s
=
let
i
=
ity_of_expr
e
in
let
ts
=
match
(
ty_of_ity
i
)
with
...
...
Write
Preview
Markdown
is supported
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