News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Renaming tool for Vasily's include files.

Started by hutch--, July 10, 2016, 01:20:19 PM

Previous topic - Next topic

hutch--

Problem solved with Vasily's include files, here is a toy that renames "extern" to "externdef" with a batch file to run it.

Place the EXE and BAT file in the same directory as Vasily's include files, run the batch file and all includes will have extern renamed to externdef.

Modified includes tested on multiple examples and they work fine, the main gain is you can build libraries that do not end up bloated at massive sizes.

Files attached.

Basic at its best.  :biggrin:


FUNCTION PBmain as LONG

    cmd$ = command$

    Open cmd$ for Binary as #1
      Get$ #1, lof(1), a$
    Close #1

    Replace "extern " with "externdef " in a$

    Open cmd$ for Output as #1
      Print #1, a$;
    Close #1

    StdOut cmd$

End FUNCTION