Hi
I just released my article on the wiki:
http://wiki.amigaos.net/wiki/How_to_cre ... S4_library
Don't hesitate to correct my approximated english and my technical errors and gaps.
I hope it will be of some help for newbies.
Search found 21 matches
- Thu Apr 21, 2016 11:25 pm
- Forum: General Developer Support
- Topic: Using Newlib in a library
- Replies: 18
- Views: 23316
- Sat Apr 16, 2016 6:33 pm
- Forum: General Developer Support
- Topic: Using Newlib in a library
- Replies: 18
- Views: 23316
Re: Using Newlib in a library
I guess using globals is bad, but it would allow to minimize the code change between the direct access out of the library for development and debugging, and the access through the library for release.
That's didn't quite compute... what do you mean here?
I developped my toolkit as regular ...
- Fri Apr 15, 2016 6:53 pm
- Forum: General Developer Support
- Topic: Using Newlib in a library
- Replies: 18
- Views: 23316
Re: Using Newlib in a library
Hi again
I'm writing a simple step by step howto for the wiki and I'm wondering about a few things.
- In libInit I get a struct Interface *exec
May I just keep it or should I Obtain it ?
- the Utility interface sample in libInit stores the pointers in the libBase
What are the risks if I keep the ...
I'm writing a simple step by step howto for the wiki and I'm wondering about a few things.
- In libInit I get a struct Interface *exec
May I just keep it or should I Obtain it ?
- the Utility interface sample in libInit stores the pointers in the libBase
What are the risks if I keep the ...
- Thu Apr 14, 2016 11:12 pm
- Forum: General Developer Support
- Topic: Using Newlib in a library
- Replies: 18
- Views: 23316
Re: Using Newlib in a library
Thanks for the explanation.
I'll put it in the wiki too.
I'll put it in the wiki too.
- Thu Apr 14, 2016 10:15 pm
- Forum: General Developer Support
- Topic: Using Newlib in a library
- Replies: 18
- Views: 23316
Re: Using Newlib in a library
Ok, I've done it and, surprise, I can use newlib !
just a note about something I noticed in my logs:
- the first time I open a new build of my sample library, libInit() is called, then Obtain() is called twice,
- when I close the library, only one call of Release() is done,
- when I open the ...
just a note about something I noticed in my logs:
- the first time I open a new build of my sample library, libInit() is called, then Obtain() is called twice,
- when I close the library, only one call of Release() is done,
- when I open the ...
- Thu Apr 14, 2016 9:29 pm
- Forum: General Developer Support
- Topic: Using Newlib in a library
- Replies: 18
- Views: 23316
Re: Using Newlib in a library
Thank you for the detailed advices.
I'll keep it simple as you described it and make some tests.
In fact I shoudn't spend so much time about a case which will hardly happen, but I like to do the things right the first time sothat I don't have to come back at it later.
Once again, a big thank you ...
I'll keep it simple as you described it and make some tests.
In fact I shoudn't spend so much time about a case which will hardly happen, but I like to do the things right the first time sothat I don't have to come back at it later.
Once again, a big thank you ...
- Wed Apr 13, 2016 6:21 pm
- Forum: General Developer Support
- Topic: Using Newlib in a library
- Replies: 18
- Views: 23316
Re: Using Newlib in a library
I was thinking about the cleaning instructions generated in libExpunge() by IDLTool:
libBase->IExec->Remove((struct Node *)libBase);
libBase->IExec->DeleteLibrary((struct Library *)libBase);
I thought it was the cleanup of the LibraryBase I get in libInit(), was I wrong ?
And is there ...
libBase->IExec->Remove((struct Node *)libBase);
libBase->IExec->DeleteLibrary((struct Library *)libBase);
I thought it was the cleanup of the LibraryBase I get in libInit(), was I wrong ?
And is there ...
- Wed Apr 13, 2016 1:37 pm
- Forum: General Developer Support
- Topic: Using Newlib in a library
- Replies: 18
- Views: 23316
Re: Using Newlib in a library
Thank you Tonyw
I guessed I have to return NULL, as that's what happens for any library. But my wonder is: should I clean up the LibraryBase or will libExpunge() be called automagically to do it ?
I guessed I have to return NULL, as that's what happens for any library. But my wonder is: should I clean up the LibraryBase or will libExpunge() be called automagically to do it ?
- Tue Apr 12, 2016 9:45 pm
- Forum: General Developer Support
- Topic: Using Newlib in a library
- Replies: 18
- Views: 23316
Re: Using Newlib in a library
Here is a new question:
How should I handle an error during libInit() (example: can't open another library) and abort cleanly my library opening sothat the user application get informed ?
TIA
How should I handle an error during libInit() (example: can't open another library) and abort cleanly my library opening sothat the user application get informed ?
TIA
- Tue Apr 12, 2016 10:01 am
- Forum: General Developer Support
- Topic: Using Newlib in a library
- Replies: 18
- Views: 23316
Re: Using Newlib in a library
Ok, thank you both for the support.
Once my library is validated, I will contribute to the wiki.
Once my library is validated, I will contribute to the wiki.