Sto se tvog pitanja u vezi preprocesora tice, ne mogu a da se ne naljutim! /&%¤/&%¤/&%(¤Ö?)(=)(&()/&¤/%#
Pa covece u BFCLT direktorijumu (gde si instalirao Borland Free Command-Line Tools) ima lep HELP fajl koji objasnjava SVE vezano za BFCLT!
Sa par klikova i kucanjem "Preprocessor" u tom istom helpu sam dosao do sledeceg:
The -P option tells CPP32 to prefix each line with the source file name and line number. With the -P- option, CPP32 can be used as a macro preprocessor; the resulting .I file can then be compiled with BCC32. (Note that you can also use the BCC32 option -P to set default file extensions.)
The following simple program illustrates how CPP32 preprocesses a file, first with -P selected, then with -P-.
Source file: HELLOFB.C
Code:
#define NAME "Frank Borland"
#define BEGIN {
#define END }
main()
BEGIN
printf("%s\n", NAME);
END
CPP32 command line: CPP32 HELLOFB.C
Output:
Code:
HELLOFB.C 1:
HELLOFB.C 2:
HELLOFB.C 3:
HELLOFB.C 4:
HELLOFB.C 5: main()
HELLOFB.C 6: {
HELLOFB.C 7: printf("%s\n","Frank Borland");
HELLOFB.C 8: }
CPP32 command line: CPP32 -P- HELLOFB.C
Output:
Code:
main()
{
printf("%s\n","Frank Borland");
}
Dejan Lekic
software engineer, MySQL/PgSQL DBA, sysadmin