Lines Matching defs:shp

141 	register Shell_t *shp = lp->sh;
142 register Stk_t *stkp = shp->stk;
173 sfprintf(lp->kiatmp,"p;%..64d;v;%..64d;%d;%d;r;\n",lp->current,r,shp->inlineno,shp->inlineno);
184 register Shell_t *shp = lp->sh;
185 register Sfio_t *log= shp->funlog;
186 Stk_t *stkp = shp->stk;
191 if(sh_isstate(SH_HISTORY) && shp->hist_ptr)
192 log = shp->hist_ptr->histfp;
203 sfwrite(shp->strbuf,lp->lexd.docend,n);
286 Shell_t *shp = lp->sh;
301 sfprintf(sfstderr,"line %d: %o:%s%s%s%s %s\n",shp->inlineno,tok,quoted,
315 register Shell_t *shp = lp->sh;
318 Stk_t *stkp = shp->stk;
386 if(shp->readscript)
390 error_info.id = shp->readscript;
448 while(shp->inlineno++,fcpeek(0)=='\n')
458 shp->inlineno--;
466 c = shp->inlineno;
484 while(shp->inlineno++,fcget()=='\n');
539 lp->lastline = shp->inlineno;
555 errormsg(SH_DICT,ERROR_warn(0),e_lexnonstandard,shp->inlineno);
611 errormsg(SH_DICT,ERROR_warn(0),e_lexspace,shp->inlineno,c,n);
639 shp->inlineno++;
668 errormsg(SH_DICT,ERROR_warn(0),e_lexfuture,shp->inlineno,n);
705 shp->inlineno++;
740 errormsg(SH_DICT,ERROR_warn(0),e_lexslash,shp->inlineno);
746 if(lp->lexd.warn && lp->lex.last_quote && shp->inlineno > lp->lastline)
749 lp->lastline = shp->inlineno;
756 else if(shp->inlineno > lp->lastline)
767 shp->inlineno++;
772 errormsg(SH_DICT,ERROR_warn(0),e_lexobsolete1,shp->inlineno);
789 if(lp->lexd.warn && lp->lex.last_quote && shp->inlineno > lp->lastline)
792 lp->lastline = shp->inlineno;
801 if(shp->inlineno > lp->lastline)
846 errormsg(SH_DICT,ERROR_warn(0),e_lexusebrace,shp->inlineno);
985 errormsg(SH_DICT,ERROR_warn(0),e_lexquote,shp->inlineno,'%');
1017 errormsg(SH_DICT,ERROR_warn(0),e_lexslash,shp->inlineno);
1025 errormsg(SH_DICT,ERROR_warn(0),e_lexusequote,shp->inlineno,c);
1058 errormsg(SH_DICT,ERROR_warn(0),e_lexusequote,shp->inlineno,c);
1064 errormsg(SH_DICT,ERROR_warn(0),e_lexescape,shp->inlineno,c);
1086 errormsg(SH_DICT,ERROR_warn(0),e_lexnested,shp->inlineno);
1147 errormsg(SH_DICT,ERROR_exit(SYNBAD),e_lexsyntax1, shp->inlineno, "[]", "empty subscript");
1316 lp->arg = sh_endword(shp,2);
1319 lp->arg = sh_endword(shp,1);
1329 lp->arg = sh_endword(shp,-1);
1331 lp->arg = sh_endword(shp,0);
1351 errormsg(SH_DICT,ERROR_warn(0),e_lexobsolete2,shp->inlineno);
1379 errormsg(SH_DICT,ERROR_warn(0),e_lexobsolete3,shp->inlineno);
1385 errormsg(SH_DICT,ERROR_warn(0),e_lexobsolete4,shp->inlineno,state);
1408 errormsg(SH_DICT,ERROR_warn(0),e_lexobsolete6,shp->inlineno);
1460 (np=nv_search(state,shp->alias_tree,HASH_SCOPE))
1985 register Shell_t *shp = lp->sh;
1997 lp->lastline = shp->inlineno;
1999 if((sp=fcfile()) || (shp->infd>=0 && (sp=shp->sftable[shp->infd])))
2010 shp->inlineno = lp->inlineno;
2011 shp->st.firstline = lp->firstline;
2015 if(shp->inlineno!=1)
2045 struct argnod *sh_endword(Shell_t *shp,int mode)
2054 Stk_t *stkp=shp->stk;