automatic data/define mode switching for classic files

Hi,

With this patch, when working on classic files, the data/define mode swithing is done automatically by the library (see example in cxx4/test_classic.cpp).

HTH,
Sylwester