pch and license header fixes part 2

svn path=/trunk/; revision=19568
This commit is contained in:
Steven Edwards 2005-11-25 19:29:16 +00:00
parent 7d45b5479f
commit 61ad339b29
53 changed files with 181 additions and 92 deletions

View file

@ -1,8 +1,14 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/crt/??????
* PURPOSE: Unknown
* PROGRAMER: Unknown
* UPDATE HISTORY:
* 25/11/05: Added license header
*/
#include "precomp.h" #include "precomp.h"
#include <ctype.h>
#include <direct.h>
#include <stdlib.h>
#include <errno.h>
/* /*
* @implemented * @implemented

View file

@ -1,6 +1,16 @@
#include <float.h> /*
#include <internal/ieee.h> * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/crt/??????
* PURPOSE: Unknown
* PROGRAMER: Unknown
* UPDATE HISTORY:
* 25/11/05: Added license header
*/
#include "precomp.h"
#include <internal/ieee.h>
/* /*
* @implemented * @implemented

View file

@ -1,4 +1,14 @@
#include <float.h> /*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/crt/??????
* PURPOSE: Unknown
* PROGRAMER: Unknown
* UPDATE HISTORY:
* 25/11/05: Added license header
*/
#include "precomp.h"
unsigned int _statusfp( void ); unsigned int _statusfp( void );

View file

@ -1,6 +1,6 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <float.h> #include "precomp.h"
#define X87_CW_IM (1<<0) /* Invalid operation mask */ #define X87_CW_IM (1<<0) /* Invalid operation mask */
#define X87_CW_DM (1<<1) /* Denormal operand mask */ #define X87_CW_DM (1<<1) /* Denormal operand mask */

View file

@ -1,4 +1,14 @@
#include <float.h> /*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/crt/??????
* PURPOSE: Unknown
* PROGRAMER: Unknown
* UPDATE HISTORY:
* 25/11/05: Added license header
*/
#include "precomp.h"
#include <internal/ieee.h> #include <internal/ieee.h>
/* /*

View file

@ -1,4 +1,14 @@
#include <float.h> /*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/crt/??????
* PURPOSE: Unknown
* PROGRAMER: Unknown
* UPDATE HISTORY:
* 25/11/05: Added license header
*/
#include "precomp.h"
#include <math.h> #include <math.h>
#include <internal/ieee.h> #include <internal/ieee.h>

View file

@ -1,5 +1,14 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/crt/??????
* PURPOSE: Unknown
* PROGRAMER: Unknown
* UPDATE HISTORY:
* 25/11/05: Added license header
*/
#include "precomp.h" #include "precomp.h"
#include <float.h>
#include <internal/tls.h> #include <internal/tls.h>
/* /*

View file

@ -1,5 +1,14 @@
#include <float.h> /*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/crt/??????
* PURPOSE: Unknown
* PROGRAMER: Unknown
* UPDATE HISTORY:
* 25/11/05: Added license header
*/
#include "precomp.h"
/* /*
* @unimplemented * @unimplemented

View file

@ -20,8 +20,6 @@
#include "precomp.h" #include "precomp.h"
#include <float.h>
double _logb (double __x) double _logb (double __x)
{ {
register double __val; register double __val;

View file

@ -1,5 +1,14 @@
#include <float.h> /*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/crt/??????
* PURPOSE: Unknown
* PROGRAMER: Unknown
* UPDATE HISTORY:
* 25/11/05: Added license header
*/
#include "precomp.h"
/* /*
* @implemented * @implemented

View file

@ -1,4 +1,14 @@
#include <float.h> /*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/crt/??????
* PURPOSE: Unknown
* PROGRAMER: Unknown
* UPDATE HISTORY:
* 25/11/05: Added license header
*/
#include "precomp.h"
#include <internal/ieee.h> #include <internal/ieee.h>
/* /*

View file

@ -1,4 +1,14 @@
#include <float.h> /*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/crt/??????
* PURPOSE: Unknown
* PROGRAMER: Unknown
* UPDATE HISTORY:
* 25/11/05: Added license header
*/
#include "precomp.h"
/* /*
* @implemented * @implemented

View file

@ -13,14 +13,13 @@
#ifndef __CRT_INTERNAL_FILE_H #ifndef __CRT_INTERNAL_FILE_H
#define __CRT_INTERNAL_FILE_H #define __CRT_INTERNAL_FILE_H
#include <stdio.h> #ifndef _CRT_PRECOMP_H
#include <fcntl.h> #error DO NOT INCLUDE THIS HEADER DIRECTLY
#endif
#include <stdarg.h> #include <stdarg.h>
#include <time.h> #include <time.h>
#include <windef.h>
#include <winbase.h>
#ifndef _IORMONCL #ifndef _IORMONCL
#define _IORMONCL 004000 /* remove on close, for temp files */ #define _IORMONCL 004000 /* remove on close, for temp files */
#endif #endif

