Re: [perl #40059] [CAGE] Fix symbol table namespace pollution
On Sun, 8 Jun 2008, James Keenan via RT wrote: On Thu Aug 03 11:58:02 2006, chip wrote: Extern functions and variables must have names that begin with CParrot. Do we indeed have any extern functions or variables whose names do not begin with CParrot? How would one determine this? Could this be converted into a coding standards test? On a Unix-like system, you can use nm(1) to look at blib/lib/libparrot.a. (The appropriate options are system-dependent, but 'nm -p' is usually a good bet.) -- Andy Dougherty [EMAIL PROTECTED]
[perl #40059] [CAGE] Fix symbol table namespace pollution
On Mon Jun 09 07:13:04 2008, doughera wrote: On a Unix-like system, you can use nm(1) to look at blib/lib/libparrot.a. (The appropriate options are system-dependent, but 'nm -p' is usually a good bet.) Taking Andy D's suggestion, I ran nm -p blib/lib/libparrot.a. It ran to over 31K lines. For reference, I am attaching the first 119 lines, which report on one object code file. kid51 string.o: d parrot_cstrings 2190 t make_writable 3420 t .L607 3438 t .L608 3477 t .L609 344d t .L610 34c9 t .L606 348c t .L611 3462 t .L612 34b6 t .L613 34a1 t .L614 340f t .L615 T Parrot_unmake_COW T __i686.get_pc_thunk.bx U _GLOBAL_OFFSET_TABLE_ U Parrot_confess U Parrot_allocate_string 00f0 T Parrot_make_COW_reference U new_string_header 02b0 T Parrot_reuse_COW_reference 0440 T string_set 04b0 T string_init U Parrot_charsets_encodings_init U mem_sys_allocate_zeroed U Parrot_ascii_charset_ptr U Parrot_fixed_8_encoding_ptr 0ff0 T string_make_direct 05d0 T string_deinit U mem_sys_free U Parrot_charsets_encodings_deinit 0620 T string_capacity 0680 T string_make_empty U real_exception 15b0 T string_max_bytes 0730 T string_rep_compatible T __i686.get_pc_thunk.cx U Parrot_utf8_encoding_ptr U Parrot_binary_charset_ptr 0930 T string_concat 0aa0 T string_append 1510 T string_copy 0f50 T string_make 11a0 T string_length U Parrot_utf16_encoding_ptr U Parrot_reallocate_string 0dc0 T string_from_cstring 0e60 T string_primary_encoding_for_representation 0ec0 T const_string U Parrot_find_charset 1540 T string_compute_strlen 1130 T string_grow 11f0 T string_index 12b0 T string_str_index 1380 T string_ord 1480 T string_chr U Parrot_unicode_charset_ptr U Parrot_iso_8859_1_charset_ptr 1610 T string_repeat 16f0 T string_substr 1930 T string_replace U memmove 1d30 T string_chopn 1d80 T string_chopn_inplace U Parrot_ucs2_encoding_ptr 1ee0 T string_compare 2080 T string_equal 2230 T string_bitwise_and U Parrot_do_dod_run 24c0 T string_bitwise_or 27a0 T string_bitwise_xor 2a80 T string_bitwise_not 2c60 T string_bool 2cf0 T string_printf U Parrot_vsprintf_c 2d30 T string_to_int U __ctype_b_loc 2e50 T string_to_num 2fb0 T string_to_cstring U atof 3030 T string_cstring_free 2f20 T string_from_int 4440 T int_to_str 2f70 T string_from_num U Parrot_sprintf_c U mem_sys_allocate 3060 T string_pin 30e0 T string_unpin 31b0 T string_hash 3290 T string_escape_string 32d0 T string_escape_string_delimited 3610 T string_unescape_cstring U strchr U Parrot_find_encoding U string_unescape_one 3920 T string_upcase 3970 T string_upcase_inplace 39c0 T string_downcase 3a10 T string_downcase_inplace 3a60 T string_titlecase 3ab0 T string_titlecase_inplace 3b00 T string_increment 3c00 T Parrot_string_cstring 3c10 T Parrot_string_is_cclass 3c80 T Parrot_string_find_cclass 3cd0 T Parrot_string_find_not_cclass 3d20 T Parrot_string_trans_charset U Parrot_get_charset 3e30 T Parrot_string_trans_encoding U Parrot_get_encoding 3f30 T string_compose 3fa0 T string_join 40d0 T string_split U pmc_new U __umoddi3 U __udivdi3 4310 T uint_to_str
[perl #40059] [CAGE] Fix symbol table namespace pollution
On Thu Aug 03 11:58:02 2006, chip wrote: Extern functions and variables must have names that begin with CParrot. Do we indeed have any extern functions or variables whose names do not begin with CParrot? How would one determine this? Could this be converted into a coding standards test? kid51
Re: [perl #40059] [CAGE] Fix symbol table namespace pollution
On Sun, Jun 8, 2008 at 9:47 PM, James Keenan via RT [EMAIL PROTECTED] wrote: On Thu Aug 03 11:58:02 2006, chip wrote: Extern functions and variables must have names that begin with CParrot. Do we indeed have any extern functions or variables whose names do not begin with CParrot? How would one determine this? IANACP, but I think that anything tagged with PARROT_API is part of the external API. Could this be converted into a coding standards test? Yes, but I think headerizer.pl already does a lot of the heavy lifting in terms of the parsing of the function declarations. kid51 -- Will Coke Coleda
[CAGE] Fix symbol table namespace pollution
Extern functions and variables must have names that begin with CParrot. -- Chip Salzenberg [EMAIL PROTECTED]
Re: [CAGE] Fix symbol table namespace pollution
On Aug 3, 2006, at 1:24 PM, Chip Salzenberg wrote: Extern functions and variables must have names that begin with CParrot. I am way out of tuits lately. Can you please add this to cage/ todo.pod for me? Or someone? -- Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
Re: Fix symbol table namespace pollution
On Thu, Aug 03, 2006 at 01:29:20PM -0500, Andy Lester wrote: I am way out of tuits lately. Can you please add this to cage/ todo.pod for me? Or someone? Already done. -- Chip Salzenberg [EMAIL PROTECTED]
Re: [CAGE] Fix symbol table namespace pollution
On 8/3/06, Andy Lester [EMAIL PROTECTED] wrote: On Aug 3, 2006, at 1:24 PM, Chip Salzenberg wrote: Extern functions and variables must have names that begin with CParrot. I am way out of tuits lately. Can you please add this to cage/ todo.pod for me? Or someone? i'm sorry, andy. can not the rt repository be canon for cage cleaners tasks? it is already for bugs, todo items, and patches. there is a link to rt already in the See Also section of cage/todo.pod. if you prefer, i can add this task to cage/todo.pod. let me know. ~jerry
Re: [CAGE] Fix symbol table namespace pollution
On Aug 3, 2006, at 1:51 PM, jerry gay wrote: i'm sorry, andy. can not the rt repository be canon for cage cleaners tasks? it is already for bugs, todo items, and patches. there is a link to rt already in the See Also section of cage/ todo.pod. if you prefer, i can add this task to cage/todo.pod. let me know. I'd rather use the TODO.pod at this point. When there are so many high-level tasks, and not very well documented, I think RT isn't a good tool. I want people to be able to very easily look at the doc, and add code where possible. RT doesn't excel at that. Andy -- Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
[perl #40059] [CAGE] Fix symbol table namespace pollution
# New Ticket Created by Chip Salzenberg # Please include the string: [perl #40059] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40059 Extern functions and variables must have names that begin with CParrot. -- Chip Salzenberg [EMAIL PROTECTED]
Re: Fix symbol table namespace pollution
Chip: http://www.parrotcode.org/cage-cleaners/todo.html already has a link to: http://xrl.us/owsd (Link to rt.perl.org) Enjoy. On Aug 3, 2006, at 2:55 PM, Chip Salzenberg wrote: On Thu, Aug 03, 2006 at 11:51:40AM -0700, jerry gay wrote: can not the rt repository be canon for cage cleaners tasks? it is already for bugs, todo items, and patches. there is a link to rt already in the See Also section of cage/ todo.pod. if you prefer, i can add this task to cage/todo.pod. That would be fairly neat, actually. Searches should be easy since cage isn't a term of art in the Parrot source. A link on parrotcode.org to an appropriately pre-formatted search would improve the ease of use. -- Chip Salzenberg [EMAIL PROTECTED] -- Will Coke Coleda [EMAIL PROTECTED]
Re: Fix symbol table namespace pollution
On Thu, Aug 03, 2006 at 11:51:40AM -0700, jerry gay wrote: can not the rt repository be canon for cage cleaners tasks? it is already for bugs, todo items, and patches. there is a link to rt already in the See Also section of cage/todo.pod. if you prefer, i can add this task to cage/todo.pod. That would be fairly neat, actually. Searches should be easy since cage isn't a term of art in the Parrot source. A link on parrotcode.org to an appropriately pre-formatted search would improve the ease of use. -- Chip Salzenberg [EMAIL PROTECTED]
Re: Fix symbol table namespace pollution
On Thu, Aug 03, 2006 at 03:03:08PM -0400, Will Coleda wrote: http://www.parrotcode.org/cage-cleaners/todo.html Hey, that's neat. http://xrl.us/owsd (Link to rt.perl.org) Hey, that's neater! Enjoy. Done, thanks. :-) -- Chip Salzenberg [EMAIL PROTECTED]