Lines Matching defs:memory
459 char *memory;
465 memory = (char *) malloc (allocated);
467 memory = (char *) realloc (result, allocated);
468 if (memory == NULL)
476 memcpy (memory, initial_result, length);
477 result = memory;
510 char *memory;
514 memory = (char *) malloc (allocated);
516 memory = (char *) realloc (result, allocated);
517 if (memory == NULL)
525 memcpy (memory, initial_result, length);
526 result = memory;
547 char *memory;
551 memory = (char *) malloc (allocated);
553 memory = (char *) realloc (result, allocated);
554 if (memory == NULL)
562 memcpy (memory, initial_result, length);
563 result = memory;
844 char *memory;
850 memory = (char *) malloc (allocated);
852 memory = (char *) realloc (result, allocated);
853 if (memory == NULL)
861 memcpy (memory, initial_result, length);
862 result = memory;
926 char *memory;
930 memory = (char *) malloc (allocated);
932 memory = (char *) realloc (result, allocated);
933 if (memory == NULL)
941 memcpy (memory, initial_result, length);
942 result = memory;
969 /* Now the final memory allocation. */
973 char *memory;
975 memory = (char *) malloc (memsize > 0 ? memsize : 1);
976 if (memory != NULL)
978 memcpy (memory, tmpbuf, length);
979 result = memory;
989 /* Shrink the allocated memory if possible. */
991 char *memory;
993 memory = (char *) realloc (result, memsize > 0 ? memsize : 1);
994 if (memory != NULL)
995 result = memory;
1109 /* Return -1, but free the allocated memory, and while doing
1168 /* Return NULL, but free the allocated memory, and while doing