Closed Bug 1062089 Opened 10 years ago Closed 10 years ago

[jsdbg2] js/public/DebugAPI.h should be Debug.h

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla35

People

(Reporter: jimb, Assigned: jimb)

Details

Attachments

(1 file)

It's redundant to have header files in js/public named FooAPI.h.
Attachment #8483258 - Flags: review?(jorendorff)
We have:

> js/public/DebugAPI.h
> js/public/HeapAPI.h
> js/public/RootingAPI.h
> js/public/GCAPI.h
> js/public/OldDebugAPI.h
> js/public/TracingAPI.h

I'd suggest renaming all of them or none of them.
(In reply to Nicholas Nethercote [:njn] from comment #2)
> We have:
> 
> > js/public/DebugAPI.h
> > js/public/HeapAPI.h
> > js/public/RootingAPI.h
> > js/public/GCAPI.h
> > js/public/OldDebugAPI.h
> > js/public/TracingAPI.h
> 
> I'd suggest renaming all of them or none of them.

I looked into that. Terrence pointed out that we also have js/src/gc/Heap.h and js/src/gc/Rooting.h, and asked that we keep the "API" suffixes on those headers.
Comment on attachment 8483258 [details] [diff] [review]
Rename js/public/DebugAPI.h to js/public/Debug.h. It's a public header file; *obviously* it's an API.

Review of attachment 8483258 [details] [diff] [review]:
-----------------------------------------------------------------

Would greatly appreciate a patch for everything.

In cases where we have both internal and public files that want the same name, the public one should get the nice name and we should ugly up the internal one (with something stupid like an Impl).
Attachment #8483258 - Flags: review?(jorendorff) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/ff5de7f70414
Assignee: nobody → jimb
Flags: in-testsuite-
Target Milestone: --- → mozilla35
https://hg.mozilla.org/mozilla-central/rev/ff5de7f70414
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: