diff --git a/ocamldoc/Makefile b/ocamldoc/Makefile index ad3b35c10..678e9ce5b 100644 --- a/ocamldoc/Makefile +++ b/ocamldoc/Makefile @@ -110,7 +110,6 @@ EXECMOFILES=$(CMOFILES)\ odoc_latex.cmo\ odoc_texi.cmo\ odoc_dot.cmo\ - odoc_iso.cmo EXECMXFILES= $(EXECMOFILES:.cmo=.cmx) EXECMIFILES= $(EXECMOFILES:.cmo=.cmi) @@ -262,7 +261,7 @@ odoc_crc.ml: $(CMIFILES) Odoc_sig Odoc_ast Odoc_control Odoc_inherit\ Odoc_search Odoc_cross Odoc_merge Odoc_analyse\ Odoc_dag2html Odoc_ocamlhtml Odoc_html\ - Odoc_latex Odoc_man Odoc_iso Odoc_scan > $@ + Odoc_latex Odoc_man Odoc_texi Odoc_scan > $@ # generic rules : ################# diff --git a/ocamldoc/odoc.ml b/ocamldoc/odoc.ml index 4ef370439..dba04f6e2 100644 --- a/ocamldoc/odoc.ml +++ b/ocamldoc/odoc.ml @@ -68,14 +68,12 @@ let default_html_generator = new Odoc_html.html let default_latex_generator = new Odoc_latex.latex let default_texi_generator = new Odoc_texi.texi let default_man_generator = new Odoc_man.man -let default_iso_generator = new Odoc_iso.iso let default_dot_generator = new Odoc_dot.dot let _ = Odoc_args.parse (default_html_generator :> Odoc_args.doc_generator) (default_latex_generator :> Odoc_args.doc_generator) (default_texi_generator :> Odoc_args.doc_generator) (default_man_generator :> Odoc_args.doc_generator) - (default_iso_generator :> Odoc_args.doc_generator) (default_dot_generator :> Odoc_args.doc_generator) diff --git a/ocamldoc/odoc_args.ml b/ocamldoc/odoc_args.ml index 5935d2d02..4d6cf0f20 100644 --- a/ocamldoc/odoc_args.ml +++ b/ocamldoc/odoc_args.ml @@ -24,12 +24,6 @@ let doc_generator = ref (None : doc_generator option) let merge_options = ref ([] : Odoc_types.merge_option list) -let iso_type_options = ref ([] : Odoc_types.iso_check list) -let iso_val_options = ref ([] : Odoc_types.iso_check list) -let iso_exception_options = ref ([] : Odoc_types.iso_check list) -let iso_class_options = ref ([] : Odoc_types.iso_check list) -let iso_module_options = ref ([] : Odoc_types.iso_check list) - let dot_file = ref Odoc_messages.default_dot_file let dot_include_all = ref false @@ -71,24 +65,6 @@ let analyse_merge_options s = ] in analyse_option_string l s - -(** Analysis of a string defining the iso checks to perform. - Return the list of checks specified.*) -let analyse_iso_checks s = - let l = [ - (Odoc_messages.iso_description, [Odoc_types.Has_description]) ; - (Odoc_messages.iso_author, [Odoc_types.Has_author]) ; - (Odoc_messages.iso_since, [Odoc_types.Has_since]) ; - (Odoc_messages.iso_version, [Odoc_types.Has_version]) ; - (Odoc_messages.iso_return, [Odoc_types.Has_return]) ; - (Odoc_messages.iso_params, [Odoc_types.Has_params]) ; - (Odoc_messages.iso_fields_described, [Odoc_types.Has_fields_decribed]) ; - (Odoc_messages.iso_constructors_described, [Odoc_types.Has_constructors_decribed]) ; - (Odoc_messages.iso_all, Odoc_types.all_iso_checks) - ] - in - analyse_option_string l s - let classic = Clflags.classic @@ -196,9 +172,6 @@ let default_texi_generator = ref (None : doc_generator option) (** The default man pages generator. Initialized in the parse function, to be used during the command line analysis.*) let default_man_generator = ref (None : doc_generator option) -(** The default iso check generator. Initialized in the parse function, to be used during the command line analysis.*) -let default_iso_generator = ref (None : doc_generator option) - (** The default dot generator. Initialized in the parse function, to be used during the command line analysis.*) let default_dot_generator = ref (None : doc_generator option) @@ -231,7 +204,6 @@ let options = ref [ "-latex", Arg.Unit (fun () -> set_doc_generator !default_latex_generator), Odoc_messages.generate_latex ; "-texi", Arg.Unit (fun () -> set_doc_generator !default_texi_generator), Odoc_messages.generate_texinfo ; "-man", Arg.Unit (fun () -> set_doc_generator !default_man_generator), Odoc_messages.generate_man ; - "-iso", Arg.Unit (fun () -> set_doc_generator !default_iso_generator), Odoc_messages.generate_iso ; "-dot", Arg.Unit (fun () -> set_doc_generator !default_dot_generator), Odoc_messages.generate_dot ; "-g", Arg.String (fun s -> ()), Odoc_messages.load_file^"\n" ; @@ -253,13 +225,6 @@ let options = ref [ "-noindex", Arg.Clear with_index, Odoc_messages.no_index ; "-esc8", Arg.Set esc_8bits, Odoc_messages.esc_8bits ; -(* iso only options *) - "-iso-val", Arg.String (fun s -> iso_val_options := analyse_iso_checks s), Odoc_messages.iso_val_met_att_options ; - "-iso-cl", Arg.String (fun s -> iso_class_options := analyse_iso_checks s), Odoc_messages.iso_class_options ; - "-iso-mod", Arg.String (fun s -> iso_module_options := analyse_iso_checks s), Odoc_messages.iso_module_options ; - "-iso-ex", Arg.String (fun s -> iso_exception_options := analyse_iso_checks s), Odoc_messages.iso_exception_options ; - "-iso-ty", Arg.String (fun s -> iso_type_options := analyse_iso_checks s), Odoc_messages.iso_type_options^"\n" ; - (* dot only options *) "-dot-file", Arg.String (fun s -> dot_file := s), Odoc_messages.dot_file ; "-dot-colors", Arg.String (fun s -> dot_colors := Str.split (Str.regexp_string ",") s), Odoc_messages.dot_colors ; @@ -271,12 +236,11 @@ let options = ref [ let add_option o = options := !options @ [o] -let parse ~html_generator ~latex_generator ~texi_generator ~man_generator ~iso_generator ~dot_generator = +let parse ~html_generator ~latex_generator ~texi_generator ~man_generator ~dot_generator = default_html_generator := Some html_generator ; default_latex_generator := Some latex_generator ; default_texi_generator := Some texi_generator ; default_man_generator := Some man_generator ; - default_iso_generator := Some iso_generator ; default_dot_generator := Some dot_generator ; let _ = Arg.parse !options (fun s -> files := !files @ [s]) diff --git a/ocamldoc/odoc_args.mli b/ocamldoc/odoc_args.mli index cf5bbe98b..843b2d4e9 100644 --- a/ocamldoc/odoc_args.mli +++ b/ocamldoc/odoc_args.mli @@ -25,21 +25,6 @@ val doc_generator : doc_generator option ref (** The merge options to be used. *) val merge_options : Odoc_types.merge_option list ref -(** The iso checks to perform on each type. *) -val iso_type_options : Odoc_types.iso_check list ref - -(** The iso checks to perform on each value / method / attribute. *) -val iso_val_options : Odoc_types.iso_check list ref - -(** The iso checks to perform on each exception. *) -val iso_exception_options : Odoc_types.iso_check list ref - -(** The iso checks to perform on each class and class type. *) -val iso_class_options : Odoc_types.iso_check list ref - -(** The iso checks to perform on each module and module type. *) -val iso_module_options : Odoc_types.iso_check list ref - (** Classic mode or not. *) val classic : bool ref @@ -143,7 +128,6 @@ val parse : latex_generator:doc_generator -> texi_generator:doc_generator -> man_generator:doc_generator -> - iso_generator:doc_generator -> dot_generator:doc_generator -> unit diff --git a/ocamldoc/odoc_info.ml b/ocamldoc/odoc_info.ml index 3393b4bf5..5526bc314 100644 --- a/ocamldoc/odoc_info.ml +++ b/ocamldoc/odoc_info.ml @@ -80,17 +80,6 @@ type location = Odoc_types.location = { let dummy_loc = { loc_impl = None ; loc_inter = None } -type iso_check = Odoc_types.iso_check = - | Has_description - | Has_author - | Has_since - | Has_version - | Has_return - | Has_params - | Has_fields_decribed - | Has_constructors_decribed - - module Name = Odoc_name module Parameter = Odoc_parameter module Exception = Odoc_exception diff --git a/ocamldoc/odoc_info.mli b/ocamldoc/odoc_info.mli index 221d8b12e..43ad44bbd 100644 --- a/ocamldoc/odoc_info.mli +++ b/ocamldoc/odoc_info.mli @@ -89,17 +89,6 @@ type location = Odoc_types.location = { (** A dummy location. *) val dummy_loc : location -(** The kind of checks which can be performed on elements. *) -type iso_check = Odoc_types.iso_check = - | Has_description (** the element has an associated description *) - | Has_author (** the element's description has one or more \@author tag(s) *) - | Has_since (** the element's description has a \@since tag *) - | Has_version (** the element's description has a \@version tag *) - | Has_return (** the function's description has a \@return tag *) - | Has_params (** all the named parameters of the element has a description *) - | Has_fields_decribed (** all the fields of the type are described *) - | Has_constructors_decribed (** all the constructors of the type are described *) - (** Representation of element names. *) module Name : sig diff --git a/ocamldoc/odoc_messages.ml b/ocamldoc/odoc_messages.ml index dd9b53385..0d4785273 100644 --- a/ocamldoc/odoc_messages.ml +++ b/ocamldoc/odoc_messages.ml @@ -25,7 +25,6 @@ let option_version = " Print version and exit" let latex_only = "(LaTeX only)" let texi_only = "(TeXinfo only)" let html_only = "(HTML only)" -let iso_only = "(ISO only)" let verbose_mode = " verbose mode" let include_dirs = "