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
dd4a5df6e1e2b17a0f8963674bea6e94cc6c9b0e
tools/llvm-c-test/metadata.c
tools/llvm-c-test/metadata.c
/*===-- object.c - tool for testing libLLVM and llvm-c API ----------------===*\ |* *| |* The LLVM Compiler Infrastructure *| |* ...
/*===-- object.c - tool for testing libLLVM and llvm-c API ----------------===*\ |* *| |* The LLVM Compiler Infrastructure *| |* ...
Fix build breakage caused by memory leaks in llvm-c-test
Fix build breakage caused by memory leaks in llvm-c-test I accidently introduced those in r227319. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@227339 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llv...
d8af9b16eff306c9720964e4fb89be81a7a31eec
src/base/file_unit.h
src/base/file_unit.h
#ifndef FILE_UNIT_H_ #define FILE_UNIT_H_ #include <string> template <typename T> class FileUnit { public: std::string filename; T *file; FileUnit(std::string& filename); virtual ~FileUnit(); }; #endif
#ifndef FILE_UNIT_H_ #define FILE_UNIT_H_ #include <string> template <typename T> class FileUnit { public: FileUnit(std::string& filename); virtual ~FileUnit(); private: std::string filename; T *file; }; #endif
Change privacy to private for the filename and generic representation
Change privacy to private for the filename and generic representation
C
mit
stefanmirea/mangler,SilentControl/mangler
3f1086d456acca81f5ed6fed1a98d3af92a05bf0
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
Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot
156ca90ad0861b4ebe467b9ea67edc01b5d73d3d
Code/ContentfulDeliveryAPI.h
Code/ContentfulDeliveryAPI.h
// // ContentfulDeliveryAPI.h // ContentfulSDK // // Created by Boris Bügling on 04/03/14. // // #import <Foundation/Foundation.h> #import <ContentfulDeliveryAPI/CDAArray.h> #import <ContentfulDeliveryAPI/CDAAsset.h> #import <ContentfulDeliveryAPI/CDAClient.h> #import <ContentfulDeliveryAPI/CDAConfiguration.h> #im...
// // ContentfulDeliveryAPI.h // ContentfulSDK // // Created by Boris Bügling on 04/03/14. // // #import <Foundation/Foundation.h> #import <ContentfulDeliveryAPI/CDAArray.h> #import <ContentfulDeliveryAPI/CDAAsset.h> #import <ContentfulDeliveryAPI/CDAClient.h> #import <ContentfulDeliveryAPI/CDAConfiguration.h> #im...
Include image view category in framework header.
Include image view category in framework header.
C
mit
contentful/contentful.objc,akfreas/contentful.objc,danieleggert/contentful.objc,akfreas/contentful.objc,davidmdavis/contentful.objc,contentful/contentful.objc,akfreas/contentful.objc,danieleggert/contentful.objc,davidmdavis/contentful.objc,contentful/contentful.objc,danieleggert/contentful.objc,davidmdavis/contentful.o...
1a6633da200909e9c71ba7a0c40eebe56746c3f5
drivers/scsi/qla4xxx/ql4_version.h
drivers/scsi/qla4xxx/ql4_version.h
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2006 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.01.00-k9"
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2006 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.02.00-k1"
Update driver version to 5.02.00-k1
[SCSI] qla4xxx: Update driver version to 5.02.00-k1 Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com> Signed-off-by: Ravi Anand <399b6871085291e2c1578e38a71f59e8d20fafc0@qlogic.com> Reviewed-by: Mike Christie <6fe105eefab41990d7ec714c6c25ade3095cdb48@cs.wisc.edu> Signed-off-by: James...
C
mit
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_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kana...
05b269d5b3f82a64efe9c8d7650803bc181af3a1
src/bf_alloc.c
src/bf_alloc.c
#include <bf_alloc.h> #include <sys/mman.h> uint8_t *allocate_executable_space(size_t size) { uint8_t *memory = (uint8_t*) mmap( NULL, /* No existing address. */ size, /* At LEAST this size. */ PROT_EXEC|PROT_WRITE, /* Writable ...
#include <bf_alloc.h> /* So that MAP_ANONYMOUS is available on glibc. */ #define _BSD_SOURCE #include <sys/mman.h> uint8_t *allocate_executable_space(size_t size) { uint8_t *memory = (uint8_t*) mmap( NULL, /* No existing address. */ size, /* At L...
Add feature-test macro for MAP_ANONYMOUS.
Add feature-test macro for MAP_ANONYMOUS.
C
mit
eddieantonio/brainmuk,eddieantonio/brainmuk
02013988cb1406f3b557bf05603cc726cc1a1889
chrome/gpu/gpu_config.h
chrome/gpu/gpu_config.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_GPU_GPU_CONFIG_H_ #define CHROME_GPU_GPU_CONFIG_H_ // This file declares common preprocessor configuration for the GPU process. #incl...
// 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_GPU_GPU_CONFIG_H_ #define CHROME_GPU_GPU_CONFIG_H_ // This file declares common preprocessor configuration for the GPU process. #incl...
Fix stupid error for Linux build.
Fix stupid error for Linux build. TEST=none BUG=none Review URL: http://codereview.chromium.org/555096 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@37093 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
Pluto-tv/chromium-crosswalk,Fireblend/chromium-crosswalk,timopulkkinen/BubbleFish,dednal/chromium.src,ltilve/chromium,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk-efl,zcbenz/cefode-chromium,keishi/chromium,PeterWangIntel/chromium-crosswalk,Pluto-tv/chromium-crosswalk,littlstar/chromium.src,anirudhSK/chromium,ma...
9aeeff90e1fab8a397365ff74c7d814355241a18
tests/auto/common/declarativewebutils.h
tests/auto/common/declarativewebutils.h
/**************************************************************************** ** ** Copyright (C) 2014 Jolla Ltd. ** Contact: Raine Makelainen <raine.makelainen@jolla.com> ** ****************************************************************************/ /* This Source Code Form is subject to the terms of the Mozilla Pu...
/**************************************************************************** ** ** Copyright (C) 2014 Jolla Ltd. ** Contact: Raine Makelainen <raine.makelainen@jolla.com> ** ****************************************************************************/ /* This Source Code Form is subject to the terms of the Mozilla Pu...
Add missing property for WebUtils mock
[sailfish-browser] Add missing property for WebUtils mock A warning was printed when running unit tests.
C
mpl-2.0
rojkov/sailfish-browser,alinelena/sailfish-browser,alinelena/sailfish-browser,alinelena/sailfish-browser,sailfishos/sailfish-browser,rojkov/sailfish-browser,sailfishos/sailfish-browser,sailfishos/sailfish-browser,rojkov/sailfish-browser,sailfishos/sailfish-browser,alinelena/sailfish-browser,sailfishos/sailfish-browser
492c63393fd3429b2c7f9da853241eea322514b1
Control/UIButton+PPiAwesome.h
Control/UIButton+PPiAwesome.h
// // UIButton+PPiAwesome.h // PPiAwesomeButton-Demo // // Created by Pedro Piñera Buendía on 19/08/13. // Copyright (c) 2013 PPinera. All rights reserved. // #import <UIKit/UIKit.h> #import "NSString+FontAwesome.h" #import <QuartzCore/QuartzCore.h> #import <objc/runtime.h> typedef enum { IconPositionRight, ...
// // UIButton+PPiAwesome.h // PPiAwesomeButton-Demo // // Created by Pedro Piñera Buendía on 19/08/13. // Copyright (c) 2013 PPinera. All rights reserved. // #import <UIKit/UIKit.h> #import "NSString+FontAwesome.h" #import <QuartzCore/QuartzCore.h> #import <objc/runtime.h> typedef enum { IconPositionRight, ...
Make isAwesome public to convert nib-based buttons.
Make isAwesome public to convert nib-based buttons.
C
mit
pepibumur/PPiAwesomeButton
25677943d30e2b6a64a8be9628c12bd5a2290c46
include/kernel/mbr.h
include/kernel/mbr.h
#ifndef MBR_H #define MBR_H #include <stdint.h> struct MBREntry { uint8_t boot_indicator; uint8_t starting_head; uint16_t starting_sector : 6; uint16_t starting_cylinder : 10; uint8_t system_id; uint8_t ending_head; uint16_t ending_sector : 6; uint16_t ending_cylinder : 10; uint32_t starting_lb...
#ifndef MBR_H #define MBR_H #include <stdint.h> struct MBREntry { uint8_t boot_indicator; uint8_t starting_head; uint16_t starting_sector : 6; uint16_t starting_cylinder : 10; uint8_t system_id; uint8_t ending_head; uint16_t ending_sector : 6; uint16_t ending_cylinder : 10; uint32_t starting_lb...
Add boot sig to MBR structure
Add boot sig to MBR structure
C
apache-2.0
shockkolate/shockk-os,shockkolate/shockk-os,shockkolate/shockk-os
11e76e19c17cc102c0e0aff431e4058ba6d3b730
YouLocal/Views/Cells/NotificationTableViewCell.h
YouLocal/Views/Cells/NotificationTableViewCell.h
// // UINotificationTableViewCell.h // YouLocal // // Created by Mihail Velikov on 5/3/15. // Copyright (c) 2015 YouLoc.al. All rights reserved. // #import <UIKit/UIKit.h> @interface NotificationTableViewCell : UITableViewCell @property (nonatomic, weak) UIImageView *avatarImage; @property (nonatomic, weak) UIIm...
// // UINotificationTableViewCell.h // YouLocal // // Created by Mihail Velikov on 5/3/15. // Copyright (c) 2015 YouLoc.al. All rights reserved. // #import <UIKit/UIKit.h> @interface NotificationTableViewCell : UITableViewCell @property (weak, nonatomic) IBOutlet UIImageView *avatarImage; @property (weak, nonato...
Add Storyboard outlets in Notifications cell class
Add Storyboard outlets in Notifications cell class
C
mit
mvelikov/notifications-ios-app-example
b766d280380d5445046232cbb437393949936e5b
Magick++/fuzz/encoder_format.h
Magick++/fuzz/encoder_format.h
class EncoderFormat { public: std::string get() { return std::string(_format.begin(), _format.end()); } const void set(const std::wstring fileName, const std::wstring extension) { if (fileName.find(L"clusterfuzz-testcase-") == -1) { if (extension.length() > 1) _format = extension.substr(1, e...
class EncoderFormat { public: std::string get() { return std::string(_format.begin(), _format.end()); } const void set(const std::wstring fileName, const std::wstring extension) { if (fileName.find(L"clusterfuzz-testcase-") == -1) { if (extension.length() > 1) _format = extension.substr(1, e...
Use file extension as fallback.
Use file extension as fallback.
C
apache-2.0
Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick
78306c6f140c57f45336f77ef72d027887632581
src/dyn-register.c
src/dyn-register.c
#include <libunwind.h> #ifndef HAVE_CMP8XCHG16 #include <pthread.h> /* Make it easy to write thread-safe code which may or may not be linked against libpthread. The macros below can be used unconditionally and if -lpthread is around, they'll call the corresponding routines otherwise, they do nothing. */ ...
#include "internal.h" pthread_mutex_t _U_dyn_info_list_lock = PTHREAD_MUTEX_INITIALIZER; void _U_dyn_register (unw_dyn_info_t *di) { mutex_lock (&_U_dyn_info_list_lock); { ++_U_dyn_info_list.generation; di->next = _U_dyn_info_list.first; di->prev = NULL; if (di->next) di->next->prev = di; ...
Move pthread-locking stuff to "internal.h". (_U_dyn_info_list_lock): Rename from "registration_lock" and change from r/w-lock to a simple mutex (spin) lock. (_U_dyn_register): Insert into doubly-linked list.
Move pthread-locking stuff to "internal.h". (_U_dyn_info_list_lock): Rename from "registration_lock" and change from r/w-lock to a simple mutex (spin) lock. (_U_dyn_register): Insert into doubly-linked list. (Logical change 1.30)
C
mit
atanasyan/libunwind,unkadoug/libunwind,unkadoug/libunwind,bo-on-software/libunwind,atanasyan/libunwind,zeldin/platform_external_libunwind,ehsan/libunwind,olibc/libunwind,maltek/platform_external_libunwind,rantala/libunwind,geekboxzone/lollipop_external_libunwind,dreal-deps/libunwind,dropbox/libunwind,Keno/libunwind,wdv...
ee912d3abbdcbbde6a46d5a3a3a27008d374710c
src/rtpp_module.h
src/rtpp_module.h
#define MODULE_API_REVISION 1 struct api_version { int rev; size_t mi_size; }; struct moduleinfo { const char *name; struct api_version ver; }; #define MI_VER_INIT(sname) {.rev = MODULE_API_REVISION, .mi_size = sizeof(sname)}
#define MODULE_API_REVISION 2 struct rtpp_cfg_stable; struct rtpp_module_priv; struct rtpp_accounting; DEFINE_METHOD(rtpp_cfg_stable, rtpp_module_ctor, struct rtpp_module_priv *); DEFINE_METHOD(rtpp_module_priv, rtpp_module_dtor, void); DEFINE_METHOD(rtpp_module_priv, rtpp_module_on_session_end, void, struct rtpp_a...
Define constructor, destructor and on_session_end methods.
Define constructor, destructor and on_session_end methods.
C
bsd-2-clause
sippy/rtpproxy,sippy/rtpproxy,jevonearth/rtpproxy,jevonearth/rtpproxy,dsanders11/rtpproxy,dsanders11/rtpproxy,jevonearth/rtpproxy,sippy/rtpproxy,dsanders11/rtpproxy,synety-jdebp/rtpproxy,synety-jdebp/rtpproxy,synety-jdebp/rtpproxy,jevonearth/rtpproxy,synety-jdebp/rtpproxy
e6d46509fa05529bdefd5d5c39544a9b28c7f959
Demo-iOS/Demo-iOS-Bridging-Header.h
Demo-iOS/Demo-iOS-Bridging-Header.h
// // Use this file to import your target's public headers that you would like to expose to Swift. // #import "DetailViewController.h" #import "LoremIpsum.h"
// // Use this file to import your target's public headers that you would like to expose to Swift. // // 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/license...
Add license to bridging header
Add license to bridging header
C
apache-2.0
Kosoku/Ditko,Kosoku/Ditko,Kosoku/Ditko,Kosoku/Ditko
ba289c0ae2bae2199af17ebac18347fbc5026186
system/check.c
system/check.c
#include <clib/dos_protos.h> #include <inline/dos_protos.h> #include <proto/dos.h> #include <proto/exec.h> #include <proto/graphics.h> #include <exec/execbase.h> #include <graphics/gfxbase.h> #include "system/check.h" bool SystemCheck() { bool kickv40 = (SysBase->LibNode.lib_Version >= 40) ? TRUE : FALSE; bool ch...
#include <clib/dos_protos.h> #include <inline/dos_protos.h> #include <proto/dos.h> #include <proto/exec.h> #include <proto/graphics.h> #include <exec/execbase.h> #include <graphics/gfxbase.h> #include "system/check.h" bool SystemCheck() { bool kickv40 = SysBase->LibNode.lib_Version >= 40; bool chipaga = GfxBase->...
Remove explicit conversion to boolean value.
Remove explicit conversion to boolean value.
C
artistic-2.0
cahirwpz/demoscene,cahirwpz/demoscene,cahirwpz/demoscene,cahirwpz/demoscene
35aedef6490dae31cb00b09c826c18977c2a9128
doc/doxygen.h
doc/doxygen.h
/** * @mainpage * * This is an automatically generated API documentation for the @c cpp-bencoding project. */
/** * @mainpage * * This is an automatically generated API documentation for the @c cpp-bencoding project. */ // Document the bencoding namespace (there is no better place). /// @namespace bencoding Main namespace of the bencoding library.
Add a documentation for the bencoding namespace.
Add a documentation for the bencoding namespace.
C
bsd-3-clause
s3rvac/cpp-bencoding,s3rvac/cpp-bencoding
00f536dc1c7711d510e5e88943a39b619ec597f1
xchainer/backend.h
xchainer/backend.h
#pragma once #include <memory> #include "xchainer/array.h" #include "xchainer/device.h" #include "xchainer/scalar.h" namespace xchainer { class Backend { public: virtual ~Backend() = default; virtual std::shared_ptr<void> Allocate(const Device& device, size_t bytesize) = 0; virtual void MemoryCopy(void...
#pragma once #include <memory> #include "xchainer/array.h" #include "xchainer/device.h" #include "xchainer/scalar.h" namespace xchainer { class Backend { public: virtual ~Backend() = default; // Allocates a memory chunk on the specified device. virtual std::shared_ptr<void> Allocate(const Device& devic...
Comment on Backend member functions
Comment on Backend member functions
C
mit
jnishi/chainer,jnishi/chainer,hvy/chainer,pfnet/chainer,niboshi/chainer,okuta/chainer,ktnyt/chainer,wkentaro/chainer,keisuke-umezawa/chainer,keisuke-umezawa/chainer,okuta/chainer,okuta/chainer,tkerola/chainer,okuta/chainer,ktnyt/chainer,hvy/chainer,hvy/chainer,wkentaro/chainer,ktnyt/chainer,hvy/chainer,wkentaro/chainer...
b5348f8e51840d03037538e41ef2efd7a59766b5
Source/Main/xcode_SourceFileDefinition.h
Source/Main/xcode_SourceFileDefinition.h
//////////////////////////////////////////////////////////////////////////////// // // EXPANZ // Copyright 2008-2011 EXPANZ // All Rights Reserved. // // NOTICE: Expanz permits you to use, modify, and distribute this file // in accordance with the terms of the license agreement accompanying it. // ////////////////...
//////////////////////////////////////////////////////////////////////////////// // // EXPANZ // Copyright 2008-2011 EXPANZ // All Rights Reserved. // // NOTICE: Expanz permits you to use, modify, and distribute this file // in accordance with the terms of the license agreement accompanying it. // ////////////////...
Fix to allow compile under 32 bit.
Fix to allow compile under 32 bit.
C
apache-2.0
khanhtbh/XcodeEditor,appsquickly/XcodeEditor,JoelGerboreLaser/XcodeEditor,appsquickly/XcodeEditor,JoelGerboreLaser/XcodeEditor,iosdevzone/XcodeEditor,cezheng/XcodeEditor,andyvand/XcodeEditor,service2media/XcodeEditor,appsquickly/XcodeEditor,cezheng/XcodeEditor,khanhtbh/XcodeEditor
82b7274cf268372802ee66fb8ce9a11a766cf778
include/Map.h
include/Map.h
#ifndef LAND_H #define LAND_H #include <string> #include "Plant.h" class Land { public: ~Land(); bool put(Plant & plant); bool getStood()const{return isStood_;} Plant & getPlant() { return *plant_; } const Plant & getPlant() const { return *plant_; } private: Plant * plant_ = nullptr; bool isStood_ =...
#ifndef LAND_H #define LAND_H #include <string> #include "Plant.h" class Land { public: ~Land(); bool put(Plant & plant); bool getStood()const{return isStood_;} Plant * getPlant() { return plant_; } const Plant * getPlant() const { return plant_; } private: Plant * plant_ = nullptr; bool isStood_ = f...
Make Land getPlant return pointer
Make Land getPlant return pointer
C
mit
wi1d5ky/AP-Team-Project
41021611b9bccbc524ababfab256fe7d7f28cf1c
src/lib/ems_server.c
src/lib/ems_server.c
#ifdef HAVE_CONFIG_H # include <config.h> #endif #include <Azy.h> #include "EMS_Config.azy_server.h" /*============================================================================* * Local * *======================================================...
#ifdef HAVE_CONFIG_H # include <config.h> #endif #include <Azy.h> #include "EMS_Config.azy_server.h" /*============================================================================* * Local * *=====================================================...
Use azy_server_run as a replacement for ecore_main_loop_begin
Use azy_server_run as a replacement for ecore_main_loop_begin
C
bsd-2-clause
enna-project/Enna-Media-Server,raoulh/Enna-Media-Server,enna-project/Enna-Media-Server,raoulh/Enna-Media-Server,enna-project/Enna-Media-Server,enna-project/Enna-Media-Server,raoulh/Enna-Media-Server,enna-project/Enna-Media-Server,raoulh/Enna-Media-Server,raoulh/Enna-Media-Server
a59e4b3c4135a31f15c8cfd4b48ea32c1060a505
react/React.h
react/React.h
// // react-objc - a library for functional-reactive-like programming // https://github.com/tconkling/react-objc/blob/master/LICENSE #import "RAConnection.h" #import "RAConnectionGroup.h" #import "RABoolSignal.h" #import "RABoolValue.h" #import "RADoubleSignal.h" #import "RADoubleValue.h" #import "RAFloatSignal.h" #im...
// // react-objc - a library for functional-reactive-like programming // https://github.com/tconkling/react-objc/blob/master/LICENSE #import "RAConnection.h" #import "RAConnectionGroup.h" #import "RABoolSignal.h" #import "RABoolValue.h" #import "RADoubleSignal.h" #import "RADoubleValue.h" #import "RAFloatSignal.h" #im...
Add RAStringSignal and RAStringValue to header
Add RAStringSignal and RAStringValue to header
C
bsd-3-clause
tconkling/react-objc
774d58de16c4a105f4555fd5616a8077cae6c808
Assist/InputOutput/rootPath.h
Assist/InputOutput/rootPath.h
/* * Copyright (c) 2010-2014, Delft University of Technology * Copyright (c) 2010-2014, K. Kumar (me@kartikkumar.com) * All rights reserved. * See http://bit.ly/1jern3m for license details. */ #ifndef ASSIST_INPUT_OUTPUT_H #define ASSIST_INPUT_OUTPUT_H #include <string> namespace assist { namesp...
/* * Copyright (c) 2010-2014, Delft University of Technology * Copyright (c) 2010-2014, K. Kumar (me@kartikkumar.com) * All rights reserved. * See http://bit.ly/1jern3m for license details. */ #ifndef ASSIST_ROOT_PATH_H #define ASSIST_ROOT_PATH_H #include <string> namespace assist { namespace in...
Update header include guard for root-path file.
Update header include guard for root-path file.
C
bsd-3-clause
kartikkumar/assist,kartikkumar/assist
5e9486e5c6ce931557c1463b381d7f6f03ac9acd
c/src/ta_data/ta_adddatasourceparam_priv.h
c/src/ta_data/ta_adddatasourceparam_priv.h
#ifndef TA_ADDDATASOURCEPARAM_PRIV_H #define TA_ADDDATASOURCEPARAM_PRIV_H /* The following is a private copy of the user provided * parameters for a TA_AddDataSource call. * * Code is in 'ta_data_interface.c' */ typedef struct { TA_SourceId id; TA_SourceFlag flags; TA_Period period; TA_String *locat...
#ifndef TA_ADDDATASOURCEPARAM_PRIV_H #define TA_ADDDATASOURCEPARAM_PRIV_H /* The following is a private copy of the user provided * parameters for a TA_AddDataSource call. * * Code is in 'ta_data_interface.c' */ typedef struct { TA_SourceId id; TA_SourceFlag flags; TA_Period period; TA_String *locat...
Remove function prototype that are now static in ta_data_interface.c
Remove function prototype that are now static in ta_data_interface.c git-svn-id: 33305d871a58cfd02b407b81d5206d2a785211eb@618 159cb52c-178a-4f3c-8eb8-d0aff033d058
C
bsd-3-clause
shamanland/ta-lib,shamanland/ta-lib,shamanland/ta-lib,shamanland/ta-lib,shamanland/ta-lib,shamanland/ta-lib
0ccd98dff05616696f78572c46bf055dc244a605
test/FixIt/fixit-include.c
test/FixIt/fixit-include.c
// RUN: %clang_cc1 -fsyntax-only -Wall -pedantic -verify %s // RUN: cp %s %t // RUN: cp %S/fixit-include.h %T // RUN: not %clang_cc1 -fsyntax-only -fixit %t // RUN: %clang_cc1 -Wall -pedantic %t #include <fixit-include.h> // expected-error {{'fixit-include.h' file not found with <angled> include; use "quotes" in...
// RUN: %clang_cc1 -fsyntax-only -Wall -pedantic -verify %s // RUN: cp %s %t // RUN: cp %S/fixit-include.h %T // RUN: not %clang_cc1 -fsyntax-only -fixit %t // RUN: %clang_cc1 -Wall -pedantic %t #include <fixit-include.h> // expected-error {{'fixit-include.h' file not found with <angled> include; use "quotes" instead}...
Remove dos line endings. Please remember to configure your windows SVN clients to default text files to 'eol-native'.
Remove dos line endings. Please remember to configure your windows SVN clients to default text files to 'eol-native'. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@160534 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-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,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
f78169f840c0a551e90df1c45ef17325263ee95c
lab3/mytests/tstworst.c
lab3/mytests/tstworst.c
#include <stdio.h> #include <stdlib.h> #include "../brk.h" #include <unistd.h> #include "clock.h" int main(int argc, char *argv[]) { int nbytes = 5; void **ptrs; long num; long i; num = atol(argv[1]); ptrs = malloc(sizeof(void*) * num); for(i = 0; i < num; i++) { ptrs[i] = malloc(nbytes); mall...
#include <stdio.h> #include <stdlib.h> #include "../brk.h" #include <unistd.h> #include "clock.h" #define MIN_ALLOC (1024) #define HEADER_SIZE (16) int main(int argc, char *argv[]) { void **ptrs; long num; long i; int small_malloc = HEADER_SIZE; int medium_malloc = (MIN_ALLOC - 3) * HEADER_SIZE; int larg...
Make worst case actual worst case.
Make worst case actual worst case.
C
mit
mbark/os14,mbark/os14,mbark/os14
f743432d55d26c1c97b20c2895a479318368d5e8
libc/signal/sigsetops.c
libc/signal/sigsetops.c
/* Define the real-function versions of all inline functions defined in signal.h (or bits/sigset.h). */ #include <features.h> #define _EXTERN_INLINE #ifndef __USE_EXTERN_INLINES # define __USE_EXTERN_INLINES 1 #endif #include "signal.h"
/* Define the real-function versions of all inline functions defined in signal.h (or bits/sigset.h). */ #include <features.h> #define _EXTERN_INLINE #ifndef __USE_EXTERN_INLINES # define __USE_EXTERN_INLINES 1 #endif #include <signal.h>
Use <> instead of \"\"
Use <> instead of \"\"
C
lgpl-2.1
atgreen/uClibc-moxie,hwoarang/uClibc,brgl/uclibc-ng,brgl/uclibc-ng,kraj/uClibc,majek/uclibc-vx32,majek/uclibc-vx32,gittup/uClibc,ysat0/uClibc,wbx-github/uclibc-ng,klee/klee-uclibc,ndmsystems/uClibc,skristiansson/uClibc-or1k,hwoarang/uClibc,klee/klee-uclibc,hwoarang/uClibc,atgreen/uClibc-moxie,hjl-tools/uClibc,m-labs/uc...
5eed19c98a7ea45568360d20b9b4f676a2cc5f15
src/lib/serviceRoutines/putIndividualContextEntityAttribute.h
src/lib/serviceRoutines/putIndividualContextEntityAttribute.h
#ifndef PUT_INDIVIDUAL_CONTEXT_ENTITY_ATTRIBUTE_H #define PUT_INDIVIDUAL_CONTEXT_ENTITY_ATTRIBUTE_H /* * * Copyright 2013 Telefonica Investigacion y Desarrollo, S.A.U * * This file is part of Orion Context Broker. * * Orion Context Broker is free software: you can redistribute it and/or * modify it under the terms of ...
#ifndef PUT_INDIVIDUAL_CONTEXT_ENTITY_ATTRIBUTE_H #define PUT_INDIVIDUAL_CONTEXT_ENTITY_ATTRIBUTE_H /* * * Copyright 2014 Telefonica Investigacion y Desarrollo, S.A.U * * This file is part of Orion Context Broker. * * Orion Context Broker is free software: you can redistribute it and/or * modify it under the terms of ...
Change date of copyright notice
Change date of copyright notice
C
agpl-3.0
jmcanterafonseca/fiware-orion,fiwareulpgcmirror/fiware-orion,McMutton/fiware-orion,McMutton/fiware-orion,McMutton/fiware-orion,telefonicaid/fiware-orion,telefonicaid/fiware-orion,jmcanterafonseca/fiware-orion,yalp/fiware-orion,yalp/fiware-orion,pacificIT/fiware-orion,guerrerocarlos/fiware-orion,fortizc/fiware-orion,yal...
240a18f3955c0c2749c867b32c231b19672d83e0
src/problem.h
src/problem.h
#ifndef PROBLEM_H #define PROBLEM_H #include "sense.h" class Problem { public: int objcnt; // Number of objectives double* rhs; int** objind; // Objective indices double** objcoef; // Objective coefficients Sense objsen; // Objective sense. Note that all objectives must have the same ...
#ifndef PROBLEM_H #define PROBLEM_H #include "sense.h" class Problem { public: int objcnt; // Number of objectives double* rhs; int** objind; // Objective indices double** objcoef; // Objective coefficients Sense objsen; // Objective sense. Note that all objectives must have the same ...
Fix invalid delete[] calls in ~Problem
Fix invalid delete[] calls in ~Problem If objcnt is 0, then no memory has been allocated.
C
bsd-2-clause
WPettersson/moip_aira,WPettersson/moip_aira,WPettersson/moip_aira,WPettersson/moip_aira
759e89dfa1972fdcf84cd0e5eb5dbbd125381cd3
src/version.h
src/version.h
#ifndef _version_h_ # define _version_h_ # define PROGRAM_NAME "xyzzy" # define PROGRAM_COPYRIGHT "Copyright (C) 1996-2005 T.Kamei" # define PROGRAM_MAJOR_VERSION 0 # define PROGRAM_MINOR_VERSION 2 # define PROGRAM_MAJOR_REVISION 3 # define PROGRAM_MINOR_REVISION 5 # define PROGRAM_PATCH_LEVEL 0 # define TITLE_BAR_S...
#ifndef _version_h_ # define _version_h_ # define PROGRAM_NAME "xyzzy" # define PROGRAM_COPYRIGHT "Copyright (C) 1996-2005 T.Kamei" # define PROGRAM_MAJOR_VERSION 0 # define PROGRAM_MINOR_VERSION 2 # define PROGRAM_MAJOR_REVISION 3 # define PROGRAM_MINOR_REVISION 5 # define PROGRAM_PATCH_LEVEL 1 # define TITLE_BAR_S...
Update patch level for update test.
Update patch level for update test.
C
mit
NobuoK/xyzzy,NobuoK/xyzzy,NobuoK/xyzzy,NobuoK/xyzzy,NobuoK/xyzzy
45731725e296f521e4ae2867742e7ea33a6a2ef6
libpkg/pkg_error.h
libpkg/pkg_error.h
#ifndef _PKG_ERROR_H #define _PKG_ERROR_H #ifdef DEBUG # define pkg_error_set(code, fmt, ...) \ _pkg_error_set(code, fmt " [at %s:%d]", ##__VA_ARGS__, __FILE__, __LINE__) #else # define pkg_error_set _pkg_error_set #endif #define ERROR_BAD_ARG(name) \ pkg_error_set(EPKG_FATAL, "Bad argument `%s` in %s", name, __FU...
#ifndef _PKG_ERROR_H #define _PKG_ERROR_H #ifdef DEBUG # define pkg_error_set(code, fmt, ...) \ _pkg_error_set(code, fmt " [at %s:%d]", ##__VA_ARGS__, __FILE__, __LINE__) #else # define pkg_error_set _pkg_error_set #endif #define ERROR_BAD_ARG(name) \ pkg_error_set(EPKG_FATAL, "Bad argument `%s` in %s", name, __FU...
Revert "Indicate the location of sqlite failures."
Revert "Indicate the location of sqlite failures." This reverts commit 2686383409d98488ae7b2c39d531af9ef380e21a.
C
bsd-2-clause
khorben/pkg,junovitch/pkg,skoef/pkg,skoef/pkg,junovitch/pkg,en90/pkg,khorben/pkg,Open343/pkg,en90/pkg,khorben/pkg,Open343/pkg
da1c4e94c3cfa8b74ba81c83b91885dc50c857bd
test/Sema/arm64-neon-args.c
test/Sema/arm64-neon-args.c
// RUN: %clang_cc1 -triple arm64-apple-darwin -target-feature +neon -fsyntax-only -ffreestanding -verify %s #include <arm_neon.h> // rdar://13527900 void vcopy_reject(float32x4_t vOut0, float32x4_t vAlpha, int t) { vcopyq_laneq_f32(vOut0, 1, vAlpha, t); // expected-error {{argument to '__builtin_neon_vgetq_lane_f32...
// RUN: %clang_cc1 -triple arm64-apple-darwin -target-feature +neon -fsyntax-only -ffreestanding -verify %s // RUN: %clang_cc1 -triple arm64_be-none-linux-gnu -target-feature +neon -fsyntax-only -ffreestanding -verify %s #include <arm_neon.h> // rdar://13527900 void vcopy_reject(float32x4_t vOut0, float32x4_t vAlpha,...
Add a test for big-endian NEON on ARM64.
Add a test for big-endian NEON on ARM64. The enabled test #includes <arm_neon.h>, which is sufficient to test all the code in r207624. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@207641 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
2b8300582a7e62df81ab5a32efee5c0053d61161
fw/libs/AdapterBoard/usb_commands.h
fw/libs/AdapterBoard/usb_commands.h
#ifndef USB_COMMANDS_H #define USB_COMMANDS_H #define CMD_ACK 0xAF #define CMD_RESP 0xBF #define CMD_BL_ON 0x10 #define CMD_BL_OFF 0x11 #define CMD_BL_LEVEL 0x12 #define CMD_BL_UP 0x13 #define CMD_BL_DOWN 0x14 #define CMD_BL_GET_STATE 0x1F #define CMD_RGB_SET 0x20 #...
/* USB commands use the first byte as the 'type' variable. * Subsequent bytes are generally the 'arguments'. * So host->device usb packets usually look like: * [command, arg1, arg2, 0, 0, ... , 0, 0] * to which the device will respond with * [CMD_ACK, command, 0, 0, 0 ..., 0, 0] * * The exception to this, are th...
Document the usb protocol (ish)
Document the usb protocol (ish)
C
bsd-3-clause
OSCARAdapter/OSCAR,OSCARAdapter/OSCAR
7f4a6b31a7c33625be1f3f3aec199c4c0dcc55f6
mach/i86/ce/mach.c
mach/i86/ce/mach.c
#define CODE_EXPANDER #include <system.h> #include "back.h" #include "mach.h" #ifdef DEBUG arg_error( s, arg) char *s; int arg; { fprint( STDERR, "arg_error %s %d\n", s, arg); } #endif int push_waiting = FALSE; int fit_byte( val) int val; { return( val >= -128 && val <= 127); } #include <con_float>
#define CODE_EXPANDER #include <system.h> #include "back.h" #include "mach.h" #ifdef DEBUG arg_error( s, arg) char *s; int arg; { fprint( STDERR, "arg_error %s %d\n", s, arg); } #endif int push_waiting = FALSE; int fit_byte( val) int val; { return( val >= -128 && val <= 127); } #define IEEEFLOAT #define FL_MSL_AT...
Use Intel byte order for floating point
Use Intel byte order for floating point
C
bsd-3-clause
Godzil/ack,Godzil/ack,Godzil/ack,Godzil/ack,Godzil/ack
2359f8a30abd107f48b2aa0c3fff361da0963ac5
lib/win32/wrappers/security_buffer_descriptor.h
lib/win32/wrappers/security_buffer_descriptor.h
#ifndef SECURITY_BUFFER_DESCRIPTOR_H #define SECURITY_BUFFER_DESCRIPTOR_H #include <node.h> #include <node_object_wrap.h> #include <v8.h> #include <windows.h> #include <sspi.h> #include "nan.h" using namespace v8; using namespace node; class SecurityBufferDescriptor : public ObjectWrap { public: Local<A...
#ifndef SECURITY_BUFFER_DESCRIPTOR_H #define SECURITY_BUFFER_DESCRIPTOR_H #include <node.h> #include <node_object_wrap.h> #include <v8.h> #include <WinSock2.h> #include <windows.h> #include <sspi.h> #include "nan.h" using namespace v8; using namespace node; class SecurityBufferDescriptor : public ObjectWrap { p...
Fix windows build issue for node v0.12
Fix windows build issue for node v0.12
C
apache-2.0
dmansfield/kerberos,dmansfield/kerberos,artakvg/kerberos,bazineta/kerberos,artakvg/kerberos,bazineta/kerberos,artakvg/kerberos,christkv/kerberos,christkv/kerberos,artakvg/kerberos,christkv/kerberos,bazineta/kerberos,bazineta/kerberos,christkv/kerberos,dmansfield/kerberos,dmansfield/kerberos
2cce788361f527358010a60e5e78b731ea21ac3e
Programs/scr_hurd.h
Programs/scr_hurd.h
/* * BRLTTY - A background process providing access to the console screen (when in * text mode) for a blind person using a refreshable braille display. * * Copyright (C) 1995-2005 by The BRLTTY Team. All rights reserved. * * BRLTTY comes with ABSOLUTELY NO WARRANTY. * * This is free software, placed un...
/* * BRLTTY - A background process providing access to the console screen (when in * text mode) for a blind person using a refreshable braille display. * * Copyright (C) 1995-2005 by The BRLTTY Team. All rights reserved. * * BRLTTY comes with ABSOLUTELY NO WARRANTY. * * This is free software, placed un...
Support access to individual Hurd consoles. (st)
Support access to individual Hurd consoles. (st) git-svn-id: 30a5f035a20f1bc647618dbad7eea2a951b61b7c@1435 91a5dbb7-01b9-0310-9b5f-b28072856b6e
C
lgpl-2.1
brltty/brltty,brltty/brltty,brltty/brltty,brltty/brltty,brltty/brltty,brltty/brltty
d369eecbd4599661c420631d60fc357590bfb04a
mordor/streams/timeout.h
mordor/streams/timeout.h
#ifndef __MORDOR_TIMEOUT_STREAM__ #define __MORDOR_TIMEOUT_STREAM__ // Copyright (c) 2010 - Mozy, Inc. #include "filter.h" #include "scheduler.h" namespace Mordor { class TimerManager; class Timer; class TimeoutStream : public FilterStream { public: typedef boost::shared_ptr<TimeoutStream> ptr; public: Tim...
#ifndef __MORDOR_TIMEOUT_STREAM__ #define __MORDOR_TIMEOUT_STREAM__ // Copyright (c) 2010 - Mozy, Inc. #include "filter.h" #include "scheduler.h" namespace Mordor { class TimerManager; class Timer; class TimeoutStream : public FilterStream { public: typedef boost::shared_ptr<TimeoutStream> ptr; public: Tim...
Initialize some vars so we don't register for a timer when there's not a call oustanding
Initialize some vars so we don't register for a timer when there's not a call oustanding Change-Id: I690bc333f35cb5aaa196d4f4bbcc11dfee4083df Reviewed-on: https://gerrit.dechocorp.com/4912 Reviewed-by: Jeremy Stanley <8cc48e55af0ea00a29d3ccf3190022dccfb4961b@decho.com>
C
bsd-3-clause
cgaebel/mordor,mtanski/mordor,mtanski/mordor,mtanski/mordor,adfin/mordor,adfin/mordor,ccutrer/mordor,mozy/mordor,adfin/mordor,ccutrer/mordor,mozy/mordor,ccutrer/mordor,cgaebel/mordor,mozy/mordor
dce2fa5ec185b39846e93204b2e273beae2e7ff6
ext/libzdb/connection_pool.c
ext/libzdb/connection_pool.c
#include <connection_pool.h> static void deallocate(ConnectionPool_T *pool) { ConnectionPool_stop(*pool); ConnectionPool_free(pool); } /* * Wrap libzdb's connection pool in a ruby object */ static VALUE allocate(VALUE klass) { ConnectionPool_T *pool; return Data_Wrap_Struct(klass, NULL, deallocate, pool); }...
#include <connection_pool.h> static void deallocate(ConnectionPool_T *pool) { ConnectionPool_stop(*pool); ConnectionPool_free(pool); } static VALUE allocate(VALUE klass) { ConnectionPool_T *pool = malloc(sizeof(ConnectionPool_T)); return Data_Wrap_Struct(klass, NULL, deallocate, pool); } static VALUE initial...
Make sure that we allocate something at our pointer and assign our init’d pool to the pointers value.
Make sure that we allocate something at our pointer and assign our init’d pool to the pointers value.
C
mit
clowder/libzdb
b374c810d36bffa656b626855d79f19efc6dd2ef
src/android/AndroidOpenGLInitEvent.h
src/android/AndroidOpenGLInitEvent.h
#ifndef _ANDROIDOPENGLINITEVENT_H_ #define _ANDROIDOPENGLINITEVENT_H_ #include <OpenGLInitEvent.h> #include <android/native_window.h> class AndroidOpenGLInitEvent : public OpenGLInitEvent { public: AndroidOpenGLInitEvent(double _timestamp, int _opengl_es_version, ANativeWindow * _window) : OpenGLInitEvent(_timest...
#ifndef _ANDROIDOPENGLINITEVENT_H_ #define _ANDROIDOPENGLINITEVENT_H_ #include <OpenGLInitEvent.h> #include <android/native_window.h> class AndroidOpenGLInitEvent : public OpenGLInitEvent { public: AndroidOpenGLInitEvent(double _timestamp, int _opengl_es_version, ANativeWindow * _window) : OpenGLInitEvent(_timest...
Add Todo implementation to dispatch
Add Todo implementation to dispatch
C
mit
Sometrik/framework,Sometrik/framework,Sometrik/framework
06e1571bd5cd88cac8f764b0e4e8a48503c737f5
src/Walker.h
src/Walker.h
//! \file Walker.h #ifndef _WALKER_H #define _WALKER_H #include "ArticleCollection.h" //! Base class for article analyzers class Walker { protected: //! article collection, used as cache, for walked articles ArticleCollection articleSet; }; #endif // _WALKER_H
//! \file Walker.h #ifndef _WALKER_H #define _WALKER_H #include "ArticleCollection.h" //! Base class for article analyzers class Walker { public: const ArticleCollection& getCollection() const { return articleSet; } protected: //! article collection, used as cache, for walked articles Ar...
Add method to get const article collection in walker
Add method to get const article collection in walker so I don't have to do everything within that class...
C
mit
dueringa/WikiWalker
c8d52465f95c4187871f8e65666c07806ca06d41
include/linux/compiler-gcc.h
include/linux/compiler-gcc.h
/* Never include this file directly. Include <linux/compiler.h> instead. */ /* * Common definitions for all gcc versions go here. */ /* Optimization barrier */ /* The "volatile" is due to gcc bugs */ #define barrier() __asm__ __volatile__("": : :"memory") /* This macro obfuscates arithmetic on a variable addres...
/* Never include this file directly. Include <linux/compiler.h> instead. */ /* * Common definitions for all gcc versions go here. */ /* Optimization barrier */ /* The "volatile" is due to gcc bugs */ #define barrier() __asm__ __volatile__("": : :"memory") /* This macro obfuscates arithmetic on a variable addres...
Work around ppc64 compiler bug
[PATCH] Work around ppc64 compiler bug In the process of optimising our per cpu data code, I found a ppc64 compiler bug that has been around forever. Basically the current RELOC_HIDE can end up trashing r30. Details of the bug can be found at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25572 This bug is present in...
C
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_k...
535aa1e979070a2f57d1a7e17e03d2dd1a4aae1e
ReQL.h
ReQL.h
/** * @author Adam Grandquist */ #include "ReQL-ast.h" #ifndef _REQL_H #define _REQL_H struct _ReQL_Conn_s { int socket; int error; char *buf; unsigned int max_token; struct _ReQL_Cur_s **cursor; }; typedef struct _ReQL_Conn_s _ReQL_Conn_t; struct _ReQL_Cur_s { }; typedef struct _ReQL_Cur_s _ReQL_Cur_t;...
/** * @author Adam Grandquist */ #include "ReQL-ast.h" #ifndef _REQL_H #define _REQL_H struct _ReQL_Conn_s { int socket; int error; char *buf; unsigned int max_token; struct _ReQL_Cur_s **cursor; }; typedef struct _ReQL_Conn_s _ReQL_Conn_t; struct _ReQL_Cur_s { _ReQL_Conn_t *conn; unsigned int idx; ...
Add connection and response to cursors.
Add connection and response to cursors.
C
apache-2.0
grandquista/ReQL-Core,grandquista/ReQL-Core,grandquista/ReQL-Core,grandquista/ReQL-Core
0d16255d093a3292abaf0b07e21ddebc956e7ca3
tests/utils.h
tests/utils.h
#include <string> #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <sys/fcntl.h> using namespace std; inline string copyFile(const string &filename, const string &ext) { string newname = string(tempnam(NULL, NULL)) + ext; string oldname = string("data/") + filename + ext; char buffer[4096]; ...
#ifdef _WIN32 #include <windows.h> #else #include <unistd.h> #include <fcntl.h> #include <sys/fcntl.h> #endif #include <stdio.h> #include <string> using namespace std; inline string copyFile(const string &filename, const string &ext) { string newname = string(tempnam(NULL, NULL)) + ext; string oldname = string("d...
Fix compilation fo the test runner on Windows
Fix compilation fo the test runner on Windows Patch by Stephen Hewitt git-svn-id: 7928e23e4d58c5ca14aa7b47c53aeff82ee1dd0c@1078612 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
C
lgpl-2.1
dlz1123/taglib,black78/taglib,taglib/taglib,davispuh/taglib,pbhd/taglib,videolabs/taglib,videolabs/taglib,TsudaKageyu/taglib,taglib/taglib,MaxLeb/taglib,pbhd/taglib,Distrotech/taglib,pbhd/taglib,crystax/cosp-android-taglib,dlz1123/taglib,crystax/cosp-android-taglib,davispuh/taglib,Distrotech/taglib,dlz1123/taglib,Tsuda...
ffbc0b4a8ff278d4eefd47f4ae0016eaf75641b1
framework/Source/iOS/GPUImageView.h
framework/Source/iOS/GPUImageView.h
#import <UIKit/UIKit.h> #import "GPUImageContext.h" typedef enum { kGPUImageFillModeStretch, // Stretch to fill the full view, which may distort the image outside of its normal aspect ratio kGPUImageFillModePreserveAspectRatio, // Maintains the aspect ratio of the source image, ...
#import <UIKit/UIKit.h> #import "GPUImageContext.h" typedef NS_ENUM(NSUInteger, GPUImageFillModeType) { kGPUImageFillModeStretch, // Stretch to fill the full view, which may distort the image outside of its normal aspect ratio kGPUImageFillModePreserveAspectRatio, // Maintains t...
Update GPUImageFillModeType enum to use NS_ENUM
Update GPUImageFillModeType enum to use NS_ENUM
C
bsd-3-clause
wysaid/GPUImage,eighteight/GPUImage,UndaApp/GPUImage,lacyrhoades/GPUImage,wfxiang08/GPUImage,wfxiang08/GPUImage,catbus/GPUImage,eighteight/GPUImage,BradLarson/GPUImage,birthmark/GPUImage,wysaid/GPUImage,PlanetaToBe/GPUImage,lacyrhoades/GPUImage,shi-yan/GPUImage,eighteight/GPUImage,catbus/GPUImage,msfeldstein/GPUImage,j...
82ea549661f657e5925808355322ad6606808428
rand.h
rand.h
/** * Copyright (c) 2013-2014 Tomas Dzetkulic * Copyright (c) 2013-2014 Pavol Rusnak * * 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 ...
/** * Copyright (c) 2013-2014 Tomas Dzetkulic * Copyright (c) 2013-2014 Pavol Rusnak * * 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 ...
Add `stdlib.h` to header. Needed for `size_t`.
Add `stdlib.h` to header. Needed for `size_t`.
C
mit
romanz/trezor-crypto,trezor/trezor-crypto,trezor/trezor-crypto,01BTC10/trezor-crypto,trezor/trezor-crypto,trezor/trezor-crypto,runn1ng/trezor-crypto,runn1ng/trezor-crypto,01BTC10/trezor-crypto,trezor/trezor-crypto,jhoenicke/trezor-crypto,romanz/trezor-crypto,romanz/trezor-crypto,runn1ng/trezor-crypto,runn1ng/trezor-cry...
5702f86c31305d5029f8d9d8bff02bb6b727a06a
utils/Hash.h
utils/Hash.h
#ifndef HASH_H #define HASH_H #include <unordered_map> #include <unordered_set> template <typename K, typename V> using HashMap = std::unordered_map<K, V>; template <typename T> using HashSet = std::unordered_set<T>; #endif // HASH_H
#ifndef HASH_H #define HASH_H #include <cstdint> #include <unordered_map> #include <unordered_set> template <typename K, typename V> using HashMap = std::unordered_map<K, V>; template <typename T> using HashSet = std::unordered_set<T>; // These come from boost // Copyright 2005-2014 Daniel James. // Distribu...
Add some hashing utility functions
Add some hashing utility functions
C
mit
turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo
0e2a0195a37b492cfa9bfc1b985d8c82fc957e70
src/heap_example.c
src/heap_example.c
// cc heap_example.c heap.c #include <assert.h> #include <stdio.h> #include "bool.h" #include "heap.h" /* heap data comparator: return true if a < b */ bool cmp(void *a, void *b) { return *(int *)a < *(int *)b; } int main(int argc, const char *argv[]) { /* allocate empty heap with comparator */ struct he...
// cc heap_example.c heap.c #include <assert.h> #include <stdio.h> #include "bool.h" #include "heap.h" /* heap data comparator: return true if a < b */ bool cmp(void *a, void *b) { return *(int *)a < *(int *)b; } int main(int argc, const char *argv[]) { /* allocate empty heap with comparator */ struct he...
Add `heap_len` and `heap_cap` to example
Add `heap_len` and `heap_cap` to example
C
bsd-2-clause
hit9/C-Snip,hit9/C-Snip
48fdf76623cdc40fdf94eae554eb13b5c9c512c9
src/mlt++/config.h
src/mlt++/config.h
/** * config.h - Convenience header file for all mlt++ objects * Copyright (C) 2004-2005 Charles Yates * Author: Charles Yates <charles.yates@pandora.be> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Fr...
/** * config.h - Convenience header file for all mlt++ objects * Copyright (C) 2004-2005 Charles Yates * Author: Charles Yates <charles.yates@pandora.be> * * 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 Fr...
Fix license in comment header.
Fix license in comment header. Signed-off-by: Dan Dennedy <2591e5f46f28d303f9dc027d475a5c60d8dea17a@dennedy.org>
C
lgpl-2.1
ttill/MLT-roto-tracking,xzhavilla/mlt,j-b-m/mlt,ttill/MLT-roto-tracking,rayl/MLT,wideioltd/mlt,ttill/MLT-roto-tracking,rayl/MLT,ttill/MLT-roto-tracking,xzhavilla/mlt,wideioltd/mlt,mltframework/mlt,ttill/MLT,xzhavilla/mlt,xzhavilla/mlt,zzhhui/mlt,zzhhui/mlt,xzhavilla/mlt,siddharudh/mlt,ttill/MLT-roto,ttill/MLT-roto,rayl...
1a36fe45121967f5dd2f94e673d6403339cd6e62
include/config/SkUserConfigManual.h
include/config/SkUserConfigManual.h
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkUserConfigManual_DEFINED #define SkUserConfigManual_DEFINED #define GR_TEST_UTILS 1 #define SK_BUILD_FOR_ANDROID_FRAMEWORK #define SK_DEFAULT_FONT_CACHE_LIMIT ...
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkUserConfigManual_DEFINED #define SkUserConfigManual_DEFINED #define GR_TEST_UTILS 1 #define SK_BUILD_FOR_ANDROID_FRAMEWORK #define SK_DEFAULT_FONT_CACHE_LIMIT ...
Add SK_IGNORE_LINEAR_METRICS_FIX flag for Skia.
Add SK_IGNORE_LINEAR_METRICS_FIX flag for Skia. This will hold out a Skia change to glyph metric calculation until the framework can be updated to handle it. Test: Adds build flag, does nothing right now. Change-Id: Ibce90e396002ea493cdf545857e0b84f13738ff6
C
bsd-3-clause
aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-...
324a12829b108130e3d3c5ae27cca2f35186e844
src/util/logging.c
src/util/logging.c
#include <stdlib.h> #include "logging.h" char out[512]; debug_mask_t debug_mask = 0; static int debug_init = 0; char *print_hex(uint8_t *buf, int count) { memset(out, 0, count); int zz; for(zz = 0; zz < count; zz++) { sprintf(out + (zz * 2), "%02X", buf[zz]); } return out; } void deb...
#include <stdlib.h> #include "logging.h" char out[512]; debug_mask_t debug_mask = 0; static int debug_init = 0; char *print_hex(uint8_t *buf, int count) { memset(out, 0, sizeof(out)); int zz; for(zz = 0; zz < count; zz++) { sprintf(out + (zz * 2), "%02X", buf[zz]); } return out; } vo...
Fix potential data corruption bug
Fix potential data corruption bug
C
lgpl-2.1
mwgoldsmith/aacs,rraptorr/libaacs,ShiftMediaProject/libaacs,ShiftMediaProject/libaacs,mwgoldsmith/aacs,zxlooong/libaacs,rraptorr/libaacs,zxlooong/libaacs
16bdf0090336003786974288f7655d8fcd50c900
src/trainer/training_failure.h
src/trainer/training_failure.h
// This file is part of UDPipe <http://github.com/ufal/udpipe/>. // // Copyright 2016 Institute of Formal and Applied Linguistics, Faculty of // Mathematics and Physics, Charles University in Prague, Czech Republic. // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy ...
// This file is part of UDPipe <http://github.com/ufal/udpipe/>. // // Copyright 2016 Institute of Formal and Applied Linguistics, Faculty of // Mathematics and Physics, Charles University in Prague, Czech Republic. // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy ...
Add training_error to utils namespace.
Add training_error to utils namespace. The training_error is used by binary_encoder, which includes only utils/common.h -- that opens std only in utils namespace, not in whole ufal::udpipe.
C
mpl-2.0
ufal/udpipe,ufal/udpipe,ufal/udpipe,ufal/udpipe,ufal/udpipe,ufal/udpipe,ufal/udpipe,ufal/udpipe,ufal/udpipe,ufal/udpipe
8277a4cdfd0904aa78d144716674aa879bc8ddf8
src/test-brightness-manager.c
src/test-brightness-manager.c
#include <dalston/dalston-brightness-manager.h> static void _manager_num_levels_changed_cb (DalstonBrightnessManager *manager, gint num_levels) { g_debug (G_STRLOC ": Num levels changed: %d", num_levels); } int main (int argc, char **argv) { ...
#include <dalston/dalston-brightness-manager.h> static void _manager_num_levels_changed_cb (DalstonBrightnessManager *manager, gint num_levels) { g_debug (G_STRLOC ": Num levels changed: %d", num_levels); } static void _brightness_changed_cb (DalstonBr...
Update the test to listen for brightness changed.
Update the test to listen for brightness changed.
C
lgpl-2.1
meego-netbook-ux/meego-panel-devices,meego-netbook-ux/meego-panel-devices,meego-netbook-ux/meego-panel-devices
7817e2e0a03e4f9d469ae54c89297c413d4d5b01
src/unit_VEHICLE/subsys/ChTerrain.h
src/unit_VEHICLE/subsys/ChTerrain.h
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of th...
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of th...
Add normal information to terrain.
Add normal information to terrain.
C
bsd-3-clause
Milad-Rakhsha/chrono,amelmquist/chrono,armanpazouki/chrono,rserban/chrono,armanpazouki/chrono,amelmquist/chrono,Milad-Rakhsha/chrono,Milad-Rakhsha/chrono,jcmadsen/chrono,dariomangoni/chrono,projectchrono/chrono,Milad-Rakhsha/chrono,tjolsen/chrono,Bryan-Peterson/chrono,andrewseidl/chrono,rserban/chrono,projectchrono/chr...
eff661b69750fba61fd49e19c1918eac139f5e7d
KSPhotoBrowser/KSPhotoItem.h
KSPhotoBrowser/KSPhotoItem.h
// // KSPhotoItem.h // KSPhotoBrowser // // Created by Kyle Sun on 12/25/16. // Copyright © 2016 Kyle Sun. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface KSPhotoItem : NSObject @property (nonatomic, strong, readonly) UIView *sourceView; @property (nonatomic, strong, readonly)...
// // KSPhotoItem.h // KSPhotoBrowser // // Created by Kyle Sun on 12/25/16. // Copyright © 2016 Kyle Sun. All rights reserved. // #import <UIKit/UIKit.h> @interface KSPhotoItem : NSObject @property (nonatomic, strong, readonly, nullable) UIView *sourceView; @property (nonatomic, strong, readonly, nullable) UIIm...
Support nullable Item sourceView in Swift.
Support nullable Item sourceView in Swift.
C
mit
skx926/KSPhotoBrowser
a82eba7c6c263e67ad58f5211dbc6d32d3963cb3
contrib/bind/port/freebsd/include/port_after.h
contrib/bind/port/freebsd/include/port_after.h
#define CAN_RECONNECT #define USE_POSIX #define POSIX_SIGNALS #define USE_UTIME #define USE_WAITPID #define HAVE_GETRUSAGE #define HAVE_FCHMOD #define NEED_PSELECT #define HAVE_SA_LEN #define USE_LOG_CONS #define HAVE_CHROOT #define CAN_CHANGE_ID #define _TIMEZONE timezone #define PORT_NONBLOCK O_NONBLOCK #define POR...
#define CAN_RECONNECT #define USE_POSIX #define POSIX_SIGNALS #define USE_UTIME #define USE_WAITPID #define HAVE_GETRUSAGE #define HAVE_FCHMOD #define NEED_PSELECT #define HAVE_SA_LEN #define SETPWENT_VOID #define RLIMIT_TYPE rlim_t #define RLIMIT_LONGLONG #define RLIMIT_FILE_INFINITY #define HAVE_CHROOT #define CAN_CH...
Update for some -current quirks, and some other things taken from the *bsd bind-8 ports. (our setpwent() was changed to return void, but our setgrent() returns int still!)
Update for some -current quirks, and some other things taken from the *bsd bind-8 ports. (our setpwent() was changed to return void, but our setgrent() returns int still!)
C
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
41c21c9cfde906d9c3f6521eddbdd7750bbfb92a
include/Texture.h
include/Texture.h
// Copyright 2016 Zheng Xian Qiu // #pragma once #include "Seeker.h" #ifndef _TEXTURE_H #define _TEXTURE_H using std::string; namespace Seeker { class Texture : public IResource { public: Texture(string path); Texture(int width, int height, bool alpha = false); ~Texture(); int Width ...
// Copyright 2016 Zheng Xian Qiu // #pragma once #include "Seeker.h" #ifndef _TEXTURE_H #define _TEXTURE_H using std::string; namespace Seeker { class Texture : public IResource { public: Texture(string path); Texture(int width, int height, bool alpha = true); ~Texture(); int Width =...
Set empty texture default to transparent
Set empty texture default to transparent
C
apache-2.0
elct9620/seeker,elct9620/seeker,elct9620/seeker
8557aff3b74bb0bf240fcc05ae73ff05caf1ce97
CPPWebFramework/cwf/dbstorage.h
CPPWebFramework/cwf/dbstorage.h
#include "sqldatabasestorage.h" CWF_BEGIN_NAMESPACE namespace DbStorage { CPPWEBFRAMEWORKSHARED_EXPORT static CWF::SqlDatabaseStorage _storage; CPPWEBFRAMEWORKSHARED_EXPORT static QString _secret; } CWF_END_NAMESPACE
#include "sqldatabasestorage.h" CWF_BEGIN_NAMESPACE namespace DbStorage { static CWF::SqlDatabaseStorage _storage; static QString _secret; } CWF_END_NAMESPACE
Remove the dll export flag
Remove the dll export flag
C
mit
HerikLyma/CPPWebFramework,HerikLyma/CPPWebFramework
fe45ca036fe90600a9a6d99bea17a2b36d04a071
lib/luwra/common.h
lib/luwra/common.h
/* Luwra * Minimal-overhead Lua wrapper for C++ * * Copyright (C) 2015, Ole Krüger <ole@vprsm.de> */ #ifndef LUWRA_COMMON_H_ #define LUWRA_COMMON_H_ #include <lua.hpp> // Check for proper Lua version #if defined(LUA_VERSION_NUM) #if LUA_VERSION_NUM < 503 || LUA_VERSION >= 600 #warning "Luwra has not been test...
/* Luwra * Minimal-overhead Lua wrapper for C++ * * Copyright (C) 2015, Ole Krüger <ole@vprsm.de> */ #ifndef LUWRA_COMMON_H_ #define LUWRA_COMMON_H_ // Check C++ version #if !defined(__cplusplus) || __cplusplus < 201402L #error "You need a C++14 compliant compiler" #endif #include <lua.hpp> // Check for proper...
Check for C++14 and Lua version properly
Check for C++14 and Lua version properly
C
bsd-3-clause
vapourismo/luwra
905a30860e08f0264c746ca7a92d5b405015196c
libedataserverui/gtk-compat.h
libedataserverui/gtk-compat.h
#ifndef __GTK_COMPAT_H__ #define __GTK_COMPAT_H__ #include <gtk/gtk.h> /* Provide a compatibility layer for accessor functions introduced * in GTK+ 2.22 which we need to build with sealed GDK. * That way it is still possible to build with GTK+ 2.20. */ #if !GTK_CHECK_VERSION(2,21,2) #define gdk_drag_context_get_...
#ifndef __GTK_COMPAT_H__ #define __GTK_COMPAT_H__ #include <gtk/gtk.h> /* Provide a compatibility layer for accessor functions introduced * in GTK+ 2.21.1 which we need to build with sealed GDK. * That way it is still possible to build with GTK+ 2.20. */ #if (GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION < 21) \ |...
Check for gtk version below 2.21.1 for comptability with gseal changes
Check for gtk version below 2.21.1 for comptability with gseal changes
C
lgpl-2.1
Distrotech/evolution-data-server,gcampax/evolution-data-server,tintou/evolution-data-server,Distrotech/evolution-data-server,matzipan/evolution-data-server,matzipan/evolution-data-server,gcampax/evolution-data-server,gcampax/evolution-data-server,gcampax/evolution-data-server,matzipan/evolution-data-server,tintou/evolu...
dd0c830ae3af87e8d354b9848d045bf0acd1d5e9
kmail/kmversion.h
kmail/kmversion.h
// KMail Version Information // #ifndef kmversion_h #define kmversion_h #define KMAIL_VERSION "1.6.50" #endif /*kmversion_h*/
// KMail Version Information // #ifndef kmversion_h #define kmversion_h #define KMAIL_VERSION "1.6.51" #endif /*kmversion_h*/
Update the version a tick so that we can tell who has the recently committed critical fixes.
Update the version a tick so that we can tell who has the recently committed critical fixes. svn path=/trunk/kdepim/; revision=285464
C
lgpl-2.1
lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi
a882990c9d05497540efca385ebb55c200e01e76
MUON/mapping/AliMpStationType.h
MUON/mapping/AliMpStationType.h
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ // $Id$ // $MpId: AliMpStationType.h,v 1.5 2005/10/28 15:05:04 ivana Exp $ /// \ingroup basic /// \enum AliMpStationType /// Enumeration for refering to a MUON stati...
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ // $Id$ // $MpId: AliMpStationType.h,v 1.5 2005/10/28 15:05:04 ivana Exp $ /// \ingroup basic /// \enum AliMpStationType /// Enumeration for refering to a MUON stati...
Fix warning from gcc4 (Laurent)
Fix warning from gcc4 (Laurent)
C
bsd-3-clause
ALICEHLT/AliRoot,shahor02/AliRoot,sebaleh/AliRoot,ecalvovi/AliRoot,alisw/AliRoot,ecalvovi/AliRoot,mkrzewic/AliRoot,ALICEHLT/AliRoot,miranov25/AliRoot,miranov25/AliRoot,mkrzewic/AliRoot,ecalvovi/AliRoot,jgrosseo/AliRoot,jgrosseo/AliRoot,sebaleh/AliRoot,ecalvovi/AliRoot,ALICEHLT/AliRoot,ALICEHLT/AliRoot,mkrzewic/AliRoot,...
0b4834177de44756b689270394c72a016e0f9c6c
MKCommons/MKVersion.h
MKCommons/MKVersion.h
// // MKVersion.h // MKCommons // // Created by Michael Kuck on 9/27/13. // Copyright (c) 2013 Michael Kuck. All rights reserved. // extern NSString *const MKApplicationVersion(void); static NSUInteger const MAJOR = 1; static NSUInteger const MINOR = 10; static NSUInteger const PATCH = 4;
// // MKVersion.h // MKCommons // // Created by Michael Kuck on 9/27/13. // Copyright (c) 2013 Michael Kuck. All rights reserved. // extern NSString *const MKApplicationVersion(void); static NSUInteger const MAJOR = 1; static NSUInteger const MINOR = 11; static NSUInteger const PATCH = 0;
Increase version number of merge into master
Increase version number of merge into master
C
mit
mikumi/mkcommons-obj
9d7dfc15495bd6f005b8ede5b33aa10dfa0a8fce
Modules/Facilities/Model/FacilitiesRoom.h
Modules/Facilities/Model/FacilitiesRoom.h
// // FacilitiesRoom.h // MIT Mobile // // Created by Blake Skinner on 5/11/11. // Copyright (c) 2011 MIT. All rights reserved. // #import <Foundation/Foundation.h> #import <CoreData/CoreData.h> @class FacilitiesLocation; @interface FacilitiesRoom : NSManagedObject { @private } @property (nonatomic, retain) NSSt...
#import <Foundation/Foundation.h> #import <CoreData/CoreData.h> @class FacilitiesLocation; @interface FacilitiesRoom : NSManagedObject { @private } @property (nonatomic, retain) NSString * floor; @property (nonatomic, retain) NSString * number; @property (nonatomic, retain) NSString * building; - (NSString*)displayS...
Remove the templated copyright statement
Remove the templated copyright statement
C
lgpl-2.1
MIT-Mobile/MIT-Mobile-for-iOS,xNUTs/MIT-Mobile-for-iOS,smartcop/MIT-Mobile-for-iOS,MIT-Mobile/MIT-Mobile-for-iOS,xNUTs/MIT-Mobile-for-iOS,smartcop/MIT-Mobile-for-iOS
535a3d3a07c7ca63326f35a915a23a4d5b55a353
OpenTESArena/src/Game/CardinalDirection.h
OpenTESArena/src/Game/CardinalDirection.h
#ifndef CARDINAL_DIRECTION_H #define CARDINAL_DIRECTION_H #include <string> #include "../Math/Vector2.h" #include "../World/VoxelUtils.h" // North, northeast, southwest, etc.. enum class CardinalDirectionName; namespace CardinalDirection { // Cardinal directions in the XZ plane (bird's eye view). ...
#ifndef CARDINAL_DIRECTION_H #define CARDINAL_DIRECTION_H #include <string> #include "../Math/Vector2.h" #include "../World/VoxelUtils.h" // North, northeast, southwest, etc.. enum class CardinalDirectionName; namespace CardinalDirection { // Cardinal directions in the XZ plane (bird's eye view). ...
Make cardinal directions rely on VoxelUtils.
Make cardinal directions rely on VoxelUtils.
C
mit
afritz1/OpenTESArena
830605fd9a90c933da058be4003da58b7b760e7e
test/CoverageMapping/unused_names.c
test/CoverageMapping/unused_names.c
// RUN: %clang_cc1 -fprofile-instr-generate -fcoverage-mapping -emit-llvm -o - %s | FileCheck %s // Since foo is never emitted, there should not be a profile name for it. // CHECK-NOT: @__llvm_profile_name_foo = // CHECK: @__llvm_profile_name_bar = // CHECK-NOT: @__llvm_profile_name_foo = #ifdef IS_SYSHEADER #pragm...
// RUN: %clang_cc1 -fprofile-instr-generate -fcoverage-mapping -emit-llvm -main-file-name unused_names.c -o - %s > %t // RUN: FileCheck -input-file %t %s // RUN: FileCheck -check-prefix=SYSHEADER -input-file %t %s // Since foo is never emitted, there should not be a profile name for it. // CHECK-DAG: @__llvm_profile_...
Add a test for PR22531
InstrProf: Add a test for PR22531 This is a test for the llvm change in r228793. We need to make sure that names referred to by coverage end up in the right section, or the coverage tools won't work. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@228794 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
4593b1ec0f82913fc5f7f6353d2e3add9de6ff39
include/pistache/prototype.h
include/pistache/prototype.h
/* Mathieu Stefani, 28 janvier 2016 Simple Prototype design pattern implement */ #pragma once #include <memory> #include <type_traits> namespace Pistache { /* In a sense, a Prototype is just a class that provides a clone() method */ template <typename Class> struct Prototype { public: ...
/* Mathieu Stefani, 28 janvier 2016 Simple Prototype design pattern implement */ #pragma once #include <memory> #include <type_traits> namespace Pistache { /* In a sense, a Prototype is just a class that provides a clone() method */ template <typename Class> struct Prototype { public: ...
Fix warning: backslash-newline at end of file
Fix warning: backslash-newline at end of file
C
apache-2.0
oktal/rest,oktal/rest,oktal/rest,oktal/rest
cde246f309cc3c3fc4c5aaef4f1eb9a191b5b4ec
JASP-Engine/rbridge.h
JASP-Engine/rbridge.h
#ifndef RBRIDGE_H #define RBRIDGE_H #include <RInside.h> #include <Rcpp.h> #include <string> #include <map> #include <boost/function.hpp> #include "../JASP-Common/dataset.h" #ifdef __WIN32__ #undef Realloc #undef Free #endif //typedef int (*RCallback)(std::string value); typedef boost::function<int(const std:...
#ifndef RBRIDGE_H #define RBRIDGE_H #include <RInside.h> #include <Rcpp.h> #ifdef __WIN32__ #undef Realloc #undef Free #endif #include <string> #include <map> #include <boost/function.hpp> #include "../JASP-Common/dataset.h" //typedef int (*RCallback)(std::string value); typedef boost::function<int(const std::...
Fix to windows build errors
Fix to windows build errors
C
agpl-3.0
FransMeerhoff/jasp-desktop,cgvarela/jasp-desktop,AlexanderLyNL/jasp-desktop,tlevine/jasp-desktop,AlexanderLyNL/jasp-desktop,AlexanderLyNL/jasp-desktop,boutinb/jasp-desktop,raviselker/jasp-desktop,fdabl/jasp-desktop,jasp-stats/jasp-desktop,vankesteren/jasp-desktop,vankesteren/jasp-desktop,tlevine/jasp-desktop,boutinb/ja...
3b2deef3a403bbfe1dcb3e22fde3b8fecc3ccd08
modules/dcc_chat.h
modules/dcc_chat.h
class dccChat : public Module { public: virtual ~dccChat(); virtual void onDCCReceive(std::string dccid, std::string message); virtual void onDCCEnd(std::string dccid); }; class dccSender : public Module { public: virtual ~dccSender(); virtual void dccSend(std::string dccid, std::string message); virtual...
class dccChat : public Module { public: virtual ~dccChat(); virtual void onDCCReceive(std::string dccid, std::string message); virtual void onDCCEnd(std::string dccid); }; class dccSender : public Module { public: virtual ~dccSender(); virtual void dccSend(std::string dccid, std::string message); virtual...
Add important DCC functions to DCC header for interaction
Add important DCC functions to DCC header for interaction
C
mit
ElementalAlchemist/RoBoBo,ElementalAlchemist/RoBoBo
4694d1f290fd37bddff9a31c7b6b57a0a0f3d5af
token_server/src/main.c
token_server/src/main.c
#include <stdio.h> #include <stdlib.h> #include <errno.h> #include "httpserv.h" #include "request.h" #define PORT 5556 #define BACKLOG 5 int main(int argc, char* argv[]) { setup_openssl(); req* r = init_request(); char* res = request_kahoot_token(r, "6573712"); printf("%s\n", res); return 0; };
#include <stdio.h> #include <stdlib.h> #include <errno.h> #include "httpserv.h" #include "request.h" #include "kahoot.h" #define PORT 5556 #define BACKLOG 5 #define HEADERS "HTTP/1.1 200 OK\ Server: openresty/1.11.2.2\ Date: Tue, 28 Mar 2017 14:55:03 GMT\ Content-Type: application/json\ Transfer-Encoding: chunked\ Co...
Add sample headers as a macro
Add sample headers as a macro
C
mit
ukahoot/ukahoot,ukahoot/ukahoot.github.io,ukahoot/ukahoot,ukahoot/ukahoot.github.io,ukahoot/ukahoot.github.io,ukahoot/ukahoot,ukahoot/ukahoot
b2550d29e716c535c255ddffb5b82cb1379ed491
libraries/ModbusIP/ModbusIP.h
libraries/ModbusIP/ModbusIP.h
/* ModbusIP.h - Header for Modbus IP Library Copyright (C) 2015 Andr Sarmento Barbosa */ #include <Arduino.h> #include <Modbus.h> #include <SPI.h> #include <Ethernet.h> #ifndef MODBUSIP_H #define MODBUSIP_H #define MODBUSIP_PORT 502 #define MODBUSIP_MAXFRAME 200 class ModbusIP : public Modbus { privat...
/* ModbusIP.h - Header for Modbus IP Library Copyright (C) 2015 Andr Sarmento Barbosa */ #include <Arduino.h> #include <Modbus.h> #include <SPI.h> #include <Ethernet.h> #ifndef MODBUSIP_H #define MODBUSIP_H #define MODBUSIP_PORT 502 #define MODBUSIP_MAXFRAME 200 class ModbusIP : public Modbus { privat...
Change proc() to task() and put overloaded config types.
Change proc() to task() and put overloaded config types.
C
bsd-3-clause
unparallel-innovation/Modbus-Slave,andresarmento/modbus-arduino,unparallel-innovation/Modbus-Slave
8ad7d79b10b4db785bc4477c206521284ec280ae
include/sauce/internal/disposal_deleter.h
include/sauce/internal/disposal_deleter.h
#ifndef SAUCE_SAUCE_INTERNAL_DISPOSAL_DELETER_H_ #define SAUCE_SAUCE_INTERNAL_DISPOSAL_DELETER_H_ #include <sauce/memory.h> namespace sauce { namespace internal { namespace bindings { template<typename Dependency, typename Scope> class NakedBinding; /** * A smart pointer deleter that diposes with a given binding. ...
#ifndef SAUCE_SAUCE_INTERNAL_DISPOSAL_DELETER_H_ #define SAUCE_SAUCE_INTERNAL_DISPOSAL_DELETER_H_ #include <sauce/memory.h> namespace sauce { namespace internal { namespace bindings { template<typename Dependency, typename Scope> class NakedBinding; } namespace b = ::sauce::internal::bindings; /** * A smart point...
Move DisposalDeleter out of bindings namespace.
Move DisposalDeleter out of bindings namespace.
C
mit
phs/sauce,phs/sauce,phs/sauce,phs/sauce
f16528c032e344e4e8811c990c2d8736166e586c
src/transport.h
src/transport.h
#ifndef TELEMETRY_TRANSPORT_HPP_ #define TELEMETRY_TRANSPORT_HPP_ #include "HardwareSerial.h" int32_t read(uint8_t * buf, uint32_t sizeToRead) { return Serial.readBytes((char*)(buf), sizeToRead); } int32_t write(uint8_t * buf, uint32_t sizeToWrite) { Serial.write((char*)(buf),sizeToWrite); return 0; } i...
#ifndef TELEMETRY_TRANSPORT_HPP_ #define TELEMETRY_TRANSPORT_HPP_ #include "HardwareSerial.h" #include "Arduino.h" int32_t read(uint8_t * buf, uint32_t sizeToRead) { return Serial.readBytes((char*)(buf), sizeToRead); } int32_t write(uint8_t * buf, uint32_t sizeToWrite) { Serial.write((char*)(buf),sizeToWrite...
Fix missing header error in some boards
Fix missing header error in some boards
C
mit
Overdrivr/Telemetry-arduino,Overdrivr/Telemetry-arduino
a79ace9c10f52cc7124bd900bca94603978dc561
include/tasks/clock_server.h
include/tasks/clock_server.h
#ifndef __CLOCK_SERVER_H__ #define __CLOCK_SERVER_H__ #include <std.h> #include <scheduler.h> extern int clock_server_tid; typedef enum { CLOCK_NOTIFY = 1, CLOCK_DELAY = 2, CLOCK_TIME = 3, CLOCK_DELAY_UNTIL = 4 } clock_req_type; typedef struct { clock_req_type type; uint ticks; } clock_req;...
#ifndef __CLOCK_SERVER_H__ #define __CLOCK_SERVER_H__ #include <std.h> #include <scheduler.h> extern int clock_server_tid; typedef enum { CLOCK_NOTIFY = 1, CLOCK_DELAY = 2, CLOCK_TIME = 3, CLOCK_DELAY_UNTIL = 4 } clock_req_type; typedef struct { clock_req_type type; uint ticks; } clock_req;...
Fix warning given by Clang
Fix warning given by Clang
C
mit
ferrous26/cs452-flaming-meme,ferrous26/cs452-flaming-meme,ferrous26/cs452-flaming-meme
633f65f6eed79b6a13d8fe76cfdb0ac19116e118
server/types/JoinableImpl.h
server/types/JoinableImpl.h
#ifndef JOINABLE_IMPL #define JOINABLE_IMPL #include "joinable_types.h" #include "types/MediaObjectImpl.h" using ::com::kurento::kms::api::Joinable; using ::com::kurento::kms::api::Direction; using ::com::kurento::kms::api::StreamType; using ::com::kurento::kms::api::MediaSession; namespace com { namespace kurento {...
#ifndef JOINABLE_IMPL #define JOINABLE_IMPL #include "joinable_types.h" #include "types/MediaObjectImpl.h" using ::com::kurento::kms::api::Joinable; using ::com::kurento::kms::api::Direction; using ::com::kurento::kms::api::StreamType; using ::com::kurento::kms::api::MediaSession; namespace com { namespace kurento {...
Make jonable methods to return vectors via reference
Make jonable methods to return vectors via reference
C
lgpl-2.1
mparis/kurento-media-server,Kurento/kurento-media-server,todotobe1/kurento-media-server,TribeMedia/kurento-media-server,lulufei/kurento-media-server,Kurento/kurento-media-server,shelsonjava/kurento-media-server,todotobe1/kurento-media-server,mparis/kurento-media-server,lulufei/kurento-media-server,shelsonjava/kurento-m...
390d2ed51617ed0c5cde961c0bc9daa1caece1fe
NavigationReactNative/src/ios/NVSceneController.h
NavigationReactNative/src/ios/NVSceneController.h
#import <UIKit/UIKit.h> @interface NVSceneController : UIViewController @property (nonatomic, copy) void (^boundsDidChangeBlock)(NVSceneController *controller); @property (nonatomic, assign) UIStatusBarStyle statusBarStyle; @property (nonatomic, assign) BOOL statusBarHidden; - (id)initWithScene:(UIView *)view; @end...
#import <UIKit/UIKit.h> @interface NVSceneController : UIViewController @property (nonatomic, copy) void (^boundsDidChangeBlock)(NVSceneController *controller); @property (nonatomic, assign) UIStatusBarStyle statusBarStyle; @property (nonatomic, assign) BOOL statusBarHidden; - (id)initWithScene:(UIView *)view; @end...
Remove line so file doesn't show in diff
Remove line so file doesn't show in diff
C
apache-2.0
grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation
8d94846a4443ed99ccd7877bad0a558c73593441
src/shutdowncheck.h
src/shutdowncheck.h
#ifndef QAK_SHUTDOWN_CHECK_H #define QAK_SHUTDOWN_CHECK_H #include <QDebug> #include <QObject> #include <QStandardPaths> #include <QFile> #include <QFileInfo> #include <QDateTime> class ShutdownCheck : public QObject { Q_OBJECT public: enum Status { OK, FAILED, Error }; Q_...
#ifndef QAK_SHUTDOWN_CHECK_H #define QAK_SHUTDOWN_CHECK_H #include <QDebug> #include <QObject> #include <QStandardPaths> #include <QFile> #include <QFileInfo> #include <QDateTime> class ShutdownCheck : public QObject { Q_OBJECT public: enum Status { OK, FAILED, Error }; Q_...
Allow custom shutdown check cycles by exposing private functions
Allow custom shutdown check cycles by exposing private functions
C
mit
Larpon/qak,Larpon/qak,Larpon/qak
8b9c56f917399fd11e05f0561c095c275035c095
config.h
config.h
#ifndef CJET_CONFIG_H #define CJET_CONFIG_H #define SERVER_PORT 11122 #define LISTEN_BACKLOG 40 /* * It is somehow beneficial if this size is 32 bit aligned. */ #define MAX_MESSAGE_SIZE 512 #define WRITE_BUFFER_CHUNK 512 #define MAX_WRITE_BUFFER_SIZE 10 * WRITE_BUFFER_CHUNK /* Linux specific configs */ #define MAX_...
#ifndef CJET_CONFIG_H #define CJET_CONFIG_H #define SERVER_PORT 11122 #define LISTEN_BACKLOG 40 /* * It is somehow beneficial if this size is 32 bit aligned. */ #define MAX_MESSAGE_SIZE 512 #define WRITE_BUFFER_CHUNK 512 #define MAX_WRITE_BUFFER_SIZE (10 * (WRITE_BUFFER_CHUNK)) /* Linux specific configs */ #define ...
Use some paranthesis around macro parameters.
Use some paranthesis around macro parameters.
C
mit
mloy/cjet,gatzka/cjet,gatzka/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,mloy/cjet,mloy/cjet,gatzka/cjet
b28d2f877b3c419bb7643a1eadef4ea28057b1e7
docs/examples/applications/list_all_groups.c
docs/examples/applications/list_all_groups.c
#include <opensync/opensync.h> #include <opensync/opensync-group.h> int main(int argc, char *argv[]) { OSyncList *groups, *g; int i = 0; osync_bool couldloadgroups; OSyncGroup *group = NULL; OSyncGroupEnv *groupenv = NULL; groupenv = osync_group_env_new(NULL); /* load groups from default dir */ couldlo...
#include <opensync/opensync.h> #include <opensync/opensync-group.h> int main(int argc, char *argv[]) { OSyncList *groups, *g; int i = 0; osync_bool couldloadgroups; OSyncGroup *group = NULL; OSyncGroupEnv *groupenv = NULL; groupenv = osync_group_env_new(NULL); /* load groups from default dir */ couldlo...
Fix potential memory leak - freeing the newly created OSyncList was missing
Fix potential memory leak - freeing the newly created OSyncList was missing git-svn-id: e31799a7ad59d6ea355ca047c69e0aee8a59fcd3@5736 53f5c7ee-bee3-0310-bbc5-ea0e15fffd5e
C
lgpl-2.1
luizluca/opensync-luizluca,luizluca/opensync-luizluca
d21808b5823bdf53fc969019969f700573a8eb69
CefSharp.BrowserSubprocess.Core/Messaging/EvaluateScriptDelegate.h
CefSharp.BrowserSubprocess.Core/Messaging/EvaluateScriptDelegate.h
// Copyright 2010-2015 The CefSharp Project. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #pragma once #include "../CefSharp.Core/Internals/Messaging/ProcessMessageDelegate.h" namespace CefSharp { class CefAppUnmanagedWrappe...
// Copyright 2010-2015 The CefSharp Project. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #pragma once #include "../CefSharp.Core/Internals/Messaging/ProcessMessageDelegate.h" namespace CefSharp { class CefAppUnmanagedWrappe...
Rename variable to be more .net like
Rename variable to be more .net like
C
bsd-3-clause
Haraguroicha/CefSharp,ITGlobal/CefSharp,jamespearce2006/CefSharp,NumbersInternational/CefSharp,zhangjingpu/CefSharp,VioletLife/CefSharp,illfang/CefSharp,windygu/CefSharp,battewr/CefSharp,joshvera/CefSharp,battewr/CefSharp,Haraguroicha/CefSharp,ITGlobal/CefSharp,windygu/CefSharp,jamespearce2006/CefSharp,VioletLife/CefSh...
f117facb5ade615965bdd76a870659fe1f62f302
test/Analysis/uninit-vals-ps-region.c
test/Analysis/uninit-vals-ps-region.c
// RUN: clang -checker-simple -analyzer-store-region -verify %s struct s { int data; }; struct s global; void g(int); void f4() { int a; if (global.data == 0) a = 3; if (global.data == 0) g(a); // no-warning }
// RUN: clang -checker-simple -analyzer-store-region -verify %s struct s { int data; }; struct s global; void g(int); void f4() { int a; if (global.data == 0) a = 3; if (global.data == 0) // The true branch is infeasible. g(a); // no-warning }
Add comment to test case for documentation.
Add comment to test case for documentation. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@60521 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl...
5322ef2006cc93ad76140ff742cd96e74c1ec09b
compat/bswap.h
compat/bswap.h
/* * Let's make sure we always have a sane definition for ntohl()/htonl(). * Some libraries define those as a function call, just to perform byte * shifting, bringing significant overhead to what should be a simple * operation. */ /* * Default version that the compiler ought to optimize properly with * constant...
/* * Let's make sure we always have a sane definition for ntohl()/htonl(). * Some libraries define those as a function call, just to perform byte * shifting, bringing significant overhead to what should be a simple * operation. */ /* * Default version that the compiler ought to optimize properly with * constant...
Fix some printf format warnings
Fix some printf format warnings commit 51ea551 ("make sure byte swapping is optimal for git" 2009-08-18) introduced a "sane definition for ntohl()/htonl()" for use on some GNU C platforms. Unfortunately, for some of these platforms, this results in the introduction of a problem which is essentially the reverse of a pr...
C
mit
destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git
2c1de29d687dc782897f0e566080cf5d9678893c
Sources/cllvm/shim.h
Sources/cllvm/shim.h
#define _GNU_SOURCE #define __STDC_CONSTANT_MACROS #define __STDC_FORMAT_MACROS #define __STDC_LIMIT_MACROS #include <llvm-c/Analysis.h> #include <llvm-c/BitReader.h> #include <llvm-c/BitWriter.h> #include <llvm-c/Core.h> #include <llvm-c/DebugInfo.h> #include <llvm-c/Disassembler.h> #include <llvm-c/ErrorHandling.h> ...
#define _GNU_SOURCE #define __STDC_CONSTANT_MACROS #define __STDC_FORMAT_MACROS #define __STDC_LIMIT_MACROS #include <llvm-c/Analysis.h> #include <llvm-c/BitReader.h> #include <llvm-c/BitWriter.h> #include <llvm-c/Core.h> #include <llvm-c/DebugInfo.h> #include <llvm-c/Disassembler.h> #include <llvm-c/ErrorHandling.h> ...
Prepare for LLVM 7.0 migrating some utility passes
Prepare for LLVM 7.0 migrating some utility passes
C
mit
trill-lang/LLVMSwift
4f6d59a7ad30a4e27be1d3db20f39ad718bfb67a
src/vm/moar/ops/perl6_ops.c
src/vm/moar/ops/perl6_ops.c
#define MVM_SHARED 1 #include "moar.h" /* Initializes the Perl 6 extension ops. */ static void p6init(MVMThreadContext *tc) { } /* Registers the extops with MoarVM. */ void Rakudo_ops_init(MVMThreadContext *tc) { MVM_ext_register_extop(tc, "p6init", p6init, 0, NULL); }
#define MVM_SHARED 1 #include "moar.h" /* Initializes the Perl 6 extension ops. */ static void p6init(MVMThreadContext *tc) { } /* Registers the extops with MoarVM. */ MVM_DLL_EXPORT void Rakudo_ops_init(MVMThreadContext *tc) { MVM_ext_register_extop(tc, "p6init", p6init, 0, NULL); }
Make sure to export extops init symbol.
Make sure to export extops init symbol.
C
artistic-2.0
Gnouc/rakudo,teodozjan/rakudo,tbrowder/rakudo,sergot/rakudo,nunorc/rakudo,ugexe/rakudo,ab5tract/rakudo,salortiz/rakudo,tony-o/rakudo,zostay/rakudo,MasterDuke17/rakudo,azawawi/rakudo,cygx/rakudo,labster/rakudo,cognominal/rakudo,skids/rakudo,labster/rakudo,sjn/rakudo,tony-o/rakudo,sergot/rakudo,ungrim97/rakudo,samcv/raku...
f679a986df5514bb42e001a5afd149f839ebed03
test/Sema/return-noreturn.c
test/Sema/return-noreturn.c
// RUN: clang-cc %s -fsyntax-only -verify -fblocks -Wmissing-noreturn int j; void test1() { // expected-warning {{function could be attribute 'noreturn'}} ^ (void) { while (1) { } }(); // expected-warning {{block could be attribute 'noreturn'}} ^ (void) { if (j) while (1) { } }(); while (1) { } } void test2() {...
// RUN: clang-cc %s -fsyntax-only -verify -fblocks -Wmissing-noreturn int j; void test1() { // expected-warning {{function could be attribute 'noreturn'}} ^ (void) { while (1) { } }(); // expected-warning {{block could be attribute 'noreturn'}} ^ (void) { if (j) while (1) { } }(); while (1) { } } void test2() {...
Add two more test cases for attribute 'noreturn'.
Add two more test cases for attribute 'noreturn'. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@82841 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
d833601615d09c98fdc629e9b07490ffc218ff7d
bottleopener/platforms.h
bottleopener/platforms.h
#pragma once //#define __PLATFORM_CARRIOTS__ 1 //#define __PLATFORM_INITIALSTATE__ 1 #define __PLATFORM_SHIFTR__ 1 #define __PLATFORM_THINGSPEAK__ 1
#pragma once #define __PLATFORM_CARRIOTS__ 1 //#define __PLATFORM_INITIALSTATE__ 1 //#define __PLATFORM_SHIFTR__ 1 //#define __PLATFORM_THINGSPEAK__ 1
Change platform selection to Carriots
Change platform selection to Carriots
C
mit
Zenika/bottleopener_iot,Zenika/bottleopener_iot,Zenika/bottleopener_iot,Zenika/bottleopener_iot
00aac489636d56fcbe90874fa18e26c617d2d26d
3RVX/HotkeyInfo.h
3RVX/HotkeyInfo.h
#pragma once #include <map> #include <vector> class HotkeyInfo { public: enum HotkeyActions { IncreaseVolume, DecreaseVolume, SetVolume, Mute, VolumeSlider, EjectDrive, EjectLatestDrive, MediaKey, RunApp, Settings, Exit, }...
#pragma once #include <map> #include <vector> class HotkeyInfo { public: enum HotkeyActions { IncreaseVolume, DecreaseVolume, SetVolume, Mute, VolumeSlider, EjectDrive, EjectLatestDrive, MediaKey, RunApp, Settings, Exit, }...
Add documentation and ensure parameters are unsigned
Add documentation and ensure parameters are unsigned
C
bsd-2-clause
Soulflare3/3RVX,malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX,malensek/3RVX
eed9cdf420ef882a796d9f8e9a233ded25c9becb
tests/rtp/codec-discovery.c
tests/rtp/codec-discovery.c
#include <gst/gst.h> #include <gst/farsight/fs-codec.h> #include "fs-rtp-discover-codecs.h" int main (int argc, char **argv) { GList *elements = NULL; GError *error = NULL; gst_init (&argc, &argv); g_debug ("AUDIO STARTING!!"); elements = load_codecs (FS_MEDIA_TYPE_AUDIO, &error); if (error) g_...
#include <gst/gst.h> #include <gst/farsight/fs-codec.h> #include "fs-rtp-discover-codecs.h" int main (int argc, char **argv) { GList *elements = NULL; GError *error = NULL; gst_init (&argc, &argv); g_debug ("AUDIO STARTING!!"); elements = fs_rtp_blueprints_get (FS_MEDIA_TYPE_AUDIO, &error); if (err...
Use the new function names for the codec discovery tests
Use the new function names for the codec discovery tests
C
lgpl-2.1
tieto/farstream,tieto/farstream,pexip/farstream,ahmedammar/skype_farsight2,pexip/farstream,tieto/farstream,shadeslayer/farstream,pexip/farstream,ahmedammar/skype_farsight2,kakaroto/farstream,ahmedammar/skype_farsight2,pexip/farstream,tieto/farstream,kakaroto/farstream,ahmedammar/skype_farsight2,shadeslayer/farstream,ka...
6fd88d81d55e1199bab54aedc186e01dda4dbc2a
libpatlms/include/patlms/type/exception/detail/date_parse_exception.h
libpatlms/include/patlms/type/exception/detail/date_parse_exception.h
#ifndef INCLUDE_PATLMS_EXCEPTION_DETAIL_DATE_PARSE_EXCEPTION_H #define INCLUDE_PATLMS_EXCEPTION_DETAIL_DATE_PARSE_EXCEPTION_H #include <patlms/type/exception/exception.h> namespace type { namespace exception { namespace detail { class DateParseException : public interface::Exception { inline char const* what() c...
#ifndef INCLUDE_PATLMS_EXCEPTION_DETAIL_DATE_PARSE_EXCEPTION_H #define INCLUDE_PATLMS_EXCEPTION_DETAIL_DATE_PARSE_EXCEPTION_H #include <patlms/type/exception/exception.h> namespace type { namespace exception { namespace detail { class DateParseException : public interface::Exception { inline char const* what() c...
Remove dot from exception message
Remove dot from exception message
C
mit
chyla/pat-lms,chyla/pat-lms,chyla/slas,chyla/slas,chyla/slas,chyla/pat-lms,chyla/slas,chyla/pat-lms,chyla/pat-lms,chyla/pat-lms,chyla/slas,chyla/slas,chyla/pat-lms,chyla/slas
269c892039f901b97057614b664e72df31c2c597
src/driver_control/dc_dump.c
src/driver_control/dc_dump.c
void dc_dump() { static int prev_l = 0, prev_r = 0; if (!prev_l && vexRT[Btn7L]) dump_set(-80); if (!prev_r && vexRT[Btn7R]) dump_set(80); if ((prev_l && !vexRT[Btn7L]) || (prev_r && !vexRT[Btn7R])) dump_set(0); prev_l = vexRT[Btn7L]; prev_r = vexRT[Btn7R]; }
void dc_dump() { // TODO: Check direction and change to U and D static int prev_l = 0, prev_r = 0; if (!prev_l && vexRT[Btn7L]) dump_set(-127); if (!prev_r && vexRT[Btn7R]) dump_set(127); if ((prev_l && !vexRT[Btn7L]) || (prev_r && !vexRT[Btn7R])) dump_set(0); prev_l = v...
Change dump power to 127
Change dump power to 127
C
mit
qsctr/vex-4194b-2016
7d024fbf8348d0e5979c51641a5eec857a0c01e0
iOS/PlayPlan/Main/MainViewController.h
iOS/PlayPlan/Main/MainViewController.h
// // ViewController.h // PlayPlan // // Created by Zeacone on 15/10/25. // Copyright © 2015年 Zeacone. All rights reserved. // #import <UIKit/UIKit.h> #import <Accelerate/Accelerate.h> #import "PlayPlan.h" #import "SideMenu.h" @interface MainViewController : UIViewController <UITableViewDelegate, UITableViewDataS...
// // ViewController.h // PlayPlan // // Created by Zeacone on 15/10/25. // Copyright © 2015年 Zeacone. All rights reserved. // #import <UIKit/UIKit.h> #import <Accelerate/Accelerate.h> #import "PlayPlan.h" #import "SideMenu.h" @class MainViewController; @protocol MainDelegate <NSObject> - (void)dismissViewContr...
Add delegate for main view controller.
Add delegate for main view controller.
C
mit
Zeacone/PlayPlan,Zeacone/PlayPlan
3e26416dfc0cbfe6db4d07fb0564300ab538a3cc
folly/io/async/ssl/OpenSSLTransportCertificate.h
folly/io/async/ssl/OpenSSLTransportCertificate.h
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 applic...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 applic...
Add static helper to extract X509 from cert
Add static helper to extract X509 from cert Summary: Since callsites wanting an X509 from an AsyncTransportCertificate will have to perform a dynamic cast to an OpenSSLTransportCertificiate, we might as well abstract that away into a static helper. This makes it potentially a bit easier to change implementation detai...
C
apache-2.0
facebook/folly,facebook/folly,facebook/folly,facebook/folly,facebook/folly
dc429dd18745437590ab54bb6041490b86bfb543
source/Pictus/imagecache_fileentry.h
source/Pictus/imagecache_fileentry.h
#ifndef PICTUS_IMAGECACHE_FILEENTRY_H #define PICTUS_IMAGECACHE_FILEENTRY_H #include "illa/image.h" #include "orz/types.h" #include <boost/date_time.hpp> #if _WIN32 #define ENABLE_CREATED_TIME #endif namespace Img { namespace Internal { class FileEntry { public: Img::Image::Ptr Image(); const std::stri...
#ifndef PICTUS_IMAGECACHE_FILEENTRY_H #define PICTUS_IMAGECACHE_FILEENTRY_H #include "illa/image.h" #include "orz/types.h" #include <boost/date_time.hpp> #if _WIN32 #define ENABLE_CREATED_TIME #endif namespace Img { namespace Internal { class FileEntry { public: Img::Image::Ptr Image(); const std::stri...
Use correct data type for file size
Use correct data type for file size
C
mit
poppeman/Pictus,poppeman/Pictus,poppeman/Pictus
47d66020e838b170d10e4e081c8592d2ec3816c4
test_case.h
test_case.h
#ifndef TEST_CASE_H #define TEST_CASE_H namespace fs_testing { class test_case { public: virtual ~test_case() {}; virtual int setup() = 0; virtual int run() = 0; virtual int check_test() = 0; }; typedef test_case* create_t(); typedef void destroy_t(test_case*); } // namespace fs_testing #endif
#ifndef TEST_CASE_H #define TEST_CASE_H namespace fs_testing { class test_case { public: virtual ~test_case() {}; virtual int setup() = 0; virtual int run() = 0; virtual int check_test() = 0; }; typedef test_case* test_create_t(); typedef void test_destroy_t(test_case*); } // namespace fs_testing #endif
Modify to work with dynamic class loader class.
Modify to work with dynamic class loader class.
C
apache-2.0
utsaslab/crashmonkey,utsaslab/crashmonkey,utsaslab/crashmonkey,utsaslab/crashmonkey
ed7d196ea8ad39186c5fedd21e3a3c135027bc01
master/types.h
master/types.h
//Declarations for master types typedef enum { Register = 0 } MODBUSDataType; //MODBUS data types enum (coil, register, input, etc.) typedef struct { uint8_t Address; //Device address uint8_t Function; //Function called, in which exception occured uint8_t Code; //Exception code } MODBUSExceptionLog; //Parsed exce...
//Declarations for master types typedef enum { Register = 0 } MODBUSDataType; //MODBUS data types enum (coil, register, input, etc.) typedef struct { uint8_t Address; //Device address uint8_t Function; //Function called, in which exception occured uint8_t Code; //Exception code } MODBUSExceptionLog; //Parsed exce...
Add new member in MODBUSMasterStatus
Add new member in MODBUSMasterStatus
C
mit
Jacajack/modlib
472c3832f55fc92d866aaafe1ff78e6c548c1bd5
core/editline/src/rlcurses.h
core/editline/src/rlcurses.h
// @(#)root/editline:$Id$ // Author: Axel Naumann, 2009 /************************************************************************* * Copyright (C) 1995-2009, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
// @(#)root/editline:$Id$ // Author: Axel Naumann, 2009 /************************************************************************* * Copyright (C) 1995-2009, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
Fix for solaris: declare tigetnum
Fix for solaris: declare tigetnum git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@30238 27541ba8-7e3a-0410-8455-c3a389f83636
C
lgpl-2.1
bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,bbannier/ROOT,dawehner/root,dawehner/root
f2dc5111e65e46a2f7f34fc0117d015749558ec9
TDTChocolate/FoundationAdditions/NSProcessInfo+TDTEnvironmentDetection.h
TDTChocolate/FoundationAdditions/NSProcessInfo+TDTEnvironmentDetection.h
#import <Foundation/Foundation.h> @interface NSProcessInfo (TDTEnvironmentDetection) /** Determine if the current process is running inside a unit test context. Use case: When running unit tests on iOS, it is not necessary to fully initialize the application. The following check can be used to return early in th...
#import <Foundation/Foundation.h> @interface NSProcessInfo (TDTEnvironmentDetection) /** Determine if the current process is running inside a unit test context. Use case: When running unit tests on iOS, it is not necessary to fully initialize the application. The following check can be used to return early in th...
Update method name in documentation
Update method name in documentation
C
bsd-3-clause
talk-to/Chocolate,talk-to/Chocolate
ac9a5b3f4fb6037e3c75440a22cdda23776bd053
extensions/ringopengl/ring_opengl21.c
extensions/ringopengl/ring_opengl21.c
#include "ring.h" /* OpenGL 2.1 Extension Copyright (c) 2017 Mahmoud Fayed <msfclipper@yahoo.com> */ #include <GL/glew.h> #include <GL/glut.h> RING_FUNC(ring_glAccum) { if ( RING_API_PARACOUNT != 2 ) { RING_API_ERROR(RING_API_MISS2PARA); return ; } if ( ! RING_API_ISNUMBER(1) ) { RING_API_ERROR(RING_AP...
#include "ring.h" /* OpenGL 2.1 Extension Copyright (c) 2017 Mahmoud Fayed <msfclipper@yahoo.com> */ #include <GL/glew.h> #include <GL/glut.h> RING_FUNC(ring_glAccum) { if ( RING_API_PARACOUNT != 2 ) { RING_API_ERROR(RING_API_MISS2PARA); return ; } if ( ! RING_API_ISNUMBER(1) ) { RING_API_ERROR(RING_AP...
Update RingOpenGL - Add Function (Source Code) : void glActiveTexture(GLenum texture)
Update RingOpenGL - Add Function (Source Code) : void glActiveTexture(GLenum texture)
C
mit
ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring
043f57e09b031bc53b4e2b0837f2d272da8717b5
include/canvas/renderer/pipeline_builder.h
include/canvas/renderer/pipeline_builder.h
#pragma once #include <nucleus/optional.h> #include "canvas/renderer/pipeline.h" #include "canvas/renderer/vertex_definition.h" #include "canvas/utils/shader_source.h" namespace ca { class Renderer; class PipelineBuilder { public: explicit PipelineBuilder(Renderer* renderer); PipelineBuilder& attribute(nu::St...
#pragma once #include <nucleus/optional.hpp> #include "canvas/renderer/pipeline.h" #include "canvas/renderer/vertex_definition.h" #include "canvas/utils/shader_source.h" namespace ca { class Renderer; class PipelineBuilder { public: explicit PipelineBuilder(Renderer* renderer); PipelineBuilder& attribute(nu::...
Fix compilation error with improved Optional.
Fix compilation error with improved Optional.
C
mit
tiaanl/canvas,tiaanl/canvas,tiaanl/canvas
e9fbbe52f18826d5e44aaf596a59439cab4f4c60
test/CodeGen/2008-07-31-asm-labels.c
test/CodeGen/2008-07-31-asm-labels.c
// RUN: %clang_cc1 -emit-llvm -o %t %s // RUN: not grep "@pipe()" %t // RUN: grep '_thisIsNotAPipe' %t | count 3 // RUN: not grep 'g0' %t // RUN: grep '_renamed' %t | count 2 // RUN: %clang_cc1 -DUSE_DEF -emit-llvm -o %t %s // RUN: not grep "@pipe()" %t // RUN: grep '_thisIsNotAPipe' %t | count 3 // <rdr://6116729> vo...
// RUN: %clang_cc1 -emit-llvm -o %t %s // RUN: not grep "@pipe()" %t // RUN: grep '_thisIsNotAPipe' %t | count 3 // RUN: not grep '@g0' %t // RUN: grep '_renamed' %t | count 2 // RUN: %clang_cc1 -DUSE_DEF -emit-llvm -o %t %s // RUN: not grep "@pipe()" %t // RUN: grep '_thisIsNotAPipe' %t | count 3 // <rdr://6116729> v...
Fix asm label testcase flaw
Fix asm label testcase flaw - Testcase attempts to (not) grep 'g0' in output to ensure asm symbol is properly renamed, but g0 is too generic and can be part of the module's path in LLVM IR output. - Changed to grep '@g0', which is what the proper global symbol name would be if not using asm. git-svn-id: ffe6687...
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-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,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl...
60b9d099416283d5f13f19fc19a5e7c20fe012e2
You-DataStore/datastore.h
You-DataStore/datastore.h
#pragma once #ifndef YOU_DATASTORE_DATASTORE_H_ #define YOU_DATASTORE_DATASTORE_H_ #include <memory> #include "task_typedefs.h" #include "transaction.h" namespace You { namespace DataStore { namespace UnitTests {} class DataStore { public: Transaction && begin(); // Modifying methods void post(TaskId, Serialized...
#pragma once #ifndef YOU_DATASTORE_DATASTORE_H_ #define YOU_DATASTORE_DATASTORE_H_ #include <memory> #include "task_typedefs.h" #include "transaction.h" namespace You { namespace DataStore { namespace UnitTests {} class DataStore { public: Transaction && begin(); static DataStore& get(); // Modifying methods v...
Modify the instance getter of DataStore to public
Modify the instance getter of DataStore to public
C
mit
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main