pidgin/pidgin

Make PurplePluginProtocolInfo definitions consistent
release-2.x.y
2020-05-20, David Woodhouse
159344ba2a49
Make PurplePluginProtocolInfo definitions consistent

Since we can't use C99 structure initialisers, we have to manually add
new NULL fields to all protocols whenever we extend the structure.

Make it slightly easier to script that, by making the current last
field (get_cb_alias) consistent in all cases. In particular, there's
no reason *not* to have the trailing comma, as most already do.

Now I can add a new field to the PRPL by doing something like this...

PROTOFILES=`grep -rl '[A-Za-z_][A-Za-z0-9_]*,[[:space:]]*/\* get_cb_alias \*/' libpurple/protocols/ `
sed '/\/\* get_cb_alias \*\//{p;s/[A-Za-z_][A-Za-
# vi:et:ts=2 sw=2 sts=2
image: pidgin/builder-debian:buster
pipelines:
default:
- step:
script:
- set -ex
- meson -Dsilc=false -Ddoc=true -Ddebug=true build
- ninja -C build
- ninja -C build test
branches:
release-2.x.y:
- step:
image: pidgin/builders-2:debian-buster-amd64
script:
- set -ex
- hg clone https://bitbucket.org/pidgin/libgnt -b release-2.x.y
- meson -Dprefix=/usr libgnt libgnt/build
- ninja -C libgnt/build install
- ldconfig
- build.sh