code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
/*
* share.h
*
* Constants for file sharing functions.
*
* This file is part of the Mingw32 package.
*
* Contributors:
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* This source code is offered for use in the public domain. You may
* use, modify or di... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/share.h | C | lgpl | 1,087 |
/*
* errno.h
*
* Error numbers and access to error reporting.
*
* This file is part of the Mingw32 package.
*
* Contributors:
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* This source code is offered for use in the public domain. You may
* use, modi... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/errno.h | C | lgpl | 3,711 |
/*
* This file is part of the Mingw32 package.
*
* unistd.h maps (roughly) to io.h
*/
#ifndef __STRICT_ANSI__
#include <io.h>
#endif
| zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/unistd.h | C | lgpl | 139 |
/*
* float.h
*
* Constants related to floating point arithmetic.
*
* Also included here are some non-ANSI bits for accessing the floating
* point controller.
*
* NOTE: GCC provides float.h, and it is probably more accurate than this,
* but it doesn't include the non-standard stuff for accessing the
* ... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/float.h | C | lgpl | 6,251 |
/*
* math.h
*
* Mathematical functions.
*
* This file is part of the Mingw32 package.
*
* Contributors:
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* This source code is offered for use in the public domain. You may
* use, modify or distribute it fr... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/math.h | C | lgpl | 11,148 |
/*
* ctype.h
*
* Functions for testing character types and converting characters.
*
* This file is part of the Mingw32 package.
*
* Contributors:
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* This source code is offered for use in the public domain. Y... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/ctype.h | C | lgpl | 7,177 |
/*
* This file is part of the Mingw32 package.
*
* memory.h maps to the standard string.h header.
*/
#ifndef __STRICT_ANSI__
#include <string.h>
#endif
| zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/memory.h | C | lgpl | 157 |
/*
* assert.h
*
* Define the assert macro for debug output.
*
* This file is part of the Mingw32 package.
*
* Contributors:
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* This source code is offered for use in the public domain. You may
* use, modify... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/assert.h | C | lgpl | 1,401 |
/*
* string.h
*
* Definitions for memory and string functions.
*
* This file is part of the Mingw32 package.
*
* Contributors:
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* This source code is offered for use in the public domain. You may
* use, modi... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/string.h | C | lgpl | 5,997 |
/*
* dos.h
*
* DOS-specific functions and structures.
*
* This file is part of the Mingw32 package.
*
* Contributors:
* Created by J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* This source code is offered for use in the public domain. You may
* use... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/dos.h | C | lgpl | 2,651 |
#ifndef _EXCPT_H
#define _EXCPT_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif
/* FIXME: This will make some code compile. The programs will most
likely crash when an exception is raised, but at least they will
compile. */
#ifdef __GNUC__
#define __try
#define __except(x) if (0) /* don't execute handler */
... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/excpt.h | C | lgpl | 425 |
/*
* setjmp.h
*
* Declarations supporting setjmp and longjump, a method for avoiding
* the normal function call return sequence. (Bleah!)
*
* This file is part of the Mingw32 package.
*
* Contributors:
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* Th... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/setjmp.h | C | lgpl | 1,735 |
/*
* direct.h
*
* Functions for manipulating paths and directories (included from io.h)
* plus functions for setting the current drive.
*
* This file is part of the Mingw32 package.
*
* Contributors:
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* This ... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/direct.h | C | lgpl | 2,108 |
#ifndef _FENV_H
#define _FENV_H
/*
For now, support only for the basic abstraction of flags that are
either set or clear. fexcept_t could be structure that holds more info
about the fp environment.
*/
typedef unsigned short fexcept_t;
/* This 28-byte struct represents the entire floating point
environment a... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/fenv.h | C | lgpl | 2,028 |
/*
* TODO: Nothing here yet. Should provide UNIX compatibility constants
* comparible to those in limits.h and float.h.
*/
| zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/values.h | C | lgpl | 126 |
/*
* locale.h
*
* Functions and types for localization (ie. changing the appearance of
* output based on the standards of a certain country).
*
* This file is part of the Mingw32 package.
*
* Contributors:
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
*... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/locale.h | C | lgpl | 2,327 |
#ifndef _STDBOOL_H
#define _STDBOOL_H
/* ISOC99 boolean */
#define bool _Bool
#define true 1
#define false 0
#endif /* _STDBOOL_H */
| zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/stdbool.h | C | lgpl | 136 |
#ifndef _STDDEF_H
#define _STDDEF_H
#define NULL ((void *)0)
typedef __SIZE_TYPE__ size_t;
typedef __WCHAR_TYPE__ wchar_t;
typedef __PTRDIFF_TYPE__ ptrdiff_t;
#define offsetof(type, field) ((size_t) &((type *)0)->field)
/* need to do that because of glibc 2.1 bug (should have a way to test
presence of 'long long' ... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/stddef.h | C | lgpl | 596 |
/*
* This file is part of the Mingw32 package.
*
* unistd.h maps (roughly) to io.h
*/
#ifndef __STRICT_ANSI__
#include <io.h>
#endif
| zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/sys/unistd.h | C | lgpl | 138 |
/*
* types.h
*
* The definition of constants, data types and global variables.
*
* This file is part of the Mingw32 package.
*
* Contributors:
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
* Lots of types supplied by Pedro A. Aranda <paag@tid.es>
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* Thi... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/sys/types.h | C | lgpl | 2,104 |
/*
* locking.h
*
* Constants for the mode parameter of the locking function.
*
* This file is part of the Mingw32 package.
*
* Contributors:
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* This source code is offered for use in the public domain. You may... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/sys/locking.h | C | lgpl | 1,301 |
/*
* timeb.h
*
* Support for the UNIX System V ftime system call.
*
* This file is part of the Mingw32 package.
*
* Contributors:
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* This source code is offered for use in the public domain. You may
* use, m... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/sys/timeb.h | C | lgpl | 1,407 |
/*
* This file is part of the Mingw32 package.
*
* This fcntl.h maps to the root fcntl.h
*/
#ifndef __STRICT_ANSI__
#include <fcntl.h>
#endif
| zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/sys/fcntl.h | C | lgpl | 146 |
#include <time.h>
| zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/sys/time.h | C | lgpl | 20 |
/*
* stat.h
*
* Symbolic constants for opening and creating files, also stat, fstat and
* chmod functions.
*
* This file is part of the Mingw32 package.
*
* Contributors:
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* This source code is offered for us... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/sys/stat.h | C | lgpl | 4,978 |
/*
* utime.h
*
* Support for the utime function.
*
* This file is part of the Mingw32 package.
*
* Contributors:
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* This source code is offered for use in the public domain. You may
* use, modify or distribu... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/sys/utime.h | C | lgpl | 1,791 |
/*
* This file is part of the Mingw32 package.
*
* This file.h maps to the root fcntl.h
* TODO?
*/
#ifndef __STRICT_ANSI__
#include <fcntl.h>
#endif
| zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/sys/file.h | C | lgpl | 154 |
/*
* tchar.h
*
* Unicode mapping layer for the standard C library. By including this
* file and using the 't' names for string functions
* (eg. _tprintf) you can make code which can be easily adapted to both
* Unicode and non-unicode environments. In a unicode enabled compile define
* _UNICODE before including ... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/tchar.h | C | lgpl | 10,069 |
/*
* dir.h
*
* This file OBSOLESCENT and only provided for backward compatibility.
* Please use io.h instead.
*
* This file is part of the Mingw32 package.
*
* Contributors:
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
* Mumit Khan <khan@xraylith.wisc.edu>
*
* THIS SOFTWARE IS NO... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/dir.h | C | lgpl | 739 |
/*
* malloc.h
*
* Support for programs which want to use malloc.h to get memory management
* functions. Unless you absolutely need some of these functions and they are
* not in the ANSI headers you should use the ANSI standard header files
* instead.
*
* This file is part of the Mingw32 package.
*
* Contribut... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/malloc.h | C | lgpl | 1,945 |
/*
* DIRENT.H (formerly DIRLIB.H)
*
* by M. J. Weinstein Released to public domain 1-Jan-89
*
* Because I have heard that this feature (opendir, readdir, closedir)
* it so useful for programmers coming from UNIX or attempting to port
* UNIX code, and because it is reasonably light weight, I have included
* it... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/dirent.h | C | lgpl | 2,331 |
/*
* This file is part of the Mingw32 package.
*
* mem.h maps to string.h
*/
#ifndef __STRICT_ANSI__
#include <string.h>
#endif
| zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/mem.h | C | lgpl | 132 |
/*
* stdio.h
*
* Definitions of types and prototypes of functions for standard input and
* output.
*
* NOTE: The file manipulation functions provided by Microsoft seem to
* work with either slash (/) or backslash (\) as the path separator.
*
* This file is part of the Mingw32 package.
*
* Contributors:
* C... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/stdio.h | C | lgpl | 10,358 |
/*
* io.h
*
* System level I/O functions and types.
*
* This file is part of the Mingw32 package.
*
* Contributors:
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* This source code is offered for use in the public domain. You may
* use, modify or dist... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/io.h | C | lgpl | 7,671 |
/* A conio implementation for Mingw/Dev-C++.
*
* Written by:
* Hongli Lai <hongli@telekabel.nl>
* tkorrovi <tkorrovi@altavista.net> on 2002/02/26.
* Andrew Westcott <ajwestco@users.sourceforge.net>
*
* Offered for use in the public domain without any warranty.
*/
#ifndef _CONIO_H_
#define _CONIO_H_
#include... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/conio.h | C | lgpl | 2,693 |
/*
* fcntl.h
*
* Access constants for _open. Note that the permissions constants are
* in sys/stat.h (ick).
*
* This code is part of the Mingw32 package.
*
* Contributors:
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* This source code is offered for u... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/fcntl.h | C | lgpl | 3,215 |
/* 7.8 Format conversion of integer types <inttypes.h> */
#ifndef _INTTYPES_H
#define _INTTYPES_H
#include <stdint.h>
#define __need_wchar_t
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
intmax_t quot;
intmax_t rem;
} imaxdiv_t;
#if !defined(__cplusplus) || defined(__STDC_FORMAT_MA... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/inttypes.h | C | lgpl | 5,411 |
#ifndef _STDARG_H
#define _STDARG_H
typedef char *va_list;
/* only correct for i386 */
#define va_start(ap,last) ap = ((char *)&(last)) + ((sizeof(last)+3)&~3)
#define va_arg(ap,type) (ap += (sizeof(type)+3)&~3, *(type *)(ap - ((sizeof(type)+3)&~3)))
#define va_copy(dest, src) (dest) = (src)
#define va_end(ap)
/* fi... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/stdarg.h | C | lgpl | 427 |
/*
* time.h
*
* Date and time functions and types.
*
* This file is part of the Mingw32 package.
*
* Contributors:
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* This source code is offered for use in the public domain. You may
* use, modify or distr... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/time.h | C | lgpl | 5,359 |
/*
* wchar.h
*
* Defines of all functions for supporting wide characters. Actually it
* just includes all those headers, which is not a good thing to do from a
* processing time point of view, but it does mean that everything will be
* in sync.
*
* This file is part of the Mingw32 package.
*
* THIS SOFTWARE ... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/wchar.h | C | lgpl | 9,730 |
/*
* signal.h
*
* A way to set handlers for exceptional conditions (also known as signals).
*
* This file is part of the Mingw32 package.
*
* Contributors:
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* This source code is offered for use in the public... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/signal.h | C | lgpl | 3,268 |
/*
* process.h
*
* Function calls for spawning child processes.
*
* This file is part of the Mingw32 package.
*
* Contributors:
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* This source code is offered for use in the public domain. You may
* use, mo... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/process.h | C | lgpl | 4,376 |
#ifndef _WINGDI_H
#define _WINGDI_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define WINGDIAPI
#define BI_RGB 0
#define BI_RLE8 1
#define BI_RLE4 2
#define BI_BITFIELDS 3
#define BI_JPEG 4
#define BI_PNG 5
#define LF_FACESIZE 32
#define LF_FULLFACESIZE 64
#define CA_NEG... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/winapi/wingdi.h | C | lgpl | 81,856 |
#ifndef _WINDEF_H
#define _WINDEF_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif
#ifdef __cplusplus
extern "C" {
#endif
#ifndef WINVER
#define WINVER 0x0400
#endif
#ifndef _WIN32_WINNT
#define _WIN32_WINNT WINVER
#endif
#ifndef WIN32
#define WIN32
#endif
#ifndef _WIN32
#define _WIN32
#endif
#define FAR
#define f... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/winapi/windef.h | C | lgpl | 5,067 |
#ifndef _WINNETWK_H
#define _WINNETWK_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define WNNC_NET_MSNET 0x00010000
#define WNNC_NET_LANMAN 0x00020000
#define WNNC_NET_NETWARE 0x00030000
#define WNNC_NET_VINES 0x00040000
#define WNNC_NET_10NET 0x0005... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/winapi/winnetwk.h | C | lgpl | 13,655 |
#ifndef _WINCON_H
#define _WINCON_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define FOREGROUND_BLUE 1
#define FOREGROUND_GREEN 2
#define FOREGROUND_RED 4
#define FOREGROUND_INTENSITY 8
#define BACKGROUND_BLUE 16
#define BACKGROUND_GREEN 32
#define BACKGROUND_RED 64
#d... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/winapi/wincon.h | C | lgpl | 7,480 |
#ifndef _WINREG_H
#define _WINREG_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define HKEY_CLASSES_ROOT ((HKEY)0x80000000)
#define HKEY_CURRENT_USER ((HKEY)0x80000001)
#define HKEY_LOCAL_MACHINE ((HKEY)0x80000002)
#define HKEY_USERS ((HKEY)0x80000003)
#define HKEY_PERFORM... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/winapi/winreg.h | C | lgpl | 6,334 |
#ifndef _BASETSD_H
#define _BASETSD_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif
#ifdef __GNUC__
#ifndef __int64
#define __int64 long long
#endif
#endif
#if defined(_WIN64)
#define __int3264 __int64
#define ADDRESS_TAG_BIT 0x40000000000UI64
#else /* !_WIN64 */
#define __int3264 __int32
#define ADDRESS_TAG... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/winapi/basetsd.h | C | lgpl | 3,875 |
#ifndef _BASETYPS_H
#define _BASETYPS_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif
#ifndef __OBJC__
#ifdef __cplusplus
#define EXTERN_C extern "C"
#else
#define EXTERN_C extern
#endif /* __cplusplus */
#define STDMETHODCALLTYPE __stdcall
#define STDMETHODVCALLTYPE __cdecl
#define STDAPICALLTYPE __stdcall
#def... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/winapi/basetyps.h | C | lgpl | 4,265 |
#ifndef _WINBASE_H
#define _WINBASE_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif
#define WINBASEAPI DECLSPEC_IMPORT
#ifdef __cplusplus
extern "C" {
#endif
#define SP_SERIALCOMM 1
#define PST_UNSPECIFIED 0
#define PST_RS232 1
#define PST_PARALLELPORT 2
#define PST_RS422 3
#define PST_RS423 4
#define PST_RS449 5... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/winapi/winbase.h | C | lgpl | 73,609 |
#ifndef _WINUSER_H
#define _WINUSER_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define WC_DIALOG MAKEINTATOM(0x8002)
#define FALT 16
#define FCONTROL 8
#define FNOINVERT 2
#define FSHIFT 4
#define FVIRTKEY 1
#define ATF_TIMEOUTON 1
#define ATF_ONOFFFEEDBACK 2
#define ATF... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/winapi/winuser.h | C | lgpl | 104,631 |
#ifndef _WINNT_H
#define _WINNT_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif
/* translate GCC target defines to MS equivalents. Keep this synchronized
with windows.h. */
#if defined(__i686__) && !defined(_M_IX86)
#define _M_IX86 600
#elif defined(__i586__) && !defined(_M_IX86)
#define _M_IX86 500
#elif defin... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/winapi/winnt.h | C | lgpl | 78,708 |
#ifndef _WINSVC_H
#define _WINSVC_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define SERVICES_ACTIVE_DATABASEA "ServicesActive"
#define SERVICES_ACTIVE_DATABASEW L"ServicesActive"
#define SERVICES_FAILED_DATABASEA "ServicesFailed"
#define SERVICES_FAILED_DATABASEW L"Serv... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/winapi/winsvc.h | C | lgpl | 13,515 |
#ifndef _WINERROR_H
#define _WINERROR_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif
#define ERROR_SUCCESS 0L
#define NO_ERROR 0L
#define ERROR_INVALID_FUNCTION 1L
#define ERROR_FILE_NOT_FOUND 2L
#define ERROR_PATH_NOT_FOUND 3L
#define ERROR_TOO_MANY_OPEN_FILES 4L
#define ERROR_ACCESS_DENIED 5L
#define ERROR_INVA... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/winapi/winerror.h | C | lgpl | 39,815 |
#ifndef _WINNLS_H
#define _WINNLS_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define MAX_LEADBYTES 12
#define MAX_DEFAULTCHAR 2
#define LOCALE_NOUSEROVERRIDE 0x80000000
#define LOCALE_USE_CP_ACP 0x40000000
#define LOCALE_ILANGUAGE 1
#define LOCALE_SLANGUAGE 2
#define L... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/winapi/winnls.h | C | lgpl | 21,179 |
/*
windows.h - main header file for the Win32 API
Written by Anders Norlander <anorland@hem2.passagen.se>
This file is part of a free library for the Win32 API.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITN... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/winapi/windows.h | C | lgpl | 4,054 |
#ifndef _WINVER_H
#define _WINVER_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define VS_FILE_INFO RT_VERSION
#define VS_VERSION_INFO 1
#define VS_USER_DEFINED 100
#define VS_FFI_SIGNATURE 0xFEEF04BD
#define VS_FFI_STRUCVERSION 0x10000
#define VS_FFI_FILEFLAGSMASK 0x3F
#d... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/winapi/winver.h | C | lgpl | 3,885 |
/*
* limits.h
*
* Defines constants for the sizes of integral types.
*
* NOTE: GCC should supply a version of this header and it should be safe to
* use that version instead of this one (maybe safer).
*
* This file is part of the Mingw32 package.
*
* Contributors:
* Created by Colin Peters <colin@bir... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/limits.h | C | lgpl | 2,636 |
/* ISO C9x 7.18 Integer types <stdint.h>
* Based on ISO/IEC SC22/WG14 9899 Committee draft (SC22 N2794)
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* Contributor: Danny Smith <danny_r_smith_2001@yahoo.co.nz>
*
* This source code is offered for use in the public domain. You may
* use, modify or distribute it fr... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/stdint.h | C | lgpl | 5,794 |
/*
* stdlib.h
*
* Definitions for common types, variables, and functions.
*
* This file is part of the Mingw32 package.
*
* Contributors:
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* This source code is offered for use in the public domain. You may
*... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/stdlib.h | C | lgpl | 12,591 |
#ifndef _VARARGS_H
#define _VARARGS_H
#include <stdarg.h>
#define va_dcl
#define va_alist __va_alist
#undef va_start
#define va_start(ap) ap = __builtin_varargs_start
#endif
| zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/varargs.h | C | lgpl | 177 |
/*
* wctype.h
*
* Functions for testing wide character types and converting characters.
*
* This file is part of the Mingw32 package.
*
* Contributors:
* Created by Mumit Khan <khan@xraylith.wisc.edu>
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* This source code is offered for use in the public domain. You ... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/include/wctype.h | C | lgpl | 3,463 |
@rem ----------------------------------------------------
@rem batch file to build tcc using gcc and ar from mingw
@rem ----------------------------------------------------
:
@echo>..\config.h #define TCC_VERSION "0.9.25"
@echo>>..\config.h #define TCC_TARGET_PE 1
@echo>>..\config.h #define CONFIG_TCCDIR "."
@ec... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/build-tcc.bat | Batchfile | lgpl | 985 |
// =================================================
// chkstk.s
.text
.globl __chkstk
__chkstk:
xchg (%esp), %ebp // store ebp, get ret.addr
push %ebp // push ret.addr
lea 4(%esp), %ebp // setup frame ptr
push %ecx // save ecx
mov %ebp, %ecx
P0:
sub $4096,%ecx
test ... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/lib/chkstk.S | Unix Assembly | lgpl | 549 |
//+---------------------------------------------------------------------------
#include <windows.h>
BOOL WINAPI DllMain (HANDLE hDll, DWORD dwReason, LPVOID lpReserved);
BOOL WINAPI _dllstart(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
{
BOOL bRet;
bRet = DllMain (hDll, dwReason, lpReserved);
return bRet;
}
| zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/lib/dllcrt1.c | C | lgpl | 320 |
// =============================================
// crt1.c
#include <stdlib.h>
#define __UNKNOWN_APP 0
#define __CONSOLE_APP 1
#define __GUI_APP 2
void __set_app_type(int);
void _controlfp(unsigned a, unsigned b);
typedef struct
{
int newmode;
} _startupinfo;
void __getmainargs(int *pargc, char ***par... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/lib/crt1.c | C | lgpl | 720 |
//+---------------------------------------------------------------------------
#include <windows.h>
#define __UNKNOWN_APP 0
#define __CONSOLE_APP 1
#define __GUI_APP 2
void __set_app_type(int);
void _controlfp(unsigned a, unsigned b);
int _winstart(void)
{
char *szCmd; STARTUPINFO startinfo;
__set_ap... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/lib/wincrt1.c | C | lgpl | 1,099 |
//+---------------------------------------------------------------------------
#include <windows.h>
BOOL WINAPI DllMain (HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
{
return TRUE;
}
| zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/win32/lib/dllmain.c | C | lgpl | 190 |
/*
* GAS like assembler for TCC
*
* Copyright (c) 2001-2004 Fabrice Bellard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your opt... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/tccasm.c | C | lgpl | 28,037 |
/*
* TCC - Tiny C Compiler
*
* Copyright (c) 2001-2004 Fabrice Bellard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) ... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/tcc.c | C | lgpl | 17,454 |
#!/bin/sh
TESTSUITE_PATH=$HOME/gcc/gcc-3.2/gcc/testsuite/gcc.c-torture
TCC="./tcc -B. -I. -DNO_TRAMPOLINES"
rm -f tcc.sum tcc.log
nb_failed="0"
for src in $TESTSUITE_PATH/compile/*.c ; do
echo $TCC -o /tmp/test.o -c $src
$TCC -o /tmp/test.o -c $src >> tcc.log 2>&1
if [ "$?" == "0" ] ; then
result="PASS"
... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/tests/.svn/text-base/gcctestsuite.sh.svn-base | Shell | lgpl | 750 |
#
# Tiny C Compiler Makefile - tests
#
# what tests to run
TESTS = libtest test3
# these should work too
# TESTS += test1 test2 speed
# these don't work as they should
# TESTS += test4 btest asmtest
TOP = ..
include $(TOP)/Makefile
# run local version of tcc with local libraries and includes
TCC = ../tcc -B..
RUN... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/tests/Makefile | Makefile | lgpl | 3,695 |
#include <stdlib.h>
#include <stdio.h>
#define NB_ITS 1000000
//#define NB_ITS 1
#define TAB_SIZE 100
int tab[TAB_SIZE];
int ret_sum;
char tab3[256];
int test1(void)
{
int i, sum = 0;
for(i=0;i<TAB_SIZE;i++) {
sum += tab[i];
}
return sum;
}
/* error */
int test2(void)
{
int i, sum = 0;
... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/tests/boundtest.c | C | lgpl | 2,894 |
/* some directive tests */
.byte 0xff
.byte 1, 2, 3
.short 1, 2, 3
.word 1, 2, 3
.long 1, 2, 3
.int 1, 2, 3
.align 8
.byte 1
.align 16, 0x90
.skip 3
.skip 15, 0x90
.string "hello\0world"
/* some label tests */
movl %eax, %ebx
L1:
movl %eax, %ebx
mov 0x1000... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/tests/asmtest.S | Unix Assembly | lgpl | 7,266 |
/*
* TCC auto test program
*/
#include "../config.h"
#if GCC_MAJOR >= 3
/* Unfortunately, gcc version < 3 does not handle that! */
#define ALL_ISOC99
/* only gcc 3 handles _Bool correctly */
#define BOOL_ISOC99
/* gcc 2.95.3 does not handle correctly CR in strings or after strays */
#define CORRECT_CR_HANDLING
#... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/tests/tcctest.c | C | lgpl | 46,982 |
#!/bin/sh
TESTSUITE_PATH=$HOME/gcc/gcc-3.2/gcc/testsuite/gcc.c-torture
TCC="./tcc -B. -I. -DNO_TRAMPOLINES"
rm -f tcc.sum tcc.log
nb_failed="0"
for src in $TESTSUITE_PATH/compile/*.c ; do
echo $TCC -o /tmp/test.o -c $src
$TCC -o /tmp/test.o -c $src >> tcc.log 2>&1
if [ "$?" == "0" ] ; then
result="PASS"
... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/tests/gcctestsuite.sh | Shell | lgpl | 750 |
/*
* Simple Test program for libtcc
*
* libtcc can be useful to use tcc as a "backend" for a code generator.
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "libtcc.h"
/* this function is called by the generated code */
int add(int a, int b)
{
return a + b;
}
char my_program[] =
"int f... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/tests/libtcc_test.c | C | lgpl | 1,813 |
/**************************************************************************/
/* COFF.H */
/* COFF data structures and related definitions used by the linker */
/**************************************************************************/
/*---------... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/coff.h | C | lgpl | 22,419 |
/*
* TCC - Tiny C Compiler
*
* Copyright (c) 2001-2004 Fabrice Bellard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) ... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/tcc.h | C | lgpl | 23,165 |
#! /usr/bin/perl -w
# Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
# This file is part of GNU CC.
# GNU CC is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your op... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/texi2pod.pl | Prolog | lgpl | 11,030 |
/*
* CIL opcode definition
*
* Copyright (c) 2002 Fabrice Bellard
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any late... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/il-opcodes.h | C | lgpl | 7,612 |
#ifndef _FLOAT_H_
#define _FLOAT_H_
#define FLT_RADIX 2
/* IEEE float */
#define FLT_MANT_DIG 24
#define FLT_DIG 6
#define FLT_ROUNDS 1
#define FLT_EPSILON 1.19209290e-07F
#define FLT_MIN_EXP (-125)
#define FLT_MIN 1.17549435e-38F
#define FLT_MIN_10_EXP (-37)
#define FLT_MAX_EXP 128
#define FLT_MAX 3.40282347e+38F
#d... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/include/float.h | C | lgpl | 1,347 |
#ifndef _STDBOOL_H
#define _STDBOOL_H
/* ISOC99 boolean */
#define bool _Bool
#define true 1
#define false 0
#endif /* _STDBOOL_H */
| zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/include/stdbool.h | C | lgpl | 136 |
#ifndef _STDDEF_H
#define _STDDEF_H
#define NULL ((void *)0)
typedef __SIZE_TYPE__ size_t;
typedef __WCHAR_TYPE__ wchar_t;
typedef __PTRDIFF_TYPE__ ptrdiff_t;
#define offsetof(type, field) ((size_t) &((type *)0)->field)
#ifndef __int8_t_defined
#define __int8_t_defined
typedef char int8_t;
typedef short int int16_t;
... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/include/stddef.h | C | lgpl | 415 |
#ifndef _STDARG_H
#define _STDARG_H
#ifdef __x86_64__
#include <stdlib.h>
/* GCC compatible definition of va_list. */
struct __va_list_struct {
unsigned int gp_offset;
unsigned int fp_offset;
union {
unsigned int overflow_offset;
char *overflow_arg_area;
};
char *reg_save_area;
};
... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/include/stdarg.h | C | lgpl | 2,635 |
/* Simple libc header for TCC
*
* Add any function you want from the libc there. This file is here
* only for your convenience so that you do not need to put the whole
* glibc include files on your floppy disk
*/
#ifndef _TCCLIB_H
#define _TCCLIB_H
#include <stddef.h>
#include <stdarg.h>
/* stdlib.h */
void *... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/include/tcclib.h | C | lgpl | 2,560 |
#ifndef _VARARGS_H
#define _VARARGS_H
#include <stdarg.h>
#define va_dcl
#define va_alist __va_alist
#undef va_start
#define va_start(ap) ap = __builtin_varargs_start
#endif
| zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/include/varargs.h | C | lgpl | 177 |
/* This file defines standard ELF types, structures, and macros.
Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ian Lance Taylor <ian@cygnus.com>.
The GNU C Library is free software; you can redistribute it and/or
modify i... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/elf.h | C++ | lgpl | 78,631 |
/*
* TCC - Tiny C Compiler
*
* Copyright (c) 2001-2004 Fabrice Bellard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) ... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/tccpp.c | C | lgpl | 84,003 |
/*
* TCC - Tiny C Compiler
*
* Copyright (c) 2001-2004 Fabrice Bellard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) ... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/libtcc.c | C | lgpl | 61,474 |
/* ---------------------------------------------- */
/* alloca86.S */
#include "../config.h"
.globl alloca
alloca:
pop %edx
pop %eax
add $3,%eax
and $-4,%eax
jz p3
#ifdef TCC_TARGET_PE
p1:
cmp $4096,%eax
jle p2
sub $4096,%esp
sub $4096,%eax
... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/lib/alloca86.S | Unix Assembly | lgpl | 509 |
/* ---------------------------------------------- */
/* alloca86b.S */
#include "../config.h"
.globl __bound_alloca
__bound_alloca:
pop %edx
pop %eax
mov %eax, %ecx
add $3,%eax
and $-4,%eax
jz p6
#ifdef TCC_TARGET_PE
p4:
cmp $4096,%eax
jle p5
sub ... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/lib/alloca86-bt.S | Unix Assembly | lgpl | 704 |
/* TCC runtime library.
Parts of this code are (c) 2002 Fabrice Bellard
Copyright (C) 1987, 1988, 1992, 1994, 1995 Free Software Foundation, Inc.
This file is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation;... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/lib/libtcc1.c | C | lgpl | 12,725 |
/*
* Tiny C Memory and bounds checker
*
* Copyright (c) 2002 Fabrice Bellard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your op... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/lib/bcheck.c | C | lgpl | 24,109 |
/* keywords */
DEF(TOK_INT, "int")
DEF(TOK_VOID, "void")
DEF(TOK_CHAR, "char")
DEF(TOK_IF, "if")
DEF(TOK_ELSE, "else")
DEF(TOK_WHILE, "while")
DEF(TOK_BREAK, "break")
DEF(TOK_RETURN, "return")
DEF(TOK_FOR, "for")
DEF(TOK_EXTERN, "extern")
DEF(TOK_STATIC, "static")
... | zzl-compiler | trunk -m 'initial import'/tcc-0.9.25/tcctok.h | C | lgpl | 11,439 |
'''
Created on 2012-6-13
@author: Jason
'''
""" Basic blog using webpy 0.3 """
import web
import model
### Url mappings
urls = (
'/', 'Index',
'/view/(\d+)', 'View',
'/new', 'New',
'/delete/(\d+)', 'Delete',
'/edit/(\d+)', 'Edit',
)
### Templates
t_globals = {
'datestr... | zzstest | trunk/blog/blog.py | Python | gpl3 | 1,982 |
$def with (form)
<h1>New Blog Post</h1>
<form action="" method="post">
$:form.render()
</form> | zzstest | trunk/blog/templates/new.html | HTML | gpl3 | 100 |
$def with (post)
<h1>$post.title</h1>
$datestr(post.posted_on)<br/>
$post.content | zzstest | trunk/blog/templates/view.html | HTML | gpl3 | 88 |
$def with (page)
<html>
<head>
<title>My Blog</title>
<style>
#menu {
width: 200px;
float: right;
}
</style>
</head>
<body>
<ul id="menu">
<li><a href="/">Home</a></li>
<li><a href="/new">New Post</a></li>
</ul>
$:page
</body>
</html> | zzstest | trunk/blog/templates/base.html | HTML | gpl3 | 320 |
$def with (posts)
<h1>Blog posts</h1>
<ul>
$for post in posts:
<li>
<a href="/view/$post.id">$post.title</a>
from $datestr(post.posted_on)
<a href="/edit/$post.id">Edit</a>
</li>
</ul> | zzstest | trunk/blog/templates/index.html | HTML | gpl3 | 231 |