View file

@ -9,7 +9,6 @@
*/ */
#include "precomp.h" #include "precomp.h"
#include <fcntl.h>
#define NDEBUG #define NDEBUG
#include <internal/debug.h> #include <internal/debug.h>

View file

@ -1,8 +1,6 @@
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#include "precomp.h" #include "precomp.h"
#include <fcntl.h>
int _fmode = O_TEXT; int _fmode = O_TEXT;
/* /*

View file

@ -1,8 +1,6 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include "precomp.h" #include "precomp.h"
#include <sys/types.h>
/* /*
* @implemented * @implemented
*/ */

View file

@ -9,7 +9,6 @@
*/ */
#include "precomp.h" #include "precomp.h"
#include <fcntl.h>
#define NDEBUG #define NDEBUG
#include <internal/debug.h> #include <internal/debug.h>

View file

@ -16,7 +16,6 @@
#if !defined(NDEBUG) && defined(DBG) #if !defined(NDEBUG) && defined(DBG)
#include <stdarg.h> #include <stdarg.h>
#endif #endif
#include <fcntl.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <share.h> #include <share.h>

View file

@ -6,7 +6,6 @@
#include "precomp.h" #include "precomp.h"
#include <locale.h> #include <locale.h>
#include <limits.h>
#include <internal/tls.h> #include <internal/tls.h>
#define NDEBUG #define NDEBUG

View file

@ -8,8 +8,7 @@
* 12/04/99: Created * 12/04/99: Created
*/ */
#include <mbctype.h> #include "precomp.h"
#include <ctype.h>
/* /*
* code page 952 only * code page 952 only

View file

@ -1,3 +1,14 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/crt/??????
* PURPOSE: Unknown
* PROGRAMER: Unknown
* UPDATE HISTORY:
* 25/11/05: Added license header
*/
#include "precomp.h"
#include <mbstring.h> #include <mbstring.h>
#include <mbctype.h> #include <mbctype.h>

View file

@ -8,8 +8,7 @@
* 12/04/99: Created * 12/04/99: Created
*/ */
#include <mbctype.h> #include "precomp.h"
#include <ctype.h>
/* /*
* code page 952 only * code page 952 only

View file

@ -7,9 +7,9 @@
* UPDATE HISTORY: * UPDATE HISTORY:
* 12/04/99: Created * 12/04/99: Created
*/ */
#include "precomp.h"
#include <mbstring.h> #include <mbstring.h>
#include <mbctype.h> #include <mbctype.h>
#include <ctype.h>
/* /*
* @implemented * @implemented

View file

@ -1,12 +1,20 @@
#ifndef _CRT_PRECOMP_H
#define _CRT_PRECOMP_H
/* Some global constants to hack around the msvc build */
#define _CRT_SECURE_NO_DEPRECATE #define _CRT_SECURE_NO_DEPRECATE
#define _INC_WTIME_INL #define _INC_WTIME_INL
#define _INC_UTIME_INL #define _INC_UTIME_INL
#define _INC_TIME_INL #define _INC_TIME_INL
/* Headers to be compiled */
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h>
#include <float.h>
#include <malloc.h> #include <malloc.h>
#include <math.h> #include <math.h>
#include <limits.h>
#define WIN32_NO_STATUS #define WIN32_NO_STATUS
#include <windows.h> #include <windows.h>
@ -17,5 +25,8 @@
#include <stdint.h> #include <stdint.h>
#endif #endif
/* This file is a hack and should for the most part go away */ /* CRT Internal data */
#include <internal/file.h> #include <internal/file.h>
#include <internal/ieee.h>
#endif /* _CRT_PRECOMP_H */

