first and last commit

This commit is contained in:
Chris Nutter committed 2023-07-08 13:03:17 -07:00
commit 1bf4efd552
2612 files changed
+636500

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
/*
* Copyright (C) 2009 Apple Inc. All rights reserved.
*
* This document is the property of Apple Inc.
* It is considered confidential and proprietary.
*
* This document may not be reproduced or transmitted in any form,
* in whole or in part, without the express written permission of
* Apple Inc.
*/
#include <sys/types.h>
#include <iostream.h>
const char *endl = "\n";
ostream cout;
ostream cerr;
+33
View File
@@ -0,0 +1,33 @@
# Copyright (C) 2009 Apple Inc. All rights reserved.
#
# This document is the property of Apple Inc.
# It is considered confidential and proprietary.
#
# This document may not be reproduced or transmitted in any form,
# in whole or in part, without the express written permission of
# Apple Inc.
#
LIBCPP_DIR := $(GET_LOCAL_DIR)
LIBCPP_BUILD := $(call TOLIBDIR,$(LIBCPP_DIR)/LIBCPP.a)
COMMONLIBS += LIBCPP
# Only process the remainder of the makefile if we are building libraries
#
ifeq ($(MAKEPHASE),libraries)
# base library files
LIBCPP_OBJS := $(LIBCPP_DIR)/iostream.o \
$(LIBCPP_DIR)/misc.o \
$(LIBCPP_DIR)/new.o
# Do not add this until we sort out why we aren't seeing
# static constructors linked into the built object.
# $(LIBCPP_DIR)/start.o
LIBCPP_OBJS := $(call TOLIBOBJDIR,$(LIBCPP_OBJS))
ALL_DEPS += $(LIBCPP_OBJS:%o=%d)
$(LIBCPP_BUILD): $(LIBCPP_OBJS)
endif
+14
View File
@@ -0,0 +1,14 @@
#include <sys.h>
extern "C" void
__cxa_pure_virtual(void)
{
panic("Pure virtual function called");
}
extern "C" int
__cxa_atexit(void (*func)(void*), void* obj, void* dso)
{
// do nothing
return 0;
}
+40
View File
@@ -0,0 +1,40 @@
/*
* Copyright (C) 2009 Apple Inc. All rights reserved.
*
* This document is the property of Apple Inc.
* It is considered confidential and proprietary.
*
* This document may not be reproduced or transmitted in any form,
* in whole or in part, without the express written permission of
* Apple Inc.
*/
#include <sys/types.h>
#include <stdlib.h>
/*
* Minimal new/delete.
*/
void *
operator new(size_t size) throw()
{
return(malloc(size));
}
void *
operator new[](size_t size) throw()
{
return(malloc(size));
}
void
operator delete(void *ptr) throw()
{
free(ptr);
}
void
operator delete[](void *ptr) throw()
{
free(ptr);
}
+19
View File
@@ -0,0 +1,19 @@
# Copyright (C) 2009 Apple Inc. All rights reserved.
#
# This document is the property of Apple Inc.
# It is considered confidential and proprietary.
#
# This document may not be reproduced or transmitted in any form,
# in whole or in part, without the express written permission of
# Apple Inc.
#
#
# C++ support is enabled by including this module. It affects both
# the library dependency list (by adding libc++) and also the build
# of the actual application.
#
WITH_CPLUSPLUS := true
OPTIONS += WITH_CPLUSPLUS=1
LIBRARY_MODULES += lib/libc++