- Oct 21, 2015
-
-
Andrew Price authored
Now the client can use it too if necessary.
-
Andrew Price authored
Move the bits which specified the default server options and config file paths out of the config system. Add some bits to simplify constructing an array of default config options.
-
Andrew Price authored
-
Andrew Price authored
-
Andrew Price authored
Dedupe it into src/user.c where it fits and rewrite it in terms of a new user_find_name function which will be used more later.
-
Andrew Price authored
Move it from src/{web,}client/user.[ch] into src/user.c and simplify with pwrite(2).
-
- Oct 19, 2015
-
-
Andrew Price authored
-
Andrew Price authored
-
- Oct 18, 2015
-
-
Andrew Price authored
Until now configuring mwserv has been limited to command line options and build configuration. This config system should make things a bit more flexible by adding the ability to load bits and pieces from a json config file (or many json config files). This is how it works: 1. A json object 'cfg' is built containing the build-time defaults for each config option recognised by mwserv. This will be used to validate the options in config files later. 2. A json config file in the user's home directory is loaded if it exists. It does not have to be complete: its contents will be merged into the defaults. Unrecognised options are ignored. 3. Otherwise, a config file in /etc is loaded and used similarly. 4. Command line options are parsed and the cfg object is updated with cfg_set_* in the order in which the options are found. 4a. If the [--config|-c <file>] option is encountered, the file is loaded and merged into the cfg object as before. 5. Once all of the config information is gathered and merged into the cfg object, if the [--print-config|-P] option was given, the final merged config is printed in json format (mwserv then exits). 6. Config options are then accessed using the cfg_get_* type-specific functions. This should allow the build system to be simplified in future, e.g. 'make test' could go away in favour of using ~/.mwserv.conf to store the test environment configuration. For now, the place to add new config options and their default values is in cfg_init_defaults() in servercfg.c.
-
- Oct 17, 2015
-
-
Andrew Price authored
Tip: this can be avoided by adding this to your .vimrc: match ErrorMsg '\s\+$'
-
- Oct 12, 2015
-
-
Andrew Price authored
Adding tags to the root .gitignore will make git ignore tags files in any subdirectory so there's no need for a second .gitignore.
-
Andrew Price authored
-
- Oct 08, 2015
-
-
Justin Mitchell authored
-
Justin Mitchell authored
-
Justin Mitchell authored
-
- Oct 07, 2015
-
-
Justin Mitchell authored
-
Justin Mitchell authored
-
Andrew Price authored
'make test' sets libdir to a path in the test sandbox and it propagates to the mozjs build if it hasn't been built yet. Reinstate a sensible libdir for mozjs.
-
- Oct 06, 2015
-
-
Andrew Price authored
-
Andrew Price authored
Also disable building libmozjs.so and tidy up the mozjs-related make rules/variables.
-
Andrew Price authored
-
Andrew Price authored
Keeping everything js-related under a mozjs directory simplifies the build and reduces clutter. This also switches building mozjs in a separate build directory so that the built files can be more easily ignored. So we now have: Source: mozjs/mozjs17.0.0/ Built files: mozjs/build/ Installed files: mozjs/installroot/ This also adds the --disable-tests configure option.
-
Justin Mitchell authored
-
Imran Hussain authored
-
Justin Mitchell authored
-
Justin Mitchell authored
-
Justin Mitchell authored
improving with a tag and proper version numbers later.
-
- Oct 05, 2015
-
-
Justin Mitchell authored
-
Justin Mitchell authored
-
- Oct 02, 2015
-
-
Justin Mitchell authored
-
Justin Mitchell authored
-
- Sep 29, 2015
-
-
Justin Mitchell authored
Helps to display the event messages
-
Justin Mitchell authored
this moves (most of) the mrod and zod commands to the server
-
- Sep 25, 2015
-
-
Justin Mitchell authored
over to the new protocol. Should be tranformed into a request to the server to perform an action, followed by a response and an announcment of wether the command succeeded.
-
- Sep 24, 2015
-
-
Justin Mitchell authored
-
Justin Mitchell authored
-
- Sep 23, 2015
-
-
Justin Mitchell authored
thus fixing one major dependancy on the who list
-
- Sep 22, 2015
-
-
Justin Mitchell authored
Needs work: message head is currently pid of sender, needs to be userposn of sender instead/aswell
-
- Sep 21, 2015
-
-
Justin Mitchell authored
-
Justin Mitchell authored
Prep work for persistant/replay messaging; Add serial numbers and datestamps to every message processed by the server, fix timestamp printing to use those values instead of wallclock
-