[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: Mac OS X Support : Asm syntax support [Fixed]
From:       Alexandre Julliard <julliard () winehq ! org>
Date:       2003-06-30 18:50:09
[Download RAW message or body]

"Pierre d'Herbemont" <stegefin@free.fr> writes:

> Hum... If my memory is well I do use PPC_SYM in order to convert
> delay_imports to _delay_imports on darwin target. the assembler syntax
> requires it.

Yes, that's exactly what __ASM_NAME is supposed to do.

> If you want, but for me it seems that it is clearer this way. because
> you endup with things like:
> fprintf((output," \"li " PPC_REG(1) ", 0\\n\"\n");
> fprintf(outfile, "\t\"\\tlis " PC_REG(9)
> PPC_LOW(delay_imports+%d,9)\\n\"\n", pos);
> But in fact it is also readable. If you prefer this way I'll do what
> you like ;)

IMO it would be more readable with a separate function, and then
something like:

  fprintf( output, "li %s,0", ppc_reg(1) );

-- 
Alexandre Julliard
julliard@winehq.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic