Commit 445fb598 authored by Alexandre Julliard's avatar Alexandre Julliard

Replaced all uses of the __ASM_NAME macro by the asm_name function to

allow run-time determination of the correct format.
parent 7894c1e8
......@@ -181,7 +181,7 @@ extern void free_dll_spec( DLLSPEC *spec );
extern const char *make_c_identifier( const char *str );
extern unsigned int get_alignment(unsigned int align);
extern unsigned int get_page_size(void);
extern const char *func_name( const char *func );
extern const char *asm_name( const char *func );
extern const char *func_declaration( const char *func );
extern const char *func_size( const char *func );
......
......@@ -380,11 +380,11 @@ unsigned int get_page_size(void)
return 0;
}
/* return the assembly name for a C function name */
const char *func_name( const char *func )
/* return the assembly name for a C symbol */
const char *asm_name( const char *sym )
{
static char buffer[256];
sprintf( buffer, __ASM_NAME("%s"), func );
sprintf( buffer, __ASM_NAME("%s"), sym );
return buffer;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment