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
8ea9c9401cca7ea074d0e85ba57b2ccf42630cd7
BBBAPI/BBBAPI/Classes/BBASearchServiceResult.h
BBBAPI/BBBAPI/Classes/BBASearchServiceResult.h
// // BBASearchServiceResult.h // BBBAPI // // Created by Owen Worley on 12/01/2015. // Copyright (c) 2015 Blinkbox Entertainment Ltd. All rights reserved. // #import <Foundation/Foundation.h> @class FEMObjectMapping; /** * Represents data provided from the search service when searching for books */ @interface ...
// // BBASearchServiceResult.h // BBBAPI // // Created by Owen Worley on 12/01/2015. // Copyright (c) 2015 Blinkbox Entertainment Ltd. All rights reserved. // #import <Foundation/Foundation.h> @class FEMObjectMapping; /** * Represents data provided from the search service when searching for books */ @interface ...
Document contents of Links array
Document contents of Links array
C
mit
blinkboxbooks/blinkbox-network.objc,blinkboxbooks/blinkbox-network.objc
00cbbaa30f3c3336f6bfeea39b8c2699fb43b6e0
inc/osvr/Util/SharedPtr.h
inc/osvr/Util/SharedPtr.h
/** @file @brief Header to bring shared_ptr into the ::osvr namespace. @date 2014 @author Ryan Pavlik <ryan@sensics.com> <http://sensics.com> */ // Copyright 2014 Sensics, Inc. // // All rights reserved. // // (Final version intended to be licensed under // the Apache License, Version 2.0) ...
/** @file @brief Header to bring shared_ptr into the ::osvr namespace. @date 2014 @author Ryan Pavlik <ryan@sensics.com> <http://sensics.com> */ // Copyright 2014 Sensics, Inc. // // All rights reserved. // // (Final version intended to be licensed under // the Apache License, Version 2.0) ...
Include more items in our namespace with shared_ptr.
Include more items in our namespace with shared_ptr.
C
apache-2.0
leemichaelRazer/OSVR-Core,feilen/OSVR-Core,godbyk/OSVR-Core,godbyk/OSVR-Core,Armada651/OSVR-Core,OSVR/OSVR-Core,godbyk/OSVR-Core,OSVR/OSVR-Core,Armada651/OSVR-Core,leemichaelRazer/OSVR-Core,feilen/OSVR-Core,Armada651/OSVR-Core,godbyk/OSVR-Core,godbyk/OSVR-Core,Armada651/OSVR-Core,d235j/OSVR-Core,leemichaelRazer/OSVR-Co...
579bb01db2d8b21d3de6223c6305eb94f3fc92f2
src/sampgdk.c
src/sampgdk.c
#include "sampgdk.h" #if SAMPGDK_WINDOWS #undef CreateMenu #undef DestroyMenu #undef GetTickCount #undef KillTimer #undef SelectObject #undef SetTimer #include <windows.h> #endif
#include "sampgdk.h" #if SAMPGDK_WINDOWS #undef CreateMenu #undef DestroyMenu #undef GetTickCount #undef KillTimer #undef SelectObject #undef SetTimer #define WIN32_LEAN_AND_MEAN #include <windows.h> #else #define _GNU_SOURCE #endif
Copy some definitions from CMakeLists.txt to preamble
Copy some definitions from CMakeLists.txt to preamble
C
apache-2.0
WopsS/sampgdk,Zeex/sampgdk,WopsS/sampgdk,Zeex/sampgdk,WopsS/sampgdk,Zeex/sampgdk
1b09860dd29bdf741fff1f20c28abff817f88cd1
CreamMonkey.h
CreamMonkey.h
#import <Cocoa/Cocoa.h> @interface CreamMonkey : NSObject { } @end
/* * Copyright (c) 2006 KATO Kazuyoshi <kzys@8-p.info> * This source code is released under the MIT license. */ #import <Cocoa/Cocoa.h> @interface CreamMonkey : NSObject { } @end
Add copyright and license header.
Add copyright and license header.
C
mit
torezzz/greasekit
de50503cc4ef90f8e0eaa9786303bcc287284e33
hardware/main.c
hardware/main.c
#include <avr/io.h> #include <util/delay.h> #include <avr/interrupt.h> #include "deps/util.h" #include "deps/rcswitch/rcswitch.h" #define PIN_RC PB2 #include "deps/softuart/softuart.h" #include "packet.h" int main(void) { // initialize serial softuart_init(); // enable interrupts sei(); // ena...
#include <avr/io.h> #include <avr/interrupt.h> #include "deps/rcswitch/rcswitch.h" #include "deps/softuart/softuart.h" #include "packet.h" #define PIN_RC PB2 int main(void) { // initialize serial softuart_init(); // enable interrupts sei(); // enable the rc switch rcswitch_enable(PIN_RC); ...
Remove unused includes and move rc pin definition
Remove unused includes and move rc pin definition
C
agpl-3.0
jackwilsdon/lightcontrol,jackwilsdon/lightcontrol
54ed8514134558d13ab53b81f9d94836e036f351
src/thsh.c
src/thsh.c
/* ============================================================================ Name : thsh.c Authors : Collin Kruger, Denton Underwood, John Christensen, Jon Stacey Version : Copyright : Copyright 2009 Jon Stacey. All rights reserved. Description : Hello World in C, Ansi-style =================...
/* ============================================================================ Name : thsh.c Authors : Collin Kruger, Denton Underwood, John Christensen, Jon Stacey Version : Copyright : Copyright 2009 Jon Stacey. All rights reserved. Description : Hello World in C, Ansi-style =================...
Add environment vars and commandline arguments
Add environment vars and commandline arguments
C
mit
jmstacey/thsh
b1a0e5ae8b3e3d1052cc7c3e3ec12750060cb173
db/functions/quadtile.c
db/functions/quadtile.c
#include <my_global.h> #include <my_sys.h> #include <m_string.h> #include <mysql.h> #include <quad_tile.h> my_bool tile_for_point_init(UDF_INIT *initid, UDF_ARGS *args, char *message) { if ( args->arg_count != 2 || args->arg_type[0] != INT_RESULT || args->arg_type[1] != INT_RESULT ) { strcp...
#include <my_global.h> #include <my_sys.h> #include <m_string.h> #include <mysql.h> #include <quad_tile.h> my_bool tile_for_point_init(UDF_INIT *initid, UDF_ARGS *args, char *message) { if ( args->arg_count != 2 || args->arg_type[0] != INT_RESULT || args->arg_type[1] != INT_RESULT ) { strcp...
Make the MySQL tile_for_point function take arguments in the same order as the ruby version.
Make the MySQL tile_for_point function take arguments in the same order as the ruby version.
C
agpl-3.0
tillmo/do-roam,tillmo/do-roam,tillmo/do-roam,tillmo/do-roam,tillmo/do-roam,tillmo/do-roam
c33abbf19bc02e90c1b020534e3ccbb2ed4754a5
native/helper.h
native/helper.h
#ifndef HELPER_H #define HELPER_H #define STRINGIFY(x) #x #define TOSTRING(x) STRINGIFY(x) #define AT() __FILE__ ":" TOSTRING(__LINE__) #ifdef DO_DEBUG #include <iostream> #include <mutex> extern std::mutex log_mutex; #define DEBUG(x) do { std::lock_guard<std::mutex> guard(log_mutex); std::cerr << "[libnice] " << ...
#ifndef HELPER_H #define HELPER_H #include <string> #define STRINGIFY(x) #x #define TOSTRING(x) STRINGIFY(x) #define AT() __FILE__ ":" TOSTRING(__LINE__) #ifdef DO_DEBUG #include <iostream> #include <mutex> extern std::mutex log_mutex; #define DEBUG(x) do { std::lock_guard<std::mutex> guard(log_mutex); std::cerr ...
Add missing header in case of no debug output
Add missing header in case of no debug output
C
agpl-3.0
felixSchl/node-libnice,felixSchl/node-libnice,Innovailable/node-libnice,Innovailable/node-libnice,Innovailable/node-libnice,felixSchl/node-libnice
564fdcbc609fbc48435a061513fa8400e475fa2b
hw3-gen-andes-code/test1.c
hw3-gen-andes-code/test1.c
int main(){ int a; int b = 1; int c = 2; int d = 3; a = 10/2; c = (b+3)*4-5; //printf(“a is %d\n",a); return 0 }
int main(){ int a; int b = 1; int c = 2; int d = 3; a = 10/2; c = (b+3)*4-5; //printf(“a is %d\n",a); return 0; }
Fix typo in test case
Fix typo in test case
C
mit
hydai/Compiler-Design
008db442efa542357314593c71ab9966be909855
sound/soc/codecs/wm8350.h
sound/soc/codecs/wm8350.h
/* * wm8350.h - WM8903 audio codec interface * * Copyright 2008 Wolfson Microelectronics PLC. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, o...
/* * wm8350.h - WM8903 audio codec interface * * Copyright 2008 Wolfson Microelectronics PLC. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, o...
Include WM8350 register definitions in CODEC header
ASoC: Include WM8350 register definitions in CODEC header It's expected behaviour for the CODEC header to provide them but the WM8350 doesn't due to having all the registers together under drivers/mfd. Signed-off-by: Mark Brown <b51b9a92386687a9ac927cebfa0f978adeb8cea5@opensource.wolfsonmicro.com>
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kana...
a90e572e67f094d59faad390e41d9f8791900f89
redditAPI/RAPRedditLinks.h
redditAPI/RAPRedditLinks.h
// // RAPRedditLinks.h // redditAPI // // Created by Woudini on 2/3/15. // Copyright (c) 2015 Hi Range. All rights reserved. // #ifndef redditAPI_RAPRedditLinks_h #define redditAPI_RAPRedditLinks_h #define RAPRedditLimit_10_typePrefix_Link_ @"?limit=10?&after=t3_%@" #define RAPSubredditNew @"r/%@/new.json?limit=1...
// // RAPRedditLinks.h // redditAPI // // Created by Woudini on 2/3/15. // Copyright (c) 2015 Hi Range. All rights reserved. // #ifndef redditAPI_RAPRedditLinks_h #define redditAPI_RAPRedditLinks_h #define RAPRedditLimit_10_typePrefix_Link_ @".json?limit=10?&after=t3_%@" #define RAPSubredditNew @"r/%@/new.json?li...
Fix json additional fetch in frontpage
Fix json additional fetch in frontpage
C
mit
woudini/lzytltbrwsr
ef27bd42a368bb3c3886e07a79f751ab41f7ff92
SettingsUI/Hotkeys.h
SettingsUI/Hotkeys.h
#pragma once #include "afxwin.h" #include "afxcmn.h" class Hotkeys : public CPropertyPage { DECLARE_DYNAMIC(Hotkeys) public: Hotkeys(); virtual ~Hotkeys(); // Dialog Data enum { IDD = IDD_HOTKEYS }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support virtual BOOL OnInitDialog(...
#pragma once #include "afxwin.h" #include "afxcmn.h" #include <vector> #include "HotkeyInfo.h" class Hotkeys : public CPropertyPage { DECLARE_DYNAMIC(Hotkeys) public: Hotkeys(); virtual ~Hotkeys(); enum { IDD = IDD_HOTKEYS }; protected: virtual void DoDataExchange(CDataExchange* pDX); virtual BOOL OnInit...
Add list to contain hotkey info
Add list to contain hotkey info
C
bsd-2-clause
Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX,malensek/3RVX,malensek/3RVX,Soulflare3/3RVX
cc628b8c1b2227cad240ed1c12d10636e91145cc
sdk/objc/base/RTCMacros.h
sdk/objc/base/RTCMacros.h
/* * Copyright 2016 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...
/* * Copyright 2016 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...
Remove backwards compatible macro RTC_EXPORT from sdk/.
Remove backwards compatible macro RTC_EXPORT from sdk/. Symbols under sdk/ are now exported using RTC_OBJC_EXPORT, while RTC_EXPORT is used for C++ symbols. Bug: webrtc:9419 Change-Id: Icdf7ee0e7b3faf4d7fec33e9b33a3b13260f45b7 Reviewed-on: https://webrtc-review.googlesource.com/102461 Reviewed-by: Peter Hanspers <d02...
C
bsd-3-clause
TimothyGu/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc
5f400303acd4dd821005cc04f0ae873475cd2133
native/v8_extensions/git.h
native/v8_extensions/git.h
#include "include/cef_base.h" #include "include/cef_v8.h" namespace v8_extensions { class Git : public CefV8Handler { public: Git(); virtual bool Execute(const CefString& name, CefRefPtr<CefV8Value> object, const CefV8ValueList& arguments, CefR...
#include "include/cef_base.h" #include "include/cef_v8.h" namespace v8_extensions { class Git : public CefV8Handler { public: Git(); virtual bool Execute(const CefString& name, CefRefPtr<CefV8Value> object, const CefV8ValueList& arguments, CefR...
Add ref counting to Git class
Add ref counting to Git class
C
mit
jtrose2/atom,dijs/atom,russlescai/atom,seedtigo/atom,nrodriguez13/atom,DiogoXRP/atom,hharchani/atom,devmario/atom,davideg/atom,liuderchi/atom,johnrizzo1/atom,h0dgep0dge/atom,hagb4rd/atom,codex8/atom,kdheepak89/atom,RobinTec/atom,Hasimir/atom,niklabh/atom,champagnez/atom,prembasumatary/atom,bradgearon/atom,t9md/atom,me-...
4ebe6c82223445eaf08ef58f8abb031c8b5297b9
tests/test_stdlib.c
tests/test_stdlib.c
#include <stdlib.h> #include "seatest.h" static void test_abs (void) { // abs assert_true(abs(0) == 0); assert_true(abs(1) == 1); assert_true(abs(INT_MAX) == INT_MAX); assert_true(abs(-1) == 1); // labs assert_true(labs(0) == 0); assert_true(labs(1) == 1); assert_true(labs(LONG_MAX)...
#include <stdlib.h> #include "seatest.h" static void test_abs (void) { // abs assert_int_equal(0, abs(0)); assert_int_equal(1, abs(1)); assert_int_equal(INT_MAX, abs(INT_MAX)); assert_int_equal(1, abs(-1)); // labs assert_true(labs(0) == 0); assert_true(labs(1) == 1); assert_true(la...
Use assert_int_equal not assert_true where possible
Use assert_int_equal not assert_true where possible
C
mit
kristapsk/resclib,kristapsk/resclib,kristapsk/reclib,kristapsk/reclib
d07bfb8f8d51a392b72bb14b9d9f2281309f632e
components/policy/core/common/policy_provider_android_delegate.h
components/policy/core/common/policy_provider_android_delegate.h
// Copyright 2014 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 COMPONENTS_POLICY_CORE_COMMON_POLICY_PROVIDER_ANDROID_DELEGATE_H_ #define COMPONENTS_POLICY_CORE_COMMON_POLICY_PROVIDER_ANDROID_DELEGATE_H_ #incl...
// Copyright 2014 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 COMPONENTS_POLICY_CORE_COMMON_POLICY_PROVIDER_ANDROID_DELEGATE_H_ #define COMPONENTS_POLICY_CORE_COMMON_POLICY_PROVIDER_ANDROID_DELEGATE_H_ #incl...
Add a missing policy_export include
Add a missing policy_export include When including only policy_provider_android and no other policy related header, this made the compiler complain about the missing declaration of POLICY_EXPORT BUG=506809 Review URL: https://codereview.chromium.org/1225583002 Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f...
C
bsd-3-clause
Just-D/chromium-1,TheTypoMaster/chromium-crosswalk,Pluto-tv/chromium-crosswalk,hgl888/chromium-crosswalk,axinging/chromium-crosswalk,Chilledheart/chromium,axinging/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Chilledheart/chromium,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Pluto-t...
f51e7a2cf7e05177c04d65d559cafa2691549046
src/EthShield.c
src/EthShield.c
/** * @file debug.h * @brief Initializer and main loop of EthShield * * \copyright Copyright 2013 /Dev. All rights reserved. * \license This project is released under MIT license. * * @author Ferdi van der Werf <efcm@slashdev.nl> * @since 0.1.0 */ // Speed of micro-controller (20.0 MHz) #ifndef F_CPU #define ...
/** * @file debug.h * @brief Initializer and main loop of EthShield * * \copyright Copyright 2013 /Dev. All rights reserved. * \license This project is released under MIT license. * * @author Ferdi van der Werf <efcm@slashdev.nl> * @since 0.1.0 */ // Speed of micro-controller (20.0 MHz) #ifndef F_CPU #define ...
Handle network traffic in main loop
Handle network traffic in main loop
C
mit
slashdev/slashnet,fuegas/dollhouse-ethshield,fuegas/dollhouse-ethshield,slashdev/slashnet
e8034eb5a2e48453728bb1a182588a6dffa2b08a
problems/0001-0025/0001-multiples-of-3-and-5/main.c
problems/0001-0025/0001-multiples-of-3-and-5/main.c
#include <stdio.h> #define RANGE 1000 unsigned int count_divisibility(unsigned int divisor) { int count = 0; for ( int i = 1 ; i < RANGE ; i++ ) { if ( i % divisor == 0 ) { count++; } } return count; } // Use the identity n(n+1)/2 to calculate the sum unsigned int calcul...
#include <stdio.h> #define RANGE 1000 unsigned short count_divisibility(unsigned short divisor) { int count = 0; count = (RANGE - 1) / divisor; return count; } // Use the identity n(n+1)/2 to calculate the sum unsigned int calculate_divisibility_sum(unsigned short number, unsigned short count) { un...
Refactor Problem 1's solution in C
Refactor Problem 1's solution in C My logic failed me and I noticed that I just need to divide 1000 by the number to get the amount of divisible numbers. -_- That's why I removed the for-loop. Changed the datatype for some of the functions and arguments, because `short int` is sufficient enough to store the values.
C
mit
pho1n1x/eulerian-insanity
352fd8a38a7ca9bed62801969d9e0188f6b7e3ad
SearchResultsView/PrecompiledHeader.h
SearchResultsView/PrecompiledHeader.h
#pragma once #define NTDDI_VERSION 0x06010000 #define WINVER 0x0601 #define _WIN32_WINNT 0x0601 #include <ShellScalingApi.h> #include <Shlobj.h> #include <ShObjIdl.h> #include <Windows.h> #include <wrl.h> #undef min #undef max #include <algorithm> #include <unordered_map> namespace WRL { using namespace Microsoft...
#pragma once #define NTDDI_VERSION 0x0A000007 // NTDDI_WIN10_19H1 #define _WIN32_WINNT 0x0A00 // _WIN32_WINNT_WIN10 #define WINVER 0x0A00 #include <ShellScalingApi.h> #include <Shlobj.h> #include <ShObjIdl.h> #include <Windows.h> #include <wrl.h> #undef min #undef max #include <algorithm> #include <unordered_map> ...
Drop support for Windows 7.
Drop support for Windows 7.
C
mit
TautvydasZilys/FileSystemSearch,TautvydasZilys/FileSystemSearch,TautvydasZilys/FileSystemSearch
1a5537811f3faf7171f282321aa91f8ef1f8dd35
arch/arm/soc/ti_simplelink/cc32xx/soc.h
arch/arm/soc/ti_simplelink/cc32xx/soc.h
/* * Copyright (c) 2016, Texas Instruments Incorporated * * SPDX-License-Identifier: Apache-2.0 */ #include <inc/hw_types.h> #include <driverlib/prcm.h>
/* * Copyright (c) 2016-2017, Texas Instruments Incorporated * * SPDX-License-Identifier: Apache-2.0 */ #include <inc/hw_types.h> #include <driverlib/prcm.h> /* * CMSIS IRQn_Type enum is broken relative to ARM GNU compiler. * * So redefine the IRQn_Type enum to a unsigned int to avoid * the ARM compiler from ...
Redefine CMSIS IRQn_Type enum to unsigned int
cc32xx: Redefine CMSIS IRQn_Type enum to unsigned int Previously, calling NVIC_SetPriority(IRQn_Type irqn, ....) with the NWP interrupt number of 171 caused a hard fault during a subsequent svc #0 instruction during _Swap(). GNU compiler is generating a bit extension instruction (sxtb) which converts a positive IRQ v...
C
apache-2.0
runchip/zephyr-cc3220,fbsder/zephyr,punitvara/zephyr,nashif/zephyr,punitvara/zephyr,finikorg/zephyr,Vudentz/zephyr,fbsder/zephyr,punitvara/zephyr,zephyrproject-rtos/zephyr,rsalveti/zephyr,explora26/zephyr,GiulianoFranchetto/zephyr,GiulianoFranchetto/zephyr,aceofall/zephyr-iotos,explora26/zephyr,ldts/zephyr,zephyriot/ze...
274937d4b721bb1162598610a3635ea67728c116
src/private/timer-win32.c
src/private/timer-win32.c
/* Copyright (C) 2012-2013 Zeex * * 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 i...
/* Copyright (C) 2012-2013 Zeex * * 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 i...
Use QueryPerformanceCounter() timer instead of GetTickCount()
Use QueryPerformanceCounter() timer instead of GetTickCount() GetTickCount() has poor resolution according to MSDN docs (from 10 to 16 ms).
C
apache-2.0
WopsS/sampgdk,Zeex/sampgdk,Zeex/sampgdk,WopsS/sampgdk,Zeex/sampgdk,WopsS/sampgdk
a9091c137bb21a247afa01ecf17bd5c75d9b0e65
crypto/engine/eng_all.c
crypto/engine/eng_all.c
/* * Copyright 2001-2016 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/lice...
/* * Copyright 2001-2016 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/lice...
Convert our own check of OPENSSL_NO_DEPRECATED
Convert our own check of OPENSSL_NO_DEPRECATED ... to the check OPENSSL_API_COMPAT < 0x10100000L, to correspond with how it's declared. Reviewed-by: Matt Caswell <1fa2ef4755a9226cb9a0a4840bd89b158ac71391@openssl.org> (Merged from https://github.com/openssl/openssl/pull/6470)
C
apache-2.0
openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl
a4bc57be10b8f84f94f628dae4f4afee5767e79a
include/t3f/view.h
include/t3f/view.h
#ifndef T3F_VIEW_H #define T3F_VIEW_H /* structure holds information about a 3D viewport usually used to represent one player's screen, split screen games will have multiple viewports */ typedef struct { /* offset of viewport */ float offset_x; float offset_y; float width; float height; /* vanishing point...
#ifndef T3F_VIEW_H #define T3F_VIEW_H #include <allegro5/allegro5.h> /* structure holds information about a 3D viewport usually used to represent one player's screen, split screen games will have multiple viewports */ typedef struct { /* offset of viewport */ float offset_x; float offset_y; float width; floa...
Include Allegro header so we can use 'bool'.
Include Allegro header so we can use 'bool'.
C
bsd-3-clause
NewCreature/T--Framework,NewCreature/T--Framework,NewCreature/T--Framework,NewCreature/T--Framework,NewCreature/T--Framework
5bf21b0759b13a6fe5ec1ab6d984eedcd8d96720
src/file/keydb.h
src/file/keydb.h
/* encrypted keys */ static const uint32_t internal_device_number = 0; static const uint8_t internal_dk_list[][21] = { { }, }; static const uint8_t internal_pk_list[][16] = { { }, }; static const uint8_t internal_hc_list[][112] = { { }, }; /* customize this function to "hide" the keys in the binary */...
/* encrypted keys */ static const uint32_t internal_device_number = 0; static const uint8_t internal_dk_list[][21] = { { 0 }, }; static const uint8_t internal_pk_list[][16] = { { 0 }, }; static const uint8_t internal_hc_list[][112] = { { 0 }, }; /* customize this function to "hide" the keys in the binary */...
Fix MSVC error C2133 : unknown size of multi-dimensional static const arrays (despite supposed support of C99). Have not confirmed if this breaks anything yet.
Fix MSVC error C2133 : unknown size of multi-dimensional static const arrays (despite supposed support of C99). Have not confirmed if this breaks anything yet.
C
lgpl-2.1
mwgoldsmith/aacs,mwgoldsmith/aacs
921fc17e0d1df4aa29f1176fe7c1240019f286f8
tests/arcus/MockSocket.h
tests/arcus/MockSocket.h
//Copyright (c) 2018 Ultimaker B.V. //CuraEngine is released under the terms of the AGPLv3 or higher. #ifndef MOCKSOCKET_H #define MOCKSOCKET_H #include <Arcus/Socket.h> //Inheriting from this to be able to swap this socket in the tested class. #include <deque> //History of sent and received messages. namespace cura...
//Copyright (c) 2018 Ultimaker B.V. //CuraEngine is released under the terms of the AGPLv3 or higher. #ifndef MOCKSOCKET_H #define MOCKSOCKET_H #include <Arcus/Socket.h> //Inheriting from this to be able to swap this socket in the tested class. #include <deque> //History of sent and received messages. namespace cura...
Mark functions as override if they override
Mark functions as override if they override So that if for some reason they don't override anything, we get a compiler error. This bit me in the arse, anyway. Contributes to issue CURA-4410.
C
agpl-3.0
Ultimaker/CuraEngine,Ultimaker/CuraEngine
f76d811c7d49ba1d5aa2a3fd01df6c3d35d97cdb
src/skadns/skadns_end.c
src/skadns/skadns_end.c
/* ISC license. */ #include <skalibs/alloc.h> #include <skalibs/genalloc.h> #include <skalibs/gensetdyn.h> #include <skalibs/skaclient.h> #include <s6-dns/skadns.h> static int skadnsanswer_free (char *p, void *stuff) { register skadnsanswer_t *q = (skadnsanswer_t_ref)p ; alloc_free(&q->data) ; (void)stuff ; r...
/* ISC license. */ #include <skalibs/alloc.h> #include <skalibs/genalloc.h> #include <skalibs/gensetdyn.h> #include <skalibs/skaclient.h> #include <s6-dns/skadns.h> static int skadnsanswer_free (char *p, void *stuff) { register skadnsanswer_t *q = (skadnsanswer_t_ref)p ; alloc_free(&q->data) ; (void)stuff ; r...
Adjust to gensetdyn_iter change in skalibs
Adjust to gensetdyn_iter change in skalibs
C
isc
skarnet/s6-dns,skarnet/s6-dns
f333a38b65f9d357ab6c2fc73fd014f8e266657f
cpp/EXGL.h
cpp/EXGL.h
#ifndef __EXGL_H__ #define __EXGL_H__ #include <OpenGLES/ES2/gl.h> #include <JavaScriptCore/JSBase.h> #ifdef __cplusplus extern "C" { #endif // Identifies an EXGL context. No EXGL context has the id 0, so that can be // used as a 'null' value. typedef unsigned int EXGLContextId; // [JS thread] Create an EXGL cont...
#ifndef __EXGL_H__ #define __EXGL_H__ #ifdef __ANDROID__ #include <GLES2/gl2.h> #endif #ifdef __APPLE__ #include <OpenGLES/ES2/gl.h> #endif #include <JavaScriptCore/JSBase.h> #ifdef __cplusplus extern "C" { #endif // Identifies an EXGL context. No EXGL context has the id 0, so that can be // used as a 'null' valu...
Fix Android vs. iOS GL header include
Fix Android vs. iOS GL header include fbshipit-source-id: 75ec20a
C
bsd-3-clause
jolicloud/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,jolicloud/exponent,exponent/exponent,jolicloud/exponent,exponentjs/exponent,jolicloud/exponent,exponent/exponent,jolicloud/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent...
927cf450d4ebb3df503d79112b0a90d4b19de1ea
src/modules/conf_randr/e_mod_main.h
src/modules/conf_randr/e_mod_main.h
#ifndef E_MOD_MAIN_H # define E_MOD_MAIN_H # ifndef ECORE_X_RANDR_1_2 # define ECORE_X_RANDR_1_2 ((1 << 16) | 2) # endif # ifndef ECORE_X_RANDR_1_3 # define ECORE_X_RANDR_1_3 ((1 << 16) | 3) # endif # ifndef E_RANDR_12 # define E_RANDR_12 (e_randr_screen_info.rrvd_info.randr_info_12) # endif EAPI extern E_Module...
#ifndef E_MOD_MAIN_H # define E_MOD_MAIN_H # define LOGFNS 1 # ifdef LOGFNS # include <stdio.h> # define LOGFN(fl, ln, fn) printf("-CONF-RANDR: %25s: %5i - %s\n", fl, ln, fn); # else # define LOGFN(fl, ln, fn) # endif # ifndef ECORE_X_RANDR_1_2 # define ECORE_X_RANDR_1_2 ((1 << 16) | 2) # endif # ifndef ECORE_...
Add LOGFN macro to header.
Add LOGFN macro to header. Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 84140
C
bsd-2-clause
tasn/enlightenment,rvandegrift/e,FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment,FlorentRevest/Enlightenment,rvandegrift/e,tasn/enlightenment,tizenorg/platform.upstream.enlightenment,tizenorg/platform.upstream.enlightenment,tasn/enlightenment,FlorentRevest/Enlightenment,rvandegrift/e
396890929c29d0c7a9b1474f9e0fa6683903ed1a
lib/ReaderWriter/ELF/AMDGPU/AMDGPURelocationHandler.h
lib/ReaderWriter/ELF/AMDGPU/AMDGPURelocationHandler.h
//===- lld/ReaderWriter/ELF/AMDGPU/AMDGPURelocationHandler.h --------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------...
//===- lld/ReaderWriter/ELF/AMDGPU/AMDGPURelocationHandler.h --------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------...
Remove another unused private member variable
ELF/AMDGPU: Remove another unused private member variable git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@246164 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/lld,llvm-mirror/lld
1e5799c3a633161f89ced5d3d11ee6354ecf7f88
include/auth.h
include/auth.h
#ifndef CPR_AUTH_H #define CPR_AUTH_H #include <string> namespace cpr { class Authentication { public: Authentication(const std::string& username, const std::string& password) : username_{username}, password_{password}, auth_string_{username + ":" + password} {} const char* Get...
#ifndef CPR_AUTH_H #define CPR_AUTH_H #include <string> namespace cpr { class Authentication { public: Authentication(const std::string& username, const std::string& password) : username_{username}, password_{password}, auth_string_{username_ + ":" + password_} {} const char* G...
Use the member strings since their types on concrete
Use the member strings since their types on concrete
C
mit
msuvajac/cpr,whoshuu/cpr,SuperV1234/cpr,msuvajac/cpr,whoshuu/cpr,skystrife/cpr,msuvajac/cpr,skystrife/cpr,skystrife/cpr,SuperV1234/cpr,SuperV1234/cpr,whoshuu/cpr
56841922d1e0ee90cdd2bdf10c8fead846560897
src/RCoRoutineRunner.h
src/RCoRoutineRunner.h
#ifndef __INCLUDED_ECE554E80AF211E7AA6EA088B4D1658C #define __INCLUDED_ECE554E80AF211E7AA6EA088B4D1658C #include <pt.h> class RCoRoutineRunner { public: RCoRoutineRunner(); virtual ~RCoRoutineRunner(); virtual char run(); public: struct pt mPt; }; #endif // __INCLUDED_ECE554E80AF211E7AA6EA088B4D1658C
#ifndef __INCLUDED_ECE554E80AF211E7AA6EA088B4D1658C #define __INCLUDED_ECE554E80AF211E7AA6EA088B4D1658C #include <pt/pt.h> class RCoRoutineRunner { public: RCoRoutineRunner(); virtual ~RCoRoutineRunner(); virtual char run(); public: struct pt mPt; }; #endif // __INCLUDED_ECE554E80AF211E7AA6EA088B4D1658...
Use protothread library which included in RabirdToolkitThirdParties
Use protothread library which included in RabirdToolkitThirdParties
C
mit
starofrainnight/ArduinoRabirdToolkit,starofrainnight/ArduinoRabirdTookit,starofrainnight/ArduinoRabirdToolkit
f0da1d7331333266c7f45eb326ac595d0a831d01
10V/Stefan_Iliev_25/Homework_2/Homework2_v2.c
10V/Stefan_Iliev_25/Homework_2/Homework2_v2.c
#include<stdio.h> int main() { int printed_numb=0; int x; int prev_number=2; int number=2; int flag; while(printed_numb<10) { flag=0; for(x=2;x<=number/2;x++) { if(number%x==0) { flag=1; break; } } if(flag=0) { if(number==prev_number+2) { printf("%d - ",prev_number); printf("...
#include<stdio.h> int main() { int printed_numb=0; int x; int prev_number=2; int number=2; int flag; while(printed_numb<10) { flag=0; for(x=2;x<=number/2;x++) { if(number%x==0) { flag=1; break; } } if(flag==0) { if(number==prev_number+2) { printf("%d - ",prev_number); printf(...
Repair on Twin Primes.Homework 2 completed.Stefan Iliev 26 10V
Repair on Twin Primes.Homework 2 completed.Stefan Iliev 26 10V
C
mit
Dimitur-Matev/elsys-c-programming-2013-2014
91e4896559b1f087e56007b77ed630e48301eaf0
cmd/smyrna/gui/glmenu.h
cmd/smyrna/gui/glmenu.h
#ifndef GLMENU_H #define GLMENU_H #include "viewport.h" GtkWidget* create_popup_menu (GtkWidget* drawing_area); #endif
/* vim:set shiftwidth=4 ts=8: */ /********************************************************** * This software is part of the graphviz package * * http://www.graphviz.org/ * * * * Copyright (c) 1994-2004 AT&T Corp...
Clean up smyrna files: remove unnecessary globals modify libraries not to rely on code in cmd/smyrna remove static declarations from .h files remove unnecessary libraries mark unused code and clean up warnings
Clean up smyrna files: remove unnecessary globals modify libraries not to rely on code in cmd/smyrna remove static declarations from .h files remove unnecessary libraries mark unused code and clean up warnings
C
epl-1.0
tkelman/graphviz,tkelman/graphviz,kbrock/graphviz,MjAbuz/graphviz,jho1965us/graphviz,pixelglow/graphviz,tkelman/graphviz,tkelman/graphviz,kbrock/graphviz,tkelman/graphviz,tkelman/graphviz,pixelglow/graphviz,kbrock/graphviz,jho1965us/graphviz,BMJHayward/graphviz,BMJHayward/graphviz,pixelglow/graphviz,jho1965us/graphviz,...
228e64096902f6bcd14aca8be5333fc69cbc80bc
server/database.c
server/database.c
#include <sqlite3.h> #include <stdio.h> static sqlite3 *db; int _mqtt_db_create_tables(void); int mqtt_db_open(const char *filename) { if(sqlite3_open(filename, &db) != SQLITE_OK){ fprintf(stderr, "Error: %s\n", sqlite3_errmsg(db)); return 1; } return _mqtt_db_create_tables(); } int mqtt_db_close(void) { s...
#include <sqlite3.h> #include <stdio.h> static sqlite3 *db; int _mqtt_db_create_tables(void); int mqtt_db_open(const char *filename) { if(sqlite3_open(filename, &db) != SQLITE_OK){ fprintf(stderr, "Error: %s\n", sqlite3_errmsg(db)); return 1; } return _mqtt_db_create_tables(); } int mqtt_db_close(void) { s...
Create db table for subscriptions.
Create db table for subscriptions.
C
bsd-3-clause
zlargon/mosquitto,zlargon/mosquitto,tempbottle/mosquitto,tempbottle/mosquitto,zlargon/mosquitto,tempbottle/mosquitto,zlargon/mosquitto,zlargon/mosquitto,tempbottle/mosquitto,tempbottle/mosquitto
6bf45f6de4f613fef61dbe98c464c33478785e95
tests/dbus/test-tpl-observer.c
tests/dbus/test-tpl-observer.c
#include <telepathy-logger/channel-factory-internal.h> #include <telepathy-logger/observer-internal.h> static gint factory_counter = 0; static TplChannel * mock_factory (const gchar *chan_type, TpConnection *conn, const gchar *object_path, GHashTable *tp_chan_props, TpAccount *tp_acc, GError **error) { fact...
#include <telepathy-logger/channel-factory-internal.h> #include <telepathy-logger/observer-internal.h> static gint factory_counter = 0; static TplChannel * mock_factory (const gchar *chan_type, TpConnection *conn, const gchar *object_path, GHashTable *tp_chan_props, TpAccount *tp_acc, GError **error) { fact...
Fix invalid read in pseudo observer test
Fix invalid read in pseudo observer test
C
lgpl-2.1
freedesktop-unofficial-mirror/telepathy__telepathy-logger,freedesktop-unofficial-mirror/telepathy__telepathy-logger,freedesktop-unofficial-mirror/telepathy__telepathy-logger
da6d42acfb7f6b65bbc95e52e01147d2335f490f
include/guard_overflow.h
include/guard_overflow.h
// // include/guard_overflow.h // tbd // // Created by inoahdev on 12/29/18. // Copyright © 2018 - 2019 inoahdev. All rights reserved. // #ifndef GUARD_OVERFLOW_H #define GUARD_OVERFLOW_H #include <stdint.h> #define guard_overflow_add(left_in, right) _Generic((left_in), \ uint32_t *: __builtin_uadd_overflow,...
// // include/guard_overflow.h // tbd // // Created by inoahdev on 12/29/18. // Copyright © 2018 - 2019 inoahdev. All rights reserved. // #ifndef GUARD_OVERFLOW_H #define GUARD_OVERFLOW_H #include <stdint.h> #define guard_overflow_add(left_in, right) \ __builtin_add_overflow(*left_in, right, left_in) #defin...
Fix compile errors with different integer-types
Fix compile errors with different integer-types
C
mit
inoahdev/tbd,inoahdev/tbd
3e705f279a942471b258b1c7a9e54aa8ff36b89f
include/linux/root_dev.h
include/linux/root_dev.h
#ifndef _ROOT_DEV_H_ #define _ROOT_DEV_H_ #include <linux/major.h> enum { Root_NFS = MKDEV(UNNAMED_MAJOR, 255), Root_RAM0 = MKDEV(RAMDISK_MAJOR, 0), Root_RAM1 = MKDEV(RAMDISK_MAJOR, 1), Root_FD0 = MKDEV(FLOPPY_MAJOR, 0), Root_HDA1 = MKDEV(IDE0_MAJOR, 1), Root_HDA2 = MKDEV(IDE0_MAJOR, 2), Root_SDA1 = MKDEV(SCSI...
#ifndef _ROOT_DEV_H_ #define _ROOT_DEV_H_ #include <linux/major.h> #include <linux/types.h> #include <linux/kdev_t.h> enum { Root_NFS = MKDEV(UNNAMED_MAJOR, 255), Root_RAM0 = MKDEV(RAMDISK_MAJOR, 0), Root_RAM1 = MKDEV(RAMDISK_MAJOR, 1), Root_FD0 = MKDEV(FLOPPY_MAJOR, 0), Root_HDA1 = MKDEV(IDE0_MAJOR, 1), Root_H...
Fix broken kernel headers preventing ARM build
[PATCH] Fix broken kernel headers preventing ARM build As a result of 894673ee6122a3ce1958e1fe096901ba5356a96b, the ARM architecture is more or less unbuildable - only one defconfig appears to build, with all others erroring out with: CC arch/arm/kernel/setup.o In file included from /home/rmk/git/linux-2.6-r...
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,Krist...
2ace9385a27d77e3fbf1f987b3bf3f0ce6af7ebc
src/protocols/ssh/ttymode.h
src/protocols/ssh/ttymode.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 ...
/* * 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 ...
Add documentation for the defines and variables.
GUACAMOLE-269: Add documentation for the defines and variables.
C
apache-2.0
glyptodon/guacamole-server,mike-jumper/incubator-guacamole-server,glyptodon/guacamole-server,apache/guacamole-server,apache/guacamole-server,mike-jumper/incubator-guacamole-server,mike-jumper/incubator-guacamole-server,mike-jumper/incubator-guacamole-server,glyptodon/guacamole-server,apache/guacamole-server
de6438d1b0800bbc285201962356476fe816c2a1
lang/python36/files/patch-Modules___ssl.c
lang/python36/files/patch-Modules___ssl.c
--- Modules/_ssl.c.orig +++ Modules/_ssl.c @@ -99,7 +99,8 @@ struct py_ssl_library_code { /* Include generated data (error codes) */ #include "_ssl_data.h" -#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER) +#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && \ + (!defined(LIBRESSL_VERSION...
$OpenBSD: patch-Modules__ssl_c,v 1.2 2018/03/17 22:30:04 sthen Exp $ XXX maybe the second hunk can go away now we have auto-init, I'm not sure exactly what python's lock protects Index: Modules/_ssl.c --- Modules/_ssl.c.orig +++ Modules/_ssl.c @@ -99,7 +99,8 @@ struct py_ssl_library_code { /* Include generated data ...
Fix libressl patch python 3.6
Fix libressl patch python 3.6
C
mit
nrosier/bunbun,nrosier/bunbun,nrosier/bunbun,nrosier/bunbun
8b3a08698c86a94a3943ec941fe35b930046cd25
tornado/speedups.c
tornado/speedups.c
#define PY_SSIZE_T_CLEAN #include <Python.h> static PyObject* websocket_mask(PyObject* self, PyObject* args) { const char* mask; Py_ssize_t mask_len; const char* data; Py_ssize_t data_len; Py_ssize_t i; PyObject* result; char* buf; if (!PyArg_ParseTuple(args, "s#s#", &mask, &mask_len, ...
#define PY_SSIZE_T_CLEAN #include <Python.h> static PyObject* websocket_mask(PyObject* self, PyObject* args) { const char* mask; Py_ssize_t mask_len; const char* data; Py_ssize_t data_len; Py_ssize_t i; PyObject* result; char* buf; if (!PyArg_ParseTuple(args, "s#s#", &mask, &mask_len, ...
Add void to empty function parameter
Add void to empty function parameter This fixes the gcc warning: tornado/speedups.c:49:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] initspeedups() { ^
C
apache-2.0
hhru/tornado,jehiah/tornado,mr-ping/tornado,arthurdarcet/tornado,tornadoweb/tornado,wsyzxcn/tornado,eklitzke/tornado,hhru/tornado,zguangyu/tornado,mehmetkose/tornado,NoyaInRain/tornado,lilydjwg/tornado,NoyaInRain/tornado,jehiah/tornado,eklitzke/tornado,mivade/tornado,fengsp/tornado,ColorFuzzy/tornado,wujuguang/tornado,...
18d9955dfa631cc4963aa1df4959bd834ae4c8d6
Classes/ios/FlatUIKit.h
Classes/ios/FlatUIKit.h
// // FlatUIKit.h // FlatUI // // Created by Keisuke Kimura on 6/8/13. // Copyright (c) 2013 Keisuke Kimura. All rights reserved. // #ifndef FlatUI_FlatUIKit_h #define FlatUI_FlatUIKit_h #ifndef __IPHONE_5_0 #error "FlatUIKit uses features only available in iOS SDK 5.0 and later." #endif #if TARGET_OS_IPHONE #im...
// // FlatUIKit.h // FlatUI // // Created by Keisuke Kimura on 6/8/13. // Copyright (c) 2013 Keisuke Kimura. All rights reserved. // #ifndef FlatUI_FlatUIKit_h #define FlatUI_FlatUIKit_h #ifndef __IPHONE_5_0 #error "FlatUIKit uses features only available in iOS SDK 5.0 and later." #endif #if TARGET_OS_IPHONE #im...
Remove OSVersion check of import "UIStepper+FlatUI.h"
Remove OSVersion check of import "UIStepper+FlatUI.h"
C
mit
hessu/FlatUIKit,zyprosoft/FlatUIKit,Grouper/FlatUIKit,lydonchandra/FlatUIKit,tfrank64/FlatUIKit,somedev/FlatUIKit,imjerrybao/FlatUIKit,lioonline/FlatUIKit,tuanpa199/FlatUIKit,AmitaiB/FlatUIKit,SummerHanada/FlatUIKit,ajrulez/FlatUIKit,applexiaohao/FlatUIKit,GuanKunLuo/FlatUIKit,fromeflow/FlatUIKit,0x73/FlatUIKit,hieutn/...
0a422f6007fab2b8c41cb0c0b6d76e941b3fb913
c/sum_of_even_squares.c
c/sum_of_even_squares.c
int sum_of_even_squares(int* a, unsigned int length) { int total = 0; for (unsigned int i = 0; i < length; i++) { if (a[i] % 2 == 0) { total += a[i] * a[i]; } } return total; }
int sum_of_even_squares(int* a, unsigned int length) { int total = 0; for (unsigned int i = 0; i < length; i++) { if (a[i] % 2 == 0) { total += a[i] * a[i]; } } return total; } #include <assert.h> static int a[] = {7, 3, -8, 4, 1, 0, 11, 2}; int main() { assert(sum_of_...
Add asserts to C sum of even squares
Add asserts to C sum of even squares
C
mit
rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/poly...
fccd0e6b8314ecc95bde542fe7031bc881dac722
components/libc/minilibc/sys/types.h
components/libc/minilibc/sys/types.h
#ifndef __TYPES_H__ #define __TYPES_H__ #include <rtthread.h> typedef long off_t; typedef rt_size_t size_t; typedef signed long ssize_t; /* Used for a count of bytes or an error indication. */ typedef rt_uint8_t u_char; typedef rt_uint16_t u_short; typedef rt_ubase_t u_int; typedef rt_uint32_t u_long; typed...
#ifndef __TYPES_H__ #define __TYPES_H__ #include <rtthread.h> typedef long off_t; typedef __SIZE_TYPE__ size_t; typedef signed long ssize_t; /* Used for a count of bytes or an error indication. */ typedef rt_uint8_t u_char; typedef rt_uint16_t u_short; typedef rt_ubase_t u_int; typedef rt_uint32_t u_long; t...
Use __SIZE_TYPE__ instead of rt_size_t in minilibc.
[libc] Use __SIZE_TYPE__ instead of rt_size_t in minilibc.
C
apache-2.0
zhaojuntao/rt-thread,nongxiaoming/rt-thread,hezlog/rt-thread,wolfgangz2013/rt-thread,nongxiaoming/rt-thread,geniusgogo/rt-thread,yongli3/rt-thread,geniusgogo/rt-thread,weety/rt-thread,hezlog/rt-thread,weiyuliang/rt-thread,ArdaFu/rt-thread,ArdaFu/rt-thread,AubrCool/rt-thread,geniusgogo/rt-thread,AubrCool/rt-thread,wolfg...
bf94028e883779ee7ee9da58a970796ab8b0be25
program2.c
program2.c
/* * CIS 314 Fall 2015 Lab 1 * Assigned project * * This program reads a sorted array from a file and finds a requested number * using recursive or iterative binary search. The array is read from a file * defined by FILE_NAME, which should be written as the number of elements * followed by the elements ...
/* * CIS 314 Fall 2015 Lab 1 * Assigned project * * This program reads a sorted array from a file and finds a requested number * using recursive or iterative binary search. The array is read from a file * defined by FILE_NAME, which should be written as the number of elements * followed by the elements ...
Add high and low in iterative
Add high and low in iterative
C
mit
jacobbieker/CIS314_Lab_1
814fd55d1b26335f1765ed59fda4b6325893a9ad
include/win32/strings.h
include/win32/strings.h
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2014 Couchbase, 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://ww...
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2014 Couchbase, 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://ww...
Set C linkage for win32 [v]asprintf
Set C linkage for win32 [v]asprintf Change-Id: I7f82255467c05936baa702fa1d532156b0caba12 Reviewed-on: http://review.couchbase.org/52114 Reviewed-by: Dave Rigby <a09264da4832c7ff1d3bf1608a19f4b870f93750@couchbase.com> Tested-by: buildbot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
C
apache-2.0
vmx/platform,vmx/platform
58874bbedc4afe8d2fb9318e965513f1b8219441
DiskSampling/PoissonDiskSampling.h
DiskSampling/PoissonDiskSampling.h
#ifndef POISSON_DISK_SAMPLING_H #define POISSON_DISK_SAMPLING_H #include <vector> class PoissonDiskSampling { public: PoissonDiskSampling() = default; ~PoissonDiskSampling() = default; PoissonDiskSampling(const PoissonDiskSampling& rhs) = default; PoissonDiskSampling(const PoissonDiskSampling&& rhs) = default; ...
#ifndef POISSON_DISK_SAMPLING_H #define POISSON_DISK_SAMPLING_H #include <vector> class PoissonDiskSampling { public: PoissonDiskSampling() = default; PoissonDiskSampling(int pointWidth, int pointHeight, double pointMinDist, double pointCount); ~PoissonDiskSampling() = default; PoissonDiskSampling(const Poisson...
Fix grammer error and implement Point structure
Fix grammer error and implement Point structure
C
mit
utilForever/PolyMapGenerator
4c6d97a34e6d86721390f3ecb43be45e38e7f1f8
include/IpToCountryDB.h
include/IpToCountryDB.h
/* OpenLieroX reader for IpToCountry database code under LGPL by Albert Zeyer and Dark Charlie */ #ifndef __IPTOCOUNTRY_H__ #define __IPTOCOUNTRY_H__ #include <string> #include "SmartPointer.h" #include "InternDataClass.h" #include "GeoIPDatabase.h" struct SDL_Surface; typedef GeoRecord IpInfo; INTERNDATA_C...
/* OpenLieroX reader for IpToCountry database code under LGPL by Albert Zeyer and Dark Charlie */ #ifndef __IPTOCOUNTRY_H__ #define __IPTOCOUNTRY_H__ #include <string> #include "SmartPointer.h" #include "InternDataClass.h" #include "GeoIPDatabase.h" struct SDL_Surface; typedef GeoRecord IpInfo; INTERNDATA_C...
Fix for checking if the database is loaded
Fix for checking if the database is loaded
C
lgpl-2.1
ProfessorKaos64/openlierox,ProfessorKaos64/openlierox,ProfessorKaos64/openlierox,ProfessorKaos64/openlierox,ProfessorKaos64/openlierox,ProfessorKaos64/openlierox,ProfessorKaos64/openlierox
f2dc1a3e5a5d939fa07f4641dbd1d32a6fed71e5
log.c
log.c
#include <stdio.h> #include <stdarg.h> #include <time.h> #include <unistd.h> #include "log.h" #include "globals.h" void my_log(int priority, const char *format, ...) { va_list ap; va_start(ap, format); #ifndef MINIMALISTIC_BUILD if (globals.no_syslog) { #endif time_t now; struct tm* timeinfo; char timestring...
#include <stdio.h> #include <stdarg.h> #include <time.h> #include <unistd.h> #include "log.h" #include "globals.h" void my_log(int priority, const char *format, ...) { va_list ap; va_start(ap, format); #ifndef MINIMALISTIC_BUILD if (globals.no_syslog) { #endif time_t now; struct tm timeinfo; char timestring[...
Address issues found by LGTM
Address issues found by LGTM
C
mit
sjinks/ssh-honeypotd,sjinks/ssh-honeypotd
ee99eef691ae08f3bea6012e0ff81850be1a4906
Quick/Quick.h
Quick/Quick.h
#import <Foundation/Foundation.h> //! Project version number for Quick. FOUNDATION_EXPORT double QuickVersionNumber; //! Project version string for Quick. FOUNDATION_EXPORT const unsigned char QuickVersionString[]; #import <Quick/QuickSpec.h>
#import <Foundation/Foundation.h> //! Project version number for Quick. FOUNDATION_EXPORT double QuickVersionNumber; //! Project version string for Quick. FOUNDATION_EXPORT const unsigned char QuickVersionString[]; // In this header, you should import all the public headers of your framework using statements like #i...
Revert "Remove public headers from umbrella header"
Revert "Remove public headers from umbrella header" This reverts commit 3c5ab51a235a400427b364a608e679d91390f96a.
C
apache-2.0
ikesyo/Quick,Quick/Quick,jeffh/Quick,Quick/Quick,jasonchaffee/Quick,jasonchaffee/Quick,paulyoung/Quick,marciok/Quick,jasonchaffee/Quick,phatblat/Quick,ikesyo/Quick,DanielAsher/Quick,ashfurrow/Quick,marciok/Quick,DanielAsher/Quick,paulyoung/Quick,ikesyo/Quick,ashfurrow/Quick,Quick/Quick,mokagio/Quick,paulyoung/Quick,pha...
bdcc37fe2d21afdb01fcc3f0213ae909ebd4f3cb
ObjcNullability/ObjcNullability/BlockExamples.h
ObjcNullability/ObjcNullability/BlockExamples.h
// // BlockExamples.h // ObjcNullability // // Created by Bryan Luby on 5/21/15. // Copyright (c) 2015 Bryan Luby. All rights reserved. // #import <Foundation/Foundation.h> typedef void(^TestBlock)(NSString * __nonnull stuff); typedef void(^TestBlock2)(NSString * __nullable otherStuff); NS_ASSUME_NONNULL_BEGIN t...
// // BlockExamples.h // ObjcNullability // // Created by Bryan Luby on 5/21/15. // Copyright (c) 2015 Bryan Luby. All rights reserved. // #import <Foundation/Foundation.h> typedef void(^TestBlock)(NSString * __nonnull stuff); typedef void(^TestBlock2)(NSString * __nullable otherStuff); NS_ASSUME_NONNULL_BEGIN t...
Add typedef block with return value
Add typedef block with return value
C
mit
bryanluby/XcodeTestProjects,bryanluby/XcodeTestProjects
a5df96b98e206885fcd5010bec59f080c5b630ab
src/RCoRoutineRunner.h
src/RCoRoutineRunner.h
#ifndef __INCLUDED_ECE554E80AF211E7AA6EA088B4D1658C #define __INCLUDED_ECE554E80AF211E7AA6EA088B4D1658C #include <pt/pt.h> class RCoRoutineRunner { public: RCoRoutineRunner(); virtual ~RCoRoutineRunner(); virtual char run(); public: struct pt mPt; }; #endif // __INCLUDED_ECE554E80AF211E7AA6EA088B4D1658...
#ifndef __INCLUDED_ECE554E80AF211E7AA6EA088B4D1658C #define __INCLUDED_ECE554E80AF211E7AA6EA088B4D1658C #include <pt/pt.h> class RCoRoutineRunner { public: RCoRoutineRunner(); virtual ~RCoRoutineRunner(); virtual char run() = 0; public: struct pt mPt; }; #endif // __INCLUDED_ECE554E80AF211E7AA6EA088B4D...
Mark run() as pure virtual function
Mark run() as pure virtual function
C
mit
starofrainnight/ArduinoRabirdTookit,starofrainnight/ArduinoRabirdToolkit,starofrainnight/ArduinoRabirdToolkit
acc9bf3716be80a19f514f228cb903c0910a1725
test/Index/preamble.c
test/Index/preamble.c
#include "prefix.h" #include "preamble.h" int wibble(int); // RUN: %clang -x c-header -o %t.pch %S/Inputs/prefix.h // RUN: CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 5 local -I %S/Inputs -include %t %s | FileCheck %s // CHECK: preamble.c:3:5: FunctionDecl=wibble:3:5 Extent=[3:5 - 3:16] // CHECK: pream...
#include "prefix.h" #include "preamble.h" int wibble(int); // RUN: %clang -x c-header -o %t.pch %S/Inputs/prefix.h // RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 5 local -I %S/Inputs -include %t %s | FileCheck %s // CHECK: preamble.c:3:5: FunctionDecl=wibble:3:5 Extent=[3:5 - 3:16] // CHECK: p...
Use env instead of assuming bash.
tests: Use env instead of assuming bash. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@109864 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
8605544c0b0cbc5ad43d86a71402f3f4075b48e3
paddle/utils/Compiler.h
paddle/utils/Compiler.h
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved. 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 ag...
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved. 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 ag...
Add some comments to compiler.h
Add some comments to compiler.h
C
apache-2.0
livc/Paddle,livc/Paddle,cxysteven/Paddle,wen-bo-yang/Paddle,lispc/Paddle,yu239/Paddle,yu239/Paddle,reyoung/Paddle,lispc/Paddle,luotao1/Paddle,pengli09/Paddle,hedaoyuan/Paddle,lispc/Paddle,yu239/Paddle,pengli09/Paddle,yu239/Paddle,pkuyym/Paddle,chengduoZH/Paddle,reyoung/Paddle,livc/Paddle,cxysteven/Paddle,Canpio/Paddle,...
0f723b00387c4fe9134ac41f8d6d658f5b12901e
src/main.c
src/main.c
// Copyright 2016 Mitchell Kember. Subject to the MIT License. #include "translate.h" #include "transmit.h" #include "util.h" #include <stdio.h> #include <unistd.h> int main(int argc, char **argv) { setup_util(argv[0]); // Initialize options to default values. int mode = 'e'; int time_unit = 0; // Get command...
// Copyright 2016 Mitchell Kember. Subject to the MIT License. #include "translate.h" #include "transmit.h" #include "util.h" #include <stdio.h> #include <unistd.h> int main(int argc, char **argv) { setup_util(argv[0]); // Initialize the default mode. int mode = 'e'; // Get command line options. int c; exter...
Remove option argument for transmit mode
Remove option argument for transmit mode
C
mit
mk12/morse
f4131aca5d93830c9559440d19cf66aa1838d10b
src/main.c
src/main.c
#include <stdio.h> #include <stdlib.h> #include <sysexits.h> #include <unistd.h> #include "choices.h" #include "config.h" #include "io.h" #include "ui.h" void usage(); void version(); int main(int argc,char **argv) { int ch; struct choices *cs; while ((ch = getopt(argc, argv, "hv")) != -1) switch (ch) { case...
#include <stdio.h> #include <stdlib.h> #include <sysexits.h> #include <unistd.h> #include "choices.h" #include "config.h" #include "io.h" #include "ui.h" void usage(); void version(); int main(int argc,char **argv) { int ch; struct choices *cs; while ((ch = getopt(argc, argv, "hv")) != -1) switch (ch) { case...
Correct usage message option list.
Correct usage message option list.
C
mit
DBOTW/pick,prahlad37/pick,prahlad37/pick,GBuella/pick,temochka/pick,DBOTW/pick,thoughtbot/pick,temochka/pick,calleerlandsson/pick,DBOTW/pick,prahlad37/pick,thoughtbot/pick,thoughtbot/pick,calleerlandsson/pick,calleerlandsson/pick,thoughtbot/pick,GBuella/pick,prahlad37/pick
91b6f8dd73c6cead933c396d27405d50ad1e4633
tcp/main.c
tcp/main.c
#include <stdlib.h> #include <stdio.h> #include <string.h> int main(int argc, char *argv[]) { return 0; }
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "timer.h" #include "ports.h" int main(int argc, char *argv[]) { int prt, time; mach_port_t port; tcp_timer_t timer; char buffer[4096]; typeinfo_t tpinfo; timer_message_t* msg = (timer_message_t*)buffer; mach_port_allocate...
Create code to test timer
Create code to test timer
C
mit
lucas8/ENS_sysres,lucas8/ENS_sysres
af8e53a6a1f592c6d3e4ce1bf100ec7b927ef679
CefSharp.Core/SchemeHandlerFactoryWrapper.h
CefSharp.Core/SchemeHandlerFactoryWrapper.h
// Copyright 2010-2015 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #pragma once #include "Stdafx.h" #include "include/cef_scheme.h" #include "Internals/AutoLock.h" using namespace System; using namespace System::I...
// Copyright 2010-2015 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #pragma once #include "Stdafx.h" #include "include/cef_scheme.h" #include "Internals/AutoLock.h" using namespace System; using namespace System::I...
Remove redundant method prefix (cpp)
Remove redundant method prefix (cpp)
C
bsd-3-clause
rlmcneary2/CefSharp,illfang/CefSharp,windygu/CefSharp,haozhouxu/CefSharp,battewr/CefSharp,joshvera/CefSharp,twxstar/CefSharp,ruisebastiao/CefSharp,ruisebastiao/CefSharp,battewr/CefSharp,jamespearce2006/CefSharp,Haraguroicha/CefSharp,VioletLife/CefSharp,dga711/CefSharp,zhangjingpu/CefSharp,AJDev77/CefSharp,illfang/CefSh...
ac3bb2f33bb0423bc8770aa34140637c0542fbc7
test/Profile/c-linkage-available_externally.c
test/Profile/c-linkage-available_externally.c
// Make sure instrumentation data from available_externally functions doesn't // get thrown out and are emitted with the expected linkage. // RUN: %clang_cc1 -O2 -triple x86_64-apple-macosx10.9 -main-file-name c-linkage-available_externally.c %s -o - -emit-llvm -fprofile-instrument=clang | FileCheck %s // CHECK: @__pr...
// Make sure instrumentation data from available_externally functions doesn't // get thrown out and are emitted with the expected linkage. // RUN: %clang_cc1 -O2 -triple x86_64-apple-macosx10.9 -main-file-name c-linkage-available_externally.c %s -o - -emit-llvm -fprofile-instrument=clang | FileCheck %s // CHECK: @__pr...
Update testcase for r283948 (NFC)
[Profile] Update testcase for r283948 (NFC) Old: "__DATA,__llvm_prf_data" New: "__DATA,__llvm_prf_data,regular,live_support" This should fix the following bot failure: http://bb.pgr.jp/builders/cmake-clang-x86_64-linux/builds/55158 git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@283949 91177308-0d34-0410-b5e...
C
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang
208d421c4f32fd8fd7dfccedfb18f36a0444168f
hw/mcu/stm/stm32f4xx/include/mcu/cmsis_nvic.h
hw/mcu/stm/stm32f4xx/include/mcu/cmsis_nvic.h
/* mbed Microcontroller Library - cmsis_nvic * Copyright (c) 2009-2011 ARM Limited. All rights reserved. * * CMSIS-style functionality to support dynamic vectors */ #ifndef MBED_CMSIS_NVIC_H #define MBED_CMSIS_NVIC_H #include <stdint.h> #if defined(STM32F407xx) #define MCU_NUM_PERIPH_VECTORS 82 #elif defined(ST...
/* mbed Microcontroller Library - cmsis_nvic * Copyright (c) 2009-2011 ARM Limited. All rights reserved. * * CMSIS-style functionality to support dynamic vectors */ #ifndef MBED_CMSIS_NVIC_H #define MBED_CMSIS_NVIC_H #include <stdint.h> #if defined(STM32F401xE) || defined(STM32F407xx) #define MCU_NUM_PERIPH_VEC...
Fix number of peripheral vectors for stm32f401xE
Fix number of peripheral vectors for stm32f401xE
C
apache-2.0
mlaz/mynewt-core,andrzej-kaczmarek/apache-mynewt-core,andrzej-kaczmarek/apache-mynewt-core,andrzej-kaczmarek/incubator-mynewt-core,mlaz/mynewt-core,andrzej-kaczmarek/incubator-mynewt-core,andrzej-kaczmarek/incubator-mynewt-core,mlaz/mynewt-core,andrzej-kaczmarek/apache-mynewt-core,mlaz/mynewt-core,andrzej-kaczmarek/inc...
5816b39c53a35978dab03f7c7b30f362e09a9426
src/os/Linux/findself.c
src/os/Linux/findself.c
#define _XOPEN_SOURCE 500 #include "os_common.h" #include <unistd.h> #include <stdlib.h> char *os_find_self(const char *argv0) { (void)argv0; // PATH_MAX (used by readlink(2)) is not necessarily available size_t size = 2048, used = 0; char *path = NULL; do { size *= 2; path = reall...
#define _XOPEN_SOURCE 500 #include "os_common.h" #include <unistd.h> #include <stdlib.h> char *os_find_self(const char *argv0) { (void)argv0; // PATH_MAX (used by readlink(2)) is not necessarily available size_t size = 2048, used = 0; char *path = NULL; do { size *= 2; path = reall...
Correct off-by-one error in os_find_self on Linux
Correct off-by-one error in os_find_self on Linux
C
mit
kulp/tenyr,kulp/tenyr,kulp/tenyr
ac24377fd590cec5723eb588eeb65bd5a47e997c
include/homerun.h
include/homerun.h
// homerun.h // HDHomeRun Wrapper #include <stdint.h> #include "libhdhomerun.h" #ifndef HOMERUN_H #define HOMERUN_H int verifyHomerunTuner(int); struct hdhomerun_discover_device_t getValidDevice(); #endif
// network.h // hdpirun // // HDHomeRun wrapper. Wraps library functionality for use // // Author: Robbie Duncan // Copyright: Copyright (c) 2016 Robbie Duncan // License: See LICENSE // #include <stdint.h> #include "libhdhomerun.h" // #ifndef HOMERUN_H #define HOMERUN_H int verifyHomerunTuner(int); // // Constructs a...
Move discovery reply packet construction to the correct file
Move discovery reply packet construction to the correct file
C
mit
robbieduncan/hdpirun,robbieduncan/hdpirun
43a9b8038c5f4a27aa884bcc16b45c473c268bb2
examples/getartist_c.c
examples/getartist_c.c
/* Get artist by id. * * Usage: * getartist 'artist id' * * $Id$ */ #include <stdio.h> #include <musicbrainz3/mb_c.h> int main(int argc, char **argv) { MBQuery query; MBArtist artist; char data[256]; if (argc < 2) { printf("Usage: getartist 'artist id'\n"); return 1; } mb_webservice_init(); ...
/* Get artist by id. * * Usage: * getartist 'artist id' * * $Id$ */ #include <stdio.h> #include <musicbrainz3/mb_c.h> int main(int argc, char **argv) { MbQuery query; MbArtist artist; char data[256]; if (argc < 2) { printf("Usage: getartist 'artist id'\n"); return 1; } mb_webservice_init(); ...
Rename MBArtist to MbArtist to make it compile.
Rename MBArtist to MbArtist to make it compile. git-svn-id: 493edb1aabd9361e12d1b994f475f0ee8eea41ad@7847 b0b80210-5d09-0410-99dd-b4bd03f891c0
C
lgpl-2.1
matthewruhland/libmusicbrainz,matthewruhland/libmusicbrainz,sebastinas/libmusicbrainz,metabrainz/libmusicbrainz,sebastinas/libmusicbrainz,matthewruhland/libmusicbrainz,sebastinas/libmusicbrainz,metabrainz/libmusicbrainz,metabrainz/libmusicbrainz
7bb1bf38d038f8bbea217bd6431be6c2749bf8ad
circe-crc32c-sse42-lib/src/main/include/int_types.h
circe-crc32c-sse42-lib/src/main/include/int_types.h
/******************************************************************************* * Copyright 2014 Trevor Robinson * * 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.apach...
/******************************************************************************* * Copyright 2014 Trevor Robinson * * 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.apach...
Use platform stdint.h and standard size_t printf format in newer versions of MSVC
Use platform stdint.h and standard size_t printf format in newer versions of MSVC
C
apache-2.0
trevorr/circe,trevorr/circe,trevorr/circe
06e74f67923c38c03eb38dd819258d4d41040651
src/engine/core/include/halley/core/api/platform_api.h
src/engine/core/include/halley/core/api/platform_api.h
#pragma once namespace Halley { class HTTPResponse { public: virtual ~HTTPResponse() {} virtual int getResponseCode() const = 0; virtual const Bytes& getBody() const = 0; }; class HTTPRequest { public: virtual ~HTTPRequest() {} virtual void setPostData(const String& contentType, const Bytes& data) = 0...
#pragma once namespace Halley { class HTTPResponse { public: virtual ~HTTPResponse() {} virtual int getResponseCode() const = 0; virtual const Bytes& getBody() const = 0; }; class HTTPRequest { public: virtual ~HTTPRequest() {} virtual void setPostData(const String& contentType, const Bytes& data) = 0...
Add setHeader to HTTPRequest API
Add setHeader to HTTPRequest API
C
apache-2.0
amzeratul/halley,amzeratul/halley,amzeratul/halley
e4ad8ed638d3147d95d41940a50d59f82597a18f
Python/getcopyright.c
Python/getcopyright.c
/* Return the copyright string. This is updated manually. */ #include "Python.h" static char cprt[] = "Copyright (c) 2000 BeOpen.com; All Rights Reserved.\n\ Copyright (c) 1995-2000 Corporation for National Research Initiatives;\n\ All Rights Reserved.\n\ Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amst...
/* Return the copyright string. This is updated manually. */ #include "Python.h" static char cprt[] = "Copyright (c) 2000 BeOpen.com. All Rights Reserved.\n\ Copyright (c) 1995-2000 Corporation for National Research Initiatives.\n\ All Rights Reserved.\n\ Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Ams...
Use periods, not semicolons between Copyright and All Rights Reserved.
Use periods, not semicolons between Copyright and All Rights Reserved.
C
mit
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
51b49a872a45e9e14cedc823b0486a424f23d6eb
src/event.h
src/event.h
#ifndef _EVENT_H_ #define _EVENT_H_ #include "dataStackEntry.h" typedef struct event Event; Event *ev_create(char *name, char *eventData, unsigned long nAUs); Event *ev_reference(Event *event); void ev_release(Event *event); char *ev_data(Event *event); char *ev_topic(Event *event); int ev_theData(Event *event,...
#ifndef _EVENT_H_ #define _EVENT_H_ /* * Copyright (c) 2013, Court of the University of Glasgow * 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 ...
Add BSD 3-clause open source header
Add BSD 3-clause open source header
C
bsd-3-clause
jsventek/Cache,fergul/Cache,fergul/Cache,fergul/Cache,jsventek/Cache,jsventek/Cache
52f4cfe22d70c06394d12f9b7fd45f753370cd56
os/win/color_space.h
os/win/color_space.h
// LAF OS Library // Copyright (C) 2018-2020 Igara Studio S.A. // // This file is released under the terms of the MIT license. // Read LICENSE.txt for more information. #ifndef OS_WIN_COLOR_SPACE_H_INCLUDED #define OS_WIN_COLOR_SPACE_H_INCLUDED #pragma once #include "os/color_space.h" #ifdef __OBJC__ #include <Coco...
// LAF OS Library // Copyright (C) 2018-2021 Igara Studio S.A. // // This file is released under the terms of the MIT license. // Read LICENSE.txt for more information. #ifndef OS_WIN_COLOR_SPACE_H_INCLUDED #define OS_WIN_COLOR_SPACE_H_INCLUDED #pragma once #include "os/color_space.h" #include <vector> namespace o...
Remove macOS header from Win32 impl
Remove macOS header from Win32 impl
C
mit
aseprite/laf,aseprite/laf
4ee60d1890ae12729a9afda7e64dd2c12d48776a
src/shims.c
src/shims.c
/* * Copyright (c) 2013-2016 Apple Inc. All rights reserved. * * @APPLE_APACHE_LICENSE_HEADER_START@ * * 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/lic...
/* * Copyright (c) 2013-2016 Apple Inc. All rights reserved. * * @APPLE_APACHE_LICENSE_HEADER_START@ * * 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/lic...
Fix formatting to match libdispatch coding style.
Fix formatting to match libdispatch coding style.
C
apache-2.0
apple/swift-corelibs-libdispatch,apple/swift-corelibs-libdispatch,apple/swift-corelibs-libdispatch,apple/swift-corelibs-libdispatch
690964cb69d6675f59b1362d47e5dbaec75a4eb0
rxe.h
rxe.h
#ifndef __RXE_H #define __RXE_H #define MAXBYTES 8 #define MAXBITS 64 void encrypt(char*, char *, char *); void decrypt(char*, char *, char *); #endif /* !__RXE_H */
#ifndef __RXE_H #define __RXE_H #define MAXBYTES 8 #define MAXBITS MAXBYTES*8 void encrypt(char* in, char *out, char *key); void decrypt(char* in, char *out, char *key); #endif /* !__RXE_H */
Make the header more descriptive
Make the header more descriptive
C
mit
SaidinWoT/rx
cf3b23699094494aff3e7adc5e1542e0db87e548
board/lazor/hibernate.c
board/lazor/hibernate.c
/* Copyright 2021 The Chromium OS 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 "common.h" #include "sku.h" #include "system.h" #include "usbc_ppc.h" void board_hibernate(void) { int i; if (!board_is_clamshell()) {...
/* Copyright 2021 The Chromium OS 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 "common.h" #include "sku.h" #include "system.h" #include "usbc_ppc.h" void board_hibernate(void) { int i; if (!board_is_clamshell()) {...
Revert "limozeen: Refine the BRD_ID check"
Revert "limozeen: Refine the BRD_ID check" This reverts commit 4860dccf9a0ea7c5ecba92d984491bd7151a31f0. Reason for revert: lomozeen pvt buck ic board version change to 8. Original change's description: > limozeen: Refine the BRD_ID check > > Limozeen's BRD_ID is not monotonically increasing. > The earliest revision...
C
bsd-3-clause
coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec
e89291fb0f04e1585014b5f60446ddc49e4c3ec7
src/api/yawot/version.h
src/api/yawot/version.h
namespace yawot { /** * Return the version of the *library* as an * unsigned integer. The format is XXYYZZ * XX - major version * YY - minor version * ZZ - patch version */ unsigned int version(); }
#ifndef YAWOT_VERSION_H #define YAWOT_VERSION_H namespace yawot { /** * Return the version of the *library* as an * unsigned integer. The format is XXYYZZ * XX - major version * YY - minor version * ZZ - patch version */ unsigned int version(); } #endif /* YAWOT_VERSION_H */
Add header define block to stop multiple header file inclusion.
Add header define block to stop multiple header file inclusion.
C
apache-2.0
hsorby/original-yawot,hsorby/original-yawot,hsorby/original-yawot,hsorby/original-yawot
8c5570bf08f50b76da1038c29ddaab4c0b772997
src/streamindexer/analyzerplugin.h
src/streamindexer/analyzerplugin.h
#include "analyzerfactoryfactory.h" #ifdef STRIGI_IMPORT_API #ifdef WIN32 #define STRIGI_PLUGIN_API __declspec(dllexport) #else #define STRIGI_PLUGIN_API #endif #else #error "You should add STRIGI_IMPORT_API to the top of you plugin, you should not include this header if your code is not a plugin" #endif #def...
#include "analyzerfactoryfactory.h" #ifdef STRIGI_IMPORT_API #ifdef WIN32 #define STRIGI_PLUGIN_API __declspec(dllexport) #else #define STRIGI_PLUGIN_API #endif #else #error "You should add STRIGI_IMPORT_API to the top of you plugin, you should not include this header if your code is not a plugin" #endif #def...
Use jstreams namespace in macro definition (not everybody uses the "using" keyword.
Use jstreams namespace in macro definition (not everybody uses the "using" keyword. svn path=/trunk/playground/base/strigi/; revision=611538
C
lgpl-2.1
KDE/strigi
90b8b9aea290c07590dc662542c49dfff76dfb47
BPFoundationExtensions.h
BPFoundationExtensions.h
/* * BPFoundationExtensions.h * BPFoundation * * Created by Jon Olson on 7/9/09. * Copyright 2009 Ballistic Pigeon, LLC. All rights reserved. * */ #ifndef _BPFOUNDATION_EXTENSIONS_H_ #define _BPFOUNDATION_EXTENSIONS_H_ #import "NSArray+BPFoundationExtensions.h" #import "NSMutableArray+BPFoundationExtension...
/* * BPFoundationExtensions.h * BPFoundation * * Created by Jon Olson on 7/9/09. * Copyright 2009 Ballistic Pigeon, LLC. All rights reserved. * */ #ifndef _BPFOUNDATION_EXTENSIONS_H_ #define _BPFOUNDATION_EXTENSIONS_H_ #import "NSArray+BPFoundationExtensions.h" #import "NSMutableArray+BPFoundationExtension...
Add primitive array to library header.
Add primitive array to library header.
C
bsd-3-clause
jon/bpfoundationextensions
b597acc2dd049fd051bec2ba5217d2026b01b83c
src/math/p_invsqrt.c
src/math/p_invsqrt.c
#include <pal.h> /** * * Calculates the inverse square root of the input vector 'a'. * * @param a Pointer to input vector * * @param c Pointer to output vector * * @param n Size of 'a' and 'c' vector. * * @param p Number of processor to use (task parallelism) * * @param team Team to work w...
#include <pal.h> /** * * Calculates the inverse square root of the input vector 'a'. * * This function uses a method of computing the inverse square root * made popular by the Quake 3 source code release. Chris Lomont has * provided an exhaustive analysis here: * http://www.lomont.org/Math/Papers/2003/InvSqrt....
Implement faster inverse square root function
Implement faster inverse square root function Signed-off-by: Warren Moore <4fdbf0932cf8fc9903ee31afa97cf723d35eb3f3@warrenmoore.net>
C
apache-2.0
debug-de-su-ka/pal,eliteraspberries/pal,debug-de-su-ka/pal,Adamszk/pal3,eliteraspberries/pal,RafaelRMA/pal,RafaelRMA/pal,parallella/pal,debug-de-su-ka/pal,parallella/pal,aolofsson/pal,aolofsson/pal,olajep/pal,8l/pal,RafaelRMA/pal,mateunho/pal,parallella/pal,debug-de-su-ka/pal,mateunho/pal,mateunho/pal,mateunho/pal,para...
80c88c62ea05233e2f613542b8ce476328422364
libevmjit/CompilerHelper.h
libevmjit/CompilerHelper.h
#pragma once #include "preprocessor/llvm_includes_start.h" #include <llvm/IR/IRBuilder.h> #include "preprocessor/llvm_includes_end.h" namespace dev { namespace eth { namespace jit { class RuntimeManager; /// Base class for compiler helpers like Memory, GasMeter, etc. class CompilerHelper { protected: CompilerHelpe...
#pragma once #include "preprocessor/llvm_includes_start.h" #include <llvm/IR/IRBuilder.h> #include "preprocessor/llvm_includes_end.h" namespace dev { namespace eth { namespace jit { class RuntimeManager; /// Base class for compiler helpers like Memory, GasMeter, etc. class CompilerHelper { protected: CompilerHelpe...
Reimplement InsertPointGuard to avoid LLVM ABI incompatibility.
Reimplement InsertPointGuard to avoid LLVM ABI incompatibility. In general, the NDEBUG flag should match cpp-ethereum and LLVM builds. But this is hard to satisfy as we usually have one system-wide build of LLVM and different builds of cpp-ethereum. This ABI incompatibility hit OSX only in release builds as LLVM is bu...
C
mit
debris/evmjit,ethcore/evmjit,debris/evmjit,ethcore/evmjit
9e8f0fbbc0448faff7072b7f8fd66b031f9abc80
src/entry.h
src/entry.h
#ifndef ENTRY_H #define ENTRY_H #include <string> #include <memory> namespace diaryengine { class Entry { public: Entry(); ~Entry(); void setTitle(std::string title); std::string title(); private: struct Implementation; std::unique_ptr<Implementation> inside_; }; }...
#ifndef ENTRY_H #define ENTRY_H #include <string> #include <memory> namespace diaryengine { class Entry { public: Entry(); ~Entry(); void setTitle(std::string title); std::string title(); private: struct Implementation; std::unique_ptr<Implementation> _inside; }; }...
Rename the implementation pointer to respect naming convention
Rename the implementation pointer to respect naming convention
C
bsd-3-clause
Acce0ss/diary-engine
1ee6c2c3fea091cf61d21e190dcf195b2149bc01
src/main.c
src/main.c
/*! @file main.c @brief A simple test program for the C library code. */ #include "stdio.h" #include "verilog_parser.h" int main(int argc, char ** argv) { if(argc < 2) { printf("ERROR. Please supply at least one file path argument.\n"); return 1; } else { int F = 0; ...
/*! @file main.c @brief A simple test program for the C library code. */ #include "stdio.h" #include "verilog_parser.h" int main(int argc, char ** argv) { if(argc < 2) { printf("ERROR. Please supply at least one file path argument.\n"); return 1; } else { int F = 0; ...
Fix incorrect reporting of successful parsing. On branch master Your branch is ahead of 'github/master' by 3 commits. (use "git push" to publish your local commits)
Fix incorrect reporting of successful parsing. On branch master Your branch is ahead of 'github/master' by 3 commits. (use "git push" to publish your local commits) Changes to be committed: modified: src/main.c
C
mit
ben-marshall/verilog-parser,ben-marshall/verilog-parser,ben-marshall/verilog-parser
1a9fd1ee0be588aa465a2bc405a86bb4669e3288
src/whitgl/logging.c
src/whitgl/logging.c
#include <stdarg.h> #include <stdio.h> #include <whitgl/logging.h> #define LOG_BUFFER_MAX (256) char _buffer[LOG_BUFFER_MAX]; void whitgl_logit(const char *file, const int line, const char *str, ...) { va_list args; va_start(args, str); vsnprintf(_buffer, LOG_BUFFER_MAX, str, args); printf("%24s:%03d %s\n", fil...
#include <stdarg.h> #include <stdio.h> #include <whitgl/logging.h> #define LOG_BUFFER_MAX (256) char _buffer[LOG_BUFFER_MAX]; void whitgl_logit(const char *file, const int line, const char *str, ...) { va_list args; va_start(args, str); vsnprintf(_buffer, LOG_BUFFER_MAX, str, args); printf("%24s:%03d %s\n", fil...
Make sure stdout is flushed before trapping in panic
Make sure stdout is flushed before trapping in panic
C
mit
whitingjp/whitgl,whitingjp/whitgl,whitingjp/whitgl,whitingjp/whitgl
082299ce611b1e2878001e0daa2b67dcc01a4a77
MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalDataImport.h
MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalDataImport.h
// // NSManagedObject+JSONHelpers.h // // Created by Saul Mora on 6/28/11. // Copyright 2011 Magical Panda Software LLC. All rights reserved. // #import <CoreData/CoreData.h> extern NSString * const kMagicalRecordImportCustomDateFormatKey; extern NSString * const kMagicalRecordImportDefaultDateFormatString; extern...
// // NSManagedObject+JSONHelpers.h // // Created by Saul Mora on 6/28/11. // Copyright 2011 Magical Panda Software LLC. All rights reserved. // #import <CoreData/CoreData.h> extern NSString * const kMagicalRecordImportCustomDateFormatKey; extern NSString * const kMagicalRecordImportDefaultDateFormatString; extern...
Remove unnecessarily public method from interface
Remove unnecessarily public method from interface
C
mit
naqi/MagicalRecord,naqi/MagicalRecord
2cb62ce24b2e2ddb3bc0ddcee36eb377c1c4b083
TLLayoutTransitioning/TLLayoutTransitioning.h
TLLayoutTransitioning/TLLayoutTransitioning.h
// // TLLayoutTransitioning.h // TLLayoutTransitioning // // Created by Tim Moose on 6/29/15. // Copyright (c) 2015 Tractable Labs. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for TLLayoutTransitioning. FOUNDATION_EXPORT double TLLayoutTransitioningVersionNumber; //! Project versio...
// // TLLayoutTransitioning.h // TLLayoutTransitioning // // Created by Tim Moose on 6/29/15. // Copyright (c) 2015 Tractable Labs. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for TLLayoutTransitioning. FOUNDATION_EXPORT double TLLayoutTransitioningVersionNumber; //! Project versio...
Fix typo in umbrella header
Fix typo in umbrella header
C
mit
wtmoose/TLLayoutTransitioning
a44f98e67ef60d340e76d19e4c5a94ffb2279b0c
src/os/Linux/findself.c
src/os/Linux/findself.c
#include <unistd.h> #include <limits.h> char *os_find_self(void) { // Using PATH_MAX is generally bad, but that's what readlink() says it uses. size_t size = PATH_MAX; char *path = malloc(size); if (readlink("/proc/self/exe", path, size) == 0) { return path; } else { free(path); ...
#include <unistd.h> #include <stdlib.h> char *os_find_self(void) { // PATH_MAX (used by readlink(2)) is not necessarily available size_t size = 4096; char *path = malloc(size); size_t used = readlink("/proc/self/exe", path, size); // need strictly less than size, or else we probably truncated i...
Mend improper use of readlink(2)
Mend improper use of readlink(2) The return-code checking for readlink(2) would never succeed before this change. Also avoid referencing a PATH_MAX that may be missing.
C
mit
kulp/tenyr,kulp/tenyr,kulp/tenyr
c0bde2429f69dd551c5c5d78b43e958b4b9370c9
MGSFragariaTextViewDelegate.h
MGSFragariaTextViewDelegate.h
// // MGSFragariaTextViewDelegate.h // Fragaria // // Created by Jim Derry on 2/22/15. // // /** * This protocol defines an interface for delegates that wish * to receive notifications from Fragaria's text view. **/ #pragma mark - MGSFragariaTextViewDelegate Protocol @protocol MGSFragariaTextViewDelegate <NSOb...
// // MGSFragariaTextViewDelegate.h // Fragaria // // Created by Jim Derry on 2/22/15. // // /** * This protocol defines an interface for delegates that wish * to receive notifications from Fragaria's text view. **/ #pragma mark - MGSFragariaTextViewDelegate Protocol @protocol MGSFragariaTextViewDelegate <NSTe...
Make Fragaria's text view delegate protocol compatible with NSTextViewDelegate.
Make Fragaria's text view delegate protocol compatible with NSTextViewDelegate.
C
apache-2.0
shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,vakoc/Fragaria,bitstadium/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,vakoc/Fragaria,shysaur/Fragaria,shysaur/Fragaria,bitstadium/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Frag...
10482dab9d045436ff3b0a97d92cc60aa80386ab
factorial.c
factorial.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "weecrypt.h" void print_factorial(unsigned n); int main(void) { char buf[512]; mpi_t fib; mpi_init(fib); while (printf("Enter N: ") && fgets(buf, sizeof(buf), stdin)) { unsigned n = (unsigned)strtoul(buf, NULL, 10); if (!n) break; ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "weecrypt.h" void print_factorial(unsigned n); int main(void) { char buf[512]; mpi_t fib; mpi_init(fib); while (printf("Enter N: ") && fgets(buf, sizeof(buf), stdin)) { unsigned n = (unsigned)strtoul(buf, NULL, 10); if (!n) break; ...
Print N before computing F(N)
Print N before computing F(N)
C
bsd-2-clause
fmela/weecrypt,fmela/weecrypt
43a0a428cd1d3a14cb110149c1e7207cd3362c7c
DocFormats/DFTypes.h
DocFormats/DFTypes.h
// Copyright 2012-2014 UX Productivity Pty Ltd // // 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 ...
// Copyright 2012-2014 UX Productivity Pty Ltd // // 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 ...
Include windows.h (indirectly) in all files
Win32: Include windows.h (indirectly) in all files
C
apache-2.0
corinthia/corinthia-docformats,apache/incubator-corinthia,apache/incubator-corinthia,apache/incubator-corinthia,corinthia/corinthia-docformats,corinthia/corinthia-docformats,apache/incubator-corinthia,corinthia/corinthia-docformats,apache/incubator-corinthia,corinthia/corinthia-docformats,apache/incubator-corinthia,apa...
45211b0254ead7397297746a80c5ec93c8c88f6d
otherlibs/unix/setsid.c
otherlibs/unix/setsid.c
/**************************************************************************/ /* */ /* OCaml */ /* */ /* ...
/**************************************************************************/ /* */ /* OCaml */ /* */ /* ...
Remove use of compatibility macros in Cygwin-specific code.
Remove use of compatibility macros in Cygwin-specific code. This fixes PR #892 (commit 13945a71ed2616df9a4672cfc83f8f450ec437a8): there was one compatibility macro remaining in Cygwin-specific code.
C
lgpl-2.1
gerdstolpmann/ocaml,msprotz/ocaml,yunxing/ocaml,yunxing/ocaml,gerdstolpmann/ocaml,msprotz/ocaml,yunxing/ocaml,gerdstolpmann/ocaml,yunxing/ocaml,gerdstolpmann/ocaml,msprotz/ocaml,yunxing/ocaml,msprotz/ocaml,gerdstolpmann/ocaml,msprotz/ocaml
3ff331a9af67827d17aea5cf75e2f49ee4cb36b9
examples/test/testcases-v1/test-control-in-out.c
examples/test/testcases-v1/test-control-in-out.c
// SPDX-License-Identifier: Apache-2.0 // Copyright 2018 Eotvos Lorand University, Budapest, Hungary #include "test.h" fake_cmd_t t4p4s_testcase_test[][RTE_MAX_LCORE] = { { // table lookup hits {FAKE_PKT, 0, 1, FDATA("AA00"), 200, 123, FDATA("AA22")}, // table lookup misses {FAKE_P...
// SPDX-License-Identifier: Apache-2.0 // Copyright 2018 Eotvos Lorand University, Budapest, Hungary #include "test.h" fake_cmd_t t4p4s_testcase_test[][RTE_MAX_LCORE] = SINGLE_LCORE( // table lookup hits FAST(1, 123, INOUT("AA00", "AA22")), WAIT_FOR_CTL, WAIT_FOR_CTL, WAIT_...
Simplify and fix test case
Simplify and fix test case
C
apache-2.0
P4ELTE/t4p4s,P4ELTE/t4p4s,P4ELTE/t4p4s
11e298829b132c9f192ff754845de178d736b8b2
include/System/plugin.h
include/System/plugin.h
/* $Id$ */ /* Copyright (c) 2008-2014 Pierre Pronchery <khorben@defora.org> */ /* This file is part of DeforaOS System libSystem */ /* This program 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, vers...
/* $Id$ */ /* Copyright (c) 2008-2014 Pierre Pronchery <khorben@defora.org> */ /* This file is part of DeforaOS System libSystem */ /* This program 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, vers...
Define a standard header for plug-ins
Define a standard header for plug-ins
C
bsd-2-clause
DeforaOS/libSystem,DeforaOS/libSystem,DeforaOS/libSystem
7f06a7c107b2051ff24cc6d40bbcf024538281cb
include/perfetto/protozero/contiguous_memory_range.h
include/perfetto/protozero/contiguous_memory_range.h
/* * Copyright (C) 2017 The Android Open Source Project * * 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 app...
/* * Copyright (C) 2017 The Android Open Source Project * * 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 app...
Mark ContiguousMemoryRange::size as const. am: f2c28cd765 am: 1b5ab79b0b
Mark ContiguousMemoryRange::size as const. am: f2c28cd765 am: 1b5ab79b0b Change-Id: I7516d6d8ab17209681d1925c9c2dacde0c2fcef1
C
apache-2.0
google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto
4a243af780afa91bc45377560b469a15613a5125
primitiv/c/cuda_device.h
primitiv/c/cuda_device.h
#ifndef PRIMITIV_C_CUDA_DEVICE_H_ #define PRIMITIV_C_CUDA_DEVICE_H_ #include <primitiv/c/define.h> #include <primitiv/c/device.h> /** * Creates a new Device object. * @param device_id ID of the physical GPU. * @param device Pointer to receive a handler. * @return Status code. * @remarks The random number generat...
#ifndef PRIMITIV_C_CUDA_DEVICE_H_ #define PRIMITIV_C_CUDA_DEVICE_H_ #include <primitiv/c/define.h> #include <primitiv/c/device.h> /** * Creates a new Device object. * @param device_id ID of the physical GPU. * @param device Pointer to receive a handler. * @return Status code. * @remarks The random number generat...
Fix calling conventions around CUDA.
Fix calling conventions around CUDA.
C
apache-2.0
odashi/primitiv,odashi/primitiv,odashi/primitiv
f7b356f345a1b91410181d228855552ec0431c76
Framework/MZFormSheetPresentationControllerFramework.h
Framework/MZFormSheetPresentationControllerFramework.h
// // MZFormSheetPresentationControllerFramework.h // MZFormSheetPresentationControllerFramework // #import <UIKit/UIKit.h> //! Project version number for MZFormSheetPresentation. FOUNDATION_EXPORT double MZFormSheetPresentationControllerVersionNumber; //! Project version string for MZFormSheetPresentation. FOUNDA...
// // MZFormSheetPresentationControllerFramework.h // MZFormSheetPresentationControllerFramework // #import <UIKit/UIKit.h> //! Project version number for MZFormSheetPresentation. FOUNDATION_EXPORT double MZFormSheetPresentationControllerVersionNumber; //! Project version string for MZFormSheetPresentation. FOUNDA...
Add MZBlurEffectAdapter.h to umbrella header
Add MZBlurEffectAdapter.h to umbrella header
C
mit
m1entus/MZFormSheetPresentationController,m1entus/MZFormSheetPresentationController
0e1a86e027b7c58adc7fa9082093a2e42113c2f3
WordPressCom-Stats-iOS/StatsGroup.h
WordPressCom-Stats-iOS/StatsGroup.h
#import <Foundation/Foundation.h> @interface StatsGroup : NSObject @property (nonatomic, strong) NSArray *items; // StatsItem @property (nonatomic, assign) BOOL moreItemsExist; @property (nonatomic, copy) NSString *titlePrimary; @property (nonatomic, copy) NSString *titleSecondary; @property (nonatomic, s...
#import <Foundation/Foundation.h> @interface StatsGroup : NSObject @property (nonatomic, strong) NSArray *items; // StatsItem @property (nonatomic, copy) NSString *titlePrimary; @property (nonatomic, copy) NSString *titleSecondary; @property (nonatomic, strong) NSURL *iconUrl; @end
Revert "Added moreItems boolean to data model for a group"
Revert "Added moreItems boolean to data model for a group" This reverts commit ddbdfa290670584080d841244b53d6d3ede11de3.
C
mit
wordpress-mobile/WordPressCom-Stats-iOS,wordpress-mobile/WordPressCom-Stats-iOS
09e34b78eeb6237a87b8ae5fd1860e7a550dccbd
tests/configs/config-wrapper-malloc-0-null.h
tests/configs/config-wrapper-malloc-0-null.h
/* mbedtls_config.h wrapper that forces calloc(0) to return NULL. * Used for testing. */ /* * Copyright The Mbed TLS Contributors * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * Yo...
/* mbedtls_config.h wrapper that forces calloc(0) to return NULL. * Used for testing. */ /* * Copyright The Mbed TLS Contributors * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * Yo...
Add header guard around malloc(0) returning NULL implementation
Add header guard around malloc(0) returning NULL implementation Make it safe to import the config multiple times without having multiple definition errors. (This prevents errors in the fuzzers in a later patch.) Signed-off-by: Daniel Axtens <cf1af486034ab0119a20f38a060e40da25f4cea3@axtens.net>
C
apache-2.0
Mbed-TLS/mbedtls,ARMmbed/mbedtls,Mbed-TLS/mbedtls,Mbed-TLS/mbedtls,ARMmbed/mbedtls,ARMmbed/mbedtls,Mbed-TLS/mbedtls,ARMmbed/mbedtls
a4e7d742d66ed4fa4f5d0af9c57a2e5c5026d976
content/public/browser/notification_observer.h
content/public/browser/notification_observer.h
// Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_NOTIFICATION_OBSERVER_H_ #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_OBSERVER_H_ #pragma once #include "content/common...
// Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_NOTIFICATION_OBSERVER_H_ #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_OBSERVER_H_ #pragma once #include "content/common...
Remove unnecessary constructor from NotificationObserver.
content: Remove unnecessary constructor from NotificationObserver. BUG=98716 R=jam@chromium.org Review URL: https://chromiumcodereview.appspot.com/10449076 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@139931 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
nacl-webkit/chrome_deps,krieger-od/nwjs_chromium.src,patrickm/chromium.src,mogoweb/chromium-crosswalk,dushu1203/chromium.src,jaruba/chromium.src,bright-sparks/chromium-spacewalk,mogoweb/chromium-crosswalk,timopulkkinen/BubbleFish,mohamed--abdel-maksoud/chromium.src,Fireblend/chromium-crosswalk,krieger-od/nwjs_chromium....
6f5644a98919e0583f134876de768497a769f5fe
messagebox.c
messagebox.c
#include <stdlib.h> #include <stdio.h> #include <errno.h> #include <windows.h> #define URL "https://msdn.microsoft.com/en-us/library/windows/desktop/ms645505\ (v=vs.85).aspx" #define VERSION "0.1.0" int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prevInstance, LPSTR lpCmdLine, int nShowCmd) { ...
#include <stdlib.h> #include <stdio.h> #include <errno.h> #include <windows.h> #define URL "https://msdn.microsoft.com/en-us/library/windows/desktop/ms645505\ (v=vs.85).aspx" #define VERSION "0.1.0" int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prevInstance, LPSTR lpCmdLine, int nCmdShow) { ...
Rename WinMain argument nShowCmd "nCmdShow"
Rename WinMain argument nShowCmd "nCmdShow"
C
mit
dbohdan/messagebox,dbohdan/messagebox
54c1def2b9395c3f159df69d826832352168d837
src/hello.c
src/hello.c
/* * Challenger 1P Hello World Program for cc65. */ #include <conio.h> #define VIDEO_RAM_START ((char *) 0xd000) int main() { static const char hello_world[] = "Hello world!"; int scrpos; const char *cp; clrscr(); for (cp = hello_world, scrpos = 0x083; *cp; scrpos += 1, cp +...
/* * Challenger 1P Hello World Program for cc65. */ #include <conio.h> #define VIDEO_RAM_START ((char *) 0xd000) int main() { static const char hello_world[] = "Hello world!\n"; const char *cp; unsigned int i; clrscr(); for (cp = hello_world; *cp; cp += 1) { cp...
Replace direct video memory access with cputc() for character output.
Replace direct video memory access with cputc() for character output.
C
mit
smuehlst/c1pctest,smuehlst/c1pctest
ff54c764470857acc39c47da7c2adcecf09865f8
examples/complex_struct.c
examples/complex_struct.c
#include <stdio.h> typedef struct { int *x; int **y; } inner ; typedef struct { int *g; inner in[3]; } outer; int *ep; int main(int argc, char *argv[]) { outer o; int z = 5; int zzz; printf("%d\n" , z); ep = &z; o.in[2].x = ep; *o.in[2].x = 3; printf("%d\n" , z);...
#include <stdio.h> typedef struct { int *x; int **y; } inner ; typedef struct { int *g; inner in[3]; } outer; int *ep; int main(int argc, char *argv[]) { outer o; int z = 5; int zzz; printf("%d\n" , z); ep = &z; o.in[2].x = ep; *(o.in[2].x) = 3; printf("%d\n" , z...
Add parentheses to make example clearer.
Add parentheses to make example clearer.
C
mit
plast-lab/cclyzer,plast-lab/llvm-datalog
a8dcf158b8f6a62e65c8c5fc9b066be8c53260fb
Plugins/Displays/Bezel/GrowlBezelWindowView.h
Plugins/Displays/Bezel/GrowlBezelWindowView.h
// // GrowlBezelWindowView.h // Display Plugins // // Created by Jorge Salvador Caffarena on 09/09/04. // Copyright 2004 Jorge Salvador Caffarena. All rights reserved. // #import <Cocoa/Cocoa.h> #import "GrowlNotificationView.h" @interface GrowlBezelWindowView : GrowlNotificationView { NSImage *icon; NSString...
// // GrowlBezelWindowView.h // Display Plugins // // Created by Jorge Salvador Caffarena on 09/09/04. // Copyright 2004 Jorge Salvador Caffarena. All rights reserved. // #import <Cocoa/Cocoa.h> #import "GrowlNotificationView.h" @interface GrowlBezelWindowView : GrowlNotificationView { NSImage *icon; NSString...
Remove duplicate members so this compiles again
Remove duplicate members so this compiles again
C
bsd-3-clause
an0nym0u5/growl,Shalaco/shalzers-growl,SalrJupiter/growl,chashion/growl,an0nym0u5/growl,nagyistoce/growl,ylian/growl,ylian/growl,SalrJupiter/growl,chashion/growl,coltonfisher/coltonfisher-growl,ylian/growl,nochkin/growl,CarlosCD/growl,coltonfisher/coltonfisher-growl,timbck2/growl,nagyistoce/growl,nkhorman/archive-growl...
d91dc98abb3ebda043eb97d554fe79e83320e9e2
libopenspotify/sp_user.c
libopenspotify/sp_user.c
#include <spotify/api.h> #include "debug.h" #include "sp_opaque.h" SP_LIBEXPORT(const char *) sp_user_canonical_name(sp_user *user) { DSFYDEBUG("FIXME: Not yet implemented"); return "not-yet-implemented"; } SP_LIBEXPORT(const char *) sp_user_display_name(sp_user *user) { DSFYDEBUG("FIXME: Not yet implemented");...
#include <spotify/api.h> #include "debug.h" #include "sp_opaque.h" SP_LIBEXPORT(const char *) sp_user_canonical_name(sp_user *user) { DSFYDEBUG("FIXME: Not yet implemented\n"); return "not-yet-implemented"; } SP_LIBEXPORT(const char *) sp_user_display_name(sp_user *user) { DSFYDEBUG("FIXME: Not yet implemented\...
Add missing newlines to DSFYDEBUG() calls
Add missing newlines to DSFYDEBUG() calls
C
bsd-2-clause
noahwilliamsson/openspotify,noahwilliamsson/openspotify
2ed55f8d7eef0709bf1c96356d98605dd28ce442
machine/include/config.h
machine/include/config.h
#ifndef KERN_CONFIG #define KERN_CONFIG #define NUM_STACK_PAGES 2 #define MAX_AMOUNT_OF_CONTEXTS 32 #define NUM_FDS 32 // The trampoline must be mapped at the same vaddr for both the kernel and // the userspace processes. The page is mapped to the last VPN slot available // Sv39 has 39bit adresses: 2^39 - PAGESIZE =...
#ifndef KERN_CONFIG #define KERN_CONFIG #define NUM_STACK_PAGES 2 #define MAX_AMOUNT_OF_CONTEXTS 32 #define NUM_FDS 32 // The trampoline must be mapped at the same vaddr for both the kernel and // the userspace processes. The page is mapped to the last VPN slot available // Sv39 has 39bit adresses: 2^39 - PAGESIZE =...
Fix trap trampoline virtual address
Fix trap trampoline virtual address [skip ci] We want to map the trap trampoline to the highest possible virtual address, i.e. the last PTE possible. However, Sv39 specifies that bits 39-63 must reflect bit 38's state lest the CPU raises a page fault.
C
bsd-2-clause
cksystemsteaching/selfie,ChristianMoesl/selfie,cksystemsteaching/selfie,ChristianMoesl/selfie,cksystemsteaching/selfie
97d015ba572002c65fab1d4d8256678a9ff7d841
elang/base/zone_vector.h
elang/base/zone_vector.h
// Copyright 2014 Project Vogue. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ELANG_BASE_ZONE_VECTOR_H_ #define ELANG_BASE_ZONE_VECTOR_H_ #include <vector> #include "elang/base/zone.h" #include "elang/base/zone_allocator.h" name...
// Copyright 2014 Project Vogue. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ELANG_BASE_ZONE_VECTOR_H_ #define ELANG_BASE_ZONE_VECTOR_H_ #include <vector> #include "elang/base/zone.h" #include "elang/base/zone_allocator.h" name...
Make |ZoneVector| constructor to take const reference.
elang/base: Make |ZoneVector| constructor to take const reference.
C
apache-2.0
eval1749/elang,eval1749/elang,eval1749/elang,eval1749/elang,eval1749/elang