Bug 6196 - Would like to be able to define prototypes in headers
Summary: Would like to be able to define prototypes in headers
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Anders Carlsson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-22 06:42 PST by Anders Carlsson
Modified: 2005-12-22 13:09 PST (History)
0 users

See Also:


Attachments
Make it possible to use DEFINE_PROTOTYPE in headers (23.17 KB, patch)
2005-12-22 06:47 PST, Anders Carlsson
eric: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Carlsson 2005-12-22 06:42:59 PST
Sometimes, a JS object needs access to a prototype in a different file. An example of this is 
HTMLDocumentProto in kjs_html.cpp, whose prototype is currently in kjs_dom.cpp. It would be nice if we 
could put the prototype declaration in kjs_dom.h instead.
Comment 1 Anders Carlsson 2005-12-22 06:47:42 PST
Created attachment 5221 [details]
Make it possible to use DEFINE_PROTOTYPE in headers
Comment 2 Eric Seidel (no email) 2005-12-22 07:03:01 PST
Comment on attachment 5221 [details]
Make it possible to use DEFINE_PROTOTYPE in headers

Looks fine to me.  r=me.
Comment 3 Darin Adler 2005-12-22 08:41:49 PST
These macros really need some kind of namespace prefix.