Evolve CodeWriter Function output seems wrong

Home Forums Multi-Edit Support Evolve CodeWriter Function output seems wrong

Tagged: , ,

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #25974
    PlyExplorer
    Participant

    How can I attach an image of the Codewriter window?

    In the generated test function (below), there’s a weird þ character at the beginning of the Date Updated and Time Updated.

    Also, this area of the generated comment:

    **********
    *– FUNCTION —————————————————————–
    * Name: Docs:
    * Description:
    **********

    , contain the function name (Test_Function), and the Description (Demonstrate potential problem with CodeWriter)? Do I need to edit the Evolve macro, or is is there a configuration box that can fix this?

    Below is the CodeWriter dialog box (in text form), followed by the generate code.

    Routine Name: Test_Function
    Comment: Demonstrate potential problem with CodeWriter
    Argument List: Par_01, Par_02

    Create Function, Proper Case, Include Comment Header, Return “”

    Location: End of File
    Destination File: TEST.PRG

    Output:

    Function Test_Function(Par_01, Par_02)
    *– FUNCTION —————————————————————–
    * Name: Docs:
    * Description:
    * Author:
    * Date created: 3/9/2021 Date updated: þ3/9/2021
    * Time created: 3:41:50PM Time updated: þ3:41:50PM
    * Copyright:
    *—————————————————————————–
    * Arguments: None
    * Return Value: (“”)
    * See Also:
    *—————————————————————————–

    Return (“”)

    #25975
    CharlesG
    Participant

    Seems to be something having to do with the following #defines in AddOns\Evolve\Evolve.sh:

    #define EVc_DATEUPDATED ‘þ{?/?/??}||{?@-?@-??}||{?.?.??}||{?/??/??}||{?@-??@-??}||{?.??.??}||{??/?/??}||{??@-?@-??}||{??.?.??}||{??/??/??}||{??@-??@-??}||{??.??.??}’
    #define EVc_TIMEUPDATED ‘þ{??:??:??}||{?:??:??}||{??:?:??}||{?:?:??}’ /* search pattern for date update */

    Just remove the first char in the ‘string’ in both defines then you need to compile the Evolve package again.

    #25976
    PlyExplorer
    Participant

    Thanks, Charles. I made the changes.

    Sorry, but I don’t remember how to re-compile the entire package. I think I remember how to compile individual macro files.

    Can you just point to the menus or the docs? I don’t mind a little trial & error, just need the right direction.

    Thanks for the information so far.

    #25977
    CharlesG
    Participant

    There is no simple way to compile the Evolve source. What I did was copy the “Recompile Macro Source” in the start menu and call it “Recompile Evolve Macro Source” then modify the new shortcut and just change the “Target” to be:

    “C:\My Programs\Multi-Edit 2008\CmacWin.exe” -L AddOns\Evolve\Evolve.lst -PMac -SAddOns\Evolve

    but all on one line…..

    I have not tested this so you might want to make backups of the following files in the Mac folder:

    Evolve.mac
    EV_.mac
    Ev_Arago.mac
    Ev_Brwse.mac
    Ev_Cafst.mac
    Ev_Clipr.mac
    Ev_Comnt.mac
    Ev_Confg.mac
    Ev_Cwrit.mac
    Ev_DBase.mac
    Ev_DBFiv.mac
    Ev_DBWin.mac
    Ev_Expnd.mac
    Ev_FiveW.mac
    Ev_Fmtng.mac
    Ev_FxPro.mac
    Ev_FxWin.mac
    Ev_Indnt.mac
    Ev_Keybd.mac
    Ev_MPInt.mac
    Ev_Prepr.mac
    Ev_Scanr.mac
    Ev_Struc.mac
    Ev_VisOb.mac

    #25980
    PlyExplorer
    Participant

    I don’t have that in the Start menu, but you provided enough of an example for me to duplicate, thanks.

    Unfortunately, it keeps complaining that that Evolve.lst file isn’t found, even though I can see it there. But I’m sure it’s just a command line syntax problem, just trial & error.

    I’ll report back here, after it’s compiled, thanks.

    #25981
    Clay Martin
    Keymaster

    Hi,
    On the recompile command verify you have .lst not .1st (ell versus one).
    Clay

    #25983
    CharlesG
    Participant

    I have:
    C:\My Programs\Multi-Edit 2008\AddOns\Evolve\Evolve.lst

    .lst as in .last without the A, not first….

    #25984
    CharlesG
    Participant

    re: What I did was copy the “Recompile Macro Source”

    That file is in:
    C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Multi-Edit 2008

    Not a menu option in Mew….

    #25987
    PlyExplorer
    Participant

    All set. I referred to the CMAC User Guide, to confirm which the syntax.

    Everything’s good, thanks.

    #25988
    CharlesG
    Participant

    @PlyExplorer : What is the correct syntax?

    #25989
    PlyExplorer
    Participant

    I copied the evolve folder to D:\Evolve, and the src folder into D:\Evolve\src, and used this

    “f:\PortableApps\mobileME\App\Multi-Edit\CmacWin.exe” -L Evolve.lst -I”d:\Evolve\src”

    From the CMAC User Guide.pdf:

    Compiling macros from a command line
    CMACWIN.EXE is a Windows executable. If you want to compile your macros from the command prompt
    under Windows, here is the command line to use: Format:
    CMACWIN.EXE [-L] <filename> -P<output path>
    [-I<include file path>] [-#name]
    [-M -D<debug pc and macro name>]
    Examples:
    CMACWIN Pascal -PC:\Program Files\Multi-Edit\Mac
    CMACWIN -L “C:\Program Files\Multi-Edit\Utils\Recomp32.lst”
    -P”C:\Program Files\Multi-Edit\Mac”
    -I”C:\Program Files\Multi-Edit\Src”
    The first example would compile the file PASCAL.S to C:\Program Files\Multi-Edit\Mac\Pascal.mac The
    second example would use the list file Recomp32.lst to compile to C:\Program Files\Multi-Edit\Mac, while using
    C:\Program Files\Multi-Edit\Src as the path to search for all #Include files.
    Options:
    -L Tells the compiler that the filename specified to compile is actually list
    of files to compile. See Using list files for more information.
    -# Tells the compiler to define the constant `name’, as though the line
    `#define name’ appeared within the source file. This capability is useful
    for conditional compilation.
    -M Tells the compiler to generate map files for debugging. A debugger is
    currently not available.
    -P Allows the user to specify the directory to which the resulting .MAC file
    should be written.
    -I Specifies a directory to the compiler to find all #Include files.
    -W Close status window after compile.
    -WE Close status window after compile without errors.
    -D Will return the Program Counter number if there is a run-time error.
    -NDD Do not warn of duplicate #defines

    #26006
    CharlesG
    Participant

    “f:\PortableApps\mobileME\App\Multi-Edit\CmacWin.exe” -L Evolve.lst -I”d:\Evolve\src”

    Seems the /L would need the full path to the file, e.g. /L “C:\My Programs\Multi-Edit 2008\AddOns\Evolve\Evolve.lst”

    and /I would be /I”C:\My Programs\Multi-Edit 2008\AddOns\Evolve”

    ==================================================================

    -L “C:\My Programs\Multi-Edit 2008\AddOns\Evolve\Evolve.lst” -P “C:\My Programs\Multi-Edit 2008\Mac” -I “C:\My Programs\Multi-Edit 2008\AddOns\Evolve”

    does not seem to work…..

    #26007
    PlyExplorer
    Participant

    Charles,

    This is the command line that I used today, with a fresh install of ME on XP. I executed it from the Multi-Edit 2008 folder:

    cmacwin.exe -IAddOns\Evolve;src -PMac -L AddOns\Evolve\evolve.lst

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.