Added support for APPMODE=<type>[:<mainFunc>]

Joerg Mayer jmayer at
Tue Jul 2 15:38:04 CDT 2002

On Tue, Jul 02, 2002 at 04:06:56PM -0400, Gregg Mattinson wrote:
>  - .spec files can't be compiled with -g when using Forte C.  This causes static 
> variables to have a "random" prefix attached to their name, and prevents the 
> assembly code from linking to them correctly.
>  - Forte C has linker issues, so cui executables with main() conflicted with 
> main() in $WINELOADER.  Renaming main() to main2() solved the issue, so I added 
> support to winebuild to allow the main function name to be optionally specified 
> in the makefile.
>  - Forte C does not support .previous  It was replaced with a .section statement 
> for the appropriate section
>  - '.section .text' is incorrect.  It should be '.section ".text"'

You omitted: - Replace constants by numeric values (aka magic numbers).

> -        fprintf( outfile, "  rec.code    = 0x%08x;\n", EXCEPTION_WINE_STUB );
> +        fprintf( outfile, "  rec.code    = 0x%08x;\n", 0x80000100 );

              - Inserted compiler specific compilation (as opposed to feature
                specific compilation)

> +#ifndef __SUNPRO_C
>      fprintf( outfile, "\n#include \"pshpack1.h\"\n" );
> +#endif

               - Removed some unneeded includes.

Joerg Mayer                                          <jmayer at>
I found out that "pro" means "instead of" (as in proconsul). Now I know
what proactive means.

More information about the wine-devel mailing list