View file

@ -1,6 +1,5 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include "precomp.h" #include "precomp.h"
#include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>

View file

@ -11,7 +11,6 @@
/* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include "precomp.h" #include "precomp.h"
#include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
/* /*

View file

@ -26,7 +26,6 @@
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#include "precomp.h" #include "precomp.h"
//#include <msvcrt/ctype.h>
#ifndef WEOF #ifndef WEOF
#define WEOF (wchar_t)(0xFFFF) #define WEOF (wchar_t)(0xFFFF)
#endif #endif

View file

@ -2,8 +2,6 @@
/* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include "precomp.h" #include "precomp.h"
#include <sys/types.h>
#include <wchar.h>
int _readcnv(int fn, void* buf, size_t siz); int _readcnv(int fn, void* buf, size_t siz);

View file

@ -2,7 +2,6 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include "precomp.h" #include "precomp.h"
#include <wchar.h> #include <wchar.h>
#include <sys/types.h>
int cntcr(char* bufp, int bufsiz); int cntcr(char* bufp, int bufsiz);
int convert(char* endp, int bufsiz, int n); int convert(char* endp, int bufsiz, int n);

View file

@ -27,14 +27,10 @@
#include "precomp.h" #include "precomp.h"
#include <sys/types.h>
#include <fcntl.h>
#include <tchar.h> #include <tchar.h>
//might change fopen(file,mode) -> fsopen(file,mode,_SH_DENYNO); //might change fopen(file,mode) -> fsopen(file,mode,_SH_DENYNO);
FILE* _tfopen(const _TCHAR *file, const _TCHAR *mode) FILE* _tfopen(const _TCHAR *file, const _TCHAR *mode)
{ {
FILE *f; FILE *f;

View file

@ -2,8 +2,6 @@
#include "precomp.h" #include "precomp.h"
#include <sys/types.h>
#include <fcntl.h>
#include <tchar.h> #include <tchar.h>
/* /*

View file

@ -4,8 +4,6 @@
#include "precomp.h" #include "precomp.h"
#include <fcntl.h>
/* /*
* @implemented * @implemented
*/ */

View file

@ -11,10 +11,7 @@
#include "precomp.h" #include "precomp.h"
#include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <stdlib.h>
#include <fcntl.h>
#include <share.h> #include <share.h>
#include <tchar.h> #include <tchar.h>

View file

@ -3,9 +3,6 @@
#include "precomp.h" #include "precomp.h"
#include <fcntl.h>
#include <errno.h>
/* /*
* @implemented * @implemented
*/ */

View file

@ -21,7 +21,6 @@ Cambridge, MA 02139, USA. */
#include "precomp.h" #include "precomp.h"
#include <wchar.h> #include <wchar.h>
#include <limits.h>
#include <tchar.h> #include <tchar.h>
#undef sprintf #undef sprintf

View file

@ -22,7 +22,6 @@ Cambridge, MA 02139, USA. */
#define _UNICODE #define _UNICODE
#include "precomp.h" #include "precomp.h"
#include <wchar.h> #include <wchar.h>
#include <limits.h>
#include <tchar.h> #include <tchar.h>
#undef sprintf #undef sprintf

View file

@ -4,7 +4,6 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include "precomp.h" #include "precomp.h"
#include <fcntl.h>
#include <share.h> #include <share.h>
FILE * __alloc_file(void); FILE * __alloc_file(void);

View file

@ -59,7 +59,6 @@ vfwprintf(FILE *f, const wchar_t *fmt, va_list ap)
* Appropiated for the reactos kernel, March 1998 -- David Welch * Appropiated for the reactos kernel, March 1998 -- David Welch
*/ */
#include <ctype.h>
#include <math.h> #include <math.h>
#include <internal/ieee.h> #include <internal/ieee.h>

