From: Roumen P. <bug...@ro...> - 2008-10-16 21:59:59
|
Roumen Petrov wrote: > Since version 8.0 msvcrt switch to 64-bit time_t and rename about 10 32- > functions for XXX to _XXX32. > > Now I'm thinking about this issue and I couldn't decide how to describe > rename of those functions in msvcrt.def.in. [SNIP] What about awk script and following file format with description of functions(items separated by blanks). $ cat msvcrt.awk-list 0000 9999 EXPORTS 0000 0799 time 0800 9999 _time32 0000 9999 z123 DATA $ cat msvcrt.awk BEGIN { if (VER == "") VER=600 } { if ($1 <= VER && VER <= $2) print $3 " " $4 } And the results: $ cat msvcrt.awk-list | awk -v VER=0800 -f msvcrt.awk EXPORTS _time32 z123 DATA $ cat msvcrt.awk-list | awk -v VER=0600 -f msvcrt.awk EXPORTS time z123 DATA Roumen |