Ignore folders with an empty sequence in new This solves the issue where `new' lists folders that have an empty sequence (e.g. the unseen sequence), this also prevents `fnext' and `fprev' from navigating to such folders.
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.
better error handling only warn for LENERR2, or ignore it in some cases
Merge branch 'm_getfld2-meillo' into master
Replace getcpy() and strdup() with mh_xstrdup() this harmonise the code. Also fix some bugs, if return value of strdup is not checked.
Replace free() with mh_free0() mh_free0() free's the memmory and set's the pointer to NULL after the free. This avoids doublefree and dereferenc of a non valid poiter.
Replace mh_xmalloc() with mh_xcalloc() calloc() is safer, because it initialize the memory to zero.
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)''
Convert most of the tools from m_getfld() to m_getfld2()
Remove dead code: FLDEOF and BODYEOF are never set
Use sysexits.h for better exit-codes The sysexits header describe some standard exit-codes, which should be used. adios has now a status argument so sysexits.h can be used.
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.
Merge ../mmh Conflicts: uip/rmm.c uip/whatnow.c
Replace done with exit at uip Replace done with exit in most sourcefiles of uip. This makes the code better to read. If the done was overwritten by an externel function atexit() is used instand. send.c and mhl.c are excluded, because need a bit rewrite first.
new: Fix a pointer problem I should learn to get such stuff right without the need to draw the memory layout with boxes and lines on paper ... Thanks to the test suite for catching this one!
Use execprog() instead of system() ... partly transition There are several more places where system() should be replaced. As execprog() does not split strings into multiple arguments, `listproc' could no longer contain ``show -file''. We need to rework the concept of these `...proc' entries. This commit fixes tests/whatnow/test-attach-detach.
Removed configure flag --disable-locale and have it always enabled. Todays system are assumed to have locale support.
Don't require a length for switch prefixes without good reason. E.g. there's no reason (anymore?) to require the user to type `whatnow -prom' when `whatnow -p' is already distinguishing.
Renamed -version switch to -Version to remove the conflict with -verbose. Now, `mhlist -V' prints the version and `mhlist -v' lists verbosely. There are only a few switches left that conflict on the first character, apart from the inverted (no*) variants.