commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
09a58883475fd838d56775181592d1abf3e9e453 | 3RVX/MeterWnd/Animation.h | 3RVX/MeterWnd/Animation.h | #pragma once
#include "MeterWnd.h"
class Animation {
public:
Animation(MeterWnd &meterWnd) :
_meterWnd(meterWnd) {
}
virtual bool Animate() = 0;
virtual void Reset() = 0;
protected:
MeterWnd &_meterWnd;
}; | Add new abstract animation class | Add new abstract animation class
| C | bsd-2-clause | Soulflare3/3RVX,malensek/3RVX,Soulflare3/3RVX,malensek/3RVX,Soulflare3/3RVX,malensek/3RVX | |
a21685eab417189d887db6d5a83bfff83661c1eb | gui/mainwindow.h | gui/mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private:
Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
| #pragma once
#include <QMainWindow>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private:
Ui::MainWindow *ui;
};
| Use pragma once instead of ifdef | Use pragma once instead of ifdef
| C | bsd-2-clause | csete/softrig,csete/softrig,csete/softrig |
28756936d56729331733a17a2f750969a8713ece | ports/broadcom/boards/raspberrypi_zero2w/mpconfigboard.h | ports/broadcom/boards/raspberrypi_zero2w/mpconfigboard.h | #define MICROPY_HW_BOARD_NAME "Raspberry Pi Zero 2W"
#define DEFAULT_I2C_BUS_SCL (&pin_GPIO3)
#define DEFAULT_I2C_BUS_SDA (&pin_GPIO2)
#define CIRCUITPY_CONSOLE_UART_TX (&pin_GPIO14)
#define CIRCUITPY_CONSOLE_UART_RX (&pin_GPIO15)
| #define MICROPY_HW_BOARD_NAME "Raspberry Pi Zero 2W"
#define DEFAULT_I2C_BUS_SCL (&pin_GPIO3)
#define DEFAULT_I2C_BUS_SDA (&pin_GPIO2)
#define MICROPY_HW_LED_STATUS (&pin_GPIO29)
#define CIRCUITPY_CONSOLE_UART_TX (&pin_GPIO14)
#define CIRCUITPY_CONSOLE_UART_RX (&pin_GPIO15)
| Add HW_LED_STATUS pin to Zero 2W board | Add HW_LED_STATUS pin to Zero 2W board | C | mit | adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython |
73069b2287eb0d7c14508e158683463e496f19a6 | kernel/kabort.c | kernel/kabort.c | #include "kputs.c"
void abort(void)
{
// TODO: Add proper kernel panic.
kputs("Kernel Panic! abort()\n");
while ( 1 ) { }
}
| #ifndef KABORT_C
#define KABORT_C
#include "kputs.c"
void kabort(void)
{
// TODO: Add proper kernel panic.
kputs("Kernel Panic! abort()\n");
while ( 1 ) { }
}
#endif
| Add header guards. Properly name function. | Add header guards. Properly name function.
| C | mit | Herbstein/kernel-of-truth,awensaunders/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,Herbstein/kernel-of-truth,Herbstein/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,awensaunders/kernel-of-truth,awensaunders/kernel-of-truth |
62f40124d763af49bf9ef8f03ba23db2818b771f | src/voglcore/vogl_warnings.h | src/voglcore/vogl_warnings.h | /**************************************************************************
*
* Copyright 2013-2014 RAD Game Tools and Valve Software
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to d... | Add GCC diagnostic warning macros | Add GCC diagnostic warning macros
| C | mit | ValveSoftware/vogl,bclemetsonblizzard/vogl,kingtaurus/vogl,kingtaurus/vogl,bclemetsonblizzard/vogl,kingtaurus/vogl,ValveSoftware/vogl,ValveSoftware/vogl,bclemetsonblizzard/vogl,kingtaurus/vogl,bclemetsonblizzard/vogl,ValveSoftware/vogl,bclemetsonblizzard/vogl | |
f1540aa94ffea5a5a241e69cfb317c6361421f03 | src/replace_format_ptr.c | src/replace_format_ptr.c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* replace_format_ptr.c :+: :+: :+: ... | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* replace_format_ptr.c :+: :+: :+: ... | Fix format ptr from unsigned int to unsigned long | Fix format ptr from unsigned int to unsigned long
| C | mit | jlagneau/libftprintf,jlagneau/libftprintf |
9a779b1446afdf1f4b6d1b8ba598ffb329edccb3 | Labs/Lab3/lab3_skeleton.c | Labs/Lab3/lab3_skeleton.c | /* Based on msp430g2xx3_wdt_02.c from the TI Examples */
#include <msp430.h>
int main(void)
{
WDTCTL = WDT_ADLY_250; // WDT 250ms, ACLK, interval timer
IE1 |= WDTIE; // Enable WDT interrupt
P1DIR |= BIT0; // Set P1.0 to outp... | /* Based on msp430g2xx3_wdt_02.c from the TI Examples */
#include <msp430.h>
int main(void)
{
BCSCTL3 |= LFXT1S_2; // ACLK = VLO
WDTCTL = WDT_ADLY_250; // WDT 250ms, ACLK, interval timer
IE1 |= WDTIE; // Enable WDT interrupt
... | Update lab3 skeleton code to properly source ACLK from VLO | Update lab3 skeleton code to properly source ACLK from VLO
| C | mit | ckemere/ELEC327,ckemere/ELEC327,ckemere/ELEC327,ckemere/ELEC327,ckemere/ELEC327 |
9204bf4660feeb3acbc0de2500698adcfdfbd521 | include/arch/x64/isr.h | include/arch/x64/isr.h | #pragma once
extern void _service_interrupt(void);
extern void isr0(void);
extern void isr1(void);
extern void isr2(void);
extern void isr3(void);
extern void isr4(void);
extern void isr5(void);
extern void isr6(void);
extern void isr7(void);
extern void isr8(void);
extern void isr9(void);
extern void isr10(void);
ex... | #pragma once
extern void _service_interrupt(void);
typedef void (*isr_f)(void);
extern void isr0(void);
extern void isr1(void);
extern void isr2(void);
extern void isr3(void);
extern void isr4(void);
extern void isr5(void);
extern void isr6(void);
extern void isr7(void);
extern void isr8(void);
extern void isr9(void)... | Define convenient ISR function pointer type | Define convenient ISR function pointer type
| C | mit | iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth |
d4e57c88ba4f7d17d09b0f6287456c213a05c566 | tensorflow/core/grappler/optimizers/tfg_passes_builder.h | tensorflow/core/grappler/optimizers/tfg_passes_builder.h | /* Copyright 2022 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | /* Copyright 2022 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | Make function parameter names consistent between header and impl. | [tfg] Make function parameter names consistent between header and impl.
PiperOrigin-RevId: 446807976
| C | apache-2.0 | karllessard/tensorflow,yongtang/tensorflow,yongtang/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,paolodedios/tensorflow,paolodedios/tensorflow,karllessard/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,paolodedios/tensorflow,gautam185... |
0235bd2ec4410a7d4e3fd7ef4fc6d2ac98730f30 | src/adts/adts_display.h | src/adts/adts_display.h | #pragma once
#include <sched.h> /* sched_getcpu() */
#include <stdio.h> /* printf() */
/**
**************************************************************************
* \brief
* preprocessor conditional printf formatter output
*
* \details
* Input arguments are equivalent to printf. referrence printf man... | #pragma once
#include <sched.h> /* sched_getcpu() */
#include <stdio.h> /* printf() */
/**
**************************************************************************
* \brief
* preprocessor conditional printf formatter output
*
* \details
* Input arguments are equivalent to printf. referrence printf man... | Add buffer overflow safety to CDISPLAY | Add buffer overflow safety to CDISPLAY
| C | mit | 78613/sample,78613/sample |
f9fab9d5c1d8a5711cc6d4a32e06a720958c24aa | cineio-broadcast-ios/cineio-broadcast-ios/CineConstants.h | cineio-broadcast-ios/cineio-broadcast-ios/CineConstants.h | #import <Foundation/Foundation.h>
#define API_VERSION "1"
#define BASE_URL "https://www.cine.io/api/"
#define SDK_VERSION "0.6.1"
#define USER_AGENT "cineio-ios"
extern NSString* const BaseUrl;
extern NSString* const UserAgent;
| #import <Foundation/Foundation.h>
#define API_VERSION "1"
#define BASE_URL "https://www.cine.io/api/"
#define SDK_VERSION "0.6.1"
#define USER_AGENT "cineio-ios"
extern NSString* const BaseUrl;
extern NSString* const UserAgent;
| Add line break after import | Add line break after import | C | mit | DisruptiveMind/cineio-broadcast-ios,cine-io/cineio-broadcast-ios,sanchosrancho/cineio-broadcast-ios,jrstv/jrstv-broadcast-ios,gouravd/cineio-broadcast-ios |
0ba1212867ef18e71a4f05ed19b6d0c89208e954 | cc1/arch/i386/arch.h | cc1/arch/i386/arch.h |
#define TINT long long
#define TUINT unsigned long long
#define TFLOAT double
#define L_SCHAR L_INT8
#define L_UCHAR L_UINT8
#define L_CHAR L_INT8
#define L_SHORT L_INT16
#define L_USHORT L_UINT16
#define L_INT L_INT32
#define L_UINT L_UINT32
#define L_LONG L_INT3... | Add support for i386 in cc1 | Add support for i386 in cc1
We only need to configure the types, and the rest of the code
will work without problems.
| C | mit | k0gaMSX/kcc,k0gaMSX/scc,8l/scc,8l/scc,k0gaMSX/kcc,k0gaMSX/scc,k0gaMSX/scc,8l/scc | |
a67eb4aed742365cd175540372e5f94ff82f998c | doc/tutorial_src/set_contents.c | doc/tutorial_src/set_contents.c | #include <cgreen/cgreen.h>
#include <cgreen/mocks.h>
void convert_to_uppercase(char *converted_string, const char *original_string) {
mock(converted_string, original_string);
}
Ensure(setting_content_of_out_parameter) {
expect(convert_to_uppercase,
when(original_string, is_equal_to_string("upper ca... | #include <cgreen/cgreen.h>
#include <cgreen/mocks.h>
void convert_to_uppercase(char *converted_string, const char *original_string) {
mock(converted_string, original_string);
}
Ensure(setting_content_of_out_parameter) {
expect(convert_to_uppercase,
when(original_string, is_equal_to_string("upper ca... | Fix error in example code | [doc][set_parameter] Fix error in example code
| C | isc | cgreen-devs/cgreen,cgreen-devs/cgreen,cgreen-devs/cgreen,cgreen-devs/cgreen,cgreen-devs/cgreen |
a0241bdf2645c1190a385faa685326f364bfc3c9 | elang/hir/instruction_visitor.h | elang/hir/instruction_visitor.h | // Copyright 2014-2015 Project Vogue. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ELANG_HIR_INSTRUCTION_VISITOR_H_
#define ELANG_HIR_INSTRUCTION_VISITOR_H_
#include "base/macros.h"
#include "elang/hir/instructions_forward.h"
nam... | // Copyright 2014-2015 Project Vogue. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ELANG_HIR_INSTRUCTION_VISITOR_H_
#define ELANG_HIR_INSTRUCTION_VISITOR_H_
#include "base/macros.h"
#include "elang/hir/hir_export.h"
#include "elan... | Add DLL export attribute to |hir::InstructionVisitor| to use it in compiler. | elang/hir: Add DLL export attribute to |hir::InstructionVisitor| to use it in compiler.
| C | apache-2.0 | eval1749/elang,eval1749/elang,eval1749/elang,eval1749/elang,eval1749/elang |
f354befe514c37daad8932e9c2c46e1efce38c58 | Classes/ObjectiveSugar.h | Classes/ObjectiveSugar.h | // C SUGAR
#define unless(condition) if(!(condition))
// OBJC SUGAR
#import "NSNumber+ObjectiveSugar.h"
#import "NSArray+ObjectiveSugar.h"
#import "NSMutableArray+ObjectiveSugar.h"
#import "NSDictionary+ObjectiveSugar.h"
#import "NSSet+ObjectiveSugar.h"
#import "NSString+ObjectiveSugar.h" | // C SUGAR
#define unless(condition) if(!(condition))
// OBJC SUGAR
#import "NSNumber+ObjectiveSugar.h"
#import "NSArray+ObjectiveSugar.h"
#import "NSMutableArray+ObjectiveSugar.h"
#import "NSDictionary+ObjectiveSugar.h"
#import "NSSet+ObjectiveSugar.h"
#import "NSString+ObjectiveSugar.h"
| Fix GCC_WARN_ABOUT_MISSING_NEWLINE in header file | Fix GCC_WARN_ABOUT_MISSING_NEWLINE in header file
| C | mit | Anish-kumar-dev/ObjectiveSugar,rizvve/ObjectiveSugar,orta/ObjectiveSugar,supermarin/ObjectiveSugar,gank0326/ObjectiveSugar,oarrabi/ObjectiveSugar,target/ObjectiveSugar,ManagerOrganization/ObjectiveSugar |
c87e619ae400b67537cee83894d25cbf25e777ba | tests/regression/30-fast_global_inits/03-performance.c | tests/regression/30-fast_global_inits/03-performance.c | // PARAM: --sets solver td3 --enable ana.int.interval --enable exp.partition-arrays.enabled --enable exp.fast_global_inits --set ana.activated "['base','expRelation','mallocWrapper']"
// Without fast_global_inits this takes >150s, when it is enabled < 0.1s
int global_array[50][500][20];
int main(void) {
for(int i ... | // PARAM: --sets solver td3 --enable ana.int.interval --enable exp.partition-arrays.enabled --enable exp.fast_global_inits --set ana.activated "['base','threadid','threadflag','expRelation','mallocWrapper']"
// Without fast_global_inits this takes >150s, when it is enabled < 0.1s
int global_array[50][500][20];
int m... | Fix 30/03 by adding threadid and threadflag analyses | Fix 30/03 by adding threadid and threadflag analyses
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
bf523de92bd31ded4cc8b3a071779fa38a166298 | test/Frontend/rewrite-includes-missing.c | test/Frontend/rewrite-includes-missing.c | // RUN: %clang_cc1 -verify -E -frewrite-includes %s -o - | FileCheck -strict-whitespace %s
#include "foobar.h" // expected-error {{'foobar.h' file not found}}
// CHECK: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
// CHECK-NEXT: {{^}}#include "foobar.h"
// CHECK-NEXT: {{^}}#endif /* expanded by -frewrite-inclu... | // RUN: %clang_cc1 -verify -E -frewrite-includes %s -o - | FileCheck -strict-whitespace %s
#include "foobar.h" // expected-error {{'foobar.h' file not found}}
// CHECK: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
// CHECK-NEXT: {{^}}#include "foobar.h"
// CHECK-NEXT: {{^}}#endif /* expanded by -frewrite-inclu... | Remove absolute path form include test. | Remove absolute path form include test.
Review feedback/bot failure from r158459 by Simon Atanasyan and Benjamin Kramer (on IRC).
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@158464 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
61ffbc5697130918aa600a031ab48ea76791acb9 | server/session_context.h | server/session_context.h | #ifndef __MESSAGES__MESSAGE_CONTEXT_H__
#define __MESSAGES__MESSAGE_CONTEXT_H__
#include "request_message.h"
#include "reply_message.h"
#include "backend.h"
namespace traffic {
class SessionContext : public RequestVisitor
{
private:
std::unique_ptr<ReplyMessage> _message;
DataProvider::ptr_t _data_provider;
prot... | #ifndef __MESSAGES__MESSAGE_CONTEXT_H__
#define __MESSAGES__MESSAGE_CONTEXT_H__
#include "request_message.h"
#include "reply_message.h"
#include "backend.h"
namespace traffic {
/**
* \brief This is the context for a request/reply session.
*
* This context is allocated for each request to process the data. It rep... | Add documentation to the SessionContext | Add documentation to the SessionContext
Signed-off-by: Jan Losinski <577c4104c61edf9f052c616c0c23e67bef4a9955@wh2.tu-dresden.de>
| C | bsd-3-clause | agdsn/traffic-service-server,agdsn/traffic-service-server |
416d6a4d4c78a068172d95c63d770616f25bc40d | src/term_printf.c | src/term_printf.c | // Print formatted output to the VGA terminal
#include "vga.h"
#include <stdarg.h>
void term_print_dec(int x)
{
int divisor = 1;
for (; divisor < x; divisor *= 10)
;
for (; divisor > 0; divisor /= 10)
term_putchar(((x / divisor) % 10) + '0');
}
void term_printf(const char *fmt, ...)
{
va_list arg... | // Print formatted output to the VGA terminal
#include "vga.h"
#include <stdarg.h>
static void term_print_dec(int x)
{
int divisor = 1;
for (; divisor <= x; divisor *= 10)
;
divisor /= 10;
for (; divisor > 0; divisor /= 10)
term_putchar(((x / divisor) % 10) + '0');
}
void term_printf(const char ... | Fix term_print_dec Would print a leading 0 if number wasn't a power of 10 | Fix term_print_dec
Would print a leading 0 if number wasn't a power of 10
| C | mit | orodley/studix,orodley/studix |
f48419666e645208c0156aecab1ee6157303da3c | arch/ppc/syslib/ibm_ocp.c | arch/ppc/syslib/ibm_ocp.c | #include <linux/module.h>
#include <asm/ocp.h>
struct ocp_sys_info_data ocp_sys_info = {
.opb_bus_freq = 50000000, /* OPB Bus Frequency (Hz) */
.ebc_bus_freq = 33333333, /* EBC Bus Frequency (Hz) */
};
EXPORT_SYMBOL(ocp_sys_info);
| #include <linux/module.h>
#include <asm/ibm4xx.h>
#include <asm/ocp.h>
struct ocp_sys_info_data ocp_sys_info = {
.opb_bus_freq = 50000000, /* OPB Bus Frequency (Hz) */
.ebc_bus_freq = 33333333, /* EBC Bus Frequency (Hz) */
};
EXPORT_SYMBOL(ocp_sys_info);
| Fix compile breakage for IBM/AMCC 4xx arch/ppc platforms | [POWERPC] Fix compile breakage for IBM/AMCC 4xx arch/ppc platforms
The IBM/AMCC 405 platforms don't compile anymore in the current
kernel version. This fixes the compile breakage.
Signed-off-by: Stefan Roese <44b7497c4bb5f3e8c071b12b7ece82766a88068d@denx.de>
Signed-off-by: Paul Mackerras <19a0ba370c443ba08d20b506158... | C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kana... |
ce5148894cbf4a465e2bc1158e8a4f8a729f6632 | test/PCH/va_arg.c | test/PCH/va_arg.c | // Test this without pch.
// RUN: clang-cc -triple=x86_64-unknown-freebsd7.0 -include %S/va_arg.h %s -emit-llvm -o - &&
// Test with pch.
// RUN: clang-cc -triple=x86_64-unknown-freebsd7.0 -o %t %S/va_arg.h &&
// RUN: clang-cc -triple=x86_64-unknown-freebsd7.0 -include-pch %t %s -emit-llvm -o -
char *g0(char** argv, ... | // Test this without pch.
// RUN: clang-cc -triple=x86_64-unknown-freebsd7.0 -include %S/va_arg.h %s -emit-llvm -o - &&
// Test with pch.
// RUN: clang-cc -triple=x86_64-unknown-freebsd7.0 -emit-pch -o %t %S/va_arg.h &&
// RUN: clang-cc -triple=x86_64-unknown-freebsd7.0 -include-pch %t %s -emit-llvm -o -
char *g0(cha... | Fix a problem with the RUN line of one of the PCH tests | Fix a problem with the RUN line of one of the PCH tests
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@70227 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl... |
e4bf49a203afcee266a24cd5b7b4c49944a74f3b | Modules/unicodedatabase.c | Modules/unicodedatabase.c | /* ------------------------------------------------------------------------
unicodedatabase -- The Unicode 3.0 data base.
Data was extracted from the Unicode 3.0 UnicodeData.txt file.
Written by Marc-Andre Lemburg (mal@lemburg.com).
Rewritten for Python 2.0 by Fredrik Lundh (fredrik@pythonware.com)
C... | /* ------------------------------------------------------------------------
unicodedatabase -- The Unicode 3.0 data base.
Data was extracted from the Unicode 3.0 UnicodeData.txt file.
Written by Marc-Andre Lemburg (mal@lemburg.com).
Rewritten for Python 2.0 by Fredrik Lundh (fredrik@pythonware.com)
C... | Fix header file usage so that NULL is defined. NULL is needed by unicodedata_db.h. | Fix header file usage so that NULL is defined. NULL is needed by
unicodedata_db.h.
| C | mit | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator |
05a117847b43d44f336bbf272a1063661431a5e5 | arch/sh/kernel/topology.c | arch/sh/kernel/topology.c | #include <linux/cpu.h>
#include <linux/cpumask.h>
#include <linux/init.h>
#include <linux/percpu.h>
#include <linux/node.h>
#include <linux/nodemask.h>
static DEFINE_PER_CPU(struct cpu, cpu_devices);
static int __init topology_init(void)
{
int i, ret;
#ifdef CONFIG_NEED_MULTIPLE_NODES
for_each_online_node(i)
reg... | /*
* arch/sh/kernel/topology.c
*
* Copyright (C) 2007 Paul Mundt
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*/
#include <linux/cpu.h>
#include <linux/cpumask.h>
#include <linux/init... | Fix up cpu to node mapping in sysfs. | sh: Fix up cpu to node mapping in sysfs.
Currently cpu_to_node() is always 0 in the UP case, though
we do want to have the CPU association linked in under sysfs
even in the cases where we're only on a single CPU.
Fix this up, so we have the cpu0 link on all of the available
nodes that don't already have a CPU link of... | C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_k... |
96355a918a22e53d0c2ae369aae77b2c7b4b276e | third_party/widevine/cdm/android/widevine_cdm_version.h | third_party/widevine/cdm/android/widevine_cdm_version.h | // Copyright (c) 2013 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 WIDEVINE_CDM_VERSION_H_
#define WIDEVINE_CDM_VERSION_H_
#include "third_party/widevine/cdm/widevine_cdm_common.h"
// Indicates that the Wide... | // Copyright (c) 2013 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 WIDEVINE_CDM_VERSION_H_
#define WIDEVINE_CDM_VERSION_H_
#include "third_party/widevine/cdm/widevine_cdm_common.h"
// Indicates that the Wide... | Remove obsolete defines from Android CDM file. | Remove obsolete defines from Android CDM file.
BUG=349185
Review URL: https://codereview.chromium.org/1000863003
Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#321407}
| C | bsd-3-clause | ltilve/chromium,Chilledheart/chromium,Chilledheart/chromium,fujunwei/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,fujunwei/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,fu... |
7653c016ce7556070ee9ffdb9466b5356500f7ed | include/sampleflow/consumers/count_samples.h | include/sampleflow/consumers/count_samples.h | // ---------------------------------------------------------------------
//
// Copyright (C) 2019 by the SampleFlow authors.
//
// This file is part of the SampleFlow library.
//
// The deal.II library is free software; you can use it, redistribute
// it, and/or modify it under the terms of the GNU Lesser General
// Pu... | Add a consumer that just counts samples. | Add a consumer that just counts samples.
| C | lgpl-2.1 | bangerth/mcmc | |
130935d333492d5cca8d508f4d28023dc0e2ed61 | MoleQueue/job.h | MoleQueue/job.h | /******************************************************************************
This source file is part of the MoleQueue project.
Copyright 2011 Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
distr... | /******************************************************************************
This source file is part of the MoleQueue project.
Copyright 2011 Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
distr... | Add documentation for the Job class | Add documentation for the Job class
| C | bsd-3-clause | OpenChemistry/molequeue,OpenChemistry/molequeue,OpenChemistry/molequeue |
b6170a2ec91bd2e15e17710c651f227adf1518c8 | SQGlobalMarco.h | SQGlobalMarco.h | //
// SQGlobalMarco.h
//
// Created by Shi Eric on 3/18/12.
// Copyright (c) 2012 Safe&Quick[http://www.saick.net]. All rights reserved.
//
#ifndef _SQGlobalMarco_h
#define _SQGlobalMarco_h
#define kMinOSVersion 4.0f
#define saferelease(foo) {if(foo != nil) {[foo release]; foo = nil;}}
#define isLandscape (UII... | //
// SQGlobalMarco.h
//
// Created by Shi Eric on 3/18/12.
// Copyright (c) 2012 Safe&Quick[http://www.saick.net]. All rights reserved.
//
#ifndef _SQGlobalMarco_h
#define _SQGlobalMarco_h
#define kMinOSVersion 4.0f
#define saferelease(foo) {if(foo != nil) {[foo release]; foo = nil;}}
#define isLandscape (UII... | Add kScreenSize and Radians to or from degrees | Add kScreenSize and Radians to or from degrees
| C | mit | shjborage/SQCommonUtils |
5ce8b438da24b7a2f2de771d9276a6a6789236a2 | include/core/SkSpinlock.h | include/core/SkSpinlock.h | /*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
// This file is not part of the public Skia API.
#ifndef SkSpinlock_DEFINED
#define SkSpinlock_DEFINED
#include "SkAtomics.h"
#define SK_DECLARE_STATIC_SPINLOCK(name) names... | /*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
// This file is not part of the public Skia API.
#ifndef SkSpinlock_DEFINED
#define SkSpinlock_DEFINED
#include "SkAtomics.h"
#define SK_DECLARE_STATIC_SPINLOCK(name) names... | Fix componene debug build failure in chromium | Fix componene debug build failure in chromium
The error log is as follows:
../../third_party/skia/include/core/SkSpinlock.h:24: error: undefined reference to 'SkPODSpinlock::contendedAcquire()'
collect2: error: ld returned 1 exit status
[mtklein added below here]
Despite the presence in include/ and the added SK_API,... | C | apache-2.0 | noselhq/skia,pcwalton/skia,qrealka/skia-hc,noselhq/skia,ominux/skia,tmpvar/skia.cc,todotodoo/skia,shahrzadmn/skia,noselhq/skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,google/skia,Hikari-no-Tenshi/android_external_skia,pcwalton/skia,Jichao/skia,rubenvb/skia,ominux/skia,aosp-mirror/platform_external_skia,tmpv... |
f98030b029edad449a75309546d7bf4803dfa750 | webrtc/common_video/interface/texture_video_frame.h | webrtc/common_video/interface/texture_video_frame.h | /*
* Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | Add intermediate TextureVideoFrame typedef for Chromium | Add intermediate TextureVideoFrame typedef for Chromium
BUG=1128
R=perkj@webrtc.org
TBR=stefan
Review URL: https://webrtc-codereview.appspot.com/42239004
Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#8630}
git-svn-id: 917f5d3ca488f358c4d40eaec14422cf392ccec9@8630 4adac7df-926f-26a2-2b94-8c16560cd09d... | C | bsd-3-clause | ShiftMediaProject/libilbc,TimothyGu/libilbc,TimothyGu/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc | |
bcc6e1e952df31d96efb7b0e0e1198e103d16b2b | PolyMapGenerator/Structure.h | PolyMapGenerator/Structure.h | #ifndef STRUCTURE_H
#define STRUCTURE_H
#include <vector>
#include "Math/Vector2.h"
enum class BiomeType
{
Snow,
Tundra,
Mountain,
Taiga,
Shrubland,
TemprateDesert,
TemprateRainForest,
TemprateDeciduousForest,
Grassland,
TropicalRainForest,
TropicalSeasonalForest,
SubtropicalDesert,
Ocean,
Lake,
Beach... | #ifndef STRUCTURE_H
#define STRUCTURE_H
#include <vector>
#include "Math/Vector2.h"
enum class BiomeType
{
Snow,
Tundra,
Mountain,
Taiga,
Shrubland,
TemprateDesert,
TemprateRainForest,
TemprateDeciduousForest,
Grassland,
TropicalRainForest,
TropicalSeasonalForest,
SubtropicalDesert,
Ocean,
Lake,
Beach... | Declare struct Center's member variables | Declare struct Center's member variables
| C | mit | utilForever/PolyMapGenerator |
f30001b81814882577a9ab1e34f64b4d240ca99a | lithos_c/inc/Lth_assert.h | lithos_c/inc/Lth_assert.h | //-----------------------------------------------------------------------------
//
// Copyright © 2016 Project Golan
//
// See "LICENSE" for more information.
//
//-----------------------------------------------------------------------------
//
// Assertions.
//
//-------------------------------------------------------... | //-----------------------------------------------------------------------------
//
// Copyright © 2016 Project Golan
//
// See "LICENSE" for more information.
//
//-----------------------------------------------------------------------------
//
// Assertions.
//
//-------------------------------------------------------... | Fix Lth_Assert not using stderr | assert: Fix Lth_Assert not using stderr
| C | mit | Project-Golan/LithOS3 |
3b9c212a5cbb1e13ced92639ce83f7a48b8b2331 | drivers/scsi/qla2xxx/qla_version.h | drivers/scsi/qla2xxx/qla_version.h | /*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2008 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
/*
* Driver version
*/
#define QLA2XXX_VERSION "8.03.01-k8"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 3
#define QLA_DRIVER_PATCH_VER 1
#define... | /*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2008 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
/*
* Driver version
*/
#define QLA2XXX_VERSION "8.03.01-k9"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 3
#define QLA_DRIVER_PATCH_VER 1
#define... | Update version number to 8.03.01-k9. | [SCSI] qla2xxx: Update version number to 8.03.01-k9.
Signed-off-by: Giridhar Malavali <799b6491fce2c7a80b5fedcf9a728560cc9eb954@qlogic.com>
Signed-off-by: James Bottomley <407b36959ca09543ccda8f8e06721c791bc53435@suse.de>
| C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_k... |
abe85e1caed9feb7bacd69e85eaa479e3f1020ab | freestanding/stdarg.h | freestanding/stdarg.h | #ifndef _STDARG_H
#define _STDARG_H
// As defined in the System V x86-64 ABI spec, in section 3.5.7
typedef struct {
unsigned int next_int_reg_offset;
unsigned int next_vector_reg_offset;
void *next_stack_arg;
void *register_save_area;
} va_list[1];
#define va_start(list, last_arg) __builtin_va_start(list)
#defin... | #ifndef _STDARG_H
#define _STDARG_H
// As defined in the System V x86-64 ABI spec, in section 3.5.7
typedef struct {
unsigned int next_int_reg_offset;
unsigned int next_vector_reg_offset;
void *next_stack_arg;
void *register_save_area;
} va_list[1];
#define va_start(list, last_arg) __builtin_va_start(list)
#defin... | Fix dumb bug in va_end. | Fix dumb bug in va_end.
This was never noticed because we don't actually use the argument to
va_end.
| C | mit | orodley/naive,orodley/naive,orodley/naive,orodley/naive |
8b432d0e483c84b22255cc3518423dcbca6c3270 | include/TextMetrics.h | include/TextMetrics.h | #ifndef _TEXTMETRICS_H_
#define _TEXTMETRICS_H_
namespace canvas {
class TextMetrics {
public:
TextMetrics() : width(0) { }
TextMetrics(float _width) : width(_width) { }
float width;
#if 0
float ideographicBaseline;
float alphabeticBaseline;
float hangingBaseline;
float emHeightDescen... | #ifndef _TEXTMETRICS_H_
#define _TEXTMETRICS_H_
namespace canvas {
class TextMetrics {
public:
TextMetrics() : width(0) { }
TextMetrics(float _width) : width(_width) { }
TextMetrics(float _width, float fontBoundingBoxDescent, float _fontBoundingBoxAscent) :
width(_width) fontBoundingBoxDescent(_fontBoundi... | Add fontBoundingDescent and Ascent and add constructor with them | Add fontBoundingDescent and Ascent and add constructor with them | C | mit | rekola/canvas,Sometrik/canvas,Sometrik/canvas,rekola/canvas |
44a05e70ec7310f90d053818a4f650b82e1512ee | include/ipc_ns.h | include/ipc_ns.h | #ifndef IPC_NS_H_
#define IPC_NS_H_
#include "crtools.h"
extern void show_ipc_ns(int fd);
extern int dump_ipc_ns(int ns_pid, struct cr_fdset *fdset);
extern int prepare_ipc_ns(int pid);
#endif /* IPC_NS_H_ */
| #ifndef CR_IPC_NS_H_
#define CR_IPC_NS_H_
#include "crtools.h"
extern void show_ipc_ns(int fd);
extern int dump_ipc_ns(int ns_pid, struct cr_fdset *fdset);
extern int prepare_ipc_ns(int pid);
#endif /* CR_IPC_NS_H_ */
| Add CR_ prefix to header defines | ips_ns.h: Add CR_ prefix to header defines
Reported-by: Stanislav Kinsbursky <43b28e187c4fe6e53d7ab0bb71957481e322f182@parallels.com>
Signed-off-by: Cyrill Gorcunov <7a1ea01eee6961eb1e372e3508c2670446d086f4@openvz.org>
| C | lgpl-2.1 | KKoukiou/criu-remote,tych0/criu,ldu4/criu,svloyso/criu,fbocharov/criu,AuthenticEshkinKot/criu,svloyso/criu,efiop/criu,efiop/criu,gonkulator/criu,AuthenticEshkinKot/criu,biddyweb/criu,KKoukiou/criu-remote,AuthenticEshkinKot/criu,rentzsch/criu,wtf42/criu,marcosnils/criu,AuthenticEshkinKot/criu,gonkulator/criu,gonkulator/... |
764632646a762e3ce9269676bf982b033d5d7785 | includes/Utils.h | includes/Utils.h | #ifndef UTILS_H
#define UTILS_H
class Utils {
public:
static const std::size_t CalculatePadding(const std::size_t offset, const std::size_t alignment) {
const std::size_t multiplier = (offset / alignment) + 1;
const std::size_t padding = (multiplier * alignment) - offset;
return padding;
}
};
#endif /* UTILS... | #ifndef UTILS_H
#define UTILS_H
class Utils {
public:
static const std::size_t CalculatePadding(const std::size_t baseAddress, const std::size_t alignment) {
const std::size_t multiplier = (baseAddress / alignment) + 1;
const std::size_t alignedAddress = multiplier * alignment;
const std::size_t padding = align... | Rename first parameter to baseAddres to avoid confusion | Rename first parameter to baseAddres to avoid confusion
| C | mit | mtrebi/memory-allocators |
c971b045e63517ceab1c26ca49a6e1ec436d92a8 | tails_files/securedrop_init.c | tails_files/securedrop_init.c | #include <unistd.h>
int main(int argc, char* argv) {
setuid(0);
// Use absolute path to the Python binary and execl to avoid $PATH or symlink trickery
execl("/usr/bin/python2.7", "python2.7", "/home/vagrant/tails_files/test.py", (char*)NULL);
return 0;
}
| #include <unistd.h>
int main(int argc, char* argv) {
setuid(0);
// Use absolute path to the Python binary and execl to avoid $PATH or symlink trickery
execl("/usr/bin/python2.7", "python2.7", "/home/amnesia/Persistent/.securedrop/securedrop_init.py", (char*)NULL);
return 0;
}
| Fix path in tails_files C wrapper | Fix path in tails_files C wrapper
| C | agpl-3.0 | jaseg/securedrop,jeann2013/securedrop,kelcecil/securedrop,jrosco/securedrop,ageis/securedrop,jrosco/securedrop,chadmiller/securedrop,GabeIsman/securedrop,jaseg/securedrop,pwplus/securedrop,GabeIsman/securedrop,harlo/securedrop,chadmiller/securedrop,heartsucker/securedrop,heartsucker/securedrop,jeann2013/securedrop,pwpl... |
8f74beb56f217b8a6e5307e6ca4d770e0b493d1f | modlib.c | modlib.c | #include "modlib.h"
uint16_t MODBUSSwapEndian( uint16_t Data )
{
//Change big-endian to little-endian and vice versa
uint8_t Swap;
//Create 2 bytes long union
union Conversion
{
uint16_t Data;
uint8_t Bytes[2];
} Conversion;
//Swap bytes
Conversion.Data = Data;
Swap = C... | #include "modlib.h"
uint16_t MODBUSSwapEndian( uint16_t Data )
{
//Change big-endian to little-endian and vice versa
uint8_t Swap;
//Create 2 bytes long union
union Conversion
{
uint16_t Data;
uint8_t Bytes[2];
} Conversion;
//Swap bytes
Conversion.Data = Data;
Swap = C... | Fix types in CRC16 function | Fix types in CRC16 function
| C | mit | Jacajack/modlib |
dd9f4d4919164ce842502ece64583f13df8cc737 | src/vast/actor.h | src/vast/actor.h | #ifndef VAST_ACTOR_H
#define VAST_ACTOR_H
#include <cppa/event_based_actor.hpp>
#include "vast/logger.h"
namespace vast {
namespace exit {
constexpr uint32_t done = cppa::exit_reason::user_defined;
constexpr uint32_t stop = cppa::exit_reason::user_defined + 1;
constexpr uint32_t error = cppa::exit_reason::user... | #ifndef VAST_ACTOR_H
#define VAST_ACTOR_H
#include <cppa/event_based_actor.hpp>
#include "vast/logger.h"
namespace vast {
namespace exit {
constexpr uint32_t done = cppa::exit_reason::user_defined;
constexpr uint32_t stop = cppa::exit_reason::user_defined + 1;
constexpr uint32_t error = cppa::exit_reason::user... | Exit with error on missing behavior. | Exit with error on missing behavior.
| C | bsd-3-clause | pmos69/vast,mavam/vast,mavam/vast,vast-io/vast,pmos69/vast,vast-io/vast,pmos69/vast,vast-io/vast,pmos69/vast,mavam/vast,mavam/vast,vast-io/vast,vast-io/vast |
46583bb05fa9d59060b3254f4a7621ed5464761a | stats.c | stats.c | #ifdef ENABLE_STATS
#include <stdio.h>
#include <sys/resource.h>
static size_t stats_peek_rss()
{
struct rusage rusage;
getrusage( RUSAGE_SELF, &rusage );
return (size_t) (rusage.ru_maxrss * 1024L);
}
__attribute__((destructor))
void _print_stats(void)
{
size_t rss = stats_peek_rss();
printf("Maximum RSS: ... | Add function to read peek rss usage. | Add function to read peek rss usage.
| C | mit | chaoran/fibril,chaoran/fibril,chaoran/fibril | |
45e5572b7dbf3c53cbb85e48c30c5019653aa6a1 | src/BlynkSimpleWiFiNINA.h | src/BlynkSimpleWiFiNINA.h | /**
* @file BlynkSimpleWiFiNINA.h
* @author Volodymyr Shymanskyy
* @license This project is released under the MIT License (MIT)
* @copyright Copyright (c) 2018 Volodymyr Shymanskyy
* @date Sep 2018
* @brief
*
*/
#ifndef BlynkSimpleWiFiNINA_h
#define BlynkSimpleWiFiNINA_h
#ifndef BLYNK_INF... | Add WiFiNINA, Arduino MKR WiFi 1010 support | Add WiFiNINA, Arduino MKR WiFi 1010 support
| C | mit | blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library | |
b5583121378597058f8f083243d2299fd262e509 | webkit/glue/plugins/ppb_private.h | webkit/glue/plugins/ppb_private.h | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_
#define WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_
#include "ppapi/c/pp_var.h"
#define PPB_PRIVATE_INTERFACE "PPB... | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_
#define WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_
#include "third_party/ppapi/c/pp_var.h"
#define PPB_PRIVATE_IN... | Add third_party/ prefix to ppapi include for checkdeps. | Add third_party/ prefix to ppapi include for checkdeps.
The only users of this ppb should be inside chrome so this should work fine.
TBR=jam@chromium.org
Review URL: http://codereview.chromium.org/3019006
git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@52766 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
| C | bsd-3-clause | wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser |
bb824d72ab4db6bef2562f6129e6742f6fcbfc7d | src/gui/qxtfilterdialog_p.h | src/gui/qxtfilterdialog_p.h | #ifndef QXTFILTERDIALOG_P_H_INCLUDED
#define QXTFILTERDIALOG_P_H_INCLUDED
#include <QObject>
#include <QModelIndex>
#include <QRegExp>
#include <QPointer>
#include "qxtpimpl.h"
class QxtFilterDialog;
class QAbstractItemModel;
class QTreeView;
class QSortFilterProxyModel;
class QLineEdit;
class QCheckBox... | #ifndef QXTFILTERDIALOG_P_H_INCLUDED
#define QXTFILTERDIALOG_P_H_INCLUDED
#include <QObject>
#include <QModelIndex>
#include <QRegExp>
#include <QPointer>
#include "qxtpimpl.h"
class QxtFilterDialog;
class QAbstractItemModel;
class QTreeView;
class QSortFilterProxyModel;
class QLineEdit;
class QCheckBox;
class QCombo... | Fix bad fileformat (was DOS without a final line terminator) | Fix bad fileformat (was DOS without a final line terminator)
| C | bsd-3-clause | hrobeers/qxtweb-qt5,hrobeers/qxtweb-qt5,hrobeers/qxtweb-qt5,mmitkevich/libqxt,mmitkevich/libqxt,mmitkevich/libqxt,hrobeers/qxtweb-qt5,mmitkevich/libqxt,hrobeers/qxtweb-qt5 |
4dfe89bbf3a6f56e3eb3c5991036a6027d627543 | indexer/config.h | indexer/config.h | //#define DEBUG_INDEXER
#define MAX_CORPUS_FILE_SZ (1024 * 8)
| //#define DEBUG_INDEXER
#define MAX_CORPUS_FILE_SZ (1024 * 1024 * 16)
| Increase corpus buffer to 16MB | Increase corpus buffer to 16MB
| C | mit | yzhan018/the-day-after-tomorrow,t-k-/the-day-after-tomorrow,approach0/search-engine,approach0/search-engine,yzhan018/the-day-after-tomorrow,yzhan018/the-day-after-tomorrow,t-k-/the-day-after-tomorrow,approach0/search-engine,approach0/search-engine,yzhan018/the-day-after-tomorrow,t-k-/the-day-after-tomorrow,t-k-/the-day... |
28b213cfe02713b8a0a986cb5f6efb3058dacb5f | TMEVSIM/TMevSimConverter.h | TMEVSIM/TMevSimConverter.h | #ifndef ROOT_TMevSimConverter
#define ROOT_TMevSimConverter
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
/* $Id$ */
#include "TObject.h"
class TMevSimConverter : public TObject {
enum {kMaxParticles = 35... | #ifndef ROOT_TMevSimConverter
#define ROOT_TMevSimConverter
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
/* $Id$ */
#include "TObject.h"
class TMevSimConverter : public TObject {
enum {kMaxParticles = 35... | Initialize fNPDGcodes to 0 to prevent sigsegv (Christian) | Initialize fNPDGcodes to 0 to prevent sigsegv (Christian)
| C | bsd-3-clause | coppedis/AliRoot,ALICEHLT/AliRoot,alisw/AliRoot,coppedis/AliRoot,shahor02/AliRoot,mkrzewic/AliRoot,ALICEHLT/AliRoot,ALICEHLT/AliRoot,shahor02/AliRoot,shahor02/AliRoot,alisw/AliRoot,mkrzewic/AliRoot,shahor02/AliRoot,ecalvovi/AliRoot,coppedis/AliRoot,mkrzewic/AliRoot,mkrzewic/AliRoot,ecalvovi/AliRoot,miranov25/AliRoot,sh... |
f86f4873e8aef4d54ea45abc70b5f45af204186a | fitz/stm_filter.c | fitz/stm_filter.c | #include "fitz_base.h"
#include "fitz_stream.h"
fz_error
fz_process(fz_filter *f, fz_buffer *in, fz_buffer *out)
{
fz_error reason;
unsigned char *oldrp;
unsigned char *oldwp;
assert(!out->eof);
oldrp = in->rp;
oldwp = out->wp;
if (f->done)
return fz_iodone;
reason = f->process(f, in, out);
assert(i... | #include "fitz_base.h"
#include "fitz_stream.h"
fz_error
fz_process(fz_filter *f, fz_buffer *in, fz_buffer *out)
{
fz_error reason;
unsigned char *oldrp;
unsigned char *oldwp;
oldrp = in->rp;
oldwp = out->wp;
if (f->done)
return fz_iodone;
assert(!out->eof);
reason = f->process(f, in, out);
assert(i... | Move assert test of EOF to after testing if a filter is done. | Move assert test of EOF to after testing if a filter is done.
| C | agpl-3.0 | tophyr/mupdf,PuzzleFlow/mupdf,derek-watson/mupdf,cgogolin/penandpdf,ArtifexSoftware/mupdf,asbloomf/mupdf,lamemate/mupdf,lolo32/mupdf-mirror,lolo32/mupdf-mirror,loungeup/mupdf,knielsen/mupdf,kobolabs/mupdf,asbloomf/mupdf,TamirEvan/mupdf,hjiayz/forkmupdf,hackqiang/mupdf,seagullua/MuPDF,MokiMobility/muPDF,nqv/mupdf,sebras... |
6c3a9502f0f9d5523102545bf344b5bc2e2bfeb9 | include/mpi-compat.h | include/mpi-compat.h | /* Author: Lisandro Dalcin */
/* Contact: dalcinl@gmail.com */
#ifndef MPI_COMPAT_H
#define MPI_COMPAT_H
#include <mpi.h>
#if (MPI_VERSION < 3) && !defined(PyMPI_HAVE_MPI_Message)
typedef void *PyMPI_MPI_Message;
#define MPI_Message PyMPI_MPI_Message
#endif
#endif/*MPI_COMPAT_H*/
| /* Author: Lisandro Dalcin */
/* Contact: dalcinl@gmail.com */
#ifndef MPI_COMPAT_H
#define MPI_COMPAT_H
#include <mpi.h>
#if (MPI_VERSION < 3) && !defined(PyMPI_HAVE_MPI_Message)
typedef void *PyMPI_MPI_Message;
#define MPI_Message PyMPI_MPI_Message
#endif
#if (MPI_VERSION < 4) && !defined(PyMPI_HAVE_MPI_Sessio... | Define MPI_Session for compatibility with current mpi4py main branch | Define MPI_Session for compatibility with current mpi4py main branch
| C | mit | Unidata/netcdf4-python,Unidata/netcdf4-python,Unidata/netcdf4-python |
66be7388475932a5a2425e3bfd7ffc57f70dcd1c | tests/regression/13-privatized/66-mine-W-init.c | tests/regression/13-privatized/66-mine-W-init.c | #include <pthread.h>
#include <assert.h>
int g;
void *t_fun(void *arg) {
return NULL;
}
void main() {
pthread_t id;
pthread_create(&id, NULL, t_fun, NULL);
g = 1;
assert(g); // Mine's analysis would succeed, our mine-W doesn't
}
| #include <pthread.h>
#include <assert.h>
int g;
void *t_fun(void *arg) {
return NULL;
}
void main() {
pthread_t id;
pthread_create(&id, NULL, t_fun, NULL);
g = 1;
assert(g); // TODO (Mine's analysis would succeed, our mine-W doesn't)
}
| Mark Mine init privatization test TODO to make others pass | Mark Mine init privatization test TODO to make others pass
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
799188a34509000f87f139423a6ba52d93ee1f1d | test2/bitfields/init/pad_end.c | test2/bitfields/init/pad_end.c | // RUN: %layout_check %s
struct A
{
int : 0;
int a;
int : 0;
int b;
int : 0;
};
struct A a = { 1, 2 };
| // RUN: %layout_check %s
struct A
{
int : 0;
int a;
int : 0;
int : 0;
int : 0;
int : 0;
int b;
int : 0;
};
struct A a = { 1, 2 };
| Add more zero-width fields to bitfield padding test | Add more zero-width fields to bitfield padding test
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler |
b79d3efea5f31ee74a5960522b0552fc9b43dc43 | test/Parser/nullability.c | test/Parser/nullability.c | // RUN: %clang_cc1 -fsyntax-only -std=c99 -Wno-nullability-declspec -pedantic %s -verify
_Nonnull int *ptr; // expected-warning{{type nullability specifier '_Nonnull' is a Clang extension}}
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnullability-extension"
_Nonnull int *ptr2; // no-warning
#prag... | // RUN: %clang_cc1 -fsyntax-only -std=c99 -Wno-nullability-declspec -pedantic %s -verify
_Nonnull int *ptr; // expected-warning{{type nullability specifier '_Nonnull' is a Clang extension}}
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnullability-extension"
_Nonnull int *ptr2; // no-warning
#prag... | Fix a test case broken by my previous commit. | Fix a test case broken by my previous commit.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@240977 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,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,apple/swift-clang,apple/swift-cl... |
ca005fb4d05df5ba680b20566baf4fac515f4fe3 | Classes/Utility/Runtime/Objc/FLEXRuntimeSafety.h | Classes/Utility/Runtime/Objc/FLEXRuntimeSafety.h | //
// FLEXRuntimeSafety.h
// FLEX
//
// Created by Tanner on 3/25/17.
//
#import <Foundation/Foundation.h>
#import <objc/runtime.h>
#pragma mark - Classes
extern NSUInteger const kFLEXKnownUnsafeClassCount;
extern const Class * FLEXKnownUnsafeClassList(void);
extern NSSet * FLEXKnownUnsafeClassNames(void);
extern... | //
// FLEXRuntimeSafety.h
// FLEX
//
// Created by Tanner on 3/25/17.
//
#import <Foundation/Foundation.h>
#import <objc/runtime.h>
#pragma mark - Classes
extern NSUInteger const kFLEXKnownUnsafeClassCount;
extern const Class * FLEXKnownUnsafeClassList(void);
extern NSSet * FLEXKnownUnsafeClassNames(void);
extern... | Make FLEXClassIsSafe return NO for unknown root classes | Make FLEXClassIsSafe return NO for unknown root classes
| C | bsd-3-clause | NSExceptional/FLEX,NSExceptional/FLEX,Flipboard/FLEX,Flipboard/FLEX |
bf11d5ba74b8250248839cb48aad0840e9cfd357 | hswebkit.h | hswebkit.h | /*
* Copyright (C) 2009 Cjacker Huang <jzhuang@redflag-linux.com>.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any late... | /*
* Copyright (C) 2009 Cjacker Huang <jzhuang@redflag-linux.com>.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any late... | Fix CPP issue on OS X | Fix CPP issue on OS X
| C | lgpl-2.1 | gtk2hs/webkit,gtk2hs/webkit,gtk2hs/webkit |
437e9c5483751d62f8bbbbfb7a9f83b5888eada8 | src/plugins/airplay/net_utils.h | src/plugins/airplay/net_utils.h | #ifndef _NET_UTILS_H
#define _NET_UTILS_H
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <fcntl.h>
char *get_local_addr(int fd);
int set_sock_nonblock(int sockfd);
int tcp_open();
... | #ifndef _NET_UTILS_H
#define _NET_UTILS_H
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <fcntl.h>
char *get_local_addr(int fd);
int set_sock_nonblock(int sockfd);
int tcp_open(void... | Fix function prototype in airplay plugin. | OTHER: Fix function prototype in airplay plugin.
| C | lgpl-2.1 | mantaraya36/xmms2-mantaraya36,chrippa/xmms2,mantaraya36/xmms2-mantaraya36,xmms2/xmms2-stable,oneman/xmms2-oneman,theefer/xmms2,theeternalsw0rd/xmms2,mantaraya36/xmms2-mantaraya36,oneman/xmms2-oneman,dreamerc/xmms2,theeternalsw0rd/xmms2,oneman/xmms2-oneman,krad-radio/xmms2-krad,oneman/xmms2-oneman,theeternalsw0rd/xmms2,... |
7d08034b9e6805682c6bad0abe53b84312030196 | src/main.c | src/main.c | #include <stdlib.h>
#include <event2/event.h>
#include <event2/http.h>
static void time_request_cb(struct evhttp_request *req, void *arg)
{
(void) arg;
printf("Received request for %s\n", evhttp_request_get_uri(req));
evhttp_send_reply(req, 200, "OK", NULL);
}
int main(int argc, char **argv) {
struct... | #include <stdlib.h>
#include <time.h>
#include <event2/buffer.h>
#include <event2/event.h>
#include <event2/http.h>
static void time_request_cb(struct evhttp_request *req, void *arg)
{
(void) arg;
struct evbuffer *evb = evbuffer_new();
printf("Received request for %s\n", evhttp_request_get_uri(req));
... | Return local server time on request | Return local server time on request
| C | mit | sfod/HTTP-server |
63ed1676250ad8f8549716d60c8354ae800a12a3 | sys/i386/svr4/svr4_genassym.c | sys/i386/svr4/svr4_genassym.c | /* $FreeBSD$ */
/* Derived from: Id: linux_genassym.c,v 1.8 1998/07/29 15:50:41 bde Exp */
#include <sys/param.h>
#include <sys/assym.h>
#include <compat/svr4/svr4_signal.h>
#include <compat/svr4/svr4_ucontext.h>
/* XXX: This bit sucks rocks, but gets rid of compiler errors. Maybe I should
* fix the include files... | /* $FreeBSD$ */
/* Derived from: Id: linux_genassym.c,v 1.8 1998/07/29 15:50:41 bde Exp */
#include <sys/param.h>
#include <sys/assym.h>
#include <sys/systm.h>
#include <compat/svr4/svr4_signal.h>
#include <compat/svr4/svr4_ucontext.h>
/* XXX: This bit sucks rocks, but gets rid of compiler errors. Maybe I should
... | Include <sys/systm.h> for the definition of offsetof() instead of depending on the definition being misplaced in <sys/types.h>. The definition probably belongs in <sys/stddef.h>. | Include <sys/systm.h> for the definition of offsetof() instead of depending
on the definition being misplaced in <sys/types.h>. The definition probably
belongs in <sys/stddef.h>.
| C | bsd-3-clause | jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase |
dd78e0e41887642975af2fa9952aed4993c4565b | opencv_detector/src/lib/filter/background_extractor.h | opencv_detector/src/lib/filter/background_extractor.h | #pragma once
#include "types/process_filter.h"
namespace TooManyPeeps {
class BackgroundExtractor : public ProcessFilter {
private:
static const bool TRACK_SHADOWS = false;
private:
cv::Ptr<cv::BackgroundSubtractor> backgroundExtractor;
public:
BackgroundExtractor(const cv::Mat& or... | #pragma once
#include "types/process_filter.h"
namespace TooManyPeeps {
class BackgroundExtractor : public ProcessFilter {
private:
static const bool TRACK_SHADOWS = true;
private:
cv::Ptr<cv::BackgroundSubtractor> backgroundExtractor;
public:
BackgroundExtractor(const cv::Mat& ori... | Allow mog to track shadows | Allow mog to track shadows
| C | mit | 99-bugs/toomanypeeps,99-bugs/toomanypeeps,99-bugs/toomanypeeps |
9f0e132783fed48c41f762e8ec33388f6feb8784 | kjchess/kjchess.h | kjchess/kjchess.h | //
// kjchess.h
// kjchess
//
// Created by Kristopher Johnson on 3/11/17.
// Copyright © 2017 Kristopher Johnson. All rights reserved.
//
#import <Cocoa/Cocoa.h>
//! Project version number for kjchess.
FOUNDATION_EXPORT double kjchessVersionNumber;
//! Project version string for kjchess.
FOUNDATION_EXPORT const... | //
// kjchess.h
// kjchess
//
// Copyright © 2017 Kristopher Johnson. All rights reserved.
//
#import <Cocoa/Cocoa.h>
//! Project version number for kjchess.
FOUNDATION_EXPORT double kjchessVersionNumber;
//! Project version string for kjchess.
FOUNDATION_EXPORT const unsigned char kjchessVersionString[];
// In ... | Remove a "Created by" comment line | Remove a "Created by" comment line
| C | mit | kristopherjohnson/kjchess,kristopherjohnson/kjchess |
3efef59ae6fc987c6b05d677b91e0f30a694ccfa | lib/osx_cf_util.h | lib/osx_cf_util.h | void osx_cf_run_loop_run();
| void osx_cf_run_loop_run();
CFRunLoopRunResult osx_cf_run_loop_run_in_mode
(CFStringRef mode, CFTimeInterval seconds, Boolean returnAfterSourceHandled);
| Add run_in_mode prototype to util header | Add run_in_mode prototype to util header
| C | isc | dsheets/ocaml-osx-cf |
ac08fb9eb09123e22d33f513a7ed11e59f6df96d | internal.h | internal.h | /*****************************************************************************
* internal.h:
*****************************************************************************
* Copyright (C) 2010-2012 L-SMASH project
*
* Authors: Takashi Hirata <silverfilain@gmail.com>
*
* Permission to use, copy, modify, and/or di... | /*****************************************************************************
* internal.h:
*****************************************************************************
* Copyright (C) 2010-2012 L-SMASH project
*
* Authors: Takashi Hirata <silverfilain@gmail.com>
*
* Permission to use, copy, modify, and/or di... | Use ftello/fseeko instead of ftell/fseek | Use ftello/fseeko instead of ftell/fseek
On 32-bit systems, fseek returns a long, which is 32-bits, and
fseek takes its offset argument as a long, as well. In order
to return and use 64-bit offsets, use ftello and fseeko, along
which defining _FILE_OFFSET_BITS 64, which is already in osdep.h.
| C | isc | maki-rxrz/L-SMASH,silverfilain/L-SMASH,dwbuiten/l-smash,mstorsjo/l-smash,canbal/l-smash,canbal/l-smash,l-smash/l-smash,maki-rxrz/L-SMASH,silverfilain/L-SMASH,mstorsjo/l-smash,silverfilain/L-SMASH,l-smash/l-smash,l-smash/l-smash,dwbuiten/l-smash |
957004881ae4afbd1234f648b8419b5a2cde6434 | src/main.c | src/main.c | #include <stdio.h>
#include "main.h"
int main(int argc, char *argv[]) {
usage(argv[0]);
}
void usage(char *utilname) {
printf("Usage: %s <input_file> <output_file> [options]\n", utilname);
printf("WARNING: UTILITY IS NOT FULLY FUNCTIONAL YET\n");
printf("Options:\n");
//TODO: add optional arguments for each filt... | #include <stdio.h>
#include "main.h"
int main(int argc, char *argv[])
{
usage(argv[0]);
}
void usage(char *utilname)
{
printf("Usage: %s <input_file> <output_file> [options]\n", utilname);
printf("WARNING: UTILITY IS NOT FULLY FUNCTIONAL YET\n");
printf("Options:\n");
/* TODO: add optional arguments for each fil... | Convert to Linux kernel style | Convert to Linux kernel style
| C | mit | TheUnderscores/qfilt |
3735e6ade1f791994f7ee203feab3dbe233c3dad | src/main.h | src/main.h | #ifndef MAIN_H
#define MAIN_H
#include <cstdlib>
#include <iostream>
#include <tr1/unordered_map>
#include <vector>
#include <list>
#include <set>
#include <pthread.h>
#endif | #ifndef MAIN_H
#define MAIN_H
#include <unistd.h>
#include <cstdlib>
#include <iostream>
#include <tr1/unordered_map>
#include <vector>
#include <list>
#include <set>
#include <pthread.h>
#endif | Fix compile on some systems | Fix compile on some systems
| C | mit | ElementalAlchemist/RoBoBo,ElementalAlchemist/RoBoBo |
be070dc174759c8e71d6dac44a073af7a58e92b1 | lib/msun/src/s_nexttowardf.c | lib/msun/src/s_nexttowardf.c | /*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
... | Implement nexttowardf. This is used on both platforms with 11-bit exponents and platforms with 15-bit exponents for long doubles. | Implement nexttowardf. This is used on both platforms with 11-bit
exponents and platforms with 15-bit exponents for long doubles.
| C | bsd-3-clause | jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase | |
bed0662b1539b52075e0249894239ad4d17b9706 | src/drafterpy.c | src/drafterpy.c | #include <Python.h>
#include <drafter/drafter.h>
static PyObject *drafterpy_parse_blueprint_to(PyObject *self, PyObject *args){
char *blueprint;
char *format;
char *result = NULL;
drafter_options options;
options.sourcemap = true;
if(!PyArg_ParseTuple(args, "ss", &blueprint, &format))
... | Add C-API bindings with initial methods. It can verify a blueprint and parse it into json or yaml. | Add C-API bindings with initial methods.
It can verify a blueprint and parse it into json or yaml.
| C | mit | menecio/drafterpy,menecio/drafterpy | |
a9b6590ced1370537edad8dc60be32c044b2380e | include/asm-mips/mach-generic/dma-coherence.h | include/asm-mips/mach-generic/dma-coherence.h | /*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2006 Ralf Baechle <ralf@linux-mips.org>
*
*/
#ifndef __ASM_MACH_GENERIC_DMA_COHERENCE_H
#define __ASM_MACH_GENERIC_DMA_CO... | /*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2006 Ralf Baechle <ralf@linux-mips.org>
*
*/
#ifndef __ASM_MACH_GENERIC_DMA_COHERENCE_H
#define __ASM_MACH_GENERIC_DMA_CO... | Fix a bunch of warnings due to missing inline keywords. | [MIPS] DMA: Fix a bunch of warnings due to missing inline keywords.
Signed-off-by: Ralf Baechle <92f48d309cda194c8eda36aa8f9ae28c488fa208@linux-mips.org>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kana... |
ad299b8f040b9dfb07c466d2b7a770273d4d583d | lib/bits.h | lib/bits.h | // Copyright 2019 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... | Add matrix routines for multi-qubit gates. Add required file. | Add matrix routines for multi-qubit gates. Add required file.
| C | apache-2.0 | quantumlib/qsim,quantumlib/qsim,quantumlib/qsim,quantumlib/qsim | |
d9e17f30737a71df4ccc6b784f237a15484803f4 | libspell.h | libspell.h | #ifndef LIBSPELL_H
#define LIBSPELL_H
char *spell(sqlite3*, char *);
char *get_suggestions(char *);
#endif
| #ifndef LIBSPELL_H
#define LIBSPELL_H
char *spell(char *);
char *get_suggestions(char *);
#endif
| Remove sqlite3 * parameter from the spell function's declaration. | Remove sqlite3 * parameter from the spell function's declaration.
| C | bsd-2-clause | abhinav-upadhyay/spell,abhinav-upadhyay/spell |
003e6f400e495cbbae7ecf4aa908c37c78c7e15a | test/Driver/offloading-interoperability.c | test/Driver/offloading-interoperability.c | // REQUIRES: clang-driver
// REQUIRES: powerpc-registered-target
// REQUIRES: nvptx-registered-target
//
// Verify that CUDA device commands do not get OpenMP flags.
//
// RUN: %clang -### -x cuda -target powerpc64le-linux-gnu -std=c++11 --cuda-gpu-arch=sm_35 -fopenmp=libomp %s 2>&1 \
// RUN: | FileCheck %s --check-pr... | // REQUIRES: clang-driver
// REQUIRES: powerpc-registered-target
// REQUIRES: nvptx-registered-target
//
// Verify that CUDA device commands do not get OpenMP flags.
//
// RUN: %clang -no-canonical-prefixes -### -x cuda -target powerpc64le-linux-gnu -std=c++11 --cuda-gpu-arch=sm_35 -fopenmp=libomp %s 2>&1 \
// RUN: | ... | Add missing '-no-canonical-prefixes' in test. | Add missing '-no-canonical-prefixes' in test.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@277141 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl... |
f9b710224dadb8157a1cf76df91509db29946e0c | src/lib/array.h | src/lib/array.h | #pragma once
#include <cassert>
namespace Utilities {
namespace Array {
template <class T, class Size = unsigned int>
class Array {
public:
Array(T* data, Size capacity) : data_(data), capacity_(capacity) {
assert(data_);
assert(capacity_ > 0);
}
T& operator[](Size index) {
assert(index < capacity... | #pragma once
#include <cassert>
#include <functional>
namespace Utilities {
namespace Array {
template <class T, class Size = unsigned int>
class Array {
public:
Array(T*&& data, Size capacity, std::function<void(T**)>&& deleteData)
: data_(std::move(data)),
capacity_(capacity),
deleteData_(s... | Add ability for Array to take ownership of its data | Add ability for Array to take ownership of its data
| C | mit | dmorrill10/cpp_utilities |
9f5f289c8cfc25ee4faac85cb4d13ac0668723e7 | scene/Element.h | scene/Element.h | /*
* Represents an element which can be rendered as part of a scene.
* Author: Dino Wernli
*/
#ifndef ELEMENT_H_
#define ELEMENT_H_
#include <cstddef>
class IntersectionData;
class Ray;
class Element {
public:
virtual ~Element();
bool Intersect(const Ray& ray, IntersectionData* data = NULL) = 0;
};
#endif ... | /*
* Represents an element which can be rendered as part of a scene.
* Author: Dino Wernli
*/
#ifndef ELEMENT_H_
#define ELEMENT_H_
#include <cstddef>
class IntersectionData;
class Ray;
class Element {
public:
virtual ~Element();
virtual bool Intersect(const Ray& ray, IntersectionData* data = NULL) = 0;
};
... | Fix build failure by adding virtual keyword. | Fix build failure by adding virtual keyword.
| C | mit | dinowernli/raytracer,dinowernli/raytracer,dinowernli/raytracer,dinowernli/raytracer |
f25dddb1b73261e7829554b764178077f1e2ccd2 | AFNetworking/AFJSONUtilities.h | AFNetworking/AFJSONUtilities.h | // AFJSONUtilities.h
//
// Copyright (c) 2011 Gowalla (http://gowalla.com/)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights... | // AFJSONUtilities.h
//
// Copyright (c) 2011 Gowalla (http://gowalla.com/)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights... | Mark the AFJSON* functions as 'extern'. | Mark the AFJSON* functions as 'extern'.
| C | mit | skillz/AFNetworking |
5d31b2abeec8bb6247048e8371067b753ab3e8bf | test/Frontend/stdin-input.c | test/Frontend/stdin-input.c | // RUN: cat %s | %clang -emit-llvm -g -S \
// RUN: -Xclang -main-file-name -Xclang test/foo.c -x c - -o - | FileCheck %s
// CHECK: ; ModuleID = 'test/foo.c'
// CHECK: source_filename = "test/foo.c"
// CHECK: !1 = !DIFile(filename: "test/foo.c"
int main() {}
| // RUN: cat %s | %clang -emit-llvm -g -S \
// RUN: -Xclang -main-file-name -Xclang test/foo.c -x c - -o - | FileCheck %s
// CHECK: ; ModuleID = 'test/foo.c'
// CHECK: source_filename = "test/foo.c"
// CHECK: !DIFile(filename: "test/foo.c"
int main() {}
| Fix buildbot failure from r373217 (don't match metadata id exactly) | Fix buildbot failure from r373217 (don't match metadata id exactly)
Fix this failure by ignoring the id of the metadata being checked:
http://green.lab.llvm.org/green/job/clang-stage1-cmake-RA-incremental/3046/consoleFull#-21332887158254eaf0-7326-4999-85b0-388101f2d404
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa... | 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 |
e34bafc84fd5a61c8bb9aeba69d7b1ebf671f99b | ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_core.h | ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_core.h | // Copyright 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can
// be found in the LICENSE file.
#ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CORE_H_
#define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CORE_H_
#include "native_client/src/inclu... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CORE_H_
#define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CORE_H_
#include "native_client/src/i... | Declare PPB_Core as a struct, not a class. (Prevents Clang warning) | Declare PPB_Core as a struct, not a class. (Prevents Clang warning)
Review URL: http://codereview.chromium.org/8002017
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@102565 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | adobe/chromium,gavinp/chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,ropik/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,ad... |
9ece315eb7a01d212072acf474b6407956c7172e | src/main/entity/components/ComponentManager.h | src/main/entity/components/ComponentManager.h | #ifndef COMPONENTMANAGER_H_
#define COMPONENTMANAGER_H_
#include "entity/Entity.h"
/**
* Enumeration for each of our types of components
*/
enum component_t {
Position,
Render
};
/**
* Base class for all Component Managers.
*/
class ComponentManager
{
public:
/**
* Check if the given Entity has this mana... | #ifndef COMPONENTMANAGER_H_
#define COMPONENTMANAGER_H_
#include "entity/Entity.h"
/**
* Enumeration for each of our types of components
*/
enum component_t {
Position,
Sprite
};
/**
* Base class for all Component Managers.
*/
class ComponentManager
{
public:
/**
* Check if the given Entity has this mana... | Rename Render component to Sprite | Rename Render component to Sprite
The old name made no sense; the new isn't *entirely* accurate, though,
although neither is it entirely inaccurate.
| C | mit | Kromey/roglick |
406f4f8e9f92f92803f1efba52537866c1eed873 | pod_node.h | pod_node.h | #ifndef INCLUDE_POD_NODE_H
#define INCLUDE_POD_NODE_H
#include <stddef.h>
// A node is a place on a list. It simplifies doubly linked lists because the
// header is just another node. Everything in Pod is a node, potentially a
// part of a list or map. Header nodes should be initialized to point to
// themselves... | #ifndef INCLUDE_POD_NODE_H
#define INCLUDE_POD_NODE_H
#include <stddef.h>
// A node is a place on a list. It simplifies doubly linked lists because the
// header is just another node. Everything in Pod is a node, potentially a
// part of a list or map. Header nodes should be initialized to point to
// themselves... | Use "extern inline" in declarations (I think). | Use "extern inline" in declarations (I think).
| C | bsd-2-clause | jamesabanks/Pod |
b1038b1310b88206828d59030e19c1806755028e | include/joy/internal/seqrange.h | include/joy/internal/seqrange.h | /*!
* This file defines a Python-like range function for sequences.
*
* @author Louis Dionne
*/
#ifndef JOY_INTERNAL_SEQRANGE_H
#define JOY_INTERNAL_SEQRANGE_H
#include <chaos/preprocessor/recursion/expr.h>
#include <chaos/preprocessor/repetition/repeat_from_to.h>
#define JOY_SEQRANGE(from, to) \
JOY_SEQRAN... | Add a Python-like range macro for sequences. | Add a Python-like range macro for sequences.
| C | mit | ldionne/joy,ldionne/joy | |
53a441240ae0097d620e9717ee10d2205c1648e0 | src/util/Timeout.h | src/util/Timeout.h | #pragma once
#include <functional>
#include <boost/asio.hpp>
// This class abstracts the boost::asio timer in order to provide a generic
// facility for timeouts. Once constructed, this class will wait a certain
// amount of time and then call the function. The timeout must be canceled
// with cancel() before you inva... | #pragma once
#include <functional>
#include <atomic>
#include <memory>
#include <boost/asio.hpp>
// This class abstracts the boost::asio timer in order to provide a generic
// facility for timeouts. Once constructed, this class will wait a certain
// amount of time and then call the function. The timeout must be cance... | Add missing includes to fix Clang build. | util: Add missing includes to fix Clang build.
| C | bsd-3-clause | blindsighttf2/Astron,blindsighttf2/Astron,blindsighttf2/Astron,blindsighttf2/Astron |
78256b80780fb1a55effc03622e278df09bdb2b9 | src/policy/rbf.h | src/policy/rbf.h | // Copyright (c) 2016-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef SYSCOIN_POLICY_RBF_H
#define SYSCOIN_POLICY_RBF_H
#include <txmempool.h>
enum class RBFTransactionState {
UNKNO... | // Copyright (c) 2016-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef SYSCOIN_POLICY_RBF_H
#define SYSCOIN_POLICY_RBF_H
#include <txmempool.h>
/** The rbf state of unconfirmed transacti... | Add doxygen comment to IsRBFOptIn | doc: Add doxygen comment to IsRBFOptIn
Former-commit-id: 9d51bef94ec279947bd1d28bbbc917d476da2f6e | C | mit | syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin |
f4bccc820b62e91af8f9bee26516c28e10476810 | Source/Blu/Public/BluManager.h | Source/Blu/Public/BluManager.h | #pragma once
#if PLATFORM_WINDOWS
#include "AllowWindowsPlatformTypes.h"
#endif
#include "include/cef_client.h"
#include "include/cef_app.h"
#if PLATFORM_WINDOWS
#include "HideWindowsPlatformTypes.h"
#endif
class BLU_API BluManager : public CefApp
{
public:
BluManager();
static void doBluMessageLoop();
stat... | #pragma once
#if PLATFORM_WINDOWS
#include "AllowWindowsPlatformTypes.h"
#endif
#include "include/cef_client.h"
#include "include/cef_app.h"
#if PLATFORM_WINDOWS
#include "HideWindowsPlatformTypes.h"
#endif
class BLU_API BluManager : public CefApp
{
public:
BluManager();
static void doBluMessageLoop();
stat... | Allow user to pick render settings | Allow user to pick render settings
| C | mit | AaronShea/BLUI,AaronShea/BLUI,AaronShea/BLUI,bemon/BLUI,jgagner92/BLUI,brandonwamboldt/BLUI,jgagner92/BLUI,csfinch/BLUI,marcthenarc/BLUI,marcthenarc/BLUI,csfinch/BLUI,csfinch/BLUI,brandonwamboldt/BLUI,bemon/BLUI,brandonwamboldt/BLUI,jgagner92/BLUI,marcthenarc/BLUI,bemon/BLUI |
3b45e689708533c3f3ac61b831b8d8a238161ca2 | include/core/SkMilestone.h | include/core/SkMilestone.h | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 74
#endif
| /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 75
#endif
| Update Skia milestone to 75 | Update Skia milestone to 75
Bug: skia:
Change-Id: I5f682b3685eb68f36e36bf3581d068069af67ba4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/198604
Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
Commit-Queue: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.c... | C | bsd-3-clause | rubenvb/skia,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_external_skia,google/skia,HalCanary/skia-hc,HalCanary/skia-hc,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,rubenvb/skia,HalCanary/skia-hc,google/skia,HalCanary/skia-hc,HalCanary/skia-hc,HalCanary/skia-hc,HalCanary/skia-hc,... |
16c5392030f8f27d6b41395ccb45194cfbca79ed | tests/regression/13-privatized/32-traces-mine-vs-oplus-vs-meet.c | tests/regression/13-privatized/32-traces-mine-vs-oplus-vs-meet.c | #include <pthread.h>
#include <assert.h>
int g = 0;
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t C = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
pthread_mutex_lock(&A);
pthread_mutex_lock(&C);
pthread_mutex_lock(&B);
g = 5;
pthread_mut... | #include <pthread.h>
#include <assert.h>
int g = 0;
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t C = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
pthread_mutex_lock(&A);
pthread_mutex_lock(&C);
pthread_mutex_lock(&B);
g = 5;
pthread_mut... | Fix 13/32 to fail Mine even with thread ID partitioning | Fix 13/32 to fail Mine even with thread ID partitioning
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
b1fc4c2cd37d6ea015a016aa80514de1355b4664 | win32/PlatWin.h | win32/PlatWin.h | // Scintilla source code edit control
/** @file PlatWin.h
** Implementation of platform facilities on Windows.
**/
// Copyright 1998-2011 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
extern bool IsNT();
extern void Platform_Initi... | // Scintilla source code edit control
/** @file PlatWin.h
** Implementation of platform facilities on Windows.
**/
// Copyright 1998-2011 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
extern bool IsNT();
extern void Platform_Initi... | Allow choice of D2D on compiler command line. | Allow choice of D2D on compiler command line.
| C | isc | R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone |
cd6663b9bab8f725d1138946f1690e63ca440238 | include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h | include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h | //===-- UnifyMethodExitNodes.h - Ensure methods have one return --*- C++ -*--=//
//
// This pass is used to ensure that methods have at most one return instruction
// in them. It also holds onto the return instruction of the last unified
// method.
//
//===--------------------------------------------------------------... | //===-- UnifyMethodExitNodes.h - Ensure methods have one return --*- C++ -*--=//
//
// This pass is used to ensure that methods have at most one return instruction
// in them. It also holds onto the return instruction of the last unified
// method.
//
//===--------------------------------------------------------------... | Add constructor for addition to opt program | Add constructor for addition to opt program
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@1626 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llv... |
5564e6c45401c37adb9444b6bf0ef8ce70b1fce8 | test/Misc/dev-fd-fs.c | test/Misc/dev-fd-fs.c | // Check that we can operate on files from /dev/fd.
// REQUIRES: dev-fd-fs
// Check reading from named pipes. We cat the input here instead of redirecting
// it to ensure that /dev/fd/0 is a named pipe, not just a redirected file.
//
// RUN: cat %s | %clang -x c /dev/fd/0 -E > %t
// RUN: FileCheck --check-prefix DEV-... | // Check that we can operate on files from /dev/fd.
// REQUIRES: dev-fd-fs
// Check reading from named pipes. We cat the input here instead of redirecting
// it to ensure that /dev/fd/0 is a named pipe, not just a redirected file.
//
// RUN: cat %s | %clang -x c /dev/fd/0 -E > %t
// RUN: FileCheck --check-prefix DEV-... | Check that we can output to /dev/fd filesystem. | tests: Check that we can output to /dev/fd filesystem.
- An LLVM unique_file() bug could cause us to infinite loop on the later test
case.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@168082 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... |
478712e78ca63c1816adfdfc25ff323ab30df49d | src/quick_sort.h | src/quick_sort.h | // -*- mode: c++ -*-
// Copyright (c) 2014 Olaf Dietsche
#ifndef __quick_sort_h_included__
#define __quick_sort_h_included__
#include <functional>
#include <iterator>
#include <utility>
template<typename I, typename T, typename C> I quicksort_partition(I first, I last, C cmp)
{
--last;
T pivot = *last;
while (fir... | // -*- mode: c++ -*-
// Copyright (c) 2014 Olaf Dietsche
#ifndef __quick_sort_h_included__
#define __quick_sort_h_included__
#include <functional>
#include <iterator>
#include <utility>
template<typename I, typename T, typename C> I quicksort_partition(I first, I last, C cmp)
{
--last;
T pivot = *last;
while (fir... | Fix sort of second half | Fix sort of second half
| C | mit | olafdietsche/algorithms |
1f8ab6a78828996947893bef790d5fb7d24d8197 | src/bin/test_panel.c | src/bin/test_panel.c | #include <Elementary.h>
#ifndef ELM_LIB_QUICKLAUNCH
void
test_panel(void *data, Evas_Object *obj, void *event_info)
{
Evas_Object *win, *bg, *panel;
win = elm_win_add(NULL, "panel", ELM_WIN_BASIC);
elm_win_title_set(win, "Panel");
elm_win_autodel_set(win, 1);
bg = elm_bg_add(win);
elm_win_resize_... | #include <Elementary.h>
#ifndef ELM_LIB_QUICKLAUNCH
void
test_panel(void *data, Evas_Object *obj, void *event_info)
{
Evas_Object *win, *bg, *panel;
Evas_Object *list;
win = elm_win_add(NULL, "panel", ELM_WIN_BASIC);
elm_win_title_set(win, "Panel");
elm_win_autodel_set(win, 1);
bg = elm_bg_add(wi... | Add a genlist to the panel test. | Add a genlist to the panel test.
SVN revision: 43175
| C | lgpl-2.1 | FlorentRevest/Elementary,rvandegrift/elementary,tasn/elementary,tasn/elementary,FlorentRevest/Elementary,tasn/elementary,rvandegrift/elementary,rvandegrift/elementary,rvandegrift/elementary,tasn/elementary,tasn/elementary,FlorentRevest/Elementary,FlorentRevest/Elementary |
abbeadabe96f0d17430bff01e9d01643fa54ca82 | Classes/GTDiff.h | Classes/GTDiff.h | //
// GTDiff.h
// ObjectiveGitFramework
//
// Created by Danny Greg on 29/11/2012.
// Copyright (c) 2012 GitHub, Inc. All rights reserved.
//
#import "git2.h"
@class GTTree;
@interface GTDiff : NSObject
@property (nonatomic, readonly, assign) git_diff_list *git_diff_list;
+ (GTDiff *)diffOldTree:(GTTree *)oldT... | //
// GTDiff.h
// ObjectiveGitFramework
//
// Created by Danny Greg on 29/11/2012.
// Copyright (c) 2012 GitHub, Inc. All rights reserved.
//
#import "git2.h"
@class GTTree;
typedef enum : git_delta_t {
GTDiffFileDeltaUnmodified = GIT_DELTA_UNMODIFIED,
GTDiffFileDeltaAdded = GIT_DELTA_ADDED,
GTDiffFileDeltaDe... | Declare an enum for git_delta_t | Declare an enum for git_delta_t
| C | mit | phatblat/objective-git,c9s/objective-git,Acidburn0zzz/objective-git,dleehr/objective-git,tiennou/objective-git,libgit2/objective-git,misterfifths/objective-git,alehed/objective-git,blackpixel/objective-git,misterfifths/objective-git,c9s/objective-git,0x4a616e/objective-git,alehed/objective-git,TOMalley104/objective-git... |
162924dad528b4b475150405038f507876e1634d | composite.c | composite.c | #include "composite.h"
Image * compositeImage(Image *canvas, void *data, ExceptionInfo *ex)
{
CompositeData *d = data;
if (!CompositeImage(canvas, d->composite, d->draw, d->x, d->y)) {
}
return canvas;
}
| #include "composite.h"
Image * compositeImage(Image *canvas, void *data, ExceptionInfo *ex)
{
CompositeData *d = data;
if (!CompositeImage(canvas, d->composite, d->draw, d->x, d->y)) {
ex->severity = DrawError;
return NULL;
}
return canvas;
}
| Return an error if CompositeImage fails | Return an error if CompositeImage fails
| C | mit | etix/magick,rainycape/magick,zuriu/magick,zuriu/magick,500px/magick,500px/magick,rainycape/magick,zuriu/magick,500px/magick,etix/magick,etix/magick,rainycape/magick |
57113e9209a110d6ee9743b01f396f14016b13f6 | include/nbind/nbind.h | include/nbind/nbind.h | // This file is part of nbind, copyright (C) 2014-2016 BusFaster Ltd.
// Released under the MIT license, see LICENSE.
#pragma once
#define NBIND_MULTIMETHOD(name, args, ...) definer.overloaded args ().method(name, ## __VA_ARGS__)
#include "noconflict.h"
#define function NBIND_FUNCTION
#define multifunction NBIND_MU... | // This file is part of nbind, copyright (C) 2014-2016 BusFaster Ltd.
// Released under the MIT license, see LICENSE.
#pragma once
#define NBIND_MULTIMETHOD(name, args, ...) definer.overloaded args ().method(name, ## __VA_ARGS__)
#include "noconflict.h"
#define function NBIND_FUNCTION
#define multifunction NBIND_MU... | Fix build issue on Windows. | Fix build issue on Windows.
| C | mit | charto/nbind,charto/nbind,charto/nbind,charto/nbind,charto/nbind,charto/nbind |
b10f05e91dc5bd22105a4159e0ecf4f41f2d27f2 | vsprojects/dummy.c | vsprojects/dummy.c | /*
*
* Copyright 2015, Google Inc.
* 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 of condi... | /*
*
* Copyright 2015, Google Inc.
* 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 of condi... | Fix newline at end of file | Fix newline at end of file
| C | apache-2.0 | malexzx/grpc,jtattermusch/grpc,kpayson64/grpc,grani/grpc,goldenbull/grpc,nicolasnoble/grpc,msiedlarek/grpc,ppietrasa/grpc,ipylypiv/grpc,goldenbull/grpc,donnadionne/grpc,Crevil/grpc,ppietrasa/grpc,ctiller/grpc,nicolasnoble/grpc,makdharma/grpc,greasypizza/grpc,ctiller/grpc,philcleveland/grpc,soltanmm/grpc,podsvirov/grpc,... |
a84cee8127a0e9724b26e7d1d527f220c358c328 | util/cast_util.h | util/cast_util.h | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
namespace rocksdb {
// The helper function to assert the ... | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#pragma once
namespace rocksdb {
// The helper function ... | Add a missing "once" in .h | Add a missing "once" in .h
Summary: Closes https://github.com/facebook/rocksdb/pull/2670
Differential Revision: D5529018
Pulled By: siying
fbshipit-source-id: 10a378933d509035d2dbe502247dd85fcea09789
| C | bsd-3-clause | Andymic/rocksdb,Andymic/rocksdb,SunguckLee/RocksDB,bbiao/rocksdb,bbiao/rocksdb,bbiao/rocksdb,SunguckLee/RocksDB,SunguckLee/RocksDB,SunguckLee/RocksDB,bbiao/rocksdb,Andymic/rocksdb,bbiao/rocksdb,SunguckLee/RocksDB,bbiao/rocksdb,Andymic/rocksdb,bbiao/rocksdb,SunguckLee/RocksDB,bbiao/rocksdb,SunguckLee/RocksDB,Andymic/roc... |
ad7dfb9776553aefa94360bcf87032bea8a069fa | helpers.h | helpers.h | #ifndef _HELPERS_H
#define _HELPERS_H
#include <stdarg.h>
#include <stdio.h>
#include <stdint.h>
#define LENGTH(x) (sizeof(x) / sizeof(*x))
#define MAX(A, B) ((A) > (B) ? (A) : (B))
#define MIN(A, B) ((A) < (B) ? (A) : (B))
#define BOOLSTR(A) ((A) ? "true" : "false")
#define MAXLEN 25... | #ifndef _HELPERS_H
#define _HELPERS_H
#include <stdarg.h>
#include <stdio.h>
#include <stdint.h>
#define LENGTH(x) (sizeof(x) / sizeof(*x))
#define MAX(A, B) ((A) > (B) ? (A) : (B))
#define MIN(A, B) ((A) < (B) ? (A) : (B))
#define BOOLSTR(A) ((A) ? "true" : "false")
#define MAXLEN 25... | Address the non-portability of the PRINTF macro | Address the non-portability of the PRINTF macro
| C | bsd-2-clause | nfnty/bspwm,0re5ama/bspwm,netzverweigerer/bspwm,nfnty/bspwm,JBouron/bspwm,JBouron/bspwm,XiKuuKy/bspwm,JBouron/bspwm,medisun/bspwm,Stebalien/bspwm,jbalint/bspwm,jbalint/bspwm,nfnty/bspwm,baskerville/bspwm,0re5ama/bspwm,medisun/bspwm,medisun/bspwm,XiKuuKy/bspwm,ikn/bspwm,netzverweigerer/bspwm,baskerville/bspwm,0re5ama/bs... |
a6d8dea8b4792df8c762c3038aba19b8b031387f | whitebalancing.h | whitebalancing.h | #ifndef WHITE_BALANCING_H
#define WHITE_BALANCING_H
#include <stdio.h>
#include <stdlib.h>
typedef unsigned char byte;
void compute_color_histogram(byte *color, byte *histogram, int width, int height)
{
for (int i = 0; i < 256; ++i) {
histogram[i] = 0;
}
for (int i = 0; i < width * height; ++i) ... | Implement helper functions for white balancing | Implement helper functions for white balancing
| C | apache-2.0 | Corly/ImageProcessing,Corly/ImageProcessing,Corly/ImageProcessing | |
172df98c0d9ca58afe0eb846f1edd2c888ffe273 | example/ex-dict04.c | example/ex-dict04.c | #include <stdio.h>
#include "m-string.h"
#include "m-dict.h"
/* program that reads text from standard-input,
and prints the total number of distinct words found in the text.
*/
DICT_SET_DEF2(str, string_t, STRING_OPLIST)
int main(void)
{
M_LET(word, STRING_OPLIST)
M_LET(wordcount, DICT_SET_OPLIST(str, STRI... | Add new example based on set and word counts. | Add new example based on set and word counts.
| C | bsd-2-clause | P-p-H-d/mlib,P-p-H-d/mlib | |
7438c35b557fb834703ecc8c35acb20d2fd5abcc | include/rmd160.h | include/rmd160.h | #ifndef _RMD160_H_
#define _RMD160_H_
typedef struct {
unsigned int rmd[5];
unsigned char buf[64];
unsigned int nbuf;
} rmd160_context;
void rmd160_init(rmd160_context *ctx);
void rmd160_update(rmd160_context *ctx, const void *data, unsigned len);
void rmd160_final(rmd160_context *ctx, void *digest);
void rmd160_h... | #ifndef _RMD160_H_
#define _RMD160_H_
#include <stdint.h>
typedef struct {
uint64_t len;
uint32_t rmd[5];
uint8_t buf[64];
uint32_t nbuf;
} rmd160_context;
void rmd160_init(rmd160_context *ctx);
void rmd160_update(rmd160_context *ctx, const void *data, unsigned nbytes);
void rmd160_final(rmd160_context *ctx, un... | Use C99 stdint types, update prototypes. | Use C99 stdint types, update prototypes.
| C | bsd-2-clause | fmela/weecrypt,fmela/weecrypt |
1f5f35cc0e89312c6b6aef13689ab0c821d36da6 | src/modules/cpufreq/e_mod_main.h | src/modules/cpufreq/e_mod_main.h | #ifndef E_MOD_MAIN_H
#define E_MOD_MAIN_H
typedef struct _Status Status;
typedef struct _Config Config;
struct _Status
{
Evas_List *frequencies;
Evas_List *governors;
int cur_frequency;
int can_set_frequency;
char *cur_governor;
unsigned char activ... | #ifndef E_MOD_MAIN_H
#define E_MOD_MAIN_H
typedef struct _Status Status;
typedef struct _Config Config;
struct _Status
{
Evas_List *frequencies;
Evas_List *governors;
int cur_frequency;
int can_set_frequency;
char *cur_governor;
unsigned char activ... | Remove unused (and deprecated) declaration. | Remove unused (and deprecated) declaration.
git-svn-id: 0f3f1c46c6da7ffd142db61e503a7ff63af3a195@32298 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
| C | bsd-2-clause | jordemort/e17,jordemort/e17,jordemort/e17 |
62a27af5a8c9e03a1bfbf6ec796917277ee263d1 | src/main.c | src/main.c | #include "nrf_delay.h"
#include "nrf_gpio.h"
int main(void){
nrf_gpio_range_cfg_output(21,22);
while(1){
nrf_gpio_pin_write(21,1);
nrf_gpio_pin_write(22,1);
nrf_delay_ms(80);
nrf_gpio_pin_write(21, 1);
nrf_gpio_pin_write(22, 1);
nrf_delay_ms(80);
}... | #include "nrf_delay.h"
#include "nrf_gpio.h"
int main(void){
nrf_gpio_range_cfg_output(21,22);
while(1){
nrf_gpio_pin_write(21,1);
nrf_gpio_pin_write(22,0);
nrf_delay_ms(80);
nrf_gpio_pin_write(21, 0);
nrf_gpio_pin_write(22, 1);
nrf_delay_ms(80);
}... | Fix C program - Leds were not toggling anymore | Fix C program - Leds were not toggling anymore
| C | mit | rbarzic/nrf5x-dk-gcc,wulffern/nrf52-shiftreg,rbarzic/nrf5x-dk-gcc,wulffern/nrf52-shiftreg |
c60e3d16e8f405b2e56bf530aa550e6223fca0f7 | src/main.c | src/main.c | #include "common.h"
#include "arguments.h"
TCHAR *get_version(void)
{
return _T("HostKit Agent PREALPHA\nCompiled at ") __TIME__ _T(" on ") __DATE__ _T("\n");
}
int _tmain(int argc, TCHAR *argv[])
{
int result;
initialize_arguments();
if(parse_arguments(argv) != ARGS_OK || arguments.error) {
_tprintf(_T("%s"... | #include "common.h"
#include "arguments.h"
TCHAR *get_version(void)
{
return _T("HostKit Agent PREALPHA\nCompiled at ") __TIME__ _T(" on ") __DATE__ _T("\n");
}
TCHAR *get_copyright(void)
{
return _T("");
}
int _tmain(int argc, TCHAR *argv[])
{
int result;
initialize_arguments();
if(parse_arguments(argv) != ... | Add stub for legal notice. | Add stub for legal notice.
| C | bsd-2-clause | abenson/hostkit,abenson/hostkit |
667e5c1daf0f5e6183361e8c6ff47b34bae3bea3 | src/uart.c | src/uart.c | #include "uart.h"
void uart_putchar(char c, FILE *stream) {
if( c == '\n' )
uart_putchar( '\r', stream );
UDR0 = c;
loop_until_bit_is_set(UCSR0A, TXC0);
}
static FILE uart_out = FDEV_SETUP_STREAM(uart_putchar, NULL, _FDEV_SETUP_WRITE);
void uart_init(void) {
UBRR0L = BAUDRATE&0xFF;
UBRR0H... | #include "uart.h"
void uart_putchar(char c, FILE *stream) {
if( c == '\n' )
uart_putchar('\r', stream);
loop_until_bit_is_set(UCSR0A, UDRE0);
UDR0 = c;
}
static FILE uart_out = FDEV_SETUP_STREAM(uart_putchar, NULL, _FDEV_SETUP_WRITE);
void uart_init(void) {
UBRR0L = BAUDRATE&0xFF;
UBRR0H ... | Reorder UART transmission. Instead of waiting for cache to be empty and then sending the value, we first add the value to cache and then wait for transmission. This way no characters are lost during transmission | Reorder UART transmission. Instead of waiting for cache to be empty and then sending the value, we first add the value to cache and then wait for transmission. This way no characters are lost during transmission
| C | mit | nathanhi/steep-beta,nathanhi/steep-beta |
e95489710c532a005dec1eac1f742d2c794d14d3 | lib/haka/regexp_module.c | lib/haka/regexp_module.c | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <haka/error.h>
#include <haka/regexp_module.h>
struct regexp_module *regexp_module_load(const char *modu... | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <haka/error.h>
#include <haka/regexp_module.h>
struct regexp_module *regexp_module_load(const char *modu... | Fix memory leak on regexp module load | Fix memory leak on regexp module load
| C | mpl-2.0 | nabilbendafi/haka,haka-security/haka,Wingless-Archangel/haka,Wingless-Archangel/haka,lcheylus/haka,LubyRuffy/haka,lcheylus/haka,nabilbendafi/haka,LubyRuffy/haka,haka-security/haka,nabilbendafi/haka,lcheylus/haka,haka-security/haka |
c3a30babd416d7c91ba0d187ff9e57df49930595 | ouzel/input/linux/InputLinux.h | ouzel/input/linux/InputLinux.h | // Copyright (C) 2017 Elviss Strazdins
// This file is part of the Ouzel engine.
#pragma once
#include <X11/keysym.h>
#include <X11/XKBlib.h>
#include <X11/cursorfont.h>
#include <X11/X.h>
#include "input/Input.h"
namespace ouzel
{
class Engine;
namespace input
{
class InputLinux: public Input
... | // Copyright (C) 2017 Elviss Strazdins
// This file is part of the Ouzel engine.
#pragma once
#include <X11/keysym.h>
#include <X11/XKBlib.h>
#include <X11/cursorfont.h>
#include <X11/X.h>
#include "input/Input.h"
namespace ouzel
{
class Engine;
namespace input
{
class InputLinux: public Input
... | Fix the declaration of Cursor on Linux | Fix the declaration of Cursor on Linux
| C | unlicense | Hotspotmar/ouzel,elvman/ouzel,elnormous/ouzel,Hotspotmar/ouzel,elnormous/ouzel,elnormous/ouzel,Hotspotmar/ouzel,elvman/ouzel |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.