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 |
|---|---|---|---|---|---|---|---|---|---|
53ab89427f4c061e86a3f43ef3d5e860601aec86 | src/debugUtils.h | src/debugUtils.h | #pragma once
#include <string>
#include <iostream>
#include <fstream>
#include <exception>
#include <boost/format.hpp>
using boost::format;
class LogFile
{
public:
LogFile();
explicit LogFile(const std::string& filename);
~LogFile();
void open(const std::string& filename);
void close();
temp... | #pragma once
#include <string>
#include <iostream>
#include <fstream>
#include <exception>
#include <boost/format.hpp>
using boost::format;
class LogFile
{
public:
LogFile();
explicit LogFile(const std::string& filename);
~LogFile();
void open(const std::string& filename);
void close();
temp... | Synchronize logging to stderr and stdout in debug mode | Synchronize logging to stderr and stdout in debug mode
| C | mit | speth/ember,speth/ember,speth/ember |
c473a67a06813dc3d4ae5d312633657d7093b324 | include/materials/NoEvapFreeEnergy.h | include/materials/NoEvapFreeEnergy.h | /****************************************************************/
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* All contents are licensed under LGPL V2.1 */
/* See LICENSE for full restrictions ... | /****************************************************************/
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* All contents are licensed under LGPL V2.1 */
/* See LICENSE for full restrictions ... | Add const in newly-added file. | Add const in newly-added file.
| C | lgpl-2.1 | dinayuryev/panda,dinayuryev/panda,dinayuryev/panda |
79e698a2b20277e2c7c8b2d2d688ff1529b8df9d | src/gfx/extra/json.h | src/gfx/extra/json.h | /*
* Copyright (C) 2015 Luke San Antonio
* All rights reserved.
*/
#pragma once
#include "rapidjson/document.h"
#include "glm/glm.hpp"
namespace redc
{
inline glm::vec3 vec3_from_js_object(rapidjson::Value const& v) noexcept
{
return glm::vec3{v["x"].GetDouble(),v["y"].GetDouble(),v["z"].GetDouble()};
}
... | /*
* Copyright (C) 2015 Luke San Antonio
* All rights reserved.
*/
#pragma once
#include "rapidjson/document.h"
#include "glm/glm.hpp"
namespace redc
{
inline glm::vec3 vec3_from_js_object(rapidjson::Value const& v) noexcept
{
return glm::vec3{v["x"].GetDouble(),v["y"].GetDouble(),v["z"].GetDouble()};
}
... | Support loading vec3s from JSON objects or arrays | Support loading vec3s from JSON objects or arrays
| C | bsd-3-clause | RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine |
d80d80192972f1a90b10a43b2a4f4c88fd66f88c | vim/avr/compat.h | vim/avr/compat.h | #pragma once
#ifndef __AVR_ARCH__
#include <unistd.h>
#define _BV(bit) (1<<(bit))
inline void _delay_ms(int ms) { usleep(ms*1000); }
inline void _delay_us(int us) { usleep(us); }
extern unsigned char UCSR0B;
extern unsigned char DDRB;
extern unsigned char DDRD;
extern unsigned char PINB;
extern unsigned char PIND;... | #pragma once
#ifndef __AVR_ARCH__
#include <unistd.h>
#define _BV(bit) (1<<(bit))
inline void _delay_ms(int ms) { usleep(ms*1000); }
inline void _delay_us(int us) { usleep(us); }
extern unsigned char UCSR0A;
extern unsigned char UCSR0B;
extern unsigned char UCSR0C;
extern unsigned char UBRR0H;
extern unsigned char... | Add some more common ports and pins | Add some more common ports and pins
| C | mit | vargad/dotfiles,vargad/dotfiles,vargad/dotfiles |
c4c2ca46421f642a05f12aa5d0ab7af8313c7df0 | extobjc/extobjc.h | extobjc/extobjc.h | /*
* extobjc.h
* extobjc
*
* Created by Justin Spahr-Summers on 2010-11-09.
* Released into the public domain.
*/
#import "EXTADT.h"
#import "EXTAspect.h"
#import "EXTBlockMethod.h"
#import "EXTBlockTarget.h"
#import "EXTConcreteProtocol.h"
#import "EXTDispatchObject.h"
#import "EXTFinalMethod.h"
#import "EX... | /*
* extobjc.h
* extobjc
*
* Created by Justin Spahr-Summers on 2010-11-09.
* Released into the public domain.
*/
#import "EXTADT.h"
#import "EXTAspect.h"
#import "EXTBlockMethod.h"
#import "EXTBlockTarget.h"
#import "EXTConcreteProtocol.h"
#import "EXTDispatchObject.h"
#import "EXTFinalMethod.h"
#import "EX... | Add EXTMultimethod to umbrella header | Add EXTMultimethod to umbrella header
| C | mit | sandyway/libextobjc,kolyuchiy/libextobjc,WPDreamMelody/libextobjc,sunfei/libextobjc,goodheart/libextobjc,bboyesc/libextobjc,sanojnambiar/libextobjc,telly/libextobjc,jiakai-lian/libextobjc,liuruxian/libextobjc,KBvsMJ/libextobjc |
c86aa8f5c20a9d85460851418d8ba92fab23bb30 | sql/src/client/mem.h | sql/src/client/mem.h | #ifndef _MEM_H_
#define _MEM_H_
#include <config.h>
#ifdef _MSC_VER
#include <sql_config.h>
#endif
#include <stdio.h>
#include <assert.h>
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
#define NEW( type ) (type*)malloc(sizeof(type) )
#define NEW_ARRAY( type, size ) (type*)malloc((size)*sizeof(type))
#define RE... | #ifndef _MEM_H_
#define _MEM_H_
#include <config.h>
#include <sql_config.h>
#include <stdio.h>
#include <assert.h>
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
#define NEW( type ) (type*)malloc(sizeof(type) )
#define NEW_ARRAY( type, size ) (type*)malloc((size)*sizeof(type))
#define RENEW_ARRAY( type,ptr,siz... | Include sql_config.h always so that we get HAVE_TERMIOS_H, so that the password doesn't get echoed. | Include sql_config.h always so that we get HAVE_TERMIOS_H, so that the
password doesn't get echoed.
| C | mpl-2.0 | zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb |
fbf5b9c1da353780074ca0129f80dd5f6b43664e | unix/sig_all.c | unix/sig_all.c | #include <signal.h>
#include "sig.h"
#include "sysdeps.h"
#define SIGMAX _NSIG
void sig_all_catch(signalfn fn)
{
int i;
for (i = 1; i < SIGMAX; i++)
if (i != SIGPROF)
sig_catch(i, fn);
}
void sig_all_default(void)
{
int i;
for (i = 1; i < SIGMAX; i++)
if (i != SIGPROF)
sig_default(i);
}
... | #include <signal.h>
#include "sig.h"
#include "sysdeps.h"
#ifdef _SIG_MAXSIG
#define SIGMAX _SIG_MAXSIG
#else
#ifdef _NSIG
#define SIGMAX _NSIG
#else
#define SIGMAX 32
#endif
#endif
void sig_all_catch(signalfn fn)
{
int i;
for (i = 1; i < SIGMAX; i++)
if (i != SIGPROF)
sig_catch(i, fn);
}
void sig_all_... | Work on systems that don't define _NSIG | Work on systems that don't define _NSIG
| C | lgpl-2.1 | bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs |
3e8df9192426b28a6fdad02faeb98a5e51dc4e43 | src/vast/aliases.h | src/vast/aliases.h | #ifndef VAST_ALIASES_H
#define VAST_ALIASES_H
#include <cstdint>
namespace vast {
/// Uniquely identifies a VAST event.
using event_id = uint64_t;
/// Uniquely identifies a VAST type.
using type_id = uint64_t;
} // namespace vast
#endif
| #ifndef VAST_ALIASES_H
#define VAST_ALIASES_H
#include <cstdint>
#include <limits>
namespace vast {
/// Uniquely identifies a VAST event.
using event_id = uint64_t;
/// The smallest possible event ID.
static constexpr event_id min_event_id = 1;
/// The largest possible event ID.
static constexpr event_id max_event... | Add names for ID space boundaries. | Add names for ID space boundaries.
| C | bsd-3-clause | mavam/vast,mavam/vast,mavam/vast,pmos69/vast,pmos69/vast,vast-io/vast,vast-io/vast,mavam/vast,vast-io/vast,pmos69/vast,vast-io/vast,vast-io/vast,pmos69/vast |
4cec50d3ba00a1a7afc1fc6f4ce536fe9759170f | src/plparrot.c | src/plparrot.c | #include "postgres.h"
#include "executor/spi.h"
#include "commands/trigger.h"
#include "fmgr.h"
#include "access/heapam.h"
#include "utils/syscache.h"
#include "catalog/pg_proc.h"
#include "catalog/pg_type.h"
PG_MODULE_MAGIC;
PG_FUNCTION_INFO_V1(plparrot_call_handler);
Datum
plparrot_call_handler(PG_FUNCTION_ARGS)
... | #include "postgres.h"
#include "executor/spi.h"
#include "commands/trigger.h"
#include "fmgr.h"
#include "access/heapam.h"
#include "utils/syscache.h"
#include "catalog/pg_proc.h"
#include "catalog/pg_type.h"
PG_MODULE_MAGIC;
Datum plparrot_call_handler(PG_FUNCTION_ARGS);
void plparrot_elog(int level, char *message)... | Add simple function to interact with pgsql APIs, and make something for the NQP bits to export | Add simple function to interact with pgsql APIs, and make something for the NQP bits to export
| C | artistic-2.0 | leto/plparrot,leto/plparrot,leto/plparrot |
5b3f7c5dd5173b07bec251e3a685ccead22a1002 | src/readstat_convert.c | src/readstat_convert.c |
#include <errno.h>
#include "readstat.h"
#include "readstat_iconv.h"
#include "readstat_convert.h"
readstat_error_t readstat_convert(char *dst, size_t dst_len, const char *src, size_t src_len, iconv_t converter) {
/* strip off spaces from the input because the programs use ASCII space
* padding even with non... |
#include <errno.h>
#include "readstat.h"
#include "readstat_iconv.h"
#include "readstat_convert.h"
readstat_error_t readstat_convert(char *dst, size_t dst_len, const char *src, size_t src_len, iconv_t converter) {
/* strip off spaces from the input because the programs use ASCII space
* padding even with non... | Fix out of bounds writes during charset conversion | Fix out of bounds writes during charset conversion
Fixes #128. Thanks to Google Autofuzz Project
| C | mit | WizardMac/ReadStat,WizardMac/ReadStat |
a68494b48bbbdeb8293a0e5c521a501bf3eb3750 | OpenMRS-iOS/MRSVisit.h | OpenMRS-iOS/MRSVisit.h | //
// MRSVisit.h
// OpenMRS-iOS
//
// Created by Parker Erway on 12/2/14.
// Copyright (c) 2014 Erway Software. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface MRSVisit : NSObject
@property (nonatomic, strong) NSString *displayName;
@property (nonatomic, strong) NSString *UUID;
@property (non... | //
// MRSVisit.h
// OpenMRS-iOS
//
// Created by Parker Erway on 12/2/14.
// Copyright (c) 2014 Erway Software. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "MRSLocation.h"
@class MRSVisitType;
@interface MRSVisit : NSObject
@property (nonatomic, strong) NSString *displayName;
@property (nona... | Add new attributes to Visit class | Add new attributes to Visit class
| C | mpl-2.0 | yousefhamza/openmrs-contrib-ios-client,Undo1/openmrs-contrib-ios-client,yousefhamza/openmrs-contrib-ios-client,Undo1/openmrs-contrib-ios-client |
17e3691b024a18b4c5bd7359436bd8002074f537 | Equinox/SimpleTimer.h | Equinox/SimpleTimer.h | #ifndef __TIMER_H__
#define __TIMER_H__
#include "SDL/include/SDL.h"
class SimpleTimer
{
public:
SimpleTimer()
{
pausedTicks = 0, runTicks = 0;
running = false;
}
void Start()
{
running = true;
runTicks = SDL_GetTicks();
}
void Stop()
{
if(running)
{
running = false;
pausedTicks = SDL_GetT... | #ifndef __TIMER_H__
#define __TIMER_H__
#include "SDL/include/SDL.h"
class SimpleTimer
{
public:
SimpleTimer()
{
pausedTicks = 0, runTicks = 0;
running = false;
}
void Start()
{
running = true;
runTicks = SDL_GetTicks();
}
int Stop()
{
if(running)
{
running = false;
return pausedTicks = SD... | Change int to unsigned int | Change int to unsigned int
| C | mit | NeebulaGames/EquinoxEngine,NeebulaGames/EquinoxEngine,NeebulaGames/EquinoxEngine |
896daac6a878b6cf5feaa718c6a518335dfcc109 | src/dtkCore/dtkSingleton.h | src/dtkCore/dtkSingleton.h | #ifndef DTKSINGLETON_H
#define DTKSINGLETON_H
#include <QtCore/QMutex>
template <class T> class dtkSingleton
{
public:
static T& instance(void)
{
static QMutex mutex;
if(!s_instance) {
mutex.lock();
if(!s_instance)
s_in... | #ifndef DTKSINGLETON_H
#define DTKSINGLETON_H
#include <QtCore/QMutex>
template <class T> class dtkSingleton
{
public:
static T& instance(void)
{
static QMutex mutex;
if(!s_instance) {
mutex.lock();
if(!s_instance)
s_in... | Fix generic singleton accessor syntax. | Fix generic singleton accessor syntax.
| C | bsd-3-clause | d-tk/dtk,NicolasSchnitzler/dtk,NicolasSchnitzler/dtk,NicolasSchnitzler/dtk,d-tk/dtk,rdebroiz/dtk,d-tk/dtk,rdebroiz/dtk,d-tk/dtk,d-tk/dtk,rdebroiz/dtk,NicolasSchnitzler/dtk,d-tk/dtk,rdebroiz/dtk |
d8036e2cc4c1c60c5a2344df288af8d5e67b1bfc | src/string_reverse/string_reverse.c | src/string_reverse/string_reverse.c | #include <stdio.h>
#include <stdlib.h>
#include <assert.h>
int main()
{
// Read string from a file
FILE* file_ptr = fopen("test.txt", "r");
if (file_ptr == NULL)
return 1;
char* string = malloc(256);
fscanf(file_ptr, "%s", string);
// Solution
int length = sprintf(string, "%s", string);
i... | #include <stdio.h>
#include <stdlib.h>
void reverse(char* string)
{
char* back = string;
char tmp;
while(*back)
++back;
// Move from the null terminator
--back;
while (string < back)
{
char tmp = *string;
*string = *back;
*back = tmp;
++string;
--back;
}
}
int main()
{
//... | Handle null terminator in string reverse | Handle null terminator in string reverse
| C | mit | cknadler/questions |
4020b05b515c5a486de3224739e370dedfb5c005 | ext/ffi_c/Pointer.h | ext/ffi_c/Pointer.h |
#ifndef _POINTER_H
#define _POINTER_H
#ifdef __cplusplus
extern "C" {
#endif
#include "AbstractMemory.h"
extern void rbffi_Pointer_Init(VALUE moduleFFI);
extern void rbffi_NullPointer_Init(VALUE moduleFFI);
extern VALUE rbffi_Pointer_NewInstance(void* addr);
extern VALUE rbffi_PointerClass;
extern VALUE rbffi_NullP... | /*
* Copyright (c) 2008, 2009, Wayne Meissner
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list ... | Remove some leftover null pointer vars | Remove some leftover null pointer vars
| C | bsd-3-clause | majioa/ffi,tduehr/ffi,sparkchaser/ffi,ferventcoder/ffi,majioa/ffi,mvz/ffi,yghannam/ffi,tduehr/ffi,sparkchaser/ffi,ferventcoder/ffi,tduehr/ffi,MikaelSmith/ffi,ffi/ffi,majioa/ffi,ffi/ffi,mvz/ffi,sparkchaser/ffi,sparkchaser/ffi,MikaelSmith/ffi,tduehr/ffi,mvz/ffi,yghannam/ffi,ferventcoder/ffi,MikaelSmith/ffi,mvz/ffi,yghann... |
a81e238bcc471d0d8bf305a05da54d56eeef7ff5 | test/Driver/no-canonical-prefixes.c | test/Driver/no-canonical-prefixes.c | // Due to ln -sf:
// REQUIRES: shell
// RUN: rm -rf %t.real
// RUN: mkdir -p %t.real
// RUN: cd %t.real
// RUN: ln -sf %clang test-clang
// RUN: cd ..
// Important to remove %t.fake: If it already is a symlink to %t.real when
// `ln -sf %t.real %t.fake` runs, then that would symlink %t.real to itself,
// forming a cycl... | // Due to ln -sf:
// REQUIRES: shell
// RUN: mkdir -p %t.real
// RUN: cd %t.real
// RUN: ln -sf %clang test-clang
// RUN: cd ..
// If %.fake already is a symlink to %t.real when `ln -sf %t.real %t.fake`
// runs, then that would symlink %t.real to itself, forming a cycle.
// The `-n` flag prevents this.
// RUN: ln -sfn ... | Use `ln -n` to prevent forming a symlink cycle, instead of rm'ing the source | Use `ln -n` to prevent forming a symlink cycle, instead of rm'ing the source
This is a better fix for the problem fixed in r334972.
Also remove the rm'ing of the symlink destination that was there to
clean up the bots -- it's over a year later, bots should be happy now.
Differential Revision: https://reviews.llvm.or... | C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang |
cde8356ff78ad98f1c5cf8f34fa92014a1c0342f | kernel.h | kernel.h | extern void denoise(void*, int, const uint32_t *in, uint32_t *out, int h, int w);
extern void *kernelInit(void);
extern void kernelFinalize(void*);
enum {
SPATIAL,
TEMPORAL_AVG,
KNN,
AKNN,
ADAPTIVE_TEMPORAL_AVG,
DIFF,
SOBEL,
MOTION,
};
| extern void denoise(void*, int, const uint32_t *in, uint32_t *out, int h, int w);
extern void *kernelInit(void);
extern void kernelFinalize(void*);
enum {
// "Real" filters
SPATIAL,
TEMPORAL_AVG,
ADAPTIVE_TEMPORAL_AVG,
KNN,
AKNN,
// Helpers
DIFF,
SOBEL,
MOTION,
NFILTERS,
};
| Add comments for filter enums | Add comments for filter enums
| C | mit | xiaq/webcamfilter,xiaq/webcamfilter,xiaq/webcamfilter |
82a080813c8def8caace0d3b11079cfa20c72766 | src/modules/conf_randr/e_smart_monitor.h | src/modules/conf_randr/e_smart_monitor.h | #ifdef E_TYPEDEFS
#else
# ifndef E_SMART_MONITOR_H
# define E_SMART_MONITOR_H
Evas_Object *e_smart_monitor_add(Evas *evas);
# endif
#endif
| #ifdef E_TYPEDEFS
#else
# ifndef E_SMART_MONITOR_H
# define E_SMART_MONITOR_H
Evas_Object *e_smart_monitor_add(Evas *evas);
void e_smart_monitor_crtc_set(Evas_Object *obj, E_Randr_Crtc_Config *crtc);
void e_smart_monitor_output_set(Evas_Object *obj, E_Randr_Output_Config *output);
# endif
#endif
| Add function prototypes for setting monitor crtc and output config. | Add function prototypes for setting monitor crtc and output config.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84129
| C | bsd-2-clause | tasn/enlightenment,rvandegrift/e,rvandegrift/e,rvandegrift/e,FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment,tasn/enlightenment,tasn/enlightenment,tizenorg/platform.upstream.enlightenment,FlorentRevest/Enlightenment,FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment |
50c4ea79c8ba7f43cf0c47b8670824d0e60597ce | crater.c | crater.c | /* Copyright (C) 2014-2015 Ben Kurtovic <ben.kurtovic@gmail.com>
Released under the terms of the MIT License. See LICENSE for details. */
#include <stdlib.h>
#include "src/config.h"
#include "src/logging.h"
#include "src/rom.h"
/*
Main function.
*/
int main(int argc, char *argv[])
{
Config *config;
RO... | /* Copyright (C) 2014-2015 Ben Kurtovic <ben.kurtovic@gmail.com>
Released under the terms of the MIT License. See LICENSE for details. */
#include <stdlib.h>
#include "src/config.h"
#include "src/logging.h"
#include "src/rom.h"
/*
Main function.
*/
int main(int argc, char *argv[])
{
Config *config;
in... | Call different stuff for the assembler/disassembler. | Call different stuff for the assembler/disassembler.
| C | mit | earwig/crater,earwig/crater,earwig/crater,earwig/crater |
0319204b74cf182ffe0670e51154bd14b3510dc7 | include/flatcc/portable/pwarnings.h | include/flatcc/portable/pwarnings.h | #ifndef PWARNINGS_H
#define PWARNINGS_H
#if defined(_MSC_VER)
/* Needed when flagging code in or out and more. */
#pragma warning(disable: 4127) /* conditional expression is constant */
/* happens also in MS's own headers. */
#pragma warning(disable: 4668) /* preprocessor name not defined */
/* MSVC does not respect d... | #ifndef PWARNINGS_H
#define PWARNINGS_H
#if defined(_MSC_VER)
/* Needed when flagging code in or out and more. */
#pragma warning(disable: 4127) /* conditional expression is constant */
/* happens also in MS's own headers. */
#pragma warning(disable: 4668) /* preprocessor name not defined */
/* MSVC does not respect d... | Fix warning in header disabling some warnings (sigh) | Fix warning in header disabling some warnings (sigh)
| C | apache-2.0 | skhoroshavin/flatcc,skhoroshavin/flatcc,skhoroshavin/flatcc,dvidelabs/flatcc,dvidelabs/flatcc,dvidelabs/flatcc |
8ab76006de60ad761be1528e75f7e9898270c1f9 | include/dfb_types.h | include/dfb_types.h | #ifndef __DFB_TYPES_H__
#define __DFB_TYPES_H__
#ifdef USE_KOS
#include <sys/types.h>
typedef uint8 u8;
typedef uint16 u16;
typedef uint32 u32;
typedef uint64 u64;
typedef sint8 s8;
typedef sint16 s16;
typedef sint32 s32;
typedef sint64 s64;
#else
#include <stdint.h>
typedef uint8_t u8;
typedef uint16_t u16;
ty... | #ifndef __DFB_TYPES_H__
#define __DFB_TYPES_H__
#ifdef USE_KOS
#include <sys/types.h>
typedef uint8 u8;
typedef uint16 u16;
typedef uint32 u32;
typedef uint64 u64;
typedef sint8 s8;
typedef sint16 s16;
typedef sint32 s32;
typedef sint64 s64;
#else
#include <stdint.h>
typedef uint8_t u8;
typedef uint16_t u16;
ty... | Define compatibility macros for __ types unless DIRECTFB_NO_CRUFT is defined. | Define compatibility macros for __ types unless DIRECTFB_NO_CRUFT is defined.
| C | lgpl-2.1 | dfbdok/DirectFB1,dfbdok/DirectFB1,mtsekm/test,deniskropp/DirectFB,kevleyski/directfb,kevleyski/DirectFB-1,deniskropp/DirectFB,deniskropp/DirectFB,mtsekm/test,lancebaiyouview/DirectFB,kaostao/directfb,lancebaiyouview/DirectFB,djbclark/directfb-core-DirectFB,djbclark/directfb-core-DirectFB,djbclark/directfb-core-DirectFB... |
5c80c5e640d0fcb238cd3b9546c3a33edf7ca45c | tests/dcpu-testing.c | tests/dcpu-testing.c | int test(int a, int b, int c, int d, int e);
typedef (*funcCall)();
short array = {0x61c1};
int main()
{
((funcCall)array)();
return test(1, 2, 3, 4, 5);
}
int test(int a, int b, int c, int d, int e)
{
return (e + (a + b + c) * a / d) + (a * 6);
}
| int test(int a, int b, int c, int d, int e);
typedef (*funcCall)();
short array = {0x61c1};
int main()
{
((funcCall)array)();
int some_var = 3;
int ret = test(1, 2, 3, 4, 5);
return some_var + ret;
}
int foo(int a)
{
return 9 + a;
}
int test(int a, int b, int c, int d, int e)
{
a = foo(a);
return ((a + ... | Make example a bit more advanced | Make example a bit more advanced
| C | lgpl-2.1 | Wallbraker/DCPU-TCC,Wallbraker/DCPU-TCC,Wallbraker/DCPU-TCC |
9ef6cf64a9fff87a5e2135fd831e5586f38b0d6d | Applications/Simple/FragariaAppDelegate.h | Applications/Simple/FragariaAppDelegate.h | //
// FragariaAppDelegate.h
// Fragaria
//
// Created by Jonathan on 30/04/2010.
// Copyright 2010 mugginsoft.com. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <MGSFragaria/MGSFragariaTextViewDelegate.h>
#import <MGSFragaria/SMLSyntaxColouringDelegate.h>
@class SMLTextView;
@class MGSFragaria;
@class M... | //
// FragariaAppDelegate.h
// Fragaria
//
// Created by Jonathan on 30/04/2010.
// Copyright 2010 mugginsoft.com. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <MGSFragaria/MGSFragariaTextViewDelegate.h>
#import <MGSFragaria/SMLSyntaxColouringDelegate.h>
#import <MGSFragaria/MGSDragOperationDelegate.h>
... | Fix simple example delegate's protocol compliance. | Fix simple example delegate's protocol compliance.
| C | apache-2.0 | vakoc/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,bitstadium/Fragaria,shysaur/Fragaria,vakoc/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,bitstadium/Fragaria,shysaur/Fragaria,shysaur/Frag... |
1a3e5dcc47629e1707191ab1641a89be5eb1328b | src/storage/module.h | src/storage/module.h | /*
* waysome - wayland based window manager
*
* Copyright in alphabetical order:
*
* Copyright (C) 2014-2015 Julian Ganz
* Copyright (C) 2014-2015 Manuel Messner
* Copyright (C) 2014-2015 Marcel Müller
* Copyright (C) 2014-2015 Matthias Beyer
* Copyright (C) 2014-2015 Nadja Sommerfeld
*
* This file is part o... | /*
* waysome - wayland based window manager
*
* Copyright in alphabetical order:
*
* Copyright (C) 2014-2015 Julian Ganz
* Copyright (C) 2014-2015 Manuel Messner
* Copyright (C) 2014-2015 Marcel Müller
* Copyright (C) 2014-2015 Matthias Beyer
* Copyright (C) 2014-2015 Nadja Sommerfeld
*
* This file is part o... | Add storage files to storage documentation group | Add storage files to storage documentation group
| C | lgpl-2.1 | waysome/waysome,waysome/waysome |
e0a5c2288da7d2b7b20e3725e0e060269dbc2be5 | src/rtpp_version.h | src/rtpp_version.h | #define RTPP_SW_VERSION "rel.20140506110718"
| /* IPOLICE_FLAGS: DONT_REMOVE */
#define RTPP_SW_VERSION "rel.20160514172346"
| Add IPOLICE_FLAGS: DONT_REMOVE, bump RTPP_SW_VERSION forward. | Add IPOLICE_FLAGS: DONT_REMOVE, bump RTPP_SW_VERSION forward.
| C | bsd-2-clause | dsanders11/rtpproxy,synety-jdebp/rtpproxy,jevonearth/rtpproxy,synety-jdebp/rtpproxy,sippy/rtpproxy,synety-jdebp/rtpproxy,synety-jdebp/rtpproxy,jevonearth/rtpproxy,jevonearth/rtpproxy,sippy/rtpproxy,dsanders11/rtpproxy,dsanders11/rtpproxy,jevonearth/rtpproxy,sippy/rtpproxy |
f651d51d97b75f12ba68f1cbfca914724136d121 | tools/halide_image.h | tools/halide_image.h | #ifndef HALIDE_TOOLS_IMAGE_H
#define HALIDE_TOOLS_IMAGE_H
/*
This allows code that relied on halide_image.h and Halide::Tools::Image to
continue to work with newer versions of Halide where HalideBuffer.h and
Halide::Buffer are the way to work with data.
Besides mapping Halide::Tools::Image to Halide::Buffer, it defi... | #ifndef HALIDE_TOOLS_IMAGE_H
#define HALIDE_TOOLS_IMAGE_H
/** \file
*
* This allows code that relied on halide_image.h and
* Halide::Tools::Image to continue to work with newer versions of
* Halide where HalideBuffer.h and Halide::Buffer are the way to work
* with data.
*
* Besides mapping Halide::Tools::Image ... | Reformat comment into Doxygen comment for file. | Reformat comment into Doxygen comment for file.
| C | mit | kgnk/Halide,kgnk/Halide,psuriana/Halide,psuriana/Halide,kgnk/Halide,kgnk/Halide,psuriana/Halide,psuriana/Halide,kgnk/Halide,kgnk/Halide,psuriana/Halide,psuriana/Halide,kgnk/Halide,psuriana/Halide,kgnk/Halide |
cacbf0ecd02835adb555a9d64294e3ae987d918d | GoogleMaps/GoogleMapsDemos/SDKDemoAPIKey.h | GoogleMaps/GoogleMapsDemos/SDKDemoAPIKey.h | /*
* Copyright 2016 Google LLC. 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 applica... | /*
* Copyright 2016 Google LLC. 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 applica... | Use empty string as the default kAPIKey | fix: Use empty string as the default kAPIKey | C | apache-2.0 | googlemaps/maps-sdk-for-ios-samples,googlemaps/maps-sdk-for-ios-samples,googlemaps/maps-sdk-for-ios-samples,googlemaps/maps-sdk-for-ios-samples |
531ec1e7a2330a76ef7168167f42440cc88fbfd5 | test/CFrontend/2007-06-18-SextAttrAggregate.c | test/CFrontend/2007-06-18-SextAttrAggregate.c | // RUN: llvm-gcc %s -o - -S -emit-llvm -O3 | grep {i8 sext}
// PR1513
struct s{
long a;
long b;
};
void f(struct s a, char *b, char C) {
}
| // RUN: %llvmgcc %s -o - -S -emit-llvm -O3 | grep {i8 sext}
// PR1513
struct s{
long a;
long b;
};
void f(struct s a, char *b, char C) {
}
| Fix this test to not rely on the path but to use the configured llvm-gcc instead. | Fix this test to not rely on the path but to use the
configured llvm-gcc instead.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@39992 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llv... |
755fb0f25342c7ebd8df2c736e46a812d2408f91 | Pod/Classes/PINRemoteImageMacros.h | Pod/Classes/PINRemoteImageMacros.h | //
// PINRemoteImageMacros.h
// PINRemoteImage
//
// Created by Brian Dorfman on 10/15/15.
// Copyright © 2015 Pinterest. All rights reserved.
//
#ifndef PINRemoteImageMacros_h
#define PINRemoteImageMacros_h
#define PINRemoteImageLogging 0
#if PINRemoteImageLogging
#define PINLog(args...) NSLog(arg... | //
// PINRemoteImageMacros.h
// PINRemoteImage
//
#ifndef PINRemoteImageMacros_h
#define PINRemoteImageMacros_h
#define PINRemoteImageLogging 0
#if PINRemoteImageLogging
#define PINLog(args...) NSLog(args)
#else
#define PINLog(args...)
#endif
#if __has_include(<FLAnimatedImage/FLAnimatedImage.h>)
#d... | Remove my name from xcode's auto gen header template | Remove my name from xcode's auto gen header template
| C | apache-2.0 | pinterest/PINRemoteImage,pinterest/PINRemoteImage,pinterest/PINRemoteImage,pinterest/PINRemoteImage |
6a4888c54b31429442078f2bd804f0714b9e629d | button.h | button.h | /* Manages interaction with the buttons */
#ifndef BUTTON_H
#define BUTTON_H
const unsigned char BUTTON_NONE = 100;
bool button_isPressed(int buttonNumber);
void button_wait(int buttonNumber);
void button_ISR();
#endif
| /* Manages interaction with the buttons */
#ifndef BUTTON_H
#define BUTTON_H
#include <Arduino.h>
const unsigned char BUTTON_NONE = 100;
bool button_isPressed(uint8_t buttonNumber);
void button_wait(uint8_t buttonNumber);
void button_ISR();
#endif
| Fix header to be the same as cpp | Fix header to be the same as cpp
| C | mit | SUPERETDUPER/bolt-arduino |
52142e756e9bf6485d3d53596e8aff2e816a7253 | include/asm-powerpc/page_32.h | include/asm-powerpc/page_32.h | #ifndef _ASM_POWERPC_PAGE_32_H
#define _ASM_POWERPC_PAGE_32_H
#ifdef __KERNEL__
#define VM_DATA_DEFAULT_FLAGS VM_DATA_DEFAULT_FLAGS32
#define PPC_MEMSTART 0
#ifndef __ASSEMBLY__
/*
* The basic type of a PTE - 64 bits for those CPUs with > 32 bit
* physical addressing. For now this just the IBM PPC440.
*/
#ifdef ... | #ifndef _ASM_POWERPC_PAGE_32_H
#define _ASM_POWERPC_PAGE_32_H
#ifdef __KERNEL__
#define VM_DATA_DEFAULT_FLAGS VM_DATA_DEFAULT_FLAGS32
#define PPC_MEMSTART 0
#ifdef CONFIG_NOT_COHERENT_CACHE
#define ARCH_KMALLOC_MINALIGN L1_CACHE_BYTES
#endif
#ifndef __ASSEMBLY__
/*
* The basic type of a PTE - 64 bits for those CPU... | Fix kmalloc alignment on non-coherent DMA platforms | [POWERPC] Fix kmalloc alignment on non-coherent DMA platforms
On platforms doing non-coherent DMA (4xx, 8xx, ...), it's important
that the kmalloc minimum alignment is set to the cache line size, to
avoid sharing cache lines between different objects, so that DMA to
one of the objects doesn't corrupt the other.
Signe... | C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kana... |
44f9fbcddec64b7c43f7882ab58c8f23007a44d0 | include/base/errors.h | include/base/errors.h | /* --------------------------------------------------------------------------
* Name: errors.h
* Purpose: Error type and constants
* ----------------------------------------------------------------------- */
#ifndef ERRORS_H
#define ERRORS_H
typedef unsigned long int error;
#define error_OK 0
... | /* --------------------------------------------------------------------------
* Name: errors.h
* Purpose: Error type and constants
* ----------------------------------------------------------------------- */
#ifndef ERRORS_H
#define ERRORS_H
typedef unsigned long int error;
/* Generic errors */
#define error_... | Make error constants unsigned longs. | Make error constants unsigned longs.
| C | bsd-2-clause | dpt/Containers,dpt/Containers |
96018d05e6801cf935ef630288d45dc2238b5db8 | src/util.c | src/util.c | #include "util.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "laco.h"
static inline void ignore_extra(const char chr, char** string_ptr) {
if(*string_ptr == NULL) return;
while(**string_ptr == chr) {
*string_ptr += 1;
}
}
/* External API */
void laco_kill(LacoState* laco, int st... | #include "util.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "laco.h"
static inline void ignore_extra(const char chr, char** string_ptr) {
if(*string_ptr == NULL) return;
while(**string_ptr == chr) {
*string_ptr += 1;
}
}
/* External API */
void laco_kill(LacoState* laco, int st... | Change type from `char*` to `const char*` | Change type from `char*` to `const char*`
This is to gets rid of the explicit type conversation every iteration of the
loop.
| C | bsd-2-clause | sourrust/laco |
5861b4b4ba13a3feedb9544e94d9d0bc4296662c | test/Driver/ios-simulator-arcruntime.c | test/Driver/ios-simulator-arcruntime.c | // RUN: %clang -### -arch i386 -mmacosx-version-min=10.6 -D__IPHONE_OS_VERSION_MIN_REQUIRED=40201 -fobjc-arc -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-OPTIONS1 %s
// RUN: %clang -### -arch i386 -mmacosx-version-min=10.6 -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -fobjc-arc -fsyntax-only %s 2>&1 | FileCheck -c... | // RUN: %clang -### -ccc-host-triple i386-apple-darwin10 -arch i386 -mmacosx-version-min=10.6 -D__IPHONE_OS_VERSION_MIN_REQUIRED=40201 -fobjc-arc -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-OPTIONS1 %s
// RUN: %clang -### -ccc-host-triple i386-apple-darwin10 -arch i386 -mmacosx-version-min=10.6 -D__IPHONE_OS_... | Make this test pretend to be on a darwin host. | Make this test pretend to be on a darwin host.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@133125 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-cl... |
4b399f1a943e556f1fcd6a248991be922ad9741c | src/rtpp_command_query.h | src/rtpp_command_query.h | /*
* Copyright (c) 2014 Sippy Software, Inc., http://www.sippysoft.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
... | /*
* Copyright (c) 2014 Sippy Software, Inc., http://www.sippysoft.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
... | Change from working on "session" to working on "pipes". | Change from working on "session" to working on "pipes".
| C | bsd-2-clause | synety-jdebp/rtpproxy,synety-jdebp/rtpproxy,sippy/rtpproxy,jevonearth/rtpproxy,dsanders11/rtpproxy,synety-jdebp/rtpproxy,jevonearth/rtpproxy,sippy/rtpproxy,jevonearth/rtpproxy,dsanders11/rtpproxy,dsanders11/rtpproxy,jevonearth/rtpproxy,synety-jdebp/rtpproxy,sippy/rtpproxy |
dae8629cff132d3abd5ae83852380b568fbf654a | src/utils/CommonParams.h | src/utils/CommonParams.h |
# ifndef COMMONPARAMS_H
# define COMMONPARAMS_H
struct CommonParams{
int nx,ny,nz;
int NX,NY,NZ;
int rank;
int np;
int xOff;
int iskip;
int jskip;
int kskip;
int nstep;
int numOutputs;
double dx,dy,dz;
double LX,LY,LZ;
double dt;
};
# endif // COMMONPARAMS_H
|
# ifndef COMMONPARAMS_H
# define COMMONPARAMS_H
struct CommonParams{
int nx,ny,nz;
int NX,NY,NZ;
int rank;
int np;
int nbrL;
int nbrR;
int xOff;
int iskip;
int jskip;
int kskip;
int nstep;
int numOutputs;
double dx,dy,dz;
double LX,LY,LZ;
double dt;
};
# endif // COMMO... | Add SfieldFD class and TIPS3 and TIPS4 classes to phase_field app | Add SfieldFD class and TIPS3 and TIPS4 classes to phase_field app
| C | mit | paulmillett/meso |
9201aebbe24b8513b2af370d26bdfc2925daa037 | Include/KAI/Config/Compiler.h | Include/KAI/Config/Compiler.h |
#ifndef KAI_CONFIG_COMPILER_H
# define KAI_CONFIG_COMPILER_H
#
# if defined(BOOST_MSVC)
# define KAI_COMPILER_MSVC
# endif
#
# undef KAI_HAVE_PRAGMA_ONCE
#
# ifdef KAI_COMPILER_MSVC
# ifndef KAI_HAVE_PRAGMA_ONCE
# define KAI_HAVE_PRAGMA_ONCE
# endif
# endif // KAI_COMPILER_MSVC
#endif // KAI_CONFIG_COMPILER_H
/... |
#ifndef KAI_CONFIG_COMPILER_H
# define KAI_CONFIG_COMPILER_H
#
# if defined(BOOST_MSVC)
# define KAI_COMPILER_MSVC
# endif
#
# undef KAI_HAVE_PRAGMA_ONCE
#pragma warning (disable: 4458 4456)
#
# ifdef KAI_COMPILER_MSVC
# ifndef KAI_HAVE_PRAGMA_ONCE
# define KAI_HAVE_PRAGMA_ONCE
# endif
# endif // KAI_COMPILER... | Apply fixes required to work with VS 2015 Community. | Apply fixes required to work with VS 2015 Community.
Former-commit-id: 11fb6880db2d2d53bb8bf126a58e2eba7d0806d3
Former-commit-id: 6923894e1f89726caee9cecd8e43d078c17ce070 | C | mit | cschladetsch/KAI,cschladetsch/KAI,cschladetsch/KAI |
fc89323210a5f3f53808f7d801705d6b8c0a4224 | test/Analysis/unix-fns.c | test/Analysis/unix-fns.c | // RUN: %clang_cc1 -analyze -analyzer-check-objc-mem %s -analyzer-store=region
// RUN: %clang_cc1 -analyze -analyzer-check-objc-mem %s -analyzer-store=basic
#include <fcntl.h>
void test_open(const char *path) {
int fd;
fd = open(path, O_RDONLY); // no-warning
if (!fd)
close(fd);
fd = open(path, O_CREAT);... | // RUN: %clang_cc1 -analyze -analyzer-check-objc-mem %s -analyzer-store=region
// RUN: %clang_cc1 -analyze -analyzer-check-objc-mem %s -analyzer-store=basic
#ifndef O_CREAT
#define O_CREAT 0x0200
#define O_RDONLY 0x0000
#endif
int open(const char *, int, ...);
void test_open(const char *path) {
int fd;
fd = open(... | Remove test case dependancy on platform headers. | Remove test case dependancy on platform headers.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@97088 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/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... |
6e95c0157afc35662e73b9caafe0d1d8bcf11f77 | tests/shared_libs_toc/srcs/main.c | tests/shared_libs_toc/srcs/main.c | #include <stdio.h>
const char* output_hash(void);
int getValue(void);
int main(int argc, char **argv) {
printf("%s%d\n", output_hash(), getValue());
return 0;
}
| #include <stdio.h>
const char* output_hash(void);
int getValue(void);
int main(void) {
printf("%s%d\n", output_hash(), getValue());
return 0;
}
| Fix shared_lib_toc test on Android | Fix shared_lib_toc test on Android
In the shared_libs_toc test, the compiler complains about unused
arguments to main(), so just declare it with a void parameter list.
Change-Id: I5c5074c1012fec7c84d11fa1d8e5b7a0b74959b4
Signed-off-by: David Kilroy <159cd46f289d7961b38b0171b53c05be4aaef0b6@arm.com>
| C | apache-2.0 | ARM-software/bob-build,ARM-software/bob-build,ARM-software/bob-build,ARM-software/bob-build,ARM-software/bob-build |
f71ce7795e9204d7b8db08f46ec50c2ec56b5c31 | loader.c | loader.c | // This will load a lorito bytecode file into a lorito codeseg
| // This will load a lorito bytecode file into a lorito codeseg
// Since this is temporary, and we'll end up throwing it away in favor of
// integrating with parrot's packfile format, this will be real simple.
//
// Integer: segment type (0 = code, 1 = data)
// Integer: Size of segement name
// String: segment nam... | Document the mini pack format. | Document the mini pack format.
Sadly, I mangled some nomenclature and called something a segment that
isn't in the parrot world. Will need to fix that sometime. Sorry.
| C | artistic-2.0 | atrodo/lorito,atrodo/lorito |
4b53f8e967de8a0123cc029adc024e8b3cb16eeb | tests/regression/29-svcomp/14_addition_in_comparision_bot.c | tests/regression/29-svcomp/14_addition_in_comparision_bot.c |
int main()
{
unsigned int top;
unsigned int start = 0;
unsigned int count = 0;
if(start + count > top) {
return 1;
}
return 0;
}
| // PARAM: --enable ana.int.interval
int main()
{
unsigned int top;
unsigned int start = 0;
unsigned int count = 0;
if(start + count > top) {
return 1;
}
return 0;
}
| Enable interval analysis for test | Enable interval analysis for test
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
9f8a92329efad8a14294e0006f7a279087e994bd | cbits/siphash.h | cbits/siphash.h | #ifndef _hashable_siphash_h
#define _hashable_siphash_h
#include <stdint.h>
typedef uint64_t u64;
typedef uint32_t u32;
typedef uint16_t u16;
typedef uint8_t u8;
#define SIPHASH_ROUNDS 2
#define SIPHASH_FINALROUNDS 4
u64 hashable_siphash(int, int, u64, u64, const u8 *, size_t);
u64 hashable_siphash24(u64, u64, cons... | #ifndef _hashable_siphash_h
#define _hashable_siphash_h
#include <stdint.h>
typedef uint64_t u64;
typedef uint32_t u32;
typedef uint16_t u16;
typedef uint8_t u8;
#define SIPHASH_ROUNDS 2
#define SIPHASH_FINALROUNDS 4
u64 hashable_siphash(int, int, u64, u64, const u8 *, size_t);
u64 hashable_siphash24(u64, u64, cons... | Use 16-byte stack alignment on Windows, if using SSE | Use 16-byte stack alignment on Windows, if using SSE
| C | bsd-3-clause | ekmett/hashable |
40d6218a4da5c87723142bc7015bd6a85c52b590 | src/CPlusPlusMangle.h | src/CPlusPlusMangle.h | #ifndef HALIDE_CPLUSPLUS_MANGLE_H
#define HALIDE_CPLUSPLUS_MANGLE_H
/** \file
*
* A simple function to get a C++ mangled function name for a function.
*/
#include <string>
#include "IR.h"
#include "Target.h"
namespace Halide {
namespace Internal {
/** Return the mangled C++ name for a function.
* The target par... | #ifndef HALIDE_CPLUSPLUS_MANGLE_H
#define HALIDE_CPLUSPLUS_MANGLE_H
/** \file
*
* A simple function to get a C++ mangled function name for a function.
*/
#include <string>
#include "IR.h"
#include "Target.h"
namespace Halide {
namespace Internal {
/** Return the mangled C++ name for a function.
* The target par... | Add some EXPORT qualifiers for msvc | Add some EXPORT qualifiers for msvc
Former-commit-id: d0593d880573052e6ae2790328a336a6a9865cc3 | C | mit | Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide |
940a0d5b67b005f1fda448a4549a468745be827d | include/VolViz/src/GeometryDescriptor.h | include/VolViz/src/GeometryDescriptor.h | #ifndef VolViz_Geometry_h
#define VolViz_Geometry_h
#include "Types.h"
namespace VolViz {
enum MoveMask : uint8_t {
None = 0x00,
X = 0x01,
Y = 0x02,
Z = 0x04,
All = 0x07
};
struct GeometryDescriptor {
bool movable{true};
Color color{Colors::White()};
};
struct AxisAlignedPlaneDescriptor : public Geom... | #ifndef VolViz_Geometry_h
#define VolViz_Geometry_h
#include "Types.h"
namespace VolViz {
enum MoveMask : uint8_t {
None = 0x00,
X = 0x01,
Y = 0x02,
Z = 0x04,
All = 0x07
};
inline Vector3f maskToUnitVector(MoveMask mask) noexcept {
Vector3f v = Vector3f::Zero();
auto maskRep = static_cast<uint8_t>(mas... | Add function to convert MoveMak to mask vector | Add function to convert MoveMak to mask vector
| C | mit | ithron/VolViz,ithron/VolViz,ithron/VolViz |
6114da642991db0da3122e5d129e5050a449605a | fmacros.h | fmacros.h | #ifndef __HIREDIS_FMACRO_H
#define __HIREDIS_FMACRO_H
#if defined(__linux__)
#define _BSD_SOURCE
#define _DEFAULT_SOURCE
#endif
#if defined(__CYGWIN__)
#include <sys/cdefs.h>
#endif
#if defined(__sun__)
#define _POSIX_C_SOURCE 200112L
#else
#if !(defined(__APPLE__) && defined(__MACH__))
#define _XOPEN_SOURCE 600
#en... | #ifndef __HIREDIS_FMACRO_H
#define __HIREDIS_FMACRO_H
#if defined(__linux__)
#define _BSD_SOURCE
#define _DEFAULT_SOURCE
#endif
#if defined(__CYGWIN__)
#include <sys/cdefs.h>
#endif
#if defined(__sun__)
#define _POSIX_C_SOURCE 200112L
#else
#if !(defined(__APPLE__) && defined(__MACH__)) && !(defined(__FreeBSD__))
#d... | Fix compilation on FreeBSD 10.3 with default compiler | Fix compilation on FreeBSD 10.3 with default compiler
| C | bsd-3-clause | jinguoli/hiredis,jinguoli/hiredis,thomaslee/hiredis,jinguoli/hiredis,thomaslee/hiredis,redis/hiredis,charsyam/hiredis,charsyam/hiredis,redis/hiredis,redis/hiredis |
b8eb3a0a62af429ccd34fc43d1a74260733ce9c8 | TDTChocolate/TDTFoundationAdditions.h | TDTChocolate/TDTFoundationAdditions.h | #import "FoundationAdditions/TDTLog.h"
#import "FoundationAdditions/TDTAssert.h"
#import "FoundationAdditions/TDTSuppressPerformSelectorLeakWarning.h"
#import "FoundationAdditions/NSArray+TDTFunctionalAdditions.h"
#import "FoundationAdditions/NSSet+TDTFunctionalAdditions.h"
#import "FoundationAdditions/TDTObjectOrDefau... | #import "FoundationAdditions/TDTLog.h"
#import "FoundationAdditions/TDTAssert.h"
#import "FoundationAdditions/TDTSuppressPerformSelectorLeakWarning.h"
#import "FoundationAdditions/NSArray+TDTFunctionalAdditions.h"
#import "FoundationAdditions/NSSet+TDTFunctionalAdditions.h"
#import "FoundationAdditions/TDTObjectOrDefau... | Fix header paths in FoundationAdditions umbrella header | Fix header paths in FoundationAdditions umbrella header
| C | bsd-3-clause | talk-to/Chocolate,talk-to/Chocolate |
d27b6dbfdf02311c3b3a0182f835661512c07f6a | control.c | control.c | #include "hardware/packet.h"
#include "serial.h"
void btoa(int num, char *buf, int digits) {
int shift = digits - 1;
int current = pow(2, shift);
char digit[2];
while (current > 0) {
sprintf(digit, "%d", ((num & current) >> shift) & 1);
strncat(buf, digit, 1);
shift--;
... | #include "hardware/packet.h"
#include "serial.h"
void btoa(int num, char *buf, int digits) {
int shift = digits - 1;
int current = pow(2, shift);
char digit[2];
while (current > 0) {
sprintf(digit, "%d", ((num & current) >> shift) & 1);
strncat(buf, digit, 1);
shift--;
... | Add test packet data and fix invalid serial_close call | Add test packet data and fix invalid serial_close call
| C | agpl-3.0 | jackwilsdon/lightcontrol,jackwilsdon/lightcontrol |
ee12537a18f3f9792f8379454affba5ad13030ad | hardware/main.c | hardware/main.c | #include <avr/io.h>
#include <util/delay.h>
#include <avr/interrupt.h>
#include "deps/util.h"
#include "deps/rcswitch.h"
#define PIN_RC PB2
#include "deps/softuart.h"
#include "packet.h"
int main(void) {
// initialize serial
softuart_init();
// enable interrupts
sei();
delay_ms(1000);
sof... | #include <avr/io.h>
#include <util/delay.h>
#include <avr/interrupt.h>
#include "deps/util.h"
#include "deps/rcswitch.h"
#define PIN_RC PB2
#include "deps/softuart.h"
#include "packet.h"
int main(void) {
// initialize serial
softuart_init();
// enable interrupts
sei();
// enable the rc switch
... | Remove startup delay and messages | Remove startup delay and messages
| C | agpl-3.0 | jackwilsdon/lightcontrol,jackwilsdon/lightcontrol |
f7f41d9301d514a93c03a9cbcfeaf5be88906707 | include/flags.h | include/flags.h | /*
* Copyright 2015-2016 Yury Gribov
*
* Use of this source code is governed by MIT license that can be
* found in the LICENSE.txt file.
*/
#ifndef FLAGS_H
#define FLAGS_H
enum CheckFlags {
CHECK_BASIC = 1 << 0,
CHECK_REFLEXIVITY = 1 << 1,
CHECK_SYMMETRY = 1 << 2,
CHECK_TRANSITIVITY = 1 << 3... | /*
* Copyright 2015-2016 Yury Gribov
*
* Use of this source code is governed by MIT license that can be
* found in the LICENSE.txt file.
*/
#ifndef FLAGS_H
#define FLAGS_H
enum CheckFlags {
CHECK_BASIC = 1 << 0,
CHECK_REFLEXIVITY = 1 << 1,
CHECK_SYMMETRY = 1 << 2,
CHECK_TRANSITIVITY = 1 << 3... | Make bitfield signs explicitly signed (detected by Semmle). | Make bitfield signs explicitly signed (detected by Semmle).
| C | mit | yugr/sortcheck,yugr/sortcheck |
b7e1c268a1f1d242fe44703438fc41ef5bbe4c82 | testing/unittest/special_types.h | testing/unittest/special_types.h | #pragma once
template <typename T, unsigned int N>
struct FixedVector
{
T data[N];
__host__ __device__
FixedVector() { }
__host__ __device__
FixedVector(T init)
{
for(unsigned int i = 0; i < N; i++)
data[i] = init;
}
__host__ __device__
FixedVector operato... | #pragma once
template <typename T, unsigned int N>
struct FixedVector
{
T data[N];
__host__ __device__
FixedVector() : data() { }
__host__ __device__
FixedVector(T init)
{
for(unsigned int i = 0; i < N; i++)
data[i] = init;
}
__host__ __device__
FixedVecto... | Initialize FixedVector's member in its null constructor to eliminate a Wall warning. | Initialize FixedVector's member in its null constructor to eliminate a Wall warning.
| C | apache-2.0 | zeryx/thrust,xiongzhanblake/thrust,jaredhoberock/thrust,thrust/thrust,egaburov/thrust,raygit/thrust,arnabgho/thrust,Ricardo666666/thrust,sarvex/thrust,jaredhoberock/thrust,thvasilo/thrust,dachziegel/thrust,Ricardo666666/thrust,xiongzhanblake/thrust_src,dachziegel/thrust,thrust/thrust,xiongzhanblake/thrust,xiongzhanblak... |
e88a8f74d643ad6636683ff5304645fb203db34e | testmud/mud/home/Account/initd.c | testmud/mud/home/Account/initd.c | /*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2012 Raymond Jennings
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundati... | /*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2012 Raymond Jennings
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundati... | Remove spammy hello world from account system | Remove spammy hello world from account system
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka |
bec95322a9361d3a0458e2ccae647dfb59821f0a | include/utilities/utilities.h | include/utilities/utilities.h | /** \file
*
* \brief Inclusion of all utility function headers
*
* \date Created: Jul 12, 2014
* \date Modified: $Date$
*
* \authors mauro <mauro@iis.ee.ethz.ch>
*
* \version $Revision$
*/
#ifndef LINALG_UTILITIES_UTILITIES_H_
#define LINALG_UTILITIES... | /** \file
*
* \brief Inclusion of all utility function headers
*
* \date Created: Jul 12, 2014
* \date Modified: $Date$
*
* \authors mauro <mauro@iis.ee.ethz.ch>
*
* \version $Revision$
*/
#ifndef LINALG_UTILITIES_UTILITIES_H_
#define LINALG_UTILITIES... | Rename buffer.h to buffer_helper.h, part II | Rename buffer.h to buffer_helper.h, part II
| C | bsd-3-clause | MauroCalderara/LinAlg,MauroCalderara/LinAlg,MauroCalderara/LinAlg |
b13325f74d96d7e0a24c6f62b0910d6739835d47 | src/plugins/crypto/compile_openssl.c | src/plugins/crypto/compile_openssl.c | /**
* @file
*
* @brief tests if compilation works (include and build paths set correct, etc...)
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
#include <openssl/evp.h>
int main (void)
{
EVP_CIPHER_CTX * opensslSpecificType;
return 0;
}
| /**
* @file
*
* @brief tests if compilation works (include and build paths set correct, etc...)
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
#include <openssl/evp.h>
EVP_CIPHER_CTX * nothing (void)
{
return NULL;
}
int main (void)
{
nothing ();
return 0;
}
| Fix detection of lib if we use `-Werror` | OpenSSL: Fix detection of lib if we use `-Werror`
Before this update detecting OpenSSL would fail, if we treated warnings
as errors (`-Werror`). The cause of this problem was that compiling
`compile_openssl.cpp` produced a warning about an unused variable.
| C | bsd-3-clause | petermax2/libelektra,e1528532/libelektra,petermax2/libelektra,BernhardDenner/libelektra,mpranj/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,e1528532/libelektra,mpranj/libelektra,petermax2/libelektra,mpranj/libelektra,mpranj/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,petermax2... |
c102f62a41137d6a75500d46e272bc95a63cfae9 | src/kernel/time/time_manager.c | src/kernel/time/time_manager.c | /*
*
* SOS Source Code
* __________________
*
* [2009] - [2013] Samuel Steven Truscott
* All Rights Reserved.
*/
#include "time_manager.h"
#include "kernel/kernel_assert.h"
#include "time.h"
static int64_t __time_system_time_ns;
static __clock_device_t * __time_system_clock;
void __time_initialise(void)
{
... | /*
*
* SOS Source Code
* __________________
*
* [2009] - [2013] Samuel Steven Truscott
* All Rights Reserved.
*/
#include "time_manager.h"
#include "kernel/kernel_assert.h"
#include "time.h"
static uint64_t __time_system_time_ns;
static __clock_device_t * __time_system_clock;
void __time_initialise(void)
{
... | Fix the powerpc clock from the tbr. | Fix the powerpc clock from the tbr. | C | mit | sam-truscott/tinker-kernel,sam-truscott/tinker-kernel |
6772c4ea857328134e20eb6164d64b9ba2e038fd | You-DataStore/internal/internal_transaction.h | You-DataStore/internal/internal_transaction.h | #pragma once
#ifndef YOU_DATASTORE_INTERNAL_INTERNAL_TRANSACTION_H_
#define YOU_DATASTORE_INTERNAL_INTERNAL_TRANSACTION_H_
#include <memory>
#include <boost/ptr_container/ptr_deque.hpp>
#include "operation.h"
namespace You {
namespace DataStore {
namespace UnitTests { class DataStoreApiTest; }
namespace Internal {
... | #pragma once
#ifndef YOU_DATASTORE_INTERNAL_INTERNAL_TRANSACTION_H_
#define YOU_DATASTORE_INTERNAL_INTERNAL_TRANSACTION_H_
#include <memory>
#include <boost/ptr_container/ptr_deque.hpp>
#include "operation.h"
namespace You {
namespace DataStore {
namespace UnitTests { class DataStoreApiTest; }
namespace Internal {
... | Add mergedOperationsQueue and mergeQueue to ensure correctness of file being modified | Add mergedOperationsQueue and mergeQueue to ensure correctness of file being modified
| C | mit | cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main |
03a6bc7bedc52d6173436f789cc0329086447927 | include/swift/Syntax/TokenKinds.h | include/swift/Syntax/TokenKinds.h | //===--- TokenKinds.h - Token Kinds Interface -------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | //===--- TokenKinds.h - Token Kinds Interface -------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | Prepare the header for stand-alone usage. | Prepare the header for stand-alone usage.
| C | apache-2.0 | roambotics/swift,rudkx/swift,ahoppen/swift,ahoppen/swift,JGiola/swift,atrick/swift,apple/swift,apple/swift,tkremenek/swift,benlangmuir/swift,roambotics/swift,tkremenek/swift,xwu/swift,rudkx/swift,atrick/swift,tkremenek/swift,JGiola/swift,xwu/swift,atrick/swift,glessard/swift,roambotics/swift,glessard/swift,hooman/swift... |
79162ce8caaf6d1f66666cdd52f677de812af47a | test/Preprocessor/macro_paste_bcpl_comment.c | test/Preprocessor/macro_paste_bcpl_comment.c | // RUN: clang-cc %s -Eonly 2>&1 | grep error
#define COMM1 / ## /
COMM1
| // RUN: clang-cc %s -Eonly -fms-extensions=0 2>&1 | grep error
#define COMM1 / ## /
COMM1
| Disable Microsoft extensions to fix failure on Windows. | Disable Microsoft extensions to fix failure on Windows.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@84893 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
c8e8ac42abb9225c3abfac036340548cfaaa0e92 | common/opthelpers.h | common/opthelpers.h | #ifndef OPTHELPERS_H
#define OPTHELPERS_H
#ifdef __has_builtin
#define HAS_BUILTIN __has_builtin
#else
#define HAS_BUILTIN(x) (0)
#endif
#ifdef __GNUC__
/* LIKELY optimizes the case where the condition is true. The condition is not
* required to be true, but it can result in more optimal code for the true
* path at... | #ifndef OPTHELPERS_H
#define OPTHELPERS_H
#ifdef __has_builtin
#define HAS_BUILTIN __has_builtin
#else
#define HAS_BUILTIN(x) (0)
#endif
#ifdef __GNUC__
/* LIKELY optimizes the case where the condition is true. The condition is not
* required to be true, but it can result in more optimal code for the true
* path at... | Use false instead of 0 for a boolean | Use false instead of 0 for a boolean
| C | lgpl-2.1 | aaronmjacobs/openal-soft,aaronmjacobs/openal-soft |
a2af1d8bff1b3729048f95c8c266ef8f2fb4c861 | ps4/histogram_omp.c | ps4/histogram_omp.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bmp.h"
const int image_width = 512;
const int image_height = 512;
const int image_size = 512*512;
const int color_depth = 255;
int main(int argc, char** argv){
if(argc != 3){
printf("Useage: %s image n_threads\n", argv[0]);
exit... | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bmp.h"
const int image_width = 512;
const int image_height = 512;
const int image_size = 512*512;
const int color_depth = 255;
int main(int argc, char** argv){
if(argc != 3){
printf("Useage: %s image n_threads\n", argv[0]);
exit... | Add paralellism with race conditions to omp | Add paralellism with race conditions to omp
| C | apache-2.0 | Raane/Parallel-Computing,Raane/Parallel-Computing |
3caf8297799b2b227501404925cf8f1389cf0065 | libc/include/time.h | libc/include/time.h | /******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... | /******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... | Remove unused struct tm elements | Remove unused struct tm elements
Better to error out than suddenly have places use uninitalized data.
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.vnet.ibm.com>
| C | apache-2.0 | stewart-ibm/skiboot,legoater/skiboot,csmart/skiboot,legoater/skiboot,apopple/skiboot,open-power/skiboot,legoater/skiboot,stewart-ibm/skiboot,qemu/skiboot,qemu/skiboot,apopple/skiboot,qemu/skiboot,ddstreet/skiboot,shenki/skiboot,shenki/skiboot,mikey/skiboot,qemu/skiboot,legoater/skiboot,open-power/skiboot,ddstreet/skibo... |
f89548fb28969bff4aa298013090037bb45484c5 | media/tx/audio-tx.h | media/tx/audio-tx.h | #ifndef __AUDIO_TX_H__
#define __AUDIO_TX_H__
#include <stdint.h>
init_audio_tx(const char* outfile, int codec_id,
int sample_rate, int bit_rate, int payload_type);
int put_audio_samples_tx(int16_t* samples, int n_samples);
int finish_audio_tx();
#endif /* __AUDIO_TX_H__ */ | #ifndef __AUDIO_TX_H__
#define __AUDIO_TX_H__
#include <stdint.h>
int init_audio_tx(const char* outfile, int codec_id,
int sample_rate, int bit_rate, int payload_type);
int put_audio_samples_tx(int16_t* samples, int n_samples);
int finish_audio_tx();
#endif /* __AUDIO_TX_H__ */ | Add return type in definition of init_audio_tx function. | Add return type in definition of init_audio_tx function.
| C | lgpl-2.1 | Kurento/kc-media-native,Kurento/kc-media-native,shelsonjava/kc-media-native,shelsonjava/kc-media-native |
e9b465ccf6e9ef2294487ea43caa669e94661e97 | digest/DigestOOP.h | digest/DigestOOP.h | #pragma once
#include <memory>
#include <string>
#ifdef __cpp_lib_string_view
#include <string_view>
#endif
namespace oop
{
class Digest
{
public:
virtual ~Digest() {}
virtual void update(const void* data, int len) = 0;
#ifdef __cpp_lib_string_view
void update(std::string_view str) { update(str.data(), str.le... | #pragma once
#include <memory>
#include <string>
#ifdef __cpp_lib_string_view
#include <string_view>
#endif
namespace oop
{
class Digest
{
public:
virtual ~Digest() {}
virtual void update(const void* data, int len) = 0;
#ifdef __cpp_lib_string_view
void update(std::string_view str)
{
update(str.data(), ... | Fix digest oop for C++17. | Fix digest oop for C++17.
| C | bsd-3-clause | chenshuo/recipes,chenshuo/recipes,chenshuo/recipes,chenshuo/recipes,chenshuo/recipes,chenshuo/recipes |
60ababaf9ca888c2e74b840ad69188d84883623b | quic/platform/api/quic_test.h | quic/platform/api/quic_test.h | // Copyright (c) 2017 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 QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_
#define QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_
#include "net/third_party/quiche/src/quic/platform/api/qu... | // Copyright (c) 2017 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 QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_
#define QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_
#include "net/third_party/quiche/src/quic/platform/api/qu... | Fix one curly brace placement in test code | Fix one curly brace placement in test code
gfe-relnote: n/a, test-only
PiperOrigin-RevId: 303203726
Change-Id: I26a7ad68cc83ecd85fe59c5af5998b318302c9a7
| C | bsd-3-clause | google/quiche,google/quiche,google/quiche,google/quiche |
19c6935dad2d04738b1d4289ac2e2791cf7e2569 | rr_impl.c | rr_impl.c | /**
* rr_impl.c
*
* Implementation of functionality specific to round-robin scheduling.
*/
#include "rr_impl.h"
void rr_wake_worker(thread_info_t *info) {
// TODO
}
void rr_wait_for_worker(sched_queue_t *queue) {
// TODO
}
| /**
* rr_impl.c
*
* Implementation of functionality specific to round-robin scheduling.
*/
#include "rr_impl.h"
void rr_wake_worker(thread_info_t *info) {
// TODO
}
void rr_wait(sched_queue_t *queue) {
// TODO
}
| Revert change to rr_wait name | Revert change to rr_wait name
| C | unlicense | nealian/cse325_project4 |
72db37d52802027c30b38181de09413d7ceb8f17 | Source/Objects/GTLBatchQuery.h | Source/Objects/GTLBatchQuery.h | /* Copyright (c) 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /* Copyright (c) 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Fix comment on shouldSkipAuthorization property | Fix comment on shouldSkipAuthorization property | C | apache-2.0 | justinhouse/google-api-objectivec-client,nanthi1990/google-api-objectivec-client,CarlosTrejo/google-api-objectivec-client,JonasGessner/google-api-objectivec-client,creationst/google-api-objectivec-client,daffodilistic/google-api-objectivec-client,clody/google-api-objectivec-client,JonasGessner/google-api-objectivec-cli... |
3d69da22fd2a3aef7f34bdaddd379b8c8a57442a | include/cling/Interpreter/CIFactory.h | include/cling/Interpreter/CIFactory.h | //--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// author: Axel Naumann <axel@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public L... | //--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// author: Axel Naumann <axel@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public L... | Remove unneeded static member decls; mark c'tor, d'tor as deleted. | Remove unneeded static member decls; mark c'tor, d'tor as deleted.
| C | lgpl-2.1 | root-mirror/cling,karies/cling,perovic/cling,perovic/cling,marsupial/cling,root-mirror/cling,root-mirror/cling,root-mirror/cling,marsupial/cling,root-mirror/cling,marsupial/cling,marsupial/cling,karies/cling,perovic/cling,marsupial/cling,perovic/cling,marsupial/cling,karies/cling,karies/cling,perovic/cling,karies/cling... |
c37054eec60c9424923ec895d7dc23d744cd0b53 | Expecta/Expecta.h | Expecta/Expecta.h | #import <Foundation/Foundation.h>
//! Project version number for Expecta.
FOUNDATION_EXPORT double ExpectaVersionNumber;
//! Project version string for Expecta.
FOUNDATION_EXPORT const unsigned char ExpectaVersionString[];
#import <Expecta/ExpectaObject.h>
#import <Expecta/ExpectaSupport.h>
#import <Expecta/EXPMatch... | #import <Foundation/Foundation.h>
//! Project version number for Expecta.
FOUNDATION_EXPORT double ExpectaVersionNumber;
//! Project version string for Expecta.
FOUNDATION_EXPORT const unsigned char ExpectaVersionString[];
#import <Expecta/ExpectaObject.h>
#import <Expecta/ExpectaSupport.h>
#import <Expecta/EXPMatch... | Add newline to the end of the umbrella header | Add newline to the end of the umbrella header
| C | mit | tonyarnold/expecta,Lightricks/expecta,modocache/expecta,modocache/expecta,suxinde2009/expecta,iosdev-republicofapps/expecta,tonyarnold/expecta,udemy/expecta,suxinde2009/expecta,PatrykKaczmarek/expecta,wessmith/expecta,modocache/expecta,iosdev-republicofapps/expecta,specta/expecta,Bogon/expecta,jmburges/expecta,jmoody/e... |
40b4170a0ccd05ae95589f55d989f0727f060367 | ios/template/GMPExample/AppDelegate.h | ios/template/GMPExample/AppDelegate.h | //
// Copyright (c) 2015 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... | //
// Copyright (c) 2015 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... | Fix order of property attributes | Fix order of property attributes
Change-Id: I7a313d25a6707bada03328b0799300f07a26ba3b
| C | apache-2.0 | martijndebruijn/google-services,martijndebruijn/google-services,martijndebruijn/google-services,martijndebruijn/google-services |
3cc1b3d340ecf3a2b742ce6d32fa4a47f457af0f | src/log.c | src/log.c |
#include <imageloader.h>
#include "context.h"
#include <stdio.h>
#include <stdarg.h>
void print_to_log(ImgloadContext ctx, ImgloadLogLevel level, const char* format, ...)
{
if (!ctx->log.handler)
{
return;
}
if (level < ctx->log.minLevel)
{
return;
}
char buffer[1024];
va_list args;
va_start(args, fo... |
#include <imageloader.h>
#include "log.h"
#include "context.h"
#include <stdio.h>
#include <stdarg.h>
void print_to_log(ImgloadContext ctx, ImgloadLogLevel level, const char* format, ...)
{
if (!ctx->log.handler)
{
return;
}
if (level < ctx->log.minLevel)
{
return;
}
char buffer[1024];
va_list args;
... | Include the header in the source file | Include the header in the source file
| C | mit | asarium/imageloader,asarium/imageloader,asarium/imageloader |
d952cdee083b9b4a5af4f6d58cbda03add196ceb | src/net/instaweb/util/public/re2.h | src/net/instaweb/util/public/re2.h | /*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Make this a proper forwarding header rather than a duplication what's under pagespeed/util/ | Make this a proper forwarding header rather than
a duplication what's under pagespeed/util/
| C | apache-2.0 | patricmutwiri/mod_pagespeed,pagespeed/mod_pagespeed,patricmutwiri/mod_pagespeed,webhost/mod_pagespeed,patricmutwiri/mod_pagespeed,ajayanandgit/mod_pagespeed,webscale-networks/mod_pagespeed,patricmutwiri/mod_pagespeed,hashashin/src,VersoBit/mod_pagespeed,patricmutwiri/mod_pagespeed,webscale-networks/mod_pagespeed,webhos... |
2c23625aeeb91c496f68abd812eab53b6d87bae5 | arch/loongson/include/vmparam.h | arch/loongson/include/vmparam.h | /* $OpenBSD: vmparam.h,v 1.3 2011/03/23 16:54:35 pirofti Exp $ */
/* public domain */
#ifndef _MACHINE_VMPARAM_H_
#define _MACHINE_VMPARAM_H_
#define VM_PHYSSEG_MAX 2 /* Max number of physical memory segments */
#define VM_PHYSSEG_STRAT VM_PSTRAT_BIGFIRST
#include <mips64/vmparam.h>
#endif /* _MACHINE_VMPARAM_H_ */... | /* $OpenBSD: vmparam.h,v 1.4 2014/03/27 21:58:13 miod Exp $ */
/* public domain */
#ifndef _MACHINE_VMPARAM_H_
#define _MACHINE_VMPARAM_H_
#define VM_PHYSSEG_MAX 3 /* Max number of physical memory segments */
#define VM_PHYSSEG_STRAT VM_PSTRAT_BIGFIRST
#include <mips64/vmparam.h>
#endif /* _MACHINE_VMPARAM_H_ */
| Increase VM_PHYSSEG_MAX, necessary for systems with non-contiguous memory (such as 2E and 3A systems). | Increase VM_PHYSSEG_MAX, necessary for systems with non-contiguous memory
(such as 2E and 3A systems).
| C | isc | orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars |
b191b25f364aa679173756114884231b4314eb24 | tests/file_utils_tests.c | tests/file_utils_tests.c | #include "minunit.h"
#include <terror/file_utils.h>
#include <assert.h>
char *test_getlines()
{
bstring str = bfromcstr("one\ntwo\nthree\nfour\nfive\n");
struct bstrList *file = bsplit(str, '\n');
DArray *lines = getlines(file, 2, 4);
mu_assert(DArray_count(lines) == 3, "Wrong number of lines.");
mu_assert... | #include "minunit.h"
#include <terror/file_utils.h>
#include <assert.h>
char *test_getlines()
{
bstring str = bfromcstr("one\ntwo\nthree\nfour\nfive\n");
struct bstrList *file = bsplit(str, '\n');
DArray *lines = getlines(file, 2, 4);
bstring two = bfromcstr("two");
bstring three = bfromcstr("three");
bs... | Make file utils tests valgrind-kosher | Make file utils tests valgrind-kosher
| C | mit | txus/terrorvm,txus/terrorvm,txus/terrorvm,txus/terrorvm |
4d2173704ae6884eaab3e9f702fb910bfb84c30d | base/scoped_handle.h | base/scoped_handle.h | // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BASE_SCOPED_HANDLE_H_
#define BASE_SCOPED_HANDLE_H_
#include "base/basictypes.h"
#if defined(OS_WIN)
#include "base/scoped_handle_win.h... | // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BASE_SCOPED_HANDLE_H_
#define BASE_SCOPED_HANDLE_H_
#include <stdio.h>
#include "base/basictypes.h"
#if defined(OS_WIN)
#include "base... | Add stdio to this file becasue we use FILE. | Add stdio to this file becasue we use FILE.
It starts failing with FILE, identifier not found, when
you remove the include for logging.h, which is included
in scoped_handle_win.h
Review URL: http://codereview.chromium.org/16461
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@7441 0039d316-1c4b-4281-b951-d872f20... | C | bsd-3-clause | adobe/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,adobe/chromium,Crystal... |
118fccc561b32dd8d7396786402b9035bd667b32 | libpolyml/basicio.h | libpolyml/basicio.h | /*
Title: Basic IO.
Copyright (c) 2000 David C. J. Matthews
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option)... | /*
Title: Basic IO.
Copyright (c) 2000 David C. J. Matthews
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option)... | Remove process_may_block since it's no longer used except in xwindows.cpp. | Remove process_may_block since it's no longer used except in xwindows.cpp.
git-svn-id: 98787b36aaefbae4b30fa755be920954cd25e1e4@548 ae7d391e-3f74-4a2b-a0db-a8776840fd2a
| C | lgpl-2.1 | mn200/polyml,mn200/polyml,dcjm/polyml,dcjm/polyml,polyml/polyml,polyml/polyml,dcjm/polyml,mn200/polyml,polyml/polyml,dcjm/polyml,polyml/polyml,mn200/polyml |
0090ec7cb0d38cc29bf18b31c31a142e8f199f33 | include/effects/SkStippleMaskFilter.h | include/effects/SkStippleMaskFilter.h | /*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkStippleMaskFilter_DEFINED
#define SkStippleMaskFilter_DEFINED
#include "SkMaskFilter.h"
/**
* Simple MaskFilter that creates a screen door stipple pattern
*/
cla... | /*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkStippleMaskFilter_DEFINED
#define SkStippleMaskFilter_DEFINED
#include "SkMaskFilter.h"
/**
* Simple MaskFilter that creates a screen door stipple pattern
*/
cla... | Fix for compiler error in r4154 | Fix for compiler error in r4154
git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@4155 2bbb7eff-a529-9590-31e7-b0007b416f81
| C | bsd-3-clause | geekboxzone/mmallow_external_skia,geekboxzone/lollipop_external_skia,Igalia/skia,CyanogenMod/android_external_chromium_org_third_party_skia,android-ia/platform_external_chromium_org_third_party_skia,Fusion-Rom/external_chromium_org_third_party_skia,MIPS/external-chromium_org-third_party-skia,android-ia/platform_externa... |
349ac725570cd5913fcc967e7f9abdc3a81ee6e9 | priv/qcmainthreadrunner.h | priv/qcmainthreadrunner.h | #ifndef QCMAINTHREADRUNNER_H
#define QCMAINTHREADRUNNER_H
#include <QObject>
#include <QVariant>
#include <QEVent>
#include <QCoreApplication>
class QCMainThreadRunner
{
public:
/// Run a function on main thread. If it is already in main thread, it will be executed in next tick.
template <typename F>
st... | #ifndef QCMAINTHREADRUNNER_H
#define QCMAINTHREADRUNNER_H
#include <QObject>
#include <QCoreApplication>
class QCMainThreadRunner
{
public:
/// Run a function on main thread. If it is already in main thread, it will be executed in next tick.
template <typename F>
static void start(F func) {
QObj... | Fix build issue for Linux | Fix build issue for Linux
| C | apache-2.0 | benlau/quickcross,benlau/quickcross,benlau/quickcross |
ad7d535ac60d0d3a2e43c72a5c9c41efd62fedb1 | tests/test_collisions.h | tests/test_collisions.h | #ifndef TEST_COLLISIONS_H
#define TEST_COLLISIONS_H
#include <kaztest/kaztest.h>
#include "spindash/spindash.h"
#include "spindash/collision/collide.h"
#include "spindash/collision/ray_box.h"
const SDVec2 box_points[] = {
{ -5, -5 },
{ 5, -5 },
{ 5, 0 },
{ -5, 0 }
};
class CollisionGeomTest : public... | #ifndef TEST_COLLISIONS_H
#define TEST_COLLISIONS_H
#include <kaztest/kaztest.h>
#include "spindash/spindash.h"
#include "spindash/collision/collide.h"
#include "spindash/collision/ray_box.h"
#include "spindash/collision/box.h"
const SDVec2 box_points[] = {
{ -5, -5 },
{ 5, -5 },
{ 5, 0 },
{ -5, 0 }
... | Add a missing header from one of the tests | Add a missing header from one of the tests
| C | bsd-2-clause | Kazade/Spindash |
235b1753f48c8a22cb79e3115b637f179c3e1e8b | src/initiation/transport/sipauthentication.h | src/initiation/transport/sipauthentication.h | #pragma once
#include "initiation/sipmessageprocessor.h"
#include "initiation/siptypes.h"
/* This class handles the authentication for this connection
* should we receive a challenge */
class SIPAuthentication : public SIPMessageProcessor
{
Q_OBJECT
public:
SIPAuthentication();
public slots:
// add credent... | #pragma once
#include "initiation/sipmessageprocessor.h"
#include "initiation/siptypes.h"
/* This class handles the authentication for this connection
* should we receive a challenge */
class SIPAuthentication : public SIPMessageProcessor
{
Q_OBJECT
public:
SIPAuthentication();
public slots:
// add credent... | Remove TODO. Tested common credentials, didn't work. | cosmetic(Transport): Remove TODO. Tested common credentials, didn't work.
| C | isc | ultravideo/kvazzup,ultravideo/kvazzup |
553faa1fcfc6a119959a66371ea355899dd8efd8 | src/compat/deinompi.h | src/compat/deinompi.h | #ifndef PyMPI_COMPAT_DEINOMPI_H
#define PyMPI_COMPAT_DEINOMPI_H
/* ---------------------------------------------------------------- */
static int PyMPI_DEINOMPI_argc = 0;
static char **PyMPI_DEINOMPI_argv = 0;
static char *PyMPI_DEINOMPI_args[2] = {0, 0};
static void PyMPI_DEINOMPI_FixArgs(int **argc, char... | #ifndef PyMPI_COMPAT_DEINOMPI_H
#define PyMPI_COMPAT_DEINOMPI_H
#endif /* !PyMPI_COMPAT_DEINOMPI_H */
| Remove hackery for DeinoMPI, release 1.1.0 seems to work just fine | Remove hackery for DeinoMPI, release 1.1.0 seems to work just fine | C | bsd-2-clause | pressel/mpi4py,mpi4py/mpi4py,pressel/mpi4py,mpi4py/mpi4py,mpi4py/mpi4py,pressel/mpi4py,pressel/mpi4py |
778fbd48981675b0a10383efe169e397153e81d6 | tests/regression/01-cpa/72-library-function-pointer.c | tests/regression/01-cpa/72-library-function-pointer.c | #include <fcntl.h>
#include <unistd.h>
typedef void (*fnct_ptr)(void);
typedef int (*open_t)(const char*,int,int);
typedef int (*ftruncate_t)(int,off_t);
// Goblint used to crash on this example because the number of supplied arguments for myopen is bigger than
// than the expected number of arguments for the library... | #include <fcntl.h>
#include <unistd.h>
typedef void (*fnct_ptr)(void);
typedef int (*open_t)(const char*,int,...);
typedef int (*ftruncate_t)(int,off_t);
// Goblint used to crash on this example because the number of supplied arguments for myopen is bigger than
// than the expected number of arguments for the library... | Add WARN annotations and explanations to test, expand it with one case. | Add WARN annotations and explanations to test, expand it with one case.
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
92a488818e157ed14631b9b0467e102556b64242 | src/Console.h | src/Console.h | #ifndef CONSOLE_H
#define CONSOLE_H
#include <Cart.h>
#include <Controller.h>
#include <CPU.h>
#include <PPU.h>
#include <APU.h>
class Divider {
public:
void setInterval(int interval) {
this->interval = interval;
clockCounter = interval - 1;
}
void tick() {
clockCounter++;
if (clockCounter == interval... | #ifndef CONSOLE_H
#define CONSOLE_H
#include <Cart.h>
#include <Controller.h>
#include <CPU.h>
#include <PPU.h>
#include <APU.h>
class Divider {
public:
Divider(int interval = 1) {
setInterval(interval);
}
void setInterval(int interval) {
this->interval = interval;
clockCounter = interval - 1;
}
... | Add divider constructor with interval default argument | Add divider constructor with interval default argument
| C | mit | scottjcrouch/ScootNES,scottjcrouch/ScootNES,scottjcrouch/ScootNES |
76086d7eeb3e13f384c6b9bf84d3c30a3de246f9 | src/utils.h | src/utils.h | /**
* @file utils.h
* @brief Storj utilities.
*
* Helper utilities
*/
#ifndef STORJ_UTILS_H
#define STORJ_UTILS_H
#include <assert.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#ifdef _WIN32
#include <windows.h>
#else
#include <sys/time.h>
#endif
int hex2str... | /**
* @file utils.h
* @brief Storj utilities.
*
* Helper utilities
*/
#ifndef STORJ_UTILS_H
#define STORJ_UTILS_H
#include <assert.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#ifdef _WIN32
#include <windows.h>
#include <time.h>
#else
#include <sys/time.h>
#... | Fix implicit declaration of function ‘time’ | Fix implicit declaration of function ‘time’
| C | lgpl-2.1 | braydonf/libstorj,Storj/libstorj-c,aleitner/libstorj-c,braydonf/libstorj-c,aleitner/libstorj-c,Storj/libstorj-c,braydonf/libstorj-c,braydonf/libstorj |
bfff95e5e5b548a976340ca405991c61662c104f | src/bitwise.h | src/bitwise.h | #pragma once
#include "definitions.h"
#include "util/log.h"
inline u16 compose_bytes(const u8 high, const u8 low) {
return (high << 8) + low;
}
inline bool check_bit(const u8 value, const int bit) {
return (value & (1 << bit)) != 0;
}
inline u8 set_bit(const u8 value, const int bit) {
return value | (1 ... | #pragma once
#include "definitions.h"
#include "util/log.h"
inline u16 compose_bytes(const u8 high, const u8 low) {
return static_cast<u16>((high << 8) + low);
}
inline bool check_bit(const u8 value, const u8 bit) {
return (value & (1 << bit)) != 0;
}
inline u8 set_bit(const u8 value, const u8 bit) {
au... | Make conversions between integer sizes explicit | Make conversions between integer sizes explicit
| C | bsd-3-clause | jgilchrist/emulator,jgilchrist/emulator,jgilchrist/emulator |
cf4ff469b193f6972cad1b6821ef99d51091e05a | test/Driver/hello.c | test/Driver/hello.c | // RUN: %clang -ccc-echo -o %t %s 2> %t.log
// Make sure we used clang.
// RUN: grep 'clang" -cc1 .*hello.c' %t.log
// RUN: %t > %t.out
// RUN: grep "I'm a little driver, short and stout." %t.out
// FIXME: We don't have a usable assembler on Windows, so we can't build real
// apps yet.
// XFAIL: win32
#include <std... | // RUN: %clang -ccc-echo -o %t %s 2> %t.log
// Make sure we used clang.
// RUN: grep 'clang\(-[0-9.]\+\)\?" -cc1 .*hello.c' %t.log
// RUN: %t > %t.out
// RUN: grep "I'm a little driver, short and stout." %t.out
// FIXME: We don't have a usable assembler on Windows, so we can't build real
// apps yet.
// XFAIL: win32... | Fix this test case for CMake builds after r126502, which sneakily changed the actual executable name to clang-<version>. | Fix this test case for CMake builds after r126502, which sneakily changed the actual executable name to clang-<version>.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@126560 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,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
452bc34d386c7158c042e2059b6a020ddd4a7e7f | include/kiste/kiste.h | include/kiste/kiste.h | #ifndef KISS_TEMPLATES_KISTE_H
#define KISS_TEMPLATES_KISTE_H
#include <kiste/terminal.h>
#include <kiste/raw.h>
namespace kiste
{
struct terminal_t
{
};
constexpr auto terminal = terminal_t{};
struct raw
{
std::ostream& _os;
template <typename T>
auto operator()(T&& t) const -> void
{
... | #ifndef KISS_TEMPLATES_KISTE_H
#define KISS_TEMPLATES_KISTE_H
#include <kiste/terminal.h>
#include <kiste/raw.h>
#endif
| Remove types left over from header split | Remove types left over from header split | C | bsd-2-clause | rbock/kiss-templates,AndiDog/kiss-templates,rbock/kiss-templates,AndiDog/kiss-templates,AndiDog/kiss-templates,rbock/kiss-templates |
21b8bddea55ff726108990263ee30072fcaa9d19 | include/llvm/CodeGen/MachineFunctionAnalysis.h | include/llvm/CodeGen/MachineFunctionAnalysis.h | //===-- MachineFunctionAnalysis.h - Owner of MachineFunctions ----*-C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- MachineFunctionAnalysis.h - Owner of MachineFunctions ----*-C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Revert 88957. This file uses CodeGenOpt, which is defined in TargetMachine.h. | Revert 88957. This file uses CodeGenOpt, which is defined in TargetMachine.h.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@88959 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,apple/swi... |
272fd3b28f5ebbf20ccf39c511744cb682056434 | drivers/scsi/qla4xxx/ql4_version.h | drivers/scsi/qla4xxx/ql4_version.h | /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.04.00-k0"
| /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.04.00-k1"
| Update driver version to 5.04.00-k1 | [SCSI] qla4xxx: Update driver version to 5.04.00-k1
Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com>
Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs |
1f0d489fdca7b9cd511ce4e4060389a6e4b41e43 | include/problems/0001-0050/Problem15.h | include/problems/0001-0050/Problem15.h | //===-- problems/Problem15.h ------------------------------------*- C++ -*-===//
//
// ProjectEuler.net solutions by Will Mitchell
//
// This file is distributed under the MIT License. See LICENSE for details.
//
//===----------------------------------------------------------------------===//
///
/// \file
/// \brief P... | //===-- problems/Problem15.h ------------------------------------*- C++ -*-===//
//
// ProjectEuler.net solutions by Will Mitchell
//
// This file is distributed under the MIT License. See LICENSE for details.
//
//===----------------------------------------------------------------------===//
///
/// \file
/// \brief P... | Remove extraneous method in Problem 15 | Remove extraneous method in Problem 15
| C | mit | wtmitchell/challenge_problems,wtmitchell/challenge_problems,wtmitchell/challenge_problems |
bcb11829bab091c0e2c8ea4de42cc03aa5359f0c | src/plugins/qmldesigner/components/formeditor/abstractcustomtool.h | src/plugins/qmldesigner/components/formeditor/abstractcustomtool.h | #ifndef QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H
#define QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H
#include "abstractformeditortool.h"
namespace QmlDesigner {
class QMLDESIGNERCORE_EXPORT AbstractCustomTool : public QmlDesigner::AbstractFormEditorTool
{
public:
AbstractCustomTool();
void selectedItemsChang... | #ifndef QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H
#define QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H
#include "abstractformeditortool.h"
namespace QmlDesigner {
class QMLDESIGNERCORE_EXPORT AbstractCustomTool : public QmlDesigner::AbstractFormEditorTool
{
public:
AbstractCustomTool();
void selectedItemsChang... | Add name method to custom tools | QmlDesigner.FormEditor: Add name method to custom tools
Change-Id: Icabf454fc49444a5a88c1f5eb84847967f09078e
Reviewed-by: Thomas Hartmann <588ee739c05aab7547907becfd1420d2b7316069@digia.com>
| C | lgpl-2.1 | Distrotech/qtcreator,danimo/qt-creator,darksylinc/qt-creator,duythanhphan/qt-creator,colede/qtcreator,amyvmiwei/qt-creator,Distrotech/qtcreator,malikcjm/qtcreator,darksylinc/qt-creator,xianian/qt-creator,omniacreator/qtcreator,xianian/qt-creator,martyone/sailfish-qtcreator,danimo/qt-creator,AltarBeastiful/qt-creator,om... |
7683806ea3a16e14e8b7c0c9878f5211b4c8baa5 | lib/CodeGen/Spiller.h | lib/CodeGen/Spiller.h | //===-- llvm/CodeGen/Spiller.h - Spiller -*- C++ -*------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- llvm/CodeGen/Spiller.h - Spiller -*- C++ -*------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix to compile on VS2008. | Fix to compile on VS2008.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@72112 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,... |
24f4d30135007cb729223094e0855c65cf7025f5 | include/config/SkUserConfigManual.h | include/config/SkUserConfigManual.h | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkUserConfigManual_DEFINED
#define SkUserConfigManual_DEFINED
#define GR_TEST_UTILS 1
#define SK_BUILD_FOR_ANDROID_FRAMEWORK
#define SK_DEFAULT_FONT_CACHE_LIMIT ... | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkUserConfigManual_DEFINED
#define SkUserConfigManual_DEFINED
#define GR_TEST_UTILS 1
#define SK_BUILD_FOR_ANDROID_FRAMEWORK
#define SK_DEFAULT_FONT_CACHE_LIMIT ... | Remove SK_LEGACY_HEIF_API to enable animation in SkHeifCodec | Remove SK_LEGACY_HEIF_API to enable animation in SkHeifCodec
bug: 78868457
bug: 120414514
test: local test with OpenGL Rendrerer Tests animation
demo and heifs files
Change-Id: I09a7667a57f545927dbe9ac24c1a6b405ff0006d
| C | bsd-3-clause | aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-... |
22da76be1ee64120f69ed35d6f21c85c31df08b6 | sky/shell/android/platform_view_android.h | sky/shell/android/platform_view_android.h | // Copyright 2015 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 SKY_SHELL_PLATFORM_VIEW_ANDROID_H_
#define SKY_SHELL_PLATFORM_VIEW_ANDROID_H_
#include "sky/shell/platform_view.h"
struct ANativeWindow;
namesp... | // Copyright 2015 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 SKY_SHELL_PLATFORM_VIEW_ANDROID_H_
#define SKY_SHELL_PLATFORM_VIEW_ANDROID_H_
#include "sky/shell/platform_view.h"
struct ANativeWindow;
namesp... | Stop SkyShell from crashing on startup | Stop SkyShell from crashing on startup
R=chinmaygarde@google.com
Review URL: https://codereview.chromium.org/1178773002.
| C | bsd-3-clause | afandria/mojo,chinmaygarde/mojo,jianglu/mojo,afandria/mojo,jianglu/mojo,chinmaygarde/mojo,chinmaygarde/mojo,jianglu/mojo,chinmaygarde/mojo,afandria/mojo,afandria/mojo,chinmaygarde/mojo,jianglu/mojo,jianglu/mojo,afandria/mojo,afandria/mojo,chinmaygarde/mojo,jianglu/mojo,chinmaygarde/mojo,afandria/mojo,jianglu/mojo,chinm... |
e850f2a6f16480dd37ac1c1b9ac4285bcd9fff7c | ext/osl/rbosl_move.h | ext/osl/rbosl_move.h | #include "ruby.h"
#include <osl/move.h>
extern VALUE cMove;
using namespace osl;
void rb_move_free(Move* ptr);
static VALUE rb_move_s_new(VALUE self);
void Init_move(void);
| #ifndef RBOSL_MOVE_H
#define RBOSL_MOVE_H
#include "ruby.h"
#include <osl/move.h>
extern VALUE cMove;
using namespace osl;
void rb_move_free(Move* ptr);
static VALUE rb_move_s_new(VALUE self);
void Init_move(void);
#endif /* RBOSL_MOVE_H */
| Add a missing include guard | Add a missing include guard
| C | mit | myokoym/ruby-osl,myokoym/ruby-osl,myokoym/ruby-osl |
fc94e16df9496ee6a8d12ed8476a545150526480 | src/condor_includes/condor_fix_unistd.h | src/condor_includes/condor_fix_unistd.h | #ifndef FIX_UNISTD_H
#define FIX_UNISTD_H
#include <unistd.h>
/*
For some reason the g++ include files on Ultrix 4.3 fail to provide
these prototypes, even though the Ultrix 4.2 versions did...
*/
#if defined(ULTRIX43)
#if defined(__cplusplus)
extern "C" {
#endif
#if defined(__STDC__) || defined(__cplusplus)
... | #ifndef FIX_UNISTD_H
#define FIX_UNISTD_H
#include <unistd.h>
/*
For some reason the g++ include files on Ultrix 4.3 fail to provide
these prototypes, even though the Ultrix 4.2 versions did...
Once again, OSF1 also chokes, unless _AES_SOURCE(?) is defined JCP
*/
#if defined(ULTRIX43) || defined(OSF1)
#if def... | Add OSF/1 to a pre-existing conditional compilation switch. | Add OSF/1 to a pre-existing conditional compilation switch.
| C | apache-2.0 | htcondor/htcondor,htcondor/htcondor,neurodebian/htcondor,zhangzhehust/htcondor,clalancette/condor-dcloud,htcondor/htcondor,mambelli/osg-bosco-marco,bbockelm/condor-network-accounting,mambelli/osg-bosco-marco,clalancette/condor-dcloud,mambelli/osg-bosco-marco,neurodebian/htcondor,djw8605/condor,mambelli/osg-bosco-marco,... |
063b55a1ac04addc0989efb15d41d2232e5353da | OrbitGl/GraphTrack.h | OrbitGl/GraphTrack.h | // Copyright (c) 2020 The Orbit 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 ORBIT_GL_GRAPH_TRACK_H
#define ORBIT_GL_GRAPH_TRACK_H
#include <limits>
#include "ScopeTimer.h"
#include "Track.h"
class TimeGraph;
class Gra... | // Copyright (c) 2020 The Orbit 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 ORBIT_GL_GRAPH_TRACK_H
#define ORBIT_GL_GRAPH_TRACK_H
#include <limits>
#include "ScopeTimer.h"
#include "Track.h"
class TimeGraph;
class Gra... | Use numeric_limits<double>::lowest instead of numeric_limits<double>::min | Use numeric_limits<double>::lowest instead of numeric_limits<double>::min
| C | bsd-2-clause | google/orbit,google/orbit,google/orbit,google/orbit |
af9dfccab1d126811fe6cab3f141a65b41884c6d | ports/raspberrypi/boards/qtpy_rp2040/mpconfigboard.h | ports/raspberrypi/boards/qtpy_rp2040/mpconfigboard.h | #define MICROPY_HW_BOARD_NAME "Adafruit QTPy RP2040"
#define MICROPY_HW_MCU_NAME "rp2040"
#define MICROPY_HW_NEOPIXEL (&pin_GPIO12)
#define DEFAULT_I2C_BUS_SCL (&pin_GPIO25)
#define DEFAULT_I2C_BUS_SDA (&pin_GPIO24)
#define DEFAULT_SPI_BUS_SCK (&pin_GPIO6)
#define DEFAULT_SPI_BUS_MOSI (&pin_GPIO3)
#define DEFAULT_SP... | #define MICROPY_HW_BOARD_NAME "Adafruit QTPy RP2040"
#define MICROPY_HW_MCU_NAME "rp2040"
#define MICROPY_HW_NEOPIXEL (&pin_GPIO12)
#define DEFAULT_I2C_BUS_SCL (&pin_GPIO25)
#define DEFAULT_I2C_BUS_SDA (&pin_GPIO24)
#define DEFAULT_SPI_BUS_SCK (&pin_GPIO6)
#define DEFAULT_SPI_BUS_MOSI (&pin_GPIO3)
#define DEFAULT_SP... | Update QT Py flash size | Update QT Py flash size | C | mit | adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython |
0bd7dc36ef978a11bfe9a4c4d2a19f53e933a7c4 | src/linux/epoll/peer_testing.h | src/linux/epoll/peer_testing.h | #ifndef CJET_PEER_TESTING_H
#define CJET_PEER_TESTING_H
#ifdef TESTING
#ifdef __cplusplus
extern "C" {
#endif
int fake_read(int fd, void *buf, size_t count);
int fake_send(int fd, void *buf, size_t count, int flags);
int fake_writev(int fd, const struct iovec *iov, int iovcnt);
#ifdef __cplusplus
}
#endif
#define ... | #ifndef CJET_PEER_TESTING_H
#define CJET_PEER_TESTING_H
#ifdef TESTING
#include <sys/uio.h>
#ifdef __cplusplus
extern "C" {
#endif
int fake_read(int fd, void *buf, size_t count);
int fake_send(int fd, void *buf, size_t count, int flags);
int fake_writev(int fd, const struct iovec *iov, int iovcnt);
#ifdef __cplusp... | Add include to provide type struct iovec. | Add include to provide type struct iovec.
| C | mit | gatzka/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,mloy/cjet,gatzka/cjet |
82c12a3cec5c2351c2a114ee62f1d61dd57f4253 | src/openboardview/imgui_impl_sdl_gles2.h | src/openboardview/imgui_impl_sdl_gles2.h | // ImGui SDL2 binding with OpenGL ES 2
// You can copy and use unmodified imgui_impl_* files in your project.
// If you use this binding you'll need to call 4 functions: ImGui_ImplXXXX_Init(), ImGui_ImplXXXX_NewFrame(), ImGui::Render() and
// ImGui_ImplXXXX_Shutdown().
// See main.cpp for an example of using this.
// h... | // ImGui SDL2 binding with OpenGL ES 2
// You can copy and use unmodified imgui_impl_* files in your project.
// If you use this binding you'll need to call 4 functions: ImGui_ImplXXXX_Init(), ImGui_ImplXXXX_NewFrame(), ImGui::Render() and
// ImGui_ImplXXXX_Shutdown().
// See main.cpp for an example of using this.
// h... | Fix imgui include path in GLES renderer | Fix imgui include path in GLES renderer
| C | mit | chloridite/OpenBoardView,chloridite/OpenBoardView |
bd2ff3914c51693544eecbc477b505c7366d3cb3 | Source/Regex.h | Source/Regex.h | // Copyright © 2015 Outware Mobile. All rights reserved.
#import <Foundation/Foundation.h>
FOUNDATION_EXPORT double RegexVersionNumber;
FOUNDATION_EXPORT const unsigned char RegexVersionString[];
| #import <Foundation/Foundation.h>
FOUNDATION_EXPORT double RegexVersionNumber;
FOUNDATION_EXPORT const unsigned char RegexVersionString[];
| Remove an invalid copyright notice | Remove an invalid copyright notice
| C | mit | sharplet/Regex,sclukey/Regex,sclukey/Regex,sharplet/Regex,sharplet/Regex |
9136fc058781cf31b7b045765be1202681eb6a0d | src/asynchronous_loader/file_loader.h | src/asynchronous_loader/file_loader.h | // Copyright 2015 Google Inc. 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... | // Copyright 2015 Google Inc. 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... | Update Resource with latest changes to FPLBase. | Update Resource with latest changes to FPLBase.
AsyncAsset had some changes to virtual functions, so Resource,
which inherits from it, needs to be updated.
Tested on Linux.
Change-Id: Ic12854c7d24a04f0049673fa1df6e96a6d68aa15
| C | apache-2.0 | google/pindrop,google/pindrop,google/pindrop |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.