More work on console I/O and minor fixes
This commit is contained in:
@@ -141,18 +141,21 @@ public:
|
||||
//
|
||||
// Rebuild the lua environment: clear it out, then reinstall all the
|
||||
// functions that should be there. See above for more information.
|
||||
// If an error exists in any of the source files, or when loading any
|
||||
// of the closures, the error can optionally be printed or ignored.
|
||||
//
|
||||
void rebuild(bool print_errors);
|
||||
|
||||
// Any error messages will be collected into a single long string
|
||||
// containing one error per line, and returned. If the return value
|
||||
// is the empty string, there were no errors.
|
||||
//
|
||||
std::string rebuild();
|
||||
|
||||
// Difference transmission.
|
||||
//
|
||||
// Note: The patch routine applies the differences to the source
|
||||
// database, and if there are any changes, it does a source rebuild.
|
||||
// The patch routine returns true if anything was modified.
|
||||
//
|
||||
void diff(const SourceDB &auth, StreamBuffer *sb);
|
||||
void patch(StreamBuffer *sb);
|
||||
bool patch(StreamBuffer *sb);
|
||||
|
||||
// run_unittests
|
||||
//
|
||||
@@ -170,19 +173,6 @@ public:
|
||||
std::string get(const std::string &fn);
|
||||
};
|
||||
|
||||
// The Lua 'makeclass' operator.
|
||||
//
|
||||
// Creates a table in the global environment with the specified name.
|
||||
// Adds a __class field and an __index field, and an action subtable.
|
||||
// If there's already a table with this name in the global environment,
|
||||
// leaves it there, and repairs the __class and __index fields.
|
||||
//
|
||||
int lfn_source_makeclass(lua_State *L);
|
||||
|
||||
// Return true if the specified table is a class created by 'makeclass'
|
||||
//
|
||||
int lfn_source_isclass(lua_State *L);
|
||||
|
||||
#endif // SOURCE_HPP
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user