[fvwmorg/fvwm3] bdeed0: read: remove custom fgets logic and use fparseln()

Thomas Adam <[email protected]> Thu, 16 May 2019 03:30:10 -0700
Newsgroups gmane.comp.window-managers.fvwm.devel
Message-ID <fvwmorg/fvwm3/push/refs/heads/ta/fparseln/[email protected]>
  Branch: refs/heads/ta/fparseln
  Home:   https://github.com/fvwmorg/fvwm3
  Commit: bdeed0543087b69f7b9c672dd061fdb3801faebe
      https://github.com/fvwmorg/fvwm3/commit/bdeed0543087b69f7b9c672dd061fdb3801faebe
  Author: Thomas Adam <[email protected]>
  Date:   2019-05-16 (Thu, 16 May 2019)

  Changed paths:
    M .travis.yml
    M configure.ac
    M fvwm/Makefile.am
    M fvwm/read.c

  Log Message:
  -----------
  read: remove custom fgets logic and use fparseln()

When reading in a configuration file (or anything which uses the
Read/PipeRead command), there's always been a hard-limit of a
configuration line being no more than 1024 bytes.  This was fine
historically, but this restriction is now rather limiting.

This change solves that by using fparseln() from libbsd.  This also has
the added advantage that it can handle line continuations, which was
also part of the hand-rolled logic mentioned above.

Because of this change, there's now a hard dependency on libbsd for
non-BSD systems.