include: Move sarg.c stuff to nsc.h to avoid incomplete enum
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 30 Dec 2020 16:04:12 +0000 (17:04 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 23 Jan 2021 07:39:13 +0000 (08:39 +0100)
commitc48abacad21b81752dcc976fe5fb17e8f005260a
tree4d44dec3de86be74277ea012b078762dc825b910
parenta0d1f63729c4a867717bb48d7a9e45348502ddbf
include: Move sarg.c stuff to nsc.h to avoid incomplete enum

Portability issue: prototypes.h uses enum ns_seltype, defined in
nsc.h.  GCC is fine with that; it supports incomplete enum types as an
extension.  Broken in commit 157ae8ec2 "Clean up superfluous include
of nsc.h in prototypes.h", v4.3.27.  Moving sarg.c stuff to nsc.h
fixes it.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
include/nsc.h
include/prototypes.h