exeval.c
exexpr.c
exopen.c
- exrewind.c
extoken.c
extype.c
exzero.c
endif
libexpr_C_la_SOURCES = excc.c excontext.c exdata.c exerror.c \
- exeval.c exexpr.c exopen.c exrewind.c extoken.c \
+ exeval.c exexpr.c exopen.c extoken.c \
extype.c exzero.c exparse.y exnospace.c exstash.c
libexpr_C_la_LIBADD = \
$(top_builddir)/lib/ast/libast_C.la \
expr 2.0 :LIBRARY: expr.h exlib.h exgram.h exparse.y \
excc.c excontext.c exdata.c exeval.c exexpr.c \
- exerror.c exopen.c exrewind.c extoken.c extype.c \
+ exerror.c exopen.c extoken.c extype.c \
exzero.c
if CC.HOSTTYPE == "*.i386" || "$(-mam)" == "static*"
int expush(Expr_t*, const char*, int, const char*, Sfio_t*);
int expop(Expr_t*);
int excomp(Expr_t*, const char*, int, const char*, Sfio_t*);
-int exrewind(Expr_t*);
int extoken(Expr_t*);
char* extype(int);
Extype_t exzero(int);
exclose() is the last function called.
exccopen() is the called if code generation will be used.
exccclose() releases the state information allocated in exccopen().
-exrewind() restores statement start information saved by exstatement().
.SH "SEE ALSO"
extern Expr_t* exopen(Exdisc_t*);
extern int expop(Expr_t*);
extern int expush(Expr_t*, const char*, int, const char*, Sfio_t*);
-extern int exrewind(Expr_t*);
extern char* exstash(Sfio_t*, Vmalloc_t*);
extern int extoken_fn(Expr_t*);
extern char* exstring(Expr_t *, char *);
<ClCompile Include="exexpr.c" />
<ClCompile Include="exnospace.c" />
<ClCompile Include="exopen.c" />
- <ClCompile Include="exrewind.c" />
<ClCompile Include="exstash.c" />
<ClCompile Include="extoken.c" />
<ClCompile Include="extype.c" />
<ClCompile Include="exopen.c">
<Filter>Source Files</Filter>
</ClCompile>
- <ClCompile Include="exrewind.c">
- <Filter>Source Files</Filter>
- </ClCompile>
<ClCompile Include="exstash.c">
<Filter>Source Files</Filter>
</ClCompile>
+++ /dev/null
-/*************************************************************************
- * Copyright (c) 2011 AT&T Intellectual Property
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: Details at https://graphviz.org
- *************************************************************************/
-
-/*
- * Glenn Fowler
- * AT&T Research
- *
- * expression library
- */
-
-#include <expr/exlib.h>
-#include <string.h>
-
-int
-exrewind(Expr_t* ex)
-{
- int n;
-
- if (ex->linewrap)
- {
- exerror("too much pushback");
- return -1;
- }
- if (!ex->input->pushback && !(ex->input->pushback = oldof(0, char, sizeof(ex->line), 3)))
- {
- exnospace();
- return -1;
- }
- if ((n = ex->linep - ex->line))
- memcpy(ex->input->pushback, ex->line, n);
- if (ex->input->peek)
- {
- ex->input->pushback[n++] = ex->input->peek;
- ex->input->peek = 0;
- }
- ex->input->pushback[n++] = ' ';
- ex->input->pushback[n] = 0;
- ex->input->pp = ex->input->pushback;
- ex->input->nesting = ex->nesting;
- setcontext(ex);
- return 0;
-}