patchFreeciv - Patches: patch #2225, str_to_int() utility

 
 
Show feedback again

patch #2225: str_to_int() utility

Submitted by:  pepeto <pepeto>
Submitted on:  Sun 21 Nov 2010 07:30:00 PM UTC  
 
Category: generalPriority: 5 - Normal
Status: DonePrivacy: Public
Assigned to: pepeto <pepeto>Open/Closed: Closed
Planned Release: 2.3.0

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 27 Nov 2010 11:58:07 AM UTC, SVN revision 18624:

Low level utility to convert a string to an integer.

See gna patch #2225.

(Browse SVN revision 18624)

pepeto <pepeto>
Project MemberIn charge of this item.
Sat 27 Nov 2010 11:58:07 AM UTC, SVN revision 18623:

Low level utility to convert a string to an integer.

See gna patch #2225.

(Browse SVN revision 18623)

pepeto <pepeto>
Project MemberIn charge of this item.
Mon 22 Nov 2010 11:31:59 PM UTC, comment #2:

Right. New version attached.

(file #11351)

pepeto <pepeto>
Project MemberIn charge of this item.
Mon 22 Nov 2010 11:23:15 PM UTC, comment #1:

Minor comment noticed in passing: in str_to_int(), I think the assert should be fc_assert_ret_val(NULL != str, FALSE) since it's a bool return value?

Jacob Nevins <jtn>
Project Administrator
Sun 21 Nov 2010 07:30:00 PM UTC, original submission:

Low level utility to make safe conversion from a string to an integer, ensuring the string only contain a number.

pepeto <pepeto>
Project MemberIn charge of this item.

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -unavailable- added by jtn (Posted a comment)
  • -unavailable- added by pepeto (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 27 Nov 2010 11:58:18 AM UTCpepetoStatusReady For Test=>Done
      Open/ClosedOpen=>Closed
    Mon 22 Nov 2010 11:31:59 PM UTCpepetoAttached File-=>Added Low-level-utility-to-convert-a-string-to-an-integer2.patch, #11351
    Sun 21 Nov 2010 07:30:00 PM UTCpepetoAttached File-=>Added 0001-Low-level-utility-to-convert-a-string-to-an-integer.patch, #11330
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup