[#9644] Determinant Problem in Matrix.rb — <noreply@...>
Bugs item #7001, was opened at 2006-12-01 03:50
This is 100% intended. You have to learn integer arithmetics when you
[#9654] Float numbers comparison — "Paulo Soeiro" <pcsoeiro@...>
Hi,
On 12/1/06, Paulo Soeiro <pcsoeiro@gmail.com> wrote:
[#9661] Dir.exist? — Kornelius Kalnbach <murphy@...>
hi!
[#9664] Bigdecimal isn't comparable — <noreply@...>
Bugs item #7045, was opened at 2006-12-04 19:20
On 12/4/06, noreply@rubyforge.org <noreply@rubyforge.org> wrote:
[#9685] Segmentation fault - bignorm() — ico@... (Ico Doornekamp)
[#9713] Sets and String subclasses — <noreply@...>
Bugs item #7253, was opened at 2006-12-13 12:26
> I would expect the second puts to return 5, not nil. In fact, I'd expect s.to_a[0] to return the same object as a.
[#9722] Kernel#system broken inside Dir.chdir(&block) if system command doesn't have shell characters — <noreply@...>
Bugs item #7278, was opened at 2006-12-14 13:59
Hi,
I bet your script /usr/local/bin/p4 is a shell script which doesn't have a
On Dec 14, 2006, at 18:57, Michael Selig wrote:
[#9725] Fixes going into 1.8.5.9 — "Zev Blut" <rubyzbibd@...>
Hello,
[#9749] System V IPC in standard library? — Steven Jenkins <steven.jenkins@...>
Back in August, I needed a semaphore to serialize access to an external
Hi,
Nobuyoshi Nakada wrote:
Hi,
[#9753] CVS freeze — SASADA Koichi <ko1@...>
Hi,
Hi,
Hi,
Hi,
Hi,
* Shugo Maeda (shugo@ruby-lang.org) wrote:
[#9794] Fwd: [Vit-core] Ruby 1.8.5-p2 Stable Version download bug-fix confusion. — James Edward Gray II <james@...>
The following is a complaint we received about the Ruby home page today.
[#9797] Where to start — "Strong Cypher" <cypherstrong@...>
-----BEGIN PGP SIGNED MESSAGE-----
[#9803] RDoc patch that fixes rb_const_define output — <noreply@...>
Patches item #7499, was opened at 2006-12-30 05:23
On 12/30/06, Eric Hodel <drbrain@segment7.net> wrote:
On Dec 30, 2006, at 19:16, Daniel Berger wrote:
On Dec 31, 2006, at 24:31, Eric Hodel wrote:
[#9816] merge YARV — SASADA Koichi <ko1@...>
Hi,
Re: [ ruby-Patches-7499 ] RDoc patch that fixes rb_const_define output
On Dec 30, 2006, at 19:16, Daniel Berger wrote:
> On 12/30/06, Eric Hodel <drbrain@segment7.net> wrote:
>
> <snip>
>
>> Does the input end up being:
>>
>> /* value: 300 The perfect score in bowling */
>> rb_define_const(...);
>>
>> ?
>>
>> Can the value derictive be ":value: 300" to match the rest of the
>> RDoc directives?
>
> No, I didn't mean to imply that I was using "value" as a literal tag.
> The input line would just be:
>
> /* 300: The perfect score in bowling */
>
> Take a look at the file I attached (on RubyForge) - that has a pretty
> good selection of examples I think.
Oh! sorry, I didn't read closely enough.
> It doesn't have to be that exact syntax, obviously, but I thought that
> was pretty straightforward. I'd rather not do literal tags for what
> will likely just be one line comments in the majority of cases.
>
> On a side note, I've noticed that multiline comments for constants
> don't format properly (with or without my patch) - they seem to indent
> on the newline. But, I'll worry about that in another patch. :)
Like this?
It could possibly be made cleaner, I am tired.
Index: lib/rdoc/parsers/parse_c.rb
===================================================================
--- lib/rdoc/parsers/parse_c.rb (revision 11436)
+++ lib/rdoc/parsers/parse_c.rb (working copy)
@@ -444,7 +446,30 @@
comment = find_const_comment(type, const_name)
- con = Constant.new(const_name, definition, mangle_comment
(comment))
+ # In the case of rb_define_const, the definition and comment
are in
+ # "/* definition: comment */" form. The literal ':' and '\'
characters
+ # can be escaped with a backslash.
+ if type.downcase == 'const' then
+ elements = mangle_comment(comment).split(':')
+ if elements.nil? or elements.empty? then
+ con = Constant.new(const_name, definition, mangle_comment
(comment))
+ else
+ new_definition = elements[0..-2].join(':')
+ if new_definition.empty? then # Default to literal C
definition
+ new_definition = definition
+ else
+ new_definition.gsub!("\:", ":")
+ new_definition.gsub!("\\", '\\')
+ end
+ new_definition.sub!(/\A(\s+)/, '')
+ new_comment = $1.nil? ? elements.last : "#{$1}#
{elements.last.lstrip}"
+ con = Constant.new(const_name, new_definition,
+ mangle_comment(new_comment))
+ end
+ else
+ con = Constant.new(const_name, definition, mangle_comment
(comment))
+ end
+
class_obj.add_constant(con)
end
--
Eric Hodel - drbrain@segment7.net - http://blog.segment7.net
I LIT YOUR GEM ON FIRE!