commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
4.24k
new_contents
stringlengths
1
5.44k
subject
stringlengths
14
778
message
stringlengths
15
9.92k
lang
stringclasses
277 values
license
stringclasses
13 values
repos
stringlengths
5
127k
c5948e847f1da44bb6d076253ac1e73df0cd162c
tests/regression/01-cpa/55-dead-branch-multiple.c
tests/regression/01-cpa/55-dead-branch-multiple.c
#include <assert.h> int main() { int a = 1; int b = 0; if (a && b) { // TODO WARN assert(0); // NOWARN (unreachable) } return 0; }
Add regression test for multiple dead branches
Add regression test for multiple dead branches
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
951f746d0de74c85f26fbdc0e32f8f92699d76b5
src/simple_data_types_and_compounds/c/arrays/sample_array.c
src/simple_data_types_and_compounds/c/arrays/sample_array.c
/* * Author: Jhonatan Casale (jhc) * * Contact : jhonatan@jhonatancasale.com * : casale.jhon@gmail.com * : https://github.com/jhonatancasale * : https://twitter.com/jhonatancasale * : http://jhonatancasale.github.io/ * * Create date Sat 10 Dec 16:28:22 BRST 2016 * */ #include...
Add arrays example in C
Add arrays example in C
C
mit
jhonatancasale/c-python-r-diffs,jhonatancasale/c-python-r-diffs,jhonatancasale/c-python-r-diffs
fd7f66f8c2d75858a2fd7ede056418d7be109792
common/stats/ExportedTimeseries.h
common/stats/ExportedTimeseries.h
/* * Copyright (c) 2004-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #pra...
/* * Copyright (c) 2004-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #pra...
Fix some build issues in the open source code.
Fix some build issues in the open source code. Summary: Our code grew some implicit transitive dependencies on the headers that internal headers included, but our stubs did not. This fixes that, and updates our stubs to match what our code expects. Test Plan: Apply to open source repository and test. Reviewed By: yf...
C
bsd-3-clause
sonoble/fboss,sonoble/fboss,neuhausler/fboss,raphaelamorim/fboss,peterlei/fboss,raphaelamorim/fboss,neuhausler/fboss,neuhausler/fboss,peterlei/fboss,peterlei/fboss,biddyweb/fboss,raphaelamorim/fboss,biddyweb/fboss,biddyweb/fboss,neuhausler/fboss,sonoble/fboss,peterlei/fboss
7be293bd7fbf85b88387835c99891e2ac3e2e4ff
dev/Source/dev/Public/Tank.h
dev/Source/dev/Public/Tank.h
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "GameFramework/Pawn.h" #include "Tank.generated.h" // Put new includes above class UTankBarrel; // Do a class forward declaration class UTurret; class UTankAimingComponent; class AProjectile; UCLASS() class DEV_API...
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "GameFramework/Pawn.h" #include "Tank.generated.h" // Put new includes above class UTankBarrel; // Do a class forward declaration class UTurret; class UTankAimingComponent; class AProjectile; UCLASS() class DEV_API...
Use EditDefaultsOnly insted of EditAnywhere
Use EditDefaultsOnly insted of EditAnywhere
C
mit
tanerius/crazy_tanks,tanerius/crazy_tanks,tanerius/crazy_tanks
9789bc50472b6efdd56545e16e756175a052fba1
src/qnd.c
src/qnd.c
#include "qnd.h" /* Global context for server */ qnd_context ctx; int main(int argc, char **argv) { struct ev_signal signal_watcher; struct ev_io w_accept; struct ev_loop *loop = ev_default_loop(0); qnd_context_init(&ctx); if (qnd_context_listen(&ctx, DEFAULT_PORT) == -1) exit(1); ev_signal_init(&si...
#include "qnd.h" /* Global context for server */ qnd_context ctx; int main(int argc, char **argv) { struct ev_signal signal_watcher; struct ev_io w_accept; struct ev_loop *loop = ev_default_loop(0); qnd_context_init(&ctx); if (qnd_context_listen(&ctx, DEFAULT_PORT) == -1) exit(1); ev_signal_init(&si...
Stop pending watchers during shutdown.
Stop pending watchers during shutdown.
C
mit
jbcrail/quidnuncd,jbcrail/quidnuncd
c8330a62fe3fba72c5a5094304f80808ee2de5a5
os/native_cursor.h
os/native_cursor.h
// LAF OS Library // Copyright (C) 2021 Igara Studio S.A. // Copyright (C) 2012-2014 David Capello // // This file is released under the terms of the MIT license. // Read LICENSE.txt for more information. #ifndef OS_NATIVE_CURSOR_H_INCLUDED #define OS_NATIVE_CURSOR_H_INCLUDED #pragma once #include "gfx/fwd.h" name...
// LAF OS Library // Copyright (C) 2021-2022 Igara Studio S.A. // Copyright (C) 2012-2014 David Capello // // This file is released under the terms of the MIT license. // Read LICENSE.txt for more information. #ifndef OS_NATIVE_CURSOR_H_INCLUDED #define OS_NATIVE_CURSOR_H_INCLUDED #pragma once #include "gfx/fwd.h" ...
Mark NativeCursor::Cursors as not needed in switch/cases
Mark NativeCursor::Cursors as not needed in switch/cases
C
mit
aseprite/laf,aseprite/laf
619362fe501e25d81812dd1564972d8f3851e821
content/browser/renderer_host/quota_dispatcher_host.h
content/browser/renderer_host/quota_dispatcher_host.h
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_ #define CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_ #include "base/basictyp...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_ #define CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_ #include "base/basictyp...
Fix clang build that have been broken by 81364.
Fix clang build that have been broken by 81364. BUG=none TEST=green tree TBR=jam Review URL: http://codereview.chromium.org/6838008 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@81368 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
mohamed--abdel-maksoud/chromium.src,Pluto-tv/chromium-crosswalk,keishi/chromium,Fireblend/chromium-crosswalk,dushu1203/chromium.src,ChromiumWebApps/chromium,zcbenz/cefode-chromium,ondra-novak/chromium.src,keishi/chromium,Just-D/chromium-1,ChromiumWebApps/chromium,jaruba/chromium.src,bright-sparks/chromium-spacewalk,jun...
ff7a33c4f1e341dbdd4775307e3f52c004c21444
src/imap/cmd-close.c
src/imap/cmd-close.c
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */ #include "common.h" #include "commands.h" #include "imap-expunge.h" bool cmd_close(struct client_command_context *cmd) { struct client *client = cmd->client; struct mailbox *mailbox = client->mailbox; struct mail_storage *storage; if (!...
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */ #include "common.h" #include "commands.h" #include "imap-expunge.h" bool cmd_close(struct client_command_context *cmd) { struct client *client = cmd->client; struct mailbox *mailbox = client->mailbox; struct mail_storage *storage; if (!...
Synchronize the mailbox after expunging messages to actually get them expunged.
CLOSE: Synchronize the mailbox after expunging messages to actually get them expunged.
C
mit
damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot
66ddcb4a5c9aec761a50975b773a6d6c907c71bd
src/include/optimizer/stats/hll.h
src/include/optimizer/stats/hll.h
#pragma once #include <cmath> #include <vector> #include <murmur3/MurmurHash3.h> #include <libcount/hll.h> #include "type/value.h" #include "common/macros.h" #include "common/logger.h" namespace peloton { namespace optimizer { /* * A wrapper for libcount::HLL with murmurhash3 */ class HLL { public: HLL(const...
#pragma once #include <cmath> #include <vector> #include <murmur3/MurmurHash3.h> #include <libcount/hll.h> #include "type/value.h" #include "common/macros.h" #include "common/logger.h" namespace peloton { namespace optimizer { /* * A wrapper for libcount::HLL with murmurhash3 */ class HLL { public: HLL(const...
Fix valgrind 'invalid read of size 1' bug.
Fix valgrind 'invalid read of size 1' bug.
C
apache-2.0
cmu-db/peloton,PauloAmora/peloton,AllisonWang/peloton,AngLi-Leon/peloton,AllisonWang/peloton,cmu-db/peloton,malin1993ml/peloton,seojungmin/peloton,yingjunwu/peloton,PauloAmora/peloton,cmu-db/peloton,prashasthip/peloton,haojin2/peloton,vittvolt/peloton,AngLi-Leon/peloton,PauloAmora/peloton,seojungmin/peloton,yingjunwu/p...
79dd0bf258c0636ff902ebaa8aba8ca945be5d58
common_audio/signal_processing/cross_correlation.c
common_audio/signal_processing/cross_correlation.c
/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
Test whether removing a cast still hurts performance.
Test whether removing a cast still hurts performance. BUG=499241 TEST=none TBR=andrew Review URL: https://codereview.webrtc.org/1206653002 Cr-Original-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#9491} Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc Cr-Mirrored-Commit: 6bfc82aaf18e...
C
bsd-3-clause
sippet/webrtc,sippet/webrtc,sippet/webrtc,sippet/webrtc,sippet/webrtc,sippet/webrtc
a534fc0b344d474c8eb3937be1fca98ea1389878
IntelFrameworkModulePkg/Include/Protocol/Ps2Policy.h
IntelFrameworkModulePkg/Include/Protocol/Ps2Policy.h
/*++ Copyright (c) 2006, Intel Corporation. All rights reserved. This software and associated documentation (if any) is furnished under a license and may only be used or copied in accordance with the terms of the license. Except as permitted by such license, no part of this software or documentation may be rep...
Add in Ps2keyboard.inf and Ps2Mouse.inf to IntelFrameworkModuelPkg
Add in Ps2keyboard.inf and Ps2Mouse.inf to IntelFrameworkModuelPkg git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@3113 6f19259b-4bc3-4df7-8a09-765794883524
C
bsd-2-clause
MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2
03a7507e13b84eb3ddd6fad31832e99825977895
Include/SQLiteDatabaseHelper/SQLiteDatabaseHelper.h
Include/SQLiteDatabaseHelper/SQLiteDatabaseHelper.h
// // SQLiteDatabaseHelper // Include/SQLiteDatabaseHelper.h // #ifndef __SQLITEDATABASEHELPER_H__ #define __SQLITEDATABASEHELPER_H__ #include <stdio.h> #include <sqlite3.h> #endif
// // SQLiteDatabaseHelper // Include/SQLiteDatabaseHelper.h // #ifndef __SQLITEDATABASEHELPER_H__ #define __SQLITEDATABASEHELPER_H__ #include <SQLiteDatabaseHelper/Operations/Read/DatabaseReader.h> #endif
Include database reader in main library header
Include database reader in main library header Signed-off-by: Gigabyte-Giant <a7441177296edab3db25b9cdf804d04c1ff0afbf@hotmail.com>
C
mit
Gigabyte-Giant/SQLiteDatabaseHelper
5470369e38e497c1eade1b3171a288415be6d0fd
include/atoms/numeric/rolling_average.h
include/atoms/numeric/rolling_average.h
#pragma once // This file is part of 'Atoms' library - https://github.com/yaqwsx/atoms // Author: Jan 'yaqwsx' Mrzek #include <array> #include <initializer_list> #include <algorithm> namespace atoms { template <class T, size_t SIZE> class RollingAverage { public: RollingAverage() : sum(0), index(0) { ...
#pragma once // This file is part of 'Atoms' library - https://github.com/yaqwsx/atoms // Author: Jan 'yaqwsx' Mrázek #include <array> #include <initializer_list> #include <algorithm> namespace atoms { template <class T, size_t SIZE> class RollingAverage { public: RollingAverage() : sum(0), index(0) { ...
Add clear() and delete constructor with initializer_list
RollingAverage: Add clear() and delete constructor with initializer_list
C
mit
yaqwsx/atoms
a14862fa4b0f730b9bfcc291b33c0dc6c1fac2ad
tests/regression/34-congruence/04-casting.c
tests/regression/34-congruence/04-casting.c
// PARAM: --disable ana.int.def_exc --enable ana.int.interval // Ensures that the cast_to function handles casting for congruences correctly. // TODO: Implement appropriate cast_to function, enable for congruences only and adjust test if necessary. #include <assert.h> #include <stdio.h> int main(){ int c = 128; fo...
Add (deactivated) casting test for congruence domain
Add (deactivated) casting test for congruence domain
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
94313f9165a71469ca5cfa0078f8060947fee781
src/cubeb-speex-resampler.h
src/cubeb-speex-resampler.h
#define OUTSIDE_SPEEX #define RANDOM_PREFIX cubeb #define FLOATING_POINT #include <speex/speex_resampler.h>
#include <speex/speex_resampler.h>
Revert "Force being outside speex."
Revert "Force being outside speex." This reverts commit 356ee9e85ca2f5999cfa18f356b103dffe09fbbd.
C
isc
padenot/cubeb,padenot/cubeb,ieei/cubeb,ieei/cubeb,kinetiknz/cubeb,kinetiknz/cubeb,padenot/cubeb,kinetiknz/cubeb
c581851a1839a63c4873ed632a62982d1c8bb6d0
src/helpers/number_helper.h
src/helpers/number_helper.h
/* * ***************************************************************************** * Copyright 2014 Spectra Logic Corporation. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"). You may not * use this file except in compliance with the License. A copy of the License * is...
/* * ***************************************************************************** * Copyright 2014 Spectra Logic Corporation. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"). You may not * use this file except in compliance with the License. A copy of the License * is...
Fix windows build by requiring stdint.h
Fix windows build by requiring stdint.h
C
apache-2.0
Klopsch/ds3_browser,Klopsch/ds3_browser,SpectraLogic/ds3_browser,SpectraLogic/ds3_browser,SpectraLogic/ds3_browser,Klopsch/ds3_browser
f3929daf7f2223913e226686cd4078a73849057c
test/Analysis/uninit-vals.c
test/Analysis/uninit-vals.c
// RUN: clang-cc -analyze -warn-uninit-values -verify %s int f1() { int x; return x; // expected-warning {{use of uninitialized variable}} } int f2(int x) { int y; int z = x + y; // expected-warning {{use of uninitialized variable}} return z; } int f3(int x) { int y; return x ? 1 : y; // expected-warn...
// RUN: clang-cc -analyze -warn-uninit-values -verify %s int f1() { int x; return x; // expected-warning {{use of uninitialized variable}} } int f2(int x) { int y; int z = x + y; // expected-warning {{use of uninitialized variable}} return z; } int f3(int x) { int y; return x ? 1 : y; // expected-warn...
Add another uninitialized values test case illustrating that the CFG correctly handles declarations with multiple variables.
Add another uninitialized values test case illustrating that the CFG correctly handles declarations with multiple variables. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@68046 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
2dcb0a61041a003f439bbd38005b6e454c368be0
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-k5"
/* * 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-k6"
Update driver version to 5.02.00-k6
[SCSI] qla4xxx: Update driver version to 5.02.00-k6 Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com> Signed-off-by: James Bottomley <407b36959ca09543ccda8f8e06721c791bc53435@suse.de>
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,Krist...
efb6c717b764e77cadc20bc9d9ffdf16bc1eedf5
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-k17"
/* * 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-k18"
Update driver version to 5.02.00-k18
[SCSI] qla4xxx: Update driver version to 5.02.00-k18 Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com> Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
C
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,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_kana...
9630f9b1653188a4173dc633fd55840ae918ca4e
src/Tomighty/Core/UI/TYAppUI.h
src/Tomighty/Core/UI/TYAppUI.h
// // Tomighty - http://www.tomighty.org // // This software is licensed under the Apache License Version 2.0: // http://www.apache.org/licenses/LICENSE-2.0.txt // #import <Foundation/Foundation.h> @protocol TYAppUI <NSObject> - (void)switchToIdleState; - (void)switchToPomodoroState; - (void)switchToShortBreakSta...
// // Tomighty - http://www.tomighty.org // // This software is licensed under the Apache License Version 2.0: // http://www.apache.org/licenses/LICENSE-2.0.txt // #import <Foundation/Foundation.h> @protocol TYAppUI <NSObject> - (void)switchToIdleState; - (void)switchToPomodoroState; - (void)switchToShortBreakSta...
Remove preference change handler declaration.
Remove preference change handler declaration.
C
apache-2.0
ccidral/tomighty-osx,tomighty/tomighty-osx,ccidral/tomighty-osx,tomighty/tomighty-osx,ccidral/tomighty-osx
5a2a1f8179035de5e5a46b5731955598077c93cf
src/arch/arm/armmlib/context.c
src/arch/arm/armmlib/context.c
/** * @file * @brief * * @author Anton Kozlov * @date 25.10.2012 */ #include <stdint.h> #include <stdbool.h> #include <stddef.h> #include <assert.h> #include <hal/context.h> #include <asm/modes.h> #include <arm/fpu.h> /* In the RVCT v2.0 and above, all generated code and C library code * will maintain eig...
/** * @file * @brief * * @author Anton Kozlov * @date 25.10.2012 */ #include <stdint.h> #include <stdbool.h> #include <stddef.h> #include <assert.h> #include <hal/context.h> #include <asm/modes.h> #include <arm/fpu.h> /* In the RVCT v2.0 and above, all generated code and C library code * will maintain eig...
Use PSP for all threads
cortex-m: Use PSP for all threads
C
bsd-2-clause
embox/embox,embox/embox,embox/embox,embox/embox,embox/embox,embox/embox
10b850b59e13bda075aee09822ca62d1431c57a0
src/soft/integer/floatuntidf.c
src/soft/integer/floatuntidf.c
/* This file is part of Metallic, a runtime library for WebAssembly. * * Copyright (C) 2018 Chen-Pang He <chen.pang.he@jdh8.org> * * 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://mozilla...
/* This file is part of Metallic, a runtime library for WebAssembly. * * Copyright (C) 2018 Chen-Pang He <chen.pang.he@jdh8.org> * * 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://mozilla...
Fix a typo which causes infinite recursion
Fix a typo which causes infinite recursion
C
mit
jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic
ea835b91ccfe55cab867f2aa1416385c0f769e21
sources/CWSCore.h
sources/CWSCore.h
// // CWSCore.h // yafacwesConsole // // Created by Matthias Lamoureux on 13/07/2015. // Copyright (c) 2015 pinguzaph. All rights reserved. // #import <Foundation/Foundation.h> @interface CWSCore : NSObject @property (nonatomic, strong) NSString * name; @end
// // CWSCore.h // yafacwesConsole // // Created by Matthias Lamoureux on 13/07/2015. // Copyright (c) 2015 pinguzaph. All rights reserved. // #import <Foundation/Foundation.h> @interface CWSCore : NSObject @property (nonatomic, copy) NSString * name; @end
Set the NSString property to copy mode
Set the NSString property to copy mode
C
mit
letatas/yafacwes,letatas/yafacwes
2bbbfd9a852b4de70411293745d4b88f1a7d4e7a
src/LibTemplateCMake/include/LibTemplateCMake/LibTemplateCMake.h
src/LibTemplateCMake/include/LibTemplateCMake/LibTemplateCMake.h
#ifndef LIB_TEMPLATE_CMAKE_H #define LIB_TEMPLATE_CMAKE_H namespace LibTemplateCMake { /** * \class LibTemplateCMake::aClass * \headerfile template-lib.h <TemplateLib/templatelib.h> * * \brief A class from LibTemplateCMake namespace. * * This class that does a summation. */ class summationClass { public: /** ...
#ifndef LIB_TEMPLATE_CMAKE_H #define LIB_TEMPLATE_CMAKE_H namespace LibTemplateCMake { /** * \class LibTemplateCMake::aClass * \headerfile template-lib.h <TemplateLib/templatelib.h> * * \brief A class from LibTemplateCMake namespace. * * This class that does a summation. */ class summationClass { public: /...
Clean up shared lib header code
Clean up shared lib header code
C
mit
robotology-playground/lib-template-cmake
83459aedbc24813969bd0ed8212bbd9f665e843d
tests/regression/02-base/71-pthread-once.c
tests/regression/02-base/71-pthread-once.c
//PARAM: --disable sem.unknown_function.spawn #include <pthread.h> #include <assert.h> int g; pthread_once_t once = PTHREAD_ONCE_INIT; void *t_fun(void *arg) { assert(1); // reachable! return NULL; } int main() { pthread_once(&once,t_fun); return 0; }
//PARAM: --disable sem.unknown_function.spawn #include <pthread.h> #include <assert.h> int g; pthread_once_t once = PTHREAD_ONCE_INIT; void t_fun() { assert(1); // reachable! return NULL; } int main() { pthread_once(&once,t_fun); return 0; }
Correct type of `pthread_once` argument
02/71: Correct type of `pthread_once` argument Co-authored-by: Simmo Saan <43bc63fd4e818c04906d6ad710460794fe32296e@gmail.com>
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
563b66f9debadbe116b096fc8d5f48b17bb8d881
src/exercise119.c
src/exercise119.c
/* Exercise 1-19: Write a function "reverse(s)" that reverses the character * string "s". Use it to write a program that reverses its input a line at a * time. */ #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> uint32_t reverse(char *s); int main(int argc, char **argv) { char *buf...
Add solution to Exercise 1-19.
Add solution to Exercise 1-19.
C
unlicense
damiendart/knr-solutions,damiendart/knr-solutions,damiendart/knr-solutions
2b24c45e3d99ec7e44862960acee7b26d15ab84f
src/config.h
src/config.h
#ifndef _CONFIG_H #define _CONFIG_H #define ENABLE_COUNTERMOVE_HISTORY 0 #define ENABLE_HISTORY_PRUNE_DEPTH 0 #define ENABLE_NNUE 0 #define ENABLE_NNUE_SIMD 0 #endif
#ifndef _CONFIG_H #define _CONFIG_H #define ENABLE_COUNTERMOVE_HISTORY 0 #define ENABLE_HISTORY_PRUNE_DEPTH 4 #define ENABLE_NNUE 0 #define ENABLE_NNUE_SIMD 0 #endif
Enable history pruning at depth 4
Enable history pruning at depth 4
C
bsd-3-clause
jwatzman/nameless-chessbot,jwatzman/nameless-chessbot
fa09dc1302b1dc246adf171c6d891e0444c063d8
src/bin/e_signals.c
src/bin/e_signals.c
/* * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 */ #include "e.h" #include <execinfo.h> /* a tricky little devil, requires e and it's libs to be built * with the -rdynamic flag to GCC for any sort of decent output. */ void e_sigseg_act(int x, siginfo_t *info, void *data){ void *array[255]; size_t size...
/* * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 * NOTE TO FreeBSD users. Install libexecinfo from * ports/devel/libexecinfo and add -lexecinfo to LDFLAGS * to add backtrace support. */ #include "e.h" #include <execinfo.h> /* a tricky little devil, requires e and it's libs to be built * with the -rdynamic...
Add note to help FreeBSD users.
Add note to help FreeBSD users. SVN revision: 13781
C
bsd-2-clause
rvandegrift/e,FlorentRevest/Enlightenment,tasn/enlightenment,tizenorg/platform.upstream.enlightenment,rvandegrift/e,tasn/enlightenment,FlorentRevest/Enlightenment,tasn/enlightenment,tizenorg/platform.upstream.enlightenment,FlorentRevest/Enlightenment,rvandegrift/e,tizenorg/platform.upstream.enlightenment
abf6c33fd57d1f8d9a14c76f0a8ddebb0e8e7041
src/lib/PluginManager.h
src/lib/PluginManager.h
// // This file is part of the Marble Desktop Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2006-2008 Torsten Rahn <tackat@kde.org>" // #ifndef PLUGINMANAGER_H #define PLUGINMANA...
// // This file is part of the Marble Desktop Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2006-2008 Torsten Rahn <tackat@kde.org>" // #ifndef PLUGINMANAGER_H #define PLUGINMANA...
Fix export (needs for test program)
Fix export (needs for test program) svn path=/trunk/KDE/kdeedu/marble/; revision=818952
C
lgpl-2.1
probonopd/marble,AndreiDuma/marble,adraghici/marble,utkuaydin/marble,oberluz/marble,probonopd/marble,David-Gil/marble-dev,adraghici/marble,adraghici/marble,oberluz/marble,oberluz/marble,tzapzoor/marble,utkuaydin/marble,oberluz/marble,AndreiDuma/marble,tucnak/marble,tzapzoor/marble,tucnak/marble,AndreiDuma/marble,Earthw...
87995a922d19228ee181937691acb2ba8f16ee0d
src/random.h
src/random.h
#ifndef DW_RANDOM_H #define DW_RANDOM_H int rand_rangei(int min, int max); float rand_rangei(float min, float max); #define rand_bool() rand_rangei(0, 2) #endif
#ifndef DW_RANDOM_H #define DW_RANDOM_H int rand_rangei(int min, int max); float rand_rangef(float min, float max); #define rand_bool() rand_rangei(0, 2) #endif
Fix naming of rand_rangef name
Fix naming of rand_rangef name
C
mit
jacquesrott/merriment,jacquesrott/merriment,jacquesrott/merriment
06d72c2c64ecad9b36a0bf26139320e569bd05e3
crypto/ec/curve448/arch_32/arch_intrinsics.h
crypto/ec/curve448/arch_32/arch_intrinsics.h
/* * Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved. * Copyright 2016 Cryptography Research, Inc. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distributio...
/* * Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved. * Copyright 2016 Cryptography Research, Inc. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distributio...
Fix a typo in a comment
Fix a typo in a comment Reviewed-by: Bernd Edlinger <ac6902843ae77cc0d49b9c8ddec4cbf141db1bb7@hotmail.de> (Merged from https://github.com/openssl/openssl/pull/5105)
C
apache-2.0
openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl
cd5f12e417ee99d37f44187b2c4b122afad24578
testDynload.c
testDynload.c
#ifdef _WIN32 #define DL_EXPORT __declspec( dllexport ) #else #define DL_EXPORT #endif DL_EXPORT int TestDynamicLoaderData; DL_EXPORT void TestDynamicLoaderFunction() { }
#ifdef _WIN32 #define DL_EXPORT __declspec( dllexport ) #else #define DL_EXPORT #endif DL_EXPORT int TestDynamicLoaderData = 0; DL_EXPORT void TestDynamicLoaderFunction() { }
Fix compilation on MacOSX (common symbols not allowed with MH_DYLIB output format)
COMP: Fix compilation on MacOSX (common symbols not allowed with MH_DYLIB output format)
C
bsd-3-clause
chuckatkins/KWSys,chuckatkins/KWSys,chuckatkins/KWSys,chuckatkins/KWSys
21aa13130130650738df8e748a01b8706fba5e79
sys/sys/_cpuset.h
sys/sys/_cpuset.h
/*- * Copyright (c) 2008, Jeffrey Roberson <jeff@freebsd.org> * All rights reserved. * * Copyright (c) 2008 Nokia Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redis...
Remove the previously added comment. Probabilly me is the only one who didn't know userland and kerneland sizes were mismatching.
Remove the previously added comment. Probabilly me is the only one who didn't know userland and kerneland sizes were mismatching.
C
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
553b2e10575dca72a1a273ca50a885a0e0191603
elixir/main.c
elixir/main.c
// Regular C libs #include <stdio.h> // Elixir libs -- clang doesn't know where the hell this is #include "erl_nif.h" // Needs to figure out what ERL_NIF_TERM means static ERL_NIF_TERM hello(ErlNifEnv *env, int argc, const ERL_NIF_TERM argv[]) { // We need some variables char *s; int i, num; // Grab the argumen...
// Regular C libs #include <stdio.h> // Elixir libs #include "erl_nif.h" #define MAXLEN 1024 // Needs to figure out what ERL_NIF_TERM means static ERL_NIF_TERM hello(ErlNifEnv *env, int argc, const ERL_NIF_TERM argv[]) { // We need some variables char buf[MAXLEN]; int i, num; // Grab the arguments from Elixir ...
Use buf as var name
Use buf as var name
C
unlicense
bentranter/binding,bentranter/binding,bentranter/binding
5343a3a7ec39a5eeb212a36287647c4a1e6749fd
tests/regression/34-congruence/03-branching.c
tests/regression/34-congruence/03-branching.c
// PARAM: --sets solver td3 --enable ana.int.congruence --disable ana.int.def_exc int main(){ // A refinement of a congruence class should only take place for the == and != operator. int i; if (i==0){ assert(i==0); } else { assert(i!=0); //UNKNOWN! } int j; if (j != 0){ as...
Add branching test for congruence domain
Add branching test for congruence domain
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
ee5707df2fdb0c86d7d9aade08056b59cf4cba8e
verification/OpenAD/code_oad/OPENAD_OPTIONS.h
verification/OpenAD/code_oad/OPENAD_OPTIONS.h
C $Header$ C $Name$ CBOP C !ROUTINE: OPENAD_OPTIONS.h C !INTERFACE: C #include "OPENAD_OPTIONS.h" C !DESCRIPTION: C *==================================================================* C | CPP options file for OpenAD (openad) package: C | Control which optional features to compile in this package code. C *===========...
Change to 3D active read
Change to 3D active read
C
mit
altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h
37a80793063bee42a088534eb87e2af7e4d5e2e7
tests/sv-comp/multicall_context_true-unreach-call.c
tests/sv-comp/multicall_context_true-unreach-call.c
extern void __VERIFIER_error() __attribute__ ((__noreturn__)); extern int __VERIFIER_nondet_int(); void __VERIFIER_assert(int cond) { if (!(cond)) { ERROR: __VERIFIER_error(); } return; } void foo(int x) { __VERIFIER_assert(x - 1 < x); } int main() { foo(1); foo(2); return 0; }
Add basic example with multiple contexts
Add basic example with multiple contexts
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
69406f7330d9fd0b36a2aefd479636cc8738127c
gtk/spice-util-priv.h
gtk/spice-util-priv.h
/* -*- Mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* Copyright (C) 2010 Red Hat, Inc. 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 Lic...
/* -*- Mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* Copyright (C) 2010 Red Hat, Inc. 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 Lic...
Replace %02hhx with %02x in UUID format
Replace %02hhx with %02x in UUID format Use of 'hh' in the UUID format string is not required. Furthermore it causes errors on Mingw32, where the 'hh' modifier is not supported
C
lgpl-2.1
elmarco/spice-gtk,Fantu/spice-gtk,freedesktop-unofficial-mirror/spice__spice-gtk,freedesktop-unofficial-mirror/spice__spice-gtk,Fantu/spice-gtk,flexVDI/spice-gtk,SPICE/spice-gtk,freedesktop-unofficial-mirror/spice__spice-gtk,dezelin/spice-gtk,mathslinux/spice-gtk,guodong/spice-gtk,SPICE/spice-gtk,fgouget/spice-gtk,elma...
e3485b84607578953b545b5033620bf1390c9132
test2/__attribute__/cleanup/auto_out_param.c
test2/__attribute__/cleanup/auto_out_param.c
// RUN: %ocheck 0 %s struct store_out { int *local; int *ret; }; void store_out(const struct store_out *const so) { *so->ret = *so->local; } void f(int *p) { int i = *p; struct store_out so __attribute((cleanup(store_out))) = { .local = &i, .ret = p }; i = 5; } main() { int i = 3; f(&i); if(i != 5)...
Test cleanup-attribute with const struct parameter
Test cleanup-attribute with const struct parameter
C
mit
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
8fe1cb54b5382dedb5e1c86f483e6b3aea3bb958
src/std/c_lib.h
src/std/c_lib.h
/* * cynapses libc functions * * Copyright (c) 2008 by Andreas Schneider <mail@cynapses.org> * * 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 ...
/* * cynapses libc functions * * Copyright (c) 2008 by Andreas Schneider <mail@cynapses.org> * * 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 ...
Add c_list to standard lib header file.
Add c_list to standard lib header file.
C
lgpl-2.1
meeh420/csync,gco/csync,meeh420/csync,gco/csync,gco/csync,meeh420/csync,gco/csync
7f93f8bab3f1e8e1b4360d63a812dfbb9ec80bc2
examples/post_sample/example_post_sample.c
examples/post_sample/example_post_sample.c
/* * Copyright 2014 SimpleThings, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
/* * Copyright 2014 SimpleThings, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
Make sample app a little more clear
Make sample app a little more clear
C
apache-2.0
canopy-project/canopy-embedded,canopy-project/canopy-embedded,canopy-project/canopy-embedded
11acdd53ab086a9622074f79ef1535c1448cbb91
Shared/Encounter.h
Shared/Encounter.h
// // Encounter.h // ProeliaKit // // Created by Paul Schifferer on 3/5/15. // Copyright (c) 2015 Pilgrimage Software. All rights reserved. // @import Foundation; #import "EncounterConstants.h" #import "GameSystem.h" #import "AbstractEncounter.h" @class EncounterMap; @class EncounterParticipant; @class Encounter...
// // Encounter.h // ProeliaKit // // Created by Paul Schifferer on 3/5/15. // Copyright (c) 2015 Pilgrimage Software. All rights reserved. // @import Foundation; #import "EncounterConstants.h" #import "GameSystem.h" #import "AbstractEncounter.h" @class EncounterMap; @class EncounterParticipant; @class Encounter...
Store ID for source template.
Store ID for source template.
C
mit
pilgrimagesoftware/ProeliaKit,pilgrimagesoftware/ProeliaKit
1bf764c914d503e87c909439f0bd43bb72e93580
LinkedList/insert_node_at_tail.c
LinkedList/insert_node_at_tail.c
/* Input Format You have to complete the Node* Insert(Node* head, int data) method which takes two arguments - the head of the linked list and the integer to insert. You should NOT read any input from stdin/console. Output Format Insert the new node at the tail and just return the head of the updated linked list. Do...
Add insert node at tail fn
Add insert node at tail fn
C
mit
anaghajoshi/HackerRank
f9dd70c4988603f97de3b3b9a3ee7cb578bff699
test/ubsan_minimal/TestCases/test-darwin-interface.c
test/ubsan_minimal/TestCases/test-darwin-interface.c
// Check that the ubsan and ubsan-minimal runtimes have the same symbols, // making exceptions as necessary. // // REQUIRES: x86_64-darwin // RUN: nm -jgU `%clangxx -fsanitize-minimal-runtime -fsanitize=undefined %s -o %t '-###' 2>&1 | grep "libclang_rt.ubsan_minimal_osx_dynamic.dylib" | sed -e 's/.*"\(.*libclang_rt.u...
Test exported symbol set against RTUBsan
[ubsan-minimal] Test exported symbol set against RTUBsan Check that the symbol sets exported by the minimal runtime and the full runtime match (making exceptions for special cases as needed). This test uses some possibly non-standard nm options, and needs to inspect the symbols in runtime dylibs. I haven't found a po...
C
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
aaaf165b247a1a8ea5cd2936d9fd1eefe5e580f9
arch/arm/mach-kirkwood/board-iomega_ix2_200.c
arch/arm/mach-kirkwood/board-iomega_ix2_200.c
/* * arch/arm/mach-kirkwood/board-iomega_ix2_200.c * * Iomega StorCenter ix2-200 * * This file is licensed under the terms of the GNU General Public * License version 2. This program is licensed "as is" without any * warranty of any kind, whether express or implied. */ #include <linux/kernel.h> #include <linu...
/* * arch/arm/mach-kirkwood/board-iomega_ix2_200.c * * Iomega StorCenter ix2-200 * * This file is licensed under the terms of the GNU General Public * License version 2. This program is licensed "as is" without any * warranty of any kind, whether express or implied. */ #include <linux/kernel.h> #include <linu...
Fix GE0/GE1 init on ix2-200 as GE0 has no PHY
Fix GE0/GE1 init on ix2-200 as GE0 has no PHY Signed-off-by: Jason Cooper <68c46a606457643eab92053c1c05574abb26f861@lakedaemon.net>
C
mit
KristFoundation/Programs,KristFoundation/Programs,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_k...
4cff24f6e6f727ddaa072825a508b801b116c8a8
deal.II/doc/doxygen/headers/constraints.h
deal.II/doc/doxygen/headers/constraints.h
//------------------------------------------------------------------------- // $Id$ // Version: $Name$ // // Copyright (C) 2010 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer // to the file deal.II/doc/lic...
Add provisional version, to be finished at home later today.
Add provisional version, to be finished at home later today. git-svn-id: 31d9d2f6432a47c86a3640814024c107794ea77c@22003 0785d39b-7218-0410-832d-ea1e28bc413d
C
lgpl-2.1
YongYang86/dealii,gpitton/dealii,Arezou-gh/dealii,sriharisundar/dealii,ESeNonFossiIo/dealii,mac-a/dealii,natashasharma/dealii,JaeryunYim/dealii,sriharisundar/dealii,lpolster/dealii,andreamola/dealii,kalj/dealii,shakirbsm/dealii,mtezzele/dealii,naliboff/dealii,angelrca/dealii,flow123d/dealii,maieneuro/dealii,gpitton/dea...
8ae331ba0b6f64564519e9e5618ec035bb54038f
interpreter/cling/lib/MetaProcessor/Display.h
interpreter/cling/lib/MetaProcessor/Display.h
//--------------------------------------------------------------------*- C++ -*- // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Timur Pocheptsov <Timur.Pocheptsov@cern.ch> //------------------------------------------------------------------------------ #ifndef CLING_DISPLAY_H #define CLING_...
//--------------------------------------------------------------------*- C++ -*- // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Timur Pocheptsov <Timur.Pocheptsov@cern.ch> //------------------------------------------------------------------------------ #ifndef CLING_DISPLAY_H #define CLING_...
Fix fwd decl for windows.
Fix fwd decl for windows. git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@47814 27541ba8-7e3a-0410-8455-c3a389f83636
C
lgpl-2.1
bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT
2dbf07d095e6ffbeef50942a9c9f3241f71d5fb8
lib/StaticAnalyzer/Checkers/ClangSACheckers.h
lib/StaticAnalyzer/Checkers/ClangSACheckers.h
//===--- ClangSACheckers.h - Registration functions for Checkers *- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===--- ClangSACheckers.h - Registration functions for Checkers *- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Revert r125642. This broke the build? It should be a no-op.
Revert r125642. This broke the build? It should be a no-op. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@125645 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
ee1ba3e0b094ce80965eb2f1dd599fca6ff6736c
src/Blocks/BlockTNT.h
src/Blocks/BlockTNT.h
#pragma once #include "BlockHandler.h" class cBlockTNTHandler : public cBlockHandler { public: cBlockTNTHandler(BLOCKTYPE a_BlockType) : cBlockHandler(a_BlockType) { } virtual const char * GetStepSound(void) override { return "step.wood"; } virtual void OnCancelRightClick(cChunkInterface & a_ChunkI...
#pragma once #include "BlockHandler.h" class cBlockTNTHandler : public cBlockHandler { public: cBlockTNTHandler(BLOCKTYPE a_BlockType) : cBlockHandler(a_BlockType) { } virtual const char * GetStepSound(void) override { return "step.grass"; } virtual void OnCancelRightClick(cChunkInterface & a_Chunk...
Set tnt step sound to step.grass
Set tnt step sound to step.grass
C
apache-2.0
ionux/MCServer,Fighter19/cuberite,birkett/MCServer,birkett/MCServer,Frownigami1/cuberite,guijun/MCServer,Howaner/MCServer,mmdk95/cuberite,MuhammadWang/MCServer,nichwall/cuberite,MuhammadWang/MCServer,jammet/MCServer,Frownigami1/cuberite,mmdk95/cuberite,zackp30/cuberite,jammet/MCServer,tonibm19/cuberite,marvinkopf/cuber...
4ee56830312ce07823a18cb8d0da396f94121c23
Modules/ThirdParty/OssimPlugins/src/ossim/ossimOperatorUtilities.h
Modules/ThirdParty/OssimPlugins/src/ossim/ossimOperatorUtilities.h
//---------------------------------------------------------------------------- // // "Copyright Centre National d'Etudes Spatiales" // // License: LGPL-2 // // See LICENSE.txt file in the top level directory for more details. // //---------------------------------------------------------------------------- // $Id$ #i...
Add facilities to define classes with arithmetic semantics
ENH: Add facilities to define classes with arithmetic semantics Strongly inspired by boost.operators interface
C
apache-2.0
orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB
9552621829998a40edde36dcb35aa11c4fe56800
tests/regression/02-base/55-printf-n.c
tests/regression/02-base/55-printf-n.c
// SKIP #include <stdio.h> #include <assert.h> int main() { int written = 0; printf("foo%n\n", &written); // invalidates written by setting written = 3 assert(written != 0); // TODO (fail means written == 0, which is unsound) printf("%d\n", written); return 0; }
Add skipped test where printf with %n is unsound
Add skipped test where printf with %n is unsound
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
7b9b5f5f241f7a95110cc6b425c02368b5327270
include/nekit/transport/listener_interface.h
include/nekit/transport/listener_interface.h
// MIT License // Copyright (c) 2017 Zhuhao Wang // 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 without restriction, including without limitation the rights // to use, copy, modify, mer...
// MIT License // Copyright (c) 2017 Zhuhao Wang // 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 without restriction, including without limitation the rights // to use, copy, modify, mer...
Add comment for handler type requirement
DOC: Add comment for handler type requirement
C
mit
zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit
a85984ba3bc5831f701ba4706bc8298234d17e21
include/wb_game_version.h
include/wb_game_version.h
/** * WarfaceBot, a blind XMPP client for Warface (FPS) * Copyright (C) 2015 Levak Borok <levak92@gmail.com> * * 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 3 of the Licen...
/** * WarfaceBot, a blind XMPP client for Warface (FPS) * Copyright (C) 2015 Levak Borok <levak92@gmail.com> * * 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 3 of the Licen...
Add guards for GAME_VERSION for command line customization
Add guards for GAME_VERSION for command line customization
C
agpl-3.0
DevilDaga/warfacebot,Levak/warfacebot,Levak/warfacebot,DevilDaga/warfacebot,Levak/warfacebot
3773489a59adb0313d98e7d5a5749bdda8145e17
interpreter/cling/lib/MetaProcessor/Display.h
interpreter/cling/lib/MetaProcessor/Display.h
//--------------------------------------------------------------------*- C++ -*- // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Timur Pocheptsov <Timur.Pocheptsov@cern.ch> //------------------------------------------------------------------------------ #ifndef CLING_DISPLAY_H #define CLING_...
//--------------------------------------------------------------------*- C++ -*- // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Timur Pocheptsov <Timur.Pocheptsov@cern.ch> //------------------------------------------------------------------------------ #ifndef CLING_DISPLAY_H #define CLING_...
Fix fwd decl for windows.
Fix fwd decl for windows. git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@47814 27541ba8-7e3a-0410-8455-c3a389f83636
C
lgpl-2.1
esakellari/root,Y--/root,agarciamontoro/root,cxx-hep/root-cern,omazapa/root,bbockelm/root,mkret2/root,karies/root,karies/root,karies/root,olifre/root,0x0all/ROOT,abhinavmoudgil95/root,Y--/root,smarinac/root,evgeny-boger/root,thomaskeck/root,mkret2/root,omazapa/root,veprbl/root,perovic/root,arch1tect0r/root,vukasinmilos...
fade08bf28c1850d2ad2fc5b47e2379b9cf3995d
kremlib/gcc_compat.h
kremlib/gcc_compat.h
#ifndef __GCC_COMPAT_H #define __GCC_COMPAT_H #ifdef __GNUC__ // gcc does not support the __cdecl, __stdcall or __fastcall notation // except on Windows #ifndef _WIN32 #define __cdecl __attribute__((cdecl)) #define __stdcall __attribute__((stdcall)) #define __fastcall __attribute__((fastcall)) #endif // ! _WIN32 #endi...
#ifndef __GCC_COMPAT_H #define __GCC_COMPAT_H #ifdef __GNUC__ // gcc does not support the __cdecl, __stdcall or __fastcall notation // except on Windows #ifdef _WIN32 #define __cdecl __attribute__((cdecl)) #define __stdcall __attribute__((stdcall)) #define __fastcall __attribute__((fastcall)) #else #define __cdecl #de...
Fix the Vale build onx 64 Linux by definining empty calling convention keywords
Fix the Vale build onx 64 Linux by definining empty calling convention keywords
C
apache-2.0
FStarLang/kremlin,FStarLang/kremlin,FStarLang/kremlin,FStarLang/kremlin
bbf79aa264b638fd4717cfb1b8fd5a7997861fe7
ArmPkg/Include/IndustryStandard/ArmMmSvc.h
ArmPkg/Include/IndustryStandard/ArmMmSvc.h
/** @file * * Copyright (c) 2012-2017, ARM Limited. All rights reserved. * * This program and the accompanying materials * are licensed and made available under the terms and conditions of the BSD License * which accompanies this distribution. The full text of the license may be found at * http://opensourc...
Add SVC function IDs for Management Mode.
ArmPkg/Include: Add SVC function IDs for Management Mode. SVCs are in the range 0xC4000060 - 0xC400007f. The functions available to the secure MM partition: 1. Signal completion of MM event handling. 2. Set/Get memory attributes for a memory region at runtime. 3. Get version number of secure partition manager. Also, ...
C
bsd-2-clause
MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2
6257608a8aa9caa06ef787ed48caba5a786ae1f5
spdy/platform/api/spdy_bug_tracker.h
spdy/platform/api/spdy_bug_tracker.h
// Copyright (c) 2019 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 QUICHE_SPDY_PLATFORM_API_SPDY_BUG_TRACKER_H_ #define QUICHE_SPDY_PLATFORM_API_SPDY_BUG_TRACKER_H_ #include "net/spdy/platform/impl/spdy_bug_t...
// Copyright (c) 2019 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 QUICHE_SPDY_PLATFORM_API_SPDY_BUG_TRACKER_H_ #define QUICHE_SPDY_PLATFORM_API_SPDY_BUG_TRACKER_H_ #include "net/spdy/platform/impl/spdy_bug_t...
Modify old-style derived GFE_BUG macros to have IDs.
Modify old-style derived GFE_BUG macros to have IDs. Usage of the macros was replaced by V2 set of macros. Context: go/gfe-bug-improvements. Now that everything was migrated to V2, we are updating V1 macros and will updated everything back to drop the V2 suffix. GFE_BUG macros were changed in cl/362922435 SPDY_BUG ma...
C
bsd-3-clause
google/quiche,google/quiche,google/quiche,google/quiche
264e4c4d0199d1955ea0852c86b10a58bb234cce
src/uri_judge/begginer/1012_area.c
src/uri_judge/begginer/1012_area.c
/* https://www.urionlinejudge.com.br/judge/en/problems/view/1012 */ #include <stdio.h> int main(){ const double PI = 3.14159; double a, b, c; scanf("%lf %lf %lf", &a, &b, &c); /* the area of the rectangled triangle that has base A and height C A = (base * height) / 2 */ printf("TRIANGU...
/* https://www.urionlinejudge.com.br/judge/en/problems/view/1012 */ #include <stdio.h> int main(){ const double PI = 3.14159; double a, b, c; scanf("%lf %lf %lf", &a, &b, &c); /* the area of the rectangled triangle that has base A and height C A = (base * height) / 2 */ printf("TRIANGU...
Update 1012 (Fix a typo)
Update 1012 (Fix a typo) : instead of =
C
unknown
Mazuh/Algs,Mazuh/Algs,Mazuh/MISC-Algs,Mazuh/Algs,Mazuh/MISC-Algs,Mazuh/Algs,Mazuh/MISC-Algs,Mazuh/MISC-Algs,Mazuh/Algs
43c7a45566e6df0bcde37dca4d5d11f68330e833
ObjectiveRocks/RocksDBPlainTableOptions.h
ObjectiveRocks/RocksDBPlainTableOptions.h
// // RocksDBPlainTableOptions.h // ObjectiveRocks // // Created by Iska on 04/01/15. // Copyright (c) 2015 BrainCookie. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(char, PlainTableEncodingType) { PlainTableEncodingPlain, PlainTableEncodingPrefix }; @interface RocksDBPlainTableOpt...
// // RocksDBPlainTableOptions.h // ObjectiveRocks // // Created by Iska on 04/01/15. // Copyright (c) 2015 BrainCookie. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(char, PlainTableEncodingType) { PlainTableEncodingPlain, PlainTableEncodingPrefix }; @interface RocksDBPlainTableOpt...
Add source code documentation for the RocksDB Plain Table Options class
Add source code documentation for the RocksDB Plain Table Options class
C
mit
iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks
79f3caa5fe3a30902951ce6f72a5caca278a46c7
test/Driver/elfiamcu-header-search.c
test/Driver/elfiamcu-header-search.c
// REQUIRES: x86-registered-target // RUN: %clang -target i386-pc-elfiamcu -c -v %s 2>&1 | FileCheck %s // CHECK-NOT: /usr/include // CHECK-NOT: /usr/local/include
// REQUIRES: x86-registered-target // RUN: %clang -target i386-pc-elfiamcu -c -v -fsyntax-only %s 2>&1 | FileCheck %s // CHECK-NOT: /usr/include // CHECK-NOT: /usr/local/include
Add -fsyntax-only to fix failure in read-only directories.
Add -fsyntax-only to fix failure in read-only directories. Internally, this test is executed in a read-only directory, which causes it to fail because the driver tries to generate a file unnecessarily. Adding -fsyntax-only fixes the issue (thanks to Artem Belevich for figuring out the root cause). git-svn-id: ffe6687...
C
apache-2.0
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,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl...
21198b75ca5bb408bd77a54232418b8aef8ce8dc
src/x11-simple.c
src/x11-simple.c
// mruby libraries #include "mruby.h" #include "mruby/array.h" #include "mruby/data.h" #include "mruby/string.h" #include <X11/Xlib.h> mrb_value x11_simple_test(mrb_state* mrb, mrb_value self) { Display *dpy = XOpenDisplay(NULL); Window win = XCreateSimpleWindow(dpy, DefaultRootWindow(dpy), 0, 0, 256, 256, 0, 0, ...
// mruby libraries #include "mruby.h" #include "mruby/array.h" #include "mruby/data.h" #include "mruby/string.h" #include <X11/Xlib.h> mrb_value x11_simple_test(mrb_state* mrb, mrb_value self) { Display* dpy = XOpenDisplay(NULL); Window* win = mrb_malloc(mrb, sizeof(Window)); *win = XCreateSimpleWindow(dpy, Def...
Return an adress of Window object.
Return an adress of Window object.
C
mit
dyama/mruby-x11-simple,dyama/mruby-x11-simple
18b04d4b62673f6da70d845a8904096e422acb20
src/plugins/qmldesigner/designercore/filemanager/qmlwarningdialog.h
src/plugins/qmldesigner/designercore/filemanager/qmlwarningdialog.h
#ifndef QMLWARNINGDIALOG_H #define QMLWARNINGDIALOG_H #include <QDialog> namespace Ui { class QmlWarningDialog; } namespace QmlDesigner { namespace Internal { class QmlWarningDialog : public QDialog { Q_OBJECT public: explicit QmlWarningDialog(QWidget *parent, const QStringList &warnings); ~QmlWar...
#ifndef QMLWARNINGDIALOG_H #define QMLWARNINGDIALOG_H #include <QDialog> QT_BEGIN_NAMESPACE namespace Ui { class QmlWarningDialog; } QT_END_NAMESPACE namespace QmlDesigner { namespace Internal { class QmlWarningDialog : public QDialog { Q_OBJECT public: explicit QmlWarningDialog(QWidget *parent, const...
Fix compilation with namespaced Qt.
QmlDesigner: Fix compilation with namespaced Qt. Change-Id: I4de7ae4391f57f4c7eac4e5e8b057b8365ca42c9 Reviewed-by: Thomas Hartmann <588ee739c05aab7547907becfd1420d2b7316069@digia.com>
C
lgpl-2.1
amyvmiwei/qt-creator,kuba1/qtcreator,omniacreator/qtcreator,Distrotech/qtcreator,martyone/sailfish-qtcreator,xianian/qt-creator,colede/qtcreator,maui-packages/qt-creator,amyvmiwei/qt-creator,maui-packages/qt-creator,colede/qtcreator,omniacreator/qtcreator,martyone/sailfish-qtcreator,farseerri/git_code,omniacreator/qtcr...
559165da4052bd5df6e4635182ee9429b5221fd0
core/privatepointer.h
core/privatepointer.h
/* * This file is part of the Gluon Development Platform * Copyright (c) 2014 Arjen Hiemstra <ahiemstra@heimr.nl> * * 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...
Add a convenience template for private pointers.
core: Add a convenience template for private pointers.
C
lgpl-2.1
KDE/gluon,KDE/gluon,KDE/gluon,KDE/gluon
db648cdab35a2a72efa23bc4c417225f09e9d511
stm32f1-nrf24l01-transmitter/firmware/protocol_hk310.c
stm32f1-nrf24l01-transmitter/firmware/protocol_hk310.c
#include <systick.h> #include <protocol_hk310.h> #define FRAME_TIME 5 // 1 frame every 5 ms // **************************************************************************** static void protocol_frame_callback(void) { systick_set_callback(protocol_frame_callback, FRAME_TIME); } // ************************...
#include <systick.h> #include <protocol_hk310.h> #define FRAME_TIME 5 // One frame every 5 ms typedef enum { SEND_STICK1 = 0, SEND_STICK2, SEND_BIND_INFO, SEND_PROGRAMBOX } frame_state_t; static frame_state_t frame_state; // ******************************************************************...
Build skeleton for nRF frames
Build skeleton for nRF frames
C
unlicense
laneboysrc/nrf24l01-rc,laneboysrc/nrf24l01-rc,laneboysrc/nrf24l01-rc
09b3de7c00db1e4ec464e50a6459352be4b610d1
src/WalkerException.h
src/WalkerException.h
#ifndef _WALKEREXCEPTION_H #define _WALKEREXCEPTION_H #include <string> //! (base) class for exceptions in uvok/WikiWalker class WalkerException : public std::exception { public: /*! Create a Walker exception with a message. * * Message might be shown on exception occurring, depending on * the comp...
#ifndef _WALKEREXCEPTION_H #define _WALKEREXCEPTION_H #include <string> //! (base) class for exceptions in uvok/WikiWalker class WalkerException : public std::exception { public: /*! Create a Walker exception with a message. * * Message might be shown on exception occurring, depending on * the comp...
Use noexcept insead of throw() for what()
Use noexcept insead of throw() for what()
C
mit
dueringa/WikiWalker
4472010345dc2a46051887669ad2c7c7a6eccc3b
chrome/browser/printing/print_dialog_cloud.h
chrome/browser/printing/print_dialog_cloud.h
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_ #define CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_ #include "base/basictypes.h" #include "t...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_ #define CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_ #include "base/basictypes.h" #include "t...
Fix the build by updating FRIEND_TEST line.
Fix the build by updating FRIEND_TEST line. TBR=maruel BUG=44547 Review URL: http://codereview.chromium.org/2083013 git-svn-id: http://src.chromium.org/svn/trunk/src@47646 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: b756479cc600c3c5ca9c0ab66c4d59e98afcb34d
C
bsd-3-clause
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u...
f846021291546acc3f6899d00c6ca60003baa371
solutions/uri/1019/1019.c
solutions/uri/1019/1019.c
#include <stdio.h> int main() { int t, h = 0, m = 0; while (scanf("%d", &t) != EOF) { if (t >= 60 * 60) { h = t / (60 * 60); t %= (60 * 60); } if (t >= 60) { m = t / 60; t %= 60; } printf("%d:%d:%d\n", h, m, t); h...
Solve Time Conversion in c
Solve Time Conversion in c
C
mit
deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr...
d143e1c7afb2c24af593c36272c6542eb9a3bbc7
raster/buffer_view.h
raster/buffer_view.h
// Raster Library // Copyright (C) 2015 David Capello #ifndef RASTER_BUFFER_VIEW_INCLUDED_H #define RASTER_BUFFER_VIEW_INCLUDED_H #pragma once #include <cassert> #include <cstdint> #include <vector> #include "raster/image_spec.h" namespace raster { // Wrapper for an array of bytes. It doesn't own the data. cla...
// Raster Library // Copyright (C) 2015-2016 David Capello #ifndef RASTER_BUFFER_VIEW_INCLUDED_H #define RASTER_BUFFER_VIEW_INCLUDED_H #pragma once #include <cassert> #include <cstddef> #include <cstdint> #include <vector> #include "raster/image_spec.h" namespace raster { // Wrapper for an array of bytes. It doe...
Add std:: namespace to int types
Add std:: namespace to int types
C
mit
aseprite/raster,dacap/raster,dacap/raster,aseprite/raster
9efcb0413e4a7e59b83862d9a58c267ad8bb5d23
Behaviors/GoBackward.h
Behaviors/GoBackward.h
/* * GoBackward.h * * Created on: Mar 25, 2014 * Author: user */ #ifndef GOBACKWARD_H_ #define GOBACKWARD_H_ #include "Behavior.h" #include "../Robot.h" class GoBackward: public Behavior { public: GoBackward(Robot* robot); bool startCondition(); bool stopCondition(); void action(); virtual ~GoBackward...
/* * GoBackward.h * * Created on: Mar 25, 2014 * Author: user */ #ifndef GOBACKWARD_H_ #define GOBACKWARD_H_ #include "Behavior.h" #include "../Robot.h" class GoBackward: public Behavior { public: GoBackward(Robot* robot); bool startCondition(); bool stopCondition(); void action(); virtual ~GoBackwa...
Add logic to this behavior
Add logic to this behavior
C
apache-2.0
Jossef/robotics,Jossef/robotics
ec09e905db4bf5698c7c8bde2a41013c428f4308
phraser/cc/analysis/analysis_options.h
phraser/cc/analysis/analysis_options.h
#ifndef CC_ANALYSIS_ANALYSIS_OPTIONS_H_ #define CC_ANALYSIS_ANALYSIS_OPTIONS_H_ #include <cstddef> struct AnalysisOptions { AnalysisOptions() : track_index_translation(true), destutter_max_consecutive(3), track_chr2drop(true), replace_html_entities(true) {} // General flag...
#ifndef CC_ANALYSIS_ANALYSIS_OPTIONS_H_ #define CC_ANALYSIS_ANALYSIS_OPTIONS_H_ #include <cstddef> struct AnalysisOptions { AnalysisOptions() : destutter_max_consecutive(3), replace_html_entities(true) {} // Preprocessing flags: // * Maximum number of consecutive code points before we...
Remove them. Deal with them later if perf is actually an issue here.
Remove them. Deal with them later if perf is actually an issue here.
C
mit
escherba/phraser,knighton/phraser,escherba/phraser,escherba/phraser,knighton/phraser,knighton/phraser,knighton/phraser,escherba/phraser
14d3966cf69de96f4a25b0f4ffb462d51b3b2112
tests/error/0018-voidparam.c
tests/error/0018-voidparam.c
int foo(void, int x) { return 0; } int main() { return foo(); }
int a(void, int i) { return 0; } int b(int i, void) { return 0; } int c(void, void) { return 0; } int d(void, ...) { return 0; } int main() { return 0; }
Improve error test for void parameter
[tests] Improve error test for void parameter
C
isc
k0gaMSX/scc,k0gaMSX/scc,k0gaMSX/scc
05a3ffb6b93cf390f5401511184303a419de3cbf
src/thermal_config.h
src/thermal_config.h
#ifndef THERMALCONFIG_H #define THERMALCONFIG_H #ifndef M_PI const double M_PI = 3.141592653; #endif const double T0 = 273.15; // [C] const double R_TSV = 5e-6; // [m] /* Thermal conductance */ const double Ksi = 148.0; // Silicon const double Kcu = 401.0; // Copper const double Kin = 1.5; // insulator const...
#ifndef THERMALCONFIG_H #define THERMALCONFIG_H #ifndef M_PI const double M_PI = 3.141592653; #endif const double T0 = 273.15; // [C] const double R_TSV = 5e-6; // [m] /* Thermal conductance */ const double Ksi = 148.0; // Silicon const double Kcu = 401.0; // Copper const double Kin = 1.5; // insulator const...
Change default khs to 4
Change default khs to 4
C
mit
umd-memsys/DRAMsim3,umd-memsys/DRAMsim3,umd-memsys/DRAMsim3
8def6e83038b43b798a935edab9d77476ec47372
test/Sema/attr-weak.c
test/Sema/attr-weak.c
// RUN: %clang_cc1 -verify -fsyntax-only %s extern int g0 __attribute__((weak)); extern int g1 __attribute__((weak_import)); int g2 __attribute__((weak)); int g3 __attribute__((weak_import)); // expected-warning {{'weak_import' attribute cannot be specified on a definition}} int __attribute__((weak_import)) g4(void); ...
// RUN: %clang_cc1 -verify -fsyntax-only %s extern int f0() __attribute__((weak)); extern int g0 __attribute__((weak)); extern int g1 __attribute__((weak_import)); int f2() __attribute__((weak)); int g2 __attribute__((weak)); int g3 __attribute__((weak_import)); // expected-warning {{'weak_import' attribute cannot be ...
Add tests for weak functions
[Sema] Add tests for weak functions I found these checks to be missing, just add some simple cases. Differential Revision: https://reviews.llvm.org/D47200 git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@333283 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/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,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
e2c7691081b857651a031bf66e42dc1735d6b0a4
src/tests/express_tests.h
src/tests/express_tests.h
/** * \file express_tests.h * \date Jul 4, 2009 * \author anton * \details */ #ifndef EXPRESS_TESTS_H_ #define EXPRESS_TESTS_H_ typedef struct _EXPRESS_TEST_DESCRIPTOR { const char *name; int (*exec)(); } EXPRESS_TEST_DESCRIPTOR; #define REGISTER_EXPRESS_TEST(descr) static void _register_express_test(){ \ ...
/** * \file express_tests.h * \date Jul 4, 2009 * \author anton * \details */ #ifndef EXPRESS_TESTS_H_ #define EXPRESS_TESTS_H_ typedef struct _EXPRESS_TEST_DESCRIPTOR { const char *name; int (*exec)(); } EXPRESS_TEST_DESCRIPTOR; /* #define REGISTER_EXPRESS_TEST(descr) static void _register_express_test(){ \ ...
Change declaration express test macros
Change declaration express test macros
C
bsd-2-clause
vrxfile/embox-trik,vrxfile/embox-trik,vrxfile/embox-trik,Kefir0192/embox,Kefir0192/embox,embox/embox,Kakadu/embox,vrxfile/embox-trik,abusalimov/embox,Kefir0192/embox,mike2390/embox,mike2390/embox,gzoom13/embox,Kakadu/embox,gzoom13/embox,Kakadu/embox,Kakadu/embox,Kakadu/embox,abusalimov/embox,mike2390/embox,abusalimov/e...
1d038914e5659449cdf265169860766292a8bc93
test/CodeGen/statements.c
test/CodeGen/statements.c
// RUN: rm -f %S/statements.ll // RUN: %clang_cc1 -Wreturn-type %s -emit-llvm-only void test1(int x) { switch (x) { case 111111111111111111111111111111111111111: bar(); } } // Mismatched type between return and function result. int test2() { return; } void test3() { return 4; } void test4() { bar: baz: blong: bing:...
// RUN: %clang_cc1 -Wreturn-type %s -emit-llvm-only void test1(int x) { switch (x) { case 111111111111111111111111111111111111111: bar(); } } // Mismatched type between return and function result. int test2() { return; } void test3() { return 4; } void test4() { bar: baz: blong: bing: ; // PR5131 static long x = ...
Revert "Clean up in buildbot directories."
Revert "Clean up in buildbot directories." This reverts commit 113814. This patch was never intended to stay in the repository. If you are reading this from the future, we apologize for the noise. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@113990 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
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,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
eb90e028623c3e73faed4f1998af265e5ad8c90b
tests/ut_mimrotationanimation/ut_mimrotationanimation.h
tests/ut_mimrotationanimation/ut_mimrotationanimation.h
/* * This file is part of meego-im-framework * * * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * Contact: Nokia Corporation (directui@nokia.com) * * If you have questions regarding the use of this file, please contact * Nokia at directui@nokia.com. * * This library ...
Add missing header from previous commit
Changes: Add missing header from previous commit
C
lgpl-2.1
jpetersen/framework,sil2100/maliit-framework,sil2100/maliit-framework,RHawkeyed/framework,RHawkeyed/framework,sil2100/maliit-framework,jpetersen/framework,sil2100/maliit-framework,Elleo/framework,binlaten/framework,Elleo/framework
855e7cd9d230f0c2dc1699bdaafc4f5ccf4e968f
src/condor_includes/condor_fix_unistd.h
src/condor_includes/condor_fix_unistd.h
#ifndef FIX_UNISTD_H #define FIX_UNISTD_H #include <unistd.h> /* For some reason the g++ include files on Ultrix 4.3 fail to provide these prototypes, even though the Ultrix 4.2 versions did... Once again, OSF1 also chokes, unless _AES_SOURCE(?) is defined JCP */ #if defined(ULTRIX43) || defined(OSF1) #if def...
#ifndef FIX_UNISTD_H #define FIX_UNISTD_H #include <unistd.h> /* For some reason the g++ include files on Ultrix 4.3 fail to provide these prototypes, even though the Ultrix 4.2 versions did... Once again, OSF1 also chokes, unless _AES_SOURCE(?) is defined JCP */ #if defined(ULTRIX43) || defined(OSF1) #if def...
Change sbrk() prototype to sensible version with void * and ssize_t.
Change sbrk() prototype to sensible version with void * and ssize_t.
C
apache-2.0
djw8605/condor,zhangzhehust/htcondor,mambelli/osg-bosco-marco,zhangzhehust/htcondor,bbockelm/condor-network-accounting,neurodebian/htcondor,neurodebian/htcondor,zhangzhehust/htcondor,zhangzhehust/htcondor,djw8605/condor,clalancette/condor-dcloud,djw8605/condor,djw8605/htcondor,htcondor/htcondor,htcondor/htcondor,htcond...
428473bf2164a5e1c6932ce0fc809b603a70fe41
test/FrontendC/2009-08-11-AsmBlocksComplexJumpTarget.c
test/FrontendC/2009-08-11-AsmBlocksComplexJumpTarget.c
// RUN: %llvmgcc %s -fasm-blocks -S -o - | grep {\\\*1192} // Complicated expression as jump target // XFAIL: * // XTARGET: darwin asm void Method3() { mov eax,[esp+4] jmp [eax+(299-1)*4] }
Test for llvm-gcc patch 78762.
Test for llvm-gcc patch 78762. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@78763 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llv...
25b92604e2fcdbcabe747d9e8a51c04608785254
C/check_stack_crowth.c
C/check_stack_crowth.c
// from vim(os_unix.c) /* * Find out if the stack grows upwards or downwards. * "p" points to a variable on the stack of the caller. */ static void check_stack_growth(p) char *p; { int i; stack_grows_downwards = (p > (char *)&i); }
Copy code from vim to check stack grow direction.
[C] Copy code from vim to check stack grow direction.
C
bsd-2-clause
sgkim126/snippets,sgkim126/snippets,sgkim126/snippets,sgkim126/snippets,sgkim126/snippets,sgkim126/snippets,sgkim126/snippets,sgkim126/snippets,sgkim126/snippets,sgkim126/snippets,sgkim126/snippets,sgkim126/snippets
f554e0d35c5063abcb2074af2d1e2b960bee1e00
src/imap/cmd-close.c
src/imap/cmd-close.c
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */ #include "common.h" #include "commands.h" #include "imap-expunge.h" bool cmd_close(struct client_command_context *cmd) { struct client *client = cmd->client; struct mailbox *mailbox = client->mailbox; struct mail_storage *storage; if (!...
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */ #include "common.h" #include "commands.h" #include "imap-expunge.h" bool cmd_close(struct client_command_context *cmd) { struct client *client = cmd->client; struct mailbox *mailbox = client->mailbox; struct mail_storage *storage; if (!...
Synchronize the mailbox after expunging messages to actually get them expunged.
CLOSE: Synchronize the mailbox after expunging messages to actually get them expunged.
C
mit
LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot
7f779ba2a37c3c78968c991bc07a90bf7e4d1b53
src/server/helpers.h
src/server/helpers.h
#ifndef HELPERS_H #define HELPERS_H #include <stdlib.h> #include <netdb.h> #include <arpa/inet.h> #include <errno.h> #include <string> #define RCV_SIZE 2 char * get_ip_str(const struct sockaddr *sa, char *s, size_t maxlen); char * addrinfo_to_ip(const addrinfo info, char * ip); void *get_in_addr(const sockaddr *...
#ifndef HELPERS_H #define HELPERS_H #include <stdlib.h> #include <netdb.h> #include <arpa/inet.h> #include <errno.h> #include <cstring> #include <string> #define RCV_SIZE 2 char * get_ip_str(const struct sockaddr *sa, char *s, size_t maxlen); char * addrinfo_to_ip(const addrinfo info, char * ip); void *get_in_ad...
Fix ‘strncpy’ was not declared in this scope
[code/server] Fix ‘strncpy’ was not declared in this scope
C
mit
C4ptainCrunch/info-f-209,C4ptainCrunch/info-f-209,C4ptainCrunch/info-f-209
610c36d3e6b6f9ef92cd9729f180415a3369ceae
components/clk/src/clk.c
components/clk/src/clk.c
/* * Copyright 2014, NICTA * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. * * @TAG(NICTA_BSD) */ #include <stdint.h> #include <platsupport/clock.h> #include <clk.h> clock_sys_t cl...
/* * Copyright 2014, NICTA * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. * * @TAG(NICTA_BSD) */ #include <stdint.h> #include <platsupport/clock.h> #include <clk.h> clock_sys_t cl...
Fix due to the changes in libplatsupport.
Fix due to the changes in libplatsupport.
C
bsd-2-clause
smaccm/camkes-apps-DARPA--devel
c4497036cff93da286ae188cfd95aa3f01390c61
test/CodeGen/bitfield-promote.c
test/CodeGen/bitfield-promote.c
// RUN: %clang -target i686-unknown-unknown -O3 -emit-llvm -S -o - %s | FileCheck %s long long f0(void) { struct { unsigned f0 : 32; } x = { 18 }; return (long long) (x.f0 - (int) 22); } // CHECK: @f0() // CHECK: ret i64 4294967292 long long f1(void) { struct { unsigned f0 : 31; } x = { 18 }; return (long long) (...
// RUN: %clang -O3 -emit-llvm -S -o - %s | FileCheck %s long long f0(void) { struct { unsigned f0 : 32; } x = { 18 }; return (long long) (x.f0 - (int) 22); } // CHECK: @f0() // CHECK: ret i64 4294967292 long long f1(void) { struct { unsigned f0 : 31; } x = { 18 }; return (long long) (x.f0 - (int) 22); } // CHECK:...
Make ReadDataFromGlobal() and FoldReinterpretLoadFromConstPtr() Big-endian-aware.
llvm/ConstantFolding.cpp: Make ReadDataFromGlobal() and FoldReinterpretLoadFromConstPtr() Big-endian-aware. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@167595 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
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,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
be7a096ef7a305bed73421473c26313306d192a0
uefi-sct/SctPkg/UEFI/Protocol/RiscVBoot.h
uefi-sct/SctPkg/UEFI/Protocol/RiscVBoot.h
/** @file Copyright (c) 2022, Ventana Micro Systems Inc. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource...
Add header file for RISCV_EFI_BOOT_PROTOCOL
uefi-sct/SctPkg: Add header file for RISCV_EFI_BOOT_PROTOCOL REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3837 RISC-V platforms need to support new RISCV_EFI_BOOT_PROTOCOL to communicate the boot hart ID to the operating system. Add the required header file for this protocol. The specification of the protocol...
C
bsd-2-clause
tianocore/edk2-test,tianocore/edk2-test,tianocore/edk2-test
2f6d322b526ced2ffedb55af29179a87fbae4635
ui/events/ozone/evdev/event_device_util.h
ui/events/ozone/evdev/event_device_util.h
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_OZONE_EVDEV_EVENT_DEVICE_UTIL_H_ #define UI_EVENTS_OZONE_EVDEV_EVENT_DEVICE_UTIL_H_ #include <limits.h> namespace ui { #define EVDEV_...
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_OZONE_EVDEV_EVENT_DEVICE_UTIL_H_ #define UI_EVENTS_OZONE_EVDEV_EVENT_DEVICE_UTIL_H_ #include <limits.h> namespace ui { #define EVDEV_...
Make EvdevBitIsSet return a bool
Make EvdevBitIsSet return a bool Can't return an int since the result of the operation is a long, so it can overflow an int leading to errors. Since all usages of EvdevBitIsSet are looking for a boolean response change it to bool. BUG=none NOTRY=true Review URL: https://codereview.chromium.org/643663003 Cr-Commit-P...
C
bsd-3-clause
dushu1203/chromium.src,Just-D/chromium-1,chuan9/chromium-crosswalk,Chilledheart/chromium,krieger-od/nwjs_chromium.src,M4sse/chromium.src,krieger-od/nwjs_chromium.src,M4sse/chromium.src,dednal/chromium.src,jaruba/chromium.src,Pluto-tv/chromium-crosswalk,dednal/chromium.src,ltilve/chromium,axinging/chromium-crosswalk,Jon...
ad8bedc4b56f6376e32938c1cdbf7156817a9d17
examples/ipv6/slip-radio/slip-radio-cooja.c
examples/ipv6/slip-radio/slip-radio-cooja.c
/* * Copyright (c) 2011, Swedish Institute of Computer Science * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * no...
Add slip-radio interface module for cooja-radio
Add slip-radio interface module for cooja-radio
C
bsd-3-clause
bluerover/6lbr,bluerover/6lbr,bluerover/6lbr,bluerover/6lbr,bluerover/6lbr,bluerover/6lbr,bluerover/6lbr
1398f48d8247d4cc3d11fff787d39e79228e6f04
ios/template/GMPExample/AppDelegate.h
ios/template/GMPExample/AppDelegate.h
// // Copyright (c) 2015 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agre...
// // Copyright (c) 2015 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agre...
Fix order of property attributes
Fix order of property attributes Change-Id: I7a313d25a6707bada03328b0799300f07a26ba3b
C
apache-2.0
ravifullestop/google-services,ardock/google-services,ardock/google-services,mashamaziuk/google-services,rahulbhati/google-services,shinhithi/google-services,dejavu1988/google-services,seecahkhing/google-services,cloudmine/android-gcm-example,wonderL0/second,javijuol/google-services,vinod-jaiswal18/google-services,hay12...
aca553955645429e0d8fc7cdfcf9dab1f541c0f8
src/libcol/util/logger.c
src/libcol/util/logger.c
#include <stdarg.h> #include "col-internal.h" struct ColLogger { ColInstance *col; /* This is reset on each call to col_log() */ apr_pool_t *tmp_pool; }; ColLogger * logger_make(ColInstance *col) { ColLogger *logger; logger = apr_pcalloc(col->pool, sizeof(*logger)); logger->tmp_pool = make_s...
#include <stdarg.h> #include "col-internal.h" struct ColLogger { ColInstance *col; /* This is reset on each call to col_log() */ apr_pool_t *tmp_pool; }; ColLogger * logger_make(ColInstance *col) { ColLogger *logger; logger = apr_pcalloc(col->pool, sizeof(*logger)); logger->tmp_pool = make_s...
Include port number in col_log() output.
Include port number in col_log() output.
C
mit
bloom-lang/c4,bloom-lang/c4,bloom-lang/c4
3a17534c8858f0a95f6347f96aff11948f4267b8
eg/inc/LinkDef.h
eg/inc/LinkDef.h
/* @(#)root/eg:$Name: $:$Id: LinkDef.h,v 1.2 2000/09/06 15:15:18 brun Exp $ */ /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
/* @(#)root/eg:$Name: $:$Id: LinkDef.h,v 1.3 2000/09/08 16:42:12 brun Exp $ */ /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
Use option + for TAttParticle and TPrimary
Use option + for TAttParticle and TPrimary git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@932 27541ba8-7e3a-0410-8455-c3a389f83636
C
lgpl-2.1
bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,dawehner/root,dawehner/root
175cd65e582181d18041f604ffd06730f1109e86
SQLPackRatJSON/SQLPackRatJSON-Bridging-Header.h
SQLPackRatJSON/SQLPackRatJSON-Bridging-Header.h
// // Use this file to import your target's public headers that you would like to expose to Swift. // #import "SQLPackRat.h"
// // Use this file to import your target's public headers that you would like to expose to Swift. // #import "SQLPackRat.h" #import <sqlite3.h>
Include sqlite3 in bridging header.
Include sqlite3 in bridging header.
C
mit
tewha/SQLPackRat,tewha/SQLPackRat
518d3b528894007e746413079241cfba4ae5c07a
clangd/index/SymbolCollector.h
clangd/index/SymbolCollector.h
//===--- SymbolCollector.h ---------------------------------------*- C++-*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===--- SymbolCollector.h ---------------------------------------*- C++-*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Remove the const specifier of the takeSymbol method
[clangd] Remove the const specifier of the takeSymbol method otherwise we will copy an object. git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@320574 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra
c21f7a527f7757a0e246cea521a5dd3b8e1224d5
drivers/char/hvc_irq.c
drivers/char/hvc_irq.c
/* * Copyright IBM Corp. 2001,2008 * * This file contains the IRQ specific code for hvc_console * */ #include <linux/interrupt.h> #include "hvc_console.h" static irqreturn_t hvc_handle_interrupt(int irq, void *dev_instance) { /* if hvc_poll request a repoll, then kick the hvcd thread */ if (hvc_poll(dev_insta...
/* * Copyright IBM Corp. 2001,2008 * * This file contains the IRQ specific code for hvc_console * */ #include <linux/interrupt.h> #include "hvc_console.h" static irqreturn_t hvc_handle_interrupt(int irq, void *dev_instance) { /* if hvc_poll request a repoll, then kick the hvcd thread */ if (hvc_poll(dev_insta...
Call free_irq() only if request_irq() was successful
hvc_console: Call free_irq() only if request_irq() was successful Only call free_irq if we marked the request_irq has having succeeded instead of whenever the the sub-driver identified the interrupt to use. Signed-off-by: Milton Miller <8bd50e0fc26e21e23b28837d9acdf866b237c39d@bga.com> Signed-off-by: Benjamin Herrens...
C
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_k...
c8d56e1370657b609066f18fddac2b3005cfe3e0
ext/cuuid/cuuid.c
ext/cuuid/cuuid.c
#include <ruby.h> #include <uuid/uuid.h> // Define our module constant VALUE CUUID = Qnil; // Prototype this void Init_cuuid(); // Prototype CUUID.generate VALUE method_generate(); // Define CUUID and the fact it has a class method called generate void Init_cuuid() { int arg_count = 0; CUUID = rb_define_module(...
#include <ruby.h> #include <uuid/uuid.h> // Define our module constant VALUE CUUID = Qnil; // Prototype this void Init_cuuid(); // Prototype CUUID.generate VALUE method_generate(); // Define CUUID and the fact it has a class method called generate void Init_cuuid() { int arg_count = 0; CUUID = rb_define_module(...
Make method_generate a static method
Make method_generate a static method Thanks to @gnufied for the advice!
C
mit
EmberAds/cuuid,EmberAds/cuuid,EmberAds/cuuid
bafe68034e3ef5e9f512bd0468001caf34981c41
include/asm-avr32/byteorder.h
include/asm-avr32/byteorder.h
/* * AVR32 endian-conversion functions. */ #ifndef __ASM_AVR32_BYTEORDER_H #define __ASM_AVR32_BYTEORDER_H #include <asm/types.h> #include <linux/compiler.h> #ifdef __CHECKER__ extern unsigned long __builtin_bswap_32(unsigned long x); extern unsigned short __builtin_bswap_16(unsigned short x); #endif #define __arc...
/* * AVR32 endian-conversion functions. */ #ifndef __ASM_AVR32_BYTEORDER_H #define __ASM_AVR32_BYTEORDER_H #include <asm/types.h> #include <linux/compiler.h> #ifdef __CHECKER__ extern unsigned long __builtin_bswap_32(unsigned long x); extern unsigned short __builtin_bswap_16(unsigned short x); #endif /* * avr32-l...
Work around byteswap bug in gcc < 4.2
avr32: Work around byteswap bug in gcc < 4.2 gcc versions earlier than 4.2 sign-extends the result of le16_to_cpu() and friends when we implement __arch__swabX() using __builtin_bswap_X(). Disable our arch-specific optimizations when those gcc versions are being used. Signed-off-by: Haavard Skinnemoen <de7418319212d7...
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,Krist...
5488c753530b7b08437df6115a2c2c6156c2f0f6
include/linux/sunserialcore.h
include/linux/sunserialcore.h
/* sunserialcore.h * * Generic SUN serial/kbd/ms layer. Based entirely * upon drivers/sbus/char/sunserial.h which is: * * Copyright (C) 1997 Eddie C. Dost (ecd@skynet.be) * * Port to new UART layer is: * * Copyright (C) 2002 David S. Miller (davem@redhat.com) */ #ifndef _SERIAL_SUN_H #define _SERIAL_SUN_H...
/* sunserialcore.h * * Generic SUN serial/kbd/ms layer. Based entirely * upon drivers/sbus/char/sunserial.h which is: * * Copyright (C) 1997 Eddie C. Dost (ecd@skynet.be) * * Port to new UART layer is: * * Copyright (C) 2002 David S. Miller (davem@redhat.com) */ #ifndef _SERIAL_SUN_H #define _SERIAL_SUN_H...
Fix build breakage from decoupling pps from tty
pps: Fix build breakage from decoupling pps from tty Fixes: tree: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-next head: bc80fbe46be7430487a45ad92841932bb2eaa3e6 commit: 593fb1ae457aab28b392ac114f6e3358788da985 pps: Move timestamp read into PPS code proper date: 78 minutes ago config: make A...
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Program...
f768655c72cb93e263763f23b3238acd04ac2a19
chrome/renderer/webview_color_overlay.h
chrome/renderer/webview_color_overlay.h
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_RENDERER_WEBVIEW_COLOR_OVERLAY_H_ #define CHROME_RENDERER_WEBVIEW_COLOR_OVERLAY_H_ #pragma once #include "base/basictypes.h" #include ...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_RENDERER_WEBVIEW_COLOR_OVERLAY_H_ #define CHROME_RENDERER_WEBVIEW_COLOR_OVERLAY_H_ #pragma once #include "base/basictypes.h" #include ...
Fix build break from the future.
Fix build break from the future. TBR=pfeldman Review URL: http://codereview.chromium.org/8801036 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@113098 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
Fireblend/chromium-crosswalk,hujiajie/pa-chromium,anirudhSK/chromium,junmin-zhu/chromium-rivertrail,pozdnyakov/chromium-crosswalk,nacl-webkit/chrome_deps,Fireblend/chromium-crosswalk,pozdnyakov/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,anirudhSK/chromium,bright-sparks/chromium-spacewalk,bright-sparks/chromiu...
0709d82d1ad90a0882e22fd93e3cee8756061248
tests/regression/06-symbeq/37-funloop_index.c
tests/regression/06-symbeq/37-funloop_index.c
// PARAM: --disable ana.mutex.disjoint_types --set ana.activated[+] "'var_eq'" --set ana.activated[+] "'symb_locks'" // copy of 06/02 with additional index accesses #include<pthread.h> #include<stdio.h> struct cache_entry { int refs; pthread_mutex_t refs_mutex; } cache[10]; void cache_entry_addref(struct cache_e...
Add symb_locks test with irrelevant index access
Add symb_locks test with irrelevant index access
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
95309dd6fd16f076d78e184a1b49a26e464ffa8b
src/TundraCore/Scene/AttributeChangeType.h
src/TundraCore/Scene/AttributeChangeType.h
/** For conditions of distribution and use, see copyright notice in LICENSE @file AttributeChangeType.h @brief Dummy class containing enumeration of attribute/component change types for replication. This is done in separate file in order to overcome cyclic inclusion dependency be...
/** For conditions of distribution and use, see copyright notice in LICENSE @file AttributeChangeType.h @brief Enumeration of attribute/component change types for replication. This is done in separate file in order to overcome cyclic inclusion dependency between IAttribute and IC...
Make totally unnecessary AttributeChange class namespace instead keeping syntax intact.
Make totally unnecessary AttributeChange class namespace instead keeping syntax intact.
C
apache-2.0
realXtend/tundra-urho3d,realXtend/tundra-urho3d,realXtend/tundra-urho3d,realXtend/tundra-urho3d,realXtend/tundra-urho3d
9a833c8121167c72036d5c9a0c3559674fbe2513
MdePkg/Library/UefiIfrSupportLib/UefiIfrLibraryInternal.h
MdePkg/Library/UefiIfrSupportLib/UefiIfrLibraryInternal.h
/** @file Utility functions which helps in opcode creation, HII configuration string manipulations, pop up window creations, setup browser persistence data set and get. Copyright (c) 2007 - 2008, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under t...
/** @file Utility functions which helps in opcode creation, HII configuration string manipulations, pop up window creations, setup browser persistence data set and get. Copyright (c) 2007 - 2008, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under t...
Add missing protocol header file.
Add missing protocol header file. git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@6265 6f19259b-4bc3-4df7-8a09-765794883524
C
bsd-2-clause
MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2
ffa8a7e219db655b8cf1a6a091b4e599813a5ebd
Pod/Classes/AVEHTTPRequestOperationBuilder.h
Pod/Classes/AVEHTTPRequestOperationBuilder.h
// // AVEHTTPRequestOperationBuilder.h // Avenue // // Created by MediaHound on 10/31/14. // // #import <Foundation/Foundation.h> #import <AFNetworking/AFNetworking.h> #import "AVERequestBuilder.h" /** * A simple AVERequestBuilder that can be configured with a baseURL, request/response serializers, * and a sec...
// // AVEHTTPRequestOperationBuilder.h // Avenue // // Created by MediaHound on 10/31/14. // // #import <Foundation/Foundation.h> #import <AFNetworking/AFNetworking.h> #import "AVERequestBuilder.h" /** * A simple AVERequestBuilder that can be configured with a baseURL, request/response serializers, * and a sec...
Update initWithBaseURL to take a URL
Update initWithBaseURL to take a URL
C
apache-2.0
MediaHound/Avenue