Skip to content

Commit

Permalink
More cleanup of the bytecode stuff; in particular, add a `MB_' prefix
Browse files Browse the repository at this point in the history
Estimated hours taken: 2

More cleanup of the bytecode stuff; in particular, add a `MB_' prefix
to most names.

bytecode/*:
	- Prefix all names defined in header files with `MB_'
	  (except for `TRUE', `FALSE', `DEBUGGING', and `XXXdebug').
	- Add macros `MB_new', `MB_new_array', and `MB_resize_array',
	  and use those instead of using `MB_malloc' and `MB_resize'
	  (formerly `mem_malloc' and `mem_resize') or malloc() and realloc()
	  directly.  Uncomment the definition of MB_strdup() now that it
	  calls MB_malloc().
	- Delete the definitions of `uchar', `uint', `ushort', `ulong'
	  (just spell them out, its clearer and more portable that way).
	- Fix the indentation in a few places I missed on my previous pass.
	- Add a `README' file.
  • Loading branch information
Fergus Henderson committed Apr 26, 1997
1 parent 48103ac commit a3644ae
Show file tree
Hide file tree
Showing 17 changed files with 483 additions and 501 deletions.
9 changes: 9 additions & 0 deletions bytecode/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
This directory holds the source code for the Mercury bytecode
utilities. `mdis' is the Mercury bytecode disassembler.
`mbi' is the Mercury bytecode interpreter.
(XXX should it be a stand-alone program, or should it just be a library?)

All exported symbols defined in modules in this directory should be prefixed
with `MB_', for "Mercury Bytecode", to avoid clashes with names defined in
other packages.

Loading

0 comments on commit a3644ae

Please sign in to comment.