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
d3fabf05ee40f4a75d71aa7496819b75171d4c95
src/command1.c
src/command1.c
#include <stdio.h> #include <string.h> #include <stdbool.h> #include <unistd.h> #include "firebase.h" #include "serial.h" #include "gpio.h" #define _USE_SERIAL_ #ifdef _USE_SERIAL_ void (*send_command)(bool, int) = send_command_serial; void (*init_sender)() = init_sender_serial; #else void (*send_command)(bool, ...
#include <stdio.h> #include <string.h> #include <stdbool.h> #include <unistd.h> #include "firebase.h" #include "serial.h" #include "gpio.h" bool useSerial = true; void init_sender() { if (useSerial) { init_sender_serial(); } else { init_sender_gpio(); } } void send_command(bool isOn, int device) { i...
Switch to runtime library choice instead of compile time.
Switch to runtime library choice instead of compile time.
C
mit
maciel310/command1-openwrt,maciel310/command1-openwrt
f536368be8729154db369cc785fd5477e42c950e
test/FrontendC/wchar-const.c
test/FrontendC/wchar-const.c
// RUN: %llvmgcc -S %s -o - | grep {constant \\\[18 x} | grep { 84, } // This should pass for any endianness combination of host and target. #include <ctype.h> extern void foo(const wchar_t* p); int main (int argc, const char * argv[]) { foo(L"This is some text"); return 0; }
// RUN: %llvmgcc -S %s -o - | grep {constant \\\[18 x} | grep { 84, } // This should pass for any endianness combination of host and target. #include <wchar.h> extern void foo(const wchar_t* p); int main (int argc, const char * argv[]) { foo(L"This is some text"); return 0; }
Use wchar.h to get wchar_t, not ctype.h.
Use wchar.h to get wchar_t, not ctype.h. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@78703 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/ll...
6b57b159709dcb4d53e64738f2d1f73b36e41601
drivers/scsi/qla4xxx/ql4_version.h
drivers/scsi/qla4xxx/ql4_version.h
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2010 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.02.00-k4"
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2010 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.02.00-k5"
Update driver version to 5.02.00-k5
[SCSI] qla4xxx: Update driver version to 5.02.00-k5 Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com> Signed-off-by: Ravi Anand <399b6871085291e2c1578e38a71f59e8d20fafc0@qlogic.com> Signed-off-by: James Bottomley <407b36959ca09543ccda8f8e06721c791bc53435@suse.de>
C
mit
KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_k...
0eebf9b5d2da61f84cddd0ec2bb41be93f8fc82b
arch/powerpc/include/asm/swab.h
arch/powerpc/include/asm/swab.h
/* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ #ifndef _ASM_POWERPC_SWAB_H #define _ASM_POWERPC_SWAB_H #inc...
/* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ #ifndef _ASM_POWERPC_SWAB_H #define _ASM_POWERPC_SWAB_H #inc...
Remove unused st_le*() and ld_le* functions
powerpc: Remove unused st_le*() and ld_le* functions The powerpc specific st_le*() and ld_le*() functions in arch/powerpc/asm/swab.h no longer have any users. They are also misleadingly named, since they always byteswap, even on a little-endian host. This patch removes them. Signed-off-by: David Gibson <aa743a0aaec...
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs
20fd5a0c28f49618218d3c8d43c742fbab68edf0
src/host/os_rmdir.c
src/host/os_rmdir.c
/** * \file os_rmdir.c * \brief Remove a subdirectory. * \author Copyright (c) 2002-2008 Jason Perkins and the Premake project */ #include <stdlib.h> #include "premake.h" int os_rmdir(lua_State* L) { int z; const char* path = luaL_checkstring(L, 1); #if PLATFORM_WINDOWS z = RemoveDirectory(path); #else z...
/** * \file os_rmdir.c * \brief Remove a subdirectory. * \author Copyright (c) 2002-2013 Jason Perkins and the Premake project */ #include <stdlib.h> #include "premake.h" int os_rmdir(lua_State* L) { int z; const char* path = luaL_checkstring(L, 1); #if PLATFORM_WINDOWS z = RemoveDirectory(path); #else z...
Fix error result handling in os.rmdir()
Fix error result handling in os.rmdir()
C
bsd-3-clause
premake/premake-4.x,soundsrc/premake-stable,ryanjmulder/premake-4.x,lizh06/premake-4.x,ryanjmulder/premake-4.x,soundsrc/premake-stable,premake/premake-4.x,lizh06/premake-4.x,premake/premake-4.x,soundsrc/premake-stable,ryanjmulder/premake-4.x,premake/premake-4.x,soundsrc/premake-stable,lizh06/premake-4.x,lizh06/premake-...
98997692a6a8bf1ae6bbe15dd18ec4e27e0e6fcf
risky/risky.h
risky/risky.h
#ifndef SAXBOPHONE_RISKY_RISKY_H #define SAXBOPHONE_RISKY_RISKY_H #include <stdint.h> #ifdef __cplusplus extern "C"{ #endif typedef struct version_t { uint8_t major; uint8_t minor; uint8_t patch; } version_t; extern const version_t VERSION; #ifdef __cplusplus } // extern "C" #endif // end of header f...
#ifndef SAXBOPHONE_RISKY_RISKY_H #define SAXBOPHONE_RISKY_RISKY_H #include <stdint.h> #ifdef __cplusplus extern "C"{ #endif // struct for representing version of RISKY typedef struct version_t { uint8_t major; uint8_t minor; uint8_t patch; } version_t; // enum for storing information about the error st...
Add a function return status enum
Add a function return status enum
C
mpl-2.0
saxbophone/risky
ed9f4938ae6215f20ff31d4b44545a8c0efe859f
KSPTableSection.h
KSPTableSection.h
// // KPTableSection.h // KSPFetchedResultsController // // Created by Konstantin Pavlikhin on 05.09.14. // Copyright (c) 2015 Konstantin Pavlikhin. All rights reserved. // #import <Foundation/Foundation.h> // * * *. @class NSManagedObject; // * * *. @interface KSPTableSection : NSObject - (nullable instancet...
// // KPTableSection.h // KSPFetchedResultsController // // Created by Konstantin Pavlikhin on 05.09.14. // Copyright (c) 2015 Konstantin Pavlikhin. All rights reserved. // #import <Foundation/Foundation.h> // * * *. @class NSManagedObject; // * * *. @interface KSPTableSection : NSObject - (nullable instancet...
Add a missing 'nonatomic' keyword in a property declaration.
Add a missing 'nonatomic' keyword in a property declaration.
C
mit
konstantinpavlikhin/KSPFetchedResultsController
bd0737eb713fae5ca536488b0b6c327f71cf6cf0
You-DataStore/datastore.h
You-DataStore/datastore.h
#pragma once #ifndef YOU_DATASTORE_DATASTORE_H_ #define YOU_DATASTORE_DATASTORE_H_ #include <memory> #include "task_typedefs.h" #include "transaction.h" namespace You { namespace DataStore { namespace UnitTests {} class DataStore { public: Transaction && begin(); static DataStore& get(); // Modifying methods v...
#pragma once #ifndef YOU_DATASTORE_DATASTORE_H_ #define YOU_DATASTORE_DATASTORE_H_ #include <stack> #include <memory> #include "task_typedefs.h" #include "transaction.h" namespace You { namespace DataStore { namespace UnitTests {} class DataStore { public: Transaction && begin(); static DataStore& get(); // Mod...
Add member variable: transaction stack
Add member variable: transaction stack
C
mit
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main
54fb750d8389febff3fa254c4dd5d815b7a60f69
Nimble/Nimble.h
Nimble/Nimble.h
#import <Foundation/Foundation.h> FOUNDATION_EXPORT double NimbleVersionNumber; FOUNDATION_EXPORT const unsigned char NimbleVersionString[];
#import <Foundation/Foundation.h> FOUNDATION_EXPORT double NimbleVersionNumber; FOUNDATION_EXPORT const unsigned char NimbleVersionString[]; #import "DSL.h" #import "NMBExceptionCapture.h"
Add Objective-C headers to umbrella header to make project compile
Add Objective-C headers to umbrella header to make project compile
C
apache-2.0
DanielAsher/Nimble,AnthonyMDev/Nimble,abbeycode/Nimble,AnthonyMDev/Nimble,twobitlabs/Nimble,twobitlabs/Nimble,abbeycode/Nimble,feinstruktur/Nimble,phatblat/Nimble,AnthonyMDev/Nimble,Quick/Nimble,ashfurrow/Nimble,DanielAsher/Nimble,feinstruktur/Nimble,DanielAsher/Nimble,ashfurrow/Nimble,jeffh/Nimble,abbeycode/Nimble,mis...
19b1e3ebe513855cae870da9a2133f99e1bb14b8
src/includepriv/xmmspriv/xmms_collsync.h
src/includepriv/xmmspriv/xmms_collsync.h
/* XMMS2 - X Music Multiplexer System * Copyright (C) 2003-2009 XMMS2 Team * * PLUGINS ARE NOT CONSIDERED TO BE DERIVED WORK !!! * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundat...
/* XMMS2 - X Music Multiplexer System * Copyright (C) 2003-2009 XMMS2 Team * * PLUGINS ARE NOT CONSIDERED TO BE DERIVED WORK !!! * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundat...
Make function declarations proper prototypes in collsync.h
OTHER: Make function declarations proper prototypes in collsync.h
C
lgpl-2.1
theefer/xmms2,six600110/xmms2,six600110/xmms2,mantaraya36/xmms2-mantaraya36,mantaraya36/xmms2-mantaraya36,chrippa/xmms2,dreamerc/xmms2,six600110/xmms2,dreamerc/xmms2,theefer/xmms2,chrippa/xmms2,krad-radio/xmms2-krad,xmms2/xmms2-stable,krad-radio/xmms2-krad,dreamerc/xmms2,six600110/xmms2,xmms2/xmms2-stable,dreamerc/xmms...
a615df7468af8315894a91bd5758699abbfcc97c
src/Mapper1.h
src/Mapper1.h
#ifndef MAPPER_1_H #define MAPPER_1_H #include <Mapper.h> enum PrgMode { PRG_32KB, FIX_FIRST_16KB, FIX_LAST_16KB, }; enum ChrMode { CHR_8KB, CHR_4KB, }; class Mapper1: public Mapper { public: uint8_t readPrg(uint16_t addr); void writePrg(uint16_t addr, uint8_t value); uint8_t readChr...
#ifndef MAPPER_1_H #define MAPPER_1_H #include <Mapper.h> enum PrgMode { PRG_32KB, FIX_FIRST_16KB, FIX_LAST_16KB, }; enum ChrMode { CHR_8KB, CHR_4KB, }; class Mapper1: public Mapper { public: uint8_t readPrg(uint16_t addr); void writePrg(uint16_t addr, uint8_t value); uint8_t readChr...
Update mapper 1 default mapping on boot
Update mapper 1 default mapping on boot
C
mit
scottjcrouch/ScootNES,scottjcrouch/ScootNES,scottjcrouch/ScootNES
63b675bb73dc94a45c6049795cebd34ae0c66185
ash/shell/example_factory.h
ash/shell/example_factory.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 ASH_SHELL_EXAMPLE_FACTORY_H_ #define ASH_SHELL_EXAMPLE_FACTORY_H_ #pragma once namespace app_list { class AppListModel; class AppListViewDele...
// 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 ASH_SHELL_EXAMPLE_FACTORY_H_ #define ASH_SHELL_EXAMPLE_FACTORY_H_ #pragma once namespace app_list { class AppListViewDelegate; } namespace v...
Remove unused declaration of BuildAppListModel() function.
ash: Remove unused declaration of BuildAppListModel() function. R=xiyuan@chromium.org TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/10377097 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@136437 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
Jonekee/chromium.src,chuan9/chromium-crosswalk,ondra-novak/chromium.src,mogoweb/chromium-crosswalk,ChromiumWebApps/chromium,markYoungH/chromium.src,mohamed--abdel-maksoud/chromium.src,jaruba/chromium.src,dushu1203/chromium.src,M4sse/chromium.src,junmin-zhu/chromium-rivertrail,dednal/chromium.src,anirudhSK/chromium,Jone...
053a858efa46c9ab86363b271374ec02ad2af753
arch/powerpc/lib/code-patching.c
arch/powerpc/lib/code-patching.c
/* * Copyright 2008 Michael Ellerman, IBM Corporation. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ ...
/* * Copyright 2008 Michael Ellerman, IBM Corporation. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ ...
Make create_branch() return errors if the branch target is too large
powerpc: Make create_branch() return errors if the branch target is too large If you pass a target value to create_branch() which is more than 32MB - 4, or - 32MB away from the branch site, then it's impossible to create an immediate branch. The current code doesn't check, which will lead to us creating a branch to s...
C
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,Krist...
0a203a4ce1787acb49db6df8f5c064e9243db130
arch/x86_64/kernel/bugs.c
arch/x86_64/kernel/bugs.c
/* * arch/x86_64/kernel/bugs.c * * Copyright (C) 1994 Linus Torvalds * Copyright (C) 2000 SuSE */ #include <linux/kernel.h> #include <linux/init.h> #include <asm/alternative.h> #include <asm/processor.h> void __init check_bugs(void) { identify_cpu(&boot_cpu_data); mtrr_bp_init(); #if !defined(CONFIG_SMP) ...
/* * arch/x86_64/kernel/bugs.c * * Copyright (C) 1994 Linus Torvalds * Copyright (C) 2000 SuSE */ #include <linux/kernel.h> #include <linux/init.h> #include <asm/alternative.h> #include <asm/processor.h> #include <asm/mtrr.h> void __init check_bugs(void) { identify_cpu(&boot_cpu_data); mtrr_bp_init(); #if...
Add asm/mtrr.h include for some builds
x86_64: Add asm/mtrr.h include for some builds The earlier change to call the bp mtrr init from bugs.c broke on some configurations due to missing includes. Noticed by "Avuton Olrich" <avuton@gmail.com> Signed-off-by: Andi Kleen <0474aee45985f5ae829f53849df476200e876990@suse.de> Signed-off-by: Linus Torvalds <69652c...
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,Krist...
5f28897d2827a924b746c4d85e35cf85810b8951
drivers/scsi/qla4xxx/ql4_version.h
drivers/scsi/qla4xxx/ql4_version.h
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2012 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.03.00-k7"
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2012 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.03.00-k8"
Update driver version to 5.03.00-k8
[SCSI] qla4xxx: Update driver version to 5.03.00-k8 Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com> Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
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,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_k...
5524470b2cc0a73bb3422b3bcb0749df8653f210
ann.c
ann.c
#include <stdio.h> #define INPUTS 3 #define HIDDEN 5 #define OUTPUTS 2 #define ROWS 5 typedef struct { double input[HIDDEN][INPUTS]; double hidden[ROWS - 3][HIDDEN][HIDDEN]; double output[OUTPUTS][HIDDEN]; } Links; typedef struct { int input[INPUTS]; int hidden[ROWS - 3][HIDDEN]; int output[O...
#include <stdio.h> #define INPUTS 3 #define HIDDEN 5 #define OUTPUTS 2 #define ROWS 5 typedef struct { double input[HIDDEN][INPUTS]; double hidden[ROWS - 3][HIDDEN][HIDDEN]; double output[OUTPUTS][HIDDEN]; } Links; typedef struct { int input[INPUTS]; int hidden[ROWS - 2][HIDDEN]; int output[O...
Fix number of hidden rows in Neurons struct
Fix number of hidden rows in Neurons struct
C
mit
tysonzero/c-ann
24e67da465596d90e2af1865631fc2736c385e14
mudlib/mud/home/Game/lib/action.c
mudlib/mud/home/Game/lib/action.c
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2013 Raymond Jennings * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundati...
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2013 Raymond Jennings * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundati...
Make emit explicit inherit for now
Make emit explicit inherit for now
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
1ab47cc1ffa4acaf69f8f7e0ddb104874f74aaec
AutoPkgr/Utility/LGHTTPRequest.h
AutoPkgr/Utility/LGHTTPRequest.h
// // LGHTTPRequest.h // AutoPkgr // // Created by Eldon Ahrold on 8/9/14. // Copyright 2014-2015 The Linde Group, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // h...
// // LGHTTPRequest.h // AutoPkgr // // Created by Eldon Ahrold on 8/9/14. // Copyright 2014-2015 The Linde Group, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // h...
Remove unused method from header.
Remove unused method from header.
C
apache-2.0
ftiff/autopkgr,ftiff/autopkgr,lindegroup/autopkgr,lindegroup/autopkgr,ftiff/autopkgr,HyppHere/autopkgr,lindegroup/autopkgr,HyppHere/autopkgr,lindegroup/autopkgr,HyppHere/autopkgr,lindegroup/autopkgr
43d3a4627e2db021b0195c101f69d2f61836313a
libswfdec/swfdec_file_reference_list.c
libswfdec/swfdec_file_reference_list.c
/* Swfdec * Copyright (C) 2007 Pekka Lampila <pekka.lampila@iki.fi> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any la...
/* Swfdec * Copyright (C) 2007 Pekka Lampila <pekka.lampila@iki.fi> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any la...
Fix stub message having a wrong name
Fix stub message having a wrong name
C
lgpl-2.1
freedesktop-unofficial-mirror/swfdec__swfdec,freedesktop-unofficial-mirror/swfdec__swfdec,freedesktop-unofficial-mirror/swfdec__swfdec,mltframework/swfdec,mltframework/swfdec
07d9b6ad059cc77b1e892cc6d992f9556a451362
interpreter/apply.h
interpreter/apply.h
/* * tré – Copyright (c) 2005–2007,2009,2012 Sven Michael Klose <pixel@copei.de> */ #ifndef TRE_APPLY_H #define TRE_APPLY_H extern treptr function_arguments (treptr); extern treptr trefuncall (treptr func, treptr args); extern treptr trebuiltin_call_compiled (void * fun, treptr args); extern bool trebuiltin_is_...
/* * tré – Copyright (c) 2005–2007,2009,2012 Sven Michael Klose <pixel@copei.de> */ #ifndef TRE_APPLY_H #define TRE_APPLY_H extern treptr function_arguments (treptr); extern treptr trefuncall (treptr func, treptr args); extern treptr trebuiltin_call_compiled (void * fun, treptr args); extern bool trebuiltin_is_...
Fix declarations for file-by-file compile.
Fix declarations for file-by-file compile.
C
mit
SvenMichaelKlose/tre,SvenMichaelKlose/tre,SvenMichaelKlose/tre
e63d952e927f0da8a29984f47a3c8d828f43d393
src/api-mock.h
src/api-mock.h
#ifndef APIMOCK_H #define APIMOCK_H #include "core/server.h" #include "core/exceptions.h" #include "http/requestdata.h" #endif
#ifndef APIMOCK_H #define APIMOCK_H #include "core/server.h" #include "core/exceptions.h" #include "http/requestdata.h" #include "http/requestdata.h" #include "http/statuscodes.h" #endif
Include request data and status codes
Include request data and status codes
C
mit
Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock
c218da07d8d0178d66620c0778d846f439b85755
cvrp/customer.h
cvrp/customer.h
#ifndef VRPSOLVER_CUSTOMER_H #define VRPSOLVER_CUSTOMER_H #include <utility> namespace VrpSolver { class Customer { public: Customer(std::size_t id, std::size_t demand) : id_(id), demand_(demand), vertex_(std::make_pair(0, 0)) { } Customer(std::size_t id, std::size_t dema...
#ifndef VRPSOLVER_CUSTOMER_H #define VRPSOLVER_CUSTOMER_H #include <utility> namespace VrpSolver { class Customer { public: Customer(std::size_t id, std::size_t demand) : id_(id), demand_(demand), vertex_(std::make_pair(0, 0)) { } Customer(std::size_t id, std::size_t dema...
Add operator== and != to Customer class
Add operator== and != to Customer class 顧客の同値性は顧客番号のみに依存するようにした 顧客番号は同じだが、需要や座標が異なる顧客は存在しないと 考えたからである.
C
mit
U-MA/cvrp,U-MA/cvrp
2ae3a03e0b8085434177658c7b880f2aa58e0368
grantlee_core_library/template.h
grantlee_core_library/template.h
/* Copyright (c) 2009 Stephen Kelly <steveire@gmail.com> */ #ifndef TEMPLATE_H #define TEMPLATE_H #include "context.h" #include "node.h" #include "grantlee_export.h" class GRANTLEE_EXPORT Template //: public QObject { // Q_OBJECT public: Template(const QString &templateString, QStringList dirs ); QStrin...
/* Copyright (c) 2009 Stephen Kelly <steveire@gmail.com> */ #ifndef TEMPLATE_H #define TEMPLATE_H #include "context.h" #include "node.h" #include "grantlee_export.h" class GRANTLEE_EXPORT Template //: public QObject { // Q_OBJECT public: Template(const QString &templateString, QStringList dirs ); QStrin...
Make the TemplateLoader constructor private for the Singleton pattern.
Make the TemplateLoader constructor private for the Singleton pattern.
C
lgpl-2.1
simonwagner/grantlee,simonwagner/grantlee,simonwagner/grantlee,simonwagner/grantlee,cutelyst/grantlee,cutelyst/grantlee,cutelyst/grantlee,cutelyst/grantlee,simonwagner/grantlee,cutelyst/grantlee,simonwagner/grantlee
a506cf5cc7fe032824c0f52fde755a497749f9aa
test/Driver/ios-version-min.c
test/Driver/ios-version-min.c
// REQUIRES: x86-registered-target // REQUIRES: arm-registered-target // RUN: %clang -target i386-apple-darwin10 -miphonesimulator-version-min=7.0 -arch i386 -S -o - %s | FileCheck %s // RUN: %clang -target i386-apple-darwin10 -miphoneos-version-min=7.0 -arch armv7s -S -o - %s | FileCheck %s int main() { return 0; } /...
// REQUIRES: x86-registered-target // REQUIRES: arm-registered-target // RUN: %clang -target i386-apple-darwin10 -miphonesimulator-version-min=7.0 -arch i386 -S -o - %s | FileCheck %s // RUN: %clang -target armv7s-apple-darwin10 -miphoneos-version-min=7.0 -arch armv7s -S -o - %s | FileCheck %s int main() { return 0; }...
Fix the test added in r240710.
Fix the test added in r240710. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@240718 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-cl...
f1dc24d53e9e91cf795f05751eeb7e220c7c15e1
include/asm-arm/arch-ebsa110/uncompress.h
include/asm-arm/arch-ebsa110/uncompress.h
/* * linux/include/asm-arm/arch-ebsa110/uncompress.h * * Copyright (C) 1996,1997,1998 Russell King * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <linux/seria...
/* * linux/include/asm-arm/arch-ebsa110/uncompress.h * * Copyright (C) 1996,1997,1998 Russell King * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <linux/seria...
Fix incorrect serial port address
[ARM] ebsa110: Fix incorrect serial port address Signed-off-by: Russell King <f6aa0246ff943bfa8602cdf60d40c481b38ed232@arm.linux.org.uk>
C
mit
KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,Krist...
fe82904d985794cb4e3b2704ffe472fe503c6ea4
testmud/mud/home/Test/initd.c
testmud/mud/home/Test/initd.c
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2012 Raymond Jennings * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundati...
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2012 Raymond Jennings * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundati...
Make test subsystem load itself properly
Make test subsystem load itself properly
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
a17484601e97ba856c8130d2d98a7055c0fd5f8c
src/Core/Command/CommandFactory.h
src/Core/Command/CommandFactory.h
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2012 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software")...
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2012 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software")...
Remove nonstandard enum forward decl.
Remove nonstandard enum forward decl.
C
mit
moritzdannhauer/SCIRunGUIPrototype,jcollfont/SCIRun,collint8/SCIRun,ajanson/SCIRun,jessdtate/SCIRun,collint8/SCIRun,jcollfont/SCIRun,jcollfont/SCIRun,collint8/SCIRun,ajanson/SCIRun,jessdtate/SCIRun,jessdtate/SCIRun,jcollfont/SCIRun,jcollfont/SCIRun,moritzdannhauer/SCIRunGUIPrototype,moritzdannhauer/SCIRunGUIPrototype,c...
f57b70c85808c0946e63d87f7947fb12d60fe23a
ext/pdfium_ruby/pdfium_ruby.h
ext/pdfium_ruby/pdfium_ruby.h
extern "C" { #include "ruby.h" } void Define_Document(); void Define_Page(); void Define_PageSet();
#ifndef __PDFIUM_RUBY_H__ #define __PDFIUM_RUBY_H__ extern "C" { #include "ruby.h" } // Inspired by https://github.com/jasonroelofs/rice/blob/1740a6d12c99fce8c21eda3c5385738318ab9172/rice/detail/ruby.hpp#L33-L37 // Casts C functions into a type that C++ is happy calling extern "C" typedef VALUE (*CPP_RUBY_METHOD_FU...
Create a type to cast Ruby's C functions to a thing C++ is happy with.
Create a type to cast Ruby's C functions to a thing C++ is happy with.
C
mit
documentcloud/pdfshaver,documentcloud/pdfshaver,documentcloud/pdfshaver
9d0b2a96595333aef5c4dd7ab0f15d9c663aee2a
test2/casts/rm_qual.c
test2/casts/rm_qual.c
// RUN: %check %s struct A { int i; }; int f(const void *p) { struct A *a = p; // CHECK: warning: implicit cast removes qualifiers (const) struct A *b = (struct A *)p; // CHECK: !/warning:.*cast removes qualifiers/ (void)a; (void)b; }
// RUN: %check %s struct A { int i; }; void take(void *); int f(const void *p) { struct A *a = p; // CHECK: warning: implicit cast removes qualifiers (const) struct A *b = (struct A *)p; // CHECK: !/warning:.*cast removes qualifiers/ (void)a; (void)b; const char c = 5; take(&c); // CHECK: warning: implicit ...
Add another case to qualifier-removal test
Add another case to qualifier-removal test
C
mit
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
1de801a7120e0e8a2c7614265880452a20a38a29
test/Driver/clang-g-opts.c
test/Driver/clang-g-opts.c
// RUN: %clang -S -v -o %t %s 2>&1 | not grep -w -- -g // RUN: %clang -S -v -o %t %s -g 2>&1 | grep -w -- -g // RUN: %clang -S -v -o %t %s -g0 2>&1 | not grep -w -- -g // RUN: %clang -S -v -o %t %s -g -g0 2>&1 | not grep -w -- -g // RUN: %clang -S -v -o %t %s -g0 -g 2>&1 | grep -w -- -g
// RUN: %clang -S -v -o %t %s 2>&1 | FileCheck %s // CHECK-NOT: -g // RUN: %clang -S -v -o %t %s -g 2>&1 | FileCheck %s // CHECK: -g // RUN: %clang -S -v -o %t %s -g0 2>&1 | FileCheck %s // CHECK-NOT: -g // RUN: %clang -S -v -o %t %s -g -g0 2>&1 | FileCheck %s // CHECK-NOT: -g // RUN: %clang -S -v -o ...
Move a non portable test to FileCheck, from Jonathan Gray!
Move a non portable test to FileCheck, from Jonathan Gray! git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@155874 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
183498dc7eee80c5bc80262588e7675959400a26
include/slang/util/Enum.h
include/slang/util/Enum.h
//------------------------------------------------------------------------------ // Enum.h // Various enum utilities. // // File is under the MIT license; see LICENSE for details. //------------------------------------------------------------------------------ #pragma once #define UTIL_ENUM_ELEMENT(x) x, #define UTIL_...
//------------------------------------------------------------------------------ // Enum.h // Various enum utilities. // // File is under the MIT license; see LICENSE for details. //------------------------------------------------------------------------------ #pragma once #define UTIL_ENUM_ELEMENT(x) x, #define UTIL_...
Work around more GCC nonsense
Work around more GCC nonsense
C
mit
MikePopoloski/slang,MikePopoloski/slang
281bb6d66dd267368ce2bcb235b8aae24dfc17df
include/gpu/gl/SkMesaGLContext.h
include/gpu/gl/SkMesaGLContext.h
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkMesaGLContext_DEFINED #define SkMesaGLContext_DEFINED #include "SkGLContext.h" #if SK_MESA class SkMesaGLContext : public SkGLContext { private: typedef intpt...
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkMesaGLContext_DEFINED #define SkMesaGLContext_DEFINED #include "SkGLContext.h" #if SK_MESA class SkMesaGLContext : public SkGLContext { private: typedef intpt...
Fix undefined GLint in Mac builds
Fix undefined GLint in Mac builds git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@3736 2bbb7eff-a529-9590-31e7-b0007b416f81
C
bsd-3-clause
metajack/skia,Cue/skia,Cue/skia,Cue/skia,Cue/skia,metajack/skia,mrobinson/skia,metajack/skia,metajack/skia,mrobinson/skia,mrobinson/skia,mrobinson/skia,mrobinson/skia
d2a0f73278eca431ec8af9e28ebf3f534c325b8e
include/error.h
include/error.h
#ifndef CPR_ERROR_H #define CPR_ERROR_H #include <string> #include "cprtypes.h" #include "defines.h" namespace cpr { enum class ErrorCode { OK = 0, CONNECTION_FAILURE, EMPTY_RESPONSE, HOST_RESOLUTION_FAILURE, INTERNAL_ERROR, INVALID_URL_FORMAT, NETWORK_RECEIVE_ERROR, NETWORK_SEND_FAI...
#ifndef CPR_ERROR_H #define CPR_ERROR_H #include <string> #include "cprtypes.h" #include "defines.h" namespace cpr { enum class ErrorCode { OK = 0, CONNECTION_FAILURE, EMPTY_RESPONSE, HOST_RESOLUTION_FAILURE, INTERNAL_ERROR, INVALID_URL_FORMAT, NETWORK_RECEIVE_ERROR, NETWORK_SEND_FAI...
Make static member method private
Make static member method private
C
mit
msuvajac/cpr,whoshuu/cpr,whoshuu/cpr,msuvajac/cpr,SuperV1234/cpr,SuperV1234/cpr,msuvajac/cpr,whoshuu/cpr,SuperV1234/cpr
35568f5347922fbd26b25b9a3c13b4a1dbfda1f5
ios/RNInstabugSDK.h
ios/RNInstabugSDK.h
// // RNInstabugSDK.h // RNInstabugSDK // // Created by Mark Miyashita on 10/11/16. // Copyright © 2016 Mark Miyashita. All rights reserved. // #import "RCTBridgeModule.h" #import "RCTConvert.h" #import "RCTUtils.h" @interface RNInstabugSDK : NSObject <RCTBridgeModule> @end
// // RNInstabugSDK.h // RNInstabugSDK // // Created by Mark Miyashita on 10/11/16. // Copyright © 2016 Mark Miyashita. All rights reserved. // #if __has_include("RCTBridgeModule.h") #import "RCTBridgeModule.h" #import "RCTConvert.h" #import "RCTUtils.h" #else #import "React/RCTBridgeModule.h" #import "...
Update import style to add RN 40.0+ compatibility
Update import style to add RN 40.0+ compatibility
C
mit
negativetwelve/react-native-instabug-sdk,negativetwelve/react-native-instabug-sdk,negativetwelve/react-native-instabug-sdk
402993af266c289f2003b2c02f74a25a9375d48b
cmd/built_in.c
cmd/built_in.c
#include <stdlib.h> #include <stdbool.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include "cmd.h" void sh_exit() { exit(0); } void sh_pid() { printf("%d\n", getpid()); } void sh_ppid() { printf("%d\n", getppid()); } void sh_cd(cmd_args_t args) { char* dir; if (args.size == 1) { dir ...
#include <stdlib.h> #include <stdbool.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include "cmd.h" void sh_exit() { exit(0); } void sh_pid() { printf("%d\n", getpid()); } void sh_ppid() { printf("%d\n", getppid()); } void sh_cd(cmd_args_t args) { char* dir; if (args.size == 1) { dir ...
Fix issue in options index.
Fix issue in options index.
C
mit
dgriffen/308-shell
e2ca3c802f97b5ee52f1d15d0e43097a5bef6187
src/OVAL/probes/unix/linux/rpm-helper.c
src/OVAL/probes/unix/linux/rpm-helper.c
/* * Copyright 2016 Red Hat Inc., Durham, North Carolina. * All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your ...
/* * Copyright 2016 Red Hat Inc., Durham, North Carolina. * All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your ...
Fix erro cb return value
probes/rpm: Fix erro cb return value We have to use RPMLOG_DEFAULT, because RPMLOG_EXIT cause exit of whole probe.
C
lgpl-2.1
redhatrises/openscap,OpenSCAP/openscap,mpreisler/openscap,jan-cerny/openscap,mpreisler/openscap,jan-cerny/openscap,ybznek/openscap,jan-cerny/openscap,ybznek/openscap,jan-cerny/openscap,OpenSCAP/openscap,Hexadorsimal/openscap,jan-cerny/openscap,OpenSCAP/openscap,ybznek/openscap,jan-cerny/openscap,Hexadorsimal/openscap,m...
1f32a4a1cc5942bcc8d99f006ee20e54ca67e220
include/utils.h
include/utils.h
/** * utils.h * * Copyright (C) 2017 Nickolas Burr <nickolasburr@gmail.com> */ #ifndef GIT_STASHD_UTILS_H #define GIT_STASHD_UTILS_H #include <dirent.h> #include <sys/stat.h> #include <sys/types.h> #include "common.h" #include "signals.h" #ifdef __APPLE__ #include <limits.h> #else #include <linux/limits.h> #endi...
/** * utils.h * * Copyright (C) 2017 Nickolas Burr <nickolasburr@gmail.com> */ #ifndef GIT_STASHD_UTILS_H #define GIT_STASHD_UTILS_H #include <dirent.h> #include <sys/stat.h> #include <sys/types.h> #include "common.h" #include "signals.h" #ifdef __APPLE__ #include <limits.h> #else #include <linux/limits.h> #endi...
Update get_dir, get_file decls, add get_pipe decl
Update get_dir, get_file decls, add get_pipe decl
C
mit
nickolasburr/git-stashd,nickolasburr/git-stashd,nickolasburr/git-stashd
fdf89bc553c5fe5f9900658e8526cd398165d2f3
src/condor_includes/_condor_fix_types.h
src/condor_includes/_condor_fix_types.h
#ifndef FIX_TYPES_H #define FIX_TYPES_H #include <sys/types.h> /* The system include file defines this in terms of bzero(), but ANSI says we should use memset(). */ #if defined(OSF1) #undef FD_ZERO #define FD_ZERO(p) memset((char *)(p), 0, sizeof(*(p))) #endif /* Various non-POSIX conforming files which depend o...
#ifndef FIX_TYPES_H #define FIX_TYPES_H // OSF/1 has this as an "unsigned long", but this is incorrect. It // is used by lseek(), and must be able to hold negative values. #if defined(OSF1) #define off_t _hide_off_t #endif #include <sys/types.h> #if defined(OSF1) #undef off_t typedef long off_t; #endif /* The sy...
Fix up definition of off_t for DecAlpha OSF/1 v1.3.
Fix up definition of off_t for DecAlpha OSF/1 v1.3.
C
apache-2.0
bbockelm/condor-network-accounting,htcondor/htcondor,zhangzhehust/htcondor,djw8605/condor,htcondor/htcondor,neurodebian/htcondor,clalancette/condor-dcloud,neurodebian/htcondor,mambelli/osg-bosco-marco,clalancette/condor-dcloud,mambelli/osg-bosco-marco,djw8605/htcondor,neurodebian/htcondor,zhangzhehust/htcondor,clalance...
ba541d36f6891892efc3f17773ff2395bb97df44
test/CodeGen/x86_32-inline-asm.c
test/CodeGen/x86_32-inline-asm.c
// RUN: %clang_cc1 -triple i386-apple-darwin9 -verify %s // <rdar://problem/12415959> typedef unsigned int u_int32_t; typedef u_int32_t uint32_t; typedef unsigned long long u_int64_t; typedef u_int64_t uint64_t; int main () { uint32_t msr = 0x8b; uint64_t val = 0; __asm__ volatile("wrmsr" : ...
// RUN: %clang_cc1 -triple i386-apple-darwin9 -verify %s // <rdar://problem/12415959> typedef unsigned int u_int32_t; typedef u_int32_t uint32_t; typedef unsigned long long u_int64_t; typedef u_int64_t uint64_t; int main () { // Error out if size is > 32-bits. uint32_t msr = 0x8b; uint64_t val = 0; __asm__ v...
Update testcase to show that we don't emit an error for sizes <= 32-bits.
Update testcase to show that we don't emit an error for sizes <= 32-bits. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@167748 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl...
3c62ef3d6cd198b345da0d0381b1145dfdb05cf1
mod_uuid.c
mod_uuid.c
#include <uuid/uuid.h> #include "httpd.h" #include "http_config.h" static int generate_uuid(request_rec *r) { char *uuid_str; uuid_t uuid; uuid_generate_random(uuid); uuid_str = (char *)apr_palloc(r->pool, sizeof(char)*37); uuid_unparse_lower(uuid, uuid_str); apr_table_setn(r->subprocess_env, "UUID", uuid...
#include <uuid/uuid.h> #include "httpd.h" #include "http_config.h" #include "http_protocol.h" static int generate_uuid(request_rec *r) { char *uuid_str; uuid_t uuid; uuid_generate_random(uuid); uuid_str = (char *)apr_palloc(r->pool, sizeof(char)*37); uuid_unparse_lower(uuid, uuid_str); apr_table_setn(r->s...
Add header file for ap_hook_post_read_request to suppress compiler warnings
Add header file for ap_hook_post_read_request to suppress compiler warnings
C
apache-2.0
tomg/mod_uuid
8348847ba77a85167f591e7c97db6d205b0a3f62
sassc.c
sassc.c
#include <stdio.h> #include "libsass/sass_interface.h" int main(int argc, char** argv) { int ret; if (argc < 2) { printf("Usage: sassc [INPUT FILE]\n"); return 0; } struct sass_file_context* ctx = sass_new_file_context(); ctx->options.include_paths = ""; ctx->options.image_path = "images"; ctx->options.ou...
#include <stdio.h> #include "libsass/sass_interface.h" int main(int argc, char** argv) { int ret; if (argc < 2) { printf("Usage: sassc [INPUT FILE]\n"); return 0; } struct sass_file_context* ctx = sass_new_file_context(); ctx->options.include_paths = ""; ctx->options.image_path = "images"; ctx->options.ou...
Print error messages to stderr.
Print error messages to stderr.
C
mit
saper/sassc,am11/sassc,am11/sassc,djam90/sassc,rightisleft/sassc,saper/sassc,am11/sassc,saper/sassc,rightisleft/sassc,djam90/sassc,rightisleft/sassc,djam90/sassc
8a886e7b508f52754ef1dcd49208903ba9e54040
rgmanager/src/clulib/gettid.c
rgmanager/src/clulib/gettid.c
#include <sys/types.h> #include <linux/unistd.h> #include <gettid.h> #include <errno.h> /* Patch from Adam Conrad / Ubuntu: Don't use _syscall macro */ #ifdef __NR_gettid pid_t gettid (void) { return syscall(__NR_gettid); } #else #warn "gettid not available -- substituting with pthread_self()" #include <pthread.h>...
#include <sys/types.h> #include <sys/syscall.h> #include <linux/unistd.h> #include <gettid.h> #include <errno.h> #include <unistd.h> /* Patch from Adam Conrad / Ubuntu: Don't use _syscall macro */ #ifdef __NR_gettid pid_t gettid (void) { return syscall(__NR_gettid); } #else #warn "gettid not available -- substituti...
Patch from Fabio Massimo Di Nitto: Fix includes
Patch from Fabio Massimo Di Nitto: Fix includes
C
lgpl-2.1
stevenraspudic/resource-agents,asp24/resource-agents,stevenraspudic/resource-agents,asp24/resource-agents,asp24/resource-agents,stevenraspudic/resource-agents
661bc252516e229e3f3769956b1b16c8d40a95eb
tests/execute/0110-typedefcast.c
tests/execute/0110-typedefcast.c
typedef int myint; myint x = (myint)1;
typedef int myint; myint x = (myint)1; int main(void) { return x-1; }
Fix test added in 6fe29dd
[tests] Fix test added in 6fe29dd Tests must have a main function which returns 0.
C
isc
k0gaMSX/scc,k0gaMSX/scc,k0gaMSX/scc
250473c59441260055fa47fb04a2f2dd911d7cf6
rov_simulator/src/simulator.h
rov_simulator/src/simulator.h
#ifndef SIMULATOR_H #define SIMULATOR_H #include "ros/ros.h" #include "dynamics.h" #include "sensor_msgs/Imu.h" #include "sensor_msgs/FluidPressure.h" #include "nav_msgs/Odometry.h" #include "geometry_msgs/Wrench.h" #include "geometry_msgs/Pose.h" #include "vortex_msgs/Float64ArrayStamped.h" #include </usr/include/arm...
#ifndef SIMULATOR_H #define SIMULATOR_H #include "ros/ros.h" #include "dynamics.h" #include "sensor_msgs/Imu.h" #include "sensor_msgs/FluidPressure.h" #include "nav_msgs/Odometry.h" #include "geometry_msgs/Wrench.h" #include "geometry_msgs/Pose.h" #include "vortex_msgs/Float64ArrayStamped.h" #include </usr/include/arm...
Change any tabs to spaces
Change any tabs to spaces
C
mit
vortexntnu/simulator
047fa49e35d9dda7a987468b86d60ec8bca4b33a
tests/infiniteTranslationLoop.c
tests/infiniteTranslationLoop.c
/* liblouis Braille Translation and Back-Translation Library Copyright (C) 2014 Mesar Hameed <mesar.hameed@gmail.com> Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is...
/* liblouis Braille Translation and Back-Translation Library Copyright (C) 2014 Mesar Hameed <mesar.hameed@gmail.com> Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is...
Fix a path in the translation loop test
Fix a path in the translation loop test
C
lgpl-2.1
vsmontalvao/liblouis,vsmontalvao/liblouis,hammera/liblouis,liblouis/liblouis,hammera/liblouis,BueVest/liblouis,BueVest/liblouis,BueVest/liblouis,hammera/liblouis,IndexBraille/liblouis,IndexBraille/liblouis,liblouis/liblouis,IndexBraille/liblouis,BueVest/liblouis,hammera/liblouis,BueVest/liblouis,vsmontalvao/liblouis,li...
7dbdf1bce8b4948d979a847315b8b9308c943e4c
examples/example_01.c
examples/example_01.c
#include <stdio.h> #include <datastructs.h> int main(){ typedef struct user_data { char name[100]; char email[100]; } user_data; user_data a = {"John Doe", "john.doe@mail_server.com"}; user_data b = {"Jack Smith", "jack.smith@mail_server.com"}; user_data c = {"Jane Plain", "ja...
#include <stdio.h> #include <datastructs.h> int main(){ typedef struct user_data { char name[100]; char email[100]; } user_data; user_data a = {"John Doe", "john.doe@mail_server.com"}; user_data b = {"Jack Smith", "jack.smith@mail_server.com"}; user_data c = {"Jane Plain", "ja...
Use ds_linked_list_length() instead of the size struct member.
Examples: Use ds_linked_list_length() instead of the size struct member.
C
bsd-3-clause
cyberpython/datastructs,cyberpython/datastructs
59c8aaac3425108e3137677863cc8cee6c84e20b
src/compat.h
src/compat.h
#ifndef COMPAT_H #define COMPAT_H #include "lua.h" #include "lauxlib.h" #if LUA_VERSION_NUM==501 void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup); void *luaL_testudata ( lua_State *L, int arg, const char *tname); #endif #endif
#ifndef COMPAT_H #define COMPAT_H #include "lua.h" #include "lauxlib.h" #if LUA_VERSION_NUM==501 #define luaL_setfuncs socket_setfuncs #define luaL_testudata socket_testudata void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup); void *luaL_testudata ( lua_State *L, int arg, const char *tname); #endif #endif...
Fix static linking problem with LuaJIT
Fix static linking problem with LuaJIT LuaJIT and LuaSocket both define new Lua APIs from Lua 5.2 (in particular `luaL_setfuncs` and `luaL_testudata`). When linking both statically, the one definition rule strikes and linking fails. This commit fixes the issue by renaming the LuaSocket versions of those functions behi...
C
mit
diegonehab/LuaSocket,diegonehab/LuaSocket,diegonehab/LuaSocket
3f6405a7ebcb804e88aba4be5a68c767690c4a72
test/test_app.c
test/test_app.c
#include "test.h" #include "app.h" TEST(app_new) { app_t * app = app_new(); assert(app->running == 0); assert(app->io == 0); app_free(app); } TEST(current_app_set_to) { app_t * app = app_new(); assert(current_app == 0); current_app_set_to(app); assert(current_app == app); app_free(app); ...
#include <string.h> #include "test.h" #include "io.h" #include "app.h" TEST(app_new) { app_t * app = app_new(); assert(app->running == 0); assert(app->io == 0); app_free(app); } TEST(current_app_set_to) { app_t * app = app_new(); assert(current_app == 0); current_app_set_to(app); assert(curr...
Add a failing test for app_parse_command_line
Add a failing test for app_parse_command_line
C
mit
gsamokovarov/chip8.c,gsamokovarov/chip8.c
bf8777dc307e2938a7d7e02ff761580b9917f529
src/core/lib/gprpp/optional.h
src/core/lib/gprpp/optional.h
/* * * Copyright 2019 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
/* * * Copyright 2019 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
Add const qualifiers to member methods in Optional
Add const qualifiers to member methods in Optional
C
apache-2.0
jboeuf/grpc,ejona86/grpc,stanley-cheung/grpc,ctiller/grpc,sreecha/grpc,ctiller/grpc,nicolasnoble/grpc,sreecha/grpc,ctiller/grpc,donnadionne/grpc,donnadionne/grpc,sreecha/grpc,ctiller/grpc,ctiller/grpc,pszemus/grpc,muxi/grpc,jtattermusch/grpc,vjpai/grpc,jboeuf/grpc,vjpai/grpc,grpc/grpc,firebase/grpc,sreecha/grpc,jtatter...
669ec93efe7eafc246bccb0b0768ad0952b3b8c4
include/myr/compiler.h
include/myr/compiler.h
/* * Myr C Utils library * * Written 2015 by Rickard Närström <rickard@narstrom.se> * * To the extent possible under law, the author(s) have dedicated all copyright * and related and neighboring rights to this software to the public domain worldwide. * This software is distributed without any warranty. * * You...
/* * Myr C Utils library * * Written 2015 by Rickard Närström <rickard@narstrom.se> * * To the extent possible under law, the author(s) have dedicated all copyright * and related and neighboring rights to this software to the public domain worldwide. * This software is distributed without any warranty. * * You...
Use standard C11 noreturn if avaiable.
Use standard C11 noreturn if avaiable.
C
unlicense
riccetn/myr-cutils
5e6b1eab679452b24578e6f6c9594ac3b88b3b64
ObjectDoc/ObjectDoc.h
ObjectDoc/ObjectDoc.h
/* * Author: Landon Fuller <landonf@plausible.coop> * * Copyright (c) 2013 Plausible Labs Cooperative, Inc. * All rights reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software wi...
/* * Author: Landon Fuller <landonf@plausible.coop> * * Copyright (c) 2013 Plausible Labs Cooperative, Inc. * All rights reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software wi...
Use PLClang.h in umbrella header
Use PLClang.h in umbrella header This includes the error codes and error domain.
C
mit
landonf/objectdoc,landonf/objectdoc
48eda9d8410404db35d51a3807ae8ac8a52d7261
Source/UnrealCV/Private/libs/cnpy.h
Source/UnrealCV/Private/libs/cnpy.h
// Copyright (C) 2011 Carl Rogers // Released under MIT License // Simplied by Weichao Qiu (qiuwch@gmail.com) from https://github.com/rogersce/cnpy #pragma once #include <vector> namespace cnpy { template<typename T> std::vector<char> create_npy_header(const T* data, const std::vector<int> shape); template<typena...
// Copyright (C) 2011 Carl Rogers // Released under MIT License // Simplied by Weichao Qiu (qiuwch@gmail.com) from https://github.com/rogersce/cnpy #pragma once #include <vector> #include <string> namespace cnpy { template<typename T> std::vector<char> create_npy_header(const T* data, const std::vector<int> shape);...
Include <string> to fix a compile issue in 4.12 and 4.13.
Include <string> to fix a compile issue in 4.12 and 4.13.
C
mit
unrealcv/unrealcv,unrealcv/unrealcv,unrealcv/unrealcv,unrealcv/unrealcv,unrealcv/unrealcv
248c9fb0418e071786b2b91992b5fe711d79f021
drivers/scsi/qla4xxx/ql4_version.h
drivers/scsi/qla4xxx/ql4_version.h
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2013 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.04.00-k5"
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2013 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.04.00-k6"
Update driver version to 5.04.00-k6
qla4xxx: Update driver version to 5.04.00-k6 Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com> Reviewed-by: Mike Christie <6fe105eefab41990d7ec714c6c25ade3095cdb48@cs.wisc.edu> Signed-off-by: Christoph Hellwig <923f7720577207a44b32e59bbfbea59d27f1ae8e@lst.de>
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs
e36d31edd6020989bdb39f82dea54ef0e747e994
test/Driver/systemz-march.c
test/Driver/systemz-march.c
// Check that -march works for all supported targets. // RUN: not %clang -target s390x -S -emit-llvm -march=z9 %s -o - 2>&1 | FileCheck --check-prefix=CHECK-Z9 %s // RUN: %clang -target s390x -S -emit-llvm -march=z10 %s // RUN: %clang -target s390x -S -emit-llvm -march=z196 %s // RUN: %clang -target s390x -S -emit-llv...
// Check that -march works for all supported targets. // RUN: not %clang -target s390x -S -emit-llvm -march=z9 %s -o - 2>&1 | FileCheck --check-prefix=CHECK-Z9 %s // RUN: %clang -target s390x -### -S -emit-llvm -march=z10 %s 2>&1 | FileCheck --check-prefix=CHECK-Z10 %s // RUN: %clang -target s390x -### -S -emit-llvm -...
Fix test to actually check things.
Fix test to actually check things. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@186701 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
659d917acd2f5da137e506784acc3862225e7dad
Classes/NAPlaybackIndicatorView.h
Classes/NAPlaybackIndicatorView.h
// // NAPlaybackIndicatorView.h // PlaybackIndicator // // Created by Yuji Nakayama on 1/27/14. // Copyright (c) 2014 Yuji Nakayama. All rights reserved. // #import <UIKit/UIKit.h> @interface NAPlaybackIndicatorView : UIView - (void)startAnimating; - (void)stopAnimating; @property (nonatomic, readonly, getter=i...
// // NAPlaybackIndicatorView.h // PlaybackIndicator // // Created by Yuji Nakayama on 1/27/14. // Copyright (c) 2014 Yuji Nakayama. All rights reserved. // #import <UIKit/UIKit.h> @interface NAPlaybackIndicatorView : UIView /** Starts the oscillating animation of the bars. */ - (void)startAnimating; /** Sto...
Add documentation comments for method
Add documentation comments for method
C
mit
yujinakayama/NAKPlaybackIndicatorView
ddb5650f2820329f818cc57859610db1ccc45434
src/hid2hci.c
src/hid2hci.c
#include <stdio.h> #include <libusb-1.0/libusb.h> int main (int argc, char ** argv) { char data[] = { 0x01, 0x05, 0, 0, 0, 0, 0, 0, 0 }; libusb_init(NULL); libusb_device_handle* h = libusb_open_device_with_vid_pid(NULL, 0x0a12, 0x100b); if (!h) { printf("No device in HID mode found\n"); } else { libu...
#include <stdio.h> #include <libusb-1.0/libusb.h> int main (int argc, char ** argv) { char data[] = { 0x01, 0x05, 0, 0, 0, 0, 0, 0, 0 }; libusb_init(NULL); /* using the default pskeys, devices from the factory are a12:100d in HID mode */ libusb_device_handle* h = libusb_open_device_with_vid_pid(NULL, 0x0a12, 0...
Fix the constants so it will work correctly. Also add the possibility of a different Product ID so the dongles can be set to a mode that Windows machines with the CSR drivers won't switch them to HCI mode.
Fix the constants so it will work correctly. Also add the possibility of a different Product ID so the dongles can be set to a mode that Windows machines with the CSR drivers won't switch them to HCI mode.
C
mit
wmertens/textblade-dongler,wmertens/textblade-dongler
a5091550c09ca51c39ea0f51fc3bc519ca45afac
test/test_c_bindings/test_c_bindings.c
test/test_c_bindings/test_c_bindings.c
/* ** Author(s): ** - Cedric GESTES <gestes@aldebaran-robotics.com> ** ** Copyright (C) 2010 Aldebaran Robotics */ #include <qi/qi.h> #include <stdio.h> int main(int argc, char **argv) { qi_client_t *client = qi_client_create("simplecli", argv[1]); qi_message_t *message = qi_message_create(); qi_message_t *re...
/* ** Author(s): ** - Cedric GESTES <gestes@aldebaran-robotics.com> ** ** Copyright (C) 2010 Aldebaran Robotics */ #include <qi/qi.h> #include <stdio.h> int main(int argc, char **argv) { char *result; qi_client_t *client = qi_client_create("simplecli", argv[1]); qi_message_t *message = qi_message_create(); ...
Make c bindings compile on strict compilers
Make c bindings compile on strict compilers
C
bsd-3-clause
aldebaran/libqi,aldebaran/libqi,aldebaran/libqi-java,vbarbaresi/libqi,bsautron/libqi,aldebaran/libqi-java,aldebaran/libqi,aldebaran/libqi-java
f3cfdda7d9e7e0421189713262283d8bc379695f
Classes/SloppySwiperViewControllerProtocol.h
Classes/SloppySwiperViewControllerProtocol.h
// // SloppySwiperViewControllerProtocol.h // Pods // // Created by Yu Sugawara on 7/8/15. // // #import <UIKit/UIKit.h> @protocol SloppySwiperViewControllerProtocol <NSObject> - (UIBarStyle)ssw_navigationBarStyle; - (UIColor *)ssw_navigationBarColor; - (UIColor *)ssw_navigationBarItemColor; - (UIImage *)ssw_navi...
// // SloppySwiperViewControllerProtocol.h // Pods // // Created by Yu Sugawara on 7/8/15. // // #import <UIKit/UIKit.h> @protocol SloppySwiperViewControllerProtocol <NSObject> - (UIBarStyle)ssw_navigationBarStyle; - (UIColor *)ssw_navigationBarColor; - (UIColor *)ssw_navigationBarItemColor; @optional - (UIImage...
Change the ssw_navigationBarShadowImage to the @optional
Change the ssw_navigationBarShadowImage to the @optional
C
mit
yusuga/SloppySwiper
050be884232cb5f96248ff753b5b4e321f5a8e94
lib/Common/ChakraCoreVersion.h
lib/Common/ChakraCoreVersion.h
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
Update master branch version to 1.3
Update master branch version to 1.3
C
mit
Microsoft/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore
b662250670d69e6b1a45aae8de67f6eb48d37b61
src/worker/windows/subscription.h
src/worker/windows/subscription.h
#ifndef SUBSCRIPTION_H #define SUBSCRIPTION_H #include <memory> #include <sstream> #include <string> #include "../../message.h" #include "../../result.h" class WindowsWorkerPlatform; class Subscription { public: Subscription(ChannelID channel, HANDLE root, const std::wstring &path, bool recursive, ...
#ifndef SUBSCRIPTION_H #define SUBSCRIPTION_H #include <memory> #include <sstream> #include <string> #include "../../message.h" #include "../../result.h" class WindowsWorkerPlatform; class Subscription { public: Subscription(ChannelID channel, HANDLE root, const std::wstring &path, bool recursive, ...
Return const & from getters
Return const & from getters
C
mit
atom/watcher,atom/watcher,atom/watcher,atom/watcher,atom/watcher
622c8f06325d89bdda593499323b4c056c699914
7segments.c
7segments.c
#define L for(char*c=a[1],y;*c;)printf("%c%c%c%c",(y="w$]m.k{%\177o"[*c++-48])&u/4?33:32,y&u?95:32,y&u/2?33:32,*c?32:10);u*=8; main(int u,char**a){u=1;L;L;L}
#define L for(char*c=a[1],y;*c;)printf("%c%c%c%c",(y="w$]m.k{%o"[*c++-48])&u/4?33:32,y&u?95:32,y&u/2?33:32,*c?32:10);u*=8; main(int u,char**a){u=1;L;L;L}
Use version with replaced \177
Use version with replaced \177
C
mit
McZonk/7segements,McZonk/7segements
ecefcf452f3941ca117f52da61f8a8cc79a1b573
7segments.c
7segments.c
main(int u,char**a){for(;u<129;u*=8){for(char*c=a[1],y;*c;)printf("%c%c%c ",(y="$ֶ<&"[*c++-48])&u/2?33:32,y&u?95:32,y&u/4?33:32);puts("");}}
main(int u,char**a){for(;u<129;u*=8)for(char*c=a[1],y;*c;)printf("%c%c%c%c",(y="$ֶ<&"[*c++-48])&u/2?33:32,y&u?95:32,y&u/4?33:32,*c?32:10);}
Use printf without puts again to save one more byte
Use printf without puts again to save one more byte
C
mit
McZonk/7segements,McZonk/7segements
af63433f531926143f4dfce63f25ee3b09e81cc3
FreshAir/RZFReleaseNotes.h
FreshAir/RZFReleaseNotes.h
// // RZFReleaseNotes.h // FreshAir // // Created by Brian King on 1/26/16. // Copyright © 2016 Raizlabs. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @class RZFRelease, RZFFeature; @interface RZFReleaseNotes : NSObject + (instancetype)releaseNotesWithURL:(NSURL *)URL error...
// // RZFReleaseNotes.h // FreshAir // // Created by Brian King on 1/26/16. // Copyright © 2016 Raizlabs. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @class RZFRelease, RZFFeature; @interface RZFReleaseNotes : NSObject + (instancetype)releaseNotesWithURL:(NSURL *)URL error...
Move nullable to the property attributes
Move nullable to the property attributes
C
mit
Raizlabs/FreshAir,Raizlabs/FreshAir
b35873a38c56dad6c5ff2d982e5ad0ad3532253b
pt_error.c
pt_error.c
#include <assert.h> #include <string.h> #include <errno.h> #include "pt_error.h" static struct { const enum pt_error err; const char* const str; } pt_error_map[PT_LAST] = { { PT_SUCCESS, "Success" }, }; static char* pt_strncpy(char* dst, const char* src, size_t n) { if(n > 0) { int len = strnlen(src, n); (...
#include <assert.h> #include <string.h> #include <errno.h> #include "pt_error.h" static struct { const enum pt_error err; const char* const str; } pt_error_map[PT_LAST] = { { PT_SUCCESS, "Success" }, }; static char* pt_strncpy(char* dst, const char* src, size_t n) { if(n > 0) { int len = strnlen(src, n); (...
Change to a more standard errno in pt_strerror_r()
Change to a more standard errno in pt_strerror_r() Reformat pt_error.c
C
apache-2.0
byannoni/qthreads
a2620cb6d12c43535149bf2976c3d6c54f1c7e38
file4.c
file4.c
file4.c - r1 Test checkin in master1-updated Test checkin in master2
file4.c - r1 Test checkin in master1-updated - updated2 Test checkin in master2 Test checkin in master3
Test commit in feature branch
Test commit in feature branch
C
apache-2.0
shahedmolla/test
35947b1d45a735b3fc4ed110302ea31e7850e625
Pod/Classes/BFTaskCenter.h
Pod/Classes/BFTaskCenter.h
// // BFTaskCenter.h // Pods // // Created by Superbil on 2015/8/22. // // #import "Bolts.h" @interface BFTaskCenter : NSObject /*! A block that can act as a continuation for a task. */ typedef void (^BFTaskCenterBlock)(BFTask * _Nonnull task); + (nonnull instancetype)defaultCenter; - (instancetype)initWithEx...
// // BFTaskCenter.h // Pods // // Created by Superbil on 2015/8/22. // // #import "Bolts.h" @interface BFTaskCenter : NSObject /*! A block that can act as a continuation for a task. */ typedef void (^BFTaskCenterBlock)(BFTask * _Nonnull task); + (nullable instancetype)defaultCenter; - (nullable instancetype)...
Fix compiler warning for nullable check
Fix compiler warning for nullable check
C
mit
Superbil/BFTaskCenter,Superbil/BFTaskCenter
3df46ce3e3b10cd37565184b8c78de882194da56
cpp/turbodbc/Library/turbodbc/type_code.h
cpp/turbodbc/Library/turbodbc/type_code.h
#pragma once namespace turbodbc { /** * This enumeration assigns integer values to certain database types */ enum class type_code : int { boolean = 0, ///< boolean type integer = 10, ///< integer types floating_point = 20, ///< floating point types string = 30, ///< string types timestamp = 40, ///< ti...
#pragma once namespace turbodbc { /** * This enumeration assigns integer values to certain database types */ enum class type_code : int { boolean = 0, ///< boolean type integer = 10, ///< integer types floating_point = 20, ///< floating point types string = 30, ///< string typ...
Add unicode to supported type codes
Add unicode to supported type codes
C
mit
blue-yonder/turbodbc,blue-yonder/turbodbc,blue-yonder/turbodbc,blue-yonder/turbodbc
d82bf2d86f3e4185b3815e56f23ca0e07c15541d
test/CodeGen/stdcall-fastcall.c
test/CodeGen/stdcall-fastcall.c
// RUN: %clang_cc1 -emit-llvm < %s | grep 'fastcallcc' | count 6 // RUN: %clang_cc1 -emit-llvm < %s | grep 'stdcallcc' | count 6 void __attribute__((fastcall)) f1(void); void __attribute__((stdcall)) f2(void); void __attribute__((fastcall)) f3(void) { f1(); } void __attribute__((stdcall)) f4(void) { f2(); } // PR...
// RUN: %clang_cc1 -emit-llvm < %s | FileCheck %s void __attribute__((fastcall)) f1(void); void __attribute__((stdcall)) f2(void); void __attribute__((fastcall)) f3(void) { // CHECK: define x86_fastcallcc void @f3() f1(); // CHECK: call x86_fastcallcc void @f1() } void __attribute__((stdcall)) f4(void) { // CHECK: d...
Convert this test to FileCheck instead of grepping LLVM IR.
Convert this test to FileCheck instead of grepping LLVM IR. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@95428 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
738a7cc75fe112630f29ed08ce68546ac1939728
server/packet/packet_entity_equipment.c
server/packet/packet_entity_equipment.c
#include "server/client.h" #include "server/packet.h" #include "blocks/items.h" void packet_send_entity_equipment(struct client *client, struct client *c, uint16_t slot, struct item *item, uint16_t damage) { bedrock_packet packet; struct item_stack stack; stack.id = item->id; stack.count = 1; stack.metadata = da...
#include "server/client.h" #include "server/packet.h" #include "blocks/items.h" void packet_send_entity_equipment(struct client *client, struct client *c, uint16_t slot, struct item *item, uint16_t damage) { bedrock_packet packet; struct item_stack stack; stack.id = item->id ? item->id : -1; stack.count = 1; sta...
Fix client crash from changing item to nothing
Fix client crash from changing item to nothing
C
bsd-2-clause
Adam-/bedrock,Adam-/bedrock
b28077d75ac2c1d016ed0be4be02d9dd3ea05fda
Apptentive/Apptentive/Misc/ApptentiveJSONSerialization.h
Apptentive/Apptentive/Misc/ApptentiveJSONSerialization.h
// // ApptentiveJSONSerialization.h // Apptentive // // Created by Andrew Wooster on 6/22/13. // Copyright (c) 2013 Apptentive, Inc. All rights reserved. // #import <Foundation/Foundation.h> extern NSInteger ApptentiveJSONDeserializationErrorCode; @interface ApptentiveJSONSerialization : NSObject + (NSData *)da...
// // ApptentiveJSONSerialization.h // Apptentive // // Created by Andrew Wooster on 6/22/13. // Copyright (c) 2013 Apptentive, Inc. All rights reserved. // #import <Foundation/Foundation.h> extern NSInteger ApptentiveJSONDeserializationErrorCode; extern NSInteger ApptentiveJSONSerializationErrorCode; @interfac...
Add serialization error code extern
Add serialization error code extern
C
bsd-3-clause
apptentive/apptentive-ios,apptentive/apptentive-ios,apptentive/apptentive-ios
6991c2dd84060f8e7375966d4e488a359b42d43a
src/AllocationPool.h
src/AllocationPool.h
#pragma once template<class T, size_t BufferSize, class StarvationCallbacks> class AllocationPool { public: ~AllocationPool() { while (!m_FreeList.empty()) { delete m_FreeList.front(); m_FreeList.pop_front(); } } T* Allocate() { if (m_FreeList.Size() <= BufferSize) { try ...
#pragma once template<class T, size_t BufferSize, class StarvationCallbacks> class AllocationPool { public: ~AllocationPool() { while (!m_FreeList.empty()) { delete m_FreeList.front(); m_FreeList.pop_front(); } } T* Allocate() { if (m_FreeList.Size() <= BufferSize) { try ...
Use placement new to initalise objects
Use placement new to initalise objects
C
apache-2.0
Tri125/MCServer,kevinr/cuberite,bendl/cuberite,Fighter19/cuberite,Fighter19/cuberite,Altenius/cuberite,electromatter/cuberite,Altenius/cuberite,zackp30/cuberite,birkett/MCServer,Howaner/MCServer,SamOatesPlugins/cuberite,ionux/MCServer,zackp30/cuberite,johnsoch/cuberite,zackp30/cuberite,nounoursheureux/MCServer,birkett/...
3c3a26b636db7c29db9746b34493bc8f389583d3
corrcheck.h
corrcheck.h
#ifndef CORRCHECK_H #define CORRCHECK_H #include <cassert> #include <cstdio> #include <cstdlib> #include <dirent.h> #include <iostream> #include <map> #include <openssl/ssl.h> #include <string> #include <sys/stat.h> #include <vector> #include "corrcheck_defines.h" #include "File.h" int create_database(const std::str...
#ifndef CORRCHECK_H #define CORRCHECK_H #include <cassert> #include <cstdio> #include <cstdlib> #include <dirent.h> #include <iostream> #include <map> #include <openssl/ssl.h> #include <string> #include <sys/stat.h> #include <vector> #include "corrcheck_defines.h" #include "File.h" /* Create a .corrcheckdb of the ...
Write more brief function descriptions.
Write more brief function descriptions.
C
mit
mdclyburn/corrcheck,mdclyburn/corrcheck
d537d6c355be1a51bbb808e9da214f5595d75f3d
ios/web/public/browser_state.h
ios/web/public/browser_state.h
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef IOS_WEB_PUBLIC_BROWSER_STATE_H_ #define IOS_WEB_PUBLIC_BROWSER_STATE_H_ #include "base/supports_user_data.h" namespace net { class URLRequestCon...
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef IOS_WEB_PUBLIC_BROWSER_STATE_H_ #define IOS_WEB_PUBLIC_BROWSER_STATE_H_ #include "base/supports_user_data.h" namespace base { class FilePath; } ...
Expand web::BrowserState to add GetPath() method
Expand web::BrowserState to add GetPath() method Add a method to web::BrowserState returning the path where the BrowserState data is stored. BUG=429756 Review URL: https://codereview.chromium.org/740353002 Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#305191}
C
bsd-3-clause
krieger-od/nwjs_chromium.src,dednal/chromium.src,markYoungH/chromium.src,Pluto-tv/chromium-crosswalk,fujunwei/chromium-crosswalk,axinging/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,ltilve/chromium,krieger-od/nwjs_chromium.src,jaruba/chromium.src,PeterWangIntel/chromium-crosswal...
410ca053a96733f7ce48010c50c91f7104967f57
includes/score.h
includes/score.h
#ifndef SCORE_H_INCLUDED #define SCORE_H_INCLUDED #define FOOD1_SCORE 15 //Titik #define FOOD2_SCORE 100 //Sedap Malam #define FOOD3_SCORE 300 //Menyan #define FOOD4_SCORE 500 //Melati #define FOOD5_SCORE 700 //Kopi Hitam typedef struct{ char *name; int score; int lives; int foodCount; pacmanController peciman; ...
#ifndef SCORE_H_INCLUDED #define SCORE_H_INCLUDED #define FOOD1_SCORE 15 //Titik #define FOOD2_SCORE 100 //Sedap Malam #define FOOD3_SCORE 300 //Menyan #define FOOD4_SCORE 500 //Melati #define FOOD5_SCORE 700 //Kopi Hitam typedef struct{ char *name; int score; int lives; int foodCount; int level; pacmanControll...
Add level field in playercontroller
Add level field in playercontroller
C
mit
syamcode/PecimenGame,syamcode/PecimenGame
0ae863aa45b829a1030a0917e7e4f8dc8274aac6
src/bitwise.h
src/bitwise.h
#pragma once #include <cstdint> inline uint16_t compose_bytes(const uint8_t low, const uint8_t high) { return (high << 8) + low; }; inline bool check_bit(const uint8_t value, int bit) { return (value & (1 << bit)) != 0; }; inline uint8_t set_bit(const uint8_t value, int bit) { return static_cast<uint8_t...
#pragma once #include <cstdint> inline uint16_t compose_bytes(const uint8_t low, const uint8_t high) { return (high << 8) + low; } inline bool check_bit(const uint8_t value, int bit) { return (value & (1 << bit)) != 0; } inline uint8_t set_bit(const uint8_t value, int bit) { return static_cast<uint8_t>(...
Remove extraneous ; on function definition
Remove extraneous ; on function definition
C
bsd-3-clause
jgilchrist/emulator,jgilchrist/emulator,jgilchrist/emulator
a64aac47da8b3bf66b2fd3cf973508a8ce7d23a8
test/CodeGen/ms-inline-asm-EVEN.c
test/CodeGen/ms-inline-asm-EVEN.c
// RUN: %clang_cc1 %s -triple i386-unknown-unknown -fasm-blocks -emit-llvm -o - | FileCheck %s // CHECK: .byte 64 // CHECK: .byte 64 // CHECK: .byte 64 // CHECK: .even void t1() { __asm { .byte 64 .byte 64 .byte 64 EVEN mov eax, ebx } }
// REQUIRES: x86-registered-target // RUN: %clang_cc1 %s -triple i386-apple-darwin10 -fasm-blocks -emit-llvm -o - | FileCheck %s // CHECK: .byte 64 // CHECK: .byte 64 // CHECK: .byte 64 // CHECK: .even void t1() { __asm { .byte 64 .byte 64 .byte 64 EVEN mov eax, ebx } }
Add support for MS 'EVEN' directive
[fixup][X86][inline-asm] Add support for MS 'EVEN' directive refining tested targets resolution, to amend failures caused by rL299454 git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@299459 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl...
5db7606fc0cc7b83c145f4d861efb0ba0ad4c2d0
src/gethost.c
src/gethost.c
#include <stdio.h> #ifdef WIN32 #include <io.h> #include <fcntl.h> #endif int gethost_main() { extern char *sccs_gethost(); char *host; #ifdef WIN32 setmode(1, _O_BINARY); #endif host = sccs_gethost(); if ((host == NULL) || (*host == '\0')) return (1); printf("%s\n", host); return (0); }
#include <stdio.h> #ifdef WIN32 #include <io.h> #include <fcntl.h> #endif int gethost_main() { extern char *sccs_gethost(); char *host; #ifdef WIN32 setmode(1, _O_BINARY); #endif host = sccs_gethost(); if ((host == NULL) || (*host == '\0')) return (1); printf("%s\n", host); /* make isure we have a good domain...
Add two more check to x.chk_env a) make sure host name have at least one dot b) add a http test
Add two more check to x.chk_env a) make sure host name have at least one dot b) add a http test bk: 39466063LfKperUt13MbGKJrzx5juA
C
apache-2.0
bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper
f0e79447ff7242b7da56bb5c1322c83c6abce641
include/shmlog_tags.h
include/shmlog_tags.h
/* * $Id$ * * Define the tags in the shared memory in a reusable format. * Whoever includes this get to define what the SLTM macro does. * */ SLTM(Debug) SLTM(Error) SLTM(CLI) SLTM(SessionOpen) SLTM(SessionReuse) SLTM(SessionClose) SLTM(BackendOpen) SLTM(BackendXID) SLTM(BackendReuse) SLTM(BackendClose) SLTM(Htt...
/* * $Id$ * * Define the tags in the shared memory in a reusable format. * Whoever includes this get to define what the SLTM macro does. * */ SLTM(Debug) SLTM(Error) SLTM(CLI) SLTM(SessionOpen) SLTM(SessionReuse) SLTM(SessionClose) SLTM(BackendOpen) SLTM(BackendXID) SLTM(BackendReuse) SLTM(BackendClose) SLTM(Htt...
Add shmem tag for Hits
Add shmem tag for Hits git-svn-id: 2c9807fa3ff65b17195bd55dc8a6c4261e10127b@361 d4fa192b-c00b-0410-8231-f00ffab90ce4
C
bsd-2-clause
alarky/varnish-cache-doc-ja,ajasty-cavium/Varnish-Cache,chrismoulton/Varnish-Cache,alarky/varnish-cache-doc-ja,chrismoulton/Varnish-Cache,mrhmouse/Varnish-Cache,ssm/pkg-varnish,franciscovg/Varnish-Cache,franciscovg/Varnish-Cache,1HLtd/Varnish-Cache,1HLtd/Varnish-Cache,drwilco/varnish-cache-drwilco,ambernetas/varnish-ca...
bf737e99dd9fb759499919236142eb1da80cabab
includes/Rasterizer.h
includes/Rasterizer.h
#ifndef RASTERIZER_H #define RASTERIZER_H #include <string> #include "Renderer.h" class Rasterizer : public Renderer { private: const float k_a = 0.1; const RGBColor AMBIENT_COLOR = RGBColor(1.0f, 1.0f, 1.0f); public: Rasterizer(); Rasterizer(World* world, const uint16_t image_width, const uint16_t image_hei...
#ifndef RASTERIZER_H #define RASTERIZER_H #include <string> #include "Renderer.h" class Rasterizer : public Renderer { private: const float k_a = 0.1; const RGBColor AMBIENT_COLOR = RGBColor(1.0f, 1.0f, 1.0f); public: Rasterizer(); Rasterizer(World* world, const uint16_t image_width, const uint16_t image_hei...
Refactor render method to make it simpler
Refactor render method to make it simpler
C
mit
mtrebi/Rasterizer,mtrebi/Rasterizer
d94d8d1afeaecbde0ed644de30a51f19f3b170dd
examples/picovic.c
examples/picovic.c
/* shadowVIC – Copyright (c) 2015 Sven Michael Klose <pixel@hugbox.org> */ #include <stdio.h> #include "types.h" #include "config.h" #include "6502.h" #include "shadowvic.h" #include "joystick.h" #include "video.h" #include "sync.h" #define FALSE 0 #define TRUE 1 int main (int argc, char * argv[]) { struct...
/* shadowVIC – Copyright (c) 2015 Sven Michael Klose <pixel@hugbox.org> */ #include <stdio.h> #include "types.h" #include "config.h" #include "6502.h" #include "shadowvic.h" #include "joystick.h" #include "video.h" #include "sync.h" #define FALSE 0 #define TRUE 1 int main (int argc, char * argv[]) { struct...
Print welcome message with application name and newline.
Print welcome message with application name and newline.
C
mit
SvenMichaelKlose/shadowvic,SvenMichaelKlose/shadowvic
ec73e01d1ec3837eb103e408b6fdc19b58fd6787
projects/switch/mains/uart/main.c
projects/switch/mains/uart/main.c
#include "main.h" #include <msp430.h> #include "led_driver.h" int main(void) { WDTCTL = WDTPW + WDTHOLD; led_initialize((led_addresses_s*)P1IN_); P1DIR = 0x04; P1SEL = 0x06; UCA0CTL0 = 0x00; UCA0CTL1 = UCSSEL_3; UCA0BR0 = 104; UCA0BR1 = 0x00; UCA0MCTL = 0x03 << 4; set_led_color(LED_GREEN); while(...
#include "main.h" #include <msp430.h> #include "led_driver.h" void main(void) { WDTCTL = WDTPW + WDTHOLD; //Set clock to 1MHz BCSCTL1 = CALBC1_1MHZ; DCOCTL = CALDCO_1MHZ; led_initialize((led_addresses_s*)P1IN_); P1DIR |= 0x04; P1SEL |= 0x06; P1SEL2 |= 0x06; UCA0CTL0 |= 0x00; UCA0CTL1 |= UCSSEL_2; U...
Send '0x5A' across UART continuously.
Send '0x5A' across UART continuously.
C
bsd-2-clause
sep/ping-pong-platform,sep/ping-pong-platform,sep/ping-pong-platform
538fbb508663e8c091f7e129ec36a6c7e6a4f1b1
include/llvm/ADT/StringSet.h
include/llvm/ADT/StringSet.h
//===--- StringSet.h - The LLVM Compiler Driver -----------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open // Source License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===--- StringSet.h - The LLVM Compiler Driver -----------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open // Source License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Remove extra blank line and space.
Remove extra blank line and space. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@61916 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
dslab-epfl/asap,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen...
d71a3e7b93a9d7f4a4e95d40d4fc91b59afae358
src/hal/classicladder/classicladder_gtk.h
src/hal/classicladder/classicladder_gtk.h
void UpdateVScrollBar(); void save_label_comment_edited(); void refresh_label_comment( void ); void clear_label_comment(); void autorize_prevnext_buttons(int Yes); void ShowMessageBox(const char * title, const char * text, const char * button); void ShowConfirmationBoxWithChoiceOrNot(const char * title, const char * te...
void UpdateVScrollBar(); void save_label_comment_edited(); void refresh_label_comment( void ); void clear_label_comment(); void autorize_prevnext_buttons(int Yes); void ShowMessageBox(const char * title, const char * text, const char * button); void ShowConfirmationBoxWithChoiceOrNot(const char * title, const char * te...
Add a message window to display %E variable controlled errors with out grabing focus
Add a message window to display %E variable controlled errors with out grabing focus
C
lgpl-2.1
RunningLight/machinekit,Cid427/machinekit,unseenlaser/linuxcnc,RunningLight/machinekit,bobvanderlinden/machinekit,ArcEye/machinekit-testing,ikcalB/linuxcnc-mirror,bmwiedemann/linuxcnc-mirror,kinsamanka/machinekit,araisrobo/linuxcnc,kinsamanka/machinekit,cdsteinkuehler/linuxcnc,ArcEye/machinekit-testing,unseenlaser/linu...
2a63eef748fa1910eddb0b772eb24344e6705fdc
net/socket/ssl_client_socket.h
net/socket/ssl_client_socket.h
// Copyright (c) 2006-2009 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 NET_SOCKET_SSL_CLIENT_SOCKET_H_ #define NET_SOCKET_SSL_CLIENT_SOCKET_H_ #include "net/socket/client_socket.h" namespace net { class SS...
// Copyright (c) 2006-2009 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 NET_SOCKET_SSL_CLIENT_SOCKET_H_ #define NET_SOCKET_SSL_CLIENT_SOCKET_H_ #include "net/socket/client_socket.h" namespace net { class SS...
Add static function to convert NPN strings to an enum.
Add static function to convert NPN strings to an enum. http://codereview.chromium.org/487012 git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@34287 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
C
bsd-3-clause
wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser
c22a72ef4865dea9581a39c3d48dc638fe6f894a
test/python_api/hello_world/main.c
test/python_api/hello_world/main.c
#include <stdio.h> int main(int argc, char const *argv[]) { printf("Hello world.\n"); // Set break point at this line. if (argc == 1) return 0; // Waiting to be attached by the debugger, otherwise. char line[100]; while (fgets(line, sizeof(line), stdin)) { // Waiting to be attached... ...
#include <stdio.h> #if defined(__linux__) #include <sys/prctl.h> #endif int main(int argc, char const *argv[]) { #if defined(__linux__) // Immediately enable any ptracer so that we can allow the stub attach // operation to succeed. Some Linux kernels are locked down so that // only an ancestor process c...
Fix HelloWorld attach test for Linux kernels with ptrace ancestor lockdown.
Fix HelloWorld attach test for Linux kernels with ptrace ancestor lockdown. Similar to a recent test I fixed for gdb-remote attach scenarios, this fix is for Linux kernels, such as Ubuntu's stock setup on 11.04-ish and later, where ptrace starts requiring a ptracer to be an ancestor of the inferior to be ptraced. Thi...
C
apache-2.0
apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb
79be1938ba7f1d22397d24a58c4a39fe5ad13c41
modules/modinclude.h
modules/modinclude.h
#ifndef MODINCLUDE_H #define MODINCLUDE_H #include "../main.h" class ConfigReader; class ModuleInterface; // forward-declare so it can be used in modules and server #include "../connection.h" // declare other classes that use it #include "../modules.h" #include "../config.h" #include "../modules.h" #endif
#ifndef MODINCLUDE_H #define MODINCLUDE_H #include "../main.h" class ConfigReader; class ModuleInterface; // forward-declare so it can be used in modules and server #include "../connection.h" // declare other classes that use it #include "../modules.h" #include "../config.h" #endif
Remove double include of a file
Remove double include of a file
C
mit
ElementalAlchemist/RoBoBo,ElementalAlchemist/RoBoBo
c269fb2bc1bb58f91145303a4ce3a24957085b4b
lb_vector.c
lb_vector.c
#include "lb_vector.h" Vector lb_create_vector(Scalar* data, unsigned int length) { Vector v; v.data = data; v.length = length; return v; } Vector lb_allocate_vector(unsigned int length) { Scalar* ptr = (Scalar*)malloc(sizeof(Scalar) * length); return lb_create_vector(ptr, length); } // Result = Vector dot Vec...
#include <stdlib.h> #include "lb_vector.h" Vector lb_create_vector(Scalar* data, unsigned int length) { Vector v; v.data = data; v.length = length; return v; } Vector lb_allocate_vector(unsigned int length) { Scalar* ptr = (Scalar*)malloc(sizeof(Scalar) * length); return lb_create_vector(ptr, length); } // Res...
Include stdlib.h for malloc not to bail
Include stdlib.h for malloc not to bail
C
apache-2.0
frenchrd/laid-back-lapack,frenchrd/laid-back-lapack
01815d76afedad438c36cd3c8d2132e36ec02715
include/core/SkMilestone.h
include/core/SkMilestone.h
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 71 #endif
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 72 #endif
Update Skia milestone to 72
Update Skia milestone to 72 No API changes TBR=reed NOTRY=TRUE Bug: skia: Change-Id: I1ffde14bc6ebf0cf3d89735f70fb9a385b35d167 Reviewed-on: https://skia-review.googlesource.com/c/161940 Commit-Queue: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com> Reviewed-by: Heather Miller <2e22000c5d22374561fe...
C
bsd-3-clause
Hikari-no-Tenshi/android_external_skia,HalCanary/skia-hc,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,rubenvb/skia,aosp-mirror/platform_external_skia,rubenvb/skia,HalCanary/skia-hc,Hikari-no-Tenshi/android_external_skia,google/skia,HalCanary/skia-hc,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_ext...
75091bfd2394b33a259bc9ea9b48807f964a3af4
src/android/AndroidConfigurationEvent.h
src/android/AndroidConfigurationEvent.h
#ifndef _ANDROIDCONFIGURATIONEVENT_H_ #define _ANDROIDCONFIGURATIONEVENT_H_ #include <ConfigurationEvent.h> #include <android/native_window.h> class AndroidConfigurationEvent : public ConfigurationEvent { public: AndroidConfigurationEvent(double _timestamp, ANativeWindow * _window) : ConfigurationEvent(_timestamp...
#ifndef _ANDROIDCONFIGURATIONEVENT_H_ #define _ANDROIDCONFIGURATIONEVENT_H_ #include <ConfigurationEvent.h> #include <android/native_window.h> class AndroidConfigurationEvent : public ConfigurationEvent { public: AndroidConfigurationEvent(double _timestamp, ANativeWindow * _window) : ConfigurationEvent(_timestamp...
Fix AConfigurationEvent dup() return value
Fix AConfigurationEvent dup() return value
C
mit
Sometrik/framework,Sometrik/framework,Sometrik/framework
3b8868dca49ba4e317d562279d2128ed8fff9a81
src/qt/bitcoinaddressvalidator.h
src/qt/bitcoinaddressvalidator.h
#ifndef BITCOINADDRESSVALIDATOR_H #define BITCOINADDRESSVALIDATOR_H #include <QValidator> /** Base48 entry widget validator. Corrects near-miss characters and refuses characters that are no part of base48. */ class BitcoinAddressValidator : public QValidator { Q_OBJECT public: explicit BitcoinAddressVali...
#ifndef BITCOINADDRESSVALIDATOR_H #define BITCOINADDRESSVALIDATOR_H #include <QValidator> /** Base58 entry widget validator. Corrects near-miss characters and refuses characters that are not part of base58. */ class BitcoinAddressValidator : public QValidator { Q_OBJECT public: explicit BitcoinAddressVal...
Fix typo in a comment: it's base58, not base48.
Fix typo in a comment: it's base58, not base48.
C
mit
Climbee/artcoin,madman5844/poundkoin,renatolage/wallets-BRCoin,madman5844/poundkoin,kevin-cantwell/crunchcoin,goldmidas/goldmidas,vbernabe/freicoin,BenjaminsCrypto/Benjamins-1,DigitalPandacoin/pandacoin,Climbee/artcoin,kevin-cantwell/crunchcoin,dobbscoin/dobbscoin-source,therealaltcoin/altcoin,tripmode/pxlcoin,goldmida...
33ea6a02332d0944150e9445a584d6f26718509b
src/untrusted/irt/irt_private_pthread.c
src/untrusted/irt/irt_private_pthread.c
/* * Copyright (c) 2012 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <errno.h> #include <pthread.h> #include <unistd.h> #include "native_client/src/untrusted/nacl/tls.h" /* * libstdc++ makes mini...
/* * Copyright (c) 2012 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <errno.h> #include <pthread.h> #include <unistd.h> #include "native_client/src/untrusted/nacl/tls.h" /* * libstdc++ makes mini...
Increase the number of pthread keys available to the IRT
Increase the number of pthread keys available to the IRT The Mojo EDK uses an additional key for thread-local storage and is now necessary to bring up IPC in Chrome. This is apparently enough to push us over the 16 key limit in some cases. Doubling to 32 to leave some room for further expansion. BUG=https://code.goo...
C
bsd-3-clause
sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client
d849a52cc61e6183554cdbfe49d458e6bcbd79e8
ports/gtk-webkit/next-gtk-webkit.c
ports/gtk-webkit/next-gtk-webkit.c
/* Copyright © 2018 Atlas Engineer LLC. Use of this file is governed by the license that can be found in LICENSE. */ #include <gtk/gtk.h> #include "server.h" int main(int argc, char *argv[]) { // TODO: Use GtkApplication? gtk_init(&argc, &argv); // TODO: Start the xmlrpc server first? If GUI is started, then we ...
/* Copyright © 2018 Atlas Engineer LLC. Use of this file is governed by the license that can be found in LICENSE. */ #include <gtk/gtk.h> #include <stdlib.h> #include "server.h" int main(int argc, char *argv[]) { // TODO: Use GtkApplication? gtk_init(&argc, &argv); // TODO: Start the xmlrpc server first? If GUI ...
Use stdlib and return EXIT_SUCCESS
ports/gtk-webkit: Use stdlib and return EXIT_SUCCESS
C
bsd-3-clause
jmercouris/NeXT,jmercouris/NeXT
9a4a639fa3586a5ec10444d0fc26049bd9c3b707
src/lib/pubkey/cecpq1/cecpq1.h
src/lib/pubkey/cecpq1/cecpq1.h
/* * CECPQ1 (x25519 + NewHope) * (C) 2016 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #ifndef BOTAN_CECPQ1_H__ #define BOTAN_CECPQ1_H__ #include <botan/secmem.h> #include <botan/newhope.h> namespace Botan { struct CECPQ1_key { secure_vector<uint8_t> m_x25519; newhope...
/* * CECPQ1 (x25519 + NewHope) * (C) 2016 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #ifndef BOTAN_CECPQ1_H__ #define BOTAN_CECPQ1_H__ #include <botan/secmem.h> #include <botan/newhope.h> namespace Botan { class CECPQ1_key { public: secure_vector<uint8_t> m_x2...
Fix class vs struct declaration.
Fix class vs struct declaration. Recent Clang complains about forward decl as 'class X' when X was actually declared as a struct.
C
bsd-2-clause
webmaster128/botan,webmaster128/botan,randombit/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,webmaster128/botan,webmaster128/botan,Rohde-Sch...
406f0cd7f1c4cd3796592305ae9e338d2ea6cdf8
testmud/mud/home/Game/sys/band.c
testmud/mud/home/Game/sys/band.c
/* keeps track of bans */ mapping username_bans; mapping ip_bans; static void create() { username_bans = ([ ]); } void ban_username(string username) { ACCESS_CHECK(GAME()); if (username_bans[username]) { error("Username already banned"); } username_bans[username] = 1; } void unban_username(string username)...
#include <kotaka/privilege.h> /* keeps track of bans */ mapping username_bans; private void save(); private void restore(); static void create() { username_bans = ([ ]); restore(); } void ban_username(string username) { ACCESS_CHECK(GAME()); if (username == "admin") { error("Cannot ban admin"); } if (use...
Allow ban manager to save state
Allow ban manager to save state
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
b8f31ace2931a5ba15f10abbba4f819fa207c88b
test/CodeGen/2007-11-07-ZeroAggregateAlign.c
test/CodeGen/2007-11-07-ZeroAggregateAlign.c
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s struct A { short s; short t; int i; }; // CHECK: %a = alloca %struct.A, align 4 // CHECK: call void @llvm.memset.p0i8.i64(i8* %tmp, i8 0, i64 8, i32 4, i1 false) void q() { struct A a = {0}; }
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s struct A { short s; short t; int i; }; // CHECK: %a = alloca %struct.A, align 4 // CHECK: call void @llvm.memset.p0i8.i64{{.*}}i32 4, i1 false) void q() { struct A a = {0}; }
Rework the match here to silence release mode windows buildbots.
Rework the match here to silence release mode windows buildbots. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@136164 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
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/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-cl...
546aa3b916172c46fa6df8f7a002949c3976c060
Xcode/Audio/src/user_color_sensor.h
Xcode/Audio/src/user_color_sensor.h
#include "GRT/GRT.h" #include "istream.h" using namespace GRT; // Normalize by dividing each dimension by the total magnitude. // Also add the magnitude as an additional feature. vector<double> normalize(vector<double> input) { double magnitude; for (int i = 0; i < input.size(); i++) magnitude += (input[...
#include "GRT/GRT.h" #include "istream.h" using namespace GRT; // Normalize by dividing each dimension by the total magnitude. // Also add the magnitude as an additional feature. vector<double> normalize(vector<double> input) { double magnitude = 0.0; for (int i = 0; i < input.size(); i++) magnitude += (inpu...
Initialize double variable before use.
Initialize double variable before use. Also removed trailing spaces.
C
bsd-3-clause
damellis/ESP,damellis/ESP
238cb4590508838cf420c23eece94715ce314a27
CppChart/Log.h
CppChart/Log.h
#ifndef LOG_H #define LOG_H #include <string> #include <iostream> #include <SFML/Graphics.hpp> inline void Log(std::string str) { std::cout << "[" << __LINE__ << "] " << __FUNCTION__ << " : " << str << std::endl; } inline void LogFnStart() { Log("Entered"); } inline void LogFnEnd() { Log("Finished"); } inline v...
#ifndef LOG_H #define LOG_H #include <string> #include <iostream> #include <SFML/Graphics.hpp> inline void Log(std::string str) { std::cout << "[" << __LINE__ << "] " << __FUNCTION__ << " : " << str << std::endl; } inline void LogFnStart() { Log("Entered"); } inline void LogFnEnd() { Log("Finished"); } inline v...
Delete argument names of function
Delete argument names of function
C
mit
utilForever/CppChart
7a8eda6a9283448ffe1a164b7cfa39c832d3fec0
searchlib/src/vespa/searchlib/queryeval/equiv_blueprint.h
searchlib/src/vespa/searchlib/queryeval/equiv_blueprint.h
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "blueprint.h" #include <vespa/searchlib/fef/matchdatalayout.h> namespace search::queryeval { class EquivBlueprint : public ComplexLeafBlueprint { private: FieldSpecBaseList _fi...
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "blueprint.h" #include <vespa/searchlib/fef/matchdatalayout.h> namespace search::queryeval { class EquivBlueprint : public ComplexLeafBlueprint { private: FieldSpecBaseList _fi...
Use override specifier for EquivBlueprint destructor.
Use override specifier for EquivBlueprint destructor.
C
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
e56b0c0f248ae779a0abd9e1d5aa7f7420a03f64
ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTileParametersViewController.h
ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTileParametersViewController.h
// -*- Mode: ObjC; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ // // This file is part of the LibreOffice project. // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozi...
// -*- Mode: ObjC; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ // // This file is part of the LibreOffice project. // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozi...
Adjust parameter defaults to give pleasant result
Adjust parameter defaults to give pleasant result Change-Id: Ifee900344547ef25b2041d25c13fcbc50428485e
C
mpl-2.0
JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core
1c34607f3b280ab0b40835b8f57555f941ed2b6c
src/dyn_types.h
src/dyn_types.h
typedef uint64_t msgid_t; typedef uint64_t msec_t; typedef uint64_t usec_t;
#pragma once typedef uint64_t msgid_t; typedef uint64_t msec_t; typedef uint64_t usec_t;
Fix compile error on CentOS
Fix compile error on CentOS
C
apache-2.0
Netflix/dynomite,Netflix/dynomite,Netflix/dynomite,Netflix/dynomite