2008-02-06 15:06:50 -08:00
|
|
|
# The Microsoft C Runtime source code to which this document refers is available
|
|
|
|
# directly from Microsoft Corporation, under a separate license.
|
|
|
|
# Please ensure that if you are using that source code, you have appropriate
|
|
|
|
# rights to use it. By providing you access to this file, Mozilla Corporation
|
|
|
|
# and its affiliates do not purport to grant any rights in that source code.
|
|
|
|
# Binaries are available under separate licenses at
|
2009-09-22 13:00:18 -07:00
|
|
|
# http://www.microsoft.com/downloads/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en
|
|
|
|
diff -re crt/src/_sample_.rc crtsrc/_sample_.rc
|
2008-03-05 11:09:52 -08:00
|
|
|
41c
|
|
|
|
VALUE "ProductName", "Mozilla Custom C Runtime"
|
|
|
|
.
|
|
|
|
39c
|
|
|
|
VALUE "OriginalFilename", "MOZCRT19.DLL"
|
|
|
|
.
|
|
|
|
37c
|
|
|
|
VALUE "OriginalFilename", "MOZCRT19D.DLL"
|
|
|
|
.
|
|
|
|
33c
|
|
|
|
VALUE "InternalName", "MOZCRT19.DLL"
|
|
|
|
.
|
|
|
|
31c
|
|
|
|
VALUE "InternalName", "MOZCRT19D.DLL"
|
|
|
|
.
|
|
|
|
27c
|
|
|
|
VALUE "CompanyName", "Mozilla Foundation"
|
|
|
|
.
|
2009-09-22 13:00:18 -07:00
|
|
|
diff -re crt/src/crt0.c crtsrc/crt0.c
|
|
|
|
212c
|
|
|
|
/*
|
|
|
|
* this used to happen in _mtinit, but we need it before malloc
|
|
|
|
*/
|
|
|
|
_init_pointers(); /* initialize global function pointers */
|
2009-08-17 10:13:37 -07:00
|
|
|
|
2009-09-22 13:00:18 -07:00
|
|
|
if ( malloc_init_hard() ) /* initialize heap */
|
2009-08-17 10:13:37 -07:00
|
|
|
.
|
2009-09-22 13:00:18 -07:00
|
|
|
87a
|
2009-08-17 10:13:37 -07:00
|
|
|
extern BOOL malloc_init_hard(void);
|
|
|
|
.
|
2009-09-22 13:00:18 -07:00
|
|
|
diff -re crt/src/crt0dat.c crtsrc/crt0dat.c
|
|
|
|
837d
|
|
|
|
826d
|
|
|
|
diff -re crt/src/crtdll.c crtsrc/crtdll.c
|
|
|
|
31,40d
|
|
|
|
diff -re crt/src/crtexe.c crtsrc/crtexe.c
|
|
|
|
322,324d
|
|
|
|
35,45d
|
|
|
|
diff -re crt/src/crtheap.c crtsrc/crtheap.c
|
2008-02-06 15:06:50 -08:00
|
|
|
61c
|
|
|
|
pv = calloc(count, size);
|
|
|
|
.
|
|
|
|
58,59d
|
2009-09-22 13:00:18 -07:00
|
|
|
diff -re crt/src/crtlib.c crtsrc/crtlib.c
|
|
|
|
686,693d
|
|
|
|
355d
|
|
|
|
339a
|
|
|
|
malloc_shutdown();
|
2008-02-06 15:06:50 -08:00
|
|
|
|
|
|
|
.
|
2009-09-22 13:00:18 -07:00
|
|
|
298d
|
|
|
|
279d
|
|
|
|
249,250d
|
|
|
|
239d
|
|
|
|
226c
|
2008-02-06 15:06:50 -08:00
|
|
|
/*
|
|
|
|
* this used to happen in _mtinit, but we need it before malloc
|
|
|
|
*/
|
|
|
|
_init_pointers(); /* initialize global function pointers */
|
|
|
|
|
2008-02-08 21:46:59 -08:00
|
|
|
if ( malloc_init_hard() ) /* initialize heap */
|
2008-02-06 15:06:50 -08:00
|
|
|
.
|
|
|
|
43a
|
2008-02-08 21:46:59 -08:00
|
|
|
extern BOOL malloc_init_hard(void);
|
2008-02-06 15:06:50 -08:00
|
|
|
extern void malloc_shutdown(void);
|
|
|
|
|
|
|
|
.
|
2009-09-22 13:00:18 -07:00
|
|
|
diff -re crt/src/dllcrt0.c crtsrc/dllcrt0.c
|
|
|
|
189,190d
|
|
|
|
136d
|
|
|
|
126d
|
|
|
|
111d
|
|
|
|
106,108d
|
|
|
|
diff -re crt/src/intel/_sample_.def crtsrc/intel/_sample_.def
|
|
|
|
1198d
|
|
|
|
718,719d
|
|
|
|
664a
|
2008-02-26 16:55:45 -08:00
|
|
|
posix_memalign
|
|
|
|
.
|
2009-09-22 13:00:18 -07:00
|
|
|
638a
|
2008-02-26 16:55:45 -08:00
|
|
|
memalign
|
|
|
|
.
|
2009-09-22 13:00:18 -07:00
|
|
|
495a
|
2008-02-26 16:55:45 -08:00
|
|
|
malloc_usable_size
|
|
|
|
.
|
2009-10-03 00:21:30 -07:00
|
|
|
467a
|
|
|
|
jemalloc_stats
|
|
|
|
.
|
2009-09-22 13:00:18 -07:00
|
|
|
331,336d
|
|
|
|
319d
|
2008-02-06 15:06:50 -08:00
|
|
|
313,314d
|
|
|
|
81d
|
|
|
|
9c
|
|
|
|
LIBRARY MOZCRT19
|
|
|
|
.
|
2009-09-22 13:00:18 -07:00
|
|
|
diff -re crt/src/internal.h crtsrc/internal.h
|
|
|
|
413a
|
2008-02-06 15:06:50 -08:00
|
|
|
#endif
|
|
|
|
.
|
2009-09-22 13:00:18 -07:00
|
|
|
409c
|
2008-02-06 15:06:50 -08:00
|
|
|
#if 0
|
|
|
|
.
|
2009-09-22 13:00:18 -07:00
|
|
|
diff -re crt/src/makefile crtsrc/makefile
|
|
|
|
1873c
|
2009-08-17 10:13:37 -07:00
|
|
|
-def:$(DEFFILE2_DIR)\sample_p.def
|
|
|
|
.
|
2009-09-22 13:00:18 -07:00
|
|
|
1841c
|
2009-08-17 10:13:37 -07:00
|
|
|
$(DEFFILE2_DIR)\sample_p.def $(CPPSRC_OBJS_DLL:*=dll) \
|
|
|
|
.
|
2009-09-22 13:00:18 -07:00
|
|
|
1771a
|
2008-02-06 15:06:50 -08:00
|
|
|
$(DEFFILE_DIR)\$(RETAIL_LIB_NAME).def : $(DEFFILE_DIR)\_sample_.def
|
|
|
|
copy $** $@
|
|
|
|
.
|
2009-09-22 13:00:18 -07:00
|
|
|
1290d
|
|
|
|
1235,1237d
|
|
|
|
760c
|
2008-02-06 15:06:50 -08:00
|
|
|
dll_ :: $(OBJROOT) $(OBJCPUDIR) $(OBJDIR_DLL) $(OBJDIR_DLL)\$(PURE_OBJ_DIR) \
|
|
|
|
$(OBJDIR_DLL)\$(CPP_OBJ_DIR) \
|
|
|
|
$(RELDIR_CPU) $(PDBDIR_CPU_DLL) $(MAKE_DIRS_DLL)
|
|
|
|
.
|
2009-09-22 13:00:18 -07:00
|
|
|
340c
|
2008-02-06 15:06:50 -08:00
|
|
|
CC_OPTS_BASE=-c -nologo -Zlp8 -W3 -GFy -DWIND32
|
|
|
|
.
|
2009-09-22 13:00:18 -07:00
|
|
|
213d
|
2009-08-17 10:13:37 -07:00
|
|
|
21,24c
|
2008-02-06 15:06:50 -08:00
|
|
|
RETAIL_DLL_NAME=MOZCRT19
|
2009-04-20 03:56:23 -07:00
|
|
|
RETAIL_LIB_NAME=mozcrt19
|
2009-08-17 10:13:37 -07:00
|
|
|
RETAIL_DLLCPP_NAME=MOZCPP19
|
|
|
|
RETAIL_LIBCPP_NAME=mozcpp19
|
2008-02-06 15:06:50 -08:00
|
|
|
.
|
2009-09-22 13:00:18 -07:00
|
|
|
diff -re crt/src/makefile.inc crtsrc/makefile.inc
|
|
|
|
1636a
|
2008-02-06 15:06:50 -08:00
|
|
|
$(OBJDIR)\unhandld.obj: $(PREOBJDIR)\unhandld.obj
|
|
|
|
copy $(PREOBJDIR)\unhandld.obj $@
|
2009-08-17 10:13:37 -07:00
|
|
|
|
2008-02-06 15:06:50 -08:00
|
|
|
.
|
2009-09-22 13:00:18 -07:00
|
|
|
623d
|
|
|
|
621d
|
|
|
|
405d
|
|
|
|
344,356c
|
|
|
|
$(OBJDIR)\jemalloc.obj \
|
|
|
|
.
|
|
|
|
336,337d
|
|
|
|
331,332d
|
|
|
|
329d
|
|
|
|
325d
|
|
|
|
321,322d
|
|
|
|
diff -re crt/src/makefile.sub crtsrc/makefile.sub
|
|
|
|
66c
|
2009-10-08 08:07:15 -07:00
|
|
|
CFLAGS=$(CFLAGS) -O2 -DMOZ_MEMORY=1 -DMOZ_MEMORY_WINDOWS=1
|
2009-09-22 13:00:18 -07:00
|
|
|
.
|
|
|
|
diff -re crt/src/malloc.h crtsrc/malloc.h
|
2008-02-06 15:06:50 -08:00
|
|
|
189a
|
|
|
|
#endif
|
|
|
|
.
|
|
|
|
177a
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
.
|
|
|
|
83a
|
|
|
|
#endif
|
|
|
|
.
|
|
|
|
70a
|
|
|
|
#if 0
|
|
|
|
.
|
2009-09-22 13:00:18 -07:00
|
|
|
diff -re crt/src/mlock.c crtsrc/mlock.c
|
2008-02-06 15:06:50 -08:00
|
|
|
274c
|
|
|
|
#endif
|
|
|
|
.
|
|
|
|
262a
|
|
|
|
#if 0
|
|
|
|
.
|
2009-09-22 13:00:18 -07:00
|
|
|
diff -re crt/src/new.cpp crtsrc/new.cpp
|
2008-02-06 15:06:50 -08:00
|
|
|
60d
|
|
|
|
52,55d
|
|
|
|
37,38c
|
|
|
|
break;
|
|
|
|
.
|
2009-09-22 13:00:18 -07:00
|
|
|
diff -re crt/src/nothrownew.cpp crtsrc/nothrownew.cpp
|
|
|
|
38c
|
2008-02-06 15:06:50 -08:00
|
|
|
#endif
|
|
|
|
.
|
|
|
|
31a
|
|
|
|
#if 1
|
|
|
|
break;
|
|
|
|
#else
|
|
|
|
|
|
|
|
.
|
2009-09-22 13:00:18 -07:00
|
|
|
diff -re crt/src/sample_p.def crtsrc/sample_p.def
|
2009-08-17 10:13:37 -07:00
|
|
|
8c
|
2009-09-22 13:00:18 -07:00
|
|
|
LIBRARY mozcpp19
|
2009-08-17 10:13:37 -07:00
|
|
|
.
|
2009-09-22 13:00:18 -07:00
|
|
|
diff -re crt/src/sample_p.rc crtsrc/sample_p.rc
|
2009-08-17 10:13:37 -07:00
|
|
|
41c
|
|
|
|
VALUE "ProductName", "Mozilla Custom C++ Runtime"
|
|
|
|
.
|
|
|
|
39c
|
|
|
|
VALUE "OriginalFilename", "MOZCPP19.DLL"
|
|
|
|
.
|
|
|
|
37c
|
|
|
|
VALUE "OriginalFilename", "MOZCPP19D.DLL"
|
|
|
|
.
|
|
|
|
33c
|
|
|
|
VALUE "InternalName", "MOZCPP19.DLL"
|
|
|
|
.
|
|
|
|
31c
|
|
|
|
VALUE "InternalName", "MOZCPP19D.DLL"
|
|
|
|
.
|
|
|
|
27c
|
|
|
|
VALUE "CompanyName", "Mozilla Foundation"
|
|
|
|
.
|
2009-09-22 13:00:18 -07:00
|
|
|
diff -re crt/src/tidtable.c crtsrc/tidtable.c
|
|
|
|
360,361d
|