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

Report errors, omissions, etc. regarding the AmigaOS Documentation Wiki here.
Post Reply
Kamelito
Posts: 14
Joined: Sat Sep 10, 2016 1:48 pm

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

Post by Kamelito »

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
User avatar
ssolie
Beta Tester
Beta Tester
Posts: 1010
Joined: Mon Dec 20, 2010 8:51 pm
Location: Canada
Contact:

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

Post by ssolie »

Fixed.
ExecSG Team Lead
Kamelito
Posts: 14
Joined: Sat Sep 10, 2016 1:48 pm

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

Post by Kamelito »

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 1:48 pm

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

Post by Kamelito »

verified fixed

Kamelito
Post Reply