Ignore:
Timestamp:
04/30/23 02:11:46 (20 months ago)
Author:
Maciej Komosinski
Message:
  • More strict parsing (reporting errors instead of implicit fixes)
  • Simplified and optimized parsing of neuron class names
  • Added a number of comments on parsing peculiarities
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/f4/f4_general.h

    r1228 r1229  
    4242
    4343/**
     44 * TODO MacKo 2023-04: not sure if this function is needed and if f4_processRecur() would not suffice
     45 * if it advanced the string pointer (in/out parameter) while processing. Its returned value is always used after
     46 * f4_processRecur() anyway, and in two cases likely incorrectly (for [...] to detect closing ']'
     47 * and for :...: to detect closing ':') - we don't need recursion in these cases, a simple linear
     48 * scan would suffice, but even this would not be needed - since we are parsing the actual characters in these cases,
     49 * we do scanning anyway. So looks like this function doubles the work already done more thoroughly by f4_processRecur().
     50 *
    4451 * Scans f4 genotype string for a stopping character and returns the position of
    4552 * this stopping character or 1 if the end of string was reached. This method is used
     
    494501 * @return 0 if processing was successful, otherwise returns the position of an error in the genotype
    495502 */
    496 int f4_processRecur(const char *genot, unsigned pos0, f4_Node *parent);
     503int f4_processRecur(const char *genot, unsigned int pos0, f4_Node *parent);
    497504
    498505/**
Note: See TracChangeset for help on using the changeset viewer.