fixed errors in oscgen.c
Merge branch 'develop' into release-1.0
Merge branch 'release-1.0' into develop