commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
1
4.87k
subject
stringlengths
15
778
message
stringlengths
15
8.75k
lang
stringclasses
266 values
license
stringclasses
13 values
repos
stringlengths
5
127k
297029a7e14db8fd6f30c578e1c1860dadc04096
frame_tools.c
frame_tools.c
#include <clib/alib_stdio_protos.h> #include <clib/graphics_protos.h> #include <inline/graphics_protos.h> #include <proto/graphics.h> #include "frame_tools.h" void RenderFrameNumber(int frameNumber) { struct RastPort *rastPort = GetCurrentRastPort(); SetDrMd(rastPort, JAM1); char number[4]; sprintf(number,...
#include <clib/alib_stdio_protos.h> #include <clib/graphics_protos.h> #include <inline/graphics_protos.h> #include <proto/graphics.h> #include "frame_tools.h" void RenderFrameNumber(int frameNumber) { struct RastPort *rastPort = GetCurrentRastPort(); SetDrMd(rastPort, JAM1); char number[5]; sprintf(number,...
Fix a nasty crash on Z3 Fast RAM enabled WinUAE.
Fix a nasty crash on Z3 Fast RAM enabled WinUAE.
C
artistic-2.0
cahirwpz/demoscene,cahirwpz/demoscene,cahirwpz/demoscene,cahirwpz/demoscene
ef0a815082ee32b1bb661cc0b91a6eae53a7e2c3
inc/setting.h
inc/setting.h
#ifndef __SETTING_H__ #define __SETTING_H__ #define DITHERING_AMP 768; #define BUFFER_NUM 4 #define STAGE_NUM 4 #define SAMPLE_NUM 256 #define SAMPLE_MAX 2047 #define SAMPLING_RATE 45 /* In Kilo Hz, Make Sure it can divide 45000*/ #define SAMPLE_PERIOD (1.0f / SAMPLING_RATE) #define Q_1 1048576 #define Q_MULT_SHIF...
#ifndef __SETTING_H__ #define __SETTING_H__ #define DITHERING_AMP 768; #define BUFFER_NUM 4 #define STAGE_NUM 4 #define SAMPLE_NUM 256 #define SAMPLE_MAX 2047 #define SAMPLING_RATE 44.1 /* In Kilo Hz, Make Sure it can divide 45000*/ #define SAMPLE_PERIOD (1.0f / SAMPLING_RATE) #define Q_1 1048576 #define Q_MULT_SH...
Change SAMpling Rate to 44.1K, ready for wav playing
Change SAMpling Rate to 44.1K, ready for wav playing
C
mit
sonicyang/uRock,sonicyang/uRock,BeyondCloud/uRock,sonicyang/uRock,sonicyang/uRock,BeyondCloud/uRock,BeyondCloud/uRock,BeyondCloud/uRock
ac5bfbbc8e46369f49816d8400d10dceceaa8b5a
treeplayer/inc/LinkDef.h
treeplayer/inc/LinkDef.h
/* @(#)root/treeplayer:$Name: $:$Id: LinkDef.h,v 1.1.1.1 2000/05/16 17:00:44 rdm Exp $ */ /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
/* @(#)root/treeplayer:$Name: $:$Id: LinkDef.h,v 1.2 2000/07/06 17:20:52 brun Exp $ */ /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
Declare option "+" for TTreePlayer
Declare option "+" for TTreePlayer git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@986 27541ba8-7e3a-0410-8455-c3a389f83636
C
lgpl-2.1
bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT,dawehner/root,bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT
dd8141b9f910bda6a1f423dcdda0ca48fac8cdcf
src/capwap/dtls_gnutls.c
src/capwap/dtls_gnutls.c
/* This file is part of libcapwap. libcapwap 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 3 of the License, or (at your option) any later version. libcapwap is distribut...
/* This file is part of libcapwap. libcapwap 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 3 of the License, or (at your option) any later version. libcapwap is distribut...
Debug info for init dunction.
Debug info for init dunction. FossilOrigin-Name: 7127f1670bedbfa09f000dcd4eff557f448184d0450b373e888856979877ccbe
C
bsd-2-clause
7u83/actube,7u83/actube,7u83/actube,7u83/actube,7u83/actube
43d18db47ade75c53db4fce9b521a96b01c75cec
inc/setting.h
inc/setting.h
#ifndef __SETTING_H__ #define __SETTING_H__ #define BUFFER_NUM 4 #define STAGE_NUM 4 #define SAMPLE_NUM 256 #define SAMPLE_MAX 2047 #define SAMPLING_RATE 100 /* In Kilo Hz, Make Sure it can divide 45000*/ #define SAMPLE_PREIOD 1 / SAMPLE_RATE #define BLOCK_PREIOD SAMPLE_NUM / SAMPLING_RATE #define DELAY_BANK(x) DE...
#ifndef __SETTING_H__ #define __SETTING_H__ #define BUFFER_NUM 4 #define STAGE_NUM 4 #define SAMPLE_NUM 256 #define SAMPLE_MAX 2047 #define SAMPLING_RATE 200 /* In Kilo Hz, Make Sure it can divide 45000*/ #define SAMPLE_PREIOD 1 / SAMPLE_RATE #define BLOCK_PREIOD SAMPLE_NUM / SAMPLING_RATE #define DELAY_BANK(x) DE...
Increase the sampling rate to 200khz
Increase the sampling rate to 200khz
C
mit
sonicyang/uRock,BeyondCloud/uRock,BeyondCloud/uRock,sonicyang/uRock,sonicyang/uRock,BeyondCloud/uRock,sonicyang/uRock,BeyondCloud/uRock
f8cbdcc43038a1acb26f6643aa06c082b14c15ef
src/Game/Player.h
src/Game/Player.h
// // WulfGame/Game/Player.h // Copyright (C) 2012 Lexi Robinson // This code is freely available under the MIT licence. // #pragma once #include <glm/glm.hpp> #include "WulfConstants.h" #include "Game/InputManager.h" #include "Game/Constants.h" #include "Game/Entity.h" #include "Map/Map.h" namespace Wulf { class Pla...
// // WulfGame/Game/Player.h // Copyright (C) 2012 Lexi Robinson // This code is freely available under the MIT licence. // #pragma once #include <glm/glm.hpp> #include "WulfConstants.h" #include "Game/InputManager.h" #include "Game/Constants.h" #include "Game/Entity.h" #include "Map/Map.h" namespace Wulf { class Pla...
Add ammo and score fields to the player object
Add ammo and score fields to the player object
C
mit
Lexicality/Wulf2012,Lexicality/Wulf2012
c4e291a94360b117fcdd4ea141599de0c670e70a
src/core/server.h
src/core/server.h
#ifndef APIMOCK_SERVER_H #define APIMOCK_SERVER_H #include <string> #include <memory> #include <functional> #include "http/requestdata.h" #include "http/responsedata.h" namespace ApiMock { class Server { typedef std::function<ResponseData(RequestData)> CreateResponse; struct ServerImpl; std::unique_ptr<ServerIm...
#ifndef APIMOCK_SERVER_H #define APIMOCK_SERVER_H #include <string> #include <memory> #include <functional> #include "http/requestdata.h" #include "http/responsedata.h" namespace ApiMock { class Server { struct ServerImpl; std::unique_ptr<ServerImpl> _impl; Server& operator=(const Server&); Server(const Serv...
Make the CreateResponse typedef public
Make the CreateResponse typedef public
C
mit
Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock
74163dc02b192de5b4286d5cc7bd0377a7d06a74
CKTextField/CKTextField.h
CKTextField/CKTextField.h
// // CKTextField.h // CKTextField // // Created by Christian Klaproth on 12.09.14. // Copyright (c) 2014 Christian Klaproth. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "CKExternalKeyboardSupportedTextField.h" @class CKTextField; enum CKTextFieldValidationResult { ...
// // CKTextField.h // CKTextField // // Created by Christian Klaproth on 12.09.14. // Copyright (c) 2014 Christian Klaproth. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "CKExternalKeyboardSupportedTextField.h" @class CKTextField; enum CKTextFieldValidationResult { ...
Use of IBInspectable for user defined attributes.
Use of IBInspectable for user defined attributes. Validation type and ranges can be specified using the attribute inspector. #5
C
mit
JaNd3r/CKTextField,JaNd3r/CKTextField
545aa5b0f40ba9967a60a53a0d802e1aac4bbc52
include/ieeefp.h
include/ieeefp.h
/* $NetBSD: ieeefp.h,v 1.4 1998/01/09 08:03:43 perry Exp $ */ /* * Written by J.T. Conklin, Apr 6, 1995 * Public domain. */ #ifndef _IEEEFP_H_ #define _IEEEFP_H_ #include <sys/cdefs.h> #include <machine/ieeefp.h> #ifdef i386 #include <machine/floatingpoint.h> #else extern fp_rnd fpgetround __P((void)); exter...
/* $NetBSD: ieeefp.h,v 1.4 1998/01/09 08:03:43 perry Exp $ */ /* * Written by J.T. Conklin, Apr 6, 1995 * Public domain. */ #ifndef _IEEEFP_H_ #define _IEEEFP_H_ #include <sys/cdefs.h> #include <machine/ieeefp.h> #ifdef __i386__ #include <machine/floatingpoint.h> #else /* !__i386__ */ extern fp_rnd fpgetroun...
Use __i386__ instead of i386 in an ifdef.
Use __i386__ instead of i386 in an ifdef.
C
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
204cd8ac785d45c5fd3a45b019a489ffc408398e
kernel/cwos.c
kernel/cwos.c
#include <uart.h> #include <irq.h> void cwos_boot() { uart_init(); uart0_send("Hello CWOS World\n"); irq_enable(); trigger_swi(); while (1) { } }
#include <uart.h> #include <irq.h> void cwos_boot() { uart_init(); uart0_send("Hello CWOS World\n"); uart0_send("Press any key to see echo:\n"); irq_enable(); while (1) { } }
Update CWOS boot welcome messages
Update CWOS boot welcome messages
C
mit
waynecw/cwos,waynecw/cwos
fb1702cc9197a0a0c2792a86a3cdaa774ec03455
chrome/browser/chromeos/login/mock_user_manager.h
chrome/browser/chromeos/login/mock_user_manager.h
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_ #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_ #pragma once #include <string> ...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_ #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_ #pragma once #include <string> ...
Fix clang warning in tests for Chrome OS
Fix clang warning in tests for Chrome OS BUG=none TEST=build with clang and gcc Review URL: http://codereview.chromium.org/7002028 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@84970 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
gavinp/chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,ropik/c...
37f3968096b6f326b3d6f54e8d805677665602aa
src/main.h
src/main.h
/** * * Copyright (C) Tyler Hackett 2016 * * CUDA Triangle Counter * * A quickly-written program to determine all possible combinations of * valid triangles from a grid, allowing for certain coordinates of the * grid to be marked as unusable. * * main.h * * */ #define GRID_WIDTH 4 #define GRID_HEIGHT 4 const uint2 h_...
/** * * Copyright (C) Tyler Hackett 2016 * * CUDA Triangle Counter * * A quickly-written program to determine all possible combinations of * valid triangles from a grid, allowing for certain coordinates of the * grid to be marked as unusable. * * main.h * * */ #define GRID_WIDTH 4 #define GRID_HEIGHT 4 const uint2 h_...
Set up parameters to coincide with Java counterpart
Set up parameters to coincide with Java counterpart
C
mit
ByteSyze/CudaTriangleCounter
35f852e50e1556fc79175dcaa62360c97981f038
src/io/network/socketBase.h
src/io/network/socketBase.h
#ifndef SP2_IO_NETWORK_SOCKET_BASE_H #define SP2_IO_NETWORK_SOCKET_BASE_H #include <io/network/socketBase.h> #include <SFML/System/NonCopyable.hpp> namespace sp { namespace io { namespace network { class SocketBase : sf::NonCopyable { public: void setBlocking(bool blocking); void setNoDelay(bool no_delay);...
#ifndef SP2_IO_NETWORK_SOCKET_BASE_H #define SP2_IO_NETWORK_SOCKET_BASE_H #include <io/network/socketBase.h> #include <SFML/System/NonCopyable.hpp> namespace sp { namespace io { namespace network { class SocketBase : sf::NonCopyable { public: void setBlocking(bool blocking); void setTimeout(int millisecond...
Reduce jitter on network communication by enabling NO_DELAY, but still make large packets within a update cycle.
Reduce jitter on network communication by enabling NO_DELAY, but still make large packets within a update cycle.
C
mit
daid/SeriousProton,daid/SeriousProton,daid/SeriousProton,daid/SeriousProton,daid/SeriousProton,daid/SeriousProton
c878414354902f7800675ee0bf31d10892400a81
sys/kern/stack_protector.c
sys/kern/stack_protector.c
#include <sys/cdefs.h> __FBSDID("$FreeBSD$"); #include <sys/types.h> #include <sys/param.h> #include <sys/kernel.h> #include <sys/systm.h> #include <sys/libkern.h> #if defined(__SSP__) || defined(__SSP_ALL__) long __stack_chk_guard[8] = {}; void __stack_chk_fail(void); void __stack_chk_fail(void) { panic("stack ov...
#include <sys/cdefs.h> __FBSDID("$FreeBSD$"); #include <sys/types.h> #include <sys/param.h> #include <sys/kernel.h> #include <sys/systm.h> #include <sys/libkern.h> long __stack_chk_guard[8] = {}; void __stack_chk_fail(void); void __stack_chk_fail(void) { panic("stack overflow detected; backtrace may be corrupted")...
Fix a chicken-and-egg problem: this files implements SSP support, so we cannot compile it with -fstack-protector[-all] flags (or it will self-recurse); this is ensured in sys/conf/files. This OTOH means that checking for defines __SSP__ and __SSP_ALL__ to determine if we should be compiling the support is impossible (w...
Fix a chicken-and-egg problem: this files implements SSP support, so we cannot compile it with -fstack-protector[-all] flags (or it will self-recurse); this is ensured in sys/conf/files. This OTOH means that checking for defines __SSP__ and __SSP_ALL__ to determine if we should be compiling the support is impossible (...
C
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
71bddbf5bdb5c90bd041e8e126d75e15001a62a7
OrbitCore/Profiling.h
OrbitCore/Profiling.h
//----------------------------------- // Copyright Pierric Gimmig 2013-2017 //----------------------------------- #pragma once #include "BaseTypes.h" #include "Platform.h" #include "Utils.h" //----------------------------------------------------------------------------- typedef uint64_t TickType; //-----------------...
//----------------------------------- // Copyright Pierric Gimmig 2013-2017 //----------------------------------- #pragma once #include "BaseTypes.h" #include "Platform.h" #include "Utils.h" //----------------------------------------------------------------------------- typedef uint64_t TickType; //-----------------...
Use CLOCK_MONOTONIC as default timer clock to align with kenel events.
Use CLOCK_MONOTONIC as default timer clock to align with kenel events.
C
bsd-2-clause
pierricgimmig/orbitprofiler,pierricgimmig/orbitprofiler,pierricgimmig/orbitprofiler,pierricgimmig/orbitprofiler,google/orbit,google/orbit,google/orbit,google/orbit
3c9e03bda57d33097b19eef1dbb06bc5b2876551
test/Sema/format-string-percentm.c
test/Sema/format-string-percentm.c
// RUN: %clang_cc1 -fsyntax-only -verify %s -triple i686-pc-linux-gnu int printf(char const*,...); void percentm(void) { printf("%m"); }
// RUN: %clang_cc1 -fsyntax-only -verify %s -triple i686-pc-linux-gnu // PR 4142 - support glibc extension to printf: '%m' (which prints strerror(errno)). int printf(char const*,...); void percentm(void) { printf("%m"); }
Add comment to test linking it back to the original Bugzilla PR.
Add comment to test linking it back to the original Bugzilla PR. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@94816 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
532059d32b79e5c560142e4d1de67330361cc5f2
examples/ffi-struct/struct.c
examples/ffi-struct/struct.c
struct Inner { int x; }; struct Outer { struct Inner inner_embed; struct Inner* inner_var; }; void modify_via_outer(struct Outer* s) { s->inner_embed.x = 10; s->inner_var->x = 15; } void modify_inner(struct Inner* s) { s->x = 5; }
typedef struct Inner { int x; } Inner; typedef struct Outer { struct Inner inner_embed; struct Inner* inner_var; } Outer; void modify_via_outer(Outer* s) { s->inner_embed.x = 10; s->inner_var->x = 15; } void modify_inner(Inner* s) { s->x = 5; }
Fix C file coding style
Fix C file coding style
C
bsd-2-clause
jupvfranco/ponyc,cquinn/ponyc,Theodus/ponyc,jupvfranco/ponyc,mkfifo/ponyc,Praetonus/ponyc,Theodus/ponyc,Praetonus/ponyc,mkfifo/ponyc,ryanai3/ponyc,Perelandric/ponyc,lukecheeseman/ponyta,kulibali/ponyc,ryanai3/ponyc,jupvfranco/ponyc,malthe/ponyc,Theodus/ponyc,ponylang/ponyc,jupvfranco/ponyc,dipinhora/ponyc,mkfifo/ponyc,...
f0337c2d1afb2774e6e58b2084f769d3436e5b1e
unittest/include_gunit.h
unittest/include_gunit.h
// (C) Copyright 2017, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing,...
// (C) Copyright 2017, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing,...
Add more portability hacks for Google test environment
Add more portability hacks for Google test environment Signed-off-by: Stefan Weil <8d4c780fcfdc41841e5070f4c43da8958ba6aec0@weilnetz.de>
C
apache-2.0
UB-Mannheim/tesseract,stweil/tesseract,jbarlow83/tesseract,jbarlow83/tesseract,UB-Mannheim/tesseract,tesseract-ocr/tesseract,UB-Mannheim/tesseract,amitdo/tesseract,stweil/tesseract,UB-Mannheim/tesseract,tesseract-ocr/tesseract,amitdo/tesseract,amitdo/tesseract,jbarlow83/tesseract,tesseract-ocr/tesseract,UB-Mannheim/tes...
5b61dafd1ba7e44f39cf73344f2a0b2b8e66064c
src/imap/cmd-logout.c
src/imap/cmd-logout.c
/* Copyright (C) 2002 Timo Sirainen */ #include "common.h" #include "commands.h" int cmd_logout(struct client *client) { client_send_line(client, "* BYE Logging out"); if (client->mailbox != NULL) { /* this could be done at client_disconnect() as well, but eg. mbox rewrite takes a while so the waiting is ...
/* Copyright (C) 2002 Timo Sirainen */ #include "common.h" #include "commands.h" int cmd_logout(struct client *client) { client_send_line(client, "* BYE Logging out"); o_stream_uncork(client->output); if (client->mailbox != NULL) { /* this could be done at client_disconnect() as well, but eg. mbox rewrite ...
Send the "* BYE Logging out" before closing mailbox.
Send the "* BYE Logging out" before closing mailbox.
C
mit
Distrotech/dovecot,LTD-Beget/dovecot,Distrotech/dovecot,damoxc/dovecot,damoxc/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,damoxc/dovecot,Distrotech/dovecot,LTD-Beget/dovecot,damoxc/dovecot,Distrotech/dovecot,LTD-Beget/dovecot,damoxc/dovecot,Distrotech/dovecot
193aa373d84ba155eb0307afa6cd4fecf710d007
src/untrusted/irt/irt_tls.c
src/untrusted/irt/irt_tls.c
/* * Copyright (c) 2012 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <errno.h> #include "native_client/src/untrusted/irt/irt.h" #include "native_client/src/untrusted/nacl/syscall_bindings_trampolin...
/* * Copyright (c) 2012 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <errno.h> #include "native_client/src/untrusted/irt/irt.h" #include "native_client/src/untrusted/nacl/syscall_bindings_trampolin...
Reduce the cost of getting the thread pointer by one jump on x86-64
TLS: Reduce the cost of getting the thread pointer by one jump on x86-64 BUG=none TEST=run_hello_world_test_irt on x86-64 R=mcgrathr@chromium.org Review URL: https://codereview.chromium.org/226643010 git-svn-id: 721b910a23eff8a86f00c8fd261a7587cddf18f8@13045 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2
C
bsd-3-clause
sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client
6d0cd228d5ea5ff734f3bc1754d0dfbb93e6d1b4
src/defines.h
src/defines.h
#ifndef XORGGTEST_DEFINES #define XORGGTEST_DEFINES #define DEFAULT_XORG_LOGFILE "/tmp/Xorg.GTest.log" #define DEFAULT_XORG_SERVER "Xorg" #define DEFAULT_DISPLAY 133 #endif
#ifndef XORGGTEST_DEFINES #define XORGGTEST_DEFINES #define DEFAULT_XORG_LOGFILE "/tmp/Xorg.GTest.log" #define DEFAULT_DISPLAY 133 /* Allow user to override default Xorg server*/ #ifndef DEFAULT_XORG_SERVER #define DEFAULT_XORG_SERVER "Xorg" #endif #endif
Allow user to override default Xorg server binary
Allow user to override default Xorg server binary This can be accomplished by compiling xorg-gtest with -DDEFAULT_XORG_SERVER=path/to/Xorg. Signed-off-by: Chase Douglas <69e02ec421aa70a149511825d897f2549ceee9a2@canonical.com> Reviewed-By: Christopher Halse Rogers <f4edbc39080c6cd998e1a8e915acbce7f6e0704a@canonical.co...
C
mit
freedesktop-unofficial-mirror/xorg__test__xorg-gtest,freedesktop-unofficial-mirror/xorg__test__xorg-gtest,freedesktop-unofficial-mirror/xorg__test__xorg-gtest
1ff679378c9fe819fe813c25c657e459a87044a9
src/parse.h
src/parse.h
// Copyright 2016 Mitchell Kember. Subject to the MIT License. #ifndef PARSE_H #define PARSE_H #include "error.h" #include "expr.h" // ParseResult contains the result of parsing text. The 'expr' field has a // meaningful value if and only if 'err_type' is -1. struct ParseResult { size_t chars_read; struct Expressi...
// Copyright 2016 Mitchell Kember. Subject to the MIT License. #ifndef PARSE_H #define PARSE_H #include "error.h" #include "expr.h" // ParseResult contains the result of parsing text. The 'expr' field has a // meaningful value if and only if 'err_type' is -1. struct ParseResult { size_t chars_read; // number o...
Use int, not ParseErrorType, to allow -1
Use int, not ParseErrorType, to allow -1
C
mit
mk12/eva,mk12/eva
f43a8742653c7bbd4f05440152b05f19a9300d17
src/globals.h
src/globals.h
#pragma once #include <fstream> #include <string> #include <cerrno> #include <clocale> #include <vector> #include <iostream> #include <stdlib.h> #include <malloc.h> #include <memory.h> #define _USE_MATH_DEFINES #include <math.h> #include <cairo.h> #include <gtkmm.h> #include <gtkmm/application.h> #include <gtkmm/windo...
#pragma once #include <fstream> #include <string> #include <cerrno> #include <clocale> #include <vector> #include <iostream> #include <stdlib.h> #ifdef __APPLE__ #include <stdlib.h> #else #include <malloc.h> #endif #include <memory.h> #define _USE_MATH_DEFINES #include <math.h> #include <cairo.h> #include <gtkmm.h> #i...
Make including malloc on MacOS compatible
Make including malloc on MacOS compatible
C
bsd-3-clause
litehtml/litebrowser-linux
621af6e0e6a48c8a8c5b4804de1bdc91c3436f5b
third_party/stub-strtok_r.c
third_party/stub-strtok_r.c
/* * public domain strtok_r() by Charlie Gordon * * from comp.lang.c 9/14/2007 * * http://groups.google.com/group/comp.lang.c/msg/2ab1ecbb86646684 * * (Declaration that it's public domain): * http://groups.google.com/group/comp.lang.c/msg/7c7b39328fefab9c */ #include <string.h> #ifdef __MING...
/* * public domain strtok_r() by Charlie Gordon * * from comp.lang.c 9/14/2007 * * http://groups.google.com/group/comp.lang.c/msg/2ab1ecbb86646684 * * (Declaration that it's public domain): * http://groups.google.com/group/comp.lang.c/msg/7c7b39328fefab9c */ #include <string.h> #ifdef __MING...
Fix possible invalid write on Windows-specific `strtok_r` stub
Fix possible invalid write on Windows-specific `strtok_r` stub
C
agpl-3.0
Levak/warfacebot,Levak/warfacebot,Levak/warfacebot
e319b2ded9ca34aec90385905077a61f86586eff
EdkCompatibilityPkg/Compatibility/SmmBaseHelper/PageFaultHandler.c
EdkCompatibilityPkg/Compatibility/SmmBaseHelper/PageFaultHandler.c
/** @file Page fault handler that does nothing. Copyright (c) 2010, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may...
/** @file Page fault handler that does nothing. Copyright (c) 2010, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may...
Add the blank line at the end of file to pass ICC compiler.
Add the blank line at the end of file to pass ICC compiler. git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@10357 6f19259b-4bc3-4df7-8a09-765794883524
C
bsd-2-clause
MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2
07a6d3c5a9b5006fec34bab289c421a097961be4
kernel/device/pit.c
kernel/device/pit.c
#include <arch/x64/interrupts.h> #include <arch/x64/pic.h> #include <arch/x64/port.h> #include <truth/interrupts.h> #include <truth/log.h> #include <truth/scheduler.h> #define Timer_IRQ_Number 0x20 #define Timer_Magic_Number 1193180 #define Timer_Chan_0 0x40 #define Timer_Chan_1 0x41 #define Timer_Chan_2 0x42 #defin...
#include <arch/x64/interrupts.h> #include <arch/x64/pic.h> #include <arch/x64/port.h> #include <truth/interrupts.h> #include <truth/log.h> #include <truth/scheduler.h> #define Timer_IRQ_Number 0x20 #define Timer_Magic_Number 1193180 #define Timer_Chan_0 0x40 #define Timer_Chan_1 0x41 #define Timer_Chan_2 0x42 #defin...
Remove annoying debug log message
Remove annoying debug log message
C
mit
iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth
ed51fe4a5dcdc3ed34b3af9fd7bf03b7cf5da30a
daemon.c
daemon.c
#include <errno.h> #include <sys/stat.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> FILE* logfile; void init() { // Change the umask so we can write to log files umask(0); // We should initialize and open log files here logfile = fopen("./creddit.log", "a"); if (logfile == NULL) { print...
#include <errno.h> #include <sys/stat.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> FILE* logfile; void init() { // Change the umask so we can write to log files umask(0); // We should initialize and open log files here logfile = fopen("./creddit.log", "a"); if (logfile == NULL) { print...
Modify session id and first test of logger
Modify session id and first test of logger
C
mit
nguyenmp/creddit
a64bbe186f064ccb5791d538fae3572c8e33df4b
src/lang-english.c
src/lang-english.c
#include "num2words.h" const Language LANG_ENGLISH = { .hours = { "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve" }, .phrases = { "*$1 o'clock ", "five past *$1 ", "ten past *$1 ", "quarter past *$1...
#include "num2words.h" const Language LANG_ENGLISH = { .hours = { "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve" }, #ifdef PBL_PLATFORM_CHALK .phrases = { "*$1 o'clock ", "five past *$1 ", "ten past *$...
Fix english language for new line length
Fix english language for new line length
C
mit
Sarastro72/Fuzzy-Text-Watch-Plus,Sarastro72/Swedish-Fuzzy-Text-watch,Sarastro72/Swedish-Fuzzy-Text-watch,Sarastro72/Swedish-Fuzzy-Text-watch,Sarastro72/Swedish-Fuzzy-Text-watch,Sarastro72/Fuzzy-Text-Watch-Plus,Sarastro72/Fuzzy-Text-Watch-Plus,Sarastro72/Swedish-Fuzzy-Text-watch,Sarastro72/Fuzzy-Text-Watch-Plus
893e821a0bdd9807f243465301e9360e909e2ad0
lib/log.h
lib/log.h
/* $Id$ */ #ifndef __log_h__ #define __log_h__ #include "internal.h" #define UNSHIELD_LOG_LEVEL_LOWEST 0 #define UNSHIELD_LOG_LEVEL_ERROR 1 #define UNSHIELD_LOG_LEVEL_WARNING 2 #define UNSHIELD_LOG_LEVEL_TRACE 3 #define UNSHIELD_LOG_LEVEL_HIGHEST 4 #ifdef __cplusplus extern "C" { #endif void _unshi...
/* $Id$ */ #ifndef __log_h__ #define __log_h__ #include "internal.h" #define UNSHIELD_LOG_LEVEL_LOWEST 0 #define UNSHIELD_LOG_LEVEL_ERROR 1 #define UNSHIELD_LOG_LEVEL_WARNING 2 #define UNSHIELD_LOG_LEVEL_TRACE 3 #define UNSHIELD_LOG_LEVEL_HIGHEST 4 #ifdef __cplusplus extern "C" { #endif void _unshi...
Use __VA_ARGS__ for better portability
Use __VA_ARGS__ for better portability
C
mit
twogood/unshield,twogood/unshield
ba6f0d85b45a08112bafe9a92c7174a46bc18bfd
lib/dns/rdata/rdatastructpre.h
lib/dns/rdata/rdatastructpre.h
/* * Copyright (C) 1999, 2000 Internet Software Consortium. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS...
/* * Copyright (C) 1999, 2000 Internet Software Consortium. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS...
Add macro to initalise the common part of a rdata struct.
Add macro to initalise the common part of a rdata struct.
C
mpl-2.0
pecharmin/bind9,pecharmin/bind9,each/bind9-collab,pecharmin/bind9,each/bind9-collab,each/bind9-collab,each/bind9-collab,pecharmin/bind9,pecharmin/bind9,each/bind9-collab,pecharmin/bind9,each/bind9-collab
e25c3d3df50e6bbd6ee4bea906ca184952d3eb4a
simulator/infra/target.h
simulator/infra/target.h
/* * target.h - input interface for Fetch module * @author Pavel Kryukov pavel.kryukov@phystech.edu * Copyright 2018 MIPT-MIPS */ #ifndef TARGET_H #define TARGET_H #include <infra/types.h> /* * Target is an input interface for Fetch module * It contains * * address where instruction should be fetched * *...
/* * target.h - input interface for Fetch module * @author Pavel Kryukov pavel.kryukov@phystech.edu * Copyright 2018 MIPT-MIPS */ #ifndef TARGET_H #define TARGET_H #include <infra/types.h> /* * Target is an input interface for Fetch module * It contains * * address where instruction should be fetched * *...
Use 'class' keyword for Target to treat file as C++
Use 'class' keyword for Target to treat file as C++
C
mit
MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips-2015
a757407ea2a4709594251e0c149883163e00af84
extensions/common/xwalk_extension_messages.h
extensions/common/xwalk_extension_messages.h
// Copyright (c) 2013 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <string> #include "ipc/ipc_message_macros.h" #define IPC_MESSAGE_START ExtensionMsgStart IPC_MESSAGE_ROUTED2(XWalkViewHostMsg_PostMessage, //...
// Copyright (c) 2013 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <string> #include "ipc/ipc_message_macros.h" // Note: it is safe to use numbers after LastIPCMsgStart since that limit // is not relevant for e...
Use an unique ID for Crosswalk Extension IPC messages
Use an unique ID for Crosswalk Extension IPC messages We were reusing ExtensionMsgStart, but it is not needed, we can simply take a number after the existing ones. The LastIPCMsgStart is currently used only by certain Chrome tools, so we won't miss anything for being a number larger than the last.
C
bsd-3-clause
crosswalk-project/crosswalk-efl,alex-zhang/crosswalk,xzhan96/crosswalk,lincsoon/crosswalk,DonnaWuDongxia/crosswalk,weiyirong/crosswalk-1,stonegithubs/crosswalk,baleboy/crosswalk,XiaosongWei/crosswalk,amaniak/crosswalk,mrunalk/crosswalk,crosswalk-project/crosswalk,PeterWangIntel/crosswalk,axinging/crosswalk,xzhan96/cros...
f36a7bf58c305a14b50902cbf763211f6ef5e52f
MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c
MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c
/** @file UEFI Runtime Services Table Library. Copyright (c) 2006, Intel Corporation<BR> All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license ...
/** @file UEFI Runtime Services Table Library. This library instance retrieve EFI_RUNTIME_SERVICES pointer from EFI system table in library's constructor. Copyright (c) 2006, Intel Corporation<BR> All rights reserved. This program and the accompanying materials are licensed and made available unde...
Add more comment for library instance and remove unused internal header file.
Add more comment for library instance and remove unused internal header file. git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@5799 6f19259b-4bc3-4df7-8a09-765794883524
C
bsd-2-clause
MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2
bb1eba50d7b6e81e24ddc918afda45a334d011de
src/MenuRenderer.h
src/MenuRenderer.h
/* * MenuRenderer.h * * Created on: Nov 18, 2016 * Author: msaun */ #ifndef MICKRENDERER_H_ #define MICKRENDERER_H_ #include <string> #include "RuntimeException.h" #include <SDL2/SDL.h> #include <GL/glew.h> #include <Rocket/Core.h> #include <Rocket/Core/Input.h> #include <Rocket/Debugger/Debugger.h> #in...
/* * MenuRenderer.h * * Created on: Nov 18, 2016 * Author: msaun */ #ifndef MICKRENDERER_H_ #define MICKRENDERER_H_ #include <stdexcept> #include <string> #include "RuntimeException.h" #include <SDL2/SDL.h> #include <GL/glew.h> #include <Rocket/Core.h> #include <Rocket/Core/Input.h> #include <Rocket/Debu...
Fix runtime_error is not a member of std
Fix runtime_error is not a member of std
C
apache-2.0
VenKamikaze/BitRiot,VenKamikaze/BitRiot,VenKamikaze/BitRiot
86258141b55c3fffb3489f76fc1cf70d2dcd4bb2
libmorton/include/morton_common.h
libmorton/include/morton_common.h
#ifndef MORTON_COMMON_H_ #define MORTON_COMMON_H_ #include <stdint.h> #if _MSC_VER #include <intrin.h> #endif inline bool findFirstSetBit32(const uint_fast32_t x, unsigned long* firstbit_location){ #if _MSC_VER return _BitScanReverse(firstbit_location, x); #elif __GNUC__ unsigned int pos = __builtin_ffs(x); firstb...
#ifndef MORTON_COMMON_H_ #define MORTON_COMMON_H_ #include <stdint.h> #if _MSC_VER #include <intrin.h> #endif inline bool findFirstSetBit32(const uint_fast32_t x, unsigned long* firstbit_location){ #if _MSC_VER return _BitScanReverse(firstbit_location, x); #elif __GNUC__ unsigned int pos = __builtin_ffs(x); firstb...
Fix compil on MSVC + WIN32
Fix compil on MSVC + WIN32
C
mit
Forceflow/libmorton
c1e1523fed7ad8b621425b2931c8ce89389a6f7c
libyaul/scu/bus/b/vdp1/vdp1/map.h
libyaul/scu/bus/b/vdp1/vdp1/map.h
/* * Copyright (c) 2012-2016 Israel Jacquez * See LICENSE for details. * * Israel Jacquez <mrkotfw@gmail.com> */ #ifndef _VDP1_MAP_H_ #define _VDP1_MAP_H_ #include <scu-internal.h> /* Macros specific for processor */ #define VDP1(x) (0x25D00000 + (x)) /* Helpers specific to this processor */ #define T...
/* * Copyright (c) 2012-2016 Israel Jacquez * See LICENSE for details. * * Israel Jacquez <mrkotfw@gmail.com> */ #ifndef _VDP1_MAP_H_ #define _VDP1_MAP_H_ #include <scu-internal.h> /* Macros specific for processor */ #define VDP1(x) (0x25D00000 + (x)) /* Helpers specific to this processor */ #define T...
Remove hard tabs in .h file
Remove hard tabs in .h file
C
mit
ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul
37500dc24511e9ea1d16982befdb6beb17bfeea5
test/CodeGen/thinlto_backend.c
test/CodeGen/thinlto_backend.c
// RUN: %clang -target x86_64-unknown-linux -O2 %s -flto=thin -c -o %t.o // RUN: llvm-lto -thinlto -o %t %t.o // Ensure clang -cc1 give expected error for incorrect input type // RUN: not %clang_cc1 -target x86_64-unknown-linux -O2 -o %t1.o %s -c -fthinlto-index=%t.thinlto.bc 2>&1 | FileCheck %s -check-prefix=CHECK-WA...
// RUN: %clang -target x86_64-unknown-linux -O2 %s -flto=thin -c -o %t.o // RUN: llvm-lto -thinlto -o %t %t.o // Ensure clang -cc1 give expected error for incorrect input type // RUN: not %clang_cc1 -target x86_64-unknown-linux -O2 -o %t1.o %s -c -fthinlto-index=%t.thinlto.bc 2>&1 | FileCheck %s -check-prefix=CHECK-WA...
Adjust test to fix bot error from r254927.
Adjust test to fix bot error from r254927. Remove the part of the error message that may vary across systems. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@254938 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl...
bc49e006724135994717b71920f1376161f28190
include/ecdaa.h
include/ecdaa.h
/****************************************************************************** * * Copyright 2017 Xaptum, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * h...
/****************************************************************************** * * Copyright 2017 Xaptum, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * h...
Include member_keypair_TPM.h in omnibus include file.
FIX: Include member_keypair_TPM.h in omnibus include file.
C
apache-2.0
xaptum/ecdaa,xaptum/ecdaa,xaptum/ecdaa
111ea9fc3f1daf1fdcbdacfdcc830873e03b6cb7
Examples/src/main.c
Examples/src/main.c
#include <ConsoleControl.h> #include <ConsoleControlUtility.h> #include <ConsoleControlUI.h> #include <BasicExamples.h> int main() { const char* choices[] = { "Basic features", "UI features", "Exit", }; const cc_MenuColors colors = { BLACK, CYAN, BLACK, WHITE, BLACK, CYAN, BLACK }; cc_Menu me...
#include <ConsoleControl.h> #include <ConsoleControlUtility.h> #include <ConsoleControlUI.h> #include <BasicExamples.h> int main() { const char* choices[] = { "Basic features", "UI features", "Exit", }; const cc_MenuColors colors = { BLACK, CYAN, BLACK, WHITE, BLACK, CYAN, BLACK }; cc_Menu me...
Set back the cursor and inputs visibility in the examples
Set back the cursor and inputs visibility in the examples
C
mit
pinam45/ConsoleControl,pinam45/ConsoleControl
c13d9c1fb787982bd791975f9f7f6cc8f793d1e6
tests/testrender.c
tests/testrender.c
/* $Id$ */ #include "GL/glc.h" #include <stdio.h> extern void my_init(void); extern void my_fini(void); void testQueso(void) { int ctx = 0; int font = 0; my_init(); ctx = glcGenContext(); glcContext(ctx); glcAppendCatalog("/usr/lib/X11/fonts/Type1"); glcFontFace(glcNewF...
/* $Id$ */ #include "GL/glc.h" #include <stdio.h> extern void my_init(void); extern void my_fini(void); void testQueso(void) { int ctx = 0; int font = 0; my_init(); ctx = glcGenContext(); glcContext(ctx); glcAppendCatalog("/usr/lib/X11/fonts/Type1"); glcFontFace(glcNewF...
Test of rendering commands is now a bit more complex
Test of rendering commands is now a bit more complex
C
lgpl-2.1
Safety0ff/QuesoGLC,Safety0ff/QuesoGLC,Safety0ff/QuesoGLC
ef39b128e18a557777c1223531f63e3da9fc8e48
Settings/Tabs/OSD.h
Settings/Tabs/OSD.h
#pragma once #include "../Controls/Controls.h" #include "SettingsTab.h" class OSD : public SettingsTab { public: OSD(HINSTANCE hInstance, LPCWSTR tabTemplate, LPCWSTR title = L""); virtual void SaveSettings(); protected: virtual void Initialize(); virtual void LoadSettings(); private: /* Control...
#pragma once #include "SettingsTab.h" class OSD : public SettingsTab { public: OSD(HINSTANCE hInstance, LPCWSTR tabTemplate, LPCWSTR title = L""); virtual void SaveSettings(); protected: virtual void Initialize(); virtual void LoadSettings(); private: /* Controls: */ ListView *_osdList; ...
Remove controls header (moved to SettingsTab)
Remove controls header (moved to SettingsTab)
C
bsd-2-clause
malensek/3RVX,malensek/3RVX,malensek/3RVX
889d50ff21e47e3c33ea4ab7178a9680ac49f520
vsprojects/dummy.c
vsprojects/dummy.c
/* * * Copyright 2015, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of condi...
/* * * Copyright 2015, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of condi...
Fix newline at end of file
Fix newline at end of file
C
bsd-3-clause
grani/grpc,a11r/grpc,nicolasnoble/grpc,thunderboltsid/grpc,ppietrasa/grpc,kumaralokgithub/grpc,adelez/grpc,apolcyn/grpc,greasypizza/grpc,carl-mastrangelo/grpc,donnadionne/grpc,sreecha/grpc,infinit/grpc,jboeuf/grpc,miselin/grpc,jboeuf/grpc,vsco/grpc,msiedlarek/grpc,jboeuf/grpc,apolcyn/grpc,murgatroid99/grpc,makdharma/gr...
363f031f11c3b704a77e65535915297fdcf3d669
src/fake-lock-screen-pattern.h
src/fake-lock-screen-pattern.h
#ifndef _FAKE_LOCK_SCREEN_PATTERN_H_ #define _FAKE_LOCK_SCREEN_PATTERN_H_ #include <gtk/gtk.h> #if !GTK_CHECK_VERSION(3, 0, 0) typedef struct { gdouble red; gdouble green; gdouble blue; gdouble alpha; } GdkRGBA; #endif #endif
#ifndef _FAKE_LOCK_SCREEN_PATTERN_H_ #define _FAKE_LOCK_SCREEN_PATTERN_H_ #include <gtk/gtk.h> #if !GTK_CHECK_VERSION(3, 0, 0) typedef struct { gdouble red; gdouble green; gdouble blue; gdouble alpha; } GdkRGBA; #endif void flsp_draw_circle(cairo_t *context, gint x, gint y, gint radius,...
Add function to draw primitive circle
Add function to draw primitive circle
C
mit
kenhys/fake-lock-screen-pattern,kenhys/fake-lock-screen-pattern
855bb402a5e8492e2ffdee1d5c402f23bfe53687
include/HubFramework/HubFramework.h
include/HubFramework/HubFramework.h
/// Umbrella header for the Hub Framework #import "HUBManager.h" #import "HUBConnectivityStateResolver.h" // JSON #import "HUBJSONSchema.h" #import "HUBViewModelJSONSchema.h" #import "HUBComponentModelJSONSchema.h" #import "HUBComponentImageDataJSONSchema.h" #import "HUBJSONSchemaRegistry.h" #import "HUBJSONPath.h" #...
/// Umbrella header for the Hub Framework #import "HUBManager.h" #import "HUBConnectivityStateResolver.h" // JSON #import "HUBJSONSchema.h" #import "HUBViewModelJSONSchema.h" #import "HUBComponentModelJSONSchema.h" #import "HUBComponentImageDataJSONSchema.h" #import "HUBJSONSchemaRegistry.h" #import "HUBJSONPath.h" #...
Remove `HUBComponentIdentifier` import from umbrella header
Remove `HUBComponentIdentifier` import from umbrella header
C
apache-2.0
spotify/HubFramework,spotify/HubFramework,spotify/HubFramework,spotify/HubFramework
3730accd147663026f892a707166c0c001cabed0
snippets/TMAX.c
snippets/TMAX.c
#! /usr/bin/tcc -run // demonstate testmin testmax consistency with malloc #include <string.h> // memcpy #include <stdio.h> // printf #include <stdlib.h> // malloc #include <assert.h> // assert typedef struct {ssize_t size; char *row; int count;} slot; slot line; slot *text; int main(void) { leng = ...
#! /usr/bin/tcc -run #include <string.h> // memcpy #include <stdio.h> // printf #include <stdlib.h> // malloc #include <assert.h> // assert #define textbound texndx = (int) (text + iy); \ assert(textmin <= texndx); \ assert(textmax >= texndx); ...
Add definition for testing bounds on array text
Add definition for testing bounds on array text
C
bsd-2-clause
eingaeph/pip.imbue.hood,eingaeph/pip.imbue.hood
ac21a316a0e0179d2d2b52d81d417430a82992ca
dependencies/stdafx/stdafx.h
dependencies/stdafx/stdafx.h
#include <Ogre.h> #include <OgreMeshFileFormat.h> #include <OgreOptimisedUtil.h> #include <OgrePredefinedControllers.h> #ifdef WIN32 #include <OgreD3D9RenderSystem.h> #include <OgreD3D9HLSLProgram.h> #endif #include <OgreOctreePlugin.h> #include <OgreOctreeSceneManager.h> #include <OgreCgPlugin.h> #include <OgreCgPr...
#include <Ogre.h> #include <OgreDepthBuffer.h> #include <OgreMeshFileFormat.h> #include <OgreOptimisedUtil.h> #include <OgrePredefinedControllers.h> #ifdef WIN32 #include <OgreD3D9RenderSystem.h> #include <OgreD3D9HLSLProgram.h> #endif #include <OgreOctreePlugin.h> #include <OgreOctreeSceneManager.h> #include <OgreC...
Add Depthbuffer to precompiled header
Add Depthbuffer to precompiled header
C
mit
grit-engine/grit-engine,sparkprime/grit-engine,sparkprime/grit-engine,sparkprime/grit-engine,grit-engine/grit-engine,grit-engine/grit-engine,sparkprime/grit-engine,grit-engine/grit-engine
cd15a3b8e5975c8ddc5928022fce4696adce5e8c
Pods/Expecta/src/matchers/EXPMatchers+equal.h
Pods/Expecta/src/matchers/EXPMatchers+equal.h
#import "Expecta.h" EXPMatcherInterface(_equal, (id expected)); EXPMatcherInterface(equal, (id expected)); // to aid code completion #define equal(expected) _equal(EXPObjectify((expected)))
#import "Expecta.h" EXPMatcherInterface(_equal, (id expected)); EXPMatcherInterface(equal, (id expected)); // to aid code completion #define equal(...) _equal(EXPObjectify((__VA_ARGS__)))
Change expecta equal() to accept any amount of argument
Change expecta equal() to accept any amount of argument This helps with array literals
C
mit
frenetisch-applaudierend/mocka,frenetisch-applaudierend/mocka
6a8cbb53dad28508f0fbb893ce37defbbec11a49
src/bin/e_log.c
src/bin/e_log.c
#include "e.h" EINTERN int e_log_dom = -1; EINTERN int e_log_init(void) { e_log_dom = eina_log_domain_register("e", EINA_COLOR_WHITE); return e_log_dom != -1; } EINTERN int e_log_shutdown(void) { eina_log_domain_unregister(e_log_dom); e_log_dom = -1; return 0; }
#include "e.h" EINTERN int e_log_dom = -1; static const char *_names[] = { "CRI", "ERR", "WRN", "INF", "DBG", }; static void _e_log_cb(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc EINA_UNUSED, int line, const char *fmt, void *data EINA_UNUSED, va_list args) { co...
Revert "e logs - the custom e log func breaks eina backtraces, so don't use it"
Revert "e logs - the custom e log func breaks eina backtraces, so don't use it" This reverts commit 2df04042269f3b5604c719844eac372fa5fcddd2. let's not do this in all cases
C
bsd-2-clause
tasn/enlightenment,rvandegrift/e,rvandegrift/e,rvandegrift/e,tasn/enlightenment,tasn/enlightenment
ae0b6ad71ed495ac6fba25c8b8feb25828e756a0
rest/rest-main.c
rest/rest-main.c
#include "rest-private.h" guint rest_debug_flags = 0; /* * "Private" function used to set debugging flags based on environment * variables. Called upon entry into all public functions. */ void _rest_setup_debugging (void) { const gchar *tmp; gchar **parts; gint i = 0; static gboolean setup_done = FALSE; ...
#include "rest-private.h" guint rest_debug_flags = 0; /* * "Private" function used to set debugging flags based on environment * variables. Called upon entry into all public functions. */ void _rest_setup_debugging (void) { static gboolean setup_done = FALSE; static const GDebugKey keys[] = { { "xml-parser...
Use g_parse_debug_string instead of manually parsing
Use g_parse_debug_string instead of manually parsing
C
lgpl-2.1
GNOME/librest,Distrotech/librest,ThomasBollmeier/librest-oauth-proxy,GNOME/librest,Distrotech/librest,GNOME/librest,ThomasBollmeier/librest-oauth-proxy
4026b3ed5ed0c6af1312ac58a2ec578637d9175a
test/Driver/mno-global-merge.c
test/Driver/mno-global-merge.c
// RUN: %clang -target armv7-apple-darwin10 \ // RUN: -mno-global-merge -### -fsyntax-only %s 2> %t // RUN: FileCheck --check-prefix=CHECK-NGM < %t %s // RUN: %clang -target arm64-apple-ios7 \ // RUN: -mno-global-merge -### -fsyntax-only %s 2> %t // RUN: FileCheck --check-prefix=CHECK-NGM < %t %s // CHECK-NGM: "-...
// RUN: %clang -target armv7-apple-darwin10 \ // RUN: -mno-global-merge -### -fsyntax-only %s 2> %t // RUN: FileCheck --check-prefix=CHECK-NGM < %t %s // RUN: %clang -target arm64-apple-ios7 \ // RUN: -mno-global-merge -### -fsyntax-only %s 2> %t // RUN: FileCheck --check-prefix=CHECK-NGM < %t %s // CHECK-NGM: "-...
Revert new test from 213993.
Revert new test from 213993. It requires an arm backend and also writes output in the test directory. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@213998 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
009aeab78a78eb666321eea22fb515f718142165
Sub-Terra/include/World.h
Sub-Terra/include/World.h
#pragma once #include <boost/unordered_map.hpp> #include "System.h" #include "OpenSimplexNoise.h" enum class ChunkStatus { Generating, Alive, Dying, Dead }; typedef std::tuple<int64_t, int64_t, int64_t> ChunkKeyType; typedef std::tuple<ChunkStatus, IDType> ChunkContainerType; typedef boost::unordered_map<ChunkKe...
#pragma once #include <boost/unordered_map.hpp> #include "System.h" #include "OpenSimplexNoise.h" enum class ChunkStatus { Generating, Alive, Dying, Dead }; typedef std::tuple<int64_t, int64_t, int64_t> ChunkKeyType; typedef std::tuple<ChunkStatus, IDType> ChunkContainerType; typedef boost::unordered_map<ChunkKe...
Change world view distance to 3
Change world view distance to 3
C
mpl-2.0
shockkolate/polar4,shockkolate/polar4,shockkolate/polar4,polar-engine/polar,shockkolate/polar4,polar-engine/polar
e66fb4cb5e5c3ed80e5e874cc06c110482a57ab3
ionCore/ionStandardLibrary.h
ionCore/ionStandardLibrary.h
#pragma once #include "ionTypes.h" #include <algorithm> #include <numeric> #include <iomanip> #include <iostream> #include <fstream> #include <sstream> using std::move; using std::ifstream; template <typename T, typename U> U * ConditionalMapAccess(map<T, U *> & Map, T const Key) { auto Iterator...
#pragma once #include "ionTypes.h" #include <algorithm> #include <numeric> #include <iomanip> #include <iostream> #include <fstream> #include <sstream> using std::move; using std::ifstream; template <typename T, typename U> U * ConditionalMapAccess(map<T, U *> & Map, T const Key) { auto Iterator...
Add some file utility functions
Add some file utility functions --HG-- branch : SceneOverhaul
C
mit
iondune/ionEngine,iondune/ionEngine
ad74ebb3ae7f3dee129f0ccce11100e3fcef1d4c
bin/check_it.c
bin/check_it.c
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <pwd.h> int main(int argc, char** argv) { struct passwd *passwd = getpwuid(getuid()); int errno = setreuid(geteuid(), geteuid()); // errno = execle("/usr/bin/id", (char *) 0, envp); if (errno == 0 && passwd != 0) { // CHECK...
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <pwd.h> int main(int argc, char** argv) { struct passwd *passwd = getpwuid(getuid()); int errno = setreuid(geteuid(), geteuid()); // errno = execle("/usr/bin/id", (char *) 0, envp); if (errno == 0 && passwd != 0) { // CHECK...
Reduce Java VM max heap space.
Reduce Java VM max heap space.
C
agpl-3.0
jimwhite/CheckIt,jimwhite/CheckIt,jimwhite/CheckIt,jimwhite/CheckIt
1edbd62cac51376384ca2786be85fbbe0cbe7dbb
src/interfaces/odbc/md5.h
src/interfaces/odbc/md5.h
/* File: connection.h * * Description: See "connection.c" * * Comments: See "notice.txt" for copyright and license information. * */ #ifndef __MD5_H__ #define __MD5_H__ #include "psqlodbc.h" #include <stdlib.h> #include <string.h> #ifdef WIN32 #define MD5_ODBC #define FRONTEND #endif #defi...
/* File: connection.h * * Description: See "md.h" * * Comments: See "notice.txt" for copyright and license information. * */ #ifndef __MD5_H__ #define __MD5_H__ #include "psqlodbc.h" #include <stdlib.h> #include <string.h> #ifdef WIN32 #define MD5_ODBC #define FRONTEND #endif #define MD5_PASSWD_LEN 35 /*...
Fix comment at top of file to match file name.
Fix comment at top of file to match file name.
C
apache-2.0
lisakowen/gpdb,janebeckman/gpdb,xuegang/gpdb,Quikling/gpdb,cjcjameson/gpdb,cjcjameson/gpdb,rubikloud/gpdb,snaga/postgres-xl,techdragon/Postgres-XL,arcivanov/postgres-xl,tangp3/gpdb,greenplum-db/gpdb,rubikloud/gpdb,oberstet/postgres-xl,ahachete/gpdb,Quikling/gpdb,Postgres-XL/Postgres-XL,tangp3/gpdb,greenplum-db/gpdb,kak...
acce10551c7483b3fc03ec70ad4982c8d975b729
ObjectiveRocks/ObjectiveRocks.h
ObjectiveRocks/ObjectiveRocks.h
// // ObjectiveRocks.h // ObjectiveRocks // // Created by Iska on 20/11/14. // Copyright (c) 2014 BrainCookie. All rights reserved. // #import "RocksDB.h" #import "RocksDBColumnFamily.h" #import "RocksDBOptions.h" #import "RocksDBReadOptions.h" #import "RocksDBWriteOptions.h" #import "RocksDBWriteBatch.h" #import ...
// // ObjectiveRocks.h // ObjectiveRocks // // Created by Iska on 20/11/14. // Copyright (c) 2014 BrainCookie. All rights reserved. // #import "RocksDB.h" #import "RocksDBColumnFamily.h" #import "RocksDBOptions.h" #import "RocksDBReadOptions.h" #import "RocksDBWriteOptions.h" #import "RocksDBWriteBatch.h" #import ...
Add BackupInfo class to public include header
Add BackupInfo class to public include header
C
mit
iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks
fae9876b444ebf71c67626d2d3d5f9a11ab7b664
common-block.h
common-block.h
// See copyright notice in Copying. #ifndef COMMON_BLOCK_H #define COMMON_BLOCK_H enum { FLAG_DEFAULT = 0, FLAG_IS_FRAGMENT = 1 << 0, FLAG_ADMIN = 1 << 1, FLAG_NO_FRAGMENT = 1 << 2, FLAG_CUSTODY = 1 << 3, FLAG_SINGLETON = 1 << 4, FLAG_ACK = 1 << 5, PRIO_RESET = ~(0x3 << 7), PRIO_...
// See copyright notice in Copying. #ifndef COMMON_BLOCK_H #define COMMON_BLOCK_H #define FLAG_DEFAULT 0u #define FLAG_IS_FRAGMENT (1u << 0) #define FLAG_ADMIN (1u << 1) #define FLAG_NO_FRAGMENT (1u << 2) #define FLAG_CUSTODY (1u << 3) #define FLAG_SINGLETON (1u << 4) #define FLAG_ACK (1u << 5) #define PRIO_RESET ~...
Convert flag constants from enum to defines
Convert flag constants from enum to defines This fixes signedness errors
C
mit
kchmck/mkbundle
2b708e4b50326969e78877fdf144624d79815b8d
src/unionfs.h
src/unionfs.h
/* * License: BSD-style license * Copyright: Radek Podgorny <radek@podgorny.cz>, * Bernd Schubert <bernd-schubert@gmx.de> */ #ifndef UNIONFS_H #define UNIONFS_H #define PATHLEN_MAX 1024 #define HIDETAG "_HIDDEN~" #define METADIR ".unionfs/" typedef struct { char *path; int fd; // used to prevent acciden...
/* * License: BSD-style license * Copyright: Radek Podgorny <radek@podgorny.cz>, * Bernd Schubert <bernd-schubert@gmx.de> */ #ifndef UNIONFS_H #define UNIONFS_H #define PATHLEN_MAX 1024 #define HIDETAG "_HIDDEN~" #define METADIR ".unionfs/" typedef struct { char *path; int fd; // used to prevent acciden...
Rename our struct statvfs to struct ustatvfs to prevent libc name collision.
Rename our struct statvfs to struct ustatvfs to prevent libc name collision.
C
bsd-3-clause
evnu/unionfs-fuse,evnu/unionfs-fuse,kissthink/unionfs-fuse-1,jrk/unionfs-fuse,yogoloth/unionfs-fuse,kissthink/unionfs-fuse-1,yogoloth/unionfs-fuse,jrk/unionfs-fuse,jrk/unionfs-fuse,yogoloth/unionfs-fuse,jrk/unionfs-fuse,kissthink/unionfs-fuse-1,evnu/unionfs-fuse
9cea98e320bfc37a6df373245f916b15c68a7f01
src/consensus/consensus.h
src/consensus/consensus.h
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_CONSENSUS_CONSENSUS_H #define BITCOIN_CONSENSUS_CONSENSUS_H /** ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2016 The Bitcoin Ocho developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_CONSENSUS_CONSE...
Add more Ochoness to Bitcoin.
Add more Ochoness to Bitcoin.
C
mit
goku1997/bitcoin,goku1997/bitcoin,goku1997/bitcoin,goku1997/bitcoin,goku1997/bitcoin,goku1997/bitcoin
ab5acba34782d735f759c709e74d957c9d7418ba
test/FrontendC/2009-03-09-WeakDeclarations-1.c
test/FrontendC/2009-03-09-WeakDeclarations-1.c
// RUN: $llvmgcc $test -c -o /dev/null |& \ // RUN: egrep {(14|15|22): warning:} | \ // RUN: wc -l | grep --quiet 3 // TARGET: *-*-darwin // XFAIL: alpha|ia64|sparc // END. // Insist upon warnings for inappropriate weak attributes. // Note the line numbers (14|15|22) embedded in the check. // O.K. extern int ext_weak_...
// RUN: $llvmgcc $test -c -o /dev/null |& \ // RUN: egrep {(14|15|22): warning:} | \ // RUN: wc -l | grep --quiet 3 // XTARGET: darwin // XFAIL: * // END. // Insist upon warnings for inappropriate weak attributes. // Note the line numbers (14|15|22) embedded in the check. // O.K. extern int ext_weak_import __attribute...
Tweak the DejaGNU voodoo to match Bill's advice.
Tweak the DejaGNU voodoo to match Bill's advice. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@66547 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,...
974eb1d090aece41e72c31772ea7266b1e31f6e7
test/Modules/Inputs/submodules/import-self-b.h
test/Modules/Inputs/submodules/import-self-b.h
@import import_self.c; #include "import-self-d.h" // FIXME: This should not work; names from 'a' should not be visible here. MyTypeA import_self_test_a; // FIXME: This should work but does not; names from 'b' are not actually visible here. //MyTypeC import_self_test_c; MyTypeD import_self_test_d;
// FIXME: This import has no effect, because the submodule isn't built yet, and // we don't map an @import to a #include in this case. @import import_self.c; #include "import-self-d.h" // FIXME: This should not work; names from 'a' should not be visible here. MyTypeA import_self_test_a; // FIXME: This should work but...
Fix comment typo in test.
Fix comment typo in test. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@200584 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
d9eb347432f247879ba10da2a64f810657a09c84
source/core/recommend-manager/RandGenerator.h
source/core/recommend-manager/RandGenerator.h
/** * @file RandGenerator.h * @brief generate random item ids * @author Jun Jiang * @date 2011-11-30 */ #ifndef RAND_GENERATOR_H #define RAND_GENERATOR_H #include <util/ThreadModel.h> #include <boost/random.hpp> namespace sf1r { template<typename ValueType = int, typename Distribution = boost::unifor...
/** * @file RandGenerator.h * @brief generate random item ids * @author Jun Jiang * @date 2011-11-30 */ #ifndef RAND_GENERATOR_H #define RAND_GENERATOR_H #include <util/ThreadModel.h> #include <boost/random.hpp> namespace sf1r { template<typename ValueType = int, typename Distribution = boost::unifor...
Fix compile error under boost 1.38, caused by boost/random.hpp seed()
Fix compile error under boost 1.38, caused by boost/random.hpp seed()
C
apache-2.0
pombredanne/sf1r-lite,izenecloud/sf1r-ad-delivery,izenecloud/sf1r-lite,izenecloud/sf1r-lite,izenecloud/sf1r-lite,pombredanne/sf1r-lite,pombredanne/sf1r-lite,izenecloud/sf1r-ad-delivery,izenecloud/sf1r-lite,pombredanne/sf1r-lite,izenecloud/sf1r-ad-delivery,pombredanne/sf1r-lite,izenecloud/sf1r-lite,izenecloud/sf1r-ad-de...
f5e8daa70a39edf01a823aaee724c3d930064a53
include/TaskBase.h
include/TaskBase.h
#ifndef _TPOOL_TASK_BASE_H_ #define _TPOOL_TASK_BASE_H_ #include <boost/shared_ptr.hpp> namespace tpool { class TaskBase { public: typedef boost::shared_ptr<TaskBase> Ptr; ~TaskBase() {} virtual void Do() = 0; }; } #endif
#ifndef _TPOOL_TASK_BASE_H_ #define _TPOOL_TASK_BASE_H_ #include <boost/shared_ptr.hpp> namespace tpool { class TaskBase { public: typedef boost::shared_ptr<TaskBase> Ptr; enum State { INIT, RUNNING, FINISHED, CANCELED, }; ~TaskBase() {} virtual void Do() = 0; ...
Add the state definitions for Task.
Add the state definitions for Task.
C
mit
airekans/Tpool,airekans/Tpool,airekans/Tpool
38b20649403f2cbffc4581211f1b61868e3b358f
include/features.h
include/features.h
#ifndef __FEATURES_H #define __FEATURES_H #ifdef __STDC__ #define __P(x) x #define __const const /* Almost ansi */ #if __STDC__ != 1 #define const #define volatile #endif #else /* K&R */ #define __P(x) () #define __const #define const #define volatile #endif /* No C++ */ #define __BEGIN_DECLS #define __END_DECL...
#ifndef __FEATURES_H #define __FEATURES_H /* Major and minor version number of the uCLibc library package. Use these macros to test for features in specific releases. */ #define __UCLIBC__ 0 #define __UCLIBC_MAJOR__ 9 #define __UCLIBC_MINOR__ 1 #ifdef __STDC__ #define __P(x) x #define __const const /* Almo...
Add in a version number so apps can tell uclib is being used. -Erik
Add in a version number so apps can tell uclib is being used. -Erik
C
lgpl-2.1
wbx-github/uclibc-ng,atgreen/uClibc-moxie,ysat0/uClibc,skristiansson/uClibc-or1k,skristiansson/uClibc-or1k,wbx-github/uclibc-ng,klee/klee-uclibc,atgreen/uClibc-moxie,hjl-tools/uClibc,kraj/uClibc,ffainelli/uClibc,groundwater/uClibc,m-labs/uclibc-lm32,groundwater/uClibc,majek/uclibc-vx32,groundwater/uClibc,foss-xtensa/uC...
c35746580036ca9b6fc9ec172634dfab12237abb
include/odp_sync.h
include/odp_sync.h
/* Copyright (c) 2013, Linaro Limited * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ /** * @file * * ODP synchronisation */ #ifndef ODP_SYNC_H_ #define ODP_SYNC_H_ #ifdef __cplusplus extern "C" { #endif /** * Synchronise stores * * Ensures that all CPU store operations that pre...
/* Copyright (c) 2013, Linaro Limited * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ /** * @file * * ODP synchronisation */ #ifndef ODP_SYNC_H_ #define ODP_SYNC_H_ #ifdef __cplusplus extern "C" { #endif /** * Synchronise stores * * Ensures that all CPU store operations that pre...
Add write memory barrier for aarch64
Add write memory barrier for aarch64 This patch updates odp_sync_stores routine to add write memory barrier for aarch64. Signed-off-by: Ankit Jindal <0920ec6e02c95b572519373847b995b0763a0743@linaro.org> Signed-off-by: Tushar Jagad <3604ae1aed16529df1f2280ecebda0599cb1687d@linaro.org> Reviewed-by: Anders Roxell <b4e8e...
C
bsd-3-clause
ravineet-singh/odp,kalray/odp-mppa,dkrot/odp,mike-holmes-linaro/odp,nmorey/odp,rsalveti/odp,dkrot/odp,kalray/odp-mppa,erachmi/odp,erachmi/odp,rsalveti/odp,kalray/odp-mppa,dkrot/odp,mike-holmes-linaro/odp,kalray/odp-mppa,ravineet-singh/odp,kalray/odp-mppa,nmorey/odp,mike-holmes-linaro/odp,rsalveti/odp,rsalveti/odp,ravin...
fb0da0b3b4ece34207375ecddd022f2e2d5b7c52
include/libk/kputs.h
include/libk/kputs.h
#ifndef KPUTS_H #define KPUTS_H #include "drivers/terminal.h" void kputs(char* string); void kprint_int(char* string, int i); #endif
#ifndef KPUTS_H #define KPUTS_H #include <stdarg.h> #include "drivers/terminal.h" void kputs(char* string); void kprintf(char* string, ...); #endif
Update headers to match new printf
Update headers to match new printf
C
mit
Herbstein/kernel-of-truth,awensaunders/kernel-of-truth,iankronquist/kernel-of-truth,awensaunders/kernel-of-truth,iankronquist/kernel-of-truth,Herbstein/kernel-of-truth,Herbstein/kernel-of-truth,awensaunders/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth
afd6a6dcac92c604ff97892e3c95f845dd479bc5
includes/grid_cell.h
includes/grid_cell.h
#ifndef GRIDCELL_H #define GRIDCELL_H #include <gsl/gsl_rng.h> /* DATA STRUCTURES */ #define GC_NUM_STATES 4 typedef enum { DECIDUOUS,CONIFEROUS,TRANSITIONAL,MIXED} State; typedef double StateData [GC_NUM_STATES]; typedef enum { MOORE, VONNE} NeighType; extern State GC_POSSIBLE_STATES [GC_NUM_STATES]; // this...
#ifndef GRIDCELL_H #define GRIDCELL_H #include <gsl/gsl_rng.h> /* DATA STRUCTURES */ #define GC_NUM_STATES 4 typedef enum { DECIDUOUS,CONIFEROUS,TRANSITIONAL,MIXED} State; typedef double StateData [GC_NUM_STATES]; typedef enum { MOORE, VONNE} NeighType; typedef struct { double meanTemp; /*Task: list al...
Delete unused extern variable declared
Delete unused extern variable declared
C
mit
QUICC-FOR/STModel-Simulation,QUICC-FOR/STModel-Simulation
cac419e1c61a882875bcf0ea494ead7b476998ce
src/qt/guiconstants.h
src/qt/guiconstants.h
#ifndef GUICONSTANTS_H #define GUICONSTANTS_H /* Milliseconds between model updates */ static const int MODEL_UPDATE_DELAY = 500; /* AskPassphraseDialog -- Maximum passphrase length */ static const int MAX_PASSPHRASE_SIZE = 1024; /* CubitsGUI -- Size of icons in status bar */ static const int STATUSBAR_ICONSIZE = 16...
#ifndef GUICONSTANTS_H #define GUICONSTANTS_H /* Milliseconds between model updates */ static const int MODEL_UPDATE_DELAY = 5000; /* AskPassphraseDialog -- Maximum passphrase length */ static const int MAX_PASSPHRASE_SIZE = 1024; /* CubitsGUI -- Size of icons in status bar */ static const int STATUSBAR_ICONSIZE = 1...
Set more rare GUI update
Set more rare GUI update
C
mit
scificrypto/CubitsV3,scificrypto/CubitsV3,scificrypto/CubitsV3,scificrypto/CubitsV3
bff8460f062b896473f4ef4d0baf5ad1c35c40e5
include/teraranger_hub/serial_port.h
include/teraranger_hub/serial_port.h
#ifndef TR_HUB_SERIAL_PORT_H #define TR_HUB_SERIAL_PORT_H #include <stdio.h> // Standard input/output definitions #include <string.h> // String function definitions #include <unistd.h> // UNIX standard function definitions #include <fcntl.h> // File control definitions #include <errno.h> // Error number d...
#ifndef TERARANGER_HUB_SERIAL_PORT_H #define TERARANGER_HUB_SERIAL_PORT_H #include <stdio.h> // Standard input/output definitions #include <string.h> // String function definitions #include <unistd.h> // UNIX standard function definitions #include <fcntl.h> // File control definitions #include <errno.h> /...
Fix ifdef for serial port header file
Fix ifdef for serial port header file
C
mit
Terabee/teraranger_array,Terabee/teraranger_array
f9167849b8c24cd4689aedd6c9a1c43719091d8f
tests/sv-comp/observer/path_nofun_true-unreach-call.c
tests/sv-comp/observer/path_nofun_true-unreach-call.c
extern void __VERIFIER_error() __attribute__ ((__noreturn__)); extern int __VERIFIER_nondet_int(); void __VERIFIER_assert(int cond) { if (!(cond)) { ERROR: __VERIFIER_error(); } return; } int main() { int x, y; if (__VERIFIER_nondet_int()) { x = 0; y = 1; } else ...
extern void __VERIFIER_error() __attribute__ ((__noreturn__)); extern int __VERIFIER_nondet_int(); int main() { int x, y; if (__VERIFIER_nondet_int()) { x = 0; y = 1; } else { x = 1; y = 0; } // if (!(x + y == 1)) if (x + y != 1) __VERIFIER_e...
Remove unused __VERIFIER_assert definition from nofun test
Remove unused __VERIFIER_assert definition from nofun test
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
c34ed4e5cb60bfbb707118f69f3bb9fea48ce890
src/qtyaml_global.h
src/qtyaml_global.h
#ifndef QTYAML_GLOBAL_H #define QTYAML_GLOBAL_H #include <QtCore/QtGlobal> #if defined(QTYAML_LIBRARY) # define QTYAMLSHARED_EXPORT Q_DECL_EXPORT #else # define QTYAMLSHARED_EXPORT Q_DECL_IMPORT #endif #endif // QTYAML_GLOBAL_H
#ifndef QTYAML_GLOBAL_H #define QTYAML_GLOBAL_H #include <QtCore/QtGlobal> #ifdef YAML_DECLARE_STATIC # define QTYAMLSHARED_EXPORT #else # ifdef QTYAML_LIBRARY # define QTYAMLSHARED_EXPORT Q_DECL_EXPORT # else # define QTYAMLSHARED_EXPORT Q_DECL_IMPORT # endif #endif #endif // QTYAML_GLOBAL_H
Add support for static lib
Add support for static lib
C
mit
uranusjr/qtyaml,uranusjr/qtyaml
ccac208ec5892857a5847a12b098d2358e023f7c
lib/common/htmllex.h
lib/common/htmllex.h
/* $Id$ $Revision$ */ /* vim:set shiftwidth=4 ts=8: */ /********************************************************** * This software is part of the graphviz package * * http://www.graphviz.org/ * * * * Copyright (...
/* $Id$ $Revision$ */ /* vim:set shiftwidth=4 ts=8: */ /********************************************************** * This software is part of the graphviz package * * http://www.graphviz.org/ * * * * Copyright (...
Add support for charset attribute and Latin1 encoding.
Add support for charset attribute and Latin1 encoding.
C
epl-1.0
kbrock/graphviz,pixelglow/graphviz,MjAbuz/graphviz,BMJHayward/graphviz,kbrock/graphviz,tkelman/graphviz,MjAbuz/graphviz,jho1965us/graphviz,MjAbuz/graphviz,ellson/graphviz,tkelman/graphviz,tkelman/graphviz,ellson/graphviz,jho1965us/graphviz,MjAbuz/graphviz,pixelglow/graphviz,pixelglow/graphviz,BMJHayward/graphviz,tkelma...
03888f30421578b58039eec720ed31061f9d0205
libyaul/scu/bus/cpu/cpu_slave.c
libyaul/scu/bus/cpu/cpu_slave.c
/* * Copyright (c) 2012-2016 * See LICENSE for details. * * Israel Jacquez <mrkotfw@gmail.com */ #include <sys/cdefs.h> #include <smpc/smc.h> #include <cpu/instructions.h> #include <cpu/frt.h> #include <cpu/intc.h> #include <cpu/map.h> #include <cpu/slave.h> static void _slave_entry(void); static void _default...
/* * Copyright (c) 2012-2016 * See LICENSE for details. * * Israel Jacquez <mrkotfw@gmail.com */ #include <sys/cdefs.h> #include <smpc/smc.h> #include <cpu/instructions.h> #include <cpu/frt.h> #include <cpu/intc.h> #include <cpu/map.h> #include <cpu/slave.h> static void _slave_entry(void); static void _defaul...
Mark _slave_entry to never return
Mark _slave_entry to never return
C
mit
ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul
f24d87c7337579bf4234af5bf89b1f9b17363afc
test/CFrontend/2007-04-17-ZeroSizeBitFields.c
test/CFrontend/2007-04-17-ZeroSizeBitFields.c
; PR 1332 ; RUN: %llvmgcc %s -S -o /dev/null struct Z { int a:1; int :0; int c:1; } z;
// PR 1332 // RUN: %llvmgcc %s -S -o /dev/null struct Z { int a:1; int :0; int c:1; } z;
Use // not ; since this is C.
Use // not ; since this is C. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@36219 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asa...
1e7780610468211cceb4483beea45aa7c850834e
chrome/browser/ui/views/toolbar/wrench_menu_observer.h
chrome/browser/ui/views/toolbar/wrench_menu_observer.h
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_OBSERVER_H_ #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_OBSERVER_H_ // TODO(gbillock): Make t...
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_OBSERVER_H_ #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_OBSERVER_H_ class WrenchMenuObserver ...
Remove TODO about making WrenchMenuObserver an inner class of WrenchMenu.
Remove TODO about making WrenchMenuObserver an inner class of WrenchMenu. Chromium code style says: "Prefer putting delegate classes in their own header files. Implementors of the delegate interface will often be included elsewhere, which will often cause more coupling with the header of the main class." http://www.c...
C
bsd-3-clause
PeterWangIntel/chromium-crosswalk,ChromiumWebApps/chromium,M4sse/chromium.src,crosswalk-project/chromium-crosswalk-efl,anirudhSK/chromium,jaruba/chromium.src,Chilledheart/chromium,crosswalk-project/chromium-crosswalk-efl,Jonekee/chromium.src,littlstar/chromium.src,PeterWangIntel/chromium-crosswalk,fujunwei/chromium-cro...
02a90edb5163e2f6cc07573812b10a0c35ac9e1a
lib/node_modules/@stdlib/strided/common/include/stdlib/strided_typedefs.h
lib/node_modules/@stdlib/strided/common/include/stdlib/strided_typedefs.h
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
Sort includes in alphabetical order
Sort includes in alphabetical order
C
apache-2.0
stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib
4373f87d58c5761ff0a9199741f0d8de4aa2b7a3
Chapter1/temperatures.c
Chapter1/temperatures.c
#include <stdio.h> /* print Fahrenheit-Celsius table for fahr = 0, 20, ..., 300 */ int main(void) { float fahr, celsius; int lower, upper, step; lower = 0; // lower limit of temperature table upper = 300; // upper limit step = 20; // step size printf("Fahrenheit-Celsius Table\n\n"); fahr =...
#include <stdio.h> /* print Fahrenheit-Celsius table for fahr = 0, 20, ..., 300 */ // int main(void) // { // float fahr, celsius; // int lower, upper, step; // lower = 0; // lower limit of temperature table // upper = 300; // upper limit // step = 20; // step size // printf("Fahrenheit-Celsiu...
Implement temperature program with a for loop
Implement temperature program with a for loop
C
mit
Kunal57/C_Problems,Kunal57/C_Problems
a1ec514adc224359043f267df88bf3dc07acb6b3
lcm-lua/init.c
lcm-lua/init.c
#ifdef __cplusplus extern "C" { #endif #include "lua.h" #ifdef __cplusplus } #endif #include "lualcm_lcm.h" #include "lualcm_hash.h" #include "lualcm_pack.h" int luaopen_lcm_lcm(lua_State* L) { ll_lcm_makemetatable(L); ll_lcm_register_new(L); return 1; } int luaopen_lcm__hash(lua_State* L) { ll_hash_makemet...
#ifdef __cplusplus extern "C" { #endif #include "lua.h" #ifdef __cplusplus } #endif #include "lualcm_lcm.h" #include "lualcm_hash.h" #include "lualcm_pack.h" int luaopen_lcm_lcm(lua_State* L) { ll_lcm_makemetatable(L); ll_lcm_register_new(L); return 1; } int luaopen_lcm__hash(lua_State* L) { ll_hash_makemet...
Fix export decoration of Lua module
Fix export decoration of Lua module Add missing export decoration for Lua module entry point. This fixes the Lua module that stopped working when ELF hidden visibility was enabled. (I'm not sure about Windows, as I don't have Lua on Windows, but I suspect it never worked on Windows.)
C
lgpl-2.1
lcm-proj/lcm,adeschamps/lcm,adeschamps/lcm,bluesquall/lcm,lcm-proj/lcm,adeschamps/lcm,bluesquall/lcm,lcm-proj/lcm,adeschamps/lcm,adeschamps/lcm,lcm-proj/lcm,bluesquall/lcm,adeschamps/lcm,lcm-proj/lcm,adeschamps/lcm,lcm-proj/lcm,lcm-proj/lcm,bluesquall/lcm,adeschamps/lcm,bluesquall/lcm,lcm-proj/lcm,bluesquall/lcm,bluesq...
a34e8ff7a88128234c647074f588ea87435a9fd9
PhotoWheel/SendEmailController.h
PhotoWheel/SendEmailController.h
// // SendEmailController.h // PhotoWheel // // Created by Kirby Turner on 12/11/12. // Copyright (c) 2012 White Peak Software Inc. All rights reserved. // #import <Foundation/Foundation.h> #import <MessageUI/MessageUI.h> #import <MessageUI/MFMailComposeViewController.h> @protocol SendEmailControllerDelegate; ...
// // SendEmailController.h // PhotoWheel // // Created by Kirby Turner on 12/11/12. // Copyright (c) 2012 White Peak Software Inc. All rights reserved. // #import <Foundation/Foundation.h> #import <MessageUI/MessageUI.h> #import <MessageUI/MFMailComposeViewController.h> @protocol SendEmailControllerDelegate; ...
Change from strong to weak.
Change from strong to weak.
C
mit
kirbyt/PhotoWheel,kirbyt/PhotoWheel
48690020234cdbfc29eeff7c466540cdb81ac4ea
SRC/GEP/TestData.h
SRC/GEP/TestData.h
#ifndef TESTDATA_H #define TESTDATA_H //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// #include "Node.h" #include <vector> namespace GEP { //////////////////////////////////////////////////////////// /// \brief TestData is data to tes...
#ifndef TESTDATA_H #define TESTDATA_H //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// #include "Node.h" #include <vector> namespace GEP { //////////////////////////////////////////////////////////// /// \brief TestData is data to tes...
Correct bug : result is float, not integer
Correct bug : result is float, not integer
C
mit
Orwel/GeneExpressionProgramming,Orwel/GeneExpressionProgramming
772e45ac76879b551a219c3d13c72cb2fcdd030a
Pod/Classes/Clappr.h
Pod/Classes/Clappr.h
#ifndef Pods_Clappr_h #define Pods_Clappr_h #import <Foundation/Foundation.h> #import <Clappr/Player.h> #import <Clappr/CLPBaseObject.h> #import <Clappr/CLPUIObject.h> #import <Clappr/CLPContainer.h> #import <Clappr/CLPPlayback.h> #import <Clappr/CLPMediaControl.h> #import <Clappr/CLPCore.h> #import <Clappr/CLPPlayer...
#ifndef Pods_Clappr_h #define Pods_Clappr_h // System #import <Foundation/Foundation.h> //TODO To be excluded #import <Clappr/Player.h> // Core #import <Clappr/CLPBaseObject.h> #import <Clappr/CLPUIObject.h> #import <Clappr/CLPContainer.h> #import <Clappr/CLPPlayback.h> #import <Clappr/CLPMediaControl.h> #import <Cl...
Add Loader and AVFoundation playback to clappr base header.
Add Loader and AVFoundation playback to clappr base header.
C
bsd-3-clause
barbosa/clappr-ios,barbosa/clappr-ios,clappr/clappr-ios,clappr/clappr-ios,clappr/clappr-ios
08dc34df72898761e2da9c3ccdf6a7592eb8c7bf
src/exercise210.c
src/exercise210.c
/* * A solution to Exercise 2-3 in The C Programming Language (Second Edition). * * This file was written by Damien Dart, <damiendart@pobox.com>. This is free * and unencumbered software released into the public domain. For more * information, please refer to the accompanying "UNLICENCE" file. */ #include <stdin...
/* * A solution to Exercise 2-10 in The C Programming Language (Second Edition). * * This file was written by Damien Dart, <damiendart@pobox.com>. This is free * and unencumbered software released into the public domain. For more * information, please refer to the accompanying "UNLICENCE" file. */ #include <stdi...
Purge tabs and fix a comment.
Purge tabs and fix a comment.
C
unlicense
damiendart/knr-solutions,damiendart/knr-solutions,damiendart/knr-solutions
62e18306de090b7bd20f6aa561be1f47406a2414
qrenderdoc/Code/RenderManager.h
qrenderdoc/Code/RenderManager.h
#ifndef RENDERMANAGER_H #define RENDERMANAGER_H #include <QMutex> #include <QQueue> #include <QString> #include <QThread> #include <QWaitCondition> #include <functional> #include "renderdoc_replay.h" struct IReplayRenderer; class LambdaThread; class RenderManager { public: typedef std::function<void(IReplayRendere...
#ifndef RENDERMANAGER_H #define RENDERMANAGER_H #include <QMutex> #include <QQueue> #include <QString> #include <QThread> #include <QWaitCondition> #include <functional> #include "renderdoc_replay.h" struct IReplayRenderer; class LambdaThread; // simple helper for the common case of 'we just need to run this on the ...
Add a helper macro for simple async render thread invokes
Add a helper macro for simple async render thread invokes
C
mit
victor-moya/renderdoc,TurtleRockStudios/renderdoc_public,etnlGD/renderdoc,googlestadia/renderdoc,Anteru/renderdoc,etnlGD/renderdoc,TurtleRockStudios/renderdoc_public,Anteru/renderdoc,Velro/renderdoc,Velro/renderdoc,etnlGD/renderdoc,Zorro666/renderdoc,Yours3lf/renderdoc,Yours3lf/renderdoc,cgmb/renderdoc,googlestadia/ren...
3555739656f0eec99f4f6edb1cedf032c5d1754a
libgo/runtime/go-rec-nb-big.c
libgo/runtime/go-rec-nb-big.c
/* go-rec-nb-big.c -- nonblocking receive of something big on a channel. Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #include <stdint.h> #include <assert.h> #include "channel.h" _Bool __go_receive_...
/* go-rec-nb-big.c -- nonblocking receive of something big on a channel. Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #include <stdint.h> #include <assert.h> #include "channel.h" _Bool __go_receive_...
Correct nonblocking receive of a value larger than 8 bytes.
Correct nonblocking receive of a value larger than 8 bytes. R=iant https://golang.org/cl/1743042
C
bsd-3-clause
qskycolor/gofrontend,anlhord/gofrontend,anlhord/gofrontend,qskycolor/gofrontend,anlhord/gofrontend,golang/gofrontend,qskycolor/gofrontend,qskycolor/gofrontend,anlhord/gofrontend,golang/gofrontend,qskycolor/gofrontend,anlhord/gofrontend,golang/gofrontend,qskycolor/gofrontend,golang/gofrontend,anlhord/gofrontend,anlhord/...
8aedf8e81a300dbab13689632b1518826d681529
src/scoreboard/circular_buffer.h
src/scoreboard/circular_buffer.h
template<class T, size_t S> class CircularBuffer { public: CircularBuffer() : index(0), count(0) {} void push_item(T item) { array[index + 1] = item; index = (index + 1) % S; count++; } T pop_item() { if (count > 0) { int old_index = index; ...
template<class T, size_t S> class CircularBuffer { public: CircularBuffer() : index(0), count(0) {} void push_item(T item) { index = (index + 1) % S; array[index] = item; if (count < S) count++; } T pop_item() { int old_index = index; if (count > 0) { ...
Fix issues with circular buffer
Fix issues with circular buffer
C
mit
jvsalo/leditaulu,jvsalo/leditaulu,jvsalo/leditaulu,jvsalo/leditaulu
397948c76e8c43819702459269451493a2449e4e
PolyMapGenerator/ConvexHull.h
PolyMapGenerator/ConvexHull.h
#ifndef CONVEX_HULL_H #define CONVEX_HULL_H #endif
#ifndef CONVEX_HULL_H #define CONVEX_HULL_H #include <algorithm> #include "Structure.h" #include "Math/Vector2.h" namespace ConvexHull { inline double Cross(const Vector2& O, const Vector2& A, const Vector2& B) { return (A.x - O.x) * (B.y - O.y) - (A.y - O.y) * (B.x - O.x); } inline std::vector<Corner*> Calcu...
Implement some part of convex hull
Implement some part of convex hull
C
mit
utilForever/PolyMapGenerator
d5700e91d3254fb3db6a56bc4b243a3e4e1e86a8
src/ms-error.h
src/ms-error.h
/* * Copyright (C) 2010 Igalia S.L. * * Contact: Iago Toral Quiroga <itoral@igalia.com> * * 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; version 2.1 of * the License, or (at your...
/* * Copyright (C) 2010 Igalia S.L. * * Contact: Iago Toral Quiroga <itoral@igalia.com> * * 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; version 2.1 of * the License, or (at your...
Add error code for failing query.
Add error code for failing query.
C
lgpl-2.1
kyoushuu/grilo,GNOME/grilo,kyoushuu/grilo,kyoushuu/grilo,grilofw/grilo,grilofw/grilo,grilofw/grilo,jasuarez/grilo,kyoushuu/grilo,MathieuDuponchelle/grilo,MathieuDuponchelle/grilo,jasuarez/grilo,MathieuDuponchelle/grilo,GNOME/grilo,jasuarez/grilo
28273b949da7a786df9f61af51279cf0122de3cc
test/Driver/qa_override.c
test/Driver/qa_override.c
// RUN: env QA_OVERRIDE_GCC3_OPTIONS="#+-Os +-Oz +-O +-O3 +-Oignore +a +b +c xb Xa Omagic ^-ccc-print-options " %clang x -O2 b -O3 2>&1 | FileCheck %s // RUN: env QA_OVERRIDE_GCC3_OPTIONS="x-Werror +-mfoo" %clang -Werror %s -c 2>&1 | FileCheck %s -check-prefix=RM-WERROR // FIXME: It seems doesn't work with gcc-driver...
// RUN: env QA_OVERRIDE_GCC3_OPTIONS="#+-Os +-Oz +-O +-O3 +-Oignore +a +b +c xb Xa Omagic ^-ccc-print-options " %clang x -O2 b -O3 2>&1 | FileCheck %s // RUN: env QA_OVERRIDE_GCC3_OPTIONS="x-Werror +-mfoo" %clang -Werror %s -c -### 2>&1 | FileCheck %s -check-prefix=RM-WERROR // CHECK-NOT: ### // CHECK: Option 0 - Nam...
Make this test not try to write on object file and test all of the output rather than just part of it.
Make this test not try to write on object file and test all of the output rather than just part of it. Also, remove the frighteningly ancient comment about not working with the gcc-driver. (!!!) git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@187376 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
f8ff178831e639a2d91e0eb03840ee60f3dda1d3
libgnomeui/gnome-properties.h
libgnomeui/gnome-properties.h
#ifndef GNOME_PROPERTIES_H #define GNOME_PROPERTIES_H #include <libgnome/gnome-defs.h> BEGIN_GNOME_DECLS END_GNOME_DECLS #endif
/* This file is currently empty; I'm going to add new code here soon. Oct 27 1998. Martin */
Make this an empty file just with a comment in it.
Make this an empty file just with a comment in it.
C
lgpl-2.1
Distrotech/libgnomeui,Distrotech/libgnomeui,Distrotech/libgnomeui
0a32f8a771dac86fe30ac2ee8cce171b4f9ee004
third-party/lib/openlibm/impl.h
third-party/lib/openlibm/impl.h
#ifndef _OPENLIB_FINITE_H #define _OPENLIB_FINITE_H #include <sys/cdefs.h> #define __BSD_VISIBLE 1 #include <../../build/extbld/third_party/lib/OpenLibm/install/openlibm_math.h> static inline int finite(double x) { return isfinite(x); } static inline int finitef(float x) { return isfinite(x); } static inline i...
#ifndef _OPENLIB_FINITE_H #define _OPENLIB_FINITE_H #include <sys/cdefs.h> #define __BSD_VISIBLE 1 #include <../../build/extbld/third_party/lib/OpenLibm/install/openlibm_math.h> static inline int finite(double x) { return isfinite(x); } static inline int finitef(float x) { return isfinite(x); } static inline i...
Remove llabs declaration from openlibm port
Remove llabs declaration from openlibm port
C
bsd-2-clause
embox/embox,embox/embox,embox/embox,embox/embox,embox/embox,embox/embox
a35eb2fedb0ea565c766f4dd55bab2ca866f5cb2
be/src/util/scope-exit-trigger.h
be/src/util/scope-exit-trigger.h
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
Remove 'auto' from parameter list
IMPALA-4535: Remove 'auto' from parameter list Although GCC supports void f(auto arg) { }, this isn't part of C++14. Testing: Local ASAN build passed. Change-Id: I838aa2c1081f7ed21cc2faa209a9eaa4fd0512a4 Reviewed-on: http://gerrit.cloudera.org:8080/5214 Reviewed-by: Tim Armstrong <2f8e34250f03a653da3dc27f7ec203eafdd...
C
apache-2.0
cloudera/Impala,michaelhkw/incubator-impala,michaelhkw/incubator-impala,cloudera/Impala,michaelhkw/incubator-impala,cloudera/Impala,cloudera/Impala,cloudera/Impala,cloudera/Impala,michaelhkw/incubator-impala,cloudera/Impala,michaelhkw/incubator-impala,michaelhkw/incubator-impala,michaelhkw/incubator-impala
fe57f0a345dd24d56455755beb72f95c8194d3d9
src/main/entity/components/SkillComponent.h
src/main/entity/components/SkillComponent.h
#ifndef SKILLCOMPONENT_H_ #define SKILLCOMPONENT_H_ #include "entity/components/AttributeComponent.h" /** * Data structure to represent an Entity's skill. */ typedef struct { int ranks; ///< Current ranks in the skill int xp; ///< Amount of XP earned towards next rank } SkillComponent; /** * Enumeration for ide...
#ifndef SKILLCOMPONENT_H_ #define SKILLCOMPONENT_H_ #include "entity/components/AttributeComponent.h" /** * Data structure to represent an Entity's skill. */ typedef struct { int ranks; ///< Current ranks in the skill int xp; ///< Amount of XP earned towards next rank } SkillComponent; /** * Enumeration for ide...
Add Dodge skill as temporary hack
Add Dodge skill as temporary hack I think I will implement an actual DefenseManager to handle calculating defenses on the fly; for now this works as a skill.
C
mit
Kromey/roglick
ce7258fa61fb2e04090ecbcaa402ecc55ff0ec62
include/config/SkUserConfigManual.h
include/config/SkUserConfigManual.h
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkUserConfigManual_DEFINED #define SkUserConfigManual_DEFINED #define GR_GL_CUSTOM_SETUP_HEADER "gl/GrGLConfig_chrome.h" #define GR_TEST_UTILS 1 #define SKIA_DLL...
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkUserConfigManual_DEFINED #define SkUserConfigManual_DEFINED #define GR_GL_CUSTOM_SETUP_HEADER "gl/GrGLConfig_chrome.h" #define GR_TEST_UTILS 1 #define SKIA_DLL...
Switch Skia to the new sweep gradient impl
Switch Skia to the new sweep gradient impl (remove SK_LEGACY_SWEEP_GRADIENT) Change-Id: I967272af11b86223c92eea61288c6f2c5d27474f
C
bsd-3-clause
aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/and...
2a1aad729e09761ce45b9b283e2fb65da191d38c
SDKs/linux/usr/include/sys/mman.h
SDKs/linux/usr/include/sys/mman.h
/* ===-- limits.h - stub SDK header for compiler-rt -------------------------=== * * The LLVM Compiler Infrastructure * * This file is dual licensed under the MIT and the University of Illinois Open * Source Licenses. See LICENSE.TXT for details. * * ===---------------------------------------...
/* ===-- limits.h - stub SDK header for compiler-rt -------------------------=== * * The LLVM Compiler Infrastructure * * This file is dual licensed under the MIT and the University of Illinois Open * Source Licenses. See LICENSE.TXT for details. * * ===---------------------------------------...
Fix braindead pasto, caught by Matt Beaumont-Gay.
SDK/linux: Fix braindead pasto, caught by Matt Beaumont-Gay. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@146188 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
e8476178c71c887199a486746c0ea1694feb1bf6
UIforETW/Version.h
UIforETW/Version.h
#pragma once // const float in a header file can lead to duplication of the storage // but I don't really care in this case. Just don't do it with a header // that is included hundreds of times. constexpr float kCurrentVersion = 1.54f; // Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version // ...
#pragma once // const float in a header file can lead to duplication of the storage // but I don't really care in this case. Just don't do it with a header // that is included hundreds of times. constexpr float kCurrentVersion = 1.55f; // Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version // ...
Update version number to 1.55
Update version number to 1.55
C
apache-2.0
google/UIforETW,google/UIforETW,google/UIforETW,google/UIforETW
37ffe379713c08899981532bad1a9df96c7fd3e2
src/lib/PMDPage.h
src/lib/PMDPage.h
#pragma once #include "geometry.h" #include "yaml_utils.h" #include <vector> #include <boost/shared_ptr.hpp> #include <librevenge/librevenge.h> namespace libpagemaker { class PMDPage { std::vector<boost::shared_ptr<PMDLineSet> > m_shapes; public: PMDPage() : m_shapes() { } void addShape(boost::shared_ptr<PM...
#pragma once #include "geometry.h" #include "yaml_utils.h" #include <vector> #include <boost/shared_ptr.hpp> #include <librevenge/librevenge.h> namespace libpagemaker { class PMDPage { std::vector<boost::shared_ptr<PMDLineSet> > m_shapes; public: PMDPage() : m_shapes() { } void addShape(boost::shared_ptr<PM...
Fix bug in shape yaml emit
Fix bug in shape yaml emit
C
mpl-2.0
umanwizard/libpagemaker,umanwizard/libpagemaker,umanwizard/libpagemaker,anuragkanungo/libpagemaker,anuragkanungo/libpagemaker,umanwizard/libpagemaker,anuragkanungo/libpagemaker,umanwizard/libpagemaker,anuragkanungo/libpagemaker
a8122088474be0b8b2479e52a75ebf25a5a386f1
lib/libz/zopenbsd.c
lib/libz/zopenbsd.c
/* $OpenBSD: zopenbsd.c,v 1.4 2015/01/20 04:41:01 krw Exp $ */ #include <sys/types.h> #include <sys/malloc.h> #include <lib/libz/zutil.h> /* * Space allocation and freeing routines for use by zlib routines. */ void * zcalloc(notused, items, size) void *notused; u_int items, size; { return mallocarray(ite...
#include <sys/types.h> #include <sys/malloc.h> #include <lib/libz/zutil.h> /* * Space allocation and freeing routines for use by zlib routines. */ void * zcalloc(notused, items, size) void *notused; u_int items, size; { return mallocarray(items, size, M_DEVBUF, M_NOWAIT); } void zcfree(notused, ptr) ...
Revert some $OpenBSD$ additions about which there are doubts.
Revert some $OpenBSD$ additions about which there are doubts. Suggested by deraadt@
C
isc
orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars
14ca78ef6e4f09ca085f0d19c9029895d5c57376
inc/WalkerException.h
inc/WalkerException.h
//! \file WalkerException.h #ifndef WALKEREXCEPTION_H #define WALKEREXCEPTION_H #include <stdexcept> #include <string> namespace WikiWalker { //! (base) class for exceptions in WikiWalker class WalkerException : public std::runtime_error { public: /*! Create a Walker exception with a message. * ...
//! \file WalkerException.h #ifndef WALKEREXCEPTION_H #define WALKEREXCEPTION_H #include <stdexcept> #include <string> namespace WikiWalker { //! (base) class for exceptions in WikiWalker class WalkerException : public std::runtime_error { public: /*! Create a Walker exception with a message. * ...
Use const reference for exception
Use const reference for exception
C
mit
dueringa/WikiWalker
42602d2256e80bd1805a4d8970773be48d6e00f5
searchlib/src/vespa/searchlib/tensor/hnsw_index_loader.h
searchlib/src/vespa/searchlib/tensor/hnsw_index_loader.h
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <cstdint> namespace search::fileutil { class LoadedBuffer; } namespace search::tensor { class HnswGraph; /** * Implements loading of HNSW graph structure from binary format. **/...
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <cstdint> namespace search::fileutil { class LoadedBuffer; } namespace search::tensor { struct HnswGraph; /** * Implements loading of HNSW graph structure from binary format. **...
Fix forward declaration of HnswGraph.
Fix forward declaration of HnswGraph.
C
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
9cd078f86a3f80bf532f348e1f4722937f91c0b6
lib/libstand/assert.c
lib/libstand/assert.c
/*- * Copyright (c) 1998 Michael Smith. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of cond...
/*- * Copyright (c) 1998 Michael Smith. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of cond...
Make include file consistent with the rest of libstand.
Make include file consistent with the rest of libstand.
C
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
939d3a1e74e0d1ecf1d24e3368fdf4cf56301ae1
Amplitude/Amplitude+SSLPinning.h
Amplitude/Amplitude+SSLPinning.h
#ifdef AMPLITUDE_SSL_PINNING // // Amplitude+SSLPinning // Amplitude // // Created by Allan on 3/11/15. // Copyright (c) 2015 Amplitude. All rights reserved. // #import <Foundation/Foundation.h> @interface Amplitude (SSLPinning) @property (nonatomic, assign) BOOL sslPinningEnabled; @end #endif
// // Amplitude+SSLPinning // Amplitude // // Created by Allan on 3/11/15. // Copyright (c) 2015 Amplitude. All rights reserved. // @import Foundation; #import "Amplitude.h" @interface Amplitude (SSLPinning) #ifdef AMPLITUDE_SSL_PINNING @property (nonatomic, assign) BOOL sslPinningEnabled; #endif @end
Fix import so it doesn't corrupt debug console
[Debug] Fix import so it doesn't corrupt debug console
C
mit
amplitude/Amplitude-iOS,amplitude/Amplitude-iOS,amplitude/Amplitude-iOS,amplitude/Amplitude-iOS