diff options
author | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1997-04-10 20:05:52 +0000 |
---|---|---|
committer | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1997-04-10 20:05:52 +0000 |
commit | b35b24033ff5a2171d5dc795e027358506aa01ff (patch) | |
tree | 66dd8c938d9461cd6e15a29269a4c08313fb72aa | |
parent | 11343788cbaaede18e3146b5219d2fbdaeaf516e (diff) | |
download | perl-b35b24033ff5a2171d5dc795e027358506aa01ff.tar.gz |
Tweaks to allow compilation without -DUSE_THREADS and fix
missing parens (pad allocation) in the tokener.
p4raw-id: //depot/thrperl@5
-rw-r--r-- | op.c | 1 | ||||
-rw-r--r-- | pp_ctl.c | 4 | ||||
-rw-r--r-- | toke.c | 2 |
3 files changed, 6 insertions, 1 deletions
@@ -2508,6 +2508,7 @@ I32 flags; OP *left; OP *right; { + dTHR; CONDOP *condop; OP *flip; OP *flop; @@ -1952,12 +1952,14 @@ int gimme; HV *newstash; AV* comppadlist; +#ifdef USE_THREADS MUTEX_LOCK(&eval_mutex); if (eval_owner && eval_owner != thr) while (eval_owner) COND_WAIT(&eval_cond, &eval_mutex); eval_owner = thr; MUTEX_UNLOCK(&eval_mutex); +#endif /* USE_THREADS */ in_eval = 1; /* set up a scratch pad */ @@ -2054,10 +2056,12 @@ int gimme; /* compiled okay, so do it */ +#ifdef USE_THREADS MUTEX_LOCK(&eval_mutex); eval_owner = 0; COND_SIGNAL(&eval_cond); MUTEX_UNLOCK(&eval_mutex); +#endif /* USE_THREADS */ RETURNOP(eval_start); } @@ -2115,7 +2115,7 @@ yylex() if (*s == '{') tokenbuf[0] = '%'; } - if (tmp = pad_findmy(tokenbuf) != NOT_IN_PAD) { + if ((tmp = pad_findmy(tokenbuf)) != NOT_IN_PAD) { nextval[nexttoke].opval = newOP(OP_PADANY, 0); nextval[nexttoke].opval->op_targ = tmp; force_next(PRIVATEREF); |