ide: au1xxx: fix use of mixed declarations and code