patchFreeciv - Patches: patch #4407, Move requirement range/survives...

Show feedback again

patch #4407: Move requirement range/survives sanity checking from req_from_str() to rssanity.c

Submitted by:  Jacob Nevins <jtn>
Submitted on:  Sat Jan 4 19:24:19 2014  
Category: generalPriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Planned Release: 3.0.0Contains string changes: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Tue May 3 23:32:32 2016, comment #1:

As S2_6 ruledit is not able to handle effects, this can be postponed to 3.0

Marko Lindqvist <cazfi>
Project Administrator
Sat Jan 4 19:24:19 2014, original submission:

Currently, req_from_str() does some sanity checking of requirements when parsing them: it checks validity of ranges for requirements, and (after patch #4396) the 'survives' field.

cazfi notes in bug #21418 comment 1:

> On a general note, we need to be moving all possible sanity
> checks to sanity_check_ruleset_data() which freeciv-ruledit then
> can use to check ruleset being modified.

req_from_str() should be reduced to checking the syntax of individual fields, and semantic checking of ranges vs types etc moved to rssanity.c (probably building on bug #21418).

(I think this will lose us reporting of which filename/section is at fault, but it can't be helped.)

Jacob Nevins <jtn>
Project Administrator


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

Attach File(s):

No files currently attached


   bug dependencies.

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by cazfi (Updated the item)
  • -unavailable- added by jtn (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.


    Error: not logged in



    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue May 3 23:32:32 2016cazfiPlanned Release2.6.0, 3.0.0=>3.0.0
    Thu Jan 21 07:31:01 2016cazfiCategoryNone=>general
      Planned Release2.6.0=>2.6.0, 3.0.0
    Sat Jan 4 19:24:42 2014jtnDependencies-=>Depends on bugs #21418
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup