Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/util/cilfacade.ml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ let isFloatType t =
| _ -> false

let init_options () =
Mergecil.merge_inlines := get_bool "cil.merge.inlines"
Mergecil.merge_inlines := get_bool "cil.merge.inlines";
Cil.cstd := Cil.cstd_of_string (get_string "cil.cstd");
Cil.gnu89inline := get_bool "cil.gnu89inline"

let init () =
initCIL ();
Expand Down
13 changes: 13 additions & 0 deletions src/util/options.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,19 @@
}
},
"additionalProperties": false
},
"cstd": {
"title": "cil.cstd",
"type": "string",
"description": "Specify the c standard used for parsing.",
"default": "c99",
"enum": ["c90", "c99", "c11"]
},
"gnu89inline": {
"title": "cil.gnu89inline",
"type": "boolean",
"description": "Indicates whether gnu89 semantic should be used for inline functions.",
"default": "false"
}
},
"additionalProperties": false
Expand Down