formatting

This commit is contained in:
anon
2023-12-15 20:51:44 +01:00
parent 9c1af10b53
commit edb4967ed3
3 changed files with 6 additions and 5 deletions

View File

@ -173,8 +173,10 @@ static bool check_for_assignment(void) {
if(((asgn_char[0] == '<') || (asgn_char[0] == '>')) &&
(asgn_char[1] == asgn_char[0]) &&
((asgn_char[2] == '=') ||
((asgn_char[2] & 0x80) && (dichar1[(asgn_char[2] & 0177) / 8] == '='))))
((asgn_char[2] & 0x80) && (dichar1[(asgn_char[2] & 0177) / 8] == '=')))) {
return true;
}
return false;
}

View File

@ -41,7 +41,6 @@
#define RDR 0
#define WTR 1
/* HBB 20010312: make this a bit safer --- don't blindly assume it's 1 */
#ifdef FD_CLOEXEC
# define CLOSE_ON_EXEC FD_CLOEXEC
#else

View File

@ -42,8 +42,8 @@ FILE *vpfopen(char *filename, char *type) {
FILE *returncode;
int i;
if((returncode = myfopen(filename, type)) == NULL &&
filename[0] != '/'
if((returncode = myfopen(filename, type)) == NULL
&& filename[0] != '/'
/* && strcmp(type, "r") == 0 */ /* HBB: this breaks if type=="rb" */
&& type[0] == 'r') {
vpinit(NULL);
@ -52,5 +52,5 @@ FILE *vpfopen(char *filename, char *type) {
if((returncode = myfopen(buf, type)) != NULL) { break; }
}
}
return (returncode);
return returncode;
}