Activity for Edward Hart

  • Edward Hart Edward Hart modified ticket #156

    MF LINE and COL screen clauses

  • Edward Hart Edward Hart modified ticket #764

    INPUT not reserved word in DEBUGGING MODE

  • Edward Hart Edward Hart posted a comment on ticket #764

    Fixed in [r4355]. The issue is due to DEBUG-NAME and INPUT having the same hash. DEBUG-NAME is saved first into the reserved word table (with key 38). INPUT is saved after (with key 39, since 38 is taken by DEBUG-NAME). When DEBUG-NAME was removed after parsing DEBUGGING MODE, 38 is now a valid key for INPUT. However, the reserved word info for INPUT was still at 39 and had not been adjusted. The fix was to check all entries (up to the next NULL) following a deleted entry and move them, if needed,...

  • Edward Hart Edward Hart committed [r4355]

    Fixed bug #764 "INPUT not reserved word in DEBUGGING MODE".

  • Edward Hart Edward Hart created ticket #764

    INPUT not reserved word in DEBUGGING MODE

  • Edward Hart Edward Hart created ticket #721

    #include <parser.h> broken in Windows 10

  • Edward Hart Edward Hart created ticket #720

    ftruncate undefined in Visual C++

  • Edward Hart Edward Hart created ticket #719

    ssize_t undefined in Visual C++

  • Edward Hart Edward Hart committed [r4180]

    Fixed failing tests in manual screen test.

  • Edward Hart Edward Hart posted a comment on ticket #35

    Exciting. The patch should be based on trunk. Could you share the patch you already have? I'd be interested to look through it, even if it can't yet be applied to trunk.

  • Edward Hart Edward Hart posted a comment on ticket #338

    No, feel free to unassign me.

  • Edward Hart Edward Hart posted a comment on discussion GnuCOBOL

    I've included the version because it indicates what branch I'm basing the manual on, which is trunk, i.e. 4.0-early-dev. Admittedly, the grammar does also include 3.1.1-dev only changes, but this is a hopefully a temporary situation because most of those changes should eventually get merged up to 4.0.

  • Edward Hart Edward Hart posted a comment on discussion GnuCOBOL

    Attached is the Grammar updated to [r3967] and with the error in ADD (and also in DIVIDE) fixed.

  • Edward Hart Edward Hart modified ticket #682

    "rounded-phrase" in Format 1 od ADD statement

  • Edward Hart Edward Hart posted a comment on ticket #682

    Fixed in [r3968], along with other issues with ADD and DIVIDE.

  • Edward Hart Edward Hart committed [r3968]

    Grammar: updated to [r3967].

  • Edward Hart Edward Hart modified a comment on discussion Help getting started

    I tried compiling an application that I have running using Microfocus Object Cobol on SCO using GNUcobol on Linux, using the -std=mf option. The program compiled cleanly, but when executing it, the values returned by function keys are different. In MF,. Function keys 1 thru 10 return 02 thru 11. In Gnucobol, Function keys 1 thru 10 return 01 thru 10. IDENTIFICATION DIVISION. PROGRAM-ID. FKEY. ENVIRONMENT DIVISION. INPUT-OUTPUT SECTION. DATA DIVISION. WORKING-STORAGE SECTION. 01 CBL-LENGTH PIC X(4)...

  • Edward Hart Edward Hart modified a comment on discussion GnuCOBOL

    Thanks for the report, Mauirizio. I've reproduced the behaviour and found the bug in: GnuCOBOL replaces every space with an underscore because it sees that every field in S-RESET can be used for input. However, it doesn't see that that shouldn't be done in a DISPLAY. I'll commit the fix shortly. (If you need a temporary workaround, replacing USING with FROM makes the DISPLAY appear correctly.) EDIT: I've created a bug ticket [bugs:#665].

  • Edward Hart Edward Hart modified ticket #665

    Space replaced with underscore in DISPLAY of USING screen field

  • Edward Hart Edward Hart posted a comment on ticket #665

    Fixed in branches/gnucobol-3.x in [r3737]. Marked as pending, to be closed when a manual screen section testsuite entry is added.

  • Edward Hart Edward Hart committed [r3737]

    Fixed bug #665 "Space replaced with underscore in DISPLAY of USING screen field".

  • Edward Hart Edward Hart created ticket #665

    Space replaced with underscore in DISPLAY of USING screen field

  • Edward Hart Edward Hart posted a comment on discussion GnuCOBOL

    Thanks for the report, Mauirizio. I've reproduced the behaviour and found the bug in: GnuCOBOL replaces every space with an underscore because it sees that every field in S-RESET can be used for input. However, it doesn't see that that shouldn't be done in a DISPLAY. I'll commit the fix shortly. (If you need a temporary workaround, replacing USING with FROM makes the DISPLAY appear correctly.)

  • Edward Hart Edward Hart modified a comment on discussion GnuCOBOL

    I presume "dynamic" implies both forms from above ? fassign-clause=mf,dynamic Correc t ? -fassign-clause=mf and -fassign-clause=dynamic are synonyms. An assign clause like ASSIGN sysut1 is interpreted as ASSIGN DYNAMIC sysut1. This means sysut1 is taken to be the name of a variable and you can do MOVE "/my/file/path" TO sysut1. Similarly, -fassign-clause=external is a syonym for -fassign-clause=ibm and ASSIGN sysut1 is interpreted as ASSIGN EXTERNAL sysut1. The new synonyms provide Micro Focus nomenclature....

  • Edward Hart Edward Hart posted a comment on discussion GnuCOBOL

    I presume "dynamic" implies both forms from above ? fassign-clause=mf,dynamic Correc t ? -fassign-clause=mf and -fassign-clause=dynamic are synonyms. An assign clause like ASSIGN sysut1 is interpreted as ASSIGN DYNAMIC sysut1. This means sysut1 is taken to be the name of a variable and you can do MOVE "/my/file/path" TO sysut1. Similarly, -fassign-clause=external is a syonym for -fassign-clause=ibm and ASSIGN sysut1 is interpreted as ASSIGN EXTERNAL sysut1. The synonym synonyms provide Micro Focus...

  • Edward Hart Edward Hart committed [r3736]

    Merged [r3735] from trunk.

  • Edward Hart Edward Hart posted a comment on discussion GnuCOBOL

    As part of improving the ASSIGN clause syntax checks, new configuration options were added to control what extensions are allowed. The new config options all begin with assign-, which is why the abbreviated compiler flag -fassign is now ambiguous. IBM/EXTERNAL format is still suppoted - -fassign-clause=ibm will work as expected. I have clarified the help text in [r3735].

  • Edward Hart Edward Hart committed [r3735]

    Added possible values for assign-clause and screen-section-rules help text.

  • Edward Hart Edward Hart committed [r3734]

    Improved numeric screen ACCEPT: initial cursor position and beep on end of field

  • Edward Hart Edward Hart committed [r3731]

    Removed obsolete comment.

  • Edward Hart Edward Hart modified ticket #664

    r3715 broke build

  • Edward Hart Edward Hart posted a comment on ticket #664

    Thanks for this! Fix committed in [r3730].

  • Edward Hart Edward Hart committed [r3730]

    Corrected [r3721] ([bugs:#664]).

  • Edward Hart Edward Hart modified ticket #518

    Incorrect "Value size exceeds data size" warning with floating-insertion

  • Edward Hart Edward Hart posted a comment on ticket #518

    Reproduced in [r3729] of trunk.

  • Edward Hart Edward Hart modified a comment on ticket #197

    Partially done in [r3729]. Remains to add tests, maybe runtime configuration options and code to make cursor jump to appropriate digit on entering a numeric field.

  • Edward Hart Edward Hart posted a comment on ticket #197

    Partially done in [r3279]. Remains to add tests, maybe runtime configuration options and code to make cursor jump to appropriate digit on entering a numeric field.

  • Edward Hart Edward Hart modified ticket #350

    Add ACCEPT of decimal fields to screen section testsuite

  • Edward Hart Edward Hart committed [r3729]

    Improved numeric screen ACCEPT behaviour.

  • Edward Hart Edward Hart committed [r3724]

    Added expected-failing test with >>TURN and GO TO.

  • Edward Hart Edward Hart committed [r3723]

    Added tests and fixed issue with >>TURN and recursion.

  • Edward Hart Edward Hart committed [r3722]

    Fixed dpc-in-data tests failing when no JSON handler is present.

  • Edward Hart Edward Hart posted a comment on ticket #45

    JSON-C support added to trunk in [r3721]. I've not included the changes to configure: I followed the example of the INDEXED libraries in having --with-json=<library> and --with-<json-library>. I think for consistency the JSON and INDEXED libraries should have the same kinds of configure flags. I copied cJSON in having a json-c-local option. I didn't look into whether it made sense, so feel free to delete it.

  • Edward Hart Edward Hart committed [r3721]

    Added JSON-C as a JSON handler (see [patches:#45]).

  • Edward Hart Edward Hart posted a comment on discussion GnuCOBOL

    Attached is an update to [r3716]. It covers all changes to be found in 3.1-RC, as well a few that aren't: these extra changes will either be in the final release of 3.1 or in 4.0. Complete details are found in the Changelog.

  • Edward Hart Edward Hart committed [r3720]

    Grammar: improved MF directives syntax.

  • Edward Hart Edward Hart committed [r3719]

    Grammar: again correct DELETE FILE syntax.

  • Edward Hart Edward Hart committed [r3718]

    Grammar: correct DELETE FILE syntax.

  • Edward Hart Edward Hart committed [r3717]

    Grammar: updated to [r3716].

  • Edward Hart Edward Hart posted a comment on ticket #45

    I've re-checked the JSON-C API and found a workaround. The function json_object_new_double_s allows a double to be serialized as a user-specified string. So, we can tell JSON-C every number is 0.0 and give a string with the actual value. Attached is the updated patch.

  • Edward Hart Edward Hart posted a comment on ticket #50

    Sorry about the word list and conf file; they're in this updated patch.

  • Edward Hart Edward Hart created ticket #50

    COBOL 202X support

  • Edward Hart Edward Hart posted a comment on discussion GnuCOBOL

    The error suggests you have out-of-control recursive PERFORM statements. If you're sure you're program is working correctly, you can work around the error by: Increasing the stack size: add the cobc option -fstack-size=<large-number-here>. Disabling stack overflow checks: add the cobc option -fno-stack-check. (Stack overflow checks are disabled by default, but are enabled if you're compiling with the parameters -debug or -g.)

  • Edward Hart Edward Hart modified a comment on ticket #357

    Patch version 4: cobcrun support added, with a new parameter --param. This is some ugliness: The options for PARM-style linkage depends on the endianness of COMP, which must be indicated by --param=parm-big-endian or --param=parm-native. I chose a random number of 1024 for the maximum size of the parameter. This could be too small or could lead to spurious "OCCURS DEPENDING ON out of bounds" errors. (I'm open to ideas for a better constant.) Maybe add a compiler warning if a program has a PARM-like...

  • Edward Hart Edward Hart posted a comment on ticket #357

    Patch version 4: cobcrun support added, with a new parameter --param. This is some ugliness: The options for PARM-style linkage depends on the endianness of COMP, which must be indicated by --param=parm-big-endian or --param=parm-native. I chose a random number of 1024 for the maximum size of the parameter. This could be too small or could lead to spurious "OCCURS DEPENDING ON out of bounds" errors. (I'm open to ideas for a better constant.) Maybe add a compiler warning if a program has a PARM-like...

  • Edward Hart Edward Hart posted a comment on ticket #661

    Thank you for the report. Some of the inconsistencies are problems with the compiler and some are just idiosyncracies of COBOL. QUOTE and '""'. This is a bug, using QUOTE should give a warning. ZERO and 0. This is a bug; since 0 is accepted with a warning, so should ZERO. Inconsistent display with invalid numeric data. This is a valid instance of undefined behaviour. By default, the option pretty-display is enabled and this clearly leads to odd results with invalid data. Compiling with -fno-pretty-display...

  • Edward Hart Edward Hart modified ticket #661

    Compiler error messages inconsistencies

  • Edward Hart Edward Hart modified ticket #663

    IF conditions weird behaviour

  • Edward Hart Edward Hart posted a comment on ticket #663

    Fixed in [r3713] and merged to gnucobol-3.x in [r3714].

  • Edward Hart Edward Hart committed [r3714]

    Merged [r3713] from trunk.

  • Edward Hart Edward Hart committed [r3713]

    Fixed bug #663 "IF conditions weird behaviour".

  • Edward Hart Edward Hart modified ticket #663

    IF conditions weird behaviour

  • Edward Hart Edward Hart posted a comment on ticket #663

    Thank for the report, Nikos! I can reproduce both issues.

  • Edward Hart Edward Hart committed [r3712]

    Added dpc-in-data config option and directive.

  • Edward Hart Edward Hart modified ticket #388

    Harden compilation by default

  • Edward Hart Edward Hart modified ticket #388

    Harden compilation by default

  • Edward Hart Edward Hart modified ticket #388

    Harden compilation by default

  • Edward Hart Edward Hart created ticket #388

    Harden compilation by default

  • Edward Hart Edward Hart posted a comment on ticket #45

    I don't think JSON-C will work. It is mostly fine, but there are issues with decimal number output, which break the "JSON GENERATE trimming" test. This is due to having to cast decimal numbers to double, which I feel is not acceptable and risks incompatibility with MF's and IBM's JSON handlers. This problem does not occur with cJSON, since we can format numbers as we want by inserting raw strings into the JSON. A quick patch for JSON-C support is attached.

  • Edward Hart Edward Hart posted a comment on ticket #45

    I'll have a look into this now.

  • Edward Hart Edward Hart committed [r3710]

    Fixed clang warnings.

  • Edward Hart Edward Hart posted a comment on ticket #371

    I've looked into this and can't see much to move. I've attached a patch which removes 400 lines (out of 18000) from parser.y. There are two main problems: While it is possible to move all the static functions, they use a lot of global variables. Moving these functions will be error-prone (and make the remaining code uglier). Most code in yyparse is quite minimal - around 3-5 lines per block. It's possible to remove this - we could have a strict "all validating/emitting in typeck.c/field.c" policy...

  • Edward Hart Edward Hart committed [r3709]

    Generate initial exception tables for files and reviewed use of cob_set_exception.

  • Edward Hart Edward Hart modified a comment on ticket #357

    I think I've basically done [feature-requests:#358] now, so I would like to commit the patch as-is. As for what to do next: posix should be very quick to do unix should also be relatively easy chaining syntax checks will also be easy chaining implementation might take a while and would probably be best done with the (MF/AcuCOBOL) CHAIN or (RM/COBOL) CALL PROGRAM statements mapping might be quite hard - I think it will have to be implemented in cobc/codegen.c, instead of a wrapper in libcob/call....

  • Edward Hart Edward Hart posted a comment on ticket #357

    I think I've basically done [feature-requests:#358] now, so I would like to commit the patch as-is. As for what to do next: posix should be very quick to do unix should also be relatively easy chaining syntax checks will also be easy chaining implementation might take a while and would probably be best done with the CHAIN or CALL PROGRAM statements mapping might be quite hard - I think it will have to be implemented in cobc/codegen.c, instead of a wrapper in libcob/call.c

  • Edward Hart Edward Hart posted a comment on ticket #357

    Patch version 3: parm shim moved to call.c, -fmain-linkage=mapping added as pending (along with testsuite entry above). The actual handling of the parm value and the CMDLINELINKAGE directive is noted in [feature-requests:#358] - mapping is very different from this as this maps possibly multiple entries directly Thanks for this! I hadn't seen the difference between #357 and #358 before you mentioned this. Well, I'll keep posting patches here for consistency's sake. ... acu.conf it seems it should...

  • Edward Hart Edward Hart modified ticket #619

    Segfault with reserved word in SELECT

  • Edward Hart Edward Hart posted a comment on ticket #619

    Merged in [r3707].

  • Edward Hart Edward Hart modified ticket #653

    No checks on UNSTRING COUNT items

  • Edward Hart Edward Hart posted a comment on ticket #653

    Merged in [r3707].

  • Edward Hart Edward Hart committed [r3707]

    Merged revisions 3677, 3684 and 3700 from trunk.

  • Edward Hart Edward Hart modified ticket #659

    compiler divide-by-zero crasher

  • Edward Hart Edward Hart modified ticket #659

    compiler divide-by-zero crasher

  • Edward Hart Edward Hart posted a comment on ticket #659

    Fixed in branches/gnucobol-3.x in [r3706].

  • Edward Hart Edward Hart committed [r3706]

    Fixed bug #659 "compiler divide-by-zero crasher".

  • Edward Hart Edward Hart modified ticket #659

    compiler divide-by-zero crasher

  • Edward Hart Edward Hart posted a comment on ticket #659

    What an interesting bug! Thank you for investigating and solving this. I can confirm the patch works. I'll commit it shortly, along with a testsuite entry.

  • Edward Hart Edward Hart posted a comment on ticket #357

    Attached is a quick update. Added main-linkage option as above, but with "mapping" renamed to "parm" - I think the IBM terminology will be more familiar to users. Added the COMMANDLINELINKAGE directive. It remains to extract all the new codegen code to a new function in libcob/call.c.

  • Edward Hart Edward Hart committed [r3705]

    Return I-O exceptions to exception.def.

  • Edward Hart Edward Hart committed [r3704]

    Added support for runtime exception checking setting.

  • Edward Hart Edward Hart committed [r3702]

    Added CHECKREFMOD directive.

  • Edward Hart Edward Hart committed [r3701]

    Merged all eligible revisions from /branches/gnucobol-3.x between r3664 and r3695.

  • Edward Hart Edward Hart committed [r3700]

    Fixed minor memory leaks.

  • Edward Hart Edward Hart modified a wiki page

    Hacking GnuCOBOL

  • Edward Hart Edward Hart modified a wiki page

    Hacking GnuCOBOL

  • Edward Hart Edward Hart modified a wiki page

    Hacking GnuCOBOL

  • Edward Hart Edward Hart committed [r3692]

    Added vsam-status config option.

  • Edward Hart Edward Hart modified ticket #590

    Incorrect test of array index with -x

  • Edward Hart Edward Hart modified ticket #590

    Incorrect test of array index with -x

1 >