Use the single-file implementation of MIO from universal-ctags
commit18b7527fcc237053716c5b8d54a15c1d36dca0ef
authorJiří Techet <techet@gmail.com>
Sat, 11 Jun 2016 11:02:23 +0000 (11 13:02 +0200)
committerJiří Techet <techet@gmail.com>
Thu, 21 Jul 2016 11:08:42 +0000 (21 13:08 +0200)
tree51c97bd3fd6cf7c16093bae26c6120dbf251044a
parent3d2e7d4fcacf39c5331af5d226a5e0037b880c52
Use the single-file implementation of MIO from universal-ctags

The version of MIO corresponds to commit 509a47dbc in universal-ctags
which contains just minimal changes mostly related to changing MIO from
a library into a single ctags source file:

- replaced the glib types with ordinary C types
- removed the "virtual" calls and replaced them with simple if/else
- made the implementation in a single file
- reformatted the library to more or less match universal-ctags style
- removed the MIO_FORCE_ANSI ifdef as it included some glib file and
  we don't really need it
- added mio_flush() - of course makes sense just for the file backend
  (calls fflush())
- made mio_free() return error code from fclose()
- changed mio_new_fp() to return NULL when the passed FILE is NULL
  (simplifies logic at one place in ctags and makes sense IMO)
20 files changed:
configure.ac
ctags/Makefile.am
ctags/main/Makefile.am
ctags/main/c.c
ctags/main/entry.h
ctags/main/fortran.c
ctags/main/js.c
ctags/main/lregex.c
ctags/main/mio.c [new file with mode: 0644]
ctags/main/mio.h [new file with mode: 0644]
ctags/main/parse.c
ctags/main/read.h
ctags/mio/COPYING [deleted file]
ctags/mio/Makefile.am [deleted file]
ctags/mio/README [deleted file]
ctags/mio/makefile.win32 [deleted file]
ctags/mio/mio-file.c [deleted file]
ctags/mio/mio-memory.c [deleted file]
ctags/mio/mio.c [deleted file]
ctags/mio/mio.h [deleted file]