better evaluation order checking in expressions

This commit is contained in:
dick
1989-02-02 13:57:07 +00:00
parent d6878e6125
commit eacc6e770e
16 changed files with 367 additions and 227 deletions

View File

@@ -12,6 +12,7 @@
#ifdef LINT
#include <alloc.h>
#include "interface.h"
#include "arith.h"
#include "l_state.h"
#include "l_comment.h"
@@ -24,13 +25,15 @@ extern char loptions[];
one token later.
*/
static int notreached;
static int varargsN = -1;
static int argsused;
static int formatN;
static int formatVAR;
static char *format;
static char *prev_format;
PRIVATE int notreached;
PRIVATE int varargsN = -1;
PRIVATE int argsused;
PRIVATE int formatN;
PRIVATE int formatVAR;
PRIVATE char *format;
PRIVATE char *prev_format;
PRIVATE make_format();
int LINTLIB; /* file is lint library */
int s_NOTREACHED; /* statement not reached */
@@ -71,8 +74,8 @@ lint_comment_function()
formatVAR = 0;
}
static char buf[1000];
static char *bufpos; /* next free position in buf */
PRIVATE char buf[1000];
PRIVATE char *bufpos; /* next free position in buf */
lint_start_comment()
{
@@ -139,6 +142,7 @@ lint_end_comment()
#define LETGIT 1
#define LETGITSPACE 2
PRIVATE
make_format(argn, oldf)
int argn;
char *oldf;