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 |
|---|---|---|---|---|---|---|---|---|---|
f8f7140dcb8c109ad0571b0c6c0f46c464c2ddad | mParticle-Apple-SDK/Kits/MPKitAPI.h | mParticle-Apple-SDK/Kits/MPKitAPI.h | #import <Foundation/Foundation.h>
@class MPAttributionResult;
@class FilteredMParticleUser;
@protocol MPKitProtocol;
@interface MPKitAPI : NSObject
- (void)logError:(NSString *_Nullable)format, ...;
- (void)logWarning:(NSString *_Nullable)format, ...;
- (void)logDebug:(NSString *_Nullable)format, ...;
- (void)logVer... | #import <Foundation/Foundation.h>
@class MPAttributionResult;
@class FilteredMParticleUser;
@protocol MPKitProtocol;
@interface MPKitAPI : NSObject
- (void)logError:(NSString *_Nullable)format, ...;
- (void)logWarning:(NSString *_Nullable)format, ...;
- (void)logDebug:(NSString *_Nullable)format, ...;
- (void)logVer... | Allow nil result in kit api attribution method | Allow nil result in kit api attribution method
Closes #66.
| C | apache-2.0 | mParticle/mParticle-iOS-SDK,mParticle/mParticle-iOS-SDK,mParticle/mparticle-apple-sdk,mParticle/mparticle-apple-sdk,mParticle/mparticle-apple-sdk,mParticle/mparticle-apple-sdk,mParticle/mparticle-apple-sdk,mParticle/mParticle-iOS-SDK,mParticle/mparticle-apple-sdk |
ac6d2c574d393bfbf1dcc1250c730550cd8c4150 | src/augs/misc/time_utils.h | src/augs/misc/time_utils.h | #pragma once
#include <ctime>
#include <string>
#include <chrono>
#include "augs/filesystem/file_time_type.h"
namespace augs {
struct date_time {
// GEN INTROSPECTOR struct augs::timestamp
std::time_t t;
// END GEN INTROSPECTOR
date_time();
date_time(const std::time_t& t) : t(t) {}
date_time(const std::c... | #pragma once
#include <ctime>
#include <string>
#include <chrono>
#include "augs/filesystem/file_time_type.h"
namespace augs {
struct date_time {
// GEN INTROSPECTOR struct augs::timestamp
std::time_t t;
// END GEN INTROSPECTOR
date_time();
date_time(const std::time_t& t) : t(t) {}
date_time(const std::c... | Build error fix for Windows | Build error fix for Windows
| C | agpl-3.0 | TeamHypersomnia/Hypersomnia,TeamHypersomnia/Augmentations,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Augmentations,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia |
76df39bdfbc3eaa67abde2a413b0610a29502520 | USART.h | USART.h | /*
* USART.h
*
* Created: 2016/9/10 16:30:30
* Author: dusch
*/
#ifndef USART_H_
#define USART_H_
#define BAUD 9600
#define F_CPU 12000000UL
#include <avr/interrupt.h>
void USART_Init(void);
void USART_Transmit(unsigned char data);
unsigned char USART_Receive(void);
#endif /* USART_H_... | /*
* USART.h
*
* Created: 2016/9/10 16:30:30
* Author: dusch
*/
#ifndef USART_H_
#define USART_H_
#define BAUD 9600
#define F_CPU 8000000UL
#include <avr/interrupt.h>
void USART_Init(void);
void USART_Transmit(unsigned char data);
unsigned char USART_Receive(void);
#endif /* USART_H_ ... | Change default F_CPU from 12000000 to 8000000 | Change default F_CPU from 12000000 to 8000000
| C | bsd-3-clause | Schummacher/AVR_SCLib,Schummacher/AVR_SCLib |
e8804501f1561e6244bd8a86ce08bbb84c0d1dcc | ext/osl/rbosl_move.h | ext/osl/rbosl_move.h | #include "ruby.h"
#include <osl/move.h>
extern VALUE cMove;
using namespace osl;
void rb_move_free(Move* ptr);
static VALUE rb_move_s_new(VALUE self);
void Init_move(void);
| Add a header file for osl::Move | Add a header file for osl::Move
| C | mit | myokoym/ruby-osl,myokoym/ruby-osl,myokoym/ruby-osl | |
c894081a7f7ac467d6282b8955e32dd3ac040ef1 | base/float_util.h | base/float_util.h | // Copyright (c) 2006-2008 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 BASE_FLOAT_UTIL_H_
#define BASE_FLOAT_UTIL_H_
#pragma once
#include "build/build_config.h"
#include <float.h>
#include <math.h>
#if de... | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BASE_FLOAT_UTIL_H_
#define BASE_FLOAT_UTIL_H_
#pragma once
#include "build/build_config.h"
#include <float.h>
#include <math.h>
#if defined... | Use isfinite instead of finite on Mac | Use isfinite instead of finite on Mac
According to math.h in the 10.6 SDK, finite is deprecated in favor of isfinite, and finite isn't available on iOS.
BUG=None
TEST=None
Review URL: https://chromiumcodereview.appspot.com/10704126
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@145876 0039d316-1c4b-4281-b951... | C | bsd-3-clause | dushu1203/chromium.src,hujiajie/pa-chromium,dednal/chromium.src,timopulkkinen/BubbleFish,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk-efl,dednal/chromium.src,pozdnyakov/chromium-crosswalk,M4sse/chromium.src,Jonekee/chromium.src,patrickm/chromium.src,patrickm/chromium.src,keishi/chromium,axinging/c... |
0d3b50ec8667ef96e6aa774e2617eb5a8c5f8034 | test/CodeGen/writable-strings.c | test/CodeGen/writable-strings.c | // RUN: clang -emit-llvm -fwritable-string %s
int main() {
char *str = "abc";
str[0] = '1';
printf("%s", str);
}
| // RUN: clang -emit-llvm -fwritable-strings %s
int main() {
char *str = "abc";
str[0] = '1';
printf("%s", str);
}
| Fix typo in writable string test | Fix typo in writable string test
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@44398 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... |
7d9656b13d1425481e2af8656f7009ad1056e484 | trace.h | trace.h | #ifndef _TRACE_H_
#define _TRACE_H_
#include <stdio.h>
#include <errno.h>
#ifdef DEBUG
#define TRACE ERROR
#else
#define TRACE(fmt,arg...) ((void) 0)
#endif
#ifdef DEBUG
#define ERROR(fmt,arg...) \
fprintf(stderr, "%s:%d: "fmt, __func__, __LINE__, ##arg)
#else
#define ERROR(fmt,arg...) \
fprintf(stderr, "%s: "fmt... | #ifndef _TRACE_H_
#define _TRACE_H_
#include <stdio.h>
#include <errno.h>
#ifdef DEBUG
#define TRACE ERROR
#else
static inline void TRACE(const char *fmt, ...) { }
#endif
#ifdef DEBUG
#define ERROR(fmt,arg...) \
fprintf(stderr, "%s:%d: "fmt, __func__, __LINE__, ##arg)
#else
#define ERROR(fmt,arg...) \
fprintf(std... | Make TRACE() safe when DEBUG is disabled. | Make TRACE() safe when DEBUG is disabled.
| C | lgpl-2.1 | dimm0/tacc_stats,aaichsmn/tacc_stats,dimm0/tacc_stats,sdsc/xsede_stats,dimm0/tacc_stats,TACC/tacc_stats,sdsc/xsede_stats,ubccr/tacc_stats,TACCProjects/tacc_stats,dimm0/tacc_stats,TACCProjects/tacc_stats,dimm0/tacc_stats,TACCProjects/tacc_stats,sdsc/xsede_stats,TACCProjects/tacc_stats,ubccr/tacc_stats,rtevans/tacc_stats... |
754fbe3028dff6448a4d50ead35911578f91c7d8 | test/test_encode_atom.c | test/test_encode_atom.c | #include <bert/encoder.h>
#include <bert/magic.h>
#include <bert/errno.h>
#include "test.h"
#include <string.h>
unsigned char output[6];
void test_output()
{
if (output[0] != BERT_MAGIC)
{
test_fail("bert_encoder_push did not add the magic byte");
}
if (output[1] != BERT_ATOM)
{
test_fail("bert_encoder_pus... | #include <bert/encoder.h>
#include <bert/magic.h>
#include <bert/errno.h>
#include "test.h"
#include <string.h>
#define EXPECTED_LENGTH 2
#define EXPECTED "id"
#define OUTPUT_SIZE (1 + 1 + 2 + EXPECTED_LENGTH)
unsigned char output[OUTPUT_SIZE];
void test_output()
{
if (output[0] != BERT_MAGIC)
{
test_fail("bert... | Use EXPECTED/EXPECTED_LENGTH/OUTPUT_SIZE macros in the atom encoding test. | Use EXPECTED/EXPECTED_LENGTH/OUTPUT_SIZE macros in the atom encoding test.
| C | mit | postmodern/libBERT |
b6d8576055965aed1d2cf796936c293462778b66 | screen_list.c | screen_list.c | //Finished just draw_new function, Sleeping zzZZ
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define LENLINE 255
//global variable assignment
struct node {
char string[LENLINE];
struct node *next; //next and previous address node linked
};
int line_amount = 0;
int draw_new(char *name, int socket,s... | Implement add_contant to draw function | Implement add_contant to draw function
| C | mit | chin8628/terminal-s-chat | |
9ab39d421665c1420afae6d8e006b01e7d0e6c61 | modules/acct_csv/rtpp_csv_acct.c | modules/acct_csv/rtpp_csv_acct.c | #include <stdint.h>
#include <stdlib.h>
#include "rtpp_module.h"
#define MI_VER_INIT(sname) {.rev = MODULE_API_REVISION, .mi_size = sizeof(sname)}
struct moduleinfo rtpp_module = {
.name = "csv_acct",
.ver = MI_VER_INIT(struct moduleinfo)
};
| #include <assert.h>
#include <stdint.h>
#include <stdlib.h>
#include "rtpp_types.h"
#include "rtpp_module.h"
#define MI_VER_INIT(sname) {.rev = MODULE_API_REVISION, .mi_size = sizeof(sname)}
struct rtpp_module_priv {
int foo;
};
static struct rtpp_module_priv *rtpp_csv_acct_ctor(struct rtpp_cfg_stable *);
static... | Add simple constructor and destructor. | Add simple constructor and destructor.
| C | bsd-2-clause | synety-jdebp/rtpproxy,dsanders11/rtpproxy,dsanders11/rtpproxy,sippy/rtpproxy,dsanders11/rtpproxy,jevonearth/rtpproxy,synety-jdebp/rtpproxy,synety-jdebp/rtpproxy,jevonearth/rtpproxy,jevonearth/rtpproxy,jevonearth/rtpproxy,synety-jdebp/rtpproxy,sippy/rtpproxy,sippy/rtpproxy |
0c59c40279df5d9fe88e254e04709fc361ab35d1 | tools/examples/svnserve-sgid.c | tools/examples/svnserve-sgid.c | /*
* Wrapper to run the svnserve process setgid.
* The idea is to avoid the problem that some interpreters like bash
* invoked by svnserve in hook scripts will reset the effective gid to
* the real gid, nuking the effect of an ordinary setgid svnserve binary.
* Sadly, to set the real gid portably, you need to be r... | Add Perry Metzger's wrapper to run the svnserve process setgid, since this can be very helpful to svn+ssh users. Quoting from the comments: | Add Perry Metzger's wrapper to run the svnserve process setgid,
since this can be very helpful to svn+ssh users. Quoting from the
comments:
* The idea is to avoid the problem that some interpreters like bash
* invoked by svnserve in hook scripts will reset the effective gid to
* the real gid, nuking the effect of ... | C | apache-2.0 | jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion | |
94693767f1b911afa9b11b4b1fa5ffd1b2eaaac2 | include/xiot/XIOTConfig.h | include/xiot/XIOTConfig.h | /*=========================================================================
This file is part of the XIOT library.
Copyright (C) 2008-2009 EDF R&D
Author: Kristian Sons (xiot@actor3d.com)
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser... | /*=========================================================================
This file is part of the XIOT library.
Copyright (C) 2008-2009 EDF R&D
Author: Kristian Sons (xiot@actor3d.com)
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser... | Disable secure function warnings via pragma | MSVC: Disable secure function warnings via pragma
| C | lgpl-2.1 | Supporting/xiot,Supporting/xiot,Supporting/xiot |
66c950522a3563c96cb7d4aca0ba4e940b769462 | includes/StackAllocator.h | includes/StackAllocator.h | #include "LinearAllocator.h"
#ifndef STACKALLOCATOR_H
#define STACKALLOCATOR_H
class StackAllocator : public LinearAllocator {
public:
/* Allocation of real memory */
StackAllocator(const long totalSize);
/* Frees all memory */
virtual ~StackAllocator();
/* Allocate virtual memory */
virtual void* Allocate(co... | #include "Allocator.h"
#ifndef STACKALLOCATOR_H
#define STACKALLOCATOR_H
class StackAllocator : public Allocator {
protected:
/* Offset from the start of the memory block */
std::size_t m_offset;
public:
/* Allocation of real memory */
StackAllocator(const long totalSize);
/* Frees all memory */
virtual ~Stack... | Change parent class from LinearAllocator to Allocator. | Change parent class from LinearAllocator to Allocator.
| C | mit | mtrebi/memory-allocators |
e5410c25e5287699260ba3d3ecd188faaf30e499 | cmd/lefty/display.h | cmd/lefty/display.h | /* $Id$ $Revision$ */
/* vim:set shiftwidth=4 ts=8: */
/**********************************************************
* This software is part of the graphviz package *
* http://www.graphviz.org/ *
* *
* Copyright (... | /* $Id$ $Revision$ */
/* vim:set shiftwidth=4 ts=8: */
/**********************************************************
* This software is part of the graphviz package *
* http://www.graphviz.org/ *
* *
* Copyright (... | Update with new lefty, fixing many bugs and supporting new features | Update with new lefty, fixing many bugs and supporting new features
| C | epl-1.0 | MjAbuz/graphviz,jho1965us/graphviz,MjAbuz/graphviz,tkelman/graphviz,kbrock/graphviz,jho1965us/graphviz,jho1965us/graphviz,jho1965us/graphviz,ellson/graphviz,pixelglow/graphviz,ellson/graphviz,MjAbuz/graphviz,ellson/graphviz,BMJHayward/graphviz,MjAbuz/graphviz,kbrock/graphviz,MjAbuz/graphviz,pixelglow/graphviz,pixelglow... |
8adf0536c9fb578a8542dcf81104d3438a5287e4 | fs/ocfs2/stack_user.c | fs/ocfs2/stack_user.c | /* -*- mode: c; c-basic-offset: 8; -*-
* vim: noexpandtab sw=8 ts=8 sts=0:
*
* stack_user.c
*
* Code which interfaces ocfs2 with fs/dlm and a userspace stack.
*
* Copyright (C) 2007 Oracle. All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of t... | Add the user stack module. | ocfs2: Add the user stack module.
Add a skeleton for the stack_user module. It's just the barebones module
code.
Signed-off-by: Joel Becker <823d0e2e55da83c1616b20ae9a15f9456fa076e5@oracle.com>
Signed-off-by: Mark Fasheh <8f0bc92cac940f3e83deb53ced7a1f201bce5732@suse.com>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kana... | |
05c6f77912696091da5bda1c47ca9b92d6b4aff7 | AVOS/AVOSCloudLiveQuery/AVSubscription.h | AVOS/AVOSCloudLiveQuery/AVSubscription.h | //
// AVSubscription.h
// AVOS
//
// Created by Tang Tianyong on 15/05/2017.
// Copyright © 2017 LeanCloud Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AVQuery.h"
#import "AVDynamicObject.h"
NS_ASSUME_NONNULL_BEGIN
@protocol AVSubscriptionDelegate <NSObject>
@end
@interface AVSubscri... | //
// AVSubscription.h
// AVOS
//
// Created by Tang Tianyong on 15/05/2017.
// Copyright © 2017 LeanCloud Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AVQuery.h"
#import "AVDynamicObject.h"
@class AVSubscription;
NS_ASSUME_NONNULL_BEGIN
@protocol AVSubscriptionDelegate <NSObject>
- ... | Add callbacks for live query | Add callbacks for live query
| C | apache-2.0 | leancloud/objc-sdk,leancloud/objc-sdk,leancloud/objc-sdk,leancloud/objc-sdk |
e949472d78298e2a2e5e6e47edfca99ffa6e6a17 | quickpather/passabilityagent.h | quickpather/passabilityagent.h | #ifndef PASSABILITYAGENT_H
#define PASSABILITYAGENT_H
#include <QPointF>
#include <QObject>
#include "quickpather_global.h"
class AbstractEntity;
// Not pure abstract, because we want it to be usable in the Q_PROPERTY macro
// and not force derived classes to multiply derive from it and QObject.
class QUICKPATHERSH... | #ifndef PASSABILITYAGENT_H
#define PASSABILITYAGENT_H
#include <QPointF>
#include <QObject>
#include "quickpather_global.h"
class AbstractEntity;
// Not pure abstract, because we want it to be usable in the Q_PROPERTY macro
// and not force derived classes to multiply derive from it and QObject.
class QUICKPATHERSH... | Add missing Q_OBJECT to PassabilityAgent | Add missing Q_OBJECT to PassabilityAgent
| C | unlicense | mitchcurtis/quickpather,mitchcurtis/quickpather |
8ee124176690ed611c8851e3dd50a823c498a08b | ndb/src/common/portlib/NdbSleep.c | ndb/src/common/portlib/NdbSleep.c | /* Copyright (C) 2003 MySQL AB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in t... | /* Copyright (C) 2003 MySQL AB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in t... | Use my_sleep instead of nanosleep for portability | Use my_sleep instead of nanosleep for portability
| C | lgpl-2.1 | natsys/mariadb_10.2,flynn1973/mariadb-aix,flynn1973/mariadb-aix,flynn1973/mariadb-aix,davidl-zend/zenddbi,natsys/mariadb_10.2,ollie314/server,flynn1973/mariadb-aix,natsys/mariadb_10.2,flynn1973/mariadb-aix,flynn1973/mariadb-aix,ollie314/server,ollie314/server,natsys/mariadb_10.2,davidl-zend/zenddbi,natsys/mariadb_10.2,... |
b9e62a6c98648d2c0b722c0bdd1e77f6fe4a1604 | cuser/acpica/acenv_header.h | cuser/acpica/acenv_header.h | #define ACPI_MACHINE_WIDTH 64
#define ACPI_SINGLE_THREADED
#define ACPI_USE_LOCAL_CACHE
#define ACPI_INLINE inline
#define ACPI_USE_NATIVE_DIVIDE
#define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED
#ifdef ACPI_FULL_DEBUG
#define ACPI_DEBUG_OUTPUT
#define ACPI_DISASSEMBLER
// Depends on threading support
#define ACPI... | #define ACPI_MACHINE_WIDTH 64
#define ACPI_SINGLE_THREADED
#define ACPI_USE_LOCAL_CACHE
#define ACPI_INLINE inline
#define ACPI_USE_NATIVE_DIVIDE
#define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED
#ifdef ACPI_FULL_DEBUG
#define ACPI_DEBUG_OUTPUT
#define ACPI_DISASSEMBLER
// Depends on threading support
#define ACPI... | Fix ACPICA word-size types - u64 didn't match UINT64 | Fix ACPICA word-size types - u64 didn't match UINT64
| C | mit | olsner/os,olsner/os,olsner/os,olsner/os |
8ea9653b3dccad78a2bb9b91adf0589828bff327 | src/core/matcher.h | src/core/matcher.h | #ifndef HAMCREST_MATCHER_H
#define HAMCREST_MATCHER_H
#include "selfdescribing.h"
namespace Hamcrest {
class Description;
/**
* A matcher over acceptable values.
* A matcher is able to describe itself to give feedback when it fails.
*
* @see BaseMatcher
*/
template <typename T>
class Matcher : public SelfDescr... | #ifndef HAMCREST_MATCHER_H
#define HAMCREST_MATCHER_H
#include "selfdescribing.h"
namespace Hamcrest {
class Description;
/**
* A matcher over acceptable values.
* A matcher is able to describe itself to give feedback when it fails.
*
* @see BaseMatcher
*/
template <typename T>
class Matcher : public SelfDescr... | Add virtual toString() to Matcher | Add virtual toString() to Matcher
| C | bsd-3-clause | cloose/Hamcrest-Qt |
37c5e9705435e2f23b6949047036504dcd215747 | src/lib/blockdev.h | src/lib/blockdev.h | #include <glib.h>
#ifndef BD_LIB
#define BD_LIB
#include "plugins.h"
#include "plugin_apis/lvm.h"
gboolean bd_init (BDPluginSpec *force_plugins);
gboolean bd_reinit (BDPluginSpec *force_plugins, gboolean replace);
gchar** bd_get_available_plugin_names ();
gboolean bd_is_plugin_available (BDPlugin);
#endif /* BD_L... | #include <glib.h>
#ifndef BD_LIB
#define BD_LIB
#include "plugins.h"
#include "plugin_apis/lvm.h"
gboolean bd_init (BDPluginSpec *force_plugins);
gboolean bd_reinit (BDPluginSpec *force_plugins, gboolean replace);
gchar** bd_get_available_plugin_names ();
gboolean bd_is_plugin_available (BDPlugin plugin);
#endif ... | Add missing parameter name in bd_is_plugin_available protype | Add missing parameter name in bd_is_plugin_available protype
| C | lgpl-2.1 | atodorov/libblockdev,rhinstaller/libblockdev,snbueno/libblockdev,dashea/libblockdev,rhinstaller/libblockdev,rhinstaller/libblockdev,vpodzime/libblockdev,vpodzime/libblockdev,snbueno/libblockdev,atodorov/libblockdev,dashea/libblockdev,vpodzime/libblockdev,atodorov/libblockdev |
88b6b07d8542216690a211419c148fda8ba1a4d7 | tests/homebrew-acceptance-test.c | tests/homebrew-acceptance-test.c | /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2013 Couchbase, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ht... | /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2013 Couchbase, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ht... | Fix 'make distcheck' (homebrew acceptance test) | Fix 'make distcheck' (homebrew acceptance test)
Change-Id: Ie61efb963f30a4548c97dfe63e261db36c2b66e2
Reviewed-on: http://review.couchbase.org/27533
Tested-by: Sergey Avseyev <87f6d5e4fd3644c3c20800cde7fd3ad1569370b3@gmail.com>
Reviewed-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>
| C | apache-2.0 | couchbase/libcouchbase,signmotion/libcouchbase,uvenum/libcouchbase,mody/libcouchbase,trondn/libcouchbase,avsej/libcouchbase,mody/libcouchbase,mnunberg/libcouchbase,kojiromike/libcouchbase,couchbase/libcouchbase,signmotion/libcouchbase,avsej/libcouchbase,avsej/libcouchbase,avsej/libcouchbase,couchbase/libcouchbase,trond... |
c11130f26d609b78e88866c87275794c463171b8 | net/quic/quic_utils.h | net/quic/quic_utils.h | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Some helpers for quic
#ifndef NET_QUIC_QUIC_UTILS_H_
#define NET_QUIC_QUIC_UTILS_H_
#include "net/base/int128.h"
#include "net/base/net_export.... | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Some helpers for quic
#ifndef NET_QUIC_QUIC_UTILS_H_
#define NET_QUIC_QUIC_UTILS_H_
#include "net/base/int128.h"
#include "net/base/net_export.... | Remove an unused forward declaration. | Remove an unused forward declaration.
R=rch@chromium.org
BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/11877024
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@176837 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | mohamed--abdel-maksoud/chromium.src,dednal/chromium.src,krieger-od/nwjs_chromium.src,PeterWangIntel/chromium-crosswalk,nacl-webkit/chrome_deps,fujunwei/chromium-crosswalk,M4sse/chromium.src,bright-sparks/chromium-spacewalk,axinging/chromium-crosswalk,hgl888/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,fujun... |
22db0fa4e3b814bb135e6700ef8d64359371d257 | memsearch/memory_access.h | memsearch/memory_access.h | #ifndef __MEMORY_ACCESS__
#define __MEMORY_ACCESS__
//TODO: File level documentations.
//TODO: Define the different process_handle_t
#define pid_t uint_t
/**
* This struct represents an error.
*
* error_number is the error as returned by the OS, 0 for no error.
* description is a null-terminated string.
**/
typ... | Add initial work on a commmon C interface. | Add initial work on a commmon C interface.
| C | mpl-2.0 | mozilla/masche,mozilla/masche | |
6f805776fca1835477b730ced60fe72d9905f874 | src/tests/marquise_init_test.c | src/tests/marquise_init_test.c | #include <glib.h>
#include <stdlib.h>
#include <string.h>
#include "../marquise.h"
void test_init() {
marquise_ctx *ctx = marquise_init("test");
g_assert_nonnull(ctx);
}
int main(int argc, char **argv) {
g_test_init(&argc, &argv, NULL);
g_test_add_func("/marquise_init/init", test_init);
return g_test_run();
}
| #include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include "../marquise.h"
void test_init() {
setenv("MARQUISE_SPOOL_DIR", "/tmp", 1);
mkdir("/tmp/marquisetest", 0700);
marquise_ctx *ctx = marquise_init("marquisetest");
g_assert_nonnull(ctx);
}
int main(int argc, char **argv) {
g_t... | Use a spool directory under /tmp for testing purposes | Use a spool directory under /tmp for testing purposes
| C | bsd-3-clause | anchor/libmarquise,anchor/libmarquise |
07a1f80eae2c8169f789da92ab6c17f829615d1a | ghighlighter/main.c | ghighlighter/main.c | #include <stdlib.h>
#include <pwd.h>
#include <string.h>
#include <sys/stat.h>
#include <gtk/gtk.h>
#include "gh-datastore.h"
#include "gh-main-window.h"
char *
data_dir_path ()
{
uid_t uid = getuid ();
struct passwd *pw = getpwuid (uid);
char *home_dir = pw->pw_dir;
char *data_dir = "/.ghighlighter-c";
in... | #include <stdlib.h>
#include <pwd.h>
#include <string.h>
#include <sys/stat.h>
#include <gtk/gtk.h>
#include "gh-datastore.h"
#include "gh-main-window.h"
char *
data_dir_path ()
{
uid_t uid = getuid ();
struct passwd *pw = getpwuid (uid);
char *home_dir = pw->pw_dir;
char *data_dir = "/.ghighlighter-c";
in... | Set null byte in allocated data dir path | Set null byte in allocated data dir path
| C | mit | chdorner/ghighlighter-c |
1af425ed1e08d00fd953d7e905f48610cc350b28 | tests/cframework/tests_plugin.h | tests/cframework/tests_plugin.h | /**
* @file
*
* @brief Some common functions operating on plugins.
*
* If you include this file you have full access to elektra's internals
* and your test might not be ABI compatible with the next release.
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#include <tests_internal.h... | /**
* @file
*
* @brief Some common functions operating on plugins.
*
* If you include this file you have full access to elektra's internals
* and your test might not be ABI compatible with the next release.
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#include <tests_internal.h... | Remove trailing semicolons from macros | Test: Remove trailing semicolons from macros
| C | bsd-3-clause | mpranj/libelektra,petermax2/libelektra,BernhardDenner/libelektra,petermax2/libelektra,mpranj/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,petermax2/libelektra,BernhardDenner/libelektra,mpranj/libelektra,mpranj/libelektra,mpranj/libelektra,BernhardDenner/libelektra,ElektraInitiative/lib... |
2794f6e44bac8a1b560d8894b1403ad874a0cd6c | viterbi/viterbi.h | viterbi/viterbi.h |
#include <link-grammar/link-features.h>
LINK_BEGIN_DECLS
void viterbi_parse(const char * sentence, Dictionary dict);
LINK_END_DECLS
|
#include "../link-grammar/link-features.h"
LINK_BEGIN_DECLS
void viterbi_parse(const char * sentence, Dictionary dict);
LINK_END_DECLS
| Fix include path so that make install doesn't screw it. | Fix include path so that make install doesn't screw it.
git-svn-id: fc35eccb03ccef1c432fd0fcf5295fcceaca86a6@32171 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
| C | lgpl-2.1 | ampli/link-grammar,ampli/link-grammar,opencog/link-grammar,opencog/link-grammar,MadBomber/link-grammar,ampli/link-grammar,linas/link-grammar,opencog/link-grammar,linas/link-grammar,MadBomber/link-grammar,MadBomber/link-grammar,linas/link-grammar,ampli/link-grammar,MadBomber/link-grammar,linas/link-grammar,MadBomber/lin... |
2bc82f8ae834a09beda89ae236b1c5e9646f186d | igor/parser/DEIgorParserException.h | igor/parser/DEIgorParserException.h | @interface DEIgorParserException : NSObject
+ (NSException *)exceptionWithReason:(NSString *)reason scanner:(NSScanner *)scanner;
@end
| @interface DEIgorParserException : NSException
+ (NSException *)exceptionWithReason:(NSString *)reason scanner:(NSScanner *)scanner;
@end
| Make Igor parser exception extend NSException | Make Igor parser exception extend NSException
| C | mit | dhemery/igor,dhemery/igor,dhemery/igor |
e32f03922712ef3516cb7c2a346b3a2ab0ebda36 | tests/chez/chez022/mkalloc.c | tests/chez/chez022/mkalloc.c | #include <malloc.h>
#include <string.h>
typedef struct {
int val;
char* str;
} Stuff;
Stuff* mkThing() {
static int num = 0;
Stuff* x = malloc(sizeof(Stuff));
x->val = num++;
x->str = malloc(20);
strcpy(x->str,"Hello");
return x;
}
char* getStr(Stuff* x) {
return x->str;
}
void f... | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
typedef struct {
int val;
char* str;
} Stuff;
Stuff* mkThing() {
static int num = 0;
Stuff* x = malloc(sizeof(Stuff));
x->val = num++;
x->str = malloc(20);
strcpy(x->str,"Hello");
return x;
}
char* getStr(Stuff* x) {
retur... | Fix includes in chez022 test | Fix includes in chez022 test
| C | bsd-3-clause | mmhelloworld/idris-jvm,mmhelloworld/idris-jvm,mmhelloworld/idris-jvm,mmhelloworld/idris-jvm,mmhelloworld/idris-jvm,mmhelloworld/idris-jvm |
8c18581110925ebe9e2b3530d4d5fc4afefbc8b0 | numpy/core/src/private/npy_import.h | numpy/core/src/private/npy_import.h | #ifndef NPY_IMPORT_H
#define NPY_IMPORT_H
#include <Python.h>
#include <assert.h>
/*! \brief Fetch and cache Python function.
*
* Import a Python function and cache it for use. The function checks if
* cache is NULL, and if not NULL imports the Python function specified by
* \a module and \a function, increments ... | #ifndef NPY_IMPORT_H
#define NPY_IMPORT_H
#include <Python.h>
/*! \brief Fetch and cache Python function.
*
* Import a Python function and cache it for use. The function checks if
* cache is NULL, and if not NULL imports the Python function specified by
* \a module and \a function, increments its reference count,... | Fix npy_cache_pyfunc to properly implement inline. | BUG: Fix npy_cache_pyfunc to properly implement inline.
The function was not static, which led to multiple definition
errors.
| C | bsd-3-clause | leifdenby/numpy,charris/numpy,sonnyhu/numpy,charris/numpy,has2k1/numpy,sinhrks/numpy,rhythmsosad/numpy,pdebuyl/numpy,jorisvandenbossche/numpy,mattip/numpy,stuarteberg/numpy,MaPePeR/numpy,Eric89GXL/numpy,MichaelAquilina/numpy,SiccarPoint/numpy,gmcastil/numpy,nguyentu1602/numpy,MSeifert04/numpy,maniteja123/numpy,mingwpy/... |
d5b629639feb01dc7f7d15cc5393612acff8f01a | tests/test-driver-decode.c | tests/test-driver-decode.c | //!compile = {cc} {ccflags} -c -o {ofile} {infile} && {cc} {ccflags} -o {outfile} {ofile} {driver} ../libdbrew.a -I../include
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <stdlib.h>
#include "dbrew.h"
int f1(int);
// possible jump target
int f2(int x) { return x; }
int main()
{
// Decode... | //!compile = as -c -o {ofile} {infile} && {cc} {ccflags} -o {outfile} {ofile} {driver} ../libdbrew.a -I../include
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <stdlib.h>
#include "dbrew.h"
int f1(int);
// possible jump target
int f2(int x) { return x; }
int main()
{
// Decode the functio... | Fix Travis for decoder tests | Fix Travis for decoder tests
The assembler of clang-3.5 in the images used by Travis seems to have
a bug with assembling the "test" instruction, resulting in machine
code with reversed operands (this does not happen e.g. with clang-3.8).
As decoder tests all use assembly files as input, we force use of the
GNU assembl... | C | lgpl-2.1 | lrr-tum/dbrew,lrr-tum/dbrew,lrr-tum/dbrew,lrr-tum/dbrew,lrr-tum/dbrew |
7a321e0489b8bfeb96f42ccef2c453d54a9fa6e5 | tests/regression/02-base/47-no-threadescape.c | tests/regression/02-base/47-no-threadescape.c | // PARAM: --set ana.activated "['base','mallocWrapper','threadflag']"
#include <pthread.h>
int g = 10;
void* t(void *v) {
int* p = (int*) v;
*p = 4711;
}
int main(void){
int l = 42;
pthread_t tid;
pthread_create(&tid, NULL, t, (void *)&l);
pthread_join(tid, NULL);
assert(l==42); //UNKNOWN!
return 0... | Add failing test without threadescape | Add failing test without threadescape
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
bd27e3eb98123cf5f2cee719e527e7ac436eccb9 | test2/literals/int_max.c | test2/literals/int_max.c | // RUN: %ucc -fsyntax-only %s
long a;
__typeof(-2147483648) a;
int b;
__typeof(-2147483647) b;
int c;
__typeof(2147483647) c;
long d;
__typeof(2147483648) d;
| Add integer literal type test | Add integer literal type test
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler | |
f9b6386e1f69a8f5b4d69b0f1af75d242bcd71e9 | src/game/detail/view_input/sound_effect_modifier.h | src/game/detail/view_input/sound_effect_modifier.h | #pragma once
#include "augs/math/declare_math.h"
#include "augs/audio/distance_model.h"
struct sound_effect_modifier {
// GEN INTROSPECTOR struct sound_effect_modifier
real32 gain = 1.f;
real32 pitch = 1.f;
real32 max_distance = -1.f;
real32 reference_distance = -1.f;
real32 doppler_factor = 1.f;
augs::distance... | #pragma once
#include "augs/math/declare_math.h"
#include "augs/audio/distance_model.h"
struct sound_effect_modifier {
// GEN INTROSPECTOR struct sound_effect_modifier
real32 gain = 1.f;
real32 pitch = 1.f;
real32 max_distance = -1.f;
real32 reference_distance = -1.f;
real32 doppler_factor = 1.f;
char repetitio... | FIx sound(..)modifier compaibility with old maps | FIx sound(..)modifier compaibility with old maps
| C | agpl-3.0 | TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia |
7a5b85dacdc86ec8cf5d32aeea2312189a0a5587 | src/forces/labeller_frame_data.h | src/forces/labeller_frame_data.h | #ifndef SRC_FORCES_LABELLER_FRAME_DATA_H_
#define SRC_FORCES_LABELLER_FRAME_DATA_H_
#include <Eigen/Core>
#include <iostream>
namespace Forces
{
/**
* \brief
*
*
*/
class LabellerFrameData
{
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
LabellerFrameData(double frameTime, Eigen::Matrix4f projection,
... | #ifndef SRC_FORCES_LABELLER_FRAME_DATA_H_
#define SRC_FORCES_LABELLER_FRAME_DATA_H_
#include "../eigen.h"
#include <iostream>
namespace Forces
{
/**
* \brief
*
*
*/
class LabellerFrameData
{
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
LabellerFrameData(double frameTime, Eigen::Matrix4f projection,
... | Use new mul function in LabellerFrameData::project. | Use new mul function in LabellerFrameData::project.
| C | mit | Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller |
58022a61d6882902b9dc22060638f1ac9a6b95bf | src/fs/driver/devfs/devfs_dvfs.c | src/fs/driver/devfs/devfs_dvfs.c | /**
* @file devfs_dvfs.c
* @brief
* @author Denis Deryugin <deryugin.denis@gmail.com>
* @version 0.1
* @date 2015-09-28
*/
/* This is stub */
| /**
* @file devfs_dvfs.c
* @brief
* @author Denis Deryugin <deryugin.denis@gmail.com>
* @version 0.1
* @date 2015-09-28
*/
#include <fs/dvfs.h>
#include <util/array.h>
static int devfs_destroy_inode(struct inode *inode) {
return 0;
}
static int devfs_iterate(struct inode *next, struct inode *parent, struct di... | Add fs-related structures and stub functions | devfs: Add fs-related structures and stub functions
| C | bsd-2-clause | Kakadu/embox,Kakadu/embox,mike2390/embox,embox/embox,gzoom13/embox,mike2390/embox,embox/embox,gzoom13/embox,mike2390/embox,mike2390/embox,Kakadu/embox,gzoom13/embox,Kakadu/embox,gzoom13/embox,gzoom13/embox,Kakadu/embox,Kakadu/embox,mike2390/embox,gzoom13/embox,mike2390/embox,gzoom13/embox,embox/embox,embox/embox,Kakadu... |
e5c5c31ef382af0620d4b9f8177e287e00a09fa0 | src/tokenizer/gru_tokenizer_factory_trainer.h | src/tokenizer/gru_tokenizer_factory_trainer.h | // This file is part of MorphoDiTa <http://github.com/ufal/morphodita/>.
//
// Copyright 2015 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... | // This file is part of MorphoDiTa <http://github.com/ufal/morphodita/>.
//
// Copyright 2015 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... | Make tokenized_sentence a structure (i.e., all fields public). | Make tokenized_sentence a structure (i.e., all fields public).
| C | mpl-2.0 | ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita |
64cc62d502eca5728de8d9aa431d7e76ce438467 | test/Analysis/stack-addr-ps.c | test/Analysis/stack-addr-ps.c | // RUN: clang -checker-simple -verify %s
int* f1() {
int x = 0;
return &x; // expected-warning{{Address of stack memory associated with local variable 'x' returned.}} expected-warning{{address of stack memory associated with local variable 'x' returned}}
}
int* f2(int y) {
return &y; // expected-warning{{Addre... | // RUN: clang -checker-simple -verify %s
int* f1() {
int x = 0;
return &x; // expected-warning{{Address of stack memory associated with local variable 'x' returned.}} expected-warning{{address of stack memory associated with local variable 'x' returned}}
}
int* f2(int y) {
return &y; // expected-warning{{Addre... | Add missing "expected warning". Add compound literal with empty initializer (just to test the analyzer handles it). | Add missing "expected warning".
Add compound literal with empty initializer (just to test the analyzer handles it).
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@58470 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... |
bade646d8e40457662c195d5b25ae41822c5f35b | safe.h | safe.h | #ifndef SAFE_H
#define SAFE_H
#include "debug.h"
#ifndef DISABLE_SAFE
#define SAFE_STRINGIFY(x) #x
#define SAFE_TOSTRING(x) SAFE_STRINGIFY(x)
#define SAFE_AT __FILE__ ":" SAFE_TOSTRING(__LINE__) ": "
#define SAFE_ASSERT(cond) do { \
if (!(cond)) { \
DEBUG_DUMP(0, "error: " SAFE_AT "%m"); \
DEBUG_BREAK(!(c... | #ifndef SAFE_H
#define SAFE_H
#include "debug.h"
#ifndef DISABLE_SAFE
#define SAFE_STRINGIFY(x) #x
#define SAFE_TOSTRING(x) SAFE_STRINGIFY(x)
#define SAFE_AT __FILE__ ":" SAFE_TOSTRING(__LINE__) ": "
#define SAFE_ASSERT(cond) do { \
if (!(cond)) { \
DEBUG_DUMP(0, "error: " SAFE_AT "%m"); \
DEBUG_BREAK(!(c... | Add SAFE_RZCALL to wrap calls that returns zero. | Add SAFE_RZCALL to wrap calls that returns zero.
| C | mit | chaoran/fibril,chaoran/fibril,chaoran/fibril |
fa0a3d781ea01c0f790c3af40cc7429ad73af132 | include/ParseNode.h | include/ParseNode.h | //=======================================================================
// Copyright Baptiste Wicht 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//=====================================================... | //=======================================================================
// Copyright Baptiste Wicht 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//=====================================================... | Make parent protected so that the child can know their parents | Make parent protected so that the child can know their parents
| C | mit | vogelsgesang/eddic,vogelsgesang/eddic,wichtounet/eddic,wichtounet/eddic,vogelsgesang/eddic,wichtounet/eddic |
894133a4b116abcde29ae9a92e5f823af6713083 | include/libk/kmem.h | include/libk/kmem.h | #ifndef KMEM_H
#define KMEM_H
#include <stdbool.h>
#include <stdint.h>
#include <arch/x86/paging.h>
#include <libk/kabort.h>
#define KHEAP_PHYS_ROOT ((void*)0x100000)
//#define KHEAP_PHYS_END ((void*)0xc1000000)
#define KHEAP_END_SENTINEL (NULL)
// 1 GB
#define PHYS_MEMORY_SIZE (1*1024*1024*1024)
#define KHEAP_BLOCK... | #ifndef KMEM_H
#define KMEM_H
#include <stdbool.h>
#include <stdint.h>
#include <arch/x86/paging.h>
#include <libk/kabort.h>
#define KHEAP_PHYS_ROOT ((void*)0x100000)
//#define KHEAP_PHYS_END ((void*)0xc1000000)
#define KHEAP_END_SENTINEL (NULL)
#define KHEAP_BLOCK_SLOP 32
struct kheap_metadata {
size_t size;
... | Remove macros which now live in paging.h | Remove macros which now live in paging.h
| C | mit | iankronquist/kernel-of-truth,Herbstein/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,awensaunders/kernel-of-truth,Herbstein/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,awensaunders/kernel-of-truth,Herbstein/kernel-of-truth,awensaunders/kernel-of-truth |
adf0978b3ac91823bf105e78aabb805aaa11e17a | src/gamemodel/Terrain.h | src/gamemodel/Terrain.h | #ifndef TERRAIN_H
#define TERRAIN_H
#include <util/Math.h>
#include <util/Random.h>
#include <vector>
#include "Constants.h"
class Terrain {
public:
Terrain(
const float stepLength = constants::TERRAIN_STEP_LENGTH,
const float amplitude = constants::TERRAIN_HEIGHT_VARIATION_AMPLITUDE,
const float... | #ifndef TERRAIN_H
#define TERRAIN_H
#include <util/Math.h>
#include <util/Random.h>
#include <vector>
#include "Constants.h"
class Terrain {
public:
Terrain(
const float stepLength = constants::TERRAIN_STEP_LENGTH,
const float amplitude = constants::TERRAIN_HEIGHT_VARIATION_AMPLITUDE,
const float... | Fix compilation bug on linux | Fix compilation bug on linux
| C | mit | GiGurra/drunken_walker,GiGurra/drunken_walker,GiGurra/drunken_walker,GiGurra/drunken_walker,GiGurra/drunken_walker |
6d5fabbdb3b2f9e81ad75c93c0b238fa0a6e14fa | MWEditorAddOns/MTextAddOn.h | MWEditorAddOns/MTextAddOn.h | //==================================================================
// MTextAddOn.h
// Copyright 1996 Metrowerks Corporation, All Rights Reserved.
//==================================================================
// This is a proxy class used by Editor add_ons. It does not inherit from BView
// but provides an ab... | // [zooey, 2005]: made MTextAddon really an abstract class
//==================================================================
// MTextAddOn.h
// Copyright 1996 Metrowerks Corporation, All Rights Reserved.
//==================================================================
// This is a proxy class used by Editor add... | Replace BeIDE header by the Pe version | Replace BeIDE header by the Pe version
We won't be building for BeIDE anyway...
| C | mit | mmuman/dontworry,mmuman/dontworry |
ed753c358e9b27571f6be5f33b25cbe0738f0e36 | src/libc/utils/efopen.c | src/libc/utils/efopen.c | #include "system.h"
FILE *
efopen(char *env)
{
char *t, *p;
int port, sock;
unless (t = getenv(env)) return (0);
if (IsFullPath(t)) return (fopen(t, "a"));
if ((p = strchr(t, ':')) && ((port = atoi(p+1)) > 0)) {
*p = 0;
sock = tcp_connect(t, port);
return (fdopen(sock, "w"));
}
return (fopen(DEV_TTY, "w"... | #include "system.h"
FILE *
efopen(char *env)
{
char *t, *p;
int port, sock;
unless (t = getenv(env)) return (0);
if (IsFullPath(t)) return (fopen(t, "a"));
if ((p = strchr(t, ':')) && ((port = atoi(p+1)) > 0)) {
*p = 0;
sock = tcp_connect(t, port);
*p = ':';
if (sock >= 0) return (fdopen(sock, "w"));
}
... | Fix a bug where we stomp on the : in a host:port in BK_SHOWPROC Also don't assume the socket connected. | Fix a bug where we stomp on the : in a host:port in BK_SHOWPROC
Also don't assume the socket connected.
bk: 44b822c06FCnb1Sd2dJJIybq98XuEw | C | apache-2.0 | bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper |
4471aecefd4d31d1507968300b978c6a6237e157 | src/config.h | src/config.h | #ifndef _CONFIG_H
#define _CONFIG_H
#define ENABLE_FUTILITY_DEPTH 1 // TODO: switch to at least 2
#define ENABLE_HISTORY 1
#define ENABLE_KILLERS 1
#define ENABLE_LMR 1
#define ENABLE_NNUE 0
#define ENABLE_NULL_MOVE_PRUNING 1
#define ENABLE_REVERSE_FUTILITY_DEPTH 1 // TODO: switch to at least 2
#define ENABLE_SEE_Q_... | #ifndef _CONFIG_H
#define _CONFIG_H
#define ENABLE_FUTILITY_DEPTH 1 // TODO: switch to at least 2
#define ENABLE_HISTORY 1
#define ENABLE_KILLERS 1
#define ENABLE_LMR 1
#define ENABLE_NNUE 0
#define ENABLE_NULL_MOVE_PRUNING 1
#define ENABLE_REVERSE_FUTILITY_DEPTH 1 // TODO: switch to at least 2
#define ENABLE_SEE_Q_... | Enable pruning losing captures in qsearch | Enable pruning losing captures in qsearch
| C | bsd-3-clause | jwatzman/nameless-chessbot,jwatzman/nameless-chessbot |
f1b1720769e346cc2a619f80191e380619421669 | stdlib/public/SwiftShims/UIKitOverlayShims.h | stdlib/public/SwiftShims/UIKitOverlayShims.h | //===--- UIKitOverlayShims.h ---===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See h... | //===--- UIKitOverlayShims.h ---===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See h... | Make the UIKit shim function properly available | [overlay] Make the UIKit shim function properly available
<rdar://problem/33789760>
| C | apache-2.0 | xwu/swift,lorentey/swift,swiftix/swift,practicalswift/swift,jckarter/swift,apple/swift,parkera/swift,shajrawi/swift,allevato/swift,harlanhaskins/swift,aschwaighofer/swift,gregomni/swift,shajrawi/swift,CodaFi/swift,lorentey/swift,xedin/swift,gregomni/swift,gregomni/swift,airspeedswift/swift,shajrawi/swift,practicalswift... |
f1c1d7f0c28424d218fdff65705118b19d3681d8 | src/Square.h | src/Square.h | #ifndef SQUARE_H_
#define SQUARE_H_
namespace flat2d
{
class Square
{
protected:
int x, y, w, h;
public:
Square(int px, int py, int dim) : x(px), y(py), w(dim), h(dim) { }
Square(int px, int py, int pw, int ph) : x(px), y(py), w(pw), h(ph) { }
bool containsPoint(int, int) const;
bool operator<(... | #ifndef SQUARE_H_
#define SQUARE_H_
namespace flat2d
{
class Square
{
protected:
int x, y, w, h;
public:
Square(int px, int py, int dim) : x(px), y(py), w(dim), h(dim) { }
Square(int px, int py, int pw, int ph) : x(px), y(py), w(pw), h(ph) { }
bool containsPoint(int, int) const;
bool operator<(... | Make square position and dimension accessible | Make square position and dimension accessible
| C | mit | LiquidityC/flat |
d582802aaf0400c4ca4a5832e63492860d8daa70 | boards/wizzimote/include/periph_conf.h | boards/wizzimote/include/periph_conf.h | #ifndef PERIPH_CONF_H
#define PERIPH_CONF_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Real Time Clock configuration
*/
#define RTC_NUMOF (1)
#ifdef __cplusplus
}
#endif
#endif /* PERIPH_CONF_H */ | #ifndef PERIPH_CONF_H
#define PERIPH_CONF_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Real Time Clock configuration
* @{
*/
#define RTC_NUMOF (1)
/** @} */
/**
* @brief Timer configuration
* @{
*/
#define TIMER_NUMOF (2U)
#define TIMER_0_EN 1
#define TIMER_1_EN 1
... | Update wizzimote timer periph config | Update wizzimote timer periph config
| C | lgpl-2.1 | ximus/RIOT,ximus/RIOT,ximus/RIOT,ximus/RIOT,ximus/RIOT,ximus/RIOT |
08a32f1488d732ddef8d4a070f27a70695729cc2 | tensorflow/core/platform/hexagon/gemm_wrapper.h | tensorflow/core/platform/hexagon/gemm_wrapper.h | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | Add a header for hexagon shared library Change: 130671228 | Add a header for hexagon shared library
Change: 130671228
| C | apache-2.0 | whn09/tensorflow,strint/tensorflow,mengxn/tensorflow,Kongsea/tensorflow,code-sauce/tensorflow,sjperkins/tensorflow,rabipanda/tensorflow,nburn42/tensorflow,gojira/tensorflow,Mistobaan/tensorflow,cancan101/tensorflow,bowang/tensorflow,zasdfgbnm/tensorflow,XueqingLin/tensorflow,bowang/tensorflow,apark263/tensorflow,mortad... | |
64df4991a93471c2862c2371c33cf30e55769f06 | test/Misc/win32-macho.c | test/Misc/win32-macho.c | // Check that basic use of win32-macho targets works.
// REQUIRES: x86-registered-target
// RUN: %clang -fsyntax-only -target x86_64-pc-win32-macho %s -o /dev/null
| // Check that basic use of win32-macho targets works.
// RUN: %clang -fsyntax-only -target x86_64-pc-win32-macho %s
| Remove dev/null redirect and x86 backend requirement from new test. | Remove dev/null redirect and x86 backend requirement from new test.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@210699 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
5ef6857a7292ccdc72bc62742ab1f92fe459ed17 | exercise102.c | exercise102.c | /* Experiment to find out what happened when printf's argument string contains
* \c, where c is some character not listed above.
*/
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
printf("\\a produces an audible or visual alert: \a\n");
printf("\\f produces a formfeed: \f\n");
printf(... | Add solution to Exercise 1-2. | Add solution to Exercise 1-2.
| C | unlicense | damiendart/knr-solutions,damiendart/knr-solutions,damiendart/knr-solutions | |
cc6b6b934894ae141bd5cdf3ddffc60e48f554af | test/FrontendC/2010-05-18-palignr.c | test/FrontendC/2010-05-18-palignr.c | // RUN: %llvmgcc -mssse3 -S -o - %s | llc -mtriple=x86_64-apple-darwin | FileCheck %s
#include <tmmintrin.h>
int main ()
{
#if defined( __SSSE3__ )
#define vec_rld_epi16( _a, _i ) ({ vSInt16 _t = _a; _t = _mm_alignr_epi8( _t, _t, _i ); /*return*/ _t; })
typedef int16_t vSInt16 __attribute__ ((__vector... | Add a test to make sure that we're lowering the shift amount correctly. | Add a test to make sure that we're lowering the shift amount correctly.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@104090 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Dri... | |
65b68f641e684cedbd25bc7bceb33af21d534b87 | pipbench/server/load_simulator.c | pipbench/server/load_simulator.c | #include <Python.h>
static PyObject *
simulate_install(PyObject *self, PyObject *args) {
long cpu_units;
long mem_bytes;
if (!PyArg_ParseTuple(args, "LL", &cpu_units, &mem_bytes)) {
return NULL;
}
char *p;
p = (char *) malloc(mem_bytes);
int j = 0;
for (long i = 0; i < cpu_un... | #include <Python.h>
static PyObject *
simulate_install(PyObject *self, PyObject *args) {
long cpu_units;
long mem_bytes;
if (!PyArg_ParseTuple(args, "LL", &cpu_units, &mem_bytes)) {
return NULL;
}
char *p;
p = (char *) malloc(mem_bytes);
int j = 0;
for (long i = 0; i < cpu_un... | Fix invalid heap issues with load simulator | Fix invalid heap issues with load simulator
| C | apache-2.0 | open-lambda/open-lambda,open-lambda/open-lambda,open-lambda/open-lambda,open-lambda/open-lambda,open-lambda/open-lambda |
80b24802591a38395110fc9e706c0456a614604c | Sources/BCRectUtilities.h | Sources/BCRectUtilities.h | //
// BCRectUtilities.h
// MBTI
//
// Created by Seth Kingsley on 9/12/12.
// Copyright (c) 2012 Bushido Coding. All rights reserved.
//
#import "BCMacros.h"
static inline __attribute__((const)) CGRect
BCRectAspectFit(CGRect containerRect, CGSize contentSize)
{
if (contentSize.width == 0)
contentSize.width = 1... | Add a utility method for aspect fill layouts (incomplete). | Add a utility method for aspect fill layouts (incomplete).
| C | bsd-3-clause | sethk/BushidoCore | |
6871d2950ed49360b01aa83960689fc85e82ee24 | LYCategory/_Foundation/_Work/NSString+Input.h | LYCategory/_Foundation/_Work/NSString+Input.h | //
// NSString+Input.h
// LYCategory
//
// Created by Rick Luo on 11/25/13.
// Copyright (c) 2013 Luo Yu. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (Input)
#pragma mark EMPTY
- (BOOL)isEmpty;
#pragma mark EMAIL
- (BOOL)isEmail;
#pragma mark SPACE
- (NSString *)trimStartSp... | //
// NSString+Input.h
// LYCategory
//
// Created by Rick Luo on 11/25/13.
// Copyright (c) 2013 Luo Yu. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (Input)
#pragma mark EMPTY
- (BOOL)isEmpty;
#pragma mark EMAIL
- (BOOL)isEmail;
#pragma mark ID
- (BOOL)isIDNumber;
#pragma... | Add : id number validation | Add : id number validation
| C | mit | blodely/LYCategory,blodely/LYCategory,blodely/LYCategory,blodely/LYCategory |
eb4808438d0feb7a25fc393da69dd8132ebed48c | You-DataStore/datastore.h | You-DataStore/datastore.h | #pragma once
#ifndef YOU_DATASTORE_DATASTORE_H_
#define YOU_DATASTORE_DATASTORE_H_
#include <deque>
#include <functional>
#include "boost/variant.hpp"
#include "task_typedefs.h"
#include "internal/operation.h"
namespace You {
namespace DataStore {
namespace UnitTests {}
class Transaction;
class DataStore {
friend cl... | #pragma once
#ifndef YOU_DATASTORE_DATASTORE_H_
#define YOU_DATASTORE_DATASTORE_H_
#include <deque>
#include <functional>
#include "boost/variant.hpp"
#include "task_typedefs.h"
#include "internal/operation.h"
namespace You {
namespace DataStore {
namespace UnitTests {}
class Transaction;
class DataStore {
friend cl... | Update reference to IOperation to include Internal namespace | Update reference to IOperation to include Internal namespace
| C | mit | cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main |
bab54887404e9f7d4fc68ce2e41ad6bae8035f55 | parser_tests.c | parser_tests.c | #include "parser.h"
#include "ast.h"
#include "tests.h"
void test_parse_number();
int main() {
test_parse_number();
return 0;
}
struct token *make_token(enum token_type tk_type, char* str, double dbl,
int number) {
struct token *tk = malloc(sizeof(struct token));
tk->type = tk_type;
if (t... | #include "parser.h"
#include "ast.h"
#include "tests.h"
void test_parse_number();
int main() {
test_parse_number();
return 0;
}
struct token *make_token(enum token_type tk_type, char* str, double dbl,
int number) {
struct token *tk = malloc(sizeof(struct token));
tk->type = tk_type;
if (t... | Fix typo in parser tests | Fix typo in parser tests
| C | mit | iankronquist/yaz,iankronquist/yaz |
244047b32d720d65be0b5ef0c832ae16acf8c26c | src/effect_layer.h | src/effect_layer.h | #pragma once
#include <pebble.h>
#include "effects.h"
//number of supported effects on a single effect_layer (must be <= 255)
#define MAX_EFFECTS 4
// structure of effect layer
typedef struct {
Layer* layer;
effect_cb* effects[MAX_EFFECTS];
void* params[MAX_EFFECTS];
uint8_t next_effect;... | #pragma once
#include <pebble.h>
#include "effects.h"
//number of supported effects on a single effect_layer (must be <= 255)
#define MAX_EFFECTS 4
// structure of effect layer
typedef struct {
Layer* layer;
effect_cb* effects[MAX_EFFECTS];
void* params[MAX_EFFECTS];
uint8_t next_effect;... | Add a few macros to support InverterLayer on BASALT | Add a few macros to support InverterLayer on BASALT
Re-add support for InverterLayer in SDK3.0.
Just include effect_layer.h in files using InverterLayer and it should
work out of the box.
Warning: This InverterLayer actually invert all colors, unlike the
original InverterLayer that had a weird behavior on Basalt.
| C | mit | n4ru/EffectLayer,clach04/EffectLayer,clach04/EffectLayer,gregoiresage/EffectLayer,n4ru/EffectLayer,clach04/EffectLayer,nevraw/EffectLayer,nevraw/EffectLayer,ron064/EffectLayer,ron064/EffectLayer,nevraw/EffectLayer,gregoiresage/EffectLayer,n4ru/EffectLayer,gregoiresage/EffectLayer,ron064/EffectLayer |
b66c645e7c70e870021d91501a4b285fb017e1ae | src/libaacs/aacs.h | src/libaacs/aacs.h | /*
* libaacs by Doom9 ppl 2009, 2010
*/
#ifndef AACS_H_
#define AACS_H_
#include <stdint.h>
#include <unistd.h>
#include "mkb.h"
#include "../file/configfile.h"
#define LIBAACS_VERSION "1.0"
typedef struct aacs AACS;
struct aacs {
uint8_t pk[16], mk[16], vuk[16], vid[16];
uint8_t *uks; // unit ... | /*
* libaacs by Doom9 ppl 2009, 2010
*/
#ifndef AACS_H_
#define AACS_H_
#include <stdint.h>
#include "mkb.h"
#include "../file/configfile.h"
#define LIBAACS_VERSION "1.0"
typedef struct aacs AACS;
struct aacs {
uint8_t pk[16], mk[16], vuk[16], vid[16];
uint8_t *uks; // unit key array (size = 16... | Remove unneed inclusion of unistd.h | Remove unneed inclusion of unistd.h
| C | lgpl-2.1 | mwgoldsmith/aacs,rraptorr/libaacs,ShiftMediaProject/libaacs,ShiftMediaProject/libaacs,zxlooong/libaacs,mwgoldsmith/aacs,rraptorr/libaacs,zxlooong/libaacs |
733ac73861e87d5d600605eb4fc6e7c295536c3b | lily_vm.c | lily_vm.c | #include "lily_impl.h"
#include "lily_symtab.h"
#include "lily_opcode.h"
static void builtin_print(lily_symbol *s)
{
if (s->val_type == vt_str)
lily_impl_send_html(((lily_strval *)s->sym_value)->str);
}
void lily_vm_execute(lily_symbol *sym)
{
lily_symbol **regs;
int *code, ci;
regs = lily_im... | #include "lily_impl.h"
#include "lily_symtab.h"
#include "lily_opcode.h"
static void builtin_print(lily_symbol *s)
{
if (s->val_type == vt_str)
lily_impl_send_html(((lily_strval *)s->sym_value)->str);
}
void lily_vm_execute(lily_symbol *sym)
{
lily_symbol **regs;
int *code, ci;
regs = lily_im... | Fix o_builtin_print and o_assign cases not breaking. | vm: Fix o_builtin_print and o_assign cases not breaking.
This was causing the hello_world.ly test to segfault.
| C | mit | jesserayadkins/lily,FascinatedBox/lily,jesserayadkins/lily,FascinatedBox/lily,FascinatedBox/lily,jesserayadkins/lily,FascinatedBox/lily |
2c9ab368a9ef9129c735becdf4d461c06d9a8a84 | include/effects/SkStippleMaskFilter.h | include/effects/SkStippleMaskFilter.h | /*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkStippleMaskFilter_DEFINED
#define SkStippleMaskFilter_DEFINED
#include "SkMaskFilter.h"
/**
* Simple MaskFilter that creates a screen door stipple pattern
*/
cla... | /*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkStippleMaskFilter_DEFINED
#define SkStippleMaskFilter_DEFINED
#include "SkMaskFilter.h"
/**
* Simple MaskFilter that creates a screen door stipple pattern
*/
cla... | Fix for compiler error in r4154 | Fix for compiler error in r4154
| C | bsd-3-clause | csulmone/skia,csulmone/skia,csulmone/skia,csulmone/skia |
a46d5e7f3700e126c6bc5c31f93a8f297e11074f | chip/host/persistence.c | chip/host/persistence.c | /* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Persistence module for emulator */
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#define BUF_SIZE 1024
static void get_stora... | /* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Persistence module for emulator */
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#define BUF_SIZE 1024
static void get_stora... | Fix a bug in emulator persistent storage | Fix a bug in emulator persistent storage
The path string is not terminated properly, causing occasional crashes.
BUG=chrome-os-partner:19235
TEST=Dump the path and check it's correct.
BRANCH=None
Change-Id: I9ccbd565ce68ffdad98f2dd90ecf19edf9805ec0
Signed-off-by: Vic Yang <5fd92abeee651458f98e2856f4f200ee971cee4d@ch... | C | bsd-3-clause | longsleep/ec,md5555/ec,longsleep/ec,mtk09422/chromiumos-platform-ec,coreboot/chrome-ec,coreboot/chrome-ec,akappy7/ChromeOS_EC_LED_Diagnostics,eatbyte/chromium-ec,alterapraxisptyltd/chromium-ec,fourier49/BZ_DEV_EC,coreboot/chrome-ec,fourier49/BZ_DEV_EC,fourier49/BZ_DEV_EC,coreboot/chrome-ec,alterapraxisptyltd/chromium-e... |
c0e295eb3b917a2d5a4c95b8f9d29e0b519d77ee | Source/Sync.h | Source/Sync.h | @import Foundation;
@import CoreData;
FOUNDATION_EXPORT double SyncVersionNumber;
FOUNDATION_EXPORT const unsigned char SyncVersionString[];
#import <Sync/SYNCPropertyMapper.h>
#import <Sync/NSEntityDescription+SYNCPrimaryKey.h>
| @import Foundation;
@import CoreData;
FOUNDATION_EXPORT double SyncVersionNumber;
FOUNDATION_EXPORT const unsigned char SyncVersionString[];
#import <Sync/SYNCPropertyMapper.h>
#import <Sync/NSEntityDescription+SYNCPrimaryKey.h>
#import <Sync/NSManagedObject+SYNCPropertyMapperHelpers.h>
| Add missing import in umbrella header | Add missing import in umbrella header
| C | mit | hyperoslo/Sync,hyperoslo/Sync |
cc97b7f92ce123b511fa649e16cc2259c5bb7edd | eacirc/solvers/local_search.h | eacirc/solvers/local_search.h | #pragma once
#include <cstddef>
#include <utility>
template <class Type, class Mut, class Eval, class Init> struct local_search {
local_search(Mut &mutator, Eval &evaluator, Init &initializer)
: _mutator(mutator)
, _evaluator(evaluator)
, _initializer(initializer) {
_initializer.ap... | #pragma once
#include <cstddef>
#include <utility>
template <class Type, class Mut, class Eval, class Init> struct local_search {
local_search(Mut &mutator, Eval &evaluator, Init &initializer)
: _mutator(mutator)
, _evaluator(evaluator)
, _initializer(initializer) {
_initializer.ap... | Fix return value of reevaluate in local search | Fix return value of reevaluate in local search
| C | mit | crocs-muni/EACirc,crocs-muni/EACirc,crocs-muni/EACirc,crocs-muni/EACirc |
cadb4be574070be846c530c387ba43d18915b595 | PodioKitTests/PKTStubs.h | PodioKitTests/PKTStubs.h | //
// PKTStubs.h
// PodioKit
//
// Created by Romain Briche on 30/01/14.
// Copyright (c) 2014 Citrix Systems, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <OHHTTPStubs/OHHTTPStubs.h>
void (^stubResponseFromFile)(NSString *, NSString *) = ^(NSString *path, NSString *responseFilename) {
... | Add convenient method to stub API responses | Add convenient method to stub API responses
| C | mit | podio/podio-objc,podio/podio-objc,podio/podio-objc,shelsonjava/podio-objc,shelsonjava/podio-objc,shelsonjava/podio-objc | |
80cac09dcd3f6227f81cc56169d69e1fae129b5d | test/Frontend/dependency-generation-crash.c | test/Frontend/dependency-generation-crash.c | // RUN: touch %t
// RUN: chmod 0 %t
// %clang -E -dependency-file bla -MT %t -MP -o %t -x c /dev/null
// rdar://9286457
| // RUN: touch %t
// RUN: chmod 0 %t
// RUN: not %clang_cc1 -E -dependency-file bla -MT %t -MP -o %t -x c /dev/null 2>&1 | FileCheck %s
// RUN: rm -f %t
// CHECK: error: unable to open output file
// rdar://9286457
| Fix dependency generation crash test to run clang and clean up after itself. | Fix dependency generation crash test to run clang and clean up after itself.
Previously the test did not have a RUN: prefix for the clang command.
In addition it was leaving behind a tmp file with no permissions causing issues when
deleting the build directory on Windows.
Differential Revision: http://reviews.llvm.or... | C | apache-2.0 | 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/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... |
c0a0e8f317ebabe87fd0e9a3f15de9acec1ef804 | seh/seh.h | seh/seh.h | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for
// full license information.
#include "stdio.h"
#if ( _MSC_VER >= 800 )
#define try __try
#define except __except
#define finally ... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for
// full license information.
#include "stdio.h"
#if ( _MSC_VER >= 800 )
#define try __try
#define except __except
#define finally ... | Revert "Dirty hack for mingw's exception handler" | Revert "Dirty hack for mingw's exception handler"
This reverts commit f9d6d03cc8a7f00588a7df7ab4b31673521fc193.
| C | mit | Endle/compiler-tests,Endle/compiler-tests,Endle/compiler-tests |
5259677050d05eb4f0f7c6292d66b31db4cd37e1 | src/software_rasterizer/demo/texture.h | src/software_rasterizer/demo/texture.h | #ifndef RPLNN_TEXTURE_H
#define RPLNN_TEXTURE_H
struct texture;
/* Should create a version of this which doesn't malloc (basically just give memory block as a parameter). */
struct texture *texture_create(const char *file_name);
void texture_destroy(struct texture **texture);
/* Just create a stryct vec2_int textur... | #ifndef RPLNN_TEXTURE_H
#define RPLNN_TEXTURE_H
struct texture;
/* Should create a version of this which doesn't malloc (basically just give memory block as a parameter). */
struct texture *texture_create(const char *file_name);
void texture_destroy(struct texture **texture);
void texture_get_info(struct texture *t... | Clean up 1: Removed old comment and vs fixed some line endings. | Clean up 1: Removed old comment and vs fixed some line endings.
| C | mit | ropelinen/rasterizer,ropelinen/rasterizer |
2b6c96c395201bd19af1328288f8f79f3eecd943 | test/structs/scope/redef_nested_good.c | test/structs/scope/redef_nested_good.c | // RUN: %ucc -fsyntax-only %s
struct B
{
int i;
};
struct Global
{
char *s;
};
f()
{
struct A
{
int i;
struct Global g;
} a;
struct B
{
int j, k;
};
a.g.s = "hi";
struct B;
struct B b;
b.k = 3;
{
struct B x = { .k = 5 };
}
}
struct R
{
struct R *next;
};
struct R r = { &r };
| Add additional nested struct redefinition test | Add additional nested struct redefinition test
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler | |
bc0dc192899f4462986220172a78a8cf59d22fcc | lib/libc/include/stddef.h | lib/libc/include/stddef.h | /******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... | /******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... | Declare size_t as unsigned long | libc: Declare size_t as unsigned long
If size_t is only "int", memset() and friends are limited
to 4 GB. And ssize_t is already declared as "long", so it
is somewhat inconsequent to define size_t as "int" only.
Signed-off-by: Thomas Huth <9e65be74847981e55b2564b6266c57d86d3bac05@redhat.com>
Signed-off-by: Alexey Kard... | C | bsd-3-clause | stefanberger/SLOF-tpm,qemu/SLOF,stefanberger/SLOF-tpm,aik/SLOF,aik/SLOF,qemu/SLOF,qemu/SLOF,stefanberger/SLOF-tpm,aik/SLOF |
cdfc79aae9d4c123ab15fea9cf1e4429f15aba66 | gobject/gobject-autocleanups.h | gobject/gobject-autocleanups.h | /*
* Copyright © 2015 Canonical Limited
*
* 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 version.
*
* This libr... | /*
* Copyright © 2015 Canonical Limited
*
* 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 version.
*
* This libr... | Add g_autoptr() support for GParamSpec | gobject: Add g_autoptr() support for GParamSpec
Do not add support for its subtypes, since all their constructors return
GParamSpec*, and g_param_spec_unref() takes a GParamSpec* rather than a
gpointer — adding G_DEFINE_AUTOPTR_CLEANUP_FUNC() for subtypes of
GParamSpec results in compiler warnings about mismatched par... | C | lgpl-2.1 | endlessm/glib,endlessm/glib,endlessm/glib,endlessm/glib,endlessm/glib |
58a72d996c2d1e3aa965a0f3b65e365b305b2269 | problem_010.c | problem_010.c | /*
* The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
*
* Find the sum of all the primes below two million.
*/
#include <stdio.h>
#include <stdint.h>
#include "euler.h"
#define PROBLEM 10
int
main(int argc, char **argv)
{
uint64_t sum = 0, number = 0;
do {
number++;
if(is_prime(numb... | Add solution for problem 10 | Add solution for problem 10
| C | bsd-2-clause | skreuzer/euler | |
5c3f7221aa63931171d1df852caf3dd93ada39c3 | Josh_Zane_Sebastian/src/parser/parser.c | Josh_Zane_Sebastian/src/parser/parser.c | #include <stdlib.h>
#include <stdio.h>
#include types.c
#include <string.h>
/* We can:
Set something equal to something
Function calls
Function definitions
Returning things -- delimiter '<'
Printing things
Iffing */
struct call parseCall(char* statement);
struct function parseFunction(char* statemen... | #include <stdlib.h>
#include <stdio.h>
#include types.c
#include <string.h>
/* We can:
Set something equal to something
Function calls
Function definitions
Returning things -- delimiter '<'
Printing things
Iffing */
char* fixSpacing(char* code) {
char* fixedCode = malloc(sizeof(char) * (strlen(cod... | Add a return statement to spcTokenize. | Add a return statement to spcTokenize.
| C | mit | aacoppa/final,aacoppa/final |
ef9fbe24b8f633c72fb423338eff7e4b60e8c987 | debug.c | debug.c | #include <stdio.h>
#include <ctype.h>
#include "debug.h"
#ifndef NDEBUG
regex_t _comp;
// Initialize the regular expression used for restricting debug output
static void __attribute__ ((constructor)) premain()
{
if (regcomp(&_comp, DCOMPONENT, REG_EXTENDED|REG_ICASE|REG_NOSUB))
die("mayb not a valid regexp: %s",... | #include <stdio.h>
#include <ctype.h>
#include "debug.h"
#ifndef NDEBUG
char *col[6] = { MAG, RED, YEL, CYN, BLU, GRN };
regex_t _comp;
// Initialize the regular expression used for restricting debug output
static void __attribute__ ((constructor)) premain()
{
if (regcomp(&_comp, DCOMPONENT, REG_EXTENDED|REG_ICAS... | Fix typo in message and add colors | Fix typo in message and add colors
| C | bsd-2-clause | NTAP/warpcore,NTAP/warpcore,NTAP/warpcore,NTAP/warpcore |
243b732749fa31bbcc523ad85072e9389ad128e9 | templates/VpiListener.h | templates/VpiListener.h | // -*- c++ -*-
/*
Copyright 2019 Alain Dargelas
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | // -*- c++ -*-
/*
Copyright 2019 Alain Dargelas
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | Use of vpiHandle requires inclusion of vpi_user. | Use of vpiHandle requires inclusion of vpi_user.
Signed-off-by: Henner Zeller <259ad50fabbfd39355f36ecd6c0afca541ea66ef@acm.org>
| C | apache-2.0 | chipsalliance/UHDM,chipsalliance/UHDM,chipsalliance/UHDM |
ff49a712c4cc188cdd7d0207595d99c89fe985f0 | modules/gadgeteer/gadget/Type/DeviceInterface.h | modules/gadgeteer/gadget/Type/DeviceInterface.h | #ifndef _VJ_DEVICE_INTERFACE_H_
#define _VJ_DEVICE_INTERFACE_H_
//: Base class for simplified interfaces
//
// Interfaces provide an easier way to access proxy objects from
// within user applications. <br> <br>
//
// Users can simply declare a local interface variable and use it
// as a smart_ptr for the proxy
//
//!... | #ifndef _VJ_DEVICE_INTERFACE_H_
#define _VJ_DEVICE_INTERFACE_H_
//: Base class for simplified interfaces
//
// Interfaces provide an easier way to access proxy objects from
// within user applications. <br> <br>
//
// Users can simply declare a local interface variable and use it
// as a smart_ptr for the proxy
//
//!... | Include vjConfig.h rather than mstring.h to get the basic_string implmentation. | Include vjConfig.h rather than mstring.h to get the basic_string
implmentation.
git-svn-id: 769d22dfa2d22aad706b9a451492fb87c0735f19@596 08b38cba-cd3b-11de-854e-f91c5b6e4272
| C | lgpl-2.1 | godbyk/vrjuggler-upstream-old,vancegroup-mirrors/vrjuggler,vancegroup-mirrors/vrjuggler,LiuKeHua/vrjuggler,godbyk/vrjuggler-upstream-old,vancegroup-mirrors/vrjuggler,vrjuggler/vrjuggler,MichaelMcDonnell/vrjuggler,godbyk/vrjuggler-upstream-old,godbyk/vrjuggler-upstream-old,vrjuggler/vrjuggler,MichaelMcDonnell/vrjuggler,... |
145736a1f03d709ae39ddfc7da2246d9dc8446bb | test/dbus_client_SUITE_data/marshal.c | test/dbus_client_SUITE_data/marshal.c | #include <stdlib.h>
#include <stdio.h>
#include <dbus/dbus.h>
void main(int argc, char* argv[]) {
DBusMessage* m;
dbus_uint32_t arg_a = 0x11223344;
char arg_b = 0x42;
const dbus_uint64_t array[] = {};
const dbus_uint64_t *arg_c = array;
char arg_d = 0x23;
char* wire;
int len;
m = dbus_message_new_... | Add sample C code for comparing serializations | Add sample C code for comparing serializations
| C | apache-2.0 | lizenn/erlang-dbus,lizenn/erlang-dbus | |
ce941743ce1eefc51c98401514f9165d6d66040e | sauce/memory.h | sauce/memory.h | #ifndef SAUCE_MEMORY_H_
#define SAUCE_MEMORY_H_
#if SAUCE_STD_SMART_PTR
#include <sauce/internal/memory/std.h>
#elif SAUCE_STD_TR1_SMART_PTR
#include <sauce/internal/memory/tr1.h>
#elif SAUCE_BOOST_SMART_PTR
#include <sauce/internal/memory/boost.h>
#else
#error Please define SAUCE_STD_SMART_PTR, SAUCE_STD_TR1_... | #ifndef SAUCE_MEMORY_H_
#define SAUCE_MEMORY_H_
#if SAUCE_STD_SMART_PTR
#include <sauce/internal/memory/std.h>
#elif SAUCE_STD_TR1_SMART_PTR
#include <sauce/internal/memory/tr1.h>
#elif SAUCE_BOOST_SMART_PTR
#include <sauce/internal/memory/boost.h>
#else
#include <sauce/internal/memory/std.h>
#endif
#endif //... | Use standard smart pointers by default. | Use standard smart pointers by default.
| C | mit | phs/sauce,phs/sauce,phs/sauce,phs/sauce |
82c36b1c384592069dd6637120d15cfd5b674463 | include/webdriverxx/detail/time.h | include/webdriverxx/detail/time.h | #ifndef WEBDRIVERXX_DETAIL_TIME_H
#define WEBDRIVERXX_DETAIL_TIME_H
#include "error_handling.h"
#include "../types.h"
#ifdef _WIN32
#include <windows.h>
#else
#include <time.h>
#endif
namespace webdriverxx {
namespace detail {
TimePoint Now() {
#ifdef _WIN32
FILETIME time;
::GetSystemTimeAsFileTime(&time);... | #ifndef WEBDRIVERXX_DETAIL_TIME_H
#define WEBDRIVERXX_DETAIL_TIME_H
#include "error_handling.h"
#include "../types.h"
#ifdef _WIN32
#include <windows.h>
#else
#include <time.h>
#endif
namespace webdriverxx {
namespace detail {
TimePoint Now() {
#ifdef _WIN32
FILETIME time;
::GetSystemTimeAsFileTime(&time);... | Fix Win32 implementation of Now() | Fix Win32 implementation of Now()
| C | mit | sekogan/webdriverxx,sekogan/webdriverxx,sekogan/webdriverxx |
58d8646c8cd7e8b7ca6624e2650a1bf52fd2ec36 | include/sajson_ostream.h | include/sajson_ostream.h | #pragma once
#include "sajson.h"
#include <ostream>
namespace sajson {
inline std::ostream& operator<<(std::ostream& os, type t) {
switch (t) {
case TYPE_INTEGER:
return os << "<integer>";
case TYPE_DOUBLE:
return os << "<double>";
case TYPE_NULL:
return os << "<null>";
cas... | #pragma once
#include "sajson.h"
#include <ostream>
namespace sajson {
inline std::ostream& operator<<(std::ostream& os, type t) {
switch (t) {
case TYPE_INTEGER:
return os << "<integer>";
case TYPE_DOUBLE:
return os << "<double>";
case TYPE_NULL:
return os << "<null>";
cas... | Add missing closing angle bracket | Add missing closing angle bracket | C | mit | iboB/sajson,chadaustin/sajson,chadaustin/sajson,chadaustin/sajson,chadaustin/sajson,chadaustin/sajson,iboB/sajson,chadaustin/sajson,iboB/sajson,iboB/sajson,iboB/sajson,iboB/sajson |
d5105abdf717676f4801fb5e31c7cb0f62f11eab | src/utils/cuda_helper.h | src/utils/cuda_helper.h | #ifndef SRC_UTILS_CUDA_HELPER_H_
#define SRC_UTILS_CUDA_HELPER_H_
#include <cuda.h>
#include <cuda_runtime.h>
#include <iostream>
#include <stdexcept>
static void HandleError(cudaError_t error, const char *file, int line)
{
if (error != cudaSuccess)
{
printf("%s in %s at line %d\n", cudaGetErrorString(error)... | #ifndef SRC_UTILS_CUDA_HELPER_H_
#define SRC_UTILS_CUDA_HELPER_H_
#include <cuda.h>
#include <cuda_runtime.h>
#include <iostream>
#include <stdexcept>
#define HANDLE_ERROR(error) \
{ \
... | Move static function into macro to circumvent unused function waringn-erros. | Move static function into macro to circumvent unused function waringn-erros.
| C | mit | Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller |
76e0a594de107adf654bf8b13a6bcc1480d05184 | include/lomse_version.h | include/lomse_version.h | //---------------------------------------------------------------------------------------
// This file is part of the Lomse library.
// Do not alter layout. Will affect CMakeLists.txt data extraction code
//
// | All values aligned here
#define LOMSE_VERSION_MAJOR 0
#define LOMSE_VERSION_... | //---------------------------------------------------------------------------------------
// This file is part of the Lomse library.
// Do not alter layout. Will affect CMakeLists.txt data extraction code
//
// | All values aligned here
#define LOMSE_VERSION_MAJOR 0
#define LOMSE_VERSION_... | Update revno in config file | Update revno in config file
| C | mit | lenmus/lomse,lenmus/lomse,lenmus/lomse |
54a079f94107a1ad655ee0cb3314eb76c90f09c0 | check/tests/check_check_main.c | check/tests/check_check_main.c | #include <stdlib.h>
#include <stdio.h>
#include <check.h>
#include "check_check.h"
int main (void)
{
int n;
SRunner *sr;
fork_setup();
setup_fixture();
sr = srunner_create (make_master_suite());
srunner_add_suite(sr, make_list_suite());
srunner_add_suite(sr, make_msg_suite());
srunner_add_suite(sr, ma... | #include <stdlib.h>
#include <stdio.h>
#include <check.h>
#include "check_check.h"
int main (void)
{
int n;
SRunner *sr;
fork_setup();
setup_fixture();
sr = srunner_create (make_master_suite());
srunner_add_suite(sr, make_list_suite());
srunner_add_suite(sr, make_msg_suite());
srunner_add_suite(sr, ma... | Use correct variable for number of tests | Use correct variable for number of tests
git-svn-id: ae38cf1093b87151f738d2b2220cac7742ad2e55@230 64e312b2-a51f-0410-8e61-82d0ca0eb02a
| C | lgpl-2.1 | lubosz/check,lubosz/check,lubosz/check,lubosz/check |
e60f388234367f69c295b2b291d7339eb9cac7b7 | inline_dbg_lbl.c | inline_dbg_lbl.c | // ucc -g tim.c
_Noreturn void abort()
{
__builtin_unreachable();
}
void realloc()
{
int local = 5;
abort();
}
| Debug label inline function bug | Debug label inline function bug
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler | |
d697806b15a0bb6158146f545554d8aa6ffcadc9 | src/powerman.c | src/powerman.c | /*! \file
* \\brief This file is for later use for power management functions as we see fit for them.
* May not even use at all.
*/
//test test
| /*! \file
* \\brief This file is for later use for power management functions as we see fit for them.
* May not even use at all.
*/ | Revert "added testing comment for testing!" | Revert "added testing comment for testing!"
This reverts commit ffc29b89462973571224e523eaf0c69fef88b1f2.
| C | bsd-2-clause | bplainia/galaxyLightingSystem,bplainia/galaxyLightingSystem,bplainia/galaxyLightingSystem,bplainia/galaxyLightingSystem,bplainia/galaxyLightingSystem |
7788edff9108cafc593759e9e406d6da6509c799 | test/tstnmem.c | test/tstnmem.c | /*
* Copyright (c) 2002-2004, Index Data
* See the file LICENSE for details.
*
* $Id: tstnmem.c,v 1.2 2004-09-29 20:15:48 adam Exp $
*/
#if HAVE_CONFIG_H
#include <config.h>
#endif
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <yaz/nmem.h>
int main (int argc, char **arg... | /*
* Copyright (c) 2002-2004, Index Data
* See the file LICENSE for details.
*
* $Id: tstnmem.c,v 1.3 2005-01-05 10:29:42 adam Exp $
*/
#if HAVE_CONFIG_H
#include <config.h>
#endif
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <yaz/nmem.h>
int main (int argc, char **arg... | Check that assignments to NMEM memory for some basic types | Check that assignments to NMEM memory for some basic types
| C | bsd-3-clause | dcrossleyau/yaz,nla/yaz,dcrossleyau/yaz,nla/yaz,nla/yaz,dcrossleyau/yaz,nla/yaz |
e7deadc8985652879ec54c0943d6b396eba60598 | libmultipath/defaults.h | libmultipath/defaults.h | #define DEFAULT_GETUID "/lib/udev/scsi_id --whitelisted --device=/dev/%n"
#define DEFAULT_UDEVDIR "/dev"
#define DEFAULT_MULTIPATHDIR "/" LIB_STRING "/multipath"
#define DEFAULT_SELECTOR "round-robin 0"
#define DEFAULT_ALIAS_PREFIX "mpath"
#define DEFAULT_FEATURES "0"
#define DEFAULT_HWHANDLER "0"
#define DEFAULT_MIN... | #define DEFAULT_GETUID "/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/%n"
#define DEFAULT_UDEVDIR "/dev"
#define DEFAULT_MULTIPATHDIR "/" LIB_STRING "/multipath"
#define DEFAULT_SELECTOR "round-robin 0"
#define DEFAULT_ALIAS_PREFIX "mpath"
#define DEFAULT_FEATURES "0"
#define DEFAULT_HWHANDLER "0... | Use '--replace-whitespace' option for scsi_id | Use '--replace-whitespace' option for scsi_id
Some SCSI devices will return an identifier with spaces in it.
As we're using this name as the default device-mapper name we
should be reformatting it to replace all spaces with underscores
so as not to confuse device-mapper.
References: bnc#572209
Signed-off-by: Hannes ... | C | lgpl-2.1 | vijaychauhan/multipath-tools,unakatsuo/multipath-tools,unakatsuo/multipath-tools,vijaychauhan/multipath-tools,unakatsuo/multipath-tools |
8ef343ed77f1b614d859fee967741f951b59943f | lily_vm.c | lily_vm.c | #include "lily_impl.h"
#include "lily_symtab.h"
#include "lily_opcode.h"
static void builtin_print(lily_symbol *s)
{
if (s->val_type == vt_str)
lily_impl_send_html(((lily_strval *)s->sym_value)->str);
}
void lily_vm_execute(lily_symbol *sym)
{
lily_symbol **regs;
int *code, ci;
regs = lily_im... | #include "lily_impl.h"
#include "lily_symtab.h"
#include "lily_opcode.h"
static void builtin_print(lily_symbol *s)
{
if (s->val_type == vt_str)
lily_impl_send_html(((lily_strval *)s->sym_value)->str);
}
void lily_vm_execute(lily_symbol *sym)
{
lily_symbol **regs;
int *code, ci;
regs = lily_im... | Fix o_builtin_print and o_assign cases not breaking. | vm: Fix o_builtin_print and o_assign cases not breaking.
This was causing the hello_world.ly test to segfault.
| C | mit | crasm/lily,crasm/lily,crasm/lily,boardwalk/lily,boardwalk/lily |
09eb6e7c2599f2deee888c751e7f547d7c64ce13 | test/CFrontend/2007-05-07-NestedStructReturn.c | test/CFrontend/2007-05-07-NestedStructReturn.c | // RUN: %llvmgcc %s -S -fnested-functions -o - | grep {sret *%agg.result}
struct X { int m, n, o, p; };
struct X p(int n) {
struct X c(int m) {
struct X x;
x.m = m;
x.n = n;
return x;
}
return c(n);
}
| // RUN: %llvmgcc %s -S -fnested-functions -o - | grep {sret *%agg.result}
struct X { long m, n, o, p; };
struct X p(int n) {
struct X c(int m) {
struct X x;
x.m = m;
x.n = n;
return x;
}
return c(n);
}
| Make the struct bigger, to ensure it is returned by struct return. | Make the struct bigger, to ensure it is returned
by struct return.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@50037 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirro... |
8ba15da9e2b2bc104a1ffec542aca9086369202b | tests/regression/36-octapron/34-large-bigint.c | tests/regression/36-octapron/34-large-bigint.c | // SKIP PARAM: --sets ana.activated[+] octApron
#include <assert.h>
void main() {
// requires bigint, not int64
unsigned long long x, y, z;
if (x < y && y < z) {
assert(x < y);
assert(y < z);
assert(x < z);
if (18446744073709551612ull <= x && z <= 18446744073709551615ull) {
assert(18446744... | Add octApron test where bigint is required | Add octApron test where bigint is required
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
66dd652a48418ecdd7ed24fc8f9aa76918e94473 | src/liborbit/orbit_platforms.h | src/liborbit/orbit_platforms.h | //
// orbit_platforms.h
// OrbitVM
//
// Created by Cesar Parent on 2016-11-14.
// Copyright © 2016 cesarparent. All rights reserved.
//
#ifndef OrbitPlatforms_h
#define OrbitPlatforms_h
#if __STDC_VERSION__ >= 199901L
#define ORBIT_FLEXIBLE_ARRAY_MEMB
#else
#define ORBIT_FLEXIBLE_ARRRAY_MEMB 0
#endif
#endif ... | //
// orbit_platforms.h
// OrbitVM
//
// Created by Cesar Parent on 2016-11-14.
// Copyright © 2016 cesarparent. All rights reserved.
//
#ifndef OrbitPlatforms_h
#define OrbitPlatforms_h
#ifdef _WIN32
#define ORBIT_PLATFORM "Windows"
#elif __APPLE__
#include "TargetConditionals.h"
#if TARGET_IPHONE_SIMULATOR
#defi... | Add platform names in orbit_platform.h | Add platform names in orbit_platform.h
| C | mit | amyinorbit/orbitvm,amyinorbit/orbitvm,amyinorbit/orbitvm,cesarparent/orbitvm,cesarparent/orbitvm |
e78f945e54fe4d6fb4ee5a0ac6eeb1a9d724e9b1 | vm/capi/defines.h | vm/capi/defines.h | /* Stub file provided for C extensions that expect it. All regular
* defines and prototypes are in ruby.h
*/
#define RUBY
/* These are defines directly related to MRI C-API symbols that the
* mkmf.rb discovery code (e.g. have_func("rb_str_set_len")) would
* attempt to find by linking against libruby. Rubinius doe... | /* Stub file provided for C extensions that expect it. All regular
* defines and prototypes are in ruby.h
*/
#define RUBY
/* These are defines directly related to MRI C-API symbols that the
* mkmf.rb discovery code (e.g. have_func("rb_str_set_len")) would
* attempt to find by linking against libruby. Rubinius doe... | Define HAVE_RB_DEFINE_ALLOC_FUNC for postgres gem. | Define HAVE_RB_DEFINE_ALLOC_FUNC for postgres gem.
| C | mpl-2.0 | digitalextremist/rubinius,kachick/rubinius,kachick/rubinius,jsyeo/rubinius,Wirachmat/rubinius,lgierth/rubinius,dblock/rubinius,Wirachmat/rubinius,slawosz/rubinius,lgierth/rubinius,kachick/rubinius,jsyeo/rubinius,sferik/rubinius,lgierth/rubinius,jemc/rubinius,Azizou/rubinius,ruipserra/rubinius,dblock/rubinius,ruipserra/... |
7cadae9b8de07afaec308fb6b11d299cac1a67bc | macros.h | macros.h | #if __GNUC__ >= 4 && __GNUC_MINOR__ >= 6
#define ACQUIRE_IMAGE_PIXELS(im, x, y, w, h, ex) ({ \
_Pragma("GCC diagnostic push") \
_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") \
AcquireImagePixels(im, x, y, w, h, ex); \
_Pragma("GCC diagnostic pop") \
})
#else
#define ACQUIRE_IMAGE_PIXEL... | #if (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) || (__GNUC__ > 4)
#define ACQUIRE_IMAGE_PIXELS(im, x, y, w, h, ex) ({ \
_Pragma("GCC diagnostic push") \
_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") \
AcquireImagePixels(im, x, y, w, h, ex); \
_Pragma("GCC diagnostic pop") \
})
#else
#define... | Fix warnings building with GCC 5 | Fix warnings building with GCC 5
| C | mit | rainycape/magick,rainycape/magick,rainycape/magick |
8145f404c1628880a393a1422051aa4235ed2e0d | WordPressCom-Stats-iOS/StatsSection.h | WordPressCom-Stats-iOS/StatsSection.h | typedef NS_ENUM(NSInteger, StatsSection) {
StatsSectionGraph,
StatsSectionPeriodHeader,
StatsSectionEvents,
StatsSectionPosts,
StatsSectionReferrers,
StatsSectionClicks,
StatsSectionCountry,
StatsSectionVideos,
StatsSectionComments,
StatsSectionTagsCategories,
StatsSectionFol... | typedef NS_ENUM(NSInteger, StatsSection) {
StatsSectionGraph,
StatsSectionPeriodHeader,
StatsSectionEvents,
StatsSectionPosts,
StatsSectionReferrers,
StatsSectionClicks,
StatsSectionCountry,
StatsSectionVideos,
StatsSectionAuthors,
StatsSectionSearchTerms,
StatsSectionComment... | Add search terms and authors section to enum | Add search terms and authors section to enum
| C | mit | wordpress-mobile/WordPressCom-Stats-iOS,wordpress-mobile/WordPressCom-Stats-iOS |
580cc435808f83633892f76abb4147c16f6cf810 | You-QueryEngine/internal/task_graph.h | You-QueryEngine/internal/task_graph.h | /// \file task_graph.h
/// Defines the TaskGraph class
/// \author A0112054Y
#pragma once
#ifndef YOU_QUERYENGINE_INTERNAL_TASK_GRAPH_H_
#define YOU_QUERYENGINE_INTERNAL_TASK_GRAPH_H_
#include <vector>
#include "../api.h"
namespace You {
namespace QueryEngine {
namespace Internal {
/// Defines the task dependency g... | Add the stub for task graph | Add the stub for task graph
| C | mit | cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main | |
72abb169d78b014b41c2471936f7891832c38fdb | src/tests/marquise_hash_test.c | src/tests/marquise_hash_test.c | #include <glib.h>
#include <stdlib.h>
#include <string.h>
#include "../marquise.h"
void test_hash_identifier() {
const char *id = "hostname:fe1.example.com,metric:BytesUsed,service:memory,";
size_t id_len = strlen(id);
uint64_t address = marquise_hash_identifier((const unsigned char*) id, id_len);
g_assert_cmpint... | #include <glib.h>
#include <stdlib.h>
#include <string.h>
#include "../marquise.h"
void test_hash_identifier() {
const char *id = "hostname:fe1.example.com,metric:BytesUsed,service:memory,";
size_t id_len = strlen(id);
uint64_t address = marquise_hash_identifier((const unsigned char*) id, id_len);
g_assert_cmpint... | Add test for LSB-clearing in marquise_hash_identifier | Add test for LSB-clearing in marquise_hash_identifier
| C | bsd-3-clause | anchor/libmarquise,anchor/libmarquise |
c5086f08be3c610fd97b541b9d61c1cdfb1f9637 | test/CodeCompletion/preamble.c | test/CodeCompletion/preamble.c | #include "some_struct.h"
void foo() {
struct X x;
x.
// RUN: CINDEXTEST_EDITING=1 c-index-test -code-completion-at=%s:4:5 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC1 %s
// CHECK-CC1: FieldDecl:{ResultType int}{TypedText m} (35) (parent: StructDecl 'X')
| #include "some_struct.h"
void foo() {
struct X x;
x.
// RUN: env CINDEXTEST_EDITING=1 c-index-test -code-completion-at=%s:4:5 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC1 %s
// CHECK-CC1: FieldDecl:{ResultType int}{TypedText m} (35) (parent: StructDecl 'X')
| Add 'env' in hopes of making this test pass on Windows. | Add 'env' in hopes of making this test pass on Windows.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@154785 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... |
5e2039ff24433d469ff05f9517dad1ccacabbd6f | polygon.h | polygon.h | /** Author : Paul TREHIOU & Victor SENE
* Date : November 2014
**/
#include <stdlib.h>
#include <stdio.h>
/**
* Declaration Point structure
* x - real wich is the abscisse of the point
* y - real wich is the ordinate of the point
*/
typedef struct
{
double x;
double y;
}Point;
/**
* Declaration of the El... | /** Author : Paul TREHIOU & Victor SENE
* Date : November 2014
**/
#include <stdlib.h>
#include <stdio.h>
/**
* Declaration Point structure
* x - real wich is the abscisse of the point
* y - real wich is the ordinate of the point
*/
typedef struct
{
double x;
double y;
}Point;
/**
* Declaration of the El... | Add the prototype for removePoint | Add the prototype for removePoint
| C | mit | UTBroM/GeometricLib |
149fb0729d1136bbad077be0d1e29fe47c4e22ab | webkit/glue/webkit_constants.h | webkit/glue/webkit_constants.h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
#define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
namespace webkit_glue {
// Chromium sets the minimum interval timeou... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
#define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
namespace webkit_glue {
// Chromium sets the minimum interval timeou... | Revert 75430 because it's causing failures in dom_checker_tests. : Increase the minimum interval for timers on background tabs to reduce their CPU consumption. | Revert 75430 because it's causing failures in dom_checker_tests.
: Increase the minimum interval for timers on background tabs to reduce
their CPU consumption.
The new interval is 1000 ms, or once per second. We can easily adjust
this value up or down, but this seems like a reasonable value to judge
the compatibility ... | C | bsd-3-clause | yitian134/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,ropik/chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,Crystalnix/house-of-life-chromium,yitia... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.