gxfenc: place variable declarations before statements