[mw-devel] MW3 r1150 - trunk/src

Andrew Price welshbyte at sucs.org
Mon Jul 12 22:50:05 BST 2010


(This'll require a 'make clean' to keep the auto deps magic bits happy 
with the disappearance of proto.h)

On 12/07/10 22:29, welshbyte at sucs.org wrote:
> Author: welshbyte
> Date: 2010-07-12 22:29:37 +0100 (Mon, 12 Jul 2010)
> New Revision: 1150
>
> Added:
>     trunk/src/add.h
>     trunk/src/colour.h
>     trunk/src/echo.h
>     trunk/src/edit.h
>     trunk/src/filter.h
>     trunk/src/folders.h
>     trunk/src/getpass.h
>     trunk/src/init.h
>     trunk/src/locking.h
>     trunk/src/main.h
>     trunk/src/mesg.h
>     trunk/src/mod.h
>     trunk/src/new.h
>     trunk/src/perms.h
>     trunk/src/read.h
>     trunk/src/tidyup.h
>     trunk/src/topten.h
>     trunk/src/who.h
> Removed:
>     trunk/src/proto.h
> Modified:
>     trunk/src/Parse.c
>     trunk/src/Parse.h
>     trunk/src/add.c
>     trunk/src/alarm.h
>     trunk/src/alias.c
>     trunk/src/alias.h
>     trunk/src/bb.h
>     trunk/src/bork.h
>     trunk/src/chattable.h
>     trunk/src/colour.c
>     trunk/src/command.h
>     trunk/src/completion.c
>     trunk/src/edit.c
>     trunk/src/expand.h
>     trunk/src/files.c
>     trunk/src/filter.c
>     trunk/src/folders.c
>     trunk/src/frl.h
>     trunk/src/gags.c
>     trunk/src/gags.h
>     trunk/src/gagtable.c
>     trunk/src/gagtable.h
>     trunk/src/getpass.c
>     trunk/src/hash.h
>     trunk/src/iconv.h
>     trunk/src/incoming.c
>     trunk/src/incoming.h
>     trunk/src/init.c
>     trunk/src/ipc.c
>     trunk/src/ipc.h
>     trunk/src/js.c
>     trunk/src/js.h
>     trunk/src/log.c
>     trunk/src/log.h
>     trunk/src/main.c
>     trunk/src/mesg.c
>     trunk/src/mod.c
>     trunk/src/new.c
>     trunk/src/newmain.c
>     trunk/src/perms.c
>     trunk/src/read.c
>     trunk/src/rooms.c
>     trunk/src/rooms.h
>     trunk/src/scrcomplete.h
>     trunk/src/script.c
>     trunk/src/script.h
>     trunk/src/script_inst.c
>     trunk/src/script_inst.h
>     trunk/src/sort.h
>     trunk/src/special.h
>     trunk/src/sqlite.h
>     trunk/src/strings.c
>     trunk/src/strings.h
>     trunk/src/talker.c
>     trunk/src/talker.h
>     trunk/src/talker_privs.c
>     trunk/src/talker_privs.h
>     trunk/src/tidyup.c
>     trunk/src/topten.c
>     trunk/src/uri.c
>     trunk/src/uri.h
>     trunk/src/user.c
>     trunk/src/user.h
>     trunk/src/who.c
> Log:
> Some header file refactoring:
> - Get rid of proto.h and split out its declarations into new .h files matching the .c files in which the definitions will be found
> - Use include guards in headers
> - Reorganise a couple of functions to make them static
>
> NB this is just the first step. Some of the additional headers can probably be obsoleted with further refactoring as they only contain one or two declarations - there's plenty of scope for better organisation of .c files (e.g. get_pass and other utility functions could be combined into a util.c).



More information about the mw-devel mailing list