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 |
|---|---|---|---|---|---|---|---|---|---|
e06efffe9b422274ba4e256a010a483efb59038c | include/psp2kern/gpu_es4.h | include/psp2kern/gpu_es4.h | /**
* \kernelgroup{SceGpuEs4}
* \usage{psp2kern/gpu_es4.h,SceGpuEs4ForDriver}
*/
#ifndef _PSP2_KERNEL_GPU_ES4_
#define _PSP2_KERNEL_GPU_ES4_
#include <psp2kern/types.h>
#ifdef __cplusplus
extern "C" {
#endif
int PVRSRVGetMiscInfoKM(void *info);
int ksceGpuGetRegisterDump(void *dst, SceSize size);
#ifdef __cplu... | /**
* \kernelgroup{SceGpuEs4}
* \usage{psp2kern/gpu_es4.h,SceGpuEs4ForDriver}
*/
#ifndef _PSP2_KERNEL_GPU_ES4_
#define _PSP2_KERNEL_GPU_ES4_
#include <psp2kern/types.h>
#ifdef __cplusplus
extern "C" {
#endif
int PVRSRVGetMiscInfoKM(void *info);
int ksceGpuGetRegisterDump(void *dst, SceSize size);
int ksceGpuMm... | Add prototypes for SceGpu MMU functions | Add prototypes for SceGpu MMU functions
| C | mit | vitasdk/vita-headers,Rinnegatamante/vita-headers,Rinnegatamante/vita-headers,vitasdk/vita-headers,Rinnegatamante/vita-headers,vitasdk/vita-headers,Rinnegatamante/vita-headers,vitasdk/vita-headers |
4055a7c2fceb6eb2b2e8014b96e70ac6bdc2310c | nqmq.c | nqmq.c | #include "string.h"
#include "stdio.h"
#include "stdlib.h"
#define DATA_FILE_NAME "nqmq.dat"
#define DATA_LINE_MAX_LEN 80
char **cities;
char *distances;
int main(int argc, char *argv[])
{
// Step 1: Read file into cities array and distances adjacency matrix
char line[DATA_LINE_MAX_LEN];
FILE *data_file;
dat... | #include "string.h"
#include "stdio.h"
#include "stdlib.h"
#define DATA_FILE_NAME "nqmq.dat"
#define DATA_LINE_MAX_LEN 80
char **cities;
char *distances;
int main(int argc, char *argv[])
{
// Step 1: Read file into cities array and distances adjacency matrix
char line[DATA_LINE_MAX_LEN];
FILE *data_file;
int ... | Use fscanf to get the number of cities | Use fscanf to get the number of cities
| C | mit | EvanPurkhiser/CS-NotQuiteMapquest |
af9e54158cdfe9d779da709f423bbc2e331bf1da | numpy/core/include/numpy/cpuarch.h | numpy/core/include/numpy/cpuarch.h | /*
* This set (target) cpu specific macros:
* - NPY_TARGET_CPU: target CPU type
*/
#ifndef _NPY_CPUARCH_H_
#define _NPY_CPUARCH_H_
#if defined ( _i386_ ) || defined( __i386__ )
/* __i386__ is defined by gcc and Intel compiler on Linux, _i386_ by
VS compiler */
#define NPY_TARGET_CPU NPY... | Add a (public) header to detect common CPU archs. | Add a (public) header to detect common CPU archs.
| C | bsd-3-clause | anntzer/numpy,MaPePeR/numpy,simongibbons/numpy,pizzathief/numpy,Eric89GXL/numpy,SiccarPoint/numpy,anntzer/numpy,abalkin/numpy,rhythmsosad/numpy,njase/numpy,cowlicks/numpy,MichaelAquilina/numpy,rmcgibbo/numpy,madphysicist/numpy,pelson/numpy,WarrenWeckesser/numpy,ahaldane/numpy,numpy/numpy-refactor,cjermain/numpy,mindw/n... | |
3e7673472eedd975f9b5fcc1ced44ddbd8db476d | core/base/inc/RVersion.h | core/base/inc/RVersion.h | #ifndef ROOT_RVersion
#define ROOT_RVersion
/* Version information automatically generated by installer. */
/*
* These macros can be used in the following way:
*
* #if ROOT_VERSION_CODE >= ROOT_VERSION(2,23,4)
* #include <newheader.h>
* #else
* #include <oldheader.h>
* #endif
*
*/
#defin... | #ifndef ROOT_RVersion
#define ROOT_RVersion
/* Version information automatically generated by installer. */
/*
* These macros can be used in the following way:
*
* #if ROOT_VERSION_CODE >= ROOT_VERSION(2,23,4)
* #include <newheader.h>
* #else
* #include <oldheader.h>
* #endif
*
*/
#defin... | Update ROOT version files to v5.34/24. | Update ROOT version files to v5.34/24.
| C | lgpl-2.1 | tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot |
23ad60bf74b1a87fe85d3e4fab56d19da773323f | version.h | version.h | #include <stdio.h>
#define major 1
#define minor 0
#define patch 0
#define ver(arg) #arg
#define ver2(arg) ver(arg)
#define maj ver2(major)
#define min ver2(minor)
#define pat ver2(patch)
#define dot "."
#define VERSION (maj dot min dot pat)
| /*
@file version.h
@brief Defines macros to create version number string
@license MIT LICENSE
@authors
Prakhar Nigam, https://github.com/prakharnigam
electrogeek, https://github.com/Nishant-Mishra
*/
#ifndef __VERSION_H__
#define __VERSION_H__
#ifdef __cplusplus
extern "C" {
#endif
#define major... | Add guards to avoid multiple includes. | Add guards to avoid multiple includes. | C | mit | Nishant-Mishra/C_Code_Versioning |
526b988a3dc06e92509e6c67910dbded36ba5aec | src/definitions.h | src/definitions.h | #pragma once
#include <cstdint>
#include <cstdlib>
using uint = unsigned int;
using u8 = uint8_t;
using u16 = uint16_t;
using s8 = int8_t;
const int GAMEBOY_WIDTH = 160;
const int GAMEBOY_HEIGHT = 144;
const int CLOCK_RATE = 4194304;
template <typename... T> void unused(T&&...) {}
#define fatal_error() log_error... | #pragma once
#include <cstdint>
#include <cstdlib>
using uint = unsigned int;
using u8 = uint8_t;
using u16 = uint16_t;
using s8 = int8_t;
using s16 = uint16_t;
const int GAMEBOY_WIDTH = 160;
const int GAMEBOY_HEIGHT = 144;
const int CLOCK_RATE = 4194304;
template <typename... T> void unused(T&&...) {}
#define f... | Add a s16 (signed 16-bit int) for symmetry with u8/u16 | Add a s16 (signed 16-bit int) for symmetry with u8/u16
| C | bsd-3-clause | jgilchrist/emulator,jgilchrist/emulator,jgilchrist/emulator |
171be473509342faa811e8eca74b3a98e2cba772 | src/lib/helpers.h | src/lib/helpers.h | #pragma once
#include <iomanip>
#include "H5Cpp.h"
#include "logger.h"
// N-wide hex output with 0x
template <unsigned int N> std::ostream &hexn(std::ostream &out) {
return out << "0x" << std::hex << std::setw(N) << std::setfill('0');
}
inline int mymod(int a, int b) {
int c = a % b;
if (c < 0)
c += b;
... | #pragma once
#include <iomanip>
#include "logger.h"
// N-wide hex output with 0x
template <unsigned int N> std::ostream &hexn(std::ostream &out) {
return out << "0x" << std::hex << std::setw(N) << std::setfill('0');
}
inline int mymod(int a, int b) {
int c = a % b;
if (c < 0)
c += b;
return c;
}
| Remove reference to h5 header | Remove reference to h5 header
| C | apache-2.0 | BBN-Q/libaps2,BBN-Q/libaps2,BBN-Q/libaps2,BBN-Q/libaps2,BBN-Q/libaps2 |
2241d5454301ced6af4962327b632237ec4b8ac2 | src/include/embox/kernel.h | src/include/embox/kernel.h | /**
* @file
* @brief contains some often-used function prototypes etc
*
* @date 25.03.2010
*/
#ifndef EMBOX_KERNEL_H_
#define EMBOX_KERNEL_H_
#ifdef __EMBOX__
#include <err.h>
#else
#include <linux/types.h>
#endif
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
/* deprecated */
#define ... | /**
* @file
* @brief contains some often-used function prototypes etc
*
* @date 25.03.2010
*/
#ifndef EMBOX_KERNEL_H_
#define EMBOX_KERNEL_H_
#ifdef __EMBOX__
#include <err.h>
#else
#include <linux/types.h>
#endif
#include <util/array.h>
/* TODO deprecated. -- Eldar, Nikolay */
#define array_len(array) ... | Fix redefinition of ARRAY_SIZE macro warning | Fix redefinition of ARRAY_SIZE macro warning | C | bsd-2-clause | embox/embox,mike2390/embox,vrxfile/embox-trik,Kefir0192/embox,Kefir0192/embox,gzoom13/embox,mike2390/embox,mike2390/embox,Kefir0192/embox,vrxfile/embox-trik,Kefir0192/embox,gzoom13/embox,embox/embox,Kakadu/embox,Kakadu/embox,embox/embox,Kefir0192/embox,vrxfile/embox-trik,Kefir0192/embox,gzoom13/embox,embox/embox,Kakadu... |
32d872a4f0f06dbb2ec8864269061bbb1423b03e | euler.c | euler.c | #include <stdio.h>
#include <stdlib.h>
#include "euler.h"
int
check(int problem, int answer, int result)
{
char *text = "INCORRECT";
char *color = KRED;
int ret = 1;
if(answer == result) {
text = "CORRECT";
color = KGRN;
ret = 0;
}
printf("%sProblm %i %s - Expected: %i;... | #include <stdio.h>
#include <stdlib.h>
#include "euler.h"
int
check(int problem, int answer, int result)
{
char *text = "INCORRECT";
char *color = KRED;
int ret = 1;
if(answer == result) {
text = "CORRECT";
color = KGRN;
ret = 0;
}
printf("%sProblem %i %s - Expected: %i... | Fix typo: problm -> problem | Fix typo: problm -> problem
| C | bsd-2-clause | skreuzer/euler |
315c5f71fa3e796c2f948810b9995f4af7406838 | examples/stl_get_infos.c | examples/stl_get_infos.c | /* -----------------------------------------------------------------------------
*
* Example: read a STL file
*
* Just give a filepath and an initialized gmio_stl_mesh_creator object to
* gmio_stl_read_file().
* The gmio_stl_mesh_creator object holds pointers to the callbacks invoked
* during the read operation.... | Add new example for gmio_stl_infos_get() | Add new example for gmio_stl_infos_get()
| C | bsd-2-clause | fougue/gmio,fougue/gmio,fougue/gmio,fougue/gmio | |
e8ff69fcb5021ba8909e44ef7f89e227fa903b3b | test/FrontendC/2010-11-16-asmblock.c | test/FrontendC/2010-11-16-asmblock.c | // RUN: %llvmgcc -S %s -fasm-blocks -o - | FileCheck %s
// XFAIL: *
// XTARGET: x86,i386,i686
// 84282548
void foo()
{
// CHECK: %0 = call i32 asm sideeffect "", "={ecx}"() nounwind
// CHECK: %asmtmp = call i32 asm sideeffect alignstack "sall $$3, $0", "={ecx},{ecx},~{dirflag},~{fpsr},~{flags},~{memory}"(i32 %0) no... | Test for llvm-gcc patch 119392. | Test for llvm-gcc patch 119392.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@119393 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,ds... | |
25bda12511d371bc9c02bf2454cce53241ee2abe | views/controls/menu/native_menu_host_delegate.h | views/controls/menu/native_menu_host_delegate.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 VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_
#define VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_
namespace views {
namespace interna... | // 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 VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_
#define VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_
namespace views {
namespace interna... | Add newline to end of file. | Add newline to end of file.
git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@80087 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
| C | bsd-3-clause | wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser |
e6c4b6d82a21c29737e637dc33b89528bf77d5da | TeamSnapSDK/SDK/DataTypes/TSDKPartnerPreferences.h | TeamSnapSDK/SDK/DataTypes/TSDKPartnerPreferences.h | // Copyright (c) 2015 TeamSnap. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "TSDKCollectionObject.h"
#import "TSDKObjectsRequest.h"
@interface TSDKPartnerPreferences : TSDKCollectionObject
@property (nonatomic, assign) NSInteger canDisplayPartner; //Example: 0
@property (nonatomic, strong, null... | // Copyright (c) 2015 TeamSnap. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "TSDKCollectionObject.h"
#import "TSDKObjectsRequest.h"
@interface TSDKPartnerPreferences : TSDKCollectionObject
@property (nonatomic, assign) BOOL canDisplayPartner; //Example: 0
@property (nonatomic, strong, nullable)... | Change partner preference Int to Bool values | Change partner preference Int to Bool values
| C | mit | teamsnap/teamsnap-SDK-iOS,teamsnap/teamsnap-SDK-iOS,teamsnap/teamsnap-SDK-iOS |
41f7697d2ee738d6e252acde2bc40a00cff97d48 | projects/OG-Language/Util/stdafx.h | projects/OG-Language/Util/stdafx.h | /**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
#ifndef STDAFX_H
#define STDAFX_H
// Common include file for all source code in Util
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <Psapi.h>
#ifdef __cpl... | /**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
#ifndef STDAFX_H
#define STDAFX_H
// Common include file for all source code in Util
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <Psapi.h>
#ifdef __cpl... | Add sys/stat.h to headers for mkfifo declaration. | Add sys/stat.h to headers for mkfifo declaration.
| C | apache-2.0 | nssales/OG-Platform,McLeodMoores/starling,jerome79/OG-Platform,ChinaQuants/OG-Platform,jeorme/OG-Platform,codeaudit/OG-Platform,nssales/OG-Platform,jerome79/OG-Platform,nssales/OG-Platform,jeorme/OG-Platform,jerome79/OG-Platform,DevStreet/FinanceAnalytics,McLeodMoores/starling,codeaudit/OG-Platform,jerome79/OG-Platform... |
052f525884c6664c3047b03b607ca5f7d19e9524 | Source/JSObjectFactory.h | Source/JSObjectFactory.h | #import <Foundation/Foundation.h>
@class JSObjectionInjector;
@interface JSObjectFactory : NSObject
@property (nonatomic, readonly, strong) JSObjectionInjector *injector;
- (id)initWithInjector:(JSObjectionInjector *)injector;
- (id)getObject:(id)classOrProtocol;
- (id)objectForKeyedSubscript: (id)key;
- (id)getObje... | #import <Foundation/Foundation.h>
@class JSObjectionInjector;
@interface JSObjectFactory : NSObject
@property (nonatomic, readonly, weak) JSObjectionInjector *injector;
- (id)initWithInjector:(JSObjectionInjector *)injector;
- (id)getObject:(id)classOrProtocol;
- (id)objectForKeyedSubscript: (id)key;
- (id)getObject... | Use weak reference in object factory to avoid cyclical references | Use weak reference in object factory to avoid cyclical references | C | mit | ApplauseAQI/objection,alexfeng/objection,ApplauseAQI/objection,zjh171/objection,atomicobject/objection,technology-ebay-de/objection,paulz/objection,technology-ebay-de/objection,hzm0318hzm/objection,ApplauseAQI/objection,alexfeng/objection,hzm0318hzm/objection,zjh171/objection,paulz/objection,atomicobject/objection,Reut... |
d7713594c2db37aeed1ff5da8aefbbbd26e73f34 | bikepath/ResultsMapViewController.h | bikepath/ResultsMapViewController.h | //
// ResultsMapViewController.h
// bikepath
//
// Created by Farheen Malik on 8/14/14.
// Copyright (c) 2014 Bike Path. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <GoogleMaps/GoogleMaps.h>
@interface ResultsMapViewController : UIViewController <GMSMapViewDelegate>
@property (strong, nonatomic) IBOut... | //
// ResultsMapViewController.h
// bikepath
//
// Created by Farheen Malik on 8/14/14.
// Copyright (c) 2014 Bike Path. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <GoogleMaps/GoogleMaps.h>
#import "SearchItem.h"
@interface ResultsMapViewController : UIViewController <GMSMapViewDelegate>
@property (s... | Add passing of information to prepareforsegue method | Add passing of information to prepareforsegue method
| C | apache-2.0 | red-spotted-newts-2014/bike-path,red-spotted-newts-2014/bike-path,hushifei/bike-path |
801c6885d61cee2dea82682c47e3e0dfd42a07ba | test/test.h | test/test.h | #include <unittest++/UnitTest++.h>
/*
* This file provides a transitive include for the UnitTest++ library
* so that you don't need to remember how to include it yourself. This
* file also provides you with a reference for using UnitTest++.
*
* == BASIC REFERENCE ==
* - TEST(NAME_OF_TEST) { body_of_test }
... | #include "unittest++/UnitTest++.h"
/*
* This file provides a transitive include for the UnitTest++ library
* so that you don't need to remember how to include it yourself. This
* file also provides you with a reference for using UnitTest++.
*
* == BASIC REFERENCE ==
* - TEST(NAME_OF_TEST) { body_of_test }
... | Use quotes for include so that UnitTest header is found locally. | Use quotes for include so that UnitTest header is found locally.
| C | bsd-3-clause | Atamai/tactics,Atamai/tactics |
122ce2d8c7e7d28a76c43d665c206f03876e2541 | tests/regression/13-privatized/18-first-reads.c | tests/regression/13-privatized/18-first-reads.c | // PARAM: --set ana.int.interval true --set solver "'td3'"
#include<pthread.h>
#include<assert.h>
int glob1 = 0;
pthread_mutex_t mutex1 = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
int t;
pthread_mutex_lock(&mutex1);
if(t == 42) {
glob1 = 1;
}
t = glob1;
assert(t == 0); //UNKNOWN
assert... | // PARAM: --set ana.int.interval true --set solver "'td3'"
#include<pthread.h>
#include<assert.h>
int glob1 = 0;
pthread_mutex_t mutex1 = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
int t;
pthread_mutex_lock(&mutex1);
if(t == 42) {
glob1 = 1;
}
t = glob1;
assert(t == 0); //UNKNOWN!
asser... | Add exclamation mark to unknown to indicate it should always be unknown | Add exclamation mark to unknown to indicate it should always be unknown
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
bbab158f09e5fd125ec2558bfa319f78e96e13ac | a_filter.h | a_filter.h | #ifndef A_FILTER_HDR
#define A_FILTER_HDR
#include "u_vector.h"
namespace a {
struct source;
struct filterInstance {
virtual void filter(float *buffer, size_t samples, bool strero, float sampleRate) = 0;
virtual ~filterInstance();
};
struct filter {
virtual void init(source *);
virtual filterInstanc... | #ifndef A_FILTER_HDR
#define A_FILTER_HDR
#include "u_vector.h"
namespace a {
struct source;
struct filterInstance {
virtual void filter(float *buffer, size_t samples, bool strero, float sampleRate) = 0;
virtual ~filterInstance();
};
struct filter {
virtual void init(source *audioSource);
virtual fi... | Revert "Testing GPG key on github" | Revert "Testing GPG key on github"
This reverts commit 22b0c196d0aa47ffbd016da66e98207b80bcdc82.
| C | mit | graphitemaster/neothyne,graphitemaster/neothyne |
38a54eca96dcfcef1bf1d921b5ac8d52feeb5431 | tests/regression/01-cpa/45-float.c | tests/regression/01-cpa/45-float.c | // PARAM: --enable ana.int.interval --enable ana.int.def_exc --enable ana.sv-comp.functions --set ana.activated[+] var_eq --set ana.activated[+] region
#include <goblint.h>
int isNan(float arg) {
float x;
return arg != arg;
}
int main(){
struct blub { float f; } s;
float fs[3];
float top;
// ... | // PARAM: --enable ana.int.interval --enable ana.int.def_exc --enable ana.sv-comp.functions --set ana.activated[+] var_eq --set ana.activated[+] region
#include <goblint.h>
int isNan(float arg) {
float x;
return arg != arg;
}
int main(){
struct blub { float f; } s;
float fs[3];
float top;
// ... | Add test for var_eq unsoundness with dereferenced floats | Add test for var_eq unsoundness with dereferenced floats
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
d76589114d1723bb0cb666dcb70058b74052e63b | src/backend/port/dynloader/win32.c | src/backend/port/dynloader/win32.c | /* $PostgreSQL: pgsql/src/backend/port/dynloader/win32.c,v 1.4 2004/11/17 08:30:08 neilc Exp $ */
#include <windows.h>
char *dlerror(void);
int dlclose(void *handle);
void *dlsym(void *handle, const char *symbol);
void *dlopen(const char *path, int mode);
char *
dlerror(void)
{
return "error";
}
int
dlclose(void *... | /* $PostgreSQL: pgsql/src/backend/port/dynloader/win32.c,v 1.5 2004/12/02 19:38:50 momjian Exp $ */
#include <windows.h>
char *dlerror(void);
int dlclose(void *handle);
void *dlsym(void *handle, const char *symbol);
void *dlopen(const char *path, int mode);
char *
dlerror(void)
{
return "dynamic load error";
}
int... | Change Win32 dlerror message to: | Change Win32 dlerror message to:
return "dynamic loading error";
| C | mpl-2.0 | yazun/postgres-xl,randomtask1155/gpdb,janebeckman/gpdb,snaga/postgres-xl,tpostgres-projects/tPostgres,jmcatamney/gpdb,rvs/gpdb,techdragon/Postgres-XL,adam8157/gpdb,xuegang/gpdb,ashwinstar/gpdb,foyzur/gpdb,snaga/postgres-xl,zeroae/postgres-xl,lintzc/gpdb,edespino/gpdb,50wu/gpdb,arcivanov/postgres-xl,Chibin/gpdb,yuanzhao... |
b153f8ccec59da5debbb88c74a74a66f3e3b1fb5 | samples/Scrumptious/scrumptious/SCMealViewController.h | samples/Scrumptious/scrumptious/SCMealViewController.h | /*
* Copyright 2012 Facebook
*
* 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 w... | /*
* Copyright 2012 Facebook
*
* 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 w... | Fix crash in Scrumptious app. | [ios-sdk] Fix crash in Scrumptious app.
Summary:
Fixed inconsistent crash in Scrumptious. Blocks need to be copied, not retained.
Thanks to jacl for finding this.
Test Plan: - jacl was able to repro on his simulator. Had him try this change, did not repro.
Reviewers: jacl, mmarucheck, gregschechte
Reviewed By: mmar... | C | apache-2.0 | hibu/facebook-ios-sdk,wooga/facebook-ios-sdk,TimeIncOSS/facebook-ios-sdk,ArtLapitski/facebook-ios-sdk,ArtLapitski/facebook-ios-sdk,wooga/facebook-ios-sdk,flovilmart/facebook-ios-sdk,1234-/facebook-ios-sdk,hibu/facebook-ios-sdk,Citrrus/facebook-ios-sdk,ShareKit/facebook-ios-sdk,hibu/facebook-ios-sdk,hibu/facebook-ios-sd... |
227330943676f1dc888d74fddcade8964d82faba | server/src/apache/analyzer/detail/session_length.h | server/src/apache/analyzer/detail/session_length.h | /*
* Copyright 2016 Adam Chyła, adam@chyla.org
* All rights reserved. Distributed under the terms of the MIT License.
*/
#pragma once
namespace apache
{
namespace analyzer
{
namespace detail
{
constexpr int SESSION_LENGTH = 60;
}
}
}
| /*
* Copyright 2016 Adam Chyła, adam@chyla.org
* All rights reserved. Distributed under the terms of the MIT License.
*/
#pragma once
namespace apache
{
namespace analyzer
{
namespace detail
{
constexpr int SESSION_LENGTH = 3600;
}
}
}
| Change session length to 1h | Change session length to 1h
| C | mit | chyla/slas,chyla/slas,chyla/slas,chyla/pat-lms,chyla/slas,chyla/slas,chyla/slas,chyla/pat-lms,chyla/pat-lms,chyla/pat-lms,chyla/slas,chyla/pat-lms,chyla/pat-lms,chyla/pat-lms |
be6f28f28b57e912df6c276060bc38e7912a2262 | C/mwt.c | C/mwt.c | #include<stdio.h>
#include<stdlib.h>
int main (int argc, char *argv[]){
if(argc != 3){
printf("Number of parameters should be 2 (filename, cardinality).");
exit(1);
}
//open file and get file length
FILE *file;
file = fopen(argv[1],"r");
if(file == NULL){
printf("File c... | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main (int argc, char *argv[]){
if(argc != 3){
printf("Number of parameters should be 2 (filename, arity).");
exit(1);
}
int alphabet[128] = {0};
int arity = atoi(argv[2]);
int treeLayers = ceil(7/log2(arity));
printf("Nu... | Define alphabet and number of tree layers | Define alphabet and number of tree layers
| C | mit | marijanaSpajic/multiary_wavelet_tree,marijanaSpajic/multiary_wavelet_tree,marijanaSpajic/multiary_wavelet_tree,marijanaSpajic/multiary_wavelet_tree,marijanaSpajic/multiary_wavelet_tree,marijanaSpajic/multiary_wavelet_tree |
e10ab25f34927dedde7ad7621d9767b8ab76b857 | include/libvarnish.h | include/libvarnish.h | /*
* $Id$
*/
#include <errno.h>
#include <time.h>
/* from libvarnish/argv.c */
void FreeArgv(char **argv);
char **ParseArgv(const char *s, int comment);
/* from libvarnish/time.c */
void TIM_format(time_t t, char *p);
time_t TIM_parse(const char *p);
/* from libvarnish/version.c */
void varnish_version(const char... | /*
* $Id$
*/
#include <errno.h>
#include <time.h>
/* from libvarnish/argv.c */
void FreeArgv(char **argv);
char **ParseArgv(const char *s, int comment);
/* from libvarnish/time.c */
void TIM_format(time_t t, char *p);
time_t TIM_parse(const char *p);
/* from libvarnish/version.c */
void varnish_version(const char... | Make assert do the right thing | Make assert do the right thing
git-svn-id: 2c9807fa3ff65b17195bd55dc8a6c4261e10127b@745 d4fa192b-c00b-0410-8231-f00ffab90ce4
| C | bsd-2-clause | alarky/varnish-cache-doc-ja,mrhmouse/Varnish-Cache,drwilco/varnish-cache-drwilco,ajasty-cavium/Varnish-Cache,franciscovg/Varnish-Cache,ambernetas/varnish-cache,drwilco/varnish-cache-drwilco,alarky/varnish-cache-doc-ja,ssm/pkg-varnish,ambernetas/varnish-cache,drwilco/varnish-cache-drwilco,gauthier-delacroix/Varnish-Cach... |
ada69b77fe10201624c94742c0a46b52136e253b | iphone/Classes/TiUIClipboardProxy.h | iphone/Classes/TiUIClipboardProxy.h | /**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2010 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#import "TiProxy.h"
@interface TiUIClipboardProxy : TiProxy {
@private
}
#pragm... | /**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2010 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#import "TiProxy.h"
@interface TiUIClipboardProxy : TiProxy {
@private
}
#pragm... | Remove Compile warning from clipboard proxy | Remove Compile warning from clipboard proxy
| C | apache-2.0 | ashcoding/titanium_mobile,sriks/titanium_mobile,prop/titanium_mobile,taoger/titanium_mobile,shopmium/titanium_mobile,jhaynie/titanium_mobile,kopiro/titanium_mobile,KangaCoders/titanium_mobile,benbahrenburg/titanium_mobile,KoketsoMabuela92/titanium_mobile,bright-sparks/titanium_mobile,emilyvon/titanium_mobile,falkolab/t... |
8980a36ed47ebab217481f64851f586508a53618 | MBContactPicker/UICollectionViewContactFlowLayout.h | MBContactPicker/UICollectionViewContactFlowLayout.h | //
// UICollectionViewContactFlowLayout.h
// MBContactPicker
//
// Created by Matt Bowman on 12/1/13.
// Copyright (c) 2013 Citrrus, LLC. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol UICollectionViewDelegateContactFlowLayout <UICollectionViewDelegateFlowLayout>
- (void)collectionView:(UICollectionVi... | //
// UICollectionViewContactFlowLayout.h
// MBContactPicker
//
// Created by Matt Bowman on 12/1/13.
// Copyright (c) 2013 Citrrus, LLC. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol UICollectionViewContactFlowLayoutDelegate
- (void)collectionView:(UICollectionView*)collectionView willChangeContentS... | Rename ContactFlowLayout’s protocol to match the class name | Rename ContactFlowLayout’s protocol to match the class name
| C | mit | octanner/MBContactPicker,xuzhiming/MBContactPicker,Citrrus/MBContactPicker |
ae1b938494ad128dedf7bcf86201130011a5bc0c | cmd/tools/convert.h | cmd/tools/convert.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 (... | Add --without-expat support to ./configure | Add --without-expat support to ./configure
| C | epl-1.0 | tkelman/graphviz,kbrock/graphviz,MjAbuz/graphviz,MjAbuz/graphviz,jho1965us/graphviz,jho1965us/graphviz,ellson/graphviz,BMJHayward/graphviz,pixelglow/graphviz,BMJHayward/graphviz,jho1965us/graphviz,BMJHayward/graphviz,BMJHayward/graphviz,pixelglow/graphviz,tkelman/graphviz,MjAbuz/graphviz,BMJHayward/graphviz,jho1965us/g... |
eb6524ce84deaee1d83f165afc4b9698375d524e | ch1/replaceSpace.c | ch1/replaceSpace.c | #include <stdio.h>
int main(int argc, char** argv) {
if (argc < 2) {
printf("Too few arguments\n");
return 1;
}
char* word = argv[1];
// Length AFTER replacing ' ' with "%20", counting '\0'
int rlen = 1;
// Determine length of new word
for (int i = 0; word[i]; ++i) {
... | Replace spaces with "%20" in a string | Replace spaces with "%20" in a string
| C | mit | WalrusCow/ctci | |
e788cb041968881a53bab4c64974549373a7b1d7 | src/allocators/page_heap.h | src/allocators/page_heap.h | // Copyright (c) 2012-2013, the scalloc Project Authors. All rights reserved.
// Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD license that can be found in the LICENSE file.
#ifndef SCALLOC_ALLOCATORS_PAGE_HEAP_H_
#define SCALLOC_ALLOCATORS_PAGE_HEAP_H_
#include "common.h"... | // Copyright (c) 2012-2013, the scalloc Project Authors. All rights reserved.
// Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD license that can be found in the LICENSE file.
#ifndef SCALLOC_ALLOCATORS_PAGE_HEAP_H_
#define SCALLOC_ALLOCATORS_PAGE_HEAP_H_
#include "common.h"... | Increase refill and add logging. | PageHeap: Increase refill and add logging.
Signed-off-by: Michael Lippautz <0d543840881a2c189b4f7636b15eebd6a8f60ace@gmail.com>
| C | bsd-2-clause | cksystemsgroup/scalloc,cksystemsgroup/scalloc,cksystemsgroup/scalloc |
28d0a9c9dd68320482f506e9a36848f70d3807a0 | src/egl/main/egltypedefs.h | src/egl/main/egltypedefs.h | #ifndef EGLTYPEDEFS_INCLUDED
#define EGLTYPEDEFS_INCLUDED
#include <GL/egl.h>
typedef struct _egl_config _EGLConfig;
typedef struct _egl_context _EGLContext;
typedef struct _egl_display _EGLDisplay;
typedef struct _egl_driver _EGLDriver;
typedef struct _egl_mode _EGLMode;
typedef struct _egl_screen _EGLScreen;... | #ifndef EGLTYPEDEFS_INCLUDED
#define EGLTYPEDEFS_INCLUDED
#include <GLES/egl.h>
typedef struct _egl_config _EGLConfig;
typedef struct _egl_context _EGLContext;
typedef struct _egl_display _EGLDisplay;
typedef struct _egl_driver _EGLDriver;
typedef struct _egl_mode _EGLMode;
typedef struct _egl_screen _EGLScree... | Fix include path to make build work | Fix include path to make build work
| C | mit | jbarczak/glsl-optimizer,tokyovigilante/glsl-optimizer,tokyovigilante/glsl-optimizer,jbarczak/glsl-optimizer,djreep81/glsl-optimizer,benaadams/glsl-optimizer,zeux/glsl-optimizer,djreep81/glsl-optimizer,zz85/glsl-optimizer,zz85/glsl-optimizer,djreep81/glsl-optimizer,jbarczak/glsl-optimizer,tokyovigilante/glsl-optimizer,b... |
9d73dedb1c7e99cbb4a618dc711980ccf153e946 | source/main.c | source/main.c | #include <stdio.h>
#include "y.tab.h"
int main(int argc, char ** argv)
{
if(argc > 1)
{
yyin = fopen(argv[1], "r");
if(yyin == NULL)
{
printf("File doesn't exits.\n");
return 1;
}
strcpy(file_name, argv[1]);
if(argc > 2)
{... | #include <stdio.h>
#include "list.h"
#include "syntax.h"
#include "scc_yacc.hpp"
extern FILE * yyin;
extern char *file_content[1024];
extern char file_name[1024];
extern int yyparse();
void read_file()
{
for(int i = 0; !feof(yyin); i++)
{
file_content[i] = (char * )malloc(1024 * sizeof(char));
... | Clean yacc file, move other functions out of it. | Clean yacc file, move other functions out of it.
| C | mit | RyanWangGit/scc |
31994ec56073fc6eb530d2162109613f411398b2 | src/vast/util/broccoli.h | src/vast/util/broccoli.h | #ifndef VAST_UTIL_BROCCOLI_H
#define VAST_UTIL_BROCCOLI_H
#include <ze/fwd.h>
#include "vast/util/server.h"
// Forward declaration.
struct bro_conn;
namespace vast {
namespace util {
namespace broccoli {
struct connection;
typedef util::server<connection> server;
typedef std::function<void(ze::event)> event_handler... | #ifndef VAST_UTIL_BROCCOLI_H
#define VAST_UTIL_BROCCOLI_H
#include <ze/fwd.h>
#include "vast/util/server.h"
namespace vast {
namespace util {
namespace broccoli {
// Forward declarations.
struct bro_conn;
struct connection;
typedef util::server<connection> server;
typedef std::function<void(ze::event)> event_handler... | Move forward decls in right namespace. | Move forward decls in right namespace.
| C | bsd-3-clause | pmos69/vast,vast-io/vast,mavam/vast,mavam/vast,vast-io/vast,pmos69/vast,mavam/vast,vast-io/vast,pmos69/vast,mavam/vast,pmos69/vast,vast-io/vast,vast-io/vast |
59a02d9d0232ed21cddd04d2c60131e9e3e6e69f | src/os/Win32/open.c | src/os/Win32/open.c | #include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
FILE *os_fopen(const char *path, const char *mode)
{
return fopen(path, mode);
}
int os_set_non_blocking(FILE *stream)
{
(void)stream;
/* TODO support non-blocking (overlapped ?) file handles */
return 1; // return failure for now
}
| Add no-op Win32 impl for non-blocking fd | Add no-op Win32 impl for non-blocking fd
| C | mit | kulp/tenyr,kulp/tenyr,kulp/tenyr | |
a95b411928a332a324b9b48d2e1823b68fd8a4cb | copasi/output/CUDFunction.h | copasi/output/CUDFunction.h | /*****************************************************************************
* PROGRAM NAME: CUDFunction.h
* PROGRAMMER: Wei Sun wsun@vt.edu
* PURPOSE: Define the user defined function object
*****************************************************************************/
#ifndef COPASI_CUDFunction
#define COPASI_CUDFu... | Define the user defined functions | Define the user defined functions
| C | artistic-2.0 | copasi/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,copasi/COPASI,jonasfoe/COPASI,copasi/COPASI,copasi/COPASI,jonasfoe/COPASI,copasi/COPASI,copasi/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,copasi/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,copasi/COPASI,jonasfoe/COPASI,copasi/COPASI | |
6dbc01bdc114c92c2b76b8999572aaaf97f0b988 | SplitEveryNodeOddEvenData.c | SplitEveryNodeOddEvenData.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct node {
int data;
struct node *next;
};
struct node *createNode (int value) {
struct node *newNode = (struct node *) malloc (sizeof (struct node));
newNode -> data = value;
newNode -> next = NULL;
return new... | Split every node into two based on node data | Split every node into two based on node data
Split every node into two nodes based on data of the node. If the data is odd, the second node gets the greater half. | C | mit | devrezo/iaap | |
b948816730acd4d25151d8dceaa1a0f9df30c04a | sassc.c | sassc.c | #include <stdio.h>
#include "libsass/sass_interface.h"
int main(int argc, char** argv)
{
if (argc < 2) {
printf("Usage: sassc [INPUT FILE]\n");
return 0;
}
struct sass_file_context* ctx = sass_new_file_context();
ctx->options.include_paths = "";
ctx->options.image_path = "images";
ctx->options.output_style ... | #include <stdio.h>
#include "libsass/sass_interface.h"
int main(int argc, char** argv)
{
int ret;
if (argc < 2) {
printf("Usage: sassc [INPUT FILE]\n");
return 0;
}
struct sass_file_context* ctx = sass_new_file_context();
ctx->options.include_paths = "";
ctx->options.image_path = "images";
ctx->options.ou... | Exit with an error code when an error occurs. | Exit with an error code when an error occurs.
| C | mit | saper/sassc,am11/sassc,am11/sassc,djam90/sassc,djam90/sassc,am11/sassc,saper/sassc,saper/sassc,rightisleft/sassc,rightisleft/sassc,rightisleft/sassc,djam90/sassc |
3a2a226a40c5605ff77d126f262869d88205b42d | tests/regression/56-witness/51-witness-lifter-ps1.c | tests/regression/56-witness/51-witness-lifter-ps1.c | // PARAM: --enable ana.sv-comp.enabled --enable ana.sv-comp.functions --set ana.specification 'CHECK( init(main()), LTL(G ! call(reach_error())) )' --enable ana.int.interval
// previously both branches dead
// simplified from 28-race_reach/06-cond_racing1
#include <pthread.h>
#include <assert.h>
int __VERIFIER_nondet_... | Add witness lifter path sensitive unsound branch test | Add witness lifter path sensitive unsound branch test
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
a4814f155a44cd35b91f8913669eff81aa54f617 | ObjectiveRocks/RocksDBPrefixExtractor.h | ObjectiveRocks/RocksDBPrefixExtractor.h | //
// RocksDBPrefixExtractor.h
// ObjectiveRocks
//
// Created by Iska on 26/12/14.
// Copyright (c) 2014 BrainCookie. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSUInteger, RocksDBPrefixType)
{
RocksDBPrefixFixedLength
};
@interface RocksDBPrefixExtractor : NSObject
+ (instancet... | //
// RocksDBPrefixExtractor.h
// ObjectiveRocks
//
// Created by Iska on 26/12/14.
// Copyright (c) 2014 BrainCookie. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
Constants for the built-in prefix extractors.
*/
typedef NS_ENUM(NSUInteger, RocksDBPrefixType)
{
/** @brief Extract a fixed-lengt... | Add source code documentation for the Prefix Extractor class | Add source code documentation for the Prefix Extractor class
| C | mit | iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks |
2913ca73b85c670fa06bb15cc15ee6bc79b99214 | mp-imb-test.c | mp-imb-test.c | // Test if message passing works
// Should on x86, not on arm
// Basically always just doesn't see the write at all.
// Probably need to loop.
// On ARM:
// mp - observed
// mp+ctrl - observed
// mp+addr - not observed :( was hoping to
// mp+sync+addr - not observed; good!
#include "atomic.h"
#include <st... | Add an MP test that uses imb instead of deps | Add an MP test that uses imb instead of deps
| C | mit | msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler | |
591ae5483d1838718b59cd26b5e2ad108c9446a4 | ImWindowDX11/ImwWindowManagerDX11.h | ImWindowDX11/ImwWindowManagerDX11.h |
#ifndef __IM_WINDOW_MANAGER_DX11_H__
#define __IM_WINDOW_MANAGER_DX11_H__
#include "ImwConfig.h"
#include "ImwWindowManager.h"
namespace ImWindow
{
class ImwWindowManagerDX11 : public ImwWindowManager
{
public:
ImwWindowManagerDX11();
virtual ~ImwWindowManagerDX11();
protected:
virtual ImwPlatformWi... |
#ifndef __IM_WINDOW_MANAGER_DX11_H__
#define __IM_WINDOW_MANAGER_DX11_H__
#include "ImwConfig.h"
#include "ImwWindowManager.h"
namespace ImWindow
{
class ImwWindowManagerDX11 : public ImwWindowManager
{
public:
ImwWindowManagerDX11();
virtual ~ImwWindowManagerDX11();
protected:
virtual bool CanC... | Add forgotten function in DX11 implementation | Add forgotten function in DX11 implementation
| C | mit | thennequin/ImWindow,thennequin/ImWindow,thennequin/ImWindow |
0360c3310a40c7d46877d0842f21233e8c6b7e60 | lib/sanitizer_common/sancov_flags.h | lib/sanitizer_common/sancov_flags.h | //===-- sancov_flags.h ------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- sancov_flags.h ------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Move __sancov_default_options declaration outside the namespace __sancov | [sancov] Move __sancov_default_options declaration outside the namespace __sancov
After this commint, we can include sancov_flags.h and refer to
__sancov_default_options without requiring the namespace prefix.
Differential Revision: https://reviews.llvm.org/D29167
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7... | C | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt |
5d10713e968041bbb85b19b5dc673d33b7d1ef7d | cc1/tests/test022.c | cc1/tests/test022.c |
/*
name: TEST022
description: Basic test for int constants
comments: This test is done for z80 data types
output:
F1
G1 F1 main
{
-
A2 I i
A3 N u
A2 #I1 :I
A2 #IFFFF :I
A2 #IFFFF :I
A2 #IFFFF :I
A2 #IFFFF :I
A2 #I3 :I
A2 #I1 :I
A2 #I0 :I
A3 #N1 :N
A3 #NFFFF :N
A3 #NFFFF :N
A3 #NFFFF :N
A3 #NFFFF :N
A3 #N... | Add basic test for integer constans | Add basic test for integer constans
This test fails at this moment because overflow in constant castings
are not correctly handled.
| C | isc | 8l/scc,k0gaMSX/scc,k0gaMSX/kcc,k0gaMSX/scc,8l/scc,k0gaMSX/kcc,k0gaMSX/scc,8l/scc | |
68c6b7bf28749e8d71d5cb7d28dceb0cd1592caf | src/FTDebouncer-Lambda.h | src/FTDebouncer-Lambda.h | #include "FTDebouncer.h"
//Dummy function implementations to satisfy linker when using lambdas
void onPinActivated(int pinNumber){}
void onPinDeactivated(int pinNumber){} | #ifndef FTDEBOUNCER_LAMBDA_H
#define FTDEBOUNCER_LAMBDA_H
#include "FTDebouncer.h"
//Dummy function implementations to satisfy linker when using lambdas
void onPinActivated(int pinNumber){}
void onPinDeactivated(int pinNumber){}
#endif | Add include guard for lambda header | Add include guard for lambda header
| C | mit | ubidefeo/FTDebouncer |
fb26025575421f179020b812c4e9e958812a3dee | include/clang/Basic/MacroBuilder.h | include/clang/Basic/MacroBuilder.h | //===--- MacroBuilder.h - CPP Macro building utilitiy -----------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===--- MacroBuilder.h - CPP Macro building utility ------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix a typo pointed about by gabor. | Fix a typo pointed about by gabor.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@93997 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl... |
f4b4aae1828855db761bf998ce37d3062b1d6446 | arch/x86/include/uapi/asm/bitsperlong.h | arch/x86/include/uapi/asm/bitsperlong.h | #ifndef __ASM_X86_BITSPERLONG_H
#define __ASM_X86_BITSPERLONG_H
#ifdef __x86_64__
# define __BITS_PER_LONG 64
#else
# define __BITS_PER_LONG 32
#endif
#include <asm-generic/bitsperlong.h>
#endif /* __ASM_X86_BITSPERLONG_H */
| #ifndef __ASM_X86_BITSPERLONG_H
#define __ASM_X86_BITSPERLONG_H
#if defined(__x86_64__) && !defined(__ILP32__)
# define __BITS_PER_LONG 64
#else
# define __BITS_PER_LONG 32
#endif
#include <asm-generic/bitsperlong.h>
#endif /* __ASM_X86_BITSPERLONG_H */
| Fix __BITS_PER_LONG value for x32 builds | x86/headers/uapi: Fix __BITS_PER_LONG value for x32 builds
On x32, gcc predefines __x86_64__ but long is only 32-bit. Use
__ILP32__ to distinguish x32.
Fixes this compiler error in perf:
tools/include/asm-generic/bitops/__ffs.h: In function '__ffs':
tools/include/asm-generic/bitops/__ffs.h:19:8: error: right shif... | C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs |
cfb81918edab8bed2c8bbab5602342b60c1a60a7 | runtime/GCCLibraries/libgcc/eprintf.c | runtime/GCCLibraries/libgcc/eprintf.c | #include <stdio.h>
void abort(void);
/* This is used by the `assert' macro. */
void
__eprintf (const char *string, const char *expression,
unsigned int line, const char *filename)
{
fprintf (stderr, string, expression, line, filename);
fflush (stderr);
abort ();
}
| Implement the printf function, used by assert | Implement the printf function, used by assert
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@2666 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm... | |
acd4d69243c48f9bbff625d269b337eed0c47f24 | SSPSolution/SSPSolution/MenuState.h | SSPSolution/SSPSolution/MenuState.h | #ifndef SSPAPPLICATION_GAMESTATES_MENUSTATE_H
#define SSPAPPLICATION_GAMESTATES_MENUSTATE_H
#include "GameState.h"
class MenuState :
public GameState
{
private:
public:
MenuState();
~MenuState();
int ShutDown();
int Initialize(GameStateHandler* gsh, ComponentHandler* cHandler);
int Update(float dt, InputHandler ... | #ifndef SSPAPPLICATION_GAMESTATES_MENUSTATE_H
#define SSPAPPLICATION_GAMESTATES_MENUSTATE_H
#include "GameState.h"
#include "../GraphicsDLL/GraphicsComponent.h"
class MenuState :
public GameState
{
private:
const static int m_NR_OF_MENU_ITEMS = 2;
UIComponent* m_uiComps[NR_OF_MENU_ITEMS];
TextComponent* m_textComps... | ADD ui and text comps to menustate | ADD ui and text comps to menustate
| C | apache-2.0 | Chringo/SSP,Chringo/SSP |
9f6454a084ed56920de2c6bb0cfdb3fa258a0e54 | features/cellular/framework/targets/QUECTEL/BC95/QUECTEL_BC95_CellularPower.h | features/cellular/framework/targets/QUECTEL/BC95/QUECTEL_BC95_CellularPower.h | /*
* Copyright (c) 2017, Arm Limited and affiliates.
* SPDX-License-Identifier: Apache-2.0
*
* 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/LICEN... | /*
* Copyright (c) 2017, Arm Limited and affiliates.
* SPDX-License-Identifier: Apache-2.0
*
* 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/LICEN... | Fix wrong header define name | Fix wrong header define name
| C | apache-2.0 | andcor02/mbed-os,mbedmicro/mbed,andcor02/mbed-os,mbedmicro/mbed,betzw/mbed-os,betzw/mbed-os,andcor02/mbed-os,betzw/mbed-os,kjbracey-arm/mbed,c1728p9/mbed-os,mbedmicro/mbed,andcor02/mbed-os,betzw/mbed-os,c1728p9/mbed-os,c1728p9/mbed-os,mbedmicro/mbed,mbedmicro/mbed,kjbracey-arm/mbed,c1728p9/mbed-os,kjbracey-arm/mbed,c17... |
0ef745fb407376a381b9e09e73e188a2034d3ad9 | src/dsmcc-compress.h | src/dsmcc-compress.h | #ifndef DSMCC_COMPRESS_H
#define DSMCC_COMPRESS_H
#include <stdbool.h>
#include "dsmcc-config.h"
#include "dsmcc-debug.h"
#ifdef HAVE_ZLIB
bool dsmcc_inflate_file(const char *filename);
#else
static inline bool dsmcc_inflate_file(const char *filename)
{
DSMCC_ERROR("Compression support is disabled in this build");
... | #ifndef DSMCC_COMPRESS_H
#define DSMCC_COMPRESS_H
#include <stdbool.h>
#include "dsmcc-config.h"
#include "dsmcc-debug.h"
#ifdef HAVE_ZLIB
bool dsmcc_inflate_file(const char *filename);
#else
static inline bool dsmcc_inflate_file(const char *filename)
{
(void) filename;
DSMCC_ERROR("Compression support is disabled... | Fix compilation error when disabling zlib support | Fix compilation error when disabling zlib support
| C | lgpl-2.1 | frogbywyplay/media_libdsmcc,frogbywyplay/media_libdsmcc |
26c8a7af33471e55c174880e7373342820b163fb | test2/inline/cant.c | test2/inline/cant.c | // RUN: %check -e %s
#define always_inline __attribute((always_inline))
always_inline hidden(int);
void always_inline __attribute((noinline)) noinline(void)
{
}
always_inline void print(const char *fmt, ...)
{
}
always_inline void old(a, b)
int a, b;
{
}
always_inline void addr(int x)
{
int *p = &x;
*p = 3;
}
... | Test inability to inline certain functions | Test inability to inline certain functions
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler | |
51a20300b5d16fc2ded0b67c0dc250dd934339c7 | p7r/p7r_api.c | p7r/p7r_api.c | #include "./p7r_api.h"
#include "./p7r_root_alloc.h"
static
struct p7r_poolized_meta {
int startup_channel[2];
} meta_singleton;
static
void p7r_poolized_main_entrance(void *argument) {
struct p7r_poolized_meta *meta = argument;
struct p7r_delegation channel_hint;
for (;;) {
channel_hi... | #include "./p7r_api.h"
#include "./p7r_root_alloc.h"
static
struct p7r_poolized_meta {
int startup_channel[2];
} meta_singleton;
static
void p7r_poolized_main_entrance(void *argument) {
struct p7r_poolized_meta *meta = argument;
struct p7r_delegation channel_hint;
for (;;) {
channel_hi... | Load balance & foreign message queue refactored. | Load balance & foreign message queue refactored.
| C | bsd-3-clause | Akvelog/servcraft,Akvelog/servcraft,Akvelog/servcraft |
26283cd9e6e778a00d1e2acba716771f4416c188 | src/libs6rc/s6rc_livedir_prefixsize.c | src/libs6rc/s6rc_livedir_prefixsize.c | /* ISC license. */
#include <limits.h>
#include <string.h>
#include <sys/stat.h>
#include <errno.h>
#include <s6-rc/s6rc-utils.h>
int s6rc_livedir_prefixsize (char const *live, size_t *n)
{
struct stat st ;
size_t llen = strlen(live) ;
char sfn[llen + 8] ;
memcpy(sfn, live, llen) ;
memcpy(sfn + llen, "/pref... | /* ISC license. */
#include <limits.h>
#include <string.h>
#include <sys/stat.h>
#include <errno.h>
#include <s6-rc/s6rc-utils.h>
int s6rc_livedir_prefixsize (char const *live, size_t *n)
{
struct stat st ;
size_t llen = strlen(live) ;
char sfn[llen + 8] ;
memcpy(sfn, live, llen) ;
memcpy(sfn + llen, "/pref... | Change safety guard to PATH_MAX because Solaris doesn't know NAME_MAX | Change safety guard to PATH_MAX because Solaris doesn't know NAME_MAX
| C | isc | skarnet/s6-rc,skarnet/s6-rc |
555ea52bfbef491555015a27c5d4d6bdcca14d07 | projects/com.oracle.truffle.llvm.test/tests/c/truffle-c/structTest/structCopy2.c | projects/com.oracle.truffle.llvm.test/tests/c/truffle-c/structTest/structCopy2.c | struct test {
int a[3];
char b[2];
long c;
};
int sum(struct test *t) {
int sum = 0;
sum += t->a[0] + t->a[1] + t->a[2];
sum += t->b[0] + t->b[1] + t->b[2];
sum += t->c;
return sum;
}
int main() {
struct test t1 = { .a = { 1, 2, 3 }, .b = { 'a', 'c' }, .c = -1 };
struct test t2 = t1;
t2.b[0] = ... | struct test {
int a[3];
char b[2];
long c;
};
int sum(struct test *t) {
int sum = 0;
sum += t->a[0] + t->a[1] + t->a[2];
sum += t->b[0] + t->b[1];
sum += t->c;
return sum;
}
int main() {
struct test t1 = { .a = { 1, 2, 3 }, .b = { 'a', 'c' }, .c = -1 };
struct test t2 = t1;
t2.b[0] = 32;
t2.a... | Fix overflow in test case | Fix overflow in test case
| C | bsd-3-clause | lxp/sulong,crbb/sulong,PrinzKatharina/sulong,crbb/sulong,lxp/sulong,lxp/sulong,crbb/sulong,PrinzKatharina/sulong,lxp/sulong,PrinzKatharina/sulong,crbb/sulong,PrinzKatharina/sulong |
8a1bfeac01a2a0b93544d46f229c6716457b4af5 | ros/src/sensing/filters/packages/points_downsampler/include/points_downsampler.h | ros/src/sensing/filters/packages/points_downsampler/include/points_downsampler.h | #ifndef POINTS_DOWNSAMPLER_H
#define POINTS_DOWNSAMPLER_H
static pcl::PointCloud<pcl::PointXYZI> removePointsByRange(pcl::PointCloud<pcl::PointXYZI> scan, double min_range, double max_range)
{
pcl::PointCloud<pcl::PointXYZI> narrowed_scan;
narrowed_scan.header = scan.header;
double square_min_range = min_range *... | #ifndef POINTS_DOWNSAMPLER_H
#define POINTS_DOWNSAMPLER_H
static pcl::PointCloud<pcl::PointXYZI> removePointsByRange(pcl::PointCloud<pcl::PointXYZI> scan, double min_range, double max_range)
{
pcl::PointCloud<pcl::PointXYZI> narrowed_scan;
narrowed_scan.header = scan.header;
#if 1 // This error handling shou... | Add Error handring to removePointsByRange() | Add Error handring to removePointsByRange()
| C | apache-2.0 | CPFL/Autoware,suzlab/Autoware,CPFL/Autoware,suzlab/Autoware,suzlab/Autoware,suzlab/Autoware,CPFL/Autoware,CPFL/Autoware,suzlab/Autoware,CPFL/Autoware,CPFL/Autoware,suzlab/Autoware,CPFL/Autoware,suzlab/Autoware,suzlab/Autoware |
ae9b9fff1f55d6de43e96be799164b0ef6d99526 | hack/utils/compiler_id_impl.c | hack/utils/compiler_id_impl.c | /**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#define CAML_N... | /**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#define CAML_N... | Allow specifyign hackc compiler id with C define | [hack] Allow specifyign hackc compiler id with C define
Summary:
OSS friendliness:
- on mac, we *can't* add an ELF section after the fact, we must have it when building
- script is fb-specific for now (though doens't need to be)
Depends on D6237249
Reviewed By: paulbiss
Differential Revision: D6238694
fbshipit-s... | C | mit | gabelevi/flow,TiddoLangerak/flow,gabelevi/flow,facebook/flow,JonathanUsername/flow,JonathanUsername/flow,mroch/flow,claudiopro/flow,samwgoldman/flow,AgentME/flow,mroch/flow,facebook/flow,claudiopro/flow,TiddoLangerak/flow,nmote/flow,facebook/flow,mroch/flow,gabelevi/flow,samwgoldman/flow,gabelevi/flow,gabelevi/flow,gab... |
96e941ff7e908835b6df2fbb24069d30ec172544 | polygon.h | polygon.h | /** Author : Paul TREHIOU & Victor SENE
* Date : November 2014
**/
/**
* Declaration Point structure
* x - real wich is the abscisse of the point
* y - real wich is the ordinate of the point
*/
typedef struct
{
float x;
float y;
}Point;
/**
* Function wich create a point with a specified abscisse and ordin... | /** Author : Paul TREHIOU & Victor SENE
* Date : November 2014
**/
/**
* Declaration Point structure
* x - real wich is the abscisse of the point
* y - real wich is the ordinate of the point
*/
typedef struct
{
float x;
float y;
}Point;
/**
* Declaration of the Element structure
* value - value of the poi... | Move the structure definition on a better place | Move the structure definition on a better place
| C | mit | UTBroM/GeometricLib |
6fee339bd8ccc195012921cdc9284de41c992571 | JASP-Common/options/optionfieldpairs.h | JASP-Common/options/optionfieldpairs.h | #ifndef OPTIONFIELDPAIRS_H
#define OPTIONFIELDPAIRS_H
#include "optioni.h"
typedef std::pair<std::string, std::string> FieldPair;
typedef std::vector<FieldPair> FieldPairs;
class OptionFieldPairs : public OptionI<std::vector<std::pair<std::string, std::string> > >
{
public:
OptionFieldPairs(std::string name);
vir... | #ifndef OPTIONFIELDPAIRS_H
#define OPTIONFIELDPAIRS_H
#include "optioni.h"
#include "common.h"
typedef std::pair<std::string, std::string> FieldPair;
typedef std::vector<FieldPair> FieldPairs;
class OptionFieldPairs : public OptionI<std::vector<std::pair<std::string, std::string> > >
{
public:
OptionFieldPairs(std:... | Fix for GCC 4.6 compatibility | Fix for GCC 4.6 compatibility
| C | agpl-3.0 | TimKDJ/jasp-desktop,raviselker/jasp-desktop,AlexanderLyNL/jasp-desktop,dostodabsi/jasp-desktop,AlexanderLyNL/jasp-desktop,aknight1-uva/jasp-desktop,dostodabsi/jasp-desktop,AlexanderLyNL/jasp-desktop,dostodabsi/jasp-desktop,FransMeerhoff/jasp-desktop,Tahiraj/jasp-desktop,cgvarela/jasp-desktop,boutinb/jasp-desktop,vankes... |
dced3e0720486c4fc0910a9e8efe51e24991a994 | src/opt.c | src/opt.c | #include "opt.h"
CorkOpt *
corkopt_init(int argc, char *argv[])
{
CorkOpt *co;
if ((co = malloc(sizeof(CorkOpt))) == NULL)
return NULL;
co->argc = argc;
co->argv = argv;
return co;
}
static void
corkopt_fini(CorkOpt *co)
{ }
void
corkopt_add(CorkOpt *co,
int shortopt,
... | #include "opt.h"
CorkOpt *
corkopt_init(void)
{
CorkOpt *co;
if ((co = malloc(sizeof(CorkOpt))) == NULL)
return NULL;
co->args = corklist_create();
return co;
}
void
corkopt_fini(CorkOpt *co)
{ }
void
corkopt_add(CorkOpt *co,
int shortopt,
const char *longopt,
... | Change some function prototypes around | Change some function prototypes around
| C | mit | corks/corc.opt |
d62dee2351cdbc34d89459a9c4c2aaa98317b811 | test/benchLinkDef.h | test/benchLinkDef.h | #ifdef __CINT__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ class THit!+;
#pragma link C++ class TObjHit+;
#pragma link C++ class TSTLhit;
#pragma link C++ class TSTLhitList;
#pragma link C++ class TSTLhitDeque;
#pragma link C++ class TSTLhitSet;
#pragm... | #ifdef __CINT__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ class THit!+;
#pragma link C++ class TObjHit+;
#pragma link C++ class TSTLhit+;
#pragma link C++ class TSTLhitList+;
#pragma link C++ class TSTLhitDeque+;
#pragma link C++ class TSTLhitSet+;
#p... | Use the option "+" to force the new style Streamer for all classes in bench. | Use the option "+" to force the new style Streamer for all classes in bench.
git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@10478 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | veprbl/root,pspe/root,perovic/root,simonpf/root,gganis/root,sbinet/cxx-root,root-mirror/root,0x0all/ROOT,omazapa/root,tc3t/qoot,gbitzes/root,krafczyk/root,beniz/root,pspe/root,gganis/root,esakellari/root,veprbl/root,Y--/root,vukasinmilosevic/root,root-mirror/root,arch1tect0r/root,gganis/root,vukasinmilosevic/root,gbitz... |
3d7b3ba49dcac501c828eb222ce66ae907540d14 | test/Driver/XRay/xray-instrument-os.c | test/Driver/XRay/xray-instrument-os.c | // RUN: not %clang -o /dev/null -v -fxray-instrument -c %s
// XFAIL: -linux-
// REQUIRES-ANY: amd64, x86_64, x86_64h, arm, aarch64, arm64
typedef int a;
| // RUN: not %clang -o /dev/null -v -fxray-instrument -c %s
// XFAIL: -linux-, -freebsd
// REQUIRES-ANY: amd64, x86_64, x86_64h, arm, aarch64, arm64
typedef int a;
| Fix an XRay test on FreeBSD | [test] Fix an XRay test on FreeBSD
Summary: Fixing clang-test on FreeBSD as a follow-up of https://reviews.llvm.org/D43378 to handle the revert happened in r325749.
Reviewers: devnexen, krytarowski, dberris
Subscribers: emaste, dberris, cfe-commits
Differential Revision: https://reviews.llvm.org/D45002
git-svn-id:... | C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl... |
1a3be280fca9d613e9e1c176b6b930c397f19730 | include/conveyor/job.h | include/conveyor/job.h | // vim:cindent:cino=\:0:et:fenc=utf-8:ff=unix:sw=4:ts=4:
#ifndef CONVEYOR_JOB_H
#define CONVEYOR_JOB_H (1)
#include <QList>
#include <QObject>
#include <QScopedPointer>
#include <QString>
#include <conveyor/fwd.h>
#include <conveyor/jobstatus.h>
namespace conveyor
{
class Job : public QObject
{
Q_OB... | // vim:cindent:cino=\:0:et:fenc=utf-8:ff=unix:sw=4:ts=4:
#ifndef CONVEYOR_JOB_H
#define CONVEYOR_JOB_H (1)
#include <QList>
#include <QObject>
#include <QScopedPointer>
#include <QString>
#include <conveyor/fwd.h>
#include <conveyor/jobstatus.h>
namespace conveyor
{
class Job : public QObject
{
Q_OB... | Make Job::cancel and Job::pause public slots | Make Job::cancel and Job::pause public slots
| C | agpl-3.0 | makerbot/conveyor,makerbot/conveyor,makerbot/conveyor,makerbot/conveyor |
4222ba870d2fc3b89d7e78508e2f0ec18f69ca22 | include/cling/UserInterface/CompilationException.h | include/cling/UserInterface/CompilationException.h | //--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// author: Axel Naumann <axel@cern.ch>
//------------------------------------------------------------------------------
#ifndef CLING_COMPILATIONEXCEPTION_H
#define CLING_COMPILATIONEXCEPTION... | //--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// author: Axel Naumann <axel@cern.ch>
//------------------------------------------------------------------------------
#ifndef CLING_COMPILATIONEXCEPTION_H
#define CLING_COMPILATIONEXCEPTION... | Add more rationale as to how this exception is different from others. | Add more rationale as to how this exception is different from others.
| C | lgpl-2.1 | karies/cling,perovic/cling,root-mirror/cling,marsupial/cling,marsupial/cling,marsupial/cling,karies/cling,root-mirror/cling,marsupial/cling,perovic/cling,karies/cling,karies/cling,root-mirror/cling,perovic/cling,root-mirror/cling,perovic/cling,perovic/cling,karies/cling,root-mirror/cling,root-mirror/cling,karies/cling,... |
ed5d70eae8e393b9572ece4bf2a7829a56d67c92 | test/CodeGen/target-builtin-noerror.c | test/CodeGen/target-builtin-noerror.c | // RUN: %clang_cc1 %s -triple=x86_64-linux-gnu -S -o -
#define __MM_MALLOC_H
#include <x86intrin.h>
// No warnings.
extern __m256i a;
int __attribute__((target("avx"))) bar(__m256i a) {
return _mm256_extract_epi32(a, 3);
}
int baz() {
return bar(a);
}
int __attribute__((target("avx"))) qq_avx(__m256i a) {
ret... | // REQUIRES: x86-registered-target
// RUN: %clang_cc1 %s -triple=x86_64-linux-gnu -S -o -
#define __MM_MALLOC_H
#include <x86intrin.h>
// No warnings.
extern __m256i a;
int __attribute__((target("avx"))) bar(__m256i a) {
return _mm256_extract_epi32(a, 3);
}
int baz() {
return bar(a);
}
int __attribute__((target... | Mark this test as requiring and x86 registered target. | Mark this test as requiring and x86 registered target.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@250475 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl... |
f8f1430ae709c0018a217c77893754f38b3c5b93 | src/include/port/atomics/arch-arm.h | src/include/port/atomics/arch-arm.h | /*-------------------------------------------------------------------------
*
* arch-arm.h
* Atomic operations considerations specific to ARM
*
* Portions Copyright (c) 2013-2017, PostgreSQL Global Development Group
*
* NOTES:
*
* src/include/port/atomics/arch-arm.h
*
*-------------------------------------... | /*-------------------------------------------------------------------------
*
* arch-arm.h
* Atomic operations considerations specific to ARM
*
* Portions Copyright (c) 2013-2017, PostgreSQL Global Development Group
*
* NOTES:
*
* src/include/port/atomics/arch-arm.h
*
*-------------------------------------... | Enable 64 bit atomics on ARM64. | Enable 64 bit atomics on ARM64.
Previously they were disabled due to performance concerns on 32bit
arm, where 64bit atomics are often implemented via kernel traps.
Author: Roman Shaposhnik
Discussion: 3cd39cbacb0d69a21809879b1660e5325a970d65@mail.gmail.com
| C | apache-2.0 | lisakowen/gpdb,greenplum-db/gpdb,xinzweb/gpdb,adam8157/gpdb,50wu/gpdb,adam8157/gpdb,xinzweb/gpdb,greenplum-db/gpdb,lisakowen/gpdb,adam8157/gpdb,adam8157/gpdb,adam8157/gpdb,adam8157/gpdb,50wu/gpdb,adam8157/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,lisakowen/gpdb,xinzweb/gpdb,lisakowen/gpdb,50wu/gpdb,greenplum-db/gpdb,xin... |
f57e180366de9537a25e8454a53705d7c0a05744 | Sources/Tests/DataStructures/Test_DataStructures.c | Sources/Tests/DataStructures/Test_DataStructures.c | #include "unity.h"
#include "unity_fixture.h"
#include "Utils/IO/ArrayIO.h"
#include "Utils/IO/BlockMapIO.h"
#include "Utils/IO/ImageIO.h"
#include "Utils/IO/HistogramIO.h"
#include <stdio.h>
#include <stdlib.h>
bool IsUnderCI = false ;
TEST_GROUP(DataStructures);
TEST_SETUP(DataStructures)
{
IsUnderCI = (geten... | Rename and don't spit out all the sanity output when running on the CI server. | Rename and don't spit out all the sanity output when running on the CI server.
| C | bsd-3-clause | SimPrints/libAFIS,SimPrints/libAFIS,mjfh/libAFIS,SimPrints/libAFIS,mjfh/libAFIS,mjfh/libAFIS | |
310116bb0b482518dcd4dd87d94ac8f30e3a2c64 | src/qt/qtipcserver.h | src/qt/qtipcserver.h | #ifndef QTIPCSERVER_H
#define QTIPCSERVER_H
// Define Bitcoin-Qt message queue name
#define BITCOINURI_QUEUE_NAME "BitcoinURI"
void ipcScanRelay(int argc, char *argv[]);
void ipcInit(int argc, char *argv[]);
#endif // QTIPCSERVER_H
| #ifndef QTIPCSERVER_H
#define QTIPCSERVER_H
// Define Bitcoin-Qt message queue name
#define BITCOINURI_QUEUE_NAME "CrainCoinURI"
void ipcScanRelay(int argc, char *argv[]);
void ipcInit(int argc, char *argv[]);
#endif // QTIPCSERVER_H
| Set correct name for boost IPC | Set correct name for boost IPC
| C | mit | graincoin-project/graincoin,graincoin-project/graincoin,graincoin-project/graincoin,graincoin-project/graincoin,graincoin-project/graincoin |
dc89a17613a19e40261745ae41385894d8511a68 | src/hppa/Gglobal.c | src/hppa/Gglobal.c | /* libunwind - a platform-independent unwind library
Copyright (c) 2004-2005 Hewlett-Packard Development Company, L.P.
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
This file is part of libunwind.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associate... | Adjust for sigset_t to intrmask_t renaming. | Adjust for sigset_t to intrmask_t renaming.
2004/12/02 00:40:45-08:00 mostang.com!davidm
Add copyright notice.
Provide canonical DWARF-based implementation.
2004/11/30 23:38:42-08:00 mostang.com!davidm
Rename: src/hppa/global.c -> src/hppa/Gglobal.c
(Logical change 1.290)
| C | mit | fillexen/libunwind,rantala/libunwind,adsharma/libunwind,bo-on-software/libunwind,martyone/libunwind,zeldin/platform_external_libunwind,DroidSim/platform_external_libunwind,fdoray/libunwind,zeldin/platform_external_libunwind,frida/libunwind,vegard/libunwind,SyndicateRogue/libunwind,dropbox/libunwind,geekboxzone/lollipop... | |
6d989ccba4d79126c2976c430e53a9dff66943b7 | bst.h | bst.h | #include <stdlib.h>
#ifndef __BST_H__
#define __BST_H__
struct BSTNode;
struct BST;
typedef struct BSTNode BSTNode;
typedef struct BST BST;
BST* BST_Create(void);
BSTNode* BSTNode_Create(void* k);
void BST_Inorder_Tree_Walk(BST* T, void (f)(void*));
#endif | #include <stdlib.h>
#ifndef __BST_H__
#define __BST_H__
struct BSTNode;
struct BST;
typedef struct BSTNode BSTNode;
typedef struct BST BST;
BST* BST_Create(void);
BSTNode* BSTNode_Create(void* k);
void BST_Inorder_Tree_Walk(BST* T, void (f)(void*));
void BST_Preorder_Tree_Walk(BST* T, void (f)(void*));
void BST_Postor... | Add BST Pre/Post order walk function declaration | Add BST Pre/Post order walk function declaration
| C | mit | MaxLikelihood/CADT |
107caac8e8ce30c581e350f87ab769bf6c3c3d24 | 433Rx/MessageQueue.h | 433Rx/MessageQueue.h | // Copyright 2014-2016 the project authors as listed in the AUTHORS file.
// All rights reserved. Use of this source code is governed by the
// license that can be found in the LICENSE file.
#ifndef _MESSAGE_QUEUE
#define _MESSAGE_QUEUE
// note that on the arduino we have to be careful of how much memory we
// use so... | // Copyright 2014-2016 the project authors as listed in the AUTHORS file.
// All rights reserved. Use of this source code is governed by the
// license that can be found in the LICENSE file.
#ifndef _MESSAGE_QUEUE
#define _MESSAGE_QUEUE
// note that on the arduino we have to be careful of how much memory we
// use so... | Extend size of text in Message | Extend size of text in Message
Was seeeing intermittent failures due to memmory corruption
due to exceeding the message size.
| C | mit | mhdawson/arduino-esp8266,mhdawson/arduino-esp8266 |
f7d94cd1d223a1e0ede58bb361e28e0f14ad4ff9 | bandit/failure_formatters/default_failure_formatter.h | bandit/failure_formatters/default_failure_formatter.h | #ifndef BANDIT_DEFAULT_FAILURE_FORMATTER_H
#define BANDIT_DEFAULT_FAILURE_FORMATTER_H
namespace bandit { namespace detail {
struct default_failure_formatter : public failure_formatter
{
std::string format(const assertion_exception& err) const
{
std::stringstream ss;
if(err.file_name().size())
... | #ifndef BANDIT_DEFAULT_FAILURE_FORMATTER_H
#define BANDIT_DEFAULT_FAILURE_FORMATTER_H
namespace bandit { namespace detail {
struct default_failure_formatter : public failure_formatter
{
std::string format(const assertion_exception& err) const
{
std::stringstream ss;
if(err.file_name().size())
... | Add line break in default error formatter | Add line break in default error formatter
| C | mit | ogdf/bandit,ogdf/bandit |
0061b22b7bfe41ca8e5ec39a199fc1c8fa9203d0 | libhfuzz/libhfuzz.h | libhfuzz/libhfuzz.h | #ifdef __cplusplus
extern "C" {
#endif
/*
* buf: input fuzzing data
* len: size of the 'buf' data
*
* Return value: should return 0
*/
int LLVMFuzzerTestOneInput(const uint8_t * buf, size_t len);
/*
* argc: ptr to main's argc
* argv: ptr to main's argv
*
* Return value: ignored
*/
int LLVMFuzzerInit... | #ifdef __cplusplus
extern "C" {
#endif
/*
* buf: input fuzzing data
* len: size of the 'buf' data
*
* Return value: should return 0
*/
int LLVMFuzzerTestOneInput(const uint8_t * buf, size_t len);
/*
* argc: ptr to main's argc
* argv: ptr to main's argv
*
* Return value: ignored
*/
int LLVMFuzzerInit... | Change defined(_HF_ARCH_LINUX) -> defined(__linux__) for public includes | Change defined(_HF_ARCH_LINUX) -> defined(__linux__) for public includes
| C | apache-2.0 | google/honggfuzz,google/honggfuzz,anestisb/honggfuzz,google/honggfuzz |
2f88e41681d84bf6cbe207601f10815dc3b753a2 | listing1/listing1.c | listing1/listing1.c | # include <stdio.h>
# include <libmill.h>
# include <string.h>
coroutine void f(int index)
{
printf("Worker %d\n", index);
}
int main(int argc, char **argv)
{
for(int i=1;i<=10; i++) {
go(f(i));
}
return 0;
}
| # include <stdio.h>
# include <libmill.h>
coroutine void f(int index)
{
printf("Worker %d\n", index);
}
int main(int argc, char **argv)
{
for(int i=1;i<=10; i++) {
go(f(i));
}
return 0;
}
| Remove extraneous string.h from listing 1 | Remove extraneous string.h from listing 1
| C | mit | amitsaha/lj_libmill |
b54ed8ead107fadf4da763ca544e721ca59aa263 | 7segments.c | 7segments.c | #define L for(char*c=a[1],y;*c;)printf("%c%c%c%c",(y="w$]m.k{o"[*c++-48])&u/4?124:32,y&u?95:32,y&u/2?124:32,*c?32:10);u*=8;
main(int u,char**a){u=1;L;L;L} | #define L for(char*c=a[1],y;*c;)printf("%c%c%c%c",(y="w$]m.k{%\177o"[*c++-48])&u/4?124:32,y&u?95:32,y&u/2?124:32,*c?32:10);u*=8;
main(int u,char**a){u=1;L;L;L} | Use \177 instead of a special character inserted with a hex editor | Use \177 instead of a special character inserted with a hex editor
| C | mit | McZonk/7segements,McZonk/7segements |
18a0d3b3babd8e527884358674c1279ab26552cc | test/profile/instrprof-reset-counters.c | test/profile/instrprof-reset-counters.c | // RUN: %clang_profgen -o %t -O3 %s
// RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t
// RUN: llvm-profdata merge -o %t.profdata %t.profraw
// RUN: %clang_profuse=%t.profdata -o - -S -emit-llvm %s | FileCheck %s
void __llvm_profile_reset_counters(void);
void foo(int);
int main(void) {
foo(0);
__llvm_profile_reset_c... | // RUN: %clang_profgen -o %t -O3 %s
// RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t
// RUN: llvm-profdata merge -o %t.profdata %t.profraw
// RUN: %clang_profuse=%t.profdata -o - -S -emit-llvm %s | FileCheck %s
void __llvm_profile_reset_counters(void);
void foo(int);
int main(void) {
foo(0);
__llvm_profile_reset_c... | Add space inside the regular expression. | Add space inside the regular expression.
This should now pass on both ppc and x86. Sorry about the noise.
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@324556 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt |
1cd78585f239dce3a08fbdc31129e756903e88e5 | src/util/status_bar_layer.h | src/util/status_bar_layer.h | #pragma once
#include <pebble.h>
#ifndef PBL_PLATFORM_BASALT
typedef struct StatusBarLayer StatusBarLayer;
struct StatusBarLayer;
static inline StatusBarLayer *status_bar_layer_create(void) {
return NULL;
}
static inline void status_bar_layer_destroy(StatusBarLayer *status_bar_layer) {
}
static inline Layer *st... | Add util status bar layer | Add util status bar layer
| C | mit | youtux/PebbleShows,arekom/pebble-github,fletchto99/pebblejs,frizzr/CatchOneBus,zanesalvatore/transit-watcher,ento/pebblejs,dennisdegreef/foober,pebble/pebblejs,carlo-colombo/dublin-bus-pebble,arekom/pebble-github,tbloncar/pebble-sitestatus,frizzr/CatchOneBus,ishepard/TransmissionTorrent,jsfi/pebblejs,fletchto99/pebblej... | |
bb17b5e7ef14be5e038e938011d7e50981d0e049 | iv/lv5/radio/block_size.h | iv/lv5/radio/block_size.h | #ifndef IV_LV5_RADIO_BLOCK_SIZE_H_
#define IV_LV5_RADIO_BLOCK_SIZE_H_
#include <iv/static_assert.h>
#include <iv/arith.h>
namespace iv {
namespace lv5 {
namespace radio {
class Block;
static const std::size_t kBlockSize = core::Size::KB * 4;
static const uintptr_t kBlockMask = ~static_cast<uintptr_t>(kBlockSize - 1);... | #ifndef IV_LV5_RADIO_BLOCK_SIZE_H_
#define IV_LV5_RADIO_BLOCK_SIZE_H_
#include <iv/static_assert.h>
namespace iv {
namespace lv5 {
namespace radio {
namespace detail_block_size {
template<std::size_t x>
struct Is2Power {
static const bool value = x > 1 && (x & (x - 1)) == 0;
};
} // namespace detail_block_size
cl... | Use Is2Power instead of ctz | Use Is2Power instead of ctz
| C | bsd-2-clause | Constellation/iv,Constellation/iv,Constellation/iv,Constellation/iv |
1b6a606bca13c30f4a6686f0c5e21eca05acfabc | include/error.h | include/error.h | #ifndef CPR_ERROR_H
#define CPR_ERROR_H
#include <string>
#include "cprtypes.h"
#include "defines.h"
namespace cpr {
enum class ErrorCode {
OK = 0,
CONNECTION_FAILURE,
EMPTY_RESPONSE,
HOST_RESOLUTION_FAILURE,
INTERNAL_ERROR,
INVALID_URL_FORMAT,
NETWORK_RECEIVE_ERROR,
NETWORK_SEND_FAI... | #ifndef CPR_ERROR_H
#define CPR_ERROR_H
#include <string>
#include "cprtypes.h"
#include "defines.h"
namespace cpr {
enum class ErrorCode {
OK = 0,
CONNECTION_FAILURE,
EMPTY_RESPONSE,
HOST_RESOLUTION_FAILURE,
INTERNAL_ERROR,
INVALID_URL_FORMAT,
NETWORK_RECEIVE_ERROR,
NETWORK_SEND_FAI... | Use lowercase underscore for variable name | Use lowercase underscore for variable name
| C | mit | msuvajac/cpr,msuvajac/cpr,whoshuu/cpr,whoshuu/cpr,whoshuu/cpr,msuvajac/cpr,SuperV1234/cpr,SuperV1234/cpr,SuperV1234/cpr |
75b9cc56c2c0daa501a9f0b78dd7caf9d3c446b5 | kernel/kernel.c | kernel/kernel.c | #include <stddef.h>
#include <stdint.h>
#include "gdt.c"
#include "idt.c"
#include "isr.c"
#include "terminal.h"
/* Check if the compiler thinks if we are targeting the wrong operating system. */
#if defined(__linux__)
#error "You are not using a cross-compiler, you will most certainly run into trouble"
#endif
/* T... | #include <stddef.h>
#include <stdint.h>
#include "gdt.h"
#include "idt.h"
#include "isr.h"
#include "terminal.h"
/* Check if the compiler thinks if we are targeting the wrong operating system. */
#if defined(__linux__)
#error "You are not using a cross-compiler, you will most certainly run into trouble"
#endif
/* T... | Change c files to header files. | Change c files to header files.
| C | mit | awensaunders/kernel-of-truth,awensaunders/kernel-of-truth,Herbstein/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,Herbstein/kernel-of-truth,awensaunders/kernel-of-truth,Herbstein/kernel-of-truth |
ce889a4ce30953e987a1469d130fb753886667bb | test/CodeGen/builtin-clzero.c | test/CodeGen/builtin-clzero.c | // RUN: %clang_cc1 %s -triple=x86_64-apple-darwin -target-feature +clzero -emit-llvm -o - -Wall -Werror | FileCheck %s
#define __MM_MALLOC_H
#include <x86intrin.h>
void test_mm_clzero(void * __m) {
//CHECK-LABEL: @test_mm_clzero
//CHECK: @llvm.x86.clflushopt
_mm_clzero(__m);
}
| // RUN: %clang_cc1 %s -triple=x86_64-apple-darwin -target-feature +clzero -emit-llvm -o - -Wall -Werror | FileCheck %s
#define __MM_MALLOC_H
#include <x86intrin.h>
void test_mm_clzero(void * __m) {
//CHECK-LABEL: @test_mm_clzero
//CHECK: @llvm.x86.clzero
_mm_clzero(__m);
}
| Fix copy and paste bug in clzero test from r294559. | [X86] Fix copy and paste bug in clzero test from r294559.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@294560 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... |
a02fb3a30f820c6573d52a898c5b1055b38f9b91 | php_compat_53.h | php_compat_53.h | #ifndef PHP_FE_END
# define PHP_FE_END { NULL, NULL, NULL }
#endif
#ifndef HASH_KEY_NON_EXISTENT
# define HASH_KEY_NON_EXISTENT HASH_KEY_NON_EXISTANT
#endif
| Isolate all PHP compatability stuff into its own file | Isolate all PHP compatability stuff into its own file
| C | apache-2.0 | jmikola/mongo-php-driver,derickr/mongo-php-driver,serebro/mongo-php-driver-prototype,christkv/phongo,10gen-labs/mongo-php-driver-prototype,derickr/mongo-php-driver-prototype,derickr/mongo-php-driver-prototype,derickr/mongo-php-driver-prototype,jmikola/mongo-php-driver,mongodb-labs/mongo-php-driver-prototype,bjori/mongo... | |
3f150a8d8b571ca3f072d3ced1b3272aa82b9ea9 | lib/MetaProcessor/Display.h | lib/MetaProcessor/Display.h | //--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Timur Pocheptsov <Timur.Pocheptsov@cern.ch>
//------------------------------------------------------------------------------
#ifndef CLING_DISPLAY_H
#define CLING_... | //--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Timur Pocheptsov <Timur.Pocheptsov@cern.ch>
//------------------------------------------------------------------------------
#ifndef CLING_DISPLAY_H
#define CLING_... | Fix fwd decl for windows. | Fix fwd decl for windows.
git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@47814 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | karies/cling,marsupial/cling,karies/cling,perovic/cling,marsupial/cling,marsupial/cling,perovic/cling,root-mirror/cling,marsupial/cling,perovic/cling,root-mirror/cling,marsupial/cling,perovic/cling,karies/cling,karies/cling,root-mirror/cling,karies/cling,root-mirror/cling,perovic/cling,marsupial/cling,root-mirror/cling... |
50c59dac186f1e0de702c5b2f761c1ede995f084 | indra/llcommon/llversionviewer.h | indra/llcommon/llversionviewer.h | /**
* @file llversionviewer.h
* @brief
*
* $LicenseInfo:firstyear=2002&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as ... | /**
* @file llversionviewer.h
* @brief
*
* $LicenseInfo:firstyear=2002&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as ... | Increment version number since we forked for beta. | Increment version number since we forked for beta.
| C | lgpl-2.1 | gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm |
3983d4d1d363412b863aabd1219676c589d9ed41 | src/binary.c | src/binary.c | #include <binary.h>
#include <assert.h>
#include <crc32.h>
/* API ************************************************************************/
Binary *binary_new(Scope *scope, size_t size) {
Binary *binary = scope_alloc(scope, sizeof(Binary) + size);
binary->size = size;
binary->header = ref_header(TYPEID_BINA... | #include <binary.h>
#include <assert.h>
#include <crc32.h>
/* API ************************************************************************/
Binary *binary_new(Scope *scope, size_t size) {
Binary *binary = scope_alloc(scope, sizeof(Binary) + size + 1);
binary->size = size;
binary->header = ref_header(TYPEID_... | Add ending null-byte to binaries | Add ending null-byte to binaries
| C | apache-2.0 | samuelotter/slang,samuelotter/slang |
c22cda86143d517da8147fca81f45f595023a8ad | src/Classes/IMapEventListener.h | src/Classes/IMapEventListener.h | #ifndef MAP_EVENT_LISTENER_H
#define MAP_EVENT_LISTENER_H
#include "cocos2d.h"
namespace tsg {
namespace map {
class IMapEventListener {
public:
virtual void onMapLoad(cocos2d::TMXTiledMap *) = 0;
virtual void onViewCoordinatesChanged(cocos2d::Vec2) =0;
virtual void onNightTime() =0;
virtual void onDayTime() ... | #ifndef MAP_EVENT_LISTENER_H
#define MAP_EVENT_LISTENER_H
#include "cocos2d.h"
namespace tsg {
namespace map {
class IMapEventListener {
public:
virtual void onMapLoad(cocos2d::TMXTiledMap *) = 0;
virtual void onViewCoordinatesChanged(cocos2d::Vec2) = 0;
virtual void onNightTime() = 0;
virtual void onDayTime... | Format previos commit with clang-formatter | Format previos commit with clang-formatter
| C | apache-2.0 | TopSecretGames/game,apocarteres/game |
3c5ab51a235a400427b364a608e679d91390f96a | Quick/Quick.h | Quick/Quick.h | #import <Foundation/Foundation.h>
//! Project version number for Quick.
FOUNDATION_EXPORT double QuickVersionNumber;
//! Project version string for Quick.
FOUNDATION_EXPORT const unsigned char QuickVersionString[];
// In this header, you should import all the public headers of your framework using statements like #i... | #import <Foundation/Foundation.h>
//! Project version number for Quick.
FOUNDATION_EXPORT double QuickVersionNumber;
//! Project version string for Quick.
FOUNDATION_EXPORT const unsigned char QuickVersionString[];
#import <Quick/QuickSpec.h> | Remove public headers from umbrella header | Remove public headers from umbrella header
This seems to be the root cause for new projects created in Xcode 7.1
to report "Include of non-modular header inside framework Module
'Quick'".
Infer: It seems like the swift compiler in Xcode 7.1 now prevents
non-modular includes in umbrella header files. The public header... | C | apache-2.0 | marciok/Quick,Quick/Quick,phatblat/Quick,paulyoung/Quick,DanielAsher/Quick,Quick/Quick,DanielAsher/Quick,phatblat/Quick,jeffh/Quick,ikesyo/Quick,jasonchaffee/Quick,mokagio/Quick,jeffh/Quick,dgdosen/Quick,Quick/Quick,jasonchaffee/Quick,ikesyo/Quick,phatblat/Quick,dgdosen/Quick,Quick/Quick,paulyoung/Quick,marciok/Quick,a... |
2376316b36f4d6bdbdb82bea519b6296763bb2f2 | MORK/ORKTaskResult+MORK.h | MORK/ORKTaskResult+MORK.h | //
// ORKCollectionResult+MORK.h
// MORK
//
// Created by Nolan Carroll on 4/23/15.
// Copyright (c) 2015 Medidata Solutions. All rights reserved.
//
#import "ORKResult.h"
@interface ORKTaskResult (MORK)
@property (readonly) NSArray *mork_fieldDataFromResults;
@end
| //
// ORKCollectionResult+MORK.h
// MORK
//
// Created by Nolan Carroll on 4/23/15.
// Copyright (c) 2015 Medidata Solutions. All rights reserved.
//
#import "ORKResult.h"
@interface ORKTaskResult (MORK)
- (NSArray *)mork_getFieldDataFromResults;
@end
| Put method declaration back into category header | Put method declaration back into category header
| C | mit | mdsol/MORK,mdsol/MORK |
4dd9b0481fedd5fb2386865525e4e186cd88b10a | cores/esp8266/core_esp8266_noniso.c | cores/esp8266/core_esp8266_noniso.c | #include <stdlib.h>
#include "stdlib_noniso.h"
long atol_internal(const char* s)
{
return 0;
}
float atof_internal(const char* s)
{
return 0;
}
char * itoa (int val, char *s, int radix)
{
*s = 0;
return s;
}
char * ltoa (long val, char *s, int radix)
{
*s = 0;
return s;
}
char * utoa (unsigned int val... | #include <stdlib.h>
#include "stdlib_noniso.h"
extern int ets_sprintf(char*, const char*, ...);
#define sprintf ets_sprintf
long atol_internal(const char* s)
{
long result = 0;
return result;
}
float atof_internal(const char* s)
{
float result = 0;
return result;
}
char * itoa (int val, char *s, int radix... | Add stubs for itoa, ltoa | Add stubs for itoa, ltoa
| C | lgpl-2.1 | gguuss/Arduino,NullMedia/Arduino,gguuss/Arduino,edog1973/Arduino,jes/Arduino,NullMedia/Arduino,Links2004/Arduino,Links2004/Arduino,me-no-dev/Arduino,gguuss/Arduino,Adam5Wu/Arduino,quertenmont/Arduino,esp8266/Arduino,KaloNK/Arduino,quertenmont/Arduino,quertenmont/Arduino,me-no-dev/Arduino,NullMedia/Arduino,NextDevBoard/... |
afb88aaf4f3b358e4ba93894c7e462a949ffd80e | elang/compiler/ast/with_modifiers.h | elang/compiler/ast/with_modifiers.h | // Copyright 2014-2015 Project Vogue. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ELANG_COMPILER_AST_WITH_MODIFIERS_H_
#define ELANG_COMPILER_AST_WITH_MODIFIERS_H_
#include "elang/compiler/modifiers.h"
namespace elang {
namespac... | // Copyright 2014-2015 Project Vogue. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ELANG_COMPILER_AST_WITH_MODIFIERS_H_
#define ELANG_COMPILER_AST_WITH_MODIFIERS_H_
#include "elang/compiler/modifiers.h"
namespace elang {
namespac... | Introduce |HasPartial()|, |HasPublic()|, and so on in |WithModifiers| class for ease of accessing modifiers. | elang/compiler: Introduce |HasPartial()|, |HasPublic()|, and so on in |WithModifiers| class for ease of accessing modifiers.
| C | apache-2.0 | eval1749/elang,eval1749/elang,eval1749/elang,eval1749/elang,eval1749/elang |
9f0a75104da58dd1c8a88e825ff3a7815d8ca7f8 | src/dump.h | src/dump.h | /**
* File: dump.h
* Author: Scott Bennett
*/
#ifndef DUMP_H
#define DUMP_H
void dumpMemory();
void dumpProgramRegisters();
void dumpProcessorRegisters();
#endif /* DUMP_H */
| /*
* File: dump.h
* Author: Scott Bennett
*/
#ifndef DUMP_H
#define DUMP_H
void dumpMemory();
void dumpProgramRegisters();
void dumpProcessorRegisters();
#endif /* DUMP_H */
| Change header to C style. | Change header to C style. | C | isc | sbennett1990/YESS,sbennett1990/YESS,sbennett1990/YESS |
c27178386eaed213ca1eb798cc479408ad03a298 | src/main.c | src/main.c | #include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <netinet/in.h>
#include <sys/uio.h>
#define SERVER "127.0.0.1"
#define BUFLEN 512 // max length of buffer
#define PORT 3000 // destination port
... | #include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <sys/socket.h>
#include <netinet/in.h>
__attribute__((noreturn))
void failed(const char* s) {
perror(s);
exit(1);
}
int main() {
int s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
if (s == -1) {
failed("socket()");
}
}
| Remove broken prototype, starting out clean | Remove broken prototype, starting out clean
| C | mit | darthdeus/dit,darthdeus/dit,darthdeus/dit |
29f659dfcfde7adb191065b3c2929ac9f86c4147 | src/main.c | src/main.c | #include <config.h>
#include "utest.h"
int __attribute__((weak)) main (void)
{
return ut_run_all_tests() == 0;
}
| #include <config.h>
#include "utest.h"
#include <unistd.h>
#include <getopt.h>
#include <stdio.h>
static struct option options[] = {
{ "help", no_argument, NULL, 'h' },
{ "version", no_argument, NULL, 'V' },
{ NULL, 0, 0, 0 }
};
int __attribute__((weak)) main (int argc, char **argv)
{
int c;
wh... | Add basic cmd options handling | Add basic cmd options handling
| C | bsd-3-clause | lubomir/libutest,lubomir/libutest,lubomir/libutest |
d041cc813bcfcd04f077acdcea855f08b7d55577 | test/Driver/solaris-ld.c | test/Driver/solaris-ld.c | // Test ld invocation on Solaris targets.
// Check sparc-sun-solaris2.1
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
// RUN: --target=sparc-sun-solaris2.11 \
// RUN: --gcc-toolchain="" \
// RUN: --sysroot=%S/Inputs/sparc-sun-solaris2.11 \
// RUN: | FileCheck %s
// CHECK: "-cc1" "-triple" ... | // Test ld invocation on Solaris targets.
// Check sparc-sun-solaris2.1
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
// RUN: --target=sparc-sun-solaris2.11 \
// RUN: --gcc-toolchain="" \
// RUN: --sysroot=%S/Inputs/sparc-sun-solaris2.11 \
// RUN: | FileCheck %s
// CHECK: "-cc1" "-triple" ... | Fix path seperator for Windows. | Fix path seperator for Windows.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@246520 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
773337f15658e9d9c0104f6fd5fdf23debb4c334 | include/can_compat.h | include/can_compat.h | #include <stdint.h>
typedef uint8_t __u8;
typedef uint32_t __u32;
/* special address description flags for the CAN_ID */
#define CAN_EFF_FLAG 0x80000000U /* EFF/SFF is set in the MSB */
#define CAN_RTR_FLAG 0x40000000U /* remote transmission request */
#define CAN_ERR_FLAG 0x20000000U /* error message frame */
/* va... | Use socketcan data structures and defines | Use socketcan data structures and defines
| C | apache-2.0 | b/libusbcan,b/libusbcan | |
7bdf334b2c0524d4654bf1c63a2bfcba636b6cab | test/lex.c | test/lex.c | // Copyright 2012 Rui Ueyama <rui314@gmail.com>
// This program is free software licensed under the MIT license.
#include "test.h"
#define stringify(x) #x
void digraph(void) {
expect_string("[", stringify(<:));
expect_string("]", stringify(:>));
expect_string("{", stringify(<%));
expect_string("}", s... | // Copyright 2012 Rui Ueyama <rui314@gmail.com>
// This program is free software licensed under the MIT license.
#include "test.h"
#define stringify(x) #x
void digraph(void) {
expect_string("[", stringify(<:));
expect_string("]", stringify(:>));
expect_string("{", stringify(<%));
expect_string("}", s... | Add a test for line continuation. | Add a test for line continuation.
| C | mit | 8l/8cc,8l/8cc,jtramm/8cc,vastin/8cc,gergo-/8cc,nobody1986/8cc,vastin/8cc,abc00/8cc,jtramm/8cc,rui314/8cc,abc00/8cc,8l/8cc,cpjreynolds/8cc,abc00/8cc,andrewchambers/8cc,gergo-/8cc,rui314/8cc,nobody1986/8cc,abc00/8cc,cpjreynolds/8cc,andrewchambers/8cc,rui314/8cc,vastin/8cc,vastin/8cc,nobody1986/8cc,cpjreynolds/8cc,gergo-/... |
5b40dbec30817266ae2c7833ea2599f4ba6d265d | src/TriangleStripGLWidget.h | src/TriangleStripGLWidget.h | #ifndef TRIANGLESTRIPGLWIDGET_H
#define TRIANGLESTRIPGLWIDGET_H
#include "GLWidget.h"
#include <cmath>
/**
* Draws a trapezoid on screen using a triangle strip. Strips can be thought of
* lists of vertices, where each triangle in the list is composed of some
* adjacent group of three vertices. The vertices are col... | #ifndef TRIANGLESTRIPGLWIDGET_H
#define TRIANGLESTRIPGLWIDGET_H
#include "GLWidget.h"
#include <cmath>
/**
* Draws a trapezoid on screen using a triangle strip. Strips can be thought of
* lists of vertices, where each triangle in the list is composed of some
* adjacent group of three vertices. The vertices are col... | Put comment right next to class def | Put comment right next to class def
It's convention to have these without intervening spaces.
| C | mit | dafrito/alpha,dafrito/alpha,dafrito/alpha |
6e1b9916f3416fbfbda38f720bd01040532fd062 | src/modules/conf_randr/e_smart_randr.h | src/modules/conf_randr/e_smart_randr.h | #ifdef E_TYPEDEFS
#else
# ifndef E_SMART_RANDR_H
# define E_SMART_RANDR_H
Evas_Object *e_smart_randr_add(Evas *evas);
void e_smart_randr_current_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h);
void e_smart_randr_monitors_create(Evas_Object *obj);
void e_smart_randr_monitor_add(Evas_Object *obj, Evas_Object *m... | #ifdef E_TYPEDEFS
#else
# ifndef E_SMART_RANDR_H
# define E_SMART_RANDR_H
Evas_Object *e_smart_randr_add(Evas *evas);
void e_smart_randr_current_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h);
void e_smart_randr_monitors_create(Evas_Object *obj);
void e_smart_randr_monitor_add(Evas_Object *obj, Evas_Object *m... | Add prototypes for randr_changed_get and randr_changes_apply functions. | Add prototypes for randr_changed_get and randr_changes_apply functions.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 81104
| C | bsd-2-clause | tizenorg/platform.upstream.enlightenment,rvandegrift/e,FlorentRevest/Enlightenment,rvandegrift/e,tizenorg/platform.upstream.enlightenment,rvandegrift/e,tasn/enlightenment,tasn/enlightenment,tasn/enlightenment,FlorentRevest/Enlightenment,FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment |
e1be62f3f580c1147088d58c03775603082e56d2 | src/condor_includes/condor_constants.h | src/condor_includes/condor_constants.h | #ifndef CONSTANTS_H
#define CONSTANTS_H
#if !defined(__STDC__) && !defined(__cplusplus)
#define const
#endif
/*
Set up a boolean variable type. Since this definition could conflict
with other reasonable definition of BOOLEAN, i.e. using an enumeration,
it is conditional.
*/
#ifndef BOOLEAN_TYPE_DEFINED
typedef i... | #ifndef CONSTANTS_H
#define CONSTANTS_H
#if !defined(__STDC__) && !defined(__cplusplus)
#define const
#endif
/*
Set up a boolean variable type. Since this definition could conflict
with other reasonable definition of BOOLEAN, i.e. using an enumeration,
it is conditional.
*/
#ifndef BOOLEAN_TYPE_DEFINED
typedef i... | Make sure "TRUE" and "FALSE" are undefined before setting them up as constant int's. | Make sure "TRUE" and "FALSE" are undefined before setting them up as
constant int's.
| C | apache-2.0 | zhangzhehust/htcondor,clalancette/condor-dcloud,zhangzhehust/htcondor,zhangzhehust/htcondor,clalancette/condor-dcloud,djw8605/htcondor,neurodebian/htcondor,bbockelm/condor-network-accounting,zhangzhehust/htcondor,zhangzhehust/htcondor,djw8605/htcondor,htcondor/htcondor,bbockelm/condor-network-accounting,htcondor/htcond... |
c9abf0d374c53607e67a7a875433efa8280ec3e0 | messages.c | messages.c | // Messages are the scrolling messages within the UI.
// This file contains update and retrieval functions.
#include "7drltypes.h"
#define MAX_MSG_SIZE ( 80 )
static int oldest_message = ( MAX_MESSAGES - 1 );
char messages[ MAX_MESSAGES ][ MAX_MSG_SIZE ];
void init_messages( void )
{
bzero( messages, ( size_t... | Add start of messaging interface. | Add start of messaging interface. | C | bsd-3-clause | mtimjones/7drl | |
65c761a0d8dd7a84c9fbf9c108dafc1b8b690ac6 | php_shmt.h | php_shmt.h | #ifndef PHP_SHMT_H
#define PHP_SHMT_H
#define PHP_SHMT_EXTNAME "SHMT"
#define PHP_SHMT_EXTVER "1.0.1"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */
extern zend_module_entry shmt_module_entry;
#define phpext_shmt_ptr &shmt_module_entry;
#endif /* PHP_SHMT_H */
| #ifndef PHP_SHMT_H
#define PHP_SHMT_H
#define PHP_SHMT_EXTNAME "SHMT"
#define PHP_SHMT_EXTVER "1.0.2dev"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */
extern zend_module_entry shmt_module_entry;
#define phpext_shmt_ptr &shmt_module_entry;
#endif /* PHP_SHMT_H */
| Update the version after tagging | Update the version after tagging | C | mit | sevenval/SHMT,sevenval/SHMT |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.