commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
1
4.87k
subject
stringlengths
15
778
message
stringlengths
15
8.75k
lang
stringclasses
266 values
license
stringclasses
13 values
repos
stringlengths
5
127k
9617d0d65b4c9bcc6513d1aa6cca537713f178c6
SSPSolution/SSPSolution/DoorEntity.h
SSPSolution/SSPSolution/DoorEntity.h
#ifndef SSPAPPLICATION_ENTITIES_DOORENTITY_H #define SSPAPPLICATION_ENTITIES_DOORENTITY_H #include "Entity.h" #include <vector> struct DoorSyncState { int entityID; bool isOpened; }; struct ElementState { int entityID; EVENT desiredState; bool desiredStateReached; }; class DoorEntity : public Entity { private:...
#ifndef SSPAPPLICATION_ENTITIES_DOORENTITY_H #define SSPAPPLICATION_ENTITIES_DOORENTITY_H #include "Entity.h" #include <vector> struct ElementState { int entityID; EVENT desiredState; bool desiredStateReached; }; class DoorEntity : public Entity { private: std::vector<ElementState> m_subjectStates; bool m_is...
REMOVE syns state from Door
REMOVE syns state from Door We will only sync actuators such as levers, buttons and wheels
C
apache-2.0
Chringo/SSP,Chringo/SSP
915aab643788b8b8f0a366fefe9487e4d0e80928
arduino/OpenROV/Motors.h
arduino/OpenROV/Motors.h
#ifndef __MOTORS_H_ #define __MOTORS_H_ #include <Servo.h> #define MIDPOINT 128 class Motors { private: Servo port, vertical, starbord; int port_pin, vertical_pin, starbord_pin; public: Motors(int p_pin, int v_pin, int s_pin); void reset(); void go(int p, int v, int s); void stop(...
#ifndef __MOTORS_H_ #define __MOTORS_H_ #include <Servo.h> #define MIDPOINT 90 class Motors { private: Servo port, vertical, starbord; int port_pin, vertical_pin, starbord_pin; public: Motors(int p_pin, int v_pin, int s_pin); void reset(); void go(int p, int v, int s); void stop()...
Set MIDPOINT to 90 instead of 128 (servo lib goes from 0 to 180)
Set MIDPOINT to 90 instead of 128 (servo lib goes from 0 to 180)
C
mit
codewithpassion/openrov-software,BrianAdams/openrov-software,LeeCheongAh/openrov-software,bmvakili/openrov-software,ChangerR/burrito-cockpid,MysteriousChanger/burrito-cockpid,codewithpassion/openrov-software,bmvakili/openrov-software,bmvakili/openrov-software,BrianAdams/openrov-software,codewithpassion/openrov-software...
bd0266ffdcb0b9debbe3dea7e3f07f54500af8c3
opencog/atoms/base/types.h
opencog/atoms/base/types.h
/* * opencog/atoms/base/types.h * * Copyright (C) 2002-2007 Novamente LLC * All Rights Reserved * * Written by Thiago Maia <thiago@vettatech.com> * Andre Senna <senna@vettalabs.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero Gener...
/* * opencog/atoms/base/types.h * * Copyright (C) 2002-2007 Novamente LLC * All Rights Reserved * * Written by Thiago Maia <thiago@vettatech.com> * Andre Senna <senna@vettalabs.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero Gener...
Add TypeSet type as set of Types
Add TypeSet type as set of Types
C
agpl-3.0
AmeBel/atomspace,rTreutlein/atomspace,misgeatgit/atomspace,rTreutlein/atomspace,AmeBel/atomspace,AmeBel/atomspace,misgeatgit/atomspace,misgeatgit/atomspace,AmeBel/atomspace,misgeatgit/atomspace,rTreutlein/atomspace,rTreutlein/atomspace,misgeatgit/atomspace,rTreutlein/atomspace,AmeBel/atomspace
7a895c7cd2784c10e6922b16925797b18839d6b3
tensorflow/lite/micro/micro_error_reporter.h
tensorflow/lite/micro/micro_error_reporter.h
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
Add override specifier to the destructor.
Add override specifier to the destructor. PiperOrigin-RevId: 306301066 Change-Id: Ied92a889ee7af2d0e9a420d55aa503c31b4eba92
C
apache-2.0
petewarden/tensorflow,karllessard/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,annarev/tensorflow,annarev/tensorflow,yongtang/tensorflow,gunan/tensorflow,davidzchen/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,peteward...
d9ec8b1cf5e350939dc3642e1e4df2813e63716b
Tick.h
Tick.h
#pragma once #include <chrono> #include <functional> #include <thread> #include <atomic> class Tick { public: Tick(std::chrono::microseconds timeBetweenTicks, std::function<void()>&& onTick) : timeBetweenTicks_(timeBetweenTicks) , onTick_(std::move(onTick)) , active_(true) ...
#pragma once #include <chrono> #include <functional> #include <thread> #include <atomic> using Clock = std::chrono::steady_clock; class Tick { public: Tick(std::chrono::microseconds timeBetweenTicks, std::function<void()>&& onTick) : timeBetweenTicks_(timeBetweenTicks) , onTick_(std::mov...
Fix incorrect usage of 2 different clocks to a single uniform clock
Fix incorrect usage of 2 different clocks to a single uniform clock
C
mit
4sily/rate-limiter-cpp,4sily/rate-limiter-cpp
ea58504e5d3e1f394f46798805cfb5950b8a4a9d
Cube.h
Cube.h
#ifndef CUBE_H #define CUBE_H #include "stdafx.h" using namespace std; class Cube { public: typedef float * Array; //static int locAmbient, locDiffuse, locSpecular, locEyeLight, locLight, locTexture; //static int locMVP, locMV, locNM; int numFrame; GLuint shader, textureID; static bool readTexture;//, ...
#ifndef CUBE_H #define CUBE_H #include "stdafx.h" using namespace std; class Cube { public: typedef float * Array; static int locAmbient, locDiffuse, locSpecular, locEyeLight, locLight, locTexture; static int locMVP, locMV, locNM; int numFrame; static GLuint shader, textureID; static bool readTexture, read...
Reduce Even More Memory Usage
Reduce Even More Memory Usage
C
mit
diwgan32/Maze,diwgan32/Maze
31a4b718bc20f7155397ecb29f1d5e10cd592b23
tests/test_utils.h
tests/test_utils.h
#ifndef TEST_UTILS_H #define TEST_UTILS_H #include <fplll.h> using namespace std; using namespace fplll; /** @brief Read matrix from `input_filename`. @param A matrix @param input_filename @return zero if the file is correctly read, 1 otherwise. */ template <class ZT> int read_matrix(ZZ_mat<ZT> &A, cons...
#ifndef TEST_UTILS_H #define TEST_UTILS_H #include <fplll.h> using namespace std; using namespace fplll; #define read_file(X, input_filename) {\ ifstream is;\ is.exceptions(std::ifstream::failbit | std::ifstream::badbit);\ try {\ is.open(input_filename);\ is >> X;\ is.close();\ }\ catch (const ...
Remove Wcatch-value and unify way to check if files are read.
Remove Wcatch-value and unify way to check if files are read.
C
lgpl-2.1
fplll/fplll,dstehle/fplll,fplll/fplll,dstehle/fplll,cr-marcstevens/fplll,fplll/fplll,fplll/fplll,fplll/fplll,cr-marcstevens/fplll,dstehle/fplll,cr-marcstevens/fplll,cr-marcstevens/fplll
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
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
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...
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
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
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
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
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
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
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...
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
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
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...
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...
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...
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
3d2c4486a552db9d97ea32fd2235b2cc1358893a
src/shkutil/include/util/raii_helper.h
src/shkutil/include/util/raii_helper.h
#pragma once #include <utility> namespace shk { template< typename T, typename Return, Return (Free)(T), T EmptyValue = nullptr> class RAIIHelper { public: RAIIHelper(T obj) : _obj(obj) {} RAIIHelper(const RAIIHelper &) = delete; RAIIHelper &operator=(const RAIIHelper &) = delete; RA...
#pragma once #include <utility> namespace shk { template< typename T, typename Return, Return (Free)(T), T EmptyValue = nullptr> class RAIIHelper { public: explicit RAIIHelper(T obj) : _obj(obj) {} RAIIHelper(const RAIIHelper &) = delete; RAIIHelper &operator=(const RAIIHelper &) = dele...
Make it harder to accidentally steal ownership of a RAIIHelper resource
Make it harder to accidentally steal ownership of a RAIIHelper resource
C
apache-2.0
per-gron/shuriken,per-gron/shuriken,per-gron/shuriken,per-gron/shuriken
1f52f05b9d74c601e7642ec9bd64eb38cf1452f0
Pod/Classes/VOKMappableModel.h
Pod/Classes/VOKMappableModel.h
// // VOKMappableModel.h // VOKCoreData // #import "VOKCoreDataManager.h" /** * Any models that conform to this protocol will be automatically registered for mapping with the shared instance * of VOKCoreDataManager. */ @protocol VOKMappableModel <NSObject> ///@return an array of VOKManagedObjectMap objects m...
// // VOKMappableModel.h // VOKCoreData // #import "VOKCoreDataManager.h" /** * Any models that conform to this protocol will be automatically registered for mapping with the shared instance * of VOKCoreDataManager. * * Note that runtime protocol-conformance is based on declared conformance (the angle-brack...
Add note about how protocol conformance checking works.
Add note about how protocol conformance checking works.
C
mit
seanwolter/Vokoder,vokal-isaac/Vokoder,seanwolter/Vokoder,vokal/Vokoder,seanwolter/Vokoder,chillpop/Vokoder,seanwolter/Vokoder,vokal/Vokoder,chillpop/Vokoder,designatednerd/Vokoder,vokal-isaac/Vokoder,chillpop/Vokoder,vokal-isaac/Vokoder,vokal/Vokoder,designatednerd/Vokoder,brockboland/Vokoder,designatednerd/Vokoder,vo...
d11c53b1a6573cccb0283a187ef3938614089621
test/Driver/unknown-arg.c
test/Driver/unknown-arg.c
// RUN: not %clang_cc1 %s -cake-is-lie -%0 -%d 2> %t.log // RUN: FileCheck %s -input-file=%t.log // CHECK: unknown argument // CHECK: unknown argument // CHECK: unknown argument // RUN: %clang -S %s -o %t.s -funknown-to-clang-option -Wunknown-to-clang-option -munknown-to-clang-optio // IGNORED: warning: argument un...
// RUN: not %clang_cc1 %s -cake-is-lie -%0 -%d 2> %t.log // RUN: FileCheck %s -input-file=%t.log // CHECK: unknown argument // CHECK: unknown argument // CHECK: unknown argument // RUN: %clang -S %s -o %t.s -funknown-to-clang-option -Wunknown-to-clang-option -munknown-to-clang-option 2>&1 | FileCheck --check-prefix=...
Fix an incomplete copy and paste in my previous patch.
Fix an incomplete copy and paste in my previous patch. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@191245 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-cl...
26536e69151d5f8e083d8165421039b409c93ee3
src/rt/rust_unwind.h
src/rt/rust_unwind.h
// Unwinding stuff missing on some architectures (Mac OS X). #ifndef RUST_UNWIND_H #define RUST_UNWIND_H #ifdef __APPLE__ #include <libunwind.h> typedef int _Unwind_Action; typedef void _Unwind_Context; typedef void _Unwind_Exception; typedef int _Unwind_Reason_Code; #else #include <unwind.h> #endif #endif
// Unwinding stuff missing on some architectures (Mac OS X). #ifndef RUST_UNWIND_H #define RUST_UNWIND_H #ifdef __APPLE__ #include <libunwind.h> typedef void _Unwind_Context; typedef int _Unwind_Reason_Code; #else #include <unwind.h> #endif #if (defined __APPLE__) || (defined __clang__) typedef int _Unwind_Acti...
Fix build with clang on non-Mac
rt: Fix build with clang on non-Mac
C
apache-2.0
carols10cents/rust,fabricedesre/rust,bombless/rust,erickt/rust,michaelballantyne/rust-gpu,P1start/rust,erickt/rust,pczarn/rust,rohitjoshi/rust,waynenilsen/rand,jroesch/rust,AerialX/rust,GrahamDennis/rand,SiegeLord/rust,jroesch/rust,dinfuehr/rust,nham/rust,ktossell/rust,robertg/rust,zachwick/rust,richo/rust,servo/rust,G...
28f190e88bf324798276e4e8d4f5792cf6919fa6
Location/BackgroundTaskManager.h
Location/BackgroundTaskManager.h
// // BackgroundTaskManager.h // // Created by Puru Shukla on 20/02/13. // Copyright (c) 2013 Puru Shukla. All rights reserved. // #import <Foundation/Foundation.h> @interface BackgroundTaskManager : NSObject +(instancetype)sharedBackgroundTaskManager; -(UIBackgroundTaskIdentifier)beginNewBackgroundTask; @end
// // BackgroundTaskManager.h // // Created by Puru Shukla on 20/02/13. // Copyright (c) 2013 Puru Shukla. All rights reserved. // #import <Foundation/Foundation.h> @interface BackgroundTaskManager : NSObject +(instancetype)sharedBackgroundTaskManager; -(UIBackgroundTaskIdentifier)beginNewBackgroundTask; -(void)...
Add endAllBackgroundTasks to the Public API
Add endAllBackgroundTasks to the Public API
C
mit
kevinnguy/Location
1656855c0467348823d4decdbd4131875381d2c9
searchcore/src/vespa/searchcore/bmcluster/bm_node_stats_reporter.h
searchcore/src/vespa/searchcore/bmcluster/bm_node_stats_reporter.h
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/vespalib/util/threadstackexecutor.h> #include <chrono> #include <mutex> #include <condition_variable> namespace search::bmcluster { class BmCluster; class BmNodeStatsReporter { ...
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/vespalib/util/threadstackexecutor.h> #include <chrono> #include <mutex> #include <condition_variable> namespace search::bmcluster { class BmCluster; /* * Class handling background ...
Add class comment for BmNodeStatsReporter.
Add class comment for BmNodeStatsReporter.
C
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
cd845e38761b52497ff4ad02d32490d2c7a4ac24
include/dirbrowserformaction.h
include/dirbrowserformaction.h
#ifndef NEWSBOAT_DIRBROWSERFORMACTION_H #define NEWSBOAT_DIRBROWSERFORMACTION_H #include <grp.h> #include "configcontainer.h" #include "formaction.h" namespace newsboat { class DirBrowserFormAction : public FormAction { public: DirBrowserFormAction(View*, std::string formstr, ConfigContainer* cfg); ~DirBrowse...
#ifndef NEWSBOAT_DIRBROWSERFORMACTION_H #define NEWSBOAT_DIRBROWSERFORMACTION_H #include <sys/stat.h> #include <grp.h> #include "configcontainer.h" #include "formaction.h" namespace newsboat { class DirBrowserFormAction : public FormAction { public: DirBrowserFormAction(View*, std::string formstr, ConfigContain...
Fix DirBrowserFormAction build on FreeBSD
Fix DirBrowserFormAction build on FreeBSD
C
mit
der-lyse/newsboat,newsboat/newsboat,newsboat/newsboat,der-lyse/newsboat,newsboat/newsboat,der-lyse/newsboat,der-lyse/newsboat,der-lyse/newsboat,newsboat/newsboat,newsboat/newsboat,newsboat/newsboat,newsboat/newsboat,der-lyse/newsboat,der-lyse/newsboat,newsboat/newsboat,der-lyse/newsboat
87c0785d81c31a969bbf8029363ea042fdd82587
src/tileset.h
src/tileset.h
#ifndef _TILESET_H_ #define _TILESET_H_ #include <SDL.h> //#define TILESET_ROW_LENGTH 8 typedef struct tileset { SDL_Surface *image; SDL_Rect *clip; int length; } tileset; int tilesetLoad(tileset *tSet, char *fileName, int width, int height, int rowLen, int length); void tilesetUnload(tileset *tSet); #endif /* ...
#ifndef _TILESET_H_ #define _TILESET_H_ #include <SDL.h> typedef struct tileset { SDL_Surface *image; SDL_Rect *clip; int length; } tileset; int tilesetLoad(tileset *tSet, char *fileName, int width, int height, int rowLen, int length); void tilesetUnload(tileset *tSet); #endif /* _TILESET_H_ */
Remove redundant commended out code
Remove redundant commended out code
C
mit
zear/shisen-seki,zear/shisen-seki
34f818ebe0539bf77576f7b45d28a70160271754
program.c
program.c
/* Preprocessor defines added by opencl compiler * #define CONFIGS_PER_PROC */ __kernel void start_trampoline(__global char *match_configs, __global char *output) { __private unsigned int i; for (i = 0; i < 256; i++) { output[i] = CONFIGS_PER_PROC; } write_mem_fence(CLK_GLOBAL_MEM_FENCE); return; }
/* Preprocessor defines added by opencl compiler * #define CONFIGS_PER_PROC */ __kernel void start_trampoline(__global char *match_configs, __global char *output) { __private unsigned int i, startloc; // Per worker match configs. __private char local_match_configs[CONFIGS_PER_PROC * sizeof(char) * 4]; // Re...
Load match configs into each local proc.
Load match configs into each local proc.
C
bsd-2-clause
jmorse/worms,jmorse/worms
0b4900a73fb6206ad82511b2054843baec172618
gpm/spinner.c
gpm/spinner.c
// Calculates the 45th Fibonacci number with a visual indicator. #include <stdio.h> #include <assert.h> #include <libdill.h> // Calculates Fibonacci of x. static int fib(int x) { // Need to yield or spinner will not have any time to spin. int rc = yield(); assert(rc == 0); if (x < 2) return x; return fib(x - 1) ...
// Calculates the 45th Fibonacci number with a visual indicator. // Note: using yield() in fib() may allow the spinner to actually spin, but // fib() takes a lot longer to complete. E.g. Over 2 minutes with yield() // vs. 10 seconds without it. #include <stdio.h> #include <assert.h> #include <libdill.h> // Calculates ...
Add note about using yield().
Add note about using yield().
C
mit
jppunnett/libdill-tutorial
64c9fe48234cd49ae730f3d2f80a0b7eb3c6d897
Josh_Zane_Sebastian/src/parser/parser.c
Josh_Zane_Sebastian/src/parser/parser.c
#include <stdlib.h> #include <stdio.h> #include types.c #include <string.h> /* We can: Set something equal to something Function calls Function definitions Returning things -- delimiter '<' Printing things Iffing */ struct call parseCall(char* statement); struct function parseFunction(char* statemen...
#include <stdlib.h> #include <stdio.h> #include types.c #include <string.h> /* We can: Set something equal to something Function calls Function definitions Returning things -- delimiter '<' Printing things Iffing */ struct call parseCall(char* statement); struct function parseFunction(char* statemen...
Refactor the space tokenizer to be its own function; parse() no longer exists.
Refactor the space tokenizer to be its own function; parse() no longer exists.
C
mit
aacoppa/final,aacoppa/final