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
126
Issues
126
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
f04adefa
Commit
f04adefa
authored
Jun 22, 2018
by
Raphael Rieu-Helft
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid a deprecation warning
parent
96aa53b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/mlw/cprinter.ml
src/mlw/cprinter.ml
+2
-2
No files found.
src/mlw/cprinter.ml
View file @
f04adefa
...
...
@@ -388,7 +388,7 @@ module Print = struct
let
()
=
assert
(
List
.
length
c_keywords
=
32
)
let
sanitizer
=
sanitizer
char_to_lalpha
char_to_alnumus
let
sanitizer
s
=
String
.
lowercase
(
sanitizer
s
)
let
sanitizer
s
=
String
s
.
lowercase
(
sanitizer
s
)
let
printer
=
create_ident_printer
c_keywords
~
sanitizer
let
print_ident
fmt
id
=
fprintf
fmt
"%s"
(
id_unique
printer
id
)
...
...
@@ -1153,7 +1153,7 @@ let name_gen suffix ?fname m =
let
r
=
match
fname
with
|
None
->
n
^
suffix
|
Some
f
->
f
^
"__"
^
n
^
suffix
in
String
.
lowercase
r
String
s
.
lowercase
r
let
file_gen
=
name_gen
".c"
let
header_gen
=
name_gen
".h"
...
...
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