Lines Matching refs:virtual

77 #   define isblank(v)	_isblank(virtual[v])
78 # define isalph(v) _isalph(virtual[v])
79 # define ismetach(v) _ismetach(virtual[v])
85 # define isalph(v) ((_c=virtual[v])=='_'||isalnum(_c))
87 # define isblank(v) isspace(virtual[v])
88 # define ismetach(v) ismeta(virtual[v])
166 #define virtual editb.e_inbuf /* pointer to virtual image buffer */ macro
364 virtual = (genchar*)shbuf; in ed_viread()
366 virtual = (genchar*)roundof((char*)virtual-(char*)0,sizeof(genchar)); in ed_viread()
368 i = ed_internal(shbuf,virtual)-1; in ed_viread()
419 if( virtual[i] == '\r' ) in ed_viread()
420 virtual[i] = '\n'; in ed_viread()
423 register int c = virtual[i]; in ed_viread()
441 virtual[i] = term_char; in ed_viread()
446 gencpy((&virtual[i]), (&virtual[i+1])); in ed_viread()
456 last_phys = ed_virt_to_phys(vp->ed,virtual,physical,last_virt,0,0); in ed_viread()
464 genncpy(window, virtual, vp->last_wind+1); in ed_viread()
467 || virtual[last_virt]!=term_char) ) in ed_viread()
494 virtual[++last_virt] = '\n'; in ed_viread()
499 virtual[last_virt+1] = 0; in ed_viread()
500 last_virt = ed_external(virtual,shbuf); in ed_viread()
519 virtual[++last_virt] = '\n'; in ed_viread()
521 virtual[last_virt+1] = 0; in ed_viread()
522 last_virt = ed_external(virtual,shbuf); in ed_viread()
542 if( term_char==ESC && (last_virt<0 || virtual[last_virt]!=ESC)) in ed_viread()
564 virtual[0] = '\0'; in ed_viread()
591 else if(last_virt>=0 && virtual[last_virt]==term_char) in ed_viread()
607 virtual[++last_virt] = '\n'; in ed_viread()
620 virtual[last_virt] = 0; in ed_viread()
621 last_virt = ed_external(virtual,shbuf); in ed_viread()
649 virtual[i] = virtual[i-1]; in append()
651 virtual[++cur_virt] = c; in append()
720 virtual[last_virt+1] = '\0'; in cntlmode()
721 gencpy(vp->U_space, virtual); in cntlmode()
897 hist_copy((char*)virtual, MAXLINE, curhline,-1); in cntlmode()
900 strcpy((char*)virtual,(char*)vp->u_space); in cntlmode()
906 ed_internal((char*)virtual,virtual); in cntlmode()
908 if((last_virt=genlen(virtual)-1) >= 0 && cur_virt == INVALID) in cntlmode()
919 if( virtual[0] == '\0' ) in cntlmode()
923 gencpy(virtual, vp->U_space); in cntlmode()
961 register genchar *p = &virtual[last_virt+1]; in cntlmode()
964 c = (virtual[0]=='#'); in cntlmode()
965 while(p-- >= virtual) in cntlmode()
967 if(*p=='\n' || p<virtual) in cntlmode()
979 cur_virt = p-virtual; in cntlmode()
1066 cp = virtual+cur_virt; in cdelete()
1154 virtual[++last_virt] = ' '; in delmotion()
1156 virtual[last_virt--] = 0; in delmotion()
1372 genncpy((&virtual[cur_virt]),&saveline[cur_virt],c); in getline()
1398 genncpy(saveline, virtual, c); in getline()
1407 if( virtual[cur_virt] == '\\' ) in getline()
1438 !ispunct(virtual[cur_virt]) && in getline()
1452 if( virtual[cur_virt] == '\\' ) in getline()
1572 virtual[last_virt + 1] = '\0'; in mvcursor()
1574 ed_external(virtual,lsearch+1); in mvcursor()
1576 strcpy(lsearch+1,virtual); in mvcursor()
1690 && virtual[tcur_virt] != vp->findchar ); in mvcursor()
1706 && strchr(paren_chars,virtual[tcur_virt])==(char*)0) in mvcursor()
1710 nextc = virtual[tcur_virt]; in mvcursor()
1723 if(virtual[tcur_virt] == nextmotion) in mvcursor()
1725 else if(virtual[tcur_virt]==nextc) in mvcursor()
1830 && (!is_print(virtual[v]) || !is_print(vp->o_v_char))) ) in refresh()
1841 if( !is_print(virtual[v]) ) in refresh()
1848 virtual[last_virt+1] = 0; in refresh()
1849 ncur_phys = ed_virt_to_phys(vp->ed,virtual,physical,cur_virt,v,p); in refresh()
1992 || !is_print(virtual[cur_virt]) in replace()
1996 || !iswascii(virtual[cur_virt]) in replace()
1999 || !is_print(virtual[cur_virt+1])) ) in replace()
2011 virtual[cur_virt] = c; in replace()
2017 c = virtual[++cur_virt]; in replace()
2050 gencpy(virtual, tmpspace); in restore_v()
2072 genncpy(vp->lastline, (&virtual[first_virt]), i); in save_last()
2088 virtual[last_virt + 1] = '\0'; in save_v()
2089 gencpy(vp->u_space, virtual); in save_v()
2145 virtual[last_virt + 1] = '\0'; /*** make null terminated ***/ in search()
2159 strcpy( ((char*)virtual)+1, lsearch); in search()
2161 *((char*)virtual) = '/'; in search()
2162 ed_internal((char*)virtual,virtual); in search()
2176 ed_external(virtual,(char*)virtual); in search()
2178 if(mode=='?' && (i=curline_search(vp,((char*)virtual)+1))>=0) in search()
2188 location = hist_find(sh.hist_ptr,((char*)virtual)+1, curhline, 1, new_direction); in search()
2191 strncpy(lsearch, ((char*)virtual)+1, SEARCHSIZE); in search()
2243 c = virtual[v]; in sync_cursor()
2251 c = virtual[v]; in sync_cursor()
2285 vp->o_v_char = virtual[vp->ocur_virt]; in sync_cursor()
2333 virtual[last_virt] = 0; in textmod()
2334 if(ed_expand(vp->ed,(char*)virtual, &cur_virt, &last_virt, c, vp->repeat_set?vp->repeat:-1)<0) in textmod()
2358 if(c=='=' || (mode<cur_virt && (virtual[cur_virt]==' ' || virtual[cur_virt]=='/'))) in textmod()
2439 vp->o_v_char = virtual[cur_virt]; in textmod()
2500 i = virtual[cur_virt]; in textmod()
2584 gencpy(yankbuf, virtual); in textmod()
2608 c = virtual[cur_virt]; in textmod()