Changes by: Jason Hickey (jyh at cs.caltech.edu)
Date: 2004-04-18 18:46:45 -0700 (Sun, 18 Apr 2004)
Revision: 339
Log message:

      This is an annoying commit.  It looks massive, but many of the changes
      are just to "open" statements.  Here is the issue that is addressed.
         1. Format is a superset of Printf, and it is much better.
         2. MetaPRL's Rformat is a superset of Format, and it is much better.
      
      This commit moves Rformat into libmojave, as Lm_rformat.  With this
      commit, all output normally goes through Lm_rformat.  Feel free to
      continue to use Format/Printf in special cases, but normal user output
      should go through Lm_format/Lm_printf.  You will probably need to use
      Lm_pervasives as well.
      
      Lm_pervasives defines an (output_rbuffer : out_channel -> Lm_buffer.t -> unit)
      that should be used instead of the print_text_channel function.
      
      There is a new FORMAT option in mk/config.  Define FORMAT=Format to
      enable old behavior if you have trouble.
      
      There are two reasons behind this:
         1. We had a mix of files that use Printf and those that use Format
            for output.  This was a mess.  For instance format-style print
            directives (like "@[<hv 3>Content of text box@]@.") can't be
            used in raw Printf.  This meant that output functions had
            to be duplicated, one version for Printf, and one for Format.
            This commit solves the problem.
         2. Another reason, and the real reason behind this, is to allow
            output to be diverted based on the display device.
      

Changes  Path
Properties libmojave/stdlib
+1 -0 libmojave/stdlib/.cvsignore
+12 -7 libmojave/stdlib/Files
+5 -0 libmojave/stdlib/Makefile
+13 -0 libmojave/stdlib/OMakefile
+5 -36 libmojave/stdlib/lm_debug.ml
+0 -10 libmojave/stdlib/lm_debug.mli
+83 -71 libmojave/stdlib/lm_format.ml
+17 -11 libmojave/stdlib/lm_format.mli
+14 -8 libmojave/stdlib/lm_make_printf.ml
+10 -5 libmojave/stdlib/lm_make_printf.mli
+0 -0 libmojave/stdlib/lm_num.ml
Added libmojave/stdlib/lm_pervasives.h
Properties libmojave/stdlib/lm_pervasives.h
+91 -5 libmojave/stdlib/lm_pervasives.ml
+69 -5 libmojave/stdlib/lm_pervasives.mli
Added libmojave/stdlib/lm_pervasives.mlp
Properties libmojave/stdlib/lm_pervasives.mlp
+14 -15 libmojave/stdlib/lm_printf.ml
+11 -4 libmojave/stdlib/lm_printf.mli
+422 -595 libmojave/stdlib/lm_rformat.ml
+82 -39 libmojave/stdlib/lm_rformat.mli
Added libmojave/stdlib/lm_rformat_html.ml
Properties libmojave/stdlib/lm_rformat_html.ml
Added libmojave/stdlib/lm_rformat_html.mli
Properties libmojave/stdlib/lm_rformat_html.mli
Added libmojave/stdlib/lm_rformat_raw.ml
Properties libmojave/stdlib/lm_rformat_raw.ml
Added libmojave/stdlib/lm_rformat_raw.mli
Properties libmojave/stdlib/lm_rformat_raw.mli
Added libmojave/stdlib/lm_rformat_tex.ml
Properties libmojave/stdlib/lm_rformat_tex.ml
Added libmojave/stdlib/lm_rformat_tex.mli
Properties libmojave/stdlib/lm_rformat_tex.mli
Added libmojave/stdlib/lm_rformat_text.ml
Properties libmojave/stdlib/lm_rformat_text.ml
Added libmojave/stdlib/lm_rformat_text.mli
Properties libmojave/stdlib/lm_rformat_text.mli
+16 -16 libmojave/stdlib/lm_set.ml
+2 -1 libmojave/stdlib/lm_splay_linear_set.ml
+2 -1 libmojave/stdlib/lm_splay_table.ml
+1 -1 libmojave/stdlib/lm_string_util.ml
+1 -1 libmojave/stdlib/lm_thread_event.ml
+2 -2 libmojave/system/lm_marshal_shared.ml
+1 -1 libmojave/unix/lm_id.ml
+6 -2 libmojave/unix/lm_mmap_pipe.ml
+1 -1 libmojave/util/lm_arg.ml
+2 -1 libmojave/util/lm_attribute.ml
+1 -1 libmojave/util/lm_attribute.mli
+6 -6 libmojave/util/lm_clock.ml
+3 -2 libmojave/util/lm_command_util.ml
+2 -4 libmojave/util/lm_command_util.mli
+1 -1 libmojave/util/lm_flags.ml
+2 -1 libmojave/util/lm_fmarshal.ml
+2 -2 libmojave/util/lm_format_util.ml
+1 -1 libmojave/util/lm_format_util.mli
+1 -1 libmojave/util/lm_location.ml
+1 -1 libmojave/util/lm_location.mli
+42 -42 libmojave/util/lm_loop.ml
+1 -1 libmojave/util/lm_loop.mli
+1 -1 libmojave/util/lm_ncurses_display.ml
+1 -2 libmojave/util/lm_ncurses_display.mli
+1 -1 libmojave/util/lm_position.ml
+1 -1 libmojave/util/lm_position.mli
+12 -10 libmojave/util/lm_print_util.ml
+3 -3 libmojave/util/lm_profile.ml
+7 -6 libmojave/util/lm_symbol.ml
+5 -4 libmojave/util/lm_symbol.mli
+6 -6 libmojave/util/lm_table_graph.ml
+1 -1 libmojave/util/lm_trace.ml
+1 -1 libmojave/util/lm_trace.mli