Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaerr committed Dec 27, 2024
1 parent e29b22a commit e89607c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libc/c86.inc
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ ARFLAGS_SUB=r
$(CC) $(CFLAGS) $< $*.as

%.ocj: %.as
cp $*.as /tmp
# cp $*.as /tmp
$(AS) $(ASFLAGS) -o $*.ocj $*.as
4 changes: 2 additions & 2 deletions libc/malloc/fmemalloc.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#ifndef __C86__
#include <malloc.h>
#include <unistd.h>
#include <errno.h>
#include <sys/sysctl.h>
/* fmemalloc/fmemfree - allocate/free from main memory */

#ifndef __C86__
#define DEBUG 1 /* =1 use sysctl, =2 debug output */
#endif

#if DEBUG
#define debug(...) do { if (debug_level > 1) __dprintf(__VA_ARGS__); } while (0)
Expand Down Expand Up @@ -52,4 +53,3 @@ int fmemfree(void __far *ptr)
}
return _fmemfree(FP_SEG(ptr));
}
#endif

0 comments on commit e89607c

Please sign in to comment.