#defines removed/replaced by enum type and variables.
Note: udf_get_next() needs to advance file entry info