Searched refs:ptr (Results 1 - 25 of 57) sorted by relevance

123

/ast/src/lib/libast/string/
H A Dtok.c42 } ptr; member in struct:Tok_s
60 freelist = freelist->ptr.nxt;
63 p->chr = *(p->ptr.end = s);
78 if (p->flg == FLG_RESTORE && *p->ptr.end != p->chr)
79 *p->ptr.end = p->chr;
80 p->ptr.nxt = freelist;
106 s = p->ptr.end;
130 p->ptr.end = s;
151 p->ptr.end = r;
168 p->ptr
[all...]
/ast/src/lib/libtk/generic/
H A DtkConfig.c336 char *ptr;
346 ptr = widgRec + specPtr->offset;
349 if (Tcl_GetBoolean(interp, value, (int *) ptr) != TCL_OK) {
354 if (Tcl_GetInt(interp, value, (int *) ptr) != TCL_OK) {
359 if (Tcl_GetDouble(interp, value, (double *) ptr) != TCL_OK) {
372 old = *((char **) ptr);
376 *((char **) ptr) = new;
381 *((Tk_Uid *) ptr) = NULL;
384 *((Tk_Uid *) ptr) = uid;
399 oldPtr = *((XColor **) ptr);
333 char *ptr; local
754 char *ptr, *result; local
949 char *ptr; local
[all...]
H A DtkCursor.c289 void *ptr;
307 ptr = cursorPtr->hashPtr->key.words;
308 return ((NameKey *) ptr)->name;
286 void *ptr; local
H A DtkBitmap.c324 void *ptr;
338 ptr = bitmapPtr->hashPtr->key.words;
339 return ((NameKey *) ptr)->name;
321 void *ptr; local
/ast/src/cmd/cs/vcs_src/
H A Difs_http.c43 char *ptr, *p1, *p2; local
73 ptr = buf;
74 while( (p1 = strchr( ptr, '<' )) != NULL &&
82 ptr = p2;
111 char buf[ STRLEN ], *ptr; local
152 ptr = "Accept: */*\n\n";
153 NetWrite( nFile, ptr, strlen(ptr) );
154 debug_logit( ptr );
159 if( (ptr
211 char *ptr; local
237 char *rpath, *ptr; local
[all...]
H A Difs_ftp.c80 char *ptr; local
82 if( (ptr = strrchr( filepath, '/' )) == NULL )
84 *ptr = '\0';
86 *ptr++ = '/';
87 if( stat( ptr, &st ) == -1 )
89 ftp_addentry( ptr, st.st_mtime );
104 char buf[ STRLEN ], *ptr;
109 if( (ptr = strchr( buf, ' ' )) != NULL ) {
110 *ptr++ = '\0';
111 hashput( htab, buf, ptr );
130 char *ptr; local
251 char token[4], *ptr; local
305 char *arg[6], *ptr; local
[all...]
H A Difs_func.c240 char *ptr; local
242 if( (ptr = strrchr( fpath, '/' )) != NULL ) {
243 *ptr = '\0';
248 *ptr = '/';
262 char *ptr; local
264 if( (ptr = strrchr( fpath, '/' )) != NULL ) {
265 *ptr = '\0';
271 *ptr = '/';
324 char *ptr; local
332 ptr
[all...]
H A Difs_agent.c156 char buf[ 1024 ], *ptr; local
185 char *host, *ptr, *pass; local
207 if( (ptr = strchr( host, '/' )) != NULL ) {
208 mi->rpath = strdup( ptr );
209 *ptr = '\0';
215 if( (ptr = strchr( host, '@' )) != NULL ) {
216 *ptr++ = '\0';
223 host = ptr;
227 if( (ptr = strchr( host, ':' )) != NULL ) {
228 *ptr
304 char *ptr, *url, *urlend; local
[all...]
H A Difs_network.c169 char *ptr; local
173 ptr = buf;
174 while( bufsize > 1 && NetRead( nFile, ptr, 1 ) == 1 ) {
176 if( *ptr++ == '\n' )
179 *ptr = '\0';
180 return( ptr == buf ? NULL : buf );
H A Dvcs.c140 char *argv[16], *ptr; local
200 ptr = (argc < 2 ? "/tmp/jvcs.log" : argv[1]);
206 } else if( (CST->logfd = sfopen(NULL,ptr,"a")) == NULL ) {
207 n = sfsprintf(ret, n, "E cannot open %s\n", ptr );
209 CST->logfile = strdup( ptr );
211 n = sfsprintf(ret, n, "I record %s\n", ptr );
H A Difs_news.c82 char buf[ STRLEN ], *ptr; local
86 if( (ptr = strchr( buf, '\r' )) != NULL && ptr[1] == '\n' ) {
87 *ptr = '\0';
/ast/src/cmd/ksh93/sh/
H A Dfcin.c80 register unsigned char *last=_Fcin.fclast, *ptr=_Fcin.fcptr; local
84 if(ptr>_Fcin.fcbuff && *--ptr==0)
85 _Fcin.fcptr=ptr;
92 if( ptr<last && ptr>_Fcin.fcbuff && *(ptr-1)==0)
96 if(ptr > last)
97 _Fcin.fcptr = ptr = last;
99 if((n = ptr
116 register unsigned char *ptr; local
[all...]
H A Darith.c220 static Sfdouble_t arith(const char **ptr, struct lval *lvalue, int type, Sfdouble_t n) argument
224 char *str = (char*)*ptr;
234 lvalue->ptr = (void*)nv_hasdisc(np,&ENUM_disc);
273 int fsize = str- (char*)(*ptr);
276 c = **ptr;
278 sfprintf(shp->stk,".sh.math.%.*s%c",fsize,*ptr,0);
287 lvalue->fun = (Math_f)sh_mathstdfun(*ptr,fsize,&lvalue->nargs);
298 lvalue->value = (char*)*ptr;
333 cp = (char*)*ptr;
348 else if(!(np = nv_open(*ptr,roo
509 sh_strnum(register const char *str, char** ptr, int mode) argument
543 const char *ptr = str; local
[all...]
H A Denv.c33 char *ptr; member in union:_venv_::__anon114
54 #define ENV_PMALLOC 1 /* set if Evar_t->un.ptr *s malloced */
106 ep->env[n++] = vp->un.ptr;
123 if(vp && strcmp(str,vp->un.ptr)==0)
130 free((void*)vp->un.ptr);
131 vp->un.ptr = (char*)str;
133 ep->env[vp->index>>ENV_BITS] = vp->un.ptr;
148 vp->un.ptr = (void*)str;
173 free((void*)vp->un.ptr);
238 env_delete(ep,vp->un.ptr);
[all...]
H A Dtrestore.c341 register char *ptr; local
344 ptr = stkalloc(stkp,(unsigned)l);
347 if(sfread(in,ptr,(size_t)l)!=(size_t)l)
349 ccmaps(ptr, l, CC_ASCII, CC_NATIVE);
351 ptr[l] = 0;
352 return(ptr);
H A Dfault.c128 void *ptr=0; local
147 if(sig==SIGABRT || (abortsig(sig) && (ptr = malloc(1))))
149 if(ptr)
150 free(ptr);
225 void sh_siginit(void *ptr) argument
227 Shell_t *shp = (Shell_t*)ptr;
603 void sh_done(void *ptr, register int sig) argument
605 Shell_t *shp = (Shell_t*)ptr;
/ast/src/cmd/paxlib/calib/
H A Dcamap.c36 camap_init(void* ptr) argument
38 memset(ptr, 0, UCHAR_MAX+1);
43 camap_write(void* ptr,void *buff, register size_t size) argument
45 register char* hit = (char*)ptr;
85 camap_done(void* ptr, const char* file, int out) argument
89 register char* hit = (char*)ptr;
100 free(ptr);
137 camap_close(void* ptr) argument
139 free(ptr);
/ast/src/lib/libz/
H A Dzutil.c240 void zcfree (voidpf opaque, voidpf ptr) argument
243 if (*(ush*)&ptr != 0) { /* object < 64K */
244 farfree(ptr);
249 if (ptr != table[n].new_ptr) continue;
258 ptr = opaque; /* just to make some compilers happy */
259 Assert(0, "zcfree: ptr not found");
281 void zcfree (voidpf opaque, voidpf ptr) argument
284 _hfree(ptr);
298 extern void free OF((voidpf ptr));
312 void zcfree (opaque, ptr)
[all...]
/ast/src/lib/libvcodex/
H A Dvcio.c39 Vcchar_t *ptr, *code; local
49 ptr = io->next;
51 { default: memcpy(ptr, code, n); ptr += n; break;
52 case 7 : *ptr++ = *code++;
53 case 6 : *ptr++ = *code++;
54 case 5 : *ptr++ = *code++;
55 case 4 : *ptr++ = *code++;
56 case 3 : *ptr++ = *code++;
57 case 2 : *ptr
74 Vcchar_t *ptr; local
98 Vcchar_t *ptr; local
132 Vcchar_t *ptr; local
169 Vcchar_t *ptr = io->next; local
195 Vcchar_t *ptr, *endp; local
[all...]
/ast/src/lib/libtk/compat/
H A Dstdlib.h38 extern char * realloc _ANSI_ARGS_((char *ptr, unsigned int numBytes));
/ast/src/cmd/ie/
H A Deditlib.c295 if(fp && (count=fp->ptr-fp->base))
300 *fp->ptr = 0;
301 fp->ptr = fp->base;
313 if(fp->ptr >= fp->last)
315 *fp->ptr++ = c;
336 if(fp->ptr >= fp->last)
338 *fp->ptr++ = cc;
H A Dhistory.c339 if(fp->ptr >= fp->last)
341 *fp->ptr++ = c;
453 c = *(fp->fixfp->ptr)++;
454 if(c==0 && (fp->fixfp->ptr > fp->fixfp->last))
560 while(--fd->ptr >= fd->base)
562 c= *fd->ptr;
565 if(c=='\\' && *(fd->ptr+1)!='\n')
566 fd->ptr++;
571 if(++fd->ptr <= fd->base && !fp->fixflush)
579 fp->fixcnt += (fd->ptr
[all...]
H A Dio.h125 char *ptr; member in struct:fileblk
231 #define nextchar(fp) (*((fp)->ptr))
232 #define finbuff(fp) ((fp)->last - (fp)->ptr)
/ast/src/lib/libast/include/
H A Dshcmd.h62 void* ptr; member in struct:Shbltin_s
/ast/src/lib/libtksh/tcl/
H A DtclExpr.c1453 Tcl_ExprLong(interp, string, ptr)
1457 long *ptr; /* Where to store result. */
1465 *ptr = value.intValue;
1467 *ptr = (long) value.doubleValue;
1480 Tcl_ExprDouble(interp, string, ptr)
1484 double *ptr; /* Where to store result. */
1492 *ptr = value.intValue;
1494 *ptr = value.doubleValue;
1507 Tcl_ExprBoolean(interp, string, ptr)
1511 int *ptr; /* Wher
[all...]

Completed in 39 milliseconds

123