View file

@ -1,7 +1,6 @@
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#include "precomp.h" #include "precomp.h"
#include <limits.h>
#include <tchar.h> #include <tchar.h>
/* /*

View file

@ -1,6 +1,14 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/crt/??????
* PURPOSE: Unknown
* PROGRAMER: Unknown
* UPDATE HISTORY:
* 25/11/05: Added license header
*/
#include <ctype.h> #include "precomp.h"
#include <stdlib.h>
/* /*
* @implemented * @implemented

View file

@ -1,6 +1,5 @@
/* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */
#include <stdlib.h> #include "precomp.h"
#include <float.h>
char *ecvtbuf (double, int, int *, int *, char *); char *ecvtbuf (double, int, int *, int *, char *);

View file

@ -1,6 +1,5 @@
/* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */
#include <stdlib.h> #include "precomp.h"
#include <float.h>
char *fcvtbuf (double, int, int *, int *, char *); char *fcvtbuf (double, int, int *, int *, char *);

View file

@ -1,7 +1,14 @@
#include "precomp.h" /*
#include <stdlib.h> * COPYRIGHT: See COPYING in the top level directory
#include <ctype.h> * PROJECT: ReactOS system libraries
* FILE: lib/crt/??????
* PURPOSE: Unknown
* PROGRAMER: Unknown
* UPDATE HISTORY:
* 25/11/05: Added license header
*/
#include "precomp.h"
#if 1 #if 1

View file

@ -1,9 +1,6 @@
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#include "precomp.h" #include "precomp.h"
#include <limits.h>
#include <ctype.h>
/* /*
* @implemented * @implemented
*/ */

View file

@ -1,7 +1,6 @@
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#include <stdlib.h> #include <stdlib.h>
#include <msvcrt/ctype.h> #include <msvcrt/ctype.h>
//#include <msvcrt/unconst.h>
static double powten[] = static double powten[] =
{ {

View file

@ -1,7 +1,5 @@
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#include "precomp.h" #include "precomp.h"
#include <limits.h>
#include <ctype.h> #include <ctype.h>
/* /*

View file

@ -2,9 +2,6 @@
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#include "precomp.h" #include "precomp.h"
#include <limits.h>
#include <ctype.h>
#if defined (_MSC_VER) #if defined (_MSC_VER)
#define UINT64_MAX 0xffffffffffffffff #define UINT64_MAX 0xffffffffffffffff
#endif #endif

View file

@ -1,6 +1,14 @@
#include <stdlib.h> /*
#include <ctype.h> * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/crt/??????
* PURPOSE: Unknown
* PROGRAMER: Unknown
* UPDATE HISTORY:
* 25/11/05: Added license header
*/
#include "precomp.h"
/* /*
* @implemented * @implemented

View file

@ -1,6 +1,5 @@
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#include "precomp.h" #include "precomp.h"
#include <limits.h>
/* /*
* Convert a unicode string to an unsigned long integer. * Convert a unicode string to an unsigned long integer.

View file

@ -17,8 +17,6 @@
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#include "precomp.h" #include "precomp.h"
#include <ctype.h>
#include <wchar.h>
int int
STDCALL STDCALL

View file

@ -1,8 +1,16 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/crt/??????
* PURPOSE: Unknown
* PROGRAMER: gdalsnes
* UPDATE HISTORY:
* 25/11/05: Added license header
*/
/* $Id$ /* $Id$
*/ */
#include <stdlib.h> #include "precomp.h"
#include <string.h>
/* /*
* @implemented * @implemented

View file

@ -10,10 +10,6 @@
#include "precomp.h" #include "precomp.h"
#include <ctype.h>
#include <stdlib.h>
/* /*
* @implemented * @implemented
*/ */

View file

@ -37,7 +37,6 @@
#include "precomp.h" #include "precomp.h"
#include <fcntl.h>
#include "tzfile.h" #include "tzfile.h"
#include "posixrul.h" #include "posixrul.h"