Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Lustrec - public version
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LustreC
Lustrec - public version
Commits
714588bf
Commit
714588bf
authored
7 years ago
by
Hamza Bourbouh
Browse files
Options
Downloads
Patches
Plain Diff
ange ID length
parent
def94a59
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backends/EMF/EMF_common.ml
+4
-4
4 additions, 4 deletions
src/backends/EMF/EMF_common.ml
with
4 additions
and
4 deletions
src/backends/EMF/EMF_common.ml
+
4
−
4
View file @
714588bf
...
...
@@ -34,15 +34,15 @@ let record_types prog =
(* Basic printing functions *)
(* If string length of f is longer than 50 chars, we select the
2
0 first and
(* If string length of f is longer than 50 chars, we select the
1
0 first and
last and put a hash in the middle *)
let
print_protect
fmt
f
=
fprintf
str_formatter
"%t"
f
;
let
s
=
flush_str_formatter
()
in
let
l
=
String
.
length
s
in
if
l
>
5
0
then
let
prefix
=
String
.
sub
s
0
2
0
and
suffix
=
String
.
sub
s
(
l
-
2
0
)
2
0
in
if
l
>
3
0
then
let
prefix
=
String
.
sub
s
0
1
0
and
suffix
=
String
.
sub
s
(
l
-
1
0
)
1
0
in
let
hash
=
Hashtbl
.
hash
s
in
fprintf
fmt
"%s_%i_%s"
prefix
hash
suffix
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment