commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
1
4.87k
subject
stringlengths
15
778
message
stringlengths
15
8.75k
lang
stringclasses
266 values
license
stringclasses
13 values
repos
stringlengths
5
127k
96e593920711c2b6cecace99061d02d1b8738f10
LYCategory/_Foundation/_Fix/NSNumber+Fix.h
LYCategory/_Foundation/_Fix/NSNumber+Fix.h
// // NSNumber+Fix.h // LYCategory // // Created by Rick Luo on 11/25/13. // Copyright (c) 2013 Luo Yu. All rights reserved. // #import <Foundation/Foundation.h> @interface NSNumber (Fix) - (id)objectAtIndex:(NSUInteger)index; - (id)objectForKey:(id)aKey; - (BOOL)isEqualToString:(NSString *)aString; - (NSUInt...
// // NSNumber+Fix.h // LYCategory // // Created by Rick Luo on 11/25/13. // Copyright (c) 2013 Luo Yu. All rights reserved. // #import <Foundation/Foundation.h> @interface NSNumber (Fix) - (id)objectAtIndex:(NSUInteger)index; - (id)objectForKey:(id)aKey; - (BOOL)isEqualToString:(NSString *)aString; - (NSUInt...
Fix : is real for number object.
Fix : is real for number object.
C
mit
blodely/LYCategory,blodely/LYCategory,blodely/LYCategory,blodely/LYCategory
7363dfbdfb0f51a5a52c1eecdbb847dfcd026f4a
test/asan/TestCases/printf-4.c
test/asan/TestCases/printf-4.c
// RUN: %clang_asan -O2 %s -o %t // RUN: %env_asan_opts=check_printf=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s // RUN: not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s // FIXME: sprintf is not intercepted on Windows yet. // XFAIL: win32 #include <stdio.h> int main() { volatile char c = '0'; ...
// RUN: %clang_asan -O2 %s -o %t // RUN: %env_asan_opts=check_printf=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s // RUN: not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s // FIXME: sprintf is not intercepted on Windows yet. // XFAIL: win32 #include <stdio.h> int main() { volatile char c = '0'; ...
Switch to fputs stderr to try to fix output buffering issues
Switch to fputs stderr to try to fix output buffering issues git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@263293 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
5ae017de6d07cd1fae4e475d5b64423551828f87
include/clang/Basic/AllDiagnostics.h
include/clang/Basic/AllDiagnostics.h
//===--- AllDiagnostics.h - Aggregate Diagnostic headers --------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===--- AllDiagnostics.h - Aggregate Diagnostic headers --------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Use a static_assert instead of using the old array of size -1 trick.
[Basic] Use a static_assert instead of using the old array of size -1 trick. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@305439 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/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,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
d463708dd79dc9c1689a8ec5aa6ae6fc4d84d8c8
planck-c/timers.c
planck-c/timers.c
#include <stddef.h> #include <time.h> #include <pthread.h> #include <stdlib.h> #include "timers.h" struct timer_data_t { long millis; timer_callback_t timer_callback; void* data; }; void *timer_thread(void *data) { struct timer_data_t *timer_data = data; struct timespec t; t.tv_sec = timer_d...
#include <stddef.h> #include <time.h> #include <pthread.h> #include <stdlib.h> #include "timers.h" struct timer_data_t { long millis; timer_callback_t timer_callback; void* data; }; void *timer_thread(void *data) { struct timer_data_t *timer_data = data; struct timespec t; t.tv_sec = timer_d...
Fix bug if timer executed with 0 ms
Fix bug if timer executed with 0 ms
C
epl-1.0
mfikes/planck,slipset/planck,mfikes/planck,mfikes/planck,slipset/planck,slipset/planck,slipset/planck,mfikes/planck,mfikes/planck,mfikes/planck,slipset/planck
2cfe7b5f59bd396e82660360575b71489c6c38e7
src/newspaper.h
src/newspaper.h
#ifndef _NEWSPAPER_H_ #define _NEWSPAPER_H_ #include <string> #include "advertenum.h" using namespace std; class Newspaper { string name; int textPrice, imagePrice, textImagePrice; public: Newspaper(const string& name): name(name) {} int getPriceFor(AdvertType type) const { switch(type) { ...
#ifndef NEWSPAPER_H #define NEWSPAPER_H #include <string> #include "advertenum.h" using namespace std; class Newspaper { string name; int textPrice, imagePrice, textImagePrice; public: Newspaper(): name("") {} Newspaper(const string& name): name(name) {} int getPriceFor(AdvertType type) const { ...
Fix header guard, add impossible return value, add default name
Fix header guard, add impossible return value, add default name
C
mit
nyz93/advertapp,nyz93/advertapp
468fc8cd0f24a1bd07a586017cc55c9a014b4e04
src/webwidget.h
src/webwidget.h
#ifndef WEBWIDGET_H #define WEBWIDGET_H #include "webpage.h" #include <QtWebKit> #include <QStringList> class WebWidget : public QWebView { Q_OBJECT public: WebWidget(QWidget * parent=0); virtual void wheelEvent(QWheelEvent *); public slots: void changeFor(WebPage::UserAgents...
/* Mobile On Desktop - A Smartphone emulator on desktop * Copyright (c) 2012 Régis FLORET * * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retai...
Add BSD header on top of all files (forgot some files)
Add BSD header on top of all files (forgot some files)
C
bsd-3-clause
regisf/mobile-on-desktop,regisf/mobile-on-desktop
2a3b7a9e9928124865cfce561f410a9018aaeb94
GTMAppAuth/Sources/Public/GTMAppAuth/GTMAppAuth.h
GTMAppAuth/Sources/Public/GTMAppAuth/GTMAppAuth.h
/*! @file GTMAppAuth.h @brief GTMAppAuth SDK @copyright Copyright 2016 Google Inc. @copydetails 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 ht...
/*! @file GTMAppAuth.h @brief GTMAppAuth SDK @copyright Copyright 2016 Google Inc. @copydetails 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 ht...
Move to iOS and Mac targets only.
Move to iOS and Mac targets only.
C
apache-2.0
google/GTMAppAuth,google/GTMAppAuth
7cc9b51d1d2e091baf4f72a02e46ac1471936e7f
config.h
config.h
// batwarn - (C) 2015-2016 Jeffrey E. Bedard #ifndef CONFIG_H #define CONFIG_H #define GAMMA_NORMAL 1.0 #define GAMMA_WARNING 5.0 enum { CRIT_PERCENT=5 ,LOW_PERCENT=10 ,FULL_PERCENT=90 }; #ifndef DEBUG #define WAIT 60 #else//DEBUG #define WAIT 1 #endif//!DEBUG #define BATSYSFILE "/sys/class/power_supply/BA...
// batwarn - (C) 2015-2016 Jeffrey E. Bedard #ifndef BW_CONFIG_H #define BW_CONFIG_H #define GAMMA_NORMAL 1.0 #define GAMMA_WARNING 5.0 enum PercentCat { CRIT_PERCENT=5, LOW_PERCENT=10, FULL_PERCENT=90 }; // Delay for checking system files: #ifndef DEBUG enum { WAIT = 60 }; #else//DEBUG enum { WAIT = 1 }; #...
Convert defines to enums. Named percentage category enum. Documented values.
Convert defines to enums. Named percentage category enum. Documented values.
C
mit
jefbed/batwarn,jefbed/batwarn
bccdf2ad17f4e1ee9c7900e7e1dc95f61f700ea3
memory.c
memory.c
/* Copyright (c) 2012 Francis Russell <francis@unchartedbackwaters.co.uk> * * 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...
/* Copyright (c) 2012 Francis Russell <francis@unchartedbackwaters.co.uk> * * 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...
Fix warning on printing value of type size_t.
Fix warning on printing value of type size_t. Monotone-Parent: f3b43f63ea982bf3ea58c1b0757c412b6a05a42a Monotone-Revision: 159ac37e2f3b80788fff369effa2496f32bc5adf
C
mit
FrancisRussell/lfmerge
ad902e3138ff67a76e7c3d8d6bf7d7d4f76fc479
HTMLKit/CSSAttributeSelector.h
HTMLKit/CSSAttributeSelector.h
// // CSSAttributeSelector.h // HTMLKit // // Created by Iska on 14/05/15. // Copyright (c) 2015 BrainCookie. All rights reserved. // #import <Foundation/Foundation.h> #import "CSSSelector.h" #import "CSSSimpleSelector.h" typedef NS_ENUM(NSUInteger, CSSAttributeSelectorType) { CSSAttributeSelectorExists, CSSAtt...
// // CSSAttributeSelector.h // HTMLKit // // Created by Iska on 14/05/15. // Copyright (c) 2015 BrainCookie. All rights reserved. // #import <Foundation/Foundation.h> #import "CSSSelector.h" #import "CSSSimpleSelector.h" typedef NS_ENUM(NSUInteger, CSSAttributeSelectorType) { CSSAttributeSelectorExists, CSSAtt...
Add nullability specifiers to attribute selector
Add nullability specifiers to attribute selector
C
mit
iabudiab/HTMLKit,iabudiab/HTMLKit,iabudiab/HTMLKit,iabudiab/HTMLKit,iabudiab/HTMLKit
ea2b85c388cb88e2d65a632f694bd76b285cb5ab
Modules/Core/SpatialObjects/include/itkMetaEvent.h
Modules/Core/SpatialObjects/include/itkMetaEvent.h
/*========================================================================= * * Copyright Insight Software Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * h...
/*========================================================================= * * Copyright Insight Software Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * h...
Clarify strange syntax for itk::MetaEvent
DOC: Clarify strange syntax for itk::MetaEvent The itk::MetaEvent inherits from the global namespace ::MetaEvent that is provided by the MetaIO/src/metaEvent.h class. Change-Id: I43aaeeee22298b69cfe4f1acb06186f9599586ac
C
apache-2.0
ajjl/ITK,biotrump/ITK,jmerkow/ITK,zachary-williamson/ITK,fbudin69500/ITK,msmolens/ITK,Kitware/ITK,Kitware/ITK,malaterre/ITK,richardbeare/ITK,spinicist/ITK,malaterre/ITK,hjmjohnson/ITK,msmolens/ITK,InsightSoftwareConsortium/ITK,LucasGandel/ITK,jcfr/ITK,fedral/ITK,spinicist/ITK,ajjl/ITK,InsightSoftwareConsortium/ITK,thew...
a4d274a780125cab0aa21ffd2a4060a66e2512d4
wms/WMSQueryDataLayer.h
wms/WMSQueryDataLayer.h
// ====================================================================== /*! * \brief A Meb Maps Service Layer data structure for query data layer * * Characteristics: * * - * - */ // ====================================================================== #pragma once #include "WMSConfig.h" namespace SmartM...
// ====================================================================== /*! * \brief A Meb Maps Service Layer data structure for query data layer * * Characteristics: * * - * - */ // ====================================================================== #pragma once #include "WMSConfig.h" namespace SmartM...
Use override (pacify clang++ warning)
Use override (pacify clang++ warning)
C
mit
fmidev/smartmet-plugin-wms,fmidev/smartmet-plugin-wms,fmidev/smartmet-plugin-wms,fmidev/smartmet-plugin-wms
93fefee3d2cd7f0bf773595d8e41f80fd9909897
Settings/Controls/Spinner.h
Settings/Controls/Spinner.h
#pragma once #include "Control.h" #include <CommCtrl.h> class Spinner : public Control { public: Spinner() { } Spinner(int id, HWND parent) : Control(id, parent) { } virtual void Enable(); virtual void Disable(); void Buddy(int buddyId); /// <summary>Sets the range (min, max...
#pragma once #include "Control.h" #include <CommCtrl.h> /// <summary> /// Manages a 'spin control': a numeric edit box with a up/down 'buddy' to /// increment or decrement the current value of the box. /// </summary> class Spinner : public Control { public: Spinner() { } Spinner(int id, HWND parent) : ...
Add summary for spin control class
Add summary for spin control class
C
bsd-2-clause
malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX,Soulflare3/3RVX,malensek/3RVX
9e1ca6b5bc40d15f5c45189f6ca0220912dcfed5
src/qt/clientmodel.h
src/qt/clientmodel.h
#ifndef CLIENTMODEL_H #define CLIENTMODEL_H #include <QObject> class OptionsModel; class AddressTableModel; class TransactionTableModel; class CWallet; QT_BEGIN_NAMESPACE class QDateTime; QT_END_NAMESPACE // Interface to Bitcoin network client class ClientModel : public QObject { Q_OBJECT public: // The onl...
#ifndef CLIENTMODEL_H #define CLIENTMODEL_H #include <QObject> class OptionsModel; class AddressTableModel; class TransactionTableModel; class CWallet; QT_BEGIN_NAMESPACE class QDateTime; QT_END_NAMESPACE // Interface to Bitcoin network client class ClientModel : public QObject { Q_OBJECT public: explicit C...
Remove no longer valid comment
Remove no longer valid comment
C
mit
reddink/reddcoin,Cannacoin-Project/Cannacoin,ahmedbodi/poscoin,reddcoin-project/reddcoin,joroob/reddcoin,coinkeeper/2015-06-22_19-10_cannacoin,ahmedbodi/poscoin,joroob/reddcoin,coinkeeper/2015-06-22_19-10_cannacoin,bmp02050/ReddcoinUpdates,reddcoin-project/reddcoin,Cannacoin-Project/Cannacoin,bmp02050/ReddcoinUpdates,r...
b07d89ca854f79eca700a95f5e1d23d5b5f6f1ba
SFBluetoothLowEnergyDevice/Classes/SFBLELogging.h
SFBluetoothLowEnergyDevice/Classes/SFBLELogging.h
// // SFBLELogging.h // SFBluetoothLowEnergyDevice // // Created by Thomas Billicsich on 2014-04-04. // Copyright (c) 2014 Thomas Billicsich. All rights reserved. #import <CocoaLumberjack/CocoaLumberjack.h> // To define a different local (per file) log level // put the following line _before_ the import of SFBLE...
// // SFBLELogging.h // SFBluetoothLowEnergyDevice // // Created by Thomas Billicsich on 2014-04-04. // Copyright (c) 2014 Thomas Billicsich. All rights reserved. #import <CocoaLumberjack/CocoaLumberjack.h> // To define a different local (per file) log level // put the following line _before_ the import of SFBLE...
Set default log level to info
Set default log level to info [Delivers #87082830]
C
mit
martinjacala/SFBluetoothLowEnergyDevice,simpliflow/SFBluetoothLowEnergyDevice
6bfc82aaf18e42fcc7328b81ffb3ec3cf360d732
webrtc/common_audio/signal_processing/cross_correlation.c
webrtc/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-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#9491}
C
bsd-3-clause
ShiftMediaProject/libilbc,TimothyGu/libilbc,TimothyGu/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc
70a3bea036ff5c4ddfc3d80b955535a646d334ae
src/lib/hex-dec.c
src/lib/hex-dec.c
/* Copyright (c) 2005-2011 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "hex-dec.h" void dec2hex(unsigned char *hexstr, uintmax_t dec, unsigned int hexstr_size) { unsigned int i; for (i = 0; i < hexstr_size; i++) { unsigned int value = dec & 0x0f; if (value < 10) hexstr[hexstr...
/* Copyright (c) 2005-2011 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "hex-dec.h" void dec2hex(unsigned char *hexstr, uintmax_t dec, unsigned int hexstr_size) { unsigned int i; for (i = 0; i < hexstr_size; i++) { unsigned int value = dec & 0x0f; if (value < 10) hexstr[hexstr...
Allow data to contain also lowercase hex characters.
hex2dec(): Allow data to contain also lowercase hex characters.
C
mit
damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot
2c058b10c0dc3b2df2fb6d0a203c2abca300c794
tests/regression/34-localwn_restart/04-hh.c
tests/regression/34-localwn_restart/04-hh.c
// SKIP PARAM: --enable ana.int.interval --set solver td3 --enable ana.base.partition-arrays.enabled --set ana.activated "['base','threadid','threadflag','expRelation','mallocWrapper','apron']" --set ana.base.privatization none --set ana.apron.privatization dummy --set sem.int.signed_overflow assume_none // This is pa...
// SKIP PARAM: --enable ana.int.interval --set solver td3 --set ana.base.arrays.domain partitioned --set ana.activated "['base','threadid','threadflag','expRelation','mallocWrapper','apron']" --set ana.base.privatization none --set ana.apron.privatization dummy --set sem.int.signed_overflow assume_none // This is part...
Fix partitioned array option in additional test
Fix partitioned array option in additional test
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
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
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
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
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
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
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...
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
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...
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...
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
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...
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...
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...
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...
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...
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...
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...
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
ecef06a4970c3d6283b62be2ceeb0d8c96f039d8
include/llvm/Transforms/Utils/PromoteMemToReg.h
include/llvm/Transforms/Utils/PromoteMemToReg.h
//===- PromoteMemToReg.h - Promote Allocas to Scalars -----------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===- PromoteMemToReg.h - Promote Allocas to Scalars -----------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Remove a stale forward declaration.
Remove a stale forward declaration. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@156770 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,GPU...
ad5169ceccdaa800c2c81d46148700ceeb806e48
AFToolkit/AFToolkit.h
AFToolkit/AFToolkit.h
// // Toolkit header to include the main headers of the 'AFToolkit' library. // // Macros #import "AFDefines.h" #import "AFKeypath.h" // Categories #import "NSObject+Runtime.h" #import "NSBundle+Universal.h" #import "UITableViewCell+Universal.h" #import "UITableView+Universal.h" #import "UIView+Render.h" // Common #...
// // Toolkit header to include the main headers of the 'AFToolkit' library. // // Macros #import "AFDefines.h" #import "AFKeypath.h" // Categories #import "NSObject+Runtime.h" #import "NSBundle+Universal.h" #import "UITableViewCell+Universal.h" #import "UITableView+Universal.h" #import "UIView+Render.h" // Common #...
Add object model to toolkit.h.
Add object model to toolkit.h.
C
mit
mlatham/AFToolkit
25c233eaaaf0621eed969fb0b0a32fac4c56ab09
HTMLKit/HTMLElement.h
HTMLKit/HTMLElement.h
// // HTMLElement.h // HTMLKit // // Created by Iska on 05/10/14. // Copyright (c) 2014 BrainCookie. All rights reserved. // #import <Foundation/Foundation.h> @interface HTMLElement : NSObject @end
// // HTMLElement.h // HTMLKit // // Created by Iska on 05/10/14. // Copyright (c) 2014 BrainCookie. All rights reserved. // #import <Foundation/Foundation.h> @interface HTMLElement : NSObject @property (nonatomic, strong, readonly) NSString *tagName; @end
Add tagname attribute for HTML Element
Add tagname attribute for HTML Element
C
mit
iabudiab/HTMLKit,iabudiab/HTMLKit,iabudiab/HTMLKit,iabudiab/HTMLKit,iabudiab/HTMLKit
0487e2384269e8de92fae35958b1d271c0a649a7
ports/nrf/boards/arduino_primo/nrf52_hal_conf.h
ports/nrf/boards/arduino_primo/nrf52_hal_conf.h
#ifndef NRF52_HAL_CONF_H__ #define NRF52_HAL_CONF_H__ #define HAL_UART_MODULE_ENABLED #define HAL_SPI_MODULE_ENABLED #define HAL_TIME_MODULE_ENABLED #define HAL_PWM_MODULE_ENABLED #define HAL_RTC_MODULE_ENABLED #define HAL_TIMER_MODULE_ENABLED #define HAL_TWI_MODULE_ENABLED #define HAL_ADCE_MODULE_ENABLED #define HAL_...
#ifndef NRF52_HAL_CONF_H__ #define NRF52_HAL_CONF_H__ #define HAL_UART_MODULE_ENABLED #define HAL_SPI_MODULE_ENABLED #define HAL_TIME_MODULE_ENABLED #define HAL_PWM_MODULE_ENABLED #define HAL_RTC_MODULE_ENABLED #define HAL_TIMER_MODULE_ENABLED #define HAL_TWI_MODULE_ENABLED #define HAL_ADCE_MODULE_ENABLED #define HAL_...
Add missing hal_rng config used by random mod.
nrf/boards/arduino_primo: Add missing hal_rng config used by random mod.
C
mit
pfalcon/micropython,tobbad/micropython,bvernoux/micropython,trezor/micropython,pramasoul/micropython,adafruit/circuitpython,adafruit/circuitpython,selste/micropython,pramasoul/micropython,pozetroninc/micropython,pozetroninc/micropython,bvernoux/micropython,tobbad/micropython,pozetroninc/micropython,pfalcon/micropython,...
33dfe3a73eeb4e115247a18a46029740ab4cf31d
include/arch/x64/cpu.h
include/arch/x64/cpu.h
#pragma once #include <truth/types.h> #define CPUID_SMAP (1 << 20) #define CPUID_SMEP (1 << 7) static inline void cpuid(uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx) { __asm__ volatile ("cpuid" : "=a"(*eax), "=b"(*ebx), "=c"(*ecx), "=d"(*edx) ...
#pragma once #include <truth/types.h> #define CPUID_SMAP (1 << 20) #define CPUID_SMEP (1 << 7) #define CPU_CR4_SMEP_BIT 20 #define CPU_CR4_SMAP_BIT 21 static inline void cpuid(uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx) { __asm__ volatile ("cpuid" : "=a"(*eax), "=b"(*ebx)...
Define cr4 SMEP & SMAP bits
Define cr4 SMEP & SMAP bits
C
mit
iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth
ae86bb5dc591f0e2f6e423499e84bb603a3573e7
src/gst-plugins/crowddetector/crowddetector.c
src/gst-plugins/crowddetector/crowddetector.c
/* * (C) Copyright 2013 Kurento (http://kurento.org/) * * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser General Public License * (LGPL) version 2.1 which accompanies this distribution, and is available at * http://www.gnu.org/licenses/lgpl-...
/* * (C) Copyright 2013 Kurento (http://kurento.org/) * * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser General Public License * (LGPL) version 2.1 which accompanies this distribution, and is available at * http://www.gnu.org/licenses/lgpl-...
Fix error in plugin description
Fix error in plugin description Change-Id: I2d51e500ed5babb084e5f281c13843bd43f9a690
C
apache-2.0
Kurento/kms-crowddetector,Kurento/kms-crowddetector,Kurento/kms-crowddetector