2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test C support: --add-comments option.
8 /* b */ char *string = /* c */
10 /* e */ _( /* f */ "hello " /* g */ "world" /* h */ );
13 : ${XGETTEXT=xgettext}
14 ${XGETTEXT} --add-comments --omit-header --no-location --keyword=_ \
15 -d xg-c-16.tmp xg-c-16.c || exit 1
16 LC_ALL=C tr -d '\r' < xg-c-16.tmp.po > xg-c-16.po || exit 1
18 cat <<EOF > xg-c-16.ok
30 ${DIFF} xg-c-16.ok xg-c-16.po