[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | DECC |
Notice: | General DEC C discussions |
Moderator: | TLE::D_SMITH N TE |
|
Created: | Fri Nov 13 1992 |
Last Modified: | Fri Jun 06 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 2212 |
Total number of notes: | 11045 |
2076.0. "Non-terminated string" by DEKVC::YONGJOONCHOI () Thu Jan 30 1997 05:15
Hi
Our customer have some problems when compile.
This program work out well under solias,ultrix but not DU4.0B.
When compiles following message displayed.
>make
yacc -d dilp.y
cc -O -I../hfiles -c y.tab.c
rm -f y.tab.c
mv y.tab.o dilp.o
lex token.l
lex: (Warning at line 169)Non-terminated string
lex: (Warning) bad state 308 175
cc -O -I../hfiles -c lex.yy.c
cc: Warning: lex.yy.c, line 271: In this statement, the referenced type
of the pointer value "&yytext[2]" is "unsigned char", which is not compatible
with "signed char"
for(num = 0, ptr = &yytext[2];*ptr != '\'';ptr++) /*imsi*/
-------------------------------------^
cc: Warning: lex.yy.c, line 278: In this statement, the referenced type
of the pointer value "&yytext[2]" is "unsigned char", which is not
compatible with "sign char".
for(num = 0, ptr = &yytext[2];*ptr != 0;ptr++) /*imsi*/
-------------------------------------^
m -f lex.yy.c
mv lex.yy.o token.o
cc -c -O -I../hfiles -DVer=\"REL1.1\" -DDate=\"1996/09/03\" main.c
cc -O -I../hfiles -c symbol.c
cc -O -I../hfiles -c parse.c
cc -O -I../hfiles -c run.c
cc -c -g ../hfiles/head.c
<Makefile>
YFLAGS = -d
CFLAGS = -O -I$(HFDIR)
INS = :
BIN =
LIST = lpr -Pqp3
#HFILES = $(HFDIR)/hdfile.h symbol.h
SRC = dilp.y token.l main.c symbol.c parse.c run.c $(HFDIR)/head.c
OBJS = dilp.o token.o main.o symbol.o parse.o run.o head.o
EXOUT = dilp
$(EXOUT):$(OBJS)
$(CC) $(OBJS) -o dilp
$(INS) $(EXOUT) $(BIN)
$(OBJS) : $(HFILES)
main.o : main.c $(HFILES)
$(CC) -c ${CFLAGS} -DVer=\"$(Ver)\" -DDate=\"$(Date)\" main.c
head.o : $(HFDIR)/head.c
$(CC) -c -g $(HFDIR)/head.c
<token.l>
Since this program is too long, so i posting 169 line that have
problem.
cfp->linenr++; BEGIN A; }
<Str>"\\\"" { cbuf[clen++]='"'; }
169 Line--> <Str,Chc>"\\"n { cbuf[clen++]='\n'; }
<Str,Chc>"\\"t { cbuf[clen++]='\t'; }
<Str,Chc>"\\"b { cbuf[clen++]='\b'; }
<Str,Chc>"\\"r { cbuf[clen++]='\r'; }
Why is the Non-terminated string occured?
T.R | Title | User | Personal Name | Date | Lines |
---|
2076.1 | Looks like lex, not C | XDELTA::HOFFMAN | Steve, OpenVMS Engineering | Thu Jan 30 1997 09:51 | 8 |
|
This looks to be lex grumbling about the non-terminated string, not C.
Try the DIGITAL_UNIX notes conference.
If I were guessing, I'd try using an \-escape (\042?) for the <">
character on the line just prior to the line lex is grumbling about.
|
2076.2 | Reported as Digital_UNIX 8645 | DECC::SULLIVAN | Jeff Sullivan | Thu Jan 30 1997 12:21 | 3 |
| Please see Digital_UNIX 8645 if this topic is of interest to you.
-Jeff
|