-
Notifications
You must be signed in to change notification settings - Fork 6
Yacam update #321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Yacam update #321
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still needs error tests.
@@ -1819,11 +1819,13 @@ RC WFILE::wf_Close( // Close weather file if open | |||
{ | |||
RC rc = RCOK; | |||
if (yac) | |||
{ if ( hdr // if header given | |||
{ | |||
#if 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs comments to explain why it's #if
d out.
if (mFh >= 0) | ||
{ if (_lseek( mFh, 0, SEEK_SET) == -1L) | ||
if (mFh) | ||
{ if (fseek( mFh, 0, SEEK_SET) != 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this line hit in the tests?
rc = errFl((const char *)MH_I0104); // seek failed, conditionally issue error msg containing "Seek error on" | ||
|
||
int nw = ::write( mFh, yc_buf, bufN); // write buffer contents, return -1 or # bytes written. C library function. | ||
int nw = fwrite( yc_buf, sizeof(char), bufN, mFh); // write buffer contents, return -1 or # bytes written. C library function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this line hit in the tests?
@@ -1040,6 +966,77 @@ RC YACAM::errFlLn( const char *s, ...) // error message "%s in <mWhat> <mPathNam | |||
(char *)MH_I0118, // "%s '%s' (near line %d):\n %s" | |||
mWhat, mPathName ? mPathName : "bug", mLineNo, buf ); | |||
} | |||
#if 0 // Methonds not used, but were modified to fit c-style io, not tested. sha d06014d81f75e5ec2b9d4e31750dd0c076afae46 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Spell check
- Is "c-style io" the right term?
- Do we need the sha here? Generally we only need a sha if we're deleting something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we settled on not putting SHAs in comments because version control systems are not forever.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's been Chip's argument for a while. I thought that if we did something like this, we'd just mention that last release version where the code appeared.
@@ -88,6 +85,12 @@ class YACAM | |||
|
|||
int mErOp; // communicates erOp from entry points to error fcns | |||
// note need a data mbr at end due to rcdef.exe deficiency 10-94. | |||
|
|||
#if 0 // Methonds not used, but were modified to fit c-style io, not tested. sha d06014d81f75e5ec2b9d4e31750dd0c076afae46 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comments here.
Description
Replaces windows file system functions for C standard functions.
Test
The following tests are checked using a breakpoint.
The following tests are not stopped during the run test. Thus they are if-out from CSE, until future use.
Author Progress Checklist:
Reviewer Checklist: