realbasic-plugins
[Top] [All Lists]

Plugin SDK could use some improvement

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Plugin SDK could use some improvement
From: "Theodore H.Smith" <delete at elfdata dot com>
Date: Sun, 19 Dec 2004 20:59:55 +0000
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
The plugin SDK could use some improvements:

1) It is a very bad style to use function pointers without first typedeffing them. Otherwise your C looks like garbage. But after typedeffing your function pointer, it looks nice and typed.

EG this: void main(void *(*resolver)(const char *entryName))

just looks mangled. Why not "void main(fResolver resolver)" ?

2) There is still 68k code around! ExitCodeResource for example. Despite that RB does no longer compile 68k code. And all that USECALLSHELL stuff

3) Why use gResolver AND gResolverPPC? Only one is needed.

4) Externing C some of your functions, but not all of them? It's best to extern C *all* of your functions when making a library. So instead of having extern C so many times, just put it once, at the top of your file.

5) This is just a question. what does "__procinfo" do? It is not explicitly referred to by anything, but perhaps a macro or something else is referring to it, without me being able to see it.

--
   Theodore H. Smith - Software Developer - www.elfdata.com/plugin/
   Industrial strength string processing code, made easy.
   (If you believe that's an oxymoron, see for yourself.)

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>