Skip to content

Fixed D->counter issue in MacOS and built Mac binary for 8.8#11

Closed
MaffooBristol wants to merge 1 commit intoChatScript:masterfrom
MaffooBristol:mac-binary-8.8
Closed

Fixed D->counter issue in MacOS and built Mac binary for 8.8#11
MaffooBristol wants to merge 1 commit intoChatScript:masterfrom
MaffooBristol:mac-binary-8.8

Conversation

@MaffooBristol
Copy link
Copy Markdown
Contributor

Hi @chatscriptnlp

A regression was brought in, in version 8.7, when building for MacOS. It seems it errors in testing.cpp but I see another reference in the functionExecute.cpp, so I don't know why it didn't fail in there? 🤔

testing.cpp:5435:28: error: no member named 'counter' in 'WORDENTRY'
        if (count >= 1) D->counter += 1; // how many files have it significantly
                        ~  ^
testing.cpp:5472:24: error: no member named 'counter' in 'WORDENTRY'
        if (weak || D->counter >= 10 || *word == '~' || IsDigitWord(word)) // not enough discrimination
                    ~  ^
testing.cpp:5475:51: error: no member named 'counter' in 'WORDENTRY'
            fprintf(outbad, "%d %6.6d %s\r\n", D->counter,count, word);
                                               ~  ^
testing.cpp:5480:52: error: no member named 'counter' in 'WORDENTRY'
            fprintf(outgood, "%d %6.6d %s\r\n", D->counter, count, word);
                                                ~  ^
testing.cpp:5481:20: error: no member named 'counter' in 'WORDENTRY'
            if (D->counter == 1)

I'll be truthful and say I don't know what define DISCARDCOUNTER 1 means, but it seems to build fine on Mac with it commented out. Would appreciate any feedback on what it does and whether removing it is okay?

Cheers!
Matt

@MaffooBristol
Copy link
Copy Markdown
Contributor Author

Just tested on Ubuntu and it appears to make fine there too, so I don't believe that the modification to the source should open any regressions elsewhere

@chatscriptnlp
Copy link
Copy Markdown
Collaborator

chatscriptnlp commented Nov 29, 2018 via email

@MaffooBristol MaffooBristol mentioned this pull request Nov 30, 2018
@MaffooBristol
Copy link
Copy Markdown
Contributor Author

Thanks Bruce. Your latest code builds fine on Mac so I've included the Binary there:

#12

Will close this one now.

Thanks!
Matt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants