0

anybody an idea to avoid the 'wrong' newlines after ':'?
now it looks like this:

    *Servo=(APOS_typ){Intern:
                      (APOSINT_typ){CCom:
                                    Servo->Intern.CCom, MasterOf:
                                    Servo->Intern.MasterOf, ClientOf:
                                    Servo->Intern.ClientOf, UpdateTime:
                                    Servo->Intern.UpdateTime, CycAbsMoveParID:
                                    ACP10PAR_USER_I4_VAR1, FromDrive:
                                    Servo->Intern.FromDrive, ToDrive:
                                    Servo->Intern.ToDrive}};

i am lookin for something like this:

        *Servo=(APOS_typ){Intern : (APOSINT_typ){CCom : Servo->Intern.CCom,
                                                 MasterOf : Servo->Intern.MasterOf,
                                                 ClientOf : Servo->Intern.ClientOf, 
                                                 UpdateTime : Servo->Intern.UpdateTime,
                                                 CycAbsMoveParID : ACP10PAR_USER_I4_VAR1,
                                                 FromDrive : Servo->Intern.FromDrive,
                                                 ToDrive : Servo->Intern.ToDrive}};

I couldn't find any parameter for this problem in default.cfg

1 Answers1

0

Ok, this was my fault, i was using an old obsolete gcc extension.

the correct struct initialization looks now

        *Servo=(APOS_typ){.Intern=(APOSINT_typ){.CCom=Servo->Intern.CCom,
                                                .MasterOf=Servo->Intern.MasterOf,
                                                .ClientOf=Servo->Intern.ClientOf,
                                                .UpdateTime=Servo->Intern.UpdateTime,
                                                .CycAbsMoveParID=ACP10PAR_USER_I4_VAR1,
                                                .FromDrive=Servo->Intern.FromDrive,
                                                .ToDrive=Servo->Intern.ToDrive}};

and Uncrustify works well ;-)