1# The Microsoft C Runtime source code to which this document refers is available 2# directly from Microsoft Corporation, under a separate license. 3# Please ensure that if you are using that source code, you have appropriate 4# rights to use it. By providing you access to this file, Mozilla Corporation 5# and its affiliates do not purport to grant any rights in that source code. 6# Binaries are available under separate licenses at 7# http://www.microsoft.com/downloads/details.aspx?familyid=200b2fd9-ae1a-4a14-984d-389c36f85647&displaylang=en 8diff -re crt/src/crt0.c crt-sp1/src/crt0.c 9273c 10 /* 11 * this used to happen in _mtinit, but we need it before malloc 12 */ 13 _init_pointers(); /* initialize global function pointers */ 14 15 if ( malloc_init_hard() ) /* initialize heap */ 16. 17101a 18extern BOOL malloc_init_hard(void); 19. 20diff -re crt/src/_sample_.rc crt-sp1/src/_sample_.rc 2141c 22 VALUE "ProductName", "Mozilla Custom C Runtime" 23. 2439c 25 VALUE "OriginalFilename", "MOZCRT19.DLL" 26. 2737c 28 VALUE "OriginalFilename", "MOZCRT19D.DLL" 29. 3033c 31 VALUE "InternalName", "MOZCRT19.DLL" 32. 3331c 34 VALUE "InternalName", "MOZCRT19D.DLL" 35. 3627c 37 VALUE "CompanyName", "Mozilla Foundation" 38. 39 40diff -re crt/src/crt0dat.c crt-sp1/src/crt0dat.c 41789d 42778d 43diff -re crt/src/crtexe.c crt-sp1/src/crtexe.c 44333,335d 45diff -re crt/src/crtheap.c crt-sp1/src/crtheap.c 4661c 47 pv = calloc(count, size); 48. 4958,59d 50diff -re crt/src/crtlib.c crt-sp1/src/crtlib.c 51779,786d 52416d 53400a 54 malloc_shutdown(); 55 56. 57359d 58340d 59310,311d 60300d 61287c 62 /* 63 * this used to happen in _mtinit, but we need it before malloc 64 */ 65 _init_pointers(); /* initialize global function pointers */ 66 67 if ( malloc_init_hard() ) /* initialize heap */ 68. 6943a 70extern BOOL malloc_init_hard(void); 71extern void malloc_shutdown(void); 72 73. 74diff -re crt/src/dllcrt0.c crt-sp1/src/dllcrt0.c 75236,237d 76183d 77173d 78158d 79153,155d 80diff -re crt/src/intel/_sample_.def crt-sp1/src/intel/_sample_.def 811208d 82723,724d 83669a 84 posix_memalign 85. 86643a 87 memalign 88. 89500a 90 malloc_usable_size 91. 92336,341d 93324d 94313,314d 9581d 969c 97LIBRARY MOZCRT19 98. 99diff -re crt/src/internal.h crt-sp1/src/internal.h 100407a 101#endif 102. 103403a 104#if 0 105. 106diff -re crt/src/makefile crt-sp1/src/makefile 1071745a 108$(DEFFILE_DIR)\$(RETAIL_LIB_NAME).def : $(DEFFILE_DIR)\_sample_.def 109 copy $** $@ 110. 1111228,1230d 112754c 113dll_ :: $(OBJROOT) $(OBJCPUDIR) $(OBJDIR_DLL) $(OBJDIR_DLL)\$(PURE_OBJ_DIR) \ 114 $(OBJDIR_DLL)\$(CPP_OBJ_DIR) \ 115 $(RELDIR_CPU) $(PDBDIR_CPU_DLL) $(MAKE_DIRS_DLL) 116. 117334c 118CC_OPTS_BASE=-c -nologo -Zlp8 -W3 -GFy -DWIND32 119. 120307,309c 121LINKER=link 122LINKLIB=link -lib 123LINKIMPLIB=link -lib 124. 125302,304c 126LINKER=link -nologo 127LINKLIB=link -lib -nologo 128LINKIMPLIB=link -lib -nologo 129. 130209d 13121,22c 132RETAIL_DLL_NAME=MOZCRT19 133RETAIL_LIB_NAME=mozcrt19 134. 135diff -re crt/src/makefile.inc crt-sp1/src/makefile.inc 1361623a 137 138$(OBJDIR)\unhandld.obj: $(PREOBJDIR)\unhandld.obj 139 copy $(PREOBJDIR)\unhandld.obj $@ 140. 141618d 142402d 143342,353c 144 $(OBJDIR)\jemalloc.obj \ 145. 146334,335d 147329,330d 148327d 149323d 150320d 151diff -re crt/src/makefile.sub crt-sp1/src/makefile.sub 152103c 153LIB=link -lib -nologo 154. 15569c 156CFLAGS=$(CFLAGS) -O2 -DMOZ_MEMORY=1 -DMOZ_MEMORY_WINDOWS=1 157. 158diff -re crt/src/malloc.h crt-sp1/src/malloc.h 159189a 160#endif 161. 162177a 163 164#if 0 165. 166161d 16783a 168#endif 169. 17070a 171#if 0 172. 173diff -re crt/src/mlock.c crt-sp1/src/mlock.c 174274c 175#endif 176. 177262a 178#if 0 179. 180diff -re crt/src/new.cpp crt-sp1/src/new.cpp 18160d 18252,55d 18337,38c 184 break; 185. 186diff -re crt/src/nothrownew.cpp crt-sp1/src/nothrownew.cpp 18737a 188#endif 189. 19031a 191#if 1 192 break; 193#else 194 195. 196diff -re crt/src/tidtable.c crt-sp1/src/tidtable.c 197393,394d 198