Error in http://wiki.amigaos.net/wiki/Exec_Tasks

Report errors, omissions, etc. regarding the AmigaOS Documentation Wiki here.

Error in http://wiki.amigaos.net/wiki/Exec_Tasks

Postby Kamelito » Thu Oct 06, 2016 1:46 pm

This page is marked as "This page is not yet fully updated to AmigaOS 4.x some of the information contained here may not be applicable in part or totally."
I understand that it can be not applicable but let's do it anyway.
I mainly looked at the code not the content.

Step to reproduce :
Goto : http://wiki.amigaos.net/wiki/Exec_Tasks
Look for the example "simpletask.c"

1) Search for line "struct Task *task = CreateTaskTags("SimpleTask", 0 , simpletask, STACK_SIZE"
since this create an invalid conversion from 'void (*)()' to 'const void*'
I would cast like that "struct Task *task = IExec->CreateTaskTags("SimpleTask", 0 , (void*) simpletask, STACK_SIZE, TAG_END); //tell me if I'm wrong

2) Search for "IEXec->DeleteTask(task);" // notice the big X in IEXec
it should be "IExec->DeleteTask(task);"

3) In the autodoc we have " struct Task *task = CreateTask(CONST_STRPTR name, int32 pri, CONST_APTR initPC, uint32 stackSize, CONST struct TagItem *tagList);
in the wiki "CreateTaskTags(CONST_STRPTR name, int32 priority, APTR initialPC, uint32 stacksize, ...);"
Kamelito
Kamelito
 
Posts: 14
Joined: Sat Sep 10, 2016 2:48 pm

Re: Error in http://wiki.amigaos.net/wiki/Exec_Tasks

Postby ssolie » Sat Oct 08, 2016 4:57 pm

Fixed.
AmigaOS Development Team Lead
Be authentic. Get AmigaOS.
User avatar
ssolie
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 998
Joined: Mon Dec 20, 2010 9:51 pm
Location: Canada

Re: Error in http://wiki.amigaos.net/wiki/Exec_Tasks

Postby Kamelito » Sun Oct 09, 2016 8:22 am

ssolie wrote:Fixed.


Still missing an "IExec->" in this line "struct Task *task = CreateTaskTags("SimpleTask", 0 , (CONST_APTR)simpletask, STACK_SIZE, TAG_END);

Kamelito
Kamelito
 
Posts: 14
Joined: Sat Sep 10, 2016 2:48 pm

Re: Error in http://wiki.amigaos.net/wiki/Exec_Tasks

Postby Kamelito » Mon Oct 24, 2016 9:17 pm

verified fixed

Kamelito
Kamelito
 
Posts: 14
Joined: Sat Sep 10, 2016 2:48 pm


Return to AmigaOS Documentation Wiki

Who is online

Users browsing this forum: No registered users and 1 guest