threads, clean signals, and much more...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@957 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
14
C/iopreds.c
14
C/iopreds.c
@@ -168,14 +168,6 @@ STATIC_PROTO (Int p_type_of_char, (void));
|
||||
STATIC_PROTO (Int GetArgSizeFromChar, (Term *));
|
||||
STATIC_PROTO (void CloseStream, (int));
|
||||
|
||||
|
||||
|
||||
#if EMACS
|
||||
static int first_char;
|
||||
#endif
|
||||
|
||||
static int StartLine;
|
||||
|
||||
static int
|
||||
yap_fflush(int sno)
|
||||
{
|
||||
@@ -2015,7 +2007,7 @@ p_open_mem_read_stream (void) /* $open_mem_read_stream(+List,-Stream) */
|
||||
}
|
||||
}
|
||||
while ((nbuf = (char *)Yap_AllocAtomSpace((sl+1)*sizeof(char))) == NULL) {
|
||||
if (!Yap_growheap(FALSE, (sl+1)*sizeof(char))) {
|
||||
if (!Yap_growheap(FALSE, (sl+1)*sizeof(char), NULL)) {
|
||||
Yap_Error(SYSTEM_ERROR, TermNil, Yap_ErrorMessage);
|
||||
return(FALSE);
|
||||
}
|
||||
@@ -2069,7 +2061,7 @@ p_open_mem_write_stream (void) /* $open_mem_write_stream(-Stream) */
|
||||
extern int Yap_page_size;
|
||||
|
||||
while ((nbuf = (char *)Yap_AllocAtomSpace(Yap_page_size*sizeof(char))) == NULL) {
|
||||
if (!Yap_growheap(FALSE, Yap_page_size*sizeof(char))) {
|
||||
if (!Yap_growheap(FALSE, Yap_page_size*sizeof(char), NULL)) {
|
||||
Yap_Error(SYSTEM_ERROR, TermNil, Yap_ErrorMessage);
|
||||
return(FALSE);
|
||||
}
|
||||
@@ -4812,7 +4804,7 @@ p_char_conversion(void)
|
||||
return(TRUE);
|
||||
CharConversionTable2 = Yap_AllocCodeSpace(NUMBER_OF_CHARS*sizeof(char));
|
||||
while (CharConversionTable2 == NULL) {
|
||||
if (!Yap_growheap(FALSE, NUMBER_OF_CHARS*sizeof(char))) {
|
||||
if (!Yap_growheap(FALSE, NUMBER_OF_CHARS*sizeof(char), NULL)) {
|
||||
Yap_Error(SYSTEM_ERROR, TermNil, Yap_ErrorMessage);
|
||||
return(FALSE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user