Lines Matching defs:ptr

103   char *ptr;
131 buffer->ptr = (char *) malloc (size);
151 if (*p == str->ptr[i])
165 && fwrite (buffer->ptr, buffer->write_idx, 1, f) != 1)
173 if (buffer->ptr)
174 free (buffer->ptr);
175 buffer->ptr = NULL;
183 return buffer->ptr + idx;
193 return buffer->ptr[pos];
204 buffer->ptr = (char *) realloc (buffer->ptr, buffer->size);
207 buffer->ptr[buffer->write_idx++] = ch;
215 free (dst->ptr);
218 dst->ptr = src->ptr;
231 buffer->ptr = (char *) realloc (buffer->ptr, buffer->size);
233 memcpy (buffer->ptr + buffer->write_idx, buf, len);
250 catbuf (dst, src->ptr, src->write_idx);
271 skip_past_newline_1 (ptr, idx)
272 string_type *ptr;
275 while (at (ptr, idx)
276 && at (ptr, idx) != '\n')
278 if (at (ptr, idx) == '\n')
289 string_type *ptr; /* and the buffer */
843 iscommand (ptr, idx)
844 string_type *ptr;
848 while (at (ptr, idx))
850 if (isupper ((unsigned char) at (ptr, idx))
851 || at (ptr, idx) == ' ' || at (ptr, idx) == '_')
856 else if (at (ptr, idx) == '\n')
869 copy_past_newline (ptr, idx, dst)
870 string_type *ptr;
876 while (at (ptr, idx) && at (ptr, idx) != '\n')
878 if (at (ptr, idx) == '\t')
888 catchar (dst, at (ptr, idx));
894 catchar (dst, at (ptr, idx));
906 idx = copy_past_newline (ptr, idx, tos);
1058 while (at (ptr, idx))
1060 if (iscommand (ptr, idx))
1062 idx = copy_past_newline (ptr, idx, tos);
1118 idx = skip_past_newline_1 (ptr, idx);
1237 dict_type *ptr = root;
1238 while (ptr)
1240 if (strcmp (ptr->word, word) == 0)
1241 return ptr;
1242 ptr = ptr->next;
1252 dict_type *ptr = root;
1254 while (ptr)
1258 if (ptr->word)
1259 free (ptr->word);
1260 if (ptr->code)
1263 for (i = 0; i < ptr->code_length; i ++)
1264 if (ptr->code[i] == push_text
1265 && ptr->code[i + 1])
1267 free (ptr->code[i + 1] - 1);
1270 free (ptr->code);
1272 next = ptr->next;
1273 free (ptr);
1274 ptr = next;
1283 while (at (ptr, idx))
1286 if (iscommand (ptr, idx))
1291 (void) nextword (addr (ptr, idx), &next);
1382 dict_type *ptr;
1387 ptr = newentry (word);
1397 add_to_definition (ptr, push_text);
1398 add_to_definition (ptr, (stinst_type) (word + 1));
1412 add_to_definition (ptr, push_number);
1413 add_to_definition (ptr, (stinst_type) atol (word));
1417 add_to_definition (ptr, call);
1418 add_to_definition (ptr, (stinst_type) lookup_word (word));
1424 add_to_definition (ptr, 0);
1544 ptr = &pptr;
1583 remove_noncomments (&buffer, ptr);
1603 compile (b.ptr);