commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
d2ed7959a892af6dfe0fc07d772ee3e7bfc70235 | src/systems/SimplePhysics.h | src/systems/SimplePhysics.h | #pragma once
#include "../IFactory.h"
#include "../ISystem.h"
#include <string>
#include <vector>
#include <map>
#include "../AABBTree.h"
class Property;
class IMoverComponent;
class SimplePhysics
: public Sigma::IFactory, public ISystem<IMoverComponent> {
public:
SimplePhysics() { }
~SimplePhysics() { };
/... | #pragma once
#include "../IFactory.h"
#include "../ISystem.h"
#include <string>
#include <vector>
#include <map>
#include "../AABBTree.h"
class Property;
class IMoverComponent;
class SimplePhysics
: public Sigma::IFactory, public ISystem<IMoverComponent> {
public:
SimplePhysics() { }
~SimplePhysics() { };
/... | Add the ability to get Colliders from SImplePhysics | Add the ability to get Colliders from SImplePhysics
| C | mit | adam4813/Sigma,adam4813/Sigma |
218edbbeb90d26f3c1a3934b8eae931ac972b957 | PWGCF/PWGCFChaoticityLinkDef.h | PWGCF/PWGCFChaoticityLinkDef.h | #pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ class AliChaoticity+;
#pragma link C++ class AliThreePionRadii+;
#pragma link C++ class AliChaoticityEventCollection+;
#pragma link C++ class AliChaoticityEventStruct+;
#pragma link C++ class AliChaoticityTrack... | #pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ class AliChaoticity+;
#pragma link C++ class AliThreePionRadii+;
#pragma link C++ class AliChaoticityEventCollection+;
#pragma link C++ class AliChaoticityEventStruct+;
#pragma link C++ class AliChaoticityTrack... | Update compile code for 4-pion analysis | Update compile code for 4-pion analysis
| C | bsd-3-clause | alisw/AliPhysics,jmargutt/AliPhysics,btrzecia/AliPhysics,btrzecia/AliPhysics,victor-gonzalez/AliPhysics,amaringarcia/AliPhysics,akubera/AliPhysics,fcolamar/AliPhysics,lcunquei/AliPhysics,dstocco/AliPhysics,sebaleh/AliPhysics,mkrzewic/AliPhysics,mazimm/AliPhysics,mazimm/AliPhysics,akubera/AliPhysics,nschmidtALICE/AliPhy... |
ef7d0d8445f2f0953af9c87929e0a4d9859fa017 | slave.h | slave.h | #include "modlib.h"
#include "parser.h"
#include "exception.h"
//Types
typedef struct
{
uint8_t Length; //Length of frame, if it's equal to 0, frame is not ready
uint8_t *Frame; //Response frame content
} MODBUSResponseStatus; //Type containing information about frame that is set up at slave side
typedef struct
{
... | #include "modlib.h"
#include "parser.h"
#include "exception.h"
//Types
typedef struct
{
uint8_t Length; //Length of frame, if it's equal to 0, frame is not ready
uint8_t *Frame; //Response frame content
} MODBUSResponseStatus; //Type containing information about frame that is set up at slave side
typedef struct
{
... | Add prototype of MODBUSException function | Add prototype of MODBUSException function
| C | mit | Jacajack/modlib |
ed4932362d20af4c06610592b0a13016df4aad16 | sys/posix/include/sys/bytes.h | sys/posix/include/sys/bytes.h | /*
* Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @addtogroup posix_sockets
*/
/**
* @{
*
* @file
* @brief ... | /*
* Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @addtogroup posix_sockets
*/
/**
* @{
*
* @file
* @brief ... | Revert "posix/osx: fix type conflict on OSX native" | Revert "posix/osx: fix type conflict on OSX native"
This reverts commit dcebfb11bc5a861c711e58838eec5b0131d020e2.
| C | lgpl-2.1 | OlegHahm/RIOT,yogo1212/RIOT,toonst/RIOT,toonst/RIOT,josephnoir/RIOT,mfrey/RIOT,rfuentess/RIOT,avmelnikoff/RIOT,BytesGalore/RIOT,x3ro/RIOT,lazytech-org/RIOT,A-Paul/RIOT,toonst/RIOT,rfuentess/RIOT,biboc/RIOT,kbumsik/RIOT,BytesGalore/RIOT,aeneby/RIOT,smlng/RIOT,yogo1212/RIOT,kbumsik/RIOT,cladmi/RIOT,smlng/RIOT,kYc0o/RIOT,... |
d5e8df788f3d98034edc66090d33eaeaa3179d23 | ext/fast_stack/fast_stack.c | ext/fast_stack/fast_stack.c | #include <stdio.h>
#include <ruby.h>
#include <ruby/encoding.h>
static VALUE
profiler_start(VALUE module, VALUE usec)
{
struct itimerval timer;
timer.it_interval.tv_sec = 0;
timer.it_interval.tv_usec = NUM2LONG(usec);
timer.it_value = timer.it_interval;
setitimer(ITIMER_PROF, &timer, 0);
retur... | #include <stdio.h>
#include <sys/time.h>
#include <ruby.h>
#include <ruby/encoding.h>
static VALUE
profiler_start(VALUE module, VALUE usec)
{
struct itimerval timer;
timer.it_interval.tv_sec = 0;
timer.it_interval.tv_usec = NUM2LONG(usec);
timer.it_value = timer.it_interval;
setitimer(ITIMER_PROF, ... | Fix "storage size of 'timer' isn't known" on Debian Squeeze | Fix "storage size of 'timer' isn't known" on Debian Squeeze
struct itimerval defined in sys/time.h | C | mit | SamSaffron/fast_stack,joshuaflanagan/fast_stack,lowjoel/fast_stack,lowjoel/fast_stack,joshuaflanagan/fast_stack,SamSaffron/fast_stack |
89e72b73d34f176c3002e79f52219a9647593d3b | extensions/tabs-minimized.c | extensions/tabs-minimized.c | /*
Copyright (C) 2008-2010 Christian Dywan <christian@twotoasts.de>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later versio... | Add extension 'Minimize new Tabs' | Add extension 'Minimize new Tabs'
Once it is activated the extension will minimize all newly opened
tabs by default.
| C | lgpl-2.1 | OoberMick/Midori,OoberMick/Midori | |
dece25be6d34c098514ada240a52e13b6c8946c1 | common/sdp-dummy.c | common/sdp-dummy.c | /*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2005-2006 Marcel Holtmann <marcel@holtmann.org>
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either vers... | /*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2005-2006 Marcel Holtmann <marcel@holtmann.org>
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either vers... | Return NULL in case of the dummy XML parser | Return NULL in case of the dummy XML parser
| C | lgpl-2.1 | pstglia/external-bluetooth-bluez,ComputeCycles/bluez,silent-snowman/bluez,pkarasev3/bluez,pkarasev3/bluez,mapfau/bluez,ComputeCycles/bluez,mapfau/bluez,mapfau/bluez,silent-snowman/bluez,pstglia/external-bluetooth-bluez,mapfau/bluez,silent-snowman/bluez,pstglia/external-bluetooth-bluez,ComputeCycles/bluez,pkarasev3/blue... |
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 |
b76b3ff068ccd610b54b750ca80779881ec2fd5a | tests/regression/36-octapron/36-special-unknown-globals.c | tests/regression/36-octapron/36-special-unknown-globals.c | // SKIP PARAM: --sets ana.activated[+] octApron
#include <assert.h>
extern void magic();
int g;
int h;
void main() {
int r, x;
x = r;
g = r;
h = r + 1;
assert(g < h);
magic(); // invalidates (forgets) globals
assert(g < h); // UNKNOWN!
assert(x == r); // shouldn't forget locals
}
| Add octApron test for special globals invalidation | Add octApron test for special globals invalidation
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
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 |
43c98041f7746f8d9445bdea873d86eca966b2b8 | include/clang/AST/StmtCXX.h | include/clang/AST/StmtCXX.h | //===--- StmtCXX.h - Classes for representing C++ statements ----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Split C++ statements out to their own file. | Split C++ statements out to their own file.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@70107 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... | |
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 |
caa8bfc990f7f71a9b46b63a4191d26ebc62df2d | src/dramsim3.h | src/dramsim3.h | #ifndef __MEMORY_SYSTEM__H
#define __MEMORY_SYSTEM__H
#include <functional>
#include <string>
namespace dramsim3 {
// This should be the interface class that deals with CPU
class MemorySystem {
public:
MemorySystem(const std::string &config_file, const std::string &output_dir,
std::function<v... | Add header file for external use (e.g. SST) | Add header file for external use (e.g. SST)
| C | mit | umd-memsys/DRAMsim3,umd-memsys/DRAMsim3,umd-memsys/DRAMsim3 | |
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... |
1947dff2376fbd98dde548ee18c8868da9f36709 | src/eigen_qdebug.h | src/eigen_qdebug.h | #ifndef SRC_EIGEN_QDEBUG_H_
#define SRC_EIGEN_QDEBUG_H_
#include <iostream>
#include <QDebug>
#include <Eigen/Core>
QDebug operator<<(QDebug dbg, const Eigen::Vector2f &vector)
{
dbg << "[" << vector.x() << "|" << vector.y() << "]";
return dbg.maybeSpace();
}
QDebug operator<<(QDebug dbg, const Eigen::Vector3f... | Add overloads for qDebug << and some eigen types. | Add overloads for qDebug << and some eigen types.
| C | mit | Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller | |
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 |
4dd1625af301b0fe78c062559b878e944d57448f | functional/state.h | functional/state.h | /*!
\file state.h
\brief The definition and its controls for a state monad.
*/
#ifndef FUNCTIONAL_STATE_H_
#define FUNCTIONAL_STATE_H_
#include <functional>
#include <type_traits>
#include <utility>
namespace functional {
template <typename S, typename T>
using State = std::function<std::pair<T, S>(S)>;
templa... | Add functional::State and its controls. | Add functional::State and its controls.
| C | mit | RATATATO/functional | |
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 |
915db9a6c7ec08544e52923c380c0fc3072d0bfb | tests/regression/13-privatized/55-widen-dependent-local.c | tests/regression/13-privatized/55-widen-dependent-local.c | // PARAM: --enable ana.int.interval
#include <pthread.h>
#include <assert.h>
// global priv succeeds
// global-history fails due to [1,+inf] widen ([1,+inf] join [0,+inf]) -> [-inf,+inf]
// sensitive to eval and widen order!
int g = 0;
int limit; // unknown
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
void *worke... | Add regression tests where global is more precise than global-history due to non-side widen order | Add regression tests where global is more precise than global-history due to non-side widen order
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
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 |
1c60ea6ad60006299a47fd5fe4c1be0f670a04c0 | src/python/helpers/python_wrap_vil_smart_ptr.h | src/python/helpers/python_wrap_vil_smart_ptr.h | /*ckwg +5
* Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#ifndef VISTK_PYTHON_HELPERS_PYTHON_WRAP_VIL_SMART_PTR_H
#define VISTK_PYTHON_HELPERS_PYTHON_... | Add a pointer wrapper for vil_smart_ptr | Add a pointer wrapper for vil_smart_ptr
| C | bsd-3-clause | linus-sherrill/sprokit,mathstuf/sprokit,Kitware/sprokit,mathstuf/sprokit,linus-sherrill/sprokit,linus-sherrill/sprokit,Kitware/sprokit,mathstuf/sprokit,Kitware/sprokit,mathstuf/sprokit,linus-sherrill/sprokit,Kitware/sprokit | |
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 |
c676cae40dc7b43a6159ffed0ff08cf5675a84d6 | testmud/mud/home/Text/sys/verb/ooc/wiz/system/oreglist.c | testmud/mud/home/Text/sys/verb/ooc/wiz/system/oreglist.c | /*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2013 Raymond Jennings
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundati... | Add command to list all objects owned by a given user | Add command to list all objects owned by a given user
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka | |
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 |
749fc33213dda5fdee346dfbe6cc4845c2bdbff2 | reflex/test/testDict2/ClassN.h | reflex/test/testDict2/ClassN.h | #ifndef DICT2_CLASSN_H
#define DICT2_CLASSN_H
#include "ClassI.h"
#include "ClassL.h"
class ClassN: /* public ClassI, */ public ClassL {
public:
ClassN() : fN('n') {}
virtual ~ClassN() {}
int n() { return fN; }
void setN(int v) { fN = v; }
private:
int fN;
};
#endif // DICT2_CLASSN_H
| Test class to check for ambiguities in the dictionary source code in case of non virtual diamonds | Test class to check for ambiguities in the dictionary source code in case of
non virtual diamonds
git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@16987 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | bbannier/ROOT,dawehner/root,dawehner/root,bbannier/ROOT,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,bbannier/ROOT,dawehner/root,dawehner/root,bbannier/ROOT | |
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... |
ee852c74a5ac7993cc3868bb5a1f7e5e243a2a4c | tests/regression/35-int-refinements/interval-congruence.c | tests/regression/35-int-refinements/interval-congruence.c | // PARAM: --disable ana.int.def_exc --enable ana.int.interval --enable ana.int.congruence
#include <assert.h>
int main(){
int r = -103;
for (int i = 0; i < 40; i++) {
r = r + 5;
}
// At this point r in the congr. dom should be 2 + 5Z
int k = r;
if (k >= 3) {
// After refinement ... | Add (deactivated) refinement test for interval/congruence domain | Add (deactivated) refinement test for interval/congruence domain
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
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 |
ec21d12e8b0d2fd1ace564304f3384d1a76819e4 | test2/inline/inline_addr_arg.c | test2/inline/inline_addr_arg.c | // RUN: %ocheck 3 %s
__attribute((always_inline))
inline f(int x)
{
int i = x;
&x;
i++;
return i;
}
main()
{
int added = 5;
added = f(2);
return added;
}
| Test for lvalue-argument function inlinling | Test for lvalue-argument function inlinling
| C | mit | 8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler | |
8938e5782969537a9574862a73de7dac41aad0c6 | tests/test_queue_using_array.c | tests/test_queue_using_array.c | #include <check.h>
#include "../src/queue_using_array/queue.h"
queue q;
void setup() {
init( &q );
}
void teardown() {
}
START_TEST( test_normal_ops )
{
enqueue( &q, 10 );
enqueue( &q, 12 );
ck_assert_int_eq( dequeue( &q ), 10 );
ck_assert_int_eq( dequeue( &q ), 12 );
}
END_TEST
START_TEST( te... | Test for queue using array | Test for queue using array
| C | mit | TejasR/data-structures-in-c,TejasR/data-structures-in-c | |
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 |
a7b3191a27c28c798c64b6bc012ffc0bf680ace6 | include/read_and_write_data.h | include/read_and_write_data.h | #ifndef READ_AND_WRITE_DATA_H
#define READ_AND_WRITE_DATA_H
#include <objects.h>
using namespace std;
class FileReader {
protected:
string inputFile;
public:
FileReader(const string &inputFile) : inputFile(inputFile) {}
virtual bool hasNextLine() = 0;
virtual void readNextLine(DataInstance &instance) = 0... | Define interface for data reader and writer objects | Define interface for data reader and writer objects
Also declare functions for data import and export
| C | mit | Akshay809/kopSkylines,Akshay809/kopSkylines | |
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 |
a3f14995378b1785bc17cc6d80d956003794006c | backend/src/libocl/include/ocl_printf.h | backend/src/libocl/include/ocl_printf.h | #ifndef __OCL_PRINTF_H__
#define __OCL_PRINTF_H__
#include "ocl_types.h"
/* The printf function. */
/* From LLVM 3.4, c string are all in constant address space */
#if 100*__clang_major__ + __clang_minor__ < 304
int __gen_ocl_printf_stub(const char * format, ...);
#else
int __gen_ocl_printf_stub(constant char * forma... | Add printf module into libocl | Add printf module into libocl
Signed-off-by: Junyan He <8f73a735c668918c9613b750d3a88ebf2489599f@linux.intel.com>
Reviewed-by: Zhigang Gong <e04a7b9b70b1e4c6318cf117dcd1a9056e14b97a@intel.com>
| C | lgpl-2.1 | zhenyw/beignet,freedesktop-unofficial-mirror/beignet,freedesktop-unofficial-mirror/beignet,wdv4758h/beignet,freedesktop-unofficial-mirror/beignet,freedesktop-unofficial-mirror/beignet,wdv4758h/beignet,wdv4758h/beignet,zhenyw/beignet,wdv4758h/beignet,zhenyw/beignet,wdv4758h/beignet,zhenyw/beignet,zhenyw/beignet | |
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 |
dbc62f00421915cc1934369dfca4b0708b523ae5 | tests/regression/37-congruence/05-implicitunsignedconversion-1.c | tests/regression/37-congruence/05-implicitunsignedconversion-1.c | // PARAM: --enable ana.int.congruence --enable ana.int.congruence_no_overflow
// from https://github.com/sosy-lab/sv-benchmarks/blob/master/c/bitvector-regression/implicitunsignedconversion-1.c
int main() {
unsigned int plus_one = 1;
int minus_one = -1;
int v = 0;
if(plus_one < minus_one) {
v = 1;
asse... | Add some of these cast examples as test for congruences | Add some of these cast examples as test for congruences
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
d26e89dfcb592e2f51352640822d625ee560aca7 | test/FrontendC/vla-1.c | test/FrontendC/vla-1.c | // RUN: %llvmgcc -std=gnu99 %s -S |& grep {error: "is greater than the stack alignment" }
int foo(int a)
{
int var[a] __attribute__((__aligned__(32)));
return 4;
}
| Add a testcase for the vla and stack realignment warning. | Add a testcase for the vla and stack realignment warning.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@108365 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,... | |
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 |
2484078050810da411d1ee3230558a1c4aa33ae3 | prototype/luamake/luamake.c | prototype/luamake/luamake.c | #include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
int main(int argc, char *argv[])
{
lua_State *ls;
int status;
ls = luaL_newstate();
if(argc > 1) {
status = luaL_loadfile(ls, argv[1]);
if(status) {
printf("ERROR: %s\n", lua_tostring(ls, -1));
}
}
... | Add initial lua integration concept | Add initial lua integration concept
| C | mit | sjanhunen/moss,sjanhunen/gnumake-molds,sjanhunen/moss | |
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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.