Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:The comment is correct, adjusted the code to do what it say.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | schema
Files: files | file ages | folders
SHA3-256:4d478f979b1f5e126a58a9b4981a3c48a6a60eea09c25e2194a8eec88b683070
User & Date: rolf 2019-08-02 23:52:38
Context
2019-08-06
23:11
Fixed bug introduced with prefixns: the shortcuts from prefixns are only used for schema definiton; they mean nothing for prefix/namespace in the xml input. check-in: 40671ee8c3 user: rolf tags: schema
2019-08-02
23:52
The comment is correct, adjusted the code to do what it say. check-in: 4d478f979b user: rolf tags: schema
2019-07-31
22:17
Hardened isodate. check-in: 4fed50bd75 user: rolf tags: schema
Changes

Changes to generic/schema.c.

4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
        if (*text != '0') seenNonzero = 1;
        text++;
    }
    while (*text >= '0' && *text <= '9') text++;
    if (*text != '-') return 0;
    /* We only need to know the modulo of the year for 4, 100 and 400,
     * for this the 4 last letters are enough */
    y = atoi(text-3);
    /* There isn't a year 0. it's either 0001 or -0001 */
    if (!seenNonzero) return 0;
    text++;
    for (i = 0; i < 2; i++) {
        if (*text < '0' || *text > '9') return 0;
        text++;
    }







|







4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
        if (*text != '0') seenNonzero = 1;
        text++;
    }
    while (*text >= '0' && *text <= '9') text++;
    if (*text != '-') return 0;
    /* We only need to know the modulo of the year for 4, 100 and 400,
     * for this the 4 last letters are enough */
    y = atoi(text-4);
    /* There isn't a year 0. it's either 0001 or -0001 */
    if (!seenNonzero) return 0;
    text++;
    for (i = 0; i < 2; i++) {
        if (*text < '0' || *text > '9') return 0;
        text++;
    }