Re: [PATCH 3/5] Add d_main_name to dlang.c

Iain Buclaw
2014-01-18T18:22:35Z

On 18 January 2014 17:09, Iain Buclaw <ibuclaw@gdcproject.org> wrote:
> On 9 January 2014 18:18, Tom Tromey <tromey@redhat.com> wrote:
>>>>>>> "Iain" == Iain Buclaw <ibuclaw@gdcproject.org> writes:
>>
>> Iain> The main program in D is _Dmain (demangled as 'D main') not C 'main'.
>> Iain> So the logical entry point of the program should be set accordingly.
>>
>> Iain> 2014-01-09 Iain Buclaw <ibuclaw@gdcproject.org>
>>
>> Iain> * d-lang.h (d_main_name): Add declaration.
>> Iain> * d-lang.c (d_main_name): New function.
>> Iain> * symtab.c (find_main_name): Add call to d_main_name.
>>
>> This is ok.
>>
>
>
> FYI, this has been amended slightly for the recent change to set_main_name.

And committed.

Regards
Iain