glib-mkenums: fix handling of forward enum declarations
glib-mkenums: fix handling of forward enum declarations

Given

    typedef enum MyFoo MyFoo;

glib-mkenums would get confused, not notice the ";", and then keep
skipping lines until it found one that started with a "{", possibly
even going into the next file.

Fix it to just ignore those lines instead (and also, to error out if
it hits eof while parsing an enum).

https://bugzilla.gnome.org/show_bug.cgi?id=669595

cention-sany/glib,MathieuDuponchelle/glib,01org/android-bluez-glib,tamaskenez/glib,johne53/MB3Glib,gale320/glib,darren-clark/android_platform_external_bluetooth_glib,lukasz-skalski/glib,iConsole/Console-OS_external_bluetooth_glib,MathieuDuponchelle/glib,djdeath/glib,MathieuDuponchelle/glib,lukasz-skalski/glib,tamaskenez/glib,pstglia/platform-external-bluetooth-glib,endlessm/glib,johne53/MB3Glib,01org/android-bluez-glib,MathieuDuponchelle/glib,tchakabam/glib,justinkb/aosp-bluez.glib,Distrotech/glib,krichter722/glib,cention-sany/glib,mzabaluev/glib,justinkb/aosp-bluez.glib,tamaskenez/glib,pstglia/platform-external-bluetooth-glib,bluez-android/glib,djdeath/glib,pstglia/external-bluetooth-glib,tchakabam/glib,ieei/glib,Distrotech/glib,cosimoc/glib,endlessm/glib,cention-sany/glib,justinkb/aosp-bluez.glib,iConsole/Console-OS_external_bluetooth_glib,johne53/MB3Glib,cosimoc/glib,krichter722/glib,johne53/MB3Glib,ieei/glib,endlessm/glib,MathieuDuponchelle/glib,gale320/glib,djdeath/glib,krichter722/glib,pstglia/platform-external-bluetooth-glib,endlessm/glib,pstglia/external-bluetooth-glib,ieei/glib,mzabaluev/glib,tchakabam/glib,pstglia/external-bluetooth-glib,Distrotech/glib,bluez-android/glib,darren-clark/android_platform_external_bluetooth_glib,darren-clark/android_platform_external_bluetooth_glib,bluez-android/glib,lukasz-skalski/glib,justinkb/aosp-bluez.glib,bluez-android/glib,johne53/MB3Glib,cosimoc/glib,gale320/glib,tchakabam/glib,01org/android-bluez-glib,iConsole/Console-OS_external_bluetooth_glib,endlessm/glib,tamaskenez/glib,cosimoc/glib,cosimoc/glib,gale320/glib,darren-clark/android_platform_external_bluetooth_glib,iConsole/Console-OS_external_bluetooth_glib,krichter722/glib,pstglia/platform-external-bluetooth-glib,ieei/glib,lukasz-skalski/glib,mzabaluev/glib,cention-sany/glib,djdeath/glib,ieei/glib,mzabaluev/glib,johne53/MB3Glib,mzabaluev/glib,Distrotech/glib,iConsole/Console-OS_external_bluetooth_glib,djdeath/glib,gale320/glib,darren-clark/android_platform_external_bluetooth_glib,tamaskenez/glib,pstglia/external-bluetooth-glib,krichter722/glib,pstglia/platform-external-bluetooth-glib,pstglia/external-bluetooth-glib,01org/android-bluez-glib,Distrotech/glib,tchakabam/glib,01org/android-bluez-glib,bluez-android/glib,cention-sany/glib,lukasz-skalski/glib,justinkb/aosp-bluez.glib