Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
2c59d4c0
Commit
2c59d4c0
authored
8 months ago
by
Allan Blanchard
Committed by
Andre Maroneze
8 months ago
Browse files
Options
Downloads
Patches
Plain Diff
[kernel] improved API doc for directories
parent
ecad311d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/kernel_services/cmdline_parameters/parameter_sig.ml
+31
-3
31 additions, 3 deletions
src/kernel_services/cmdline_parameters/parameter_sig.ml
with
31 additions
and
3 deletions
src/kernel_services/cmdline_parameters/parameter_sig.ml
+
31
−
3
View file @
2c59d4c0
...
...
@@ -369,7 +369,9 @@ module type Site_root = sig
end
(** User directories (session, config, state, ...).
We do not expect these directories/files to exist.
We do not expect these directories/files to exist. Several roots are
provided in {!Plugin}, namely {!Plugin.Session}, {!Plugin.Cache_dir},
{!Plugin.Config_dir} and {!Plugin.State_dir}.
@since Frama-C+dev
*)
...
...
@@ -381,7 +383,8 @@ module type User_dir = sig
- creating a the directory fails.
Otherwise returns the path, and creates it if [create_path] is true
(it defaults to false).
(it defaults to false). Subdirectories modules can be created with
{!Builder.Make_user_dir} and {!Builder.Make_user_dir_opt}.
*)
val
get_file
:
?
create_path
:
bool
->
string
->
Filepath
.
Normalized
.
t
...
...
@@ -396,7 +399,7 @@ module type User_dir = sig
*)
end
(** User
dir
ectories
with an option to override the
default
path.
(**
Basically {!
User
_
dir
} but
with an option to override the
original
path.
@since Frama-C+dev
*)
...
...
@@ -627,21 +630,46 @@ module type Builder = sig
and vice-versa. *)
end
)
:
Filepath
(** Builds a {!Site_dir} from an existing one. The first parameter is the
parent directory. The second gives the name of the directory to create.
@since Frama-C+dev
*)
module
Make_site_dir
(
_
:
Site_dir
)
(
_
:
sig
val
name
:
string
end
)
:
Site_dir
(** Builds a {!User_dir} from an existing one. The first parameter is the
parent directory. The second gives the name of the directory to create.
@since Frama-C+dev
*)
module
Make_user_dir
(
_
:
User_dir
)
(
_
:
sig
val
name
:
string
end
)
:
User_dir
(** Builds a {!User_dir_opt} from an existing {!User_dir}. The first parameter
is the parent directory. The second gives the name of the directory to
create (also used to create the option name), a possible environment
variable name and the help message for the option.
@since Frama-C+dev
*)
module
Make_user_dir_opt
(
_
:
User_dir
)
(
_
:
sig
val
name
:
string
(** The name of the directory, also used to create an option of the
form -<plugin>-<name>. *)
val
env
:
string
option
(** Can be used to provide an environment variable that can be used
instead of the option. The option has higher priority.
*)
val
help
:
string
end
)
:
User_dir_opt
...
...
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