mhbuild implement header folding
Added charstring "class" manual cherry-picked from nmh Author: David Levine <levinedl@acm.org> commit c61294eca5edf4f245c2d8818bf53d3bdc3d80c1
add some gcc hint defines The defines can help the compiler to produce better warnings and errors. This is manual cherrypicked from nmh
remove Previus-Sequence support The Previus-Sequence was racy and introduce a lot of write accesses. Also most use cases can solved better with shell history and command line editing.
h/mh.h remove comma at the end of enum state This is a C99 feature and mmh stick to C98. Just to stop the noise from the compiler ;-)
check for crlf in m_getfld2 now header fields witch lines 998 chars and crlf are accepted.
redesign version string Now we have two version nummbers one for the tool and one for the lib. Also the version number is changed everytime the object is rebuild.
Merge branch 'm_getfld2-meillo' into master
Make default scan/inc listing file-based There's now a new format file etc/scan.default, which contains the default scan listing. Previously it was hard-coded as a define in h/scansbr.h. The default scan listing format can be set in config/config.h and can be queried with `mhparam scanformat'.
Revert "add free_field as standard for struct field" This is not necesary, because the compieler have to take care about NULL != (void*)0 This reverts commit a87df3543d3bc128ba4079d1f95638476ba5ca50.
add free_field as standard for struct field this is a easy way to initializ a struct field. ``{{0}}'' can lead to bugs, because NULL is not necesary ``((void *)0)''
Finally we get rid of the unmaintainable m_getfld()! m_getfld() was about 700 lines, 300 of them being comments -- that's 42%! m_getfld2() is 240 lines, 30 of them being comments. That's only half as much code. Most important, however, is that this code is understandable and thus maintainable. We escaped the dead end of the heavily optimized m_getfld() be re-writing it from scratch. (Thanks to Philipp Tacaks!) m_getfld2() is line-based and not character-based like m_getfld(). This change spared us to keep digging into stdio internals or implementing our own I/O buffering. We are now portable to any standard-conforming stdio implementation.
m_getfld2: ERR2 means a read error, thus name it IOERR2
Add new implementation m_getfld2() This is mainly Philipp Takacs work.
Remove dead code: FLDEOF and BODYEOF are never set
reinclude some headers These includes are necessary to compile on FreeBSD.
Move #include from h/mh.h to source files Included files should not include further files. Now, only the necessary files are included and not all of them in every file. A large bunch of this work is done, but there are some more nested include files.
Remove h/nmh.h Move its contents to h/mh.h. Remove the NLENGTH macro on the way, be cause it is not used.
remove done finaly removed the used of done in sbr and the dafinition in the header. Also the source file is removed.
Convert pidXwait() from macro to function Plus some refactoring and syntactic sugar in pidstatus().