commit stringlengths 40 40 | old_file stringlengths 4 237 | new_file stringlengths 4 237 | old_contents stringlengths 1 4.24k | new_contents stringlengths 1 4.87k | subject stringlengths 15 778 | message stringlengths 15 8.75k | lang stringclasses 266
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
b66c645e7c70e870021d91501a4b285fb017e1ae | src/libaacs/aacs.h | src/libaacs/aacs.h | /*
* libaacs by Doom9 ppl 2009, 2010
*/
#ifndef AACS_H_
#define AACS_H_
#include <stdint.h>
#include <unistd.h>
#include "mkb.h"
#include "../file/configfile.h"
#define LIBAACS_VERSION "1.0"
typedef struct aacs AACS;
struct aacs {
uint8_t pk[16], mk[16], vuk[16], vid[16];
uint8_t *uks; // unit ... | /*
* libaacs by Doom9 ppl 2009, 2010
*/
#ifndef AACS_H_
#define AACS_H_
#include <stdint.h>
#include "mkb.h"
#include "../file/configfile.h"
#define LIBAACS_VERSION "1.0"
typedef struct aacs AACS;
struct aacs {
uint8_t pk[16], mk[16], vuk[16], vid[16];
uint8_t *uks; // unit key array (size = 16... | Remove unneed inclusion of unistd.h | Remove unneed inclusion of unistd.h
| C | lgpl-2.1 | mwgoldsmith/aacs,rraptorr/libaacs,ShiftMediaProject/libaacs,ShiftMediaProject/libaacs,zxlooong/libaacs,mwgoldsmith/aacs,rraptorr/libaacs,zxlooong/libaacs |
733ac73861e87d5d600605eb4fc6e7c295536c3b | lily_vm.c | lily_vm.c | #include "lily_impl.h"
#include "lily_symtab.h"
#include "lily_opcode.h"
static void builtin_print(lily_symbol *s)
{
if (s->val_type == vt_str)
lily_impl_send_html(((lily_strval *)s->sym_value)->str);
}
void lily_vm_execute(lily_symbol *sym)
{
lily_symbol **regs;
int *code, ci;
regs = lily_im... | #include "lily_impl.h"
#include "lily_symtab.h"
#include "lily_opcode.h"
static void builtin_print(lily_symbol *s)
{
if (s->val_type == vt_str)
lily_impl_send_html(((lily_strval *)s->sym_value)->str);
}
void lily_vm_execute(lily_symbol *sym)
{
lily_symbol **regs;
int *code, ci;
regs = lily_im... | Fix o_builtin_print and o_assign cases not breaking. | vm: Fix o_builtin_print and o_assign cases not breaking.
This was causing the hello_world.ly test to segfault.
| C | mit | jesserayadkins/lily,FascinatedBox/lily,jesserayadkins/lily,FascinatedBox/lily,FascinatedBox/lily,jesserayadkins/lily,FascinatedBox/lily |
2c9ab368a9ef9129c735becdf4d461c06d9a8a84 | include/effects/SkStippleMaskFilter.h | include/effects/SkStippleMaskFilter.h | /*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkStippleMaskFilter_DEFINED
#define SkStippleMaskFilter_DEFINED
#include "SkMaskFilter.h"
/**
* Simple MaskFilter that creates a screen door stipple pattern
*/
cla... | /*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkStippleMaskFilter_DEFINED
#define SkStippleMaskFilter_DEFINED
#include "SkMaskFilter.h"
/**
* Simple MaskFilter that creates a screen door stipple pattern
*/
cla... | Fix for compiler error in r4154 | Fix for compiler error in r4154
| C | bsd-3-clause | csulmone/skia,csulmone/skia,csulmone/skia,csulmone/skia |
a46d5e7f3700e126c6bc5c31f93a8f297e11074f | chip/host/persistence.c | chip/host/persistence.c | /* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Persistence module for emulator */
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#define BUF_SIZE 1024
static void get_stora... | /* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Persistence module for emulator */
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#define BUF_SIZE 1024
static void get_stora... | Fix a bug in emulator persistent storage | Fix a bug in emulator persistent storage
The path string is not terminated properly, causing occasional crashes.
BUG=chrome-os-partner:19235
TEST=Dump the path and check it's correct.
BRANCH=None
Change-Id: I9ccbd565ce68ffdad98f2dd90ecf19edf9805ec0
Signed-off-by: Vic Yang <5fd92abeee651458f98e2856f4f200ee971cee4d@ch... | C | bsd-3-clause | longsleep/ec,md5555/ec,longsleep/ec,mtk09422/chromiumos-platform-ec,coreboot/chrome-ec,coreboot/chrome-ec,akappy7/ChromeOS_EC_LED_Diagnostics,eatbyte/chromium-ec,alterapraxisptyltd/chromium-ec,fourier49/BZ_DEV_EC,coreboot/chrome-ec,fourier49/BZ_DEV_EC,fourier49/BZ_DEV_EC,coreboot/chrome-ec,alterapraxisptyltd/chromium-e... |
c0e295eb3b917a2d5a4c95b8f9d29e0b519d77ee | Source/Sync.h | Source/Sync.h | @import Foundation;
@import CoreData;
FOUNDATION_EXPORT double SyncVersionNumber;
FOUNDATION_EXPORT const unsigned char SyncVersionString[];
#import <Sync/SYNCPropertyMapper.h>
#import <Sync/NSEntityDescription+SYNCPrimaryKey.h>
| @import Foundation;
@import CoreData;
FOUNDATION_EXPORT double SyncVersionNumber;
FOUNDATION_EXPORT const unsigned char SyncVersionString[];
#import <Sync/SYNCPropertyMapper.h>
#import <Sync/NSEntityDescription+SYNCPrimaryKey.h>
#import <Sync/NSManagedObject+SYNCPropertyMapperHelpers.h>
| Add missing import in umbrella header | Add missing import in umbrella header
| C | mit | hyperoslo/Sync,hyperoslo/Sync |
cc97b7f92ce123b511fa649e16cc2259c5bb7edd | eacirc/solvers/local_search.h | eacirc/solvers/local_search.h | #pragma once
#include <cstddef>
#include <utility>
template <class Type, class Mut, class Eval, class Init> struct local_search {
local_search(Mut &mutator, Eval &evaluator, Init &initializer)
: _mutator(mutator)
, _evaluator(evaluator)
, _initializer(initializer) {
_initializer.ap... | #pragma once
#include <cstddef>
#include <utility>
template <class Type, class Mut, class Eval, class Init> struct local_search {
local_search(Mut &mutator, Eval &evaluator, Init &initializer)
: _mutator(mutator)
, _evaluator(evaluator)
, _initializer(initializer) {
_initializer.ap... | Fix return value of reevaluate in local search | Fix return value of reevaluate in local search
| C | mit | crocs-muni/EACirc,crocs-muni/EACirc,crocs-muni/EACirc,crocs-muni/EACirc |
80cac09dcd3f6227f81cc56169d69e1fae129b5d | test/Frontend/dependency-generation-crash.c | test/Frontend/dependency-generation-crash.c | // RUN: touch %t
// RUN: chmod 0 %t
// %clang -E -dependency-file bla -MT %t -MP -o %t -x c /dev/null
// rdar://9286457
| // RUN: touch %t
// RUN: chmod 0 %t
// RUN: not %clang_cc1 -E -dependency-file bla -MT %t -MP -o %t -x c /dev/null 2>&1 | FileCheck %s
// RUN: rm -f %t
// CHECK: error: unable to open output file
// rdar://9286457
| Fix dependency generation crash test to run clang and clean up after itself. | Fix dependency generation crash test to run clang and clean up after itself.
Previously the test did not have a RUN: prefix for the clang command.
In addition it was leaving behind a tmp file with no permissions causing issues when
deleting the build directory on Windows.
Differential Revision: http://reviews.llvm.or... | C | apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... |
c0a0e8f317ebabe87fd0e9a3f15de9acec1ef804 | seh/seh.h | seh/seh.h | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for
// full license information.
#include "stdio.h"
#if ( _MSC_VER >= 800 )
#define try __try
#define except __except
#define finally ... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for
// full license information.
#include "stdio.h"
#if ( _MSC_VER >= 800 )
#define try __try
#define except __except
#define finally ... | Revert "Dirty hack for mingw's exception handler" | Revert "Dirty hack for mingw's exception handler"
This reverts commit f9d6d03cc8a7f00588a7df7ab4b31673521fc193.
| C | mit | Endle/compiler-tests,Endle/compiler-tests,Endle/compiler-tests |
5259677050d05eb4f0f7c6292d66b31db4cd37e1 | src/software_rasterizer/demo/texture.h | src/software_rasterizer/demo/texture.h | #ifndef RPLNN_TEXTURE_H
#define RPLNN_TEXTURE_H
struct texture;
/* Should create a version of this which doesn't malloc (basically just give memory block as a parameter). */
struct texture *texture_create(const char *file_name);
void texture_destroy(struct texture **texture);
/* Just create a stryct vec2_int textur... | #ifndef RPLNN_TEXTURE_H
#define RPLNN_TEXTURE_H
struct texture;
/* Should create a version of this which doesn't malloc (basically just give memory block as a parameter). */
struct texture *texture_create(const char *file_name);
void texture_destroy(struct texture **texture);
void texture_get_info(struct texture *t... | Clean up 1: Removed old comment and vs fixed some line endings. | Clean up 1: Removed old comment and vs fixed some line endings.
| C | mit | ropelinen/rasterizer,ropelinen/rasterizer |
bc0dc192899f4462986220172a78a8cf59d22fcc | lib/libc/include/stddef.h | lib/libc/include/stddef.h | /******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... | /******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... | Declare size_t as unsigned long | libc: Declare size_t as unsigned long
If size_t is only "int", memset() and friends are limited
to 4 GB. And ssize_t is already declared as "long", so it
is somewhat inconsequent to define size_t as "int" only.
Signed-off-by: Thomas Huth <9e65be74847981e55b2564b6266c57d86d3bac05@redhat.com>
Signed-off-by: Alexey Kard... | C | bsd-3-clause | stefanberger/SLOF-tpm,qemu/SLOF,stefanberger/SLOF-tpm,aik/SLOF,aik/SLOF,qemu/SLOF,qemu/SLOF,stefanberger/SLOF-tpm,aik/SLOF |
cdfc79aae9d4c123ab15fea9cf1e4429f15aba66 | gobject/gobject-autocleanups.h | gobject/gobject-autocleanups.h | /*
* Copyright © 2015 Canonical Limited
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This libr... | /*
* Copyright © 2015 Canonical Limited
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This libr... | Add g_autoptr() support for GParamSpec | gobject: Add g_autoptr() support for GParamSpec
Do not add support for its subtypes, since all their constructors return
GParamSpec*, and g_param_spec_unref() takes a GParamSpec* rather than a
gpointer — adding G_DEFINE_AUTOPTR_CLEANUP_FUNC() for subtypes of
GParamSpec results in compiler warnings about mismatched par... | C | lgpl-2.1 | endlessm/glib,endlessm/glib,endlessm/glib,endlessm/glib,endlessm/glib |
5c3f7221aa63931171d1df852caf3dd93ada39c3 | Josh_Zane_Sebastian/src/parser/parser.c | Josh_Zane_Sebastian/src/parser/parser.c | #include <stdlib.h>
#include <stdio.h>
#include types.c
#include <string.h>
/* We can:
Set something equal to something
Function calls
Function definitions
Returning things -- delimiter '<'
Printing things
Iffing */
struct call parseCall(char* statement);
struct function parseFunction(char* statemen... | #include <stdlib.h>
#include <stdio.h>
#include types.c
#include <string.h>
/* We can:
Set something equal to something
Function calls
Function definitions
Returning things -- delimiter '<'
Printing things
Iffing */
char* fixSpacing(char* code) {
char* fixedCode = malloc(sizeof(char) * (strlen(cod... | Add a return statement to spcTokenize. | Add a return statement to spcTokenize.
| C | mit | aacoppa/final,aacoppa/final |
ef9fbe24b8f633c72fb423338eff7e4b60e8c987 | debug.c | debug.c | #include <stdio.h>
#include <ctype.h>
#include "debug.h"
#ifndef NDEBUG
regex_t _comp;
// Initialize the regular expression used for restricting debug output
static void __attribute__ ((constructor)) premain()
{
if (regcomp(&_comp, DCOMPONENT, REG_EXTENDED|REG_ICASE|REG_NOSUB))
die("mayb not a valid regexp: %s",... | #include <stdio.h>
#include <ctype.h>
#include "debug.h"
#ifndef NDEBUG
char *col[6] = { MAG, RED, YEL, CYN, BLU, GRN };
regex_t _comp;
// Initialize the regular expression used for restricting debug output
static void __attribute__ ((constructor)) premain()
{
if (regcomp(&_comp, DCOMPONENT, REG_EXTENDED|REG_ICAS... | Fix typo in message and add colors | Fix typo in message and add colors
| C | bsd-2-clause | NTAP/warpcore,NTAP/warpcore,NTAP/warpcore,NTAP/warpcore |
243b732749fa31bbcc523ad85072e9389ad128e9 | templates/VpiListener.h | templates/VpiListener.h | // -*- c++ -*-
/*
Copyright 2019 Alain Dargelas
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | // -*- c++ -*-
/*
Copyright 2019 Alain Dargelas
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | Use of vpiHandle requires inclusion of vpi_user. | Use of vpiHandle requires inclusion of vpi_user.
Signed-off-by: Henner Zeller <259ad50fabbfd39355f36ecd6c0afca541ea66ef@acm.org>
| C | apache-2.0 | chipsalliance/UHDM,chipsalliance/UHDM,chipsalliance/UHDM |
ff49a712c4cc188cdd7d0207595d99c89fe985f0 | modules/gadgeteer/gadget/Type/DeviceInterface.h | modules/gadgeteer/gadget/Type/DeviceInterface.h | #ifndef _VJ_DEVICE_INTERFACE_H_
#define _VJ_DEVICE_INTERFACE_H_
//: Base class for simplified interfaces
//
// Interfaces provide an easier way to access proxy objects from
// within user applications. <br> <br>
//
// Users can simply declare a local interface variable and use it
// as a smart_ptr for the proxy
//
//!... | #ifndef _VJ_DEVICE_INTERFACE_H_
#define _VJ_DEVICE_INTERFACE_H_
//: Base class for simplified interfaces
//
// Interfaces provide an easier way to access proxy objects from
// within user applications. <br> <br>
//
// Users can simply declare a local interface variable and use it
// as a smart_ptr for the proxy
//
//!... | Include vjConfig.h rather than mstring.h to get the basic_string implmentation. | Include vjConfig.h rather than mstring.h to get the basic_string
implmentation.
git-svn-id: 769d22dfa2d22aad706b9a451492fb87c0735f19@596 08b38cba-cd3b-11de-854e-f91c5b6e4272
| C | lgpl-2.1 | godbyk/vrjuggler-upstream-old,vancegroup-mirrors/vrjuggler,vancegroup-mirrors/vrjuggler,LiuKeHua/vrjuggler,godbyk/vrjuggler-upstream-old,vancegroup-mirrors/vrjuggler,vrjuggler/vrjuggler,MichaelMcDonnell/vrjuggler,godbyk/vrjuggler-upstream-old,godbyk/vrjuggler-upstream-old,vrjuggler/vrjuggler,MichaelMcDonnell/vrjuggler,... |
ce941743ce1eefc51c98401514f9165d6d66040e | sauce/memory.h | sauce/memory.h | #ifndef SAUCE_MEMORY_H_
#define SAUCE_MEMORY_H_
#if SAUCE_STD_SMART_PTR
#include <sauce/internal/memory/std.h>
#elif SAUCE_STD_TR1_SMART_PTR
#include <sauce/internal/memory/tr1.h>
#elif SAUCE_BOOST_SMART_PTR
#include <sauce/internal/memory/boost.h>
#else
#error Please define SAUCE_STD_SMART_PTR, SAUCE_STD_TR1_... | #ifndef SAUCE_MEMORY_H_
#define SAUCE_MEMORY_H_
#if SAUCE_STD_SMART_PTR
#include <sauce/internal/memory/std.h>
#elif SAUCE_STD_TR1_SMART_PTR
#include <sauce/internal/memory/tr1.h>
#elif SAUCE_BOOST_SMART_PTR
#include <sauce/internal/memory/boost.h>
#else
#include <sauce/internal/memory/std.h>
#endif
#endif //... | Use standard smart pointers by default. | Use standard smart pointers by default.
| C | mit | phs/sauce,phs/sauce,phs/sauce,phs/sauce |
82c36b1c384592069dd6637120d15cfd5b674463 | include/webdriverxx/detail/time.h | include/webdriverxx/detail/time.h | #ifndef WEBDRIVERXX_DETAIL_TIME_H
#define WEBDRIVERXX_DETAIL_TIME_H
#include "error_handling.h"
#include "../types.h"
#ifdef _WIN32
#include <windows.h>
#else
#include <time.h>
#endif
namespace webdriverxx {
namespace detail {
TimePoint Now() {
#ifdef _WIN32
FILETIME time;
::GetSystemTimeAsFileTime(&time);... | #ifndef WEBDRIVERXX_DETAIL_TIME_H
#define WEBDRIVERXX_DETAIL_TIME_H
#include "error_handling.h"
#include "../types.h"
#ifdef _WIN32
#include <windows.h>
#else
#include <time.h>
#endif
namespace webdriverxx {
namespace detail {
TimePoint Now() {
#ifdef _WIN32
FILETIME time;
::GetSystemTimeAsFileTime(&time);... | Fix Win32 implementation of Now() | Fix Win32 implementation of Now()
| C | mit | sekogan/webdriverxx,sekogan/webdriverxx,sekogan/webdriverxx |
58d8646c8cd7e8b7ca6624e2650a1bf52fd2ec36 | include/sajson_ostream.h | include/sajson_ostream.h | #pragma once
#include "sajson.h"
#include <ostream>
namespace sajson {
inline std::ostream& operator<<(std::ostream& os, type t) {
switch (t) {
case TYPE_INTEGER:
return os << "<integer>";
case TYPE_DOUBLE:
return os << "<double>";
case TYPE_NULL:
return os << "<null>";
cas... | #pragma once
#include "sajson.h"
#include <ostream>
namespace sajson {
inline std::ostream& operator<<(std::ostream& os, type t) {
switch (t) {
case TYPE_INTEGER:
return os << "<integer>";
case TYPE_DOUBLE:
return os << "<double>";
case TYPE_NULL:
return os << "<null>";
cas... | Add missing closing angle bracket | Add missing closing angle bracket | C | mit | iboB/sajson,chadaustin/sajson,chadaustin/sajson,chadaustin/sajson,chadaustin/sajson,chadaustin/sajson,iboB/sajson,chadaustin/sajson,iboB/sajson,iboB/sajson,iboB/sajson,iboB/sajson |
d5105abdf717676f4801fb5e31c7cb0f62f11eab | src/utils/cuda_helper.h | src/utils/cuda_helper.h | #ifndef SRC_UTILS_CUDA_HELPER_H_
#define SRC_UTILS_CUDA_HELPER_H_
#include <cuda.h>
#include <cuda_runtime.h>
#include <iostream>
#include <stdexcept>
static void HandleError(cudaError_t error, const char *file, int line)
{
if (error != cudaSuccess)
{
printf("%s in %s at line %d\n", cudaGetErrorString(error)... | #ifndef SRC_UTILS_CUDA_HELPER_H_
#define SRC_UTILS_CUDA_HELPER_H_
#include <cuda.h>
#include <cuda_runtime.h>
#include <iostream>
#include <stdexcept>
#define HANDLE_ERROR(error) \
{ \
... | Move static function into macro to circumvent unused function waringn-erros. | Move static function into macro to circumvent unused function waringn-erros.
| C | mit | Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller |
76e0a594de107adf654bf8b13a6bcc1480d05184 | include/lomse_version.h | include/lomse_version.h | //---------------------------------------------------------------------------------------
// This file is part of the Lomse library.
// Do not alter layout. Will affect CMakeLists.txt data extraction code
//
// | All values aligned here
#define LOMSE_VERSION_MAJOR 0
#define LOMSE_VERSION_... | //---------------------------------------------------------------------------------------
// This file is part of the Lomse library.
// Do not alter layout. Will affect CMakeLists.txt data extraction code
//
// | All values aligned here
#define LOMSE_VERSION_MAJOR 0
#define LOMSE_VERSION_... | Update revno in config file | Update revno in config file
| C | mit | lenmus/lomse,lenmus/lomse,lenmus/lomse |
54a079f94107a1ad655ee0cb3314eb76c90f09c0 | check/tests/check_check_main.c | check/tests/check_check_main.c | #include <stdlib.h>
#include <stdio.h>
#include <check.h>
#include "check_check.h"
int main (void)
{
int n;
SRunner *sr;
fork_setup();
setup_fixture();
sr = srunner_create (make_master_suite());
srunner_add_suite(sr, make_list_suite());
srunner_add_suite(sr, make_msg_suite());
srunner_add_suite(sr, ma... | #include <stdlib.h>
#include <stdio.h>
#include <check.h>
#include "check_check.h"
int main (void)
{
int n;
SRunner *sr;
fork_setup();
setup_fixture();
sr = srunner_create (make_master_suite());
srunner_add_suite(sr, make_list_suite());
srunner_add_suite(sr, make_msg_suite());
srunner_add_suite(sr, ma... | Use correct variable for number of tests | Use correct variable for number of tests
git-svn-id: ae38cf1093b87151f738d2b2220cac7742ad2e55@230 64e312b2-a51f-0410-8e61-82d0ca0eb02a
| C | lgpl-2.1 | lubosz/check,lubosz/check,lubosz/check,lubosz/check |
d697806b15a0bb6158146f545554d8aa6ffcadc9 | src/powerman.c | src/powerman.c | /*! \file
* \\brief This file is for later use for power management functions as we see fit for them.
* May not even use at all.
*/
//test test
| /*! \file
* \\brief This file is for later use for power management functions as we see fit for them.
* May not even use at all.
*/ | Revert "added testing comment for testing!" | Revert "added testing comment for testing!"
This reverts commit ffc29b89462973571224e523eaf0c69fef88b1f2.
| C | bsd-2-clause | bplainia/galaxyLightingSystem,bplainia/galaxyLightingSystem,bplainia/galaxyLightingSystem,bplainia/galaxyLightingSystem,bplainia/galaxyLightingSystem |
7788edff9108cafc593759e9e406d6da6509c799 | test/tstnmem.c | test/tstnmem.c | /*
* Copyright (c) 2002-2004, Index Data
* See the file LICENSE for details.
*
* $Id: tstnmem.c,v 1.2 2004-09-29 20:15:48 adam Exp $
*/
#if HAVE_CONFIG_H
#include <config.h>
#endif
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <yaz/nmem.h>
int main (int argc, char **arg... | /*
* Copyright (c) 2002-2004, Index Data
* See the file LICENSE for details.
*
* $Id: tstnmem.c,v 1.3 2005-01-05 10:29:42 adam Exp $
*/
#if HAVE_CONFIG_H
#include <config.h>
#endif
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <yaz/nmem.h>
int main (int argc, char **arg... | Check that assignments to NMEM memory for some basic types | Check that assignments to NMEM memory for some basic types
| C | bsd-3-clause | dcrossleyau/yaz,nla/yaz,dcrossleyau/yaz,nla/yaz,nla/yaz,dcrossleyau/yaz,nla/yaz |
e7deadc8985652879ec54c0943d6b396eba60598 | libmultipath/defaults.h | libmultipath/defaults.h | #define DEFAULT_GETUID "/lib/udev/scsi_id --whitelisted --device=/dev/%n"
#define DEFAULT_UDEVDIR "/dev"
#define DEFAULT_MULTIPATHDIR "/" LIB_STRING "/multipath"
#define DEFAULT_SELECTOR "round-robin 0"
#define DEFAULT_ALIAS_PREFIX "mpath"
#define DEFAULT_FEATURES "0"
#define DEFAULT_HWHANDLER "0"
#define DEFAULT_MIN... | #define DEFAULT_GETUID "/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/%n"
#define DEFAULT_UDEVDIR "/dev"
#define DEFAULT_MULTIPATHDIR "/" LIB_STRING "/multipath"
#define DEFAULT_SELECTOR "round-robin 0"
#define DEFAULT_ALIAS_PREFIX "mpath"
#define DEFAULT_FEATURES "0"
#define DEFAULT_HWHANDLER "0... | Use '--replace-whitespace' option for scsi_id | Use '--replace-whitespace' option for scsi_id
Some SCSI devices will return an identifier with spaces in it.
As we're using this name as the default device-mapper name we
should be reformatting it to replace all spaces with underscores
so as not to confuse device-mapper.
References: bnc#572209
Signed-off-by: Hannes ... | C | lgpl-2.1 | vijaychauhan/multipath-tools,unakatsuo/multipath-tools,unakatsuo/multipath-tools,vijaychauhan/multipath-tools,unakatsuo/multipath-tools |
8ef343ed77f1b614d859fee967741f951b59943f | lily_vm.c | lily_vm.c | #include "lily_impl.h"
#include "lily_symtab.h"
#include "lily_opcode.h"
static void builtin_print(lily_symbol *s)
{
if (s->val_type == vt_str)
lily_impl_send_html(((lily_strval *)s->sym_value)->str);
}
void lily_vm_execute(lily_symbol *sym)
{
lily_symbol **regs;
int *code, ci;
regs = lily_im... | #include "lily_impl.h"
#include "lily_symtab.h"
#include "lily_opcode.h"
static void builtin_print(lily_symbol *s)
{
if (s->val_type == vt_str)
lily_impl_send_html(((lily_strval *)s->sym_value)->str);
}
void lily_vm_execute(lily_symbol *sym)
{
lily_symbol **regs;
int *code, ci;
regs = lily_im... | Fix o_builtin_print and o_assign cases not breaking. | vm: Fix o_builtin_print and o_assign cases not breaking.
This was causing the hello_world.ly test to segfault.
| C | mit | crasm/lily,crasm/lily,crasm/lily,boardwalk/lily,boardwalk/lily |
09eb6e7c2599f2deee888c751e7f547d7c64ce13 | test/CFrontend/2007-05-07-NestedStructReturn.c | test/CFrontend/2007-05-07-NestedStructReturn.c | // RUN: %llvmgcc %s -S -fnested-functions -o - | grep {sret *%agg.result}
struct X { int m, n, o, p; };
struct X p(int n) {
struct X c(int m) {
struct X x;
x.m = m;
x.n = n;
return x;
}
return c(n);
}
| // RUN: %llvmgcc %s -S -fnested-functions -o - | grep {sret *%agg.result}
struct X { long m, n, o, p; };
struct X p(int n) {
struct X c(int m) {
struct X x;
x.m = m;
x.n = n;
return x;
}
return c(n);
}
| Make the struct bigger, to ensure it is returned by struct return. | Make the struct bigger, to ensure it is returned
by struct return.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@50037 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirro... |
66dd652a48418ecdd7ed24fc8f9aa76918e94473 | src/liborbit/orbit_platforms.h | src/liborbit/orbit_platforms.h | //
// orbit_platforms.h
// OrbitVM
//
// Created by Cesar Parent on 2016-11-14.
// Copyright © 2016 cesarparent. All rights reserved.
//
#ifndef OrbitPlatforms_h
#define OrbitPlatforms_h
#if __STDC_VERSION__ >= 199901L
#define ORBIT_FLEXIBLE_ARRAY_MEMB
#else
#define ORBIT_FLEXIBLE_ARRRAY_MEMB 0
#endif
#endif ... | //
// orbit_platforms.h
// OrbitVM
//
// Created by Cesar Parent on 2016-11-14.
// Copyright © 2016 cesarparent. All rights reserved.
//
#ifndef OrbitPlatforms_h
#define OrbitPlatforms_h
#ifdef _WIN32
#define ORBIT_PLATFORM "Windows"
#elif __APPLE__
#include "TargetConditionals.h"
#if TARGET_IPHONE_SIMULATOR
#defi... | Add platform names in orbit_platform.h | Add platform names in orbit_platform.h
| C | mit | amyinorbit/orbitvm,amyinorbit/orbitvm,amyinorbit/orbitvm,cesarparent/orbitvm,cesarparent/orbitvm |
e78f945e54fe4d6fb4ee5a0ac6eeb1a9d724e9b1 | vm/capi/defines.h | vm/capi/defines.h | /* Stub file provided for C extensions that expect it. All regular
* defines and prototypes are in ruby.h
*/
#define RUBY
/* These are defines directly related to MRI C-API symbols that the
* mkmf.rb discovery code (e.g. have_func("rb_str_set_len")) would
* attempt to find by linking against libruby. Rubinius doe... | /* Stub file provided for C extensions that expect it. All regular
* defines and prototypes are in ruby.h
*/
#define RUBY
/* These are defines directly related to MRI C-API symbols that the
* mkmf.rb discovery code (e.g. have_func("rb_str_set_len")) would
* attempt to find by linking against libruby. Rubinius doe... | Define HAVE_RB_DEFINE_ALLOC_FUNC for postgres gem. | Define HAVE_RB_DEFINE_ALLOC_FUNC for postgres gem.
| C | mpl-2.0 | digitalextremist/rubinius,kachick/rubinius,kachick/rubinius,jsyeo/rubinius,Wirachmat/rubinius,lgierth/rubinius,dblock/rubinius,Wirachmat/rubinius,slawosz/rubinius,lgierth/rubinius,kachick/rubinius,jsyeo/rubinius,sferik/rubinius,lgierth/rubinius,jemc/rubinius,Azizou/rubinius,ruipserra/rubinius,dblock/rubinius,ruipserra/... |
7cadae9b8de07afaec308fb6b11d299cac1a67bc | macros.h | macros.h | #if __GNUC__ >= 4 && __GNUC_MINOR__ >= 6
#define ACQUIRE_IMAGE_PIXELS(im, x, y, w, h, ex) ({ \
_Pragma("GCC diagnostic push") \
_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") \
AcquireImagePixels(im, x, y, w, h, ex); \
_Pragma("GCC diagnostic pop") \
})
#else
#define ACQUIRE_IMAGE_PIXEL... | #if (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) || (__GNUC__ > 4)
#define ACQUIRE_IMAGE_PIXELS(im, x, y, w, h, ex) ({ \
_Pragma("GCC diagnostic push") \
_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") \
AcquireImagePixels(im, x, y, w, h, ex); \
_Pragma("GCC diagnostic pop") \
})
#else
#define... | Fix warnings building with GCC 5 | Fix warnings building with GCC 5
| C | mit | rainycape/magick,rainycape/magick,rainycape/magick |
8145f404c1628880a393a1422051aa4235ed2e0d | WordPressCom-Stats-iOS/StatsSection.h | WordPressCom-Stats-iOS/StatsSection.h | typedef NS_ENUM(NSInteger, StatsSection) {
StatsSectionGraph,
StatsSectionPeriodHeader,
StatsSectionEvents,
StatsSectionPosts,
StatsSectionReferrers,
StatsSectionClicks,
StatsSectionCountry,
StatsSectionVideos,
StatsSectionComments,
StatsSectionTagsCategories,
StatsSectionFol... | typedef NS_ENUM(NSInteger, StatsSection) {
StatsSectionGraph,
StatsSectionPeriodHeader,
StatsSectionEvents,
StatsSectionPosts,
StatsSectionReferrers,
StatsSectionClicks,
StatsSectionCountry,
StatsSectionVideos,
StatsSectionAuthors,
StatsSectionSearchTerms,
StatsSectionComment... | Add search terms and authors section to enum | Add search terms and authors section to enum
| C | mit | wordpress-mobile/WordPressCom-Stats-iOS,wordpress-mobile/WordPressCom-Stats-iOS |
72abb169d78b014b41c2471936f7891832c38fdb | src/tests/marquise_hash_test.c | src/tests/marquise_hash_test.c | #include <glib.h>
#include <stdlib.h>
#include <string.h>
#include "../marquise.h"
void test_hash_identifier() {
const char *id = "hostname:fe1.example.com,metric:BytesUsed,service:memory,";
size_t id_len = strlen(id);
uint64_t address = marquise_hash_identifier((const unsigned char*) id, id_len);
g_assert_cmpint... | #include <glib.h>
#include <stdlib.h>
#include <string.h>
#include "../marquise.h"
void test_hash_identifier() {
const char *id = "hostname:fe1.example.com,metric:BytesUsed,service:memory,";
size_t id_len = strlen(id);
uint64_t address = marquise_hash_identifier((const unsigned char*) id, id_len);
g_assert_cmpint... | Add test for LSB-clearing in marquise_hash_identifier | Add test for LSB-clearing in marquise_hash_identifier
| C | bsd-3-clause | anchor/libmarquise,anchor/libmarquise |
c5086f08be3c610fd97b541b9d61c1cdfb1f9637 | test/CodeCompletion/preamble.c | test/CodeCompletion/preamble.c | #include "some_struct.h"
void foo() {
struct X x;
x.
// RUN: CINDEXTEST_EDITING=1 c-index-test -code-completion-at=%s:4:5 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC1 %s
// CHECK-CC1: FieldDecl:{ResultType int}{TypedText m} (35) (parent: StructDecl 'X')
| #include "some_struct.h"
void foo() {
struct X x;
x.
// RUN: env CINDEXTEST_EDITING=1 c-index-test -code-completion-at=%s:4:5 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC1 %s
// CHECK-CC1: FieldDecl:{ResultType int}{TypedText m} (35) (parent: StructDecl 'X')
| Add 'env' in hopes of making this test pass on Windows. | Add 'env' in hopes of making this test pass on Windows.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@154785 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... |
5e2039ff24433d469ff05f9517dad1ccacabbd6f | polygon.h | polygon.h | /** Author : Paul TREHIOU & Victor SENE
* Date : November 2014
**/
#include <stdlib.h>
#include <stdio.h>
/**
* Declaration Point structure
* x - real wich is the abscisse of the point
* y - real wich is the ordinate of the point
*/
typedef struct
{
double x;
double y;
}Point;
/**
* Declaration of the El... | /** Author : Paul TREHIOU & Victor SENE
* Date : November 2014
**/
#include <stdlib.h>
#include <stdio.h>
/**
* Declaration Point structure
* x - real wich is the abscisse of the point
* y - real wich is the ordinate of the point
*/
typedef struct
{
double x;
double y;
}Point;
/**
* Declaration of the El... | Add the prototype for removePoint | Add the prototype for removePoint
| C | mit | UTBroM/GeometricLib |
149fb0729d1136bbad077be0d1e29fe47c4e22ab | webkit/glue/webkit_constants.h | webkit/glue/webkit_constants.h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
#define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
namespace webkit_glue {
// Chromium sets the minimum interval timeou... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
#define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
namespace webkit_glue {
// Chromium sets the minimum interval timeou... | Revert 75430 because it's causing failures in dom_checker_tests. : Increase the minimum interval for timers on background tabs to reduce their CPU consumption. | Revert 75430 because it's causing failures in dom_checker_tests.
: Increase the minimum interval for timers on background tabs to reduce
their CPU consumption.
The new interval is 1000 ms, or once per second. We can easily adjust
this value up or down, but this seems like a reasonable value to judge
the compatibility ... | C | bsd-3-clause | yitian134/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,ropik/chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,Crystalnix/house-of-life-chromium,yitia... |
fbc9dce9bce1097692f5ce1bbab2d6b4ac2297e6 | ext/foo/foo_vector.h | ext/foo/foo_vector.h | // ext/foo/foo_vector.h
// Declarations for wrapped struct
#ifndef FOO_VECTOR_H
#define FOO_VECTOR_H
#include <ruby.h>
#include <math.h>
// Ruby 1.8.7 compatibility patch
#ifndef DBL2NUM
#define DBL2NUM( dbl_val ) rb_float_new( dbl_val )
#endif
void init_foo_vector( VALUE parent_module );
// This is the struct t... | // ext/foo/foo_vector.h
// Declarations for wrapped struct
#ifndef FOO_VECTOR_H
#define FOO_VECTOR_H
#include <ruby.h>
#include <math.h>
// Ruby 1.8.7 compatibility patch
#ifndef DBL2NUM
#define DBL2NUM( dbl_val ) rb_float_new( dbl_val )
#endif
void init_foo_vector( VALUE parent_module );
// This is the struct t... | Add sharable methods to header file | Add sharable methods to header file
| C | mit | neilslater/ruby_nex_c,neilslater/ruby_nex_c |
9220eaea6f9afba4cc3bc6a0ff240f3492ff5997 | ext/hitimes/hitimes_instant_osx.c | ext/hitimes/hitimes_instant_osx.c | #ifdef USE_INSTANT_OSX
#include "hitimes_interval.h"
#include <mach/mach.h>
#include <mach/mach_time.h>
/* All this OSX code is adapted from http://developer.apple.com/library/mac/#qa/qa1398/_index.html */
/*
* returns the conversion factor, this value is used to convert
* the value from hitimes_get_current_instan... | #ifdef USE_INSTANT_OSX
#include "hitimes_interval.h"
#include <mach/mach.h>
#include <mach/mach_time.h>
/* All this OSX code is adapted from http://developer.apple.com/library/mac/#qa/qa1398/_index.html */
/*
* returns the conversion factor, this value is used to convert
* the value from hitimes_get_current_instan... | Clean up C Compiler warning about declaration of variables. | Clean up C Compiler warning about declaration of variables. | C | isc | copiousfreetime/hitimes,modulexcite/hitimes,modulexcite/hitimes,modulexcite/hitimes |
126d937b48e5d84399e4050f48daeb560291fb19 | webkit/glue/webkit_constants.h | webkit/glue/webkit_constants.h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
#define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
namespace webkit_glue {
// Chromium sets the minimum interval timeou... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
#define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
namespace webkit_glue {
// Chromium sets the minimum interval timeou... | Revert 75430 because it's causing failures in dom_checker_tests. : Increase the minimum interval for timers on background tabs to reduce their CPU consumption. | Revert 75430 because it's causing failures in dom_checker_tests.
: Increase the minimum interval for timers on background tabs to reduce
their CPU consumption.
The new interval is 1000 ms, or once per second. We can easily adjust
this value up or down, but this seems like a reasonable value to judge
the compatibility ... | C | bsd-3-clause | keishi/chromium,jaruba/chromium.src,patrickm/chromium.src,nacl-webkit/chrome_deps,robclark/chromium,rogerwang/chromium,Pluto-tv/chromium-crosswalk,jaruba/chromium.src,Fireblend/chromium-crosswalk,junmin-zhu/chromium-rivertrail,dushu1203/chromium.src,hgl888/chromium-crosswalk-efl,axinging/chromium-crosswalk,anirudhSK/ch... |
01c754ddbddc85d6e84a5312fec9fa07d9f7aa2d | src/r-svd-impute.h | src/r-svd-impute.h | /* r-svd-impute.h
*/
#ifndef _R_SVD_IMPUTE_H
#define _R_SVD_IMPUTE_H
SEXP R_svd_impute (SEXP xx, SEXP KK, SEXP tol, SEXP maxiter);
#endif /* _R_SVD_IMPUTE_H */
| /* r-svd-impute.h
*/
#ifndef _R_SVD_IMPUTE_H
#define _R_SVD_IMPUTE_H
SEXP R_svd_impute (SEXP x, SEXP k, SEXP tol, SEXP maxiter);
#endif /* _R_SVD_IMPUTE_H */
| Fix parameter names for svd.impute | Fix parameter names for svd.impute
| C | bsd-3-clause | patperry/r-bcv,patperry/r-bcv,patperry/r-bcv |
8a580e79156666d46fa59aae21fecb05746b25e2 | src/platform.h | src/platform.h | /**
* machina
*
* Copyright (c) 2011, drmats
* All rights reserved.
*
* https://github.com/drmats/machina
*/
#ifndef __PLATFORM_H_
#define __PLATFORM_H_ 1
#if defined(linux) || defined(__linux) || defined(__linux__)
#undef __LINUX__
#define __LINUX__ 1
#endif
#if defined(WIN32) || defined(_WIN32)
#und... | /**
* machina
*
* Copyright (c) 2011, drmats
* All rights reserved.
*
* https://github.com/drmats/machina
*/
#ifndef __PLATFORM_H_
#define __PLATFORM_H_ 1
#if defined(linux) || defined(__linux) || defined(__linux__)
#undef __LINUX__
#define __LINUX__ 1
#endif
#if defined(WIN32) || defined(_WIN32)
#und... | Disable function exception specification warning only in cl (Visual Studio). | Disable function exception specification warning only in cl (Visual Studio).
| C | bsd-2-clause | drmats/machina |
57a022230f9ae1b3f5901e26babafb2d321b4511 | tornado/speedups.c | tornado/speedups.c | #include <Python.h>
static PyObject* websocket_mask(PyObject* self, PyObject* args) {
const char* mask;
int mask_len;
const char* data;
int data_len;
int i;
if (!PyArg_ParseTuple(args, "s#s#", &mask, &mask_len, &data, &data_len)) {
return NULL;
}
PyObject* result = PyBytes_Fro... | #define PY_SSIZE_T_CLEAN
#include <Python.h>
static PyObject* websocket_mask(PyObject* self, PyObject* args) {
const char* mask;
Py_ssize_t mask_len;
const char* data;
Py_ssize_t data_len;
Py_ssize_t i;
PyObject* result;
char* buf;
if (!PyArg_ParseTuple(args, "s#s#", &mask, &mask_len, ... | Fix msvc compile error and improve 64 bit compatibility | Fix msvc compile error and improve 64 bit compatibility | C | apache-2.0 | whip112/tornado,wujuguang/tornado,kippandrew/tornado,legnaleurc/tornado,sxfmol/tornado,VShangxiao/tornado,andyaguiar/tornado,jparise/tornado,takeshineshiro/tornado,futurechallenger/tornado,0x73/tornado,InverseLina/tornado,dongpinglai/my_tornado,ymero/tornado,elelianghh/tornado,wxhzk/tornado-1,Aaron1992/tornado,icejoywo... |
490a3468fb50601f00e56965a531f0bbb804f806 | Python/getcopyright.c | Python/getcopyright.c | /* Return the copyright string. This is updated manually. */
#include "Python.h"
static char cprt[] =
"Copyright (c) 2000 BeOpen.com.\n\
All Rights Reserved.\n\
\n\
Copyright (c) 1995-2000 Corporation for National Research Initiatives.\n\
All Rights Reserved.\n\
\n\
Copyright (c) 1991-1995 Stichting Mathematisch Ce... | /* Return the copyright string. This is updated manually. */
#include "Python.h"
static char cprt[] =
"\
Copyright (c) 2000, 2001 Guido van Rossum.\n\
All Rights Reserved.\n\
\n\
Copyright (c) 2000 BeOpen.com.\n\
All Rights Reserved.\n\
\n\
Copyright (c) 1995-2000 Corporation for National Research Initiatives.\n\
A... | Add my name to the copyright notice. | Add my name to the copyright notice.
| C | mit | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator |
b151044a0d9307e4ab78c9b63c334604fbed41d6 | platform/ozone_platform_wayland.h | platform/ozone_platform_wayland.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 OZONE_PLATFORM_OZONE_PLATFORM_WAYLAND_H_
#define OZONE_PLATFORM_OZONE_PLATFORM_WAYLAND_H_
namespace ui {
class OzonePlatform;
// Constructo... | // 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 OZONE_PLATFORM_OZONE_PLATFORM_WAYLAND_H_
#define OZONE_PLATFORM_OZONE_PLATFORM_WAYLAND_H_
#include "ozone/platform/ozone_export_wayland.h"
n... | Fix shared_component build for Ozone platform. | Fix shared_component build for Ozone platform.
This patch makes necessary changes in Ozone Wayland code base to fix
shared_component build.
| C | bsd-3-clause | Tarnyko/ozone-wayland,baillaw/ozone-wayland,qjia7/ozone-wayland,kalyankondapally/ozone-wayland,kuscsik/ozone-wayland,hongzhang-yan/ozone-wayland,baillaw/ozone-wayland,racarr-ubuntu/ozone-mir,qjia7/ozone-wayland,sjnewbury/ozone-wayland,siteshwar/ozone-wayland,01org/ozone-wayland,01org/ozone-wayland,nagineni/ozone-waylan... |
ca31b33140cddb563d9e7749bd75a9d3763c5908 | lib/libncp/ncp_mod.h | lib/libncp/ncp_mod.h | /*
* Describes all ncp_lib kernel functions
*
* $FreeBSD$
*/
#ifndef _NCP_MOD_H_
#define _NCP_MOD_H_
/* order of calls in syscall table relative to offset in system table */
#define NCP_SE(callno) (callno+sysentoffset)
#define NCP_CONNSCAN NCP_SE(0)
#define NCP_CONNECT NCP_SE(1)
#define NCP_INTFN NCP_SE(2)
#de... | /*
* Describes all ncp_lib kernel functions
*
* $FreeBSD$
*/
#ifndef _NCP_MOD_H_
#define _NCP_MOD_H_
/* order of calls in syscall table relative to offset in system table */
#define NCP_SE(callno) (callno+sysentoffset)
#define NCP_CONNSCAN NCP_SE(0)
#define NCP_CONNECT NCP_SE(1)
#define NCP_INTFN NCP_SE(2)
#de... | Add missing newline at end of file. | Add missing newline at end of file.
| 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 |
94710706b818acd113d6f56c0cdaa787f13b74eb | content/common/gpu/surface_handle_types_mac.h | content/common/gpu/surface_handle_types_mac.h | // Copyright 2014 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 CONTENT_COMMON_GPU_SURFACE_HANDLE_TYPES_MAC_H_
#define CONTENT_COMMON_GPU_SURFACE_HANDLE_TYPES_MAC_H_
#include <OpenGL/CGLIOSurface.h>
#include ... | // Copyright 2014 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 CONTENT_COMMON_GPU_SURFACE_HANDLE_TYPES_MAC_H_
#define CONTENT_COMMON_GPU_SURFACE_HANDLE_TYPES_MAC_H_
#include <IOSurface/IOSurface.h>
#include <... | Fix build on OSX 10.9. | Fix build on OSX 10.9.
This fixes a build error on OSX 10.9 introduced by
https://codereview.chromium.org/347653005/
BUG=388160
TBR=ccameron@chromium.org,piman@chromium.org,avi@chromium.org
Review URL: https://codereview.chromium.org/350833002
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@279428 0039d316-1c4... | C | bsd-3-clause | crosswalk-project/chromium-crosswalk-efl,ondra-novak/chromium.src,Just-D/chromium-1,dushu1203/chromium.src,dushu1203/chromium.src,dushu1203/chromium.src,dednal/chromium.src,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,littlstar/chromium.src,ondra-novak/chromium.src,Pluto-tv/chromium-c... |
04ca2f943ec928a383c7a9ab71ffc0d0a583223f | UIforETW/Version.h | UIforETW/Version.h | #pragma once
// const float in a header file can lead to duplication of the storage
// but I don't really care in this case. Just don't do it with a header
// that is included hundreds of times.
const float kCurrentVersion = 1.45f;
// Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version
// incr... | #pragma once
// const float in a header file can lead to duplication of the storage
// but I don't really care in this case. Just don't do it with a header
// that is included hundreds of times.
const float kCurrentVersion = 1.46f;
// Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version
// incr... | Increase version to 1.46 in preparation for new release | Increase version to 1.46 in preparation for new release
| C | apache-2.0 | ariccio/UIforETW,google/UIforETW,MikeMarcin/UIforETW,MikeMarcin/UIforETW,google/UIforETW,ariccio/UIforETW,google/UIforETW,mwinterb/UIforETW,MikeMarcin/UIforETW,mwinterb/UIforETW,ariccio/UIforETW,google/UIforETW,mwinterb/UIforETW,ariccio/UIforETW |
19fce5e178d3f071c86da34008108f8f4bb2c994 | src/parse/type.h | src/parse/type.h | #ifndef __parse_type_h__
#define __parse_type_h__
typedef enum
{
PARSE_TYPE_NONE,
PARSE_TYPE_LOGICAL,
PARSE_TYPE_CHARACTER,
PARSE_TYPE_INTEGER,
PARSE_TYPE_REAL,
PARSE_TYPE_COMPLEX,
PARSE_TYPE_BYTE,
} parse_type_e;
typedef struct
{
parse_type_e type;
unsigned kind;
unsigned count;
} parse_type_t;
s... | #ifndef __parse_type_h__
#define __parse_type_h__
typedef enum
{
PARSE_TYPE_NONE,
PARSE_TYPE_LOGICAL,
PARSE_TYPE_CHARACTER,
PARSE_TYPE_INTEGER,
PARSE_TYPE_REAL,
PARSE_TYPE_COMPLEX,
PARSE_TYPE_BYTE,
} parse_type_e;
typedef struct
{
parse_type_e type;
unsigned kind;
unsigned count;
} parse_type_t;
#... | Fix issue with static consts | Fix issue with static consts
| C | apache-2.0 | CodethinkLabs/ofc,CodethinkLabs/ofc,CodethinkLabs/ofc,CodethinkLabs/ofc |
e855173835d8911edd09dcdfc0529ebacdc9fe55 | src/thermostat.h | src/thermostat.h | #pragma once
#include <core.h>
#define DHT22_PIN 6
#define DHT22_SAMPLE_RATE 3000
#define TEMPORATURE_TARGET (204)
#define HEATER_PIN 10
#define HEATER_ACTION_DELAY (15*60) // minimal seconds to open/close heater, prevent switch heater too frequently.
// pin connect to 315/433 transmitter
#define TRANSMIT_PIN 8
/... | #pragma once
#include <core.h>
#define DHT22_PIN 6
#define DHT22_SAMPLE_RATE 3000
#define TEMPORATURE_TARGET (204)
#define HEATER_PIN 10
#define HEATER_ACTION_DELAY (15*60) // minimal seconds to open/close heater, prevent switch heater too frequently.
// pin connect to 315/433 transmitter
#define TRANSMIT_PIN 8
/... | Use A0 instead 10 as button down input PIN | Use A0 instead 10 as button down input PIN
All digital pins are used, 10 used by heater relay, so borrow an analog
input pin.
| C | apache-2.0 | redforks/thermostat,redforks/thermostat |
b8f325d491a751bb8478b36f85493c728b5d098e | src/condor_includes/condor_constants.h | src/condor_includes/condor_constants.h | #ifndef CONSTANTS_H
#define CONSTANTS_H
#if !defined(__STDC__) && !defined(__cplusplus)
#define const
#endif
/*
Set up a boolean variable type. Since this definition could conflict
with other reasonable definition of BOOLEAN, i.e. using an enumeration,
it is conditional.
*/
#ifndef BOOLEAN_TYPE_DEFINED
typedef i... | #ifndef CONSTANTS_H
#define CONSTANTS_H
#if !defined(__STDC__) && !defined(__cplusplus)
#define const
#endif
/*
Set up a boolean variable type. Since this definition could conflict
with other reasonable definition of BOOLEAN, i.e. using an enumeration,
it is conditional.
*/
#ifndef BOOLEAN_TYPE_DEFINED
typedef i... | Add BOOL typedef becuase BOOLEAN is too verbose. | Add BOOL typedef becuase BOOLEAN is too verbose.
| C | apache-2.0 | djw8605/condor,htcondor/htcondor,neurodebian/htcondor,bbockelm/condor-network-accounting,clalancette/condor-dcloud,htcondor/htcondor,neurodebian/htcondor,mambelli/osg-bosco-marco,zhangzhehust/htcondor,bbockelm/condor-network-accounting,mambelli/osg-bosco-marco,clalancette/condor-dcloud,bbockelm/condor-network-accountin... |
4313cb62c47240baa244e521db53531686286afd | tensorflow/lite/core/shims/cc/kernels/register.h | tensorflow/lite/core/shims/cc/kernels/register.h | /* Copyright 2020 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 2020 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... | Fix wrong namespace in recently-added shim header. | Fix wrong namespace in recently-added shim header.
PiperOrigin-RevId: 344072784
Change-Id: I8e1de38f2bb932afd9e905551953f45046db45c9
| C | apache-2.0 | petewarden/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,karllessard/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-experimental_link_s... |
04981f7369b37585c856a32feb71eb264bf0db84 | tools/spiffsimg/spiffs_typedefs.h | tools/spiffsimg/spiffs_typedefs.h | #include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
typedef int32_t s32_t;
typedef uint32_t u32_t;
typedef int16_t s16_t;
typedef uint16_t u16_t;
typedef int8_t s8_t;
typedef uint8_t u8_t;
typedef long long ptrdiff_t;
#define offsetof(type, member) __builtin_offsetof (type, member)
| #include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
typedef int32_t s32_t;
typedef uint32_t u32_t;
typedef int16_t s16_t;
typedef uint16_t u16_t;
typedef int8_t s8_t;
typedef uint8_t u8_t;
#ifndef __CYGWIN__
typedef long long ptrdiff_t;
#define offsetof(type, member) __builtin_offseto... | Add cygwin support for compiling spiffsimg | Add cygwin support for compiling spiffsimg
| C | mit | FelixPe/nodemcu-firmware,HEYAHONG/nodemcu-firmware,nwf/nodemcu-firmware,FelixPe/nodemcu-firmware,devsaurus/nodemcu-firmware,eku/nodemcu-firmware,marcelstoer/nodemcu-firmware,vsky279/nodemcu-firmware,TerryE/nodemcu-firmware,TerryE/nodemcu-firmware,devsaurus/nodemcu-firmware,nwf/nodemcu-firmware,nodemcu/nodemcu-firmware,... |
e2a56532a31b57dbe6e8f6bec74899deb724b2a3 | chrome/browser/extensions/extension_message_handler.h | chrome/browser/extensions/extension_message_handler.h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_
#define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_
#pragma once
#include "... | // 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_
#define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_
#pragma once
#include "... | Clarify class comment for ExtensionMessageHandler. | Clarify class comment for ExtensionMessageHandler.
TBR=jam@chromium.org
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@82674 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | patrickm/chromium.src,rogerwang/chromium,pozdnyakov/chromium-crosswalk,ltilve/chromium,axinging/chromium-crosswalk,zcbenz/cefode-chromium,ltilve/chromium,fujunwei/chromium-crosswalk,markYoungH/chromium.src,ondra-novak/chromium.src,robclark/chromium,axinging/chromium-crosswalk,axinging/chromium-crosswalk,mohamed--abdel-... |
93bab8bda167cd28c0b356001a043927ff9f9a50 | test/Driver/XRay/xray-instrument-os.c | test/Driver/XRay/xray-instrument-os.c | // RUN: not %clang -o /dev/null -v -fxray-instrument -c %s
// XFAIL: -linux-
// REQUIRES-ANY: amd64, x86_64, x86_64h, arm, aarch64, arm64
typedef int a;
| // RUN: not %clang -o /dev/null -v -fxray-instrument -c %s
// XFAIL: -linux-
// REQUIRES: amd64 || x86_64 || x86_64h || arm || aarch64 || arm64
typedef int a;
| Replace `REQUIRES-ANY: a, b, c` with `REQUIRES: a || b || c`. | [test] Replace `REQUIRES-ANY: a, b, c` with `REQUIRES: a || b || c`.
Requires the new `lit` boolean expressions in LLVM r292896.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@292897 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl... |
090cf42f736ad66ecc9360cf2770d83f8ea30574 | 3RVX/Controllers/Volume/VolumeTransformation.h | 3RVX/Controllers/Volume/VolumeTransformation.h | #pragma once
class VolumeTransformation {
public:
/// <summary>
/// Transforms a given volume level to a new ("virtual") level based on a
/// formula or set of rules (e.g., a volume curve transformation).
/// </summary>
virtual float Apply(float vol) = 0;
/// <summary>
/// Given a transfor... | #pragma once
class VolumeTransformation {
public:
/// <summary>
/// Transforms a given volume level to a new ("virtual") level based on a
/// formula or set of rules (e.g., a volume curve transformation).
/// </summary>
virtual float Apply(float vol) = 0;
/// <summary>
/// Given a transfor... | Add methods to apply multiple transformations | Add methods to apply multiple transformations
| C | bsd-2-clause | malensek/3RVX,malensek/3RVX,malensek/3RVX |
0d2669635000a9815823129f10641fecfbe68da3 | master/types.h | master/types.h | //Declarations for master types
typedef enum
{
Register = 0
} MODBUSDataType; //MODBUS data types enum (coil, register, input, etc.)
typedef struct
{
uint8_t Address; //Device address
uint8_t Code; //Exception code
} MODBUSExceptionLog; //Parsed exception data
typedef struct
{
uint8_t Address; //Device address
... | //Declarations for master types
typedef enum
{
Register = 0
} MODBUSDataType; //MODBUS data types enum (coil, register, input, etc.)
typedef struct
{
uint8_t Address; //Device address
uint8_t Function; //Function called, in which exception occured
uint8_t Code; //Exception code
} MODBUSExceptionLog; //Parsed exce... | Add function ID member in MODBUSExceptionLog structure | Add function ID member in MODBUSExceptionLog structure
| C | mit | Jacajack/modlib |
9705782c98265c05bc87a10b1fb69bd35781c754 | decoder/dict.h | decoder/dict.h | #ifndef DICT_H_
#define DICT_H_
#include <cassert>
#include <cstring>
#include <tr1/unordered_map>
#include <string>
#include <vector>
#include <boost/functional/hash.hpp>
#include "wordid.h"
class Dict {
typedef std::tr1::unordered_map<std::string, WordID, boost::hash<std::string> > Map;
public:
Dict() : b0_("... | #ifndef DICT_H_
#define DICT_H_
#include <cassert>
#include <cstring>
#include <tr1/unordered_map>
#include <string>
#include <vector>
#include <boost/functional/hash.hpp>
#include "wordid.h"
class Dict {
typedef std::tr1::unordered_map<std::string, WordID, boost::hash<std::string> > Map;
public:
Dict() : b0_(... | Update utility functions to work with pyp-topics. | Update utility functions to work with pyp-topics.
git-svn-id: 357248c53bdac2d7b36f7ee045286eb205fcf757@49 ec762483-ff6d-05da-a07a-a48fb63a330f
| C | apache-2.0 | pks/cdec-dtrain-legacy,kho/mr-cdec,kho/mr-cdec,agesmundo/FasterCubePruning,agesmundo/FasterCubePruning,kho/mr-cdec,agesmundo/FasterCubePruning,pks/cdec-dtrain-legacy,pks/cdec-dtrain-legacy,agesmundo/FasterCubePruning,pks/cdec-dtrain-legacy,agesmundo/FasterCubePruning,kho/mr-cdec,kho/mr-cdec,agesmundo/FasterCubePruning,... |
723fda1013baccca0a0686d465fb47b426ebc6b8 | bayesiannetwork.h | bayesiannetwork.h | #include "bayesian.h"
namespace baysian {
class bayesianNetwork : public bayesian {
private:
long double ***cpt;
double *classCount; // this array store the total number of each
// decision's class in training data
int *discrete;
int *classNum; // this array store the number ... | #include "bayesian.h"
namespace baysian {
class bayesianNetwork : public bayesian {
private:
long double ***cpt;
int **parent;
public:
bayesianNetwork(char *);
~bayesianNetwork();
// initialize all the information we need from training data
void predict(char *);
// calculate the probabili... | Move variable to base class | Move variable to base class
| C | mit | lrvine/Bayesian |
a4dc43cdec3a5bdee8829e4104ff732f995c8cc6 | 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 97
#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 98
#endif
| Update Skia milestone to 98 | Update Skia milestone to 98
Change-Id: I937e0594b8fa3a1cc5ac2e2b80d1f0f406772817
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/468338
Reviewed-by: Eric Boren <0e499112533c8544f0505ea0d08394fb5ad7d8fa@google.com>
Commit-Queue: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
| C | bsd-3-clause | aosp-mirror/platform_external_skia,google/skia,google/skia,google/skia,google/skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_exter... |
7acf4549932adde2961864023db47ebfde07440d | test/Frontend/dependency-gen.c | test/Frontend/dependency-gen.c | // rdar://6533411
// RUN: %clang -MD -MF %t.d -S -x c -o %t.o %s
// RUN: grep '.*dependency-gen.*:' %t.d
// RUN: grep 'dependency-gen.c' %t.d
// RUN: %clang -S -M -x c %s -o %t.d
// RUN: grep '.*dependency-gen.*:' %t.d
// RUN: grep 'dependency-gen.c' %t.d
// PR8974
// XFAIL: win32
// RUN: rm -rf %t.dir
// RUN: mkdir ... | // rdar://6533411
// RUN: %clang -MD -MF %t.d -S -x c -o %t.o %s
// RUN: grep '.*dependency-gen.*:' %t.d
// RUN: grep 'dependency-gen.c' %t.d
// RUN: %clang -S -M -x c %s -o %t.d
// RUN: grep '.*dependency-gen.*:' %t.d
// RUN: grep 'dependency-gen.c' %t.d
// PR8974
// XFAIL: win32
// RUN: rm -rf %t.dir
// RUN: mkdir ... | Tweak this test a bit further to make it easier on grep. Who knows what characters get dropped into the regular expression from %t. | Tweak this test a bit further to make it easier on grep. Who knows what
characters get dropped into the regular expression from %t.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@126361 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... |
3df2ab08d7c3be79b496ebc746ca371ba25a3db1 | util/malloccache.h | util/malloccache.h | #ifndef MALLOCCACHE_H
#define MALLOCCACHE_H
template <size_t blockSize, size_t blockCount>
class MallocCache
{
public:
MallocCache()
: m_blocksCached(0)
{
}
~MallocCache()
{
assert(m_blocksCached >= 0 && m_blocksCached <= blockCount);
for (size_t i = 0; i < m_blocksCached; i... | #ifndef MALLOCCACHE_H
#define MALLOCCACHE_H
template <size_t blockSize, size_t blockCount>
class MallocCache
{
public:
MallocCache()
: m_blocksCached(0)
{
}
~MallocCache()
{
assert(m_blocksCached >= 0 && m_blocksCached <= blockCount);
for (size_t i = 0; i < m_blocksCached; i... | Fix a preprocessor syntax error. Strangely, the file still compiled. | Fix a preprocessor syntax error. Strangely, the file still compiled.
| C | lgpl-2.1 | KDE/dferry,KDE/dferry |
ddde9def184d2a4aae122a74db99ec1b732504e5 | benchmarks/halide/wrapper_fusion.h | benchmarks/halide/wrapper_fusion.h | #ifndef HALIDE__build___wrapper_fusion_o_h
#define HALIDE__build___wrapper_fusion_o_h
#include <coli/utils.h>
#ifdef __cplusplus
extern "C" {
#endif
int fusion_coli(buffer_t *_b_input_buffer, buffer_t *_b_output_f_buffer, buffer_t *_b_output_g_buffer) HALIDE_FUNCTION_ATTRS;
int fusion_coli_argv(void **args) HALIDE_F... | #ifndef HALIDE__build___wrapper_fusion_o_h
#define HALIDE__build___wrapper_fusion_o_h
#include <coli/utils.h>
#ifdef __cplusplus
extern "C" {
#endif
int fusion_coli(buffer_t *_b_input_buffer, buffer_t *_b_output_f_buffer, buffer_t *_b_output_g_buffer, buffer_t *_b_output_h_buffer, buffer_t *_b_output_k_buffer) HALID... | Update wrapper fusion header file | Update wrapper fusion header file
| C | mit | rbaghdadi/tiramisu,rbaghdadi/COLi,rbaghdadi/ISIR,rbaghdadi/tiramisu,rbaghdadi/ISIR,rbaghdadi/COLi,rbaghdadi/tiramisu,rbaghdadi/tiramisu |
9c3742a8d8a829ec746e0a974aa30fb5dd0e3d1a | src/tslib-private.h | src/tslib-private.h | #ifndef _TSLIB_PRIVATE_H_
#define _TSLIB_PRIVATE_H_
/*
* tslib/src/tslib-private.h
*
* Copyright (C) 2001 Russell King.
*
* This file is placed under the LGPL.
*
*
* Internal touch screen library definitions.
*/
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#include "tslib.h"
#include "tslib-filt... | #ifndef _TSLIB_PRIVATE_H_
#define _TSLIB_PRIVATE_H_
/*
* tslib/src/tslib-private.h
*
* Copyright (C) 2001 Russell King.
*
* This file is placed under the LGPL.
*
*
* Internal touch screen library definitions.
*/
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#include "tslib.h"
#include "tslib-filt... | Enable debug option for all components | Enable debug option for all components
| C | lgpl-2.1 | kergoth/tslib,vpeter4/tslib,lin2724/tslib,lin2724/tslib,vpeter4/tslib,pssc/tslib,kergoth/tslib,kobolabs/tslib,etmatrix/tslib,jaretcantu/tslib,leighmurray/tslib,pssc/tslib,kobolabs/tslib,etmatrix/tslib,pssc/tslib,leighmurray/tslib,folkien/tslib,folkien/tslib,etmatrix/tslib,kergoth/tslib,kergoth/tslib,jaretcantu/tslib,ko... |
c5600ec92f953554dbb2f34ab8b17938620cff65 | src/os/Win32/os_common.h | src/os/Win32/os_common.h | #ifndef OS_COMMON_H_
#define OS_COMMON_H_
#include <stddef.h>
#include <fcntl.h>
#include <io.h>
#include <stdio.h>
/*
* MinGW lfind() and friends use `unsigned int *` where they should use a
* `size_t *` according to the man page.
*/
typedef unsigned int lfind_size_t;
// timeradd doesn't exist on MinGW
#ifndef t... | #ifndef OS_COMMON_H_
#define OS_COMMON_H_
#include <stddef.h>
#include <fcntl.h>
#include <io.h>
#include <stdio.h>
#include <sys/time.h>
/*
* MinGW lfind() and friends use `unsigned int *` where they should use a
* `size_t *` according to the man page.
*/
typedef unsigned int lfind_size_t;
// timeradd doesn't ex... | Implement timeradd as an inline function | Implement timeradd as an inline function
| C | mit | kulp/tenyr,kulp/tenyr,kulp/tenyr |
9004e0e41a58b5af376d169bf91d320ce6705b36 | adapters/Vungle/Public/Headers/VungleAdNetworkExtras.h | adapters/Vungle/Public/Headers/VungleAdNetworkExtras.h | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | Add video orientation to play ad option | Add video orientation to play ad option
| C | apache-2.0 | googleads/googleads-mobile-ios-mediation,googleads/googleads-mobile-ios-mediation,googleads/googleads-mobile-ios-mediation,googleads/googleads-mobile-ios-mediation |
7c73373b2c3a3b22afa807ac64d468cdf5e0f570 | hellow_ioctl.h | hellow_ioctl.h | #ifndef HELLOW_IOCTL_H
#define HELLOW_IOCTL_H
#define HWM_LOG_OFF 0xff00
#define HWM_LOG_ON 0xff01
#endif
| #ifndef HELLOW_IOCTL_H
#define HELLOW_IOCTL_H
#define HWM_LOG_OFF 0xff00
#define HWM_LOG_ON 0xff01
#define HWM_GET_LOG_ENT_SIZE 0xff02
#define HWM_GET_LOG_ENT 0xff03
#endif
| Add macros for ioctl fetching of log data. | Add macros for ioctl fetching of log data.
| C | apache-2.0 | utsaslab/crashmonkey,utsaslab/crashmonkey,utsaslab/crashmonkey,utsaslab/crashmonkey |
f7629773ce822641fcb918f68c4c47d79c90f903 | Artsy/Classes/Views/ARArtworkRelatedArtworksView.h | Artsy/Classes/Views/ARArtworkRelatedArtworksView.h | #import "ARArtworkMasonryModule.h"
#import "ARArtworkViewController.h"
typedef NS_ENUM(NSInteger, ARRelatedArtworksSubviewOrder) {
ARRelatedArtworksSameShow = 1,
ARRelatedArtworksSameFair,
ARRelatedArtworksSameAuction,
ARRelatedArtworksArtistArtworks,
ARRelatedArtworks,
};
@class ARArtworkRelatedA... | #import "ARArtworkMasonryModule.h"
#import "ARArtworkViewController.h"
typedef NS_ENUM(NSInteger, ARRelatedArtworksSubviewOrder) {
ARRelatedArtworksSameShow = 1,
ARRelatedArtworksSameFair,
ARRelatedArtworksSameAuction,
ARRelatedArtworksArtistArtworks,
ARRelatedArtworks,
};
@class ARArtworkRelatedA... | Make adding related works sections private. | [Artwork] Make adding related works sections private.
| C | mit | 1aurabrown/eigen,artsy/eigen,Havi4/eigen,artsy/eigen,mbogh/eigen,TribeMedia/eigen,gaurav1981/eigen,Havi4/eigen,artsy/eigen,ichu501/eigen,sarahscott/eigen,orta/eigen,ichu501/eigen,gaurav1981/eigen,ashkan18/eigen,ayunav/eigen,liduanw/eigen,ACChe/eigen,artsy/eigen,artsy/eigen,foxsofter/eigen,Shawn-WangDapeng/eigen,ayunav/... |
c183c2b8aac1bfaefe82c9532bd16ec0f373142b | lib/callbacks.c | lib/callbacks.c | #include <libterm_internal.h>
void term_update(term_t_i *term)
{
if( term->dirty.exists && term->update != NULL ) {
term->update(TO_H(term), term->dirty.x, term->dirty.y, term->dirty.width, term->dirty.height);
term->dirty.exists = false;
}
}
void term_cursor_update(term_t_i *term)
{
if( t... | #include <libterm_internal.h>
void term_update(term_t_i *term)
{
if( term->dirty.exists && term->update != NULL ) {
term->update(TO_H(term), term->dirty.x, term->dirty.y - (term->grid.history - term->grid.height), term->dirty.width, term->dirty.height);
term->dirty.exists = false;
}
}
void ter... | Fix update callback position to be grid-relative not scrollback-relative. | Fix update callback position to be grid-relative not scrollback-relative.
| C | apache-2.0 | absmall/libterm,absmall/libterm |
21c2371374733091f549f1c7451261e6237af646 | ext/ffi_c/rbffi.h | ext/ffi_c/rbffi.h | /*
* File: rbffi.h
* Author: wayne
*
* Created on August 27, 2008, 5:40 PM
*/
#ifndef _RBFFI_H
#define _RBFFI_H
#include <ruby.h>
#ifdef __cplusplus
extern "C" {
#endif
#define MAX_PARAMETERS (32)
extern void rb_FFI_AbstractMemory_Init();
extern void rb_FFI_MemoryPointer_Init();
extern void rb_FFI_Buff... | #ifndef _RBFFI_H
#define _RBFFI_H
#include <ruby.h>
#ifdef __cplusplus
extern "C" {
#endif
#define MAX_PARAMETERS (32)
extern void rb_FFI_AbstractMemory_Init();
extern void rb_FFI_MemoryPointer_Init();
extern void rb_FFI_Buffer_Init();
extern void rb_FFI_Callback_Init();
extern void rb_FFI_Invoker_Init();
exter... | Remove comment at top of file | Remove comment at top of file
| C | bsd-3-clause | ffi/ffi,sparkchaser/ffi,yghannam/ffi,yghannam/ffi,sparkchaser/ffi,tduehr/ffi,MikaelSmith/ffi,sparkchaser/ffi,MikaelSmith/ffi,sparkchaser/ffi,MikaelSmith/ffi,mvz/ffi,ferventcoder/ffi,yghannam/ffi,ferventcoder/ffi,majioa/ffi,mvz/ffi,ferventcoder/ffi,tduehr/ffi,MikaelSmith/ffi,ferventcoder/ffi,ffi/ffi,tduehr/ffi,mvz/ffi,y... |
8504c7c838219029c7e92818f663c777b8bbe5b6 | common_audio/signal_processing/cross_correlation.c | common_audio/signal_processing/cross_correlation.c | /*
* Copyright (c) 2012 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... | /*
* Copyright (c) 2012 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... | Test whether removing a cast still hurts performance. | Test whether removing a cast still hurts performance.
BUG=499241
TEST=none
TBR=andrew
Review URL: https://codereview.webrtc.org/1206653002
Cr-Original-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#9491}
Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc
Cr-Mirrored-Commit: 6bfc82aaf18e... | C | bsd-3-clause | jchavanton/webrtc,aleonliao/webrtc-trunk,jchavanton/webrtc,Alkalyne/webrtctrunk,jchavanton/webrtc,aleonliao/webrtc-trunk,Alkalyne/webrtctrunk,aleonliao/webrtc-trunk,sippet/webrtc,jchavanton/webrtc,Alkalyne/webrtctrunk,Alkalyne/webrtctrunk,jchavanton/webrtc,sippet/webrtc,jchavanton/webrtc,Alkalyne/webrtctrunk,aleonliao/... |
8d3fcee6c93cff3bded1a37cdd052da1ef89c65d | src/shared/Threading/AEThread.h | src/shared/Threading/AEThread.h | #pragma once
#include "ThreadState.h"
#include <atomic>
#include <mutex>
#include <thread>
// Lightweight wrapper for std::thread to provide extensibility
namespace AscEmu { namespace Threading
{
class AEThread
{
typedef std::function<void(AEThread&)> ThreadFunc;
static std::atomic<unsigned i... | #pragma once
#include "ThreadState.h"
#include <atomic>
#include <mutex>
#include <thread>
// Lightweight wrapper for std::thread to provide extensibility
namespace AscEmu { namespace Threading
{
class AEThread
{
typedef std::function<void(AEThread&)> ThreadFunc;
static std::atomic<unsigned i... | Make threads autostart by default | Make threads autostart by default
| C | agpl-3.0 | master312/AscEmu,Appled/AscEmu,master312/AscEmu,AscEmu/AscEmu,Appled/AscEmu,master312/AscEmu,AscEmu/AscEmu,Appled/AscEmu,AscEmu/AscEmu,master312/AscEmu,master312/AscEmu,master312/AscEmu |
dec3653d15e4bbe71c1652d9f75e8a0b8573a3ee | libpkg/pkg_error.h | libpkg/pkg_error.h | #ifndef _PKG_ERROR_H
#define _PKG_ERROR_H
#ifdef DEBUG
# define pkg_error_set(code, fmt, ...) \
_pkg_error_set(code, fmt " [at %s:%d]", ##__VA_ARGS__, __FILE__, __LINE__)
#else
# define pkg_error_set _pkg_error_set
#endif
#define ERROR_BAD_ARG(name) \
pkg_error_set(EPKG_FATAL, "Bad argument `%s` in %s", name, __FU... | #ifndef _PKG_ERROR_H
#define _PKG_ERROR_H
#ifdef DEBUG
# define pkg_error_set(code, fmt, ...) \
_pkg_error_set(code, fmt " [at %s:%d]", ##__VA_ARGS__, __FILE__, __LINE__)
#else
# define pkg_error_set _pkg_error_set
#endif
#define ERROR_BAD_ARG(name) \
pkg_error_set(EPKG_FATAL, "Bad argument `%s` in %s", name, __FU... | Revert "Indicate the location of sqlite failures." | Revert "Indicate the location of sqlite failures."
This reverts commit 2686383409d98488ae7b2c39d531af9ef380e21a.
| C | bsd-2-clause | junovitch/pkg,Open343/pkg,junovitch/pkg,khorben/pkg,khorben/pkg,skoef/pkg,Open343/pkg,skoef/pkg,khorben/pkg,en90/pkg,en90/pkg |
7ef1bd0d3543ec940405f94e3c908771b6a3c210 | lib/uart.h | lib/uart.h | /**
* This is used to setup the UART device on an AVR unit.
*/
#pragma once
#include <avr/io.h>
#ifndef BAUD
# define BAUD 9600
# warning BAUD rate not set. Setting BAUD rate to 9600.
#endif // BAUD
#define BAUDRATE ((F_CPU)/(BAUD*16UL)-1)
static inline void uart_enable(void) {
UBRR0H = BAUDRATE >> 8;
UBR... | /**
* This is used to setup the UART device on an AVR unit.
*/
#pragma once
#include <avr/io.h>
#ifndef BAUD
# define BAUD 9600
# warning BAUD rate not set. Setting BAUD rate to 9600.
#endif // BAUD
#define BAUDRATE ((F_CPU)/(BAUD*16UL)-1)
static inline void uart_enable(void) {
UBRR0H = BAUDRATE >> 8;
UBR... | Correct the frame format and async mode for the UART. Add useful comments. | Correct the frame format and async mode for the UART. Add useful comments.
| C | mpl-2.0 | grimwm/avr,grimwm/avr,grimwm/avr,grimwm/avr |
eb310eabb13ab391eb3feaccae8c937b29f726fe | src/main.c | src/main.c | #include "common.h"
int main(int argc, char **argv) {
return 0;
}
| #include "common.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
internal
void usage() {
fprintf(stderr,
"usage: mepa <command> [<options>] [<args>]\n"
"\n"
"Commands:\n"
" help - show this usage text\n"
" format [<file>] - reformat code\n... | Add basic argument parsing and file reading | Add basic argument parsing and file reading
| C | isc | klkblake/mepa,klkblake/mepa |
dd552085c82924e28eaab28fad410b459c3fd71a | src/main.c | src/main.c | #include <stdio.h>
#include "src/sea.h"
int main(int argc, char* argv[]) {
// parse arguments
while((opt = getopt(argc, argv, "d:")) != -1) {
switch(opt) {
case 'd': {
extern int yydebug;
yydebug = 1;
}
default: {
fpri... | #include <stdlib.h>
#include <stdio.h>
#include "src/sea.h"
int main(int argc, char* argv[]) {
// parse arguments
char opt;
extern int optind;
while((opt = getopt(argc, argv, "d")) != -1) {
switch(opt) {
case 'd': {
extern int yydebug;
yydebug = 1;
... | Mend command line flag parsing | Mend command line flag parsing
| C | mit | Mause/sea_lang,Mause/sea_lang,Mause/sea_lang |
68b86d666521178f1b994c6c86a5539e35f66a52 | paddle/fluid/framework/details/execution_strategy.h | paddle/fluid/framework/details/execution_strategy.h | // Copyright (c) 2018 PaddlePaddle 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... | // Copyright (c) 2018 PaddlePaddle 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... | Change default value to align with the original react | Change default value to align with the original react
test=develop
| C | apache-2.0 | chengduoZH/Paddle,PaddlePaddle/Paddle,tensor-tang/Paddle,tensor-tang/Paddle,luotao1/Paddle,chengduoZH/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,baidu/Paddle,luotao1/Paddle,chengduoZH/Paddle,chengduoZH/Paddle,baidu/Paddle,chengduoZH/Paddle,luotao1/Paddle,tensor-tang/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,baidu/Paddle... |
7d8a38b200cd70bef0300ce482c0723e8d64406b | log/log_singleton.h | log/log_singleton.h | #ifndef _LOG_SINGLETON_H_
#define _LOG_SINGLETON_H_
#include "log.h"
#include "basedefs.h"
namespace anp
{
class LogSingleton: public anp::Log
{
public:
static LogSingleton &getInstance();
static void releaseInstance();
private:
LogSingleton() { }
~LogSingleton() { }
static uint32 m_refCount;
static LogSingl... | #ifndef _LOG_SINGLETON_H_
#define _LOG_SINGLETON_H_
#include "log.h"
#include "basedefs.h"
namespace anp
{
class LogSingleton: public anp::Log
{
public:
static LogSingleton &getInstance();
static void releaseInstance();
private:
LogSingleton() { }
~LogSingleton() { }
static uint32 m_refCount;
static LogSingl... | Add overloaded () operator to LogSingletonHelper. | Add overloaded () operator to LogSingletonHelper.
| C | bsd-2-clause | antonp/anpcode,antonp/anpcode |
9a1a3f47cc175cb4588451e2c6bf2147407e16f0 | test/Analysis/null-deref-path-notes.c | test/Analysis/null-deref-path-notes.c | // RUN: %clang_analyze_cc1 -w -x c -analyzer-checker=core -analyzer-output=text -verify %s
// Avoid the crash when finding the expression for tracking the origins
// of the null pointer for path notes. Apparently, not much actual tracking
// needs to be done in this example.
void pr34373() {
int *a = 0; // expected-... | // RUN: %clang_analyze_cc1 -w -x c -analyzer-checker=core -analyzer-output=text -verify %s
// Avoid the crash when finding the expression for tracking the origins
// of the null pointer for path notes.
void pr34373() {
int *a = 0; // expected-note{{'a' initialized to a null pointer value}}
(a + 0)[0]; // expected-... | Fix an outdated comment in a test. NFC. | [analyzer] Fix an outdated comment in a test. NFC.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@314298 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang |
8bc349742bc3c97da5bb88d382bc0860f7eb3399 | SearchEngine/UnicodeUtf16StringSearcher.h | SearchEngine/UnicodeUtf16StringSearcher.h | #pragma once
class UnicodeUtf16StringSearcher
{
private:
const wchar_t* m_Pattern;
uint32_t m_PatternLength;
public:
UnicodeUtf16StringSearcher() :
m_Pattern(nullptr)
{
}
void Initialize(const wchar_t* pattern, size_t patternLength)
{
if (patternLength > std::numeric_limits<uint32_t>::max() / 2)
__fast... | #pragma once
class UnicodeUtf16StringSearcher
{
private:
const wchar_t* m_Pattern;
uint32_t m_PatternLength;
public:
UnicodeUtf16StringSearcher() :
m_Pattern(nullptr)
{
}
void Initialize(const wchar_t* pattern, size_t patternLength)
{
if (patternLength > std::numeric_limits<uint32_t>::max() / 2)
__fast... | Fix case insensitive UTF16 string search. | Fix case insensitive UTF16 string search.
| C | mit | TautvydasZilys/FileSystemSearch,TautvydasZilys/FileSystemSearch,TautvydasZilys/FileSystemSearch |
1c242f3f29c36dc6cc5d8233d51c5e4c18be079b | src/QGCConfig.h | src/QGCConfig.h | #ifndef QGC_CONFIGURATION_H
#define QGC_CONFIGURATION_H
#include <QString>
/** @brief Polling interval in ms */
#define SERIAL_POLL_INTERVAL 4
/** @brief Heartbeat emission rate, in Hertz (times per second) */
#define MAVLINK_HEARTBEAT_DEFAULT_RATE 1
#define WITH_TEXT_TO_SPEECH 1
// If you need to make an incompati... | #ifndef QGC_CONFIGURATION_H
#define QGC_CONFIGURATION_H
#include <QString>
/** @brief Polling interval in ms */
#define SERIAL_POLL_INTERVAL 4
/** @brief Heartbeat emission rate, in Hertz (times per second) */
#define MAVLINK_HEARTBEAT_DEFAULT_RATE 1
#define WITH_TEXT_TO_SPEECH 1
// If you need to make an incompati... | Switch to Stable V2.3 Release Candidates | Switch to Stable V2.3 Release Candidates
| C | agpl-3.0 | RedoXyde/PX4_qGCS,fizzaly/qgroundcontrol,CornerOfSkyline/qgroundcontrol,greenoaktree/qgroundcontrol,Hunter522/qgroundcontrol,CornerOfSkyline/qgroundcontrol,hejunbok/qgroundcontrol,catch-twenty-two/qgroundcontrol,remspoor/qgroundcontrol,UAVenture/qgroundcontrol,caoxiongkun/qgroundcontrol,devbharat/qgroundcontrol,CornerO... |
3310df62860d762d150833524c9bc5dc3126dbee | src/logging.c | src/logging.c | #include <stdio.h>
#include <stdlib.h>
#include <syslog.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <US/unitscript.h>
#include <US/logging.h>
int us_syslog_redirect( struct us_unitscript* unit, int priority ){
int fds[2];
if( pipe(fds) ){
perror("pipe failed");
return -1;
}
... | #include <stdio.h>
#include <stdlib.h>
#include <syslog.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <US/unitscript.h>
#include <US/logging.h>
int us_syslog_redirect( struct us_unitscript* unit, int priority ){
int fds[2];
if( pipe(fds) ){
perror("pipe failed");
return -1;
}
... | Reduce memory usage of us_syslog_redirect | Reduce memory usage of us_syslog_redirect
| C | mit | Daniel-Abrecht/unitscript |
b94f14c84c567c1c0433bba0e4f12d0d4771b718 | extensions/protocol_extension.h | extensions/protocol_extension.h | /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#ifndef EXAMPLE_PROTOCOL_H
#define EXAMPLE_PROTOCOL_H
#include <daemon/settings.h>
#include <memcached/engine.h>
#ifdef __cplusplus
extern "C" {
#endif
MEMCACHED_PUBLIC_API
EXTENSION_ERROR_CODE memcached_extensions_initialize(const ... | /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#ifndef EXAMPLE_PROTOCOL_H
#define EXAMPLE_PROTOCOL_H
#include <daemon/settings.h>
#include <memcached/engine.h>
#ifdef __cplusplus
extern "C" {
#endif
MEMCACHED_PUBLIC_API
EXTENSION_ERROR_CODE memcached_extensions_initialize(const ... | Fix dlsym error 'Could not find symbol "file_logger_initialize"' | Fix dlsym error 'Could not find symbol "file_logger_initialize"'
Wrap file_logger_initialize into extern "C" to prevent name mangling,
which caused the error above.
Change-Id: I8c8e1e61599f2afb6dedf4e0b71c0a5a013ccbb7
Reviewed-on: http://review.couchbase.org/86829
Tested-by: Build Bot <80754af91bfb6d1073585b046fe0a47... | C | bsd-3-clause | daverigby/kv_engine,daverigby/kv_engine,daverigby/kv_engine,daverigby/kv_engine |
f87946732ab9e2e9be8e90793ca0c5939f9a939e | source/target/freescale/kl82z/target.c | source/target/freescale/kl82z/target.c | /**
* @file target.c
* @brief Target information for the kl46z
*
* DAPLink Interface Firmware
* Copyright (c) 2009-2016, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in complian... | /**
* @file target.c
* @brief Target information for the kl46z
*
* DAPLink Interface Firmware
* Copyright (c) 2009-2016, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in complian... | Fix ram end for kl82z | Fix ram end for kl82z
Fix typo in target_device for the kl82z. This fixes programming
for this device.
| C | apache-2.0 | google/DAPLink-port,google/DAPLink-port,sg-/DAPLink,google/DAPLink-port,sg-/DAPLink,sg-/DAPLink,google/DAPLink-port |
ac0afc8c605ab6039b1a5c25f2b7105f7e5456f5 | test/Preprocessor/headermap-rel2.c | test/Preprocessor/headermap-rel2.c | // This uses a headermap with this entry:
// someheader.h -> Product/someheader.h
// RUN: %clang_cc1 -v -fsyntax-only %s -iquote %S/Inputs/headermap-rel2/project-headers.hmap -isysroot %S/Inputs/headermap-rel2/system -I %S/Inputs/headermap-rel2 -H
// RUN: %clang_cc1 -fsyntax-only %s -iquote %S/Inputs/headermap-rel2/... | // This uses a headermap with this entry:
// someheader.h -> Product/someheader.h
// RUN: %clang_cc1 -triple x86_64-apple-darwin13 -v -fsyntax-only %s -iquote %S/Inputs/headermap-rel2/project-headers.hmap -isysroot %S/Inputs/headermap-rel2/system -I %S/Inputs/headermap-rel2 -H
// RUN: %clang_cc1 -triple x86_64-apple... | Add a triple to the test. | [test] Add a triple to the test.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@205073 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl... |
9785f6c7f58c21a10221aee23657cca4aa4ff883 | MatrixSDK/Crypto/SecretStorage/MXSecretStorage_Private.h | MatrixSDK/Crypto/SecretStorage/MXSecretStorage_Private.h | /*
Copyright 2020 The Matrix.org Foundation C.I.C
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | /*
Copyright 2020 The Matrix.org Foundation C.I.C
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | Make aes-hmac-sha2 encryption methods from `MXSecretStorage` available in SDK | Make aes-hmac-sha2 encryption methods from `MXSecretStorage` available in SDK
| C | apache-2.0 | matrix-org/matrix-ios-sdk,matrix-org/matrix-ios-sdk,matrix-org/matrix-ios-sdk,matrix-org/matrix-ios-sdk,matrix-org/matrix-ios-sdk |
dc95f76e50db1a65d39630c854ebe40620fe9f00 | You-DataStore/datastore.h | You-DataStore/datastore.h | #pragma once
#ifndef YOU_DATASTORE_DATASTORE_H_
#define YOU_DATASTORE_DATASTORE_H_
#include <memory>
#include "task_typedefs.h"
#include "transaction.h"
namespace You {
namespace DataStore {
namespace UnitTests {}
class DataStore {
public:
Transaction && begin();
static DataStore& get();
// Modifying methods
v... | #pragma once
#ifndef YOU_DATASTORE_DATASTORE_H_
#define YOU_DATASTORE_DATASTORE_H_
#include <memory>
#include "task_typedefs.h"
#include "transaction.h"
namespace You {
namespace DataStore {
namespace UnitTests {}
class DataStore {
public:
Transaction && begin();
static DataStore& get();
// Modifying methods
v... | Add active transaction member variable to DataStore | Add active transaction member variable to DataStore
| C | mit | cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main |
376adcdd2b1aae6e7465a4307214447bc0de0a75 | resources/standard_file_template.h | resources/standard_file_template.h | /******************************************************************************/
/**
@file
@author AUTHOR NAME HERE.
@brief BRIEF HERE.
@copyright Copyright 2016
The University of British Columbia,
IonDB Project Contributors (see @ref AUTHORS.md)
@par
Licensed under the Apache License, Version 2.0 (the "Li... | /******************************************************************************/
/**
@file
@author AUTHOR NAME HERE.
@brief BRIEF HERE.
@copyright Copyright 2016
The University of British Columbia,
IonDB Project Contributors (see @ref AUTHORS.md)
@par
Licensed under the Apache License, Version 2.0 (the "Li... | Fix smart quote in file template | Fix smart quote in file template
| C | bsd-3-clause | iondbproject/iondb,iondbproject/iondb |
1e0998cf1d80b72eafd1639c839c86ac6f38a6ef | test/util/SeqUtils.h | test/util/SeqUtils.h | #pragma once
#include "rapidcheck/seq/Operations.h"
namespace rc {
namespace test {
//! Forwards Seq a random amount and copies it to see if it is equal to the
//! original.
template<typename T>
void assertEqualCopies(Seq<T> seq)
{
std::size_t len = seq::length(seq);
std::size_t n = *gen::ranged<std::size_t>... | #pragma once
#include "rapidcheck/seq/Operations.h"
namespace rc {
namespace test {
//! Forwards Seq a random amount and copies it to see if it is equal to the
//! original. Must not be infinite, of course.
template<typename T>
void assertEqualCopies(Seq<T> seq)
{
std::size_t len = seq::length(seq);
std::siz... | Add clarifying comment for assertEqualCopies | Add clarifying comment for assertEqualCopies
| C | bsd-2-clause | whoshuu/rapidcheck,tm604/rapidcheck,whoshuu/rapidcheck,emil-e/rapidcheck,tm604/rapidcheck,emil-e/rapidcheck,unapiedra/rapidfuzz,emil-e/rapidcheck,whoshuu/rapidcheck,tm604/rapidcheck,unapiedra/rapidfuzz,unapiedra/rapidfuzz |
7f21701f058014bfb2fec187ef5330799adaf7a4 | tests/test-tp-feed.c | tests/test-tp-feed.c | #include <anerley/anerley-tp-feed.h>
#include <libmissioncontrol/mission-control.h>
#include <glib.h>
#include <dbus/dbus-glib.h>
int
main (int argc,
char **argv)
{
GMainLoop *main_loop;
MissionControl *mc;
McAccount *account;
AnerleyTpFeed *feed;
DBusGConnection *conn;
if (argc < 2)
{
g_p... | #include <anerley/anerley-tp-feed.h>
#include <libmissioncontrol/mission-control.h>
#include <glib.h>
#include <dbus/dbus-glib.h>
int
main (int argc,
char **argv)
{
GMainLoop *main_loop;
MissionControl *mc;
McAccount *account;
AnerleyTpFeed *feed;
DBusGConnection *conn;
if (argc < 2)
{
g_p... | Add missing newline to usage print call. | Add missing newline to usage print call.
| C | lgpl-2.1 | meego-netbook-ux/anerley,meego-netbook-ux/anerley |
5492c5f1f68623bab36842c5cc3fbb325e82d33b | src/lock.h | src/lock.h | #ifndef LOCK_H
#define LOCK_H
enum lockstat
{
GET_LOCK_NOT_GOT=0,
GET_LOCK_ERROR,
GET_LOCK_GOT
};
typedef struct lock lock_t;
struct lock
{
int fd;
enum lockstat status;
char *path;
lock_t *next;
};
extern struct lock *lock_alloc(void);
extern int lock_init(struct lock *lock, const char *path);
extern struct... | #ifndef LOCK_H
#define LOCK_H
enum lockstat
{
GET_LOCK_NOT_GOT=0,
GET_LOCK_ERROR,
GET_LOCK_GOT
};
struct lock
{
int fd;
enum lockstat status;
char *path;
struct lock *next;
};
extern struct lock *lock_alloc(void);
extern int lock_init(struct lock *lock, const char *path);
extern struct lock *lock_alloc_and_in... | Fix a build issue on Solaris | Fix a build issue on Solaris
| C | agpl-3.0 | rubenk/burp,rubenk/burp,rubenk/burp |
a9e2b1a5c66b837b0a25ddd571f96b71a95453cb | assembler/d16-main/main.c | assembler/d16-main/main.c | //
// main.c
// d16-asm
//
// Created by Michael Nolan on 6/17/16.
// Copyright © 2016 Michael Nolan. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
#include "parser.h"
#include "assembler.h"
#include <string.h>
#include "instruction.h"
#include <unistd.h>
extern int yyparse (FILE* output_file);
ex... | //
// main.c
// d16-asm
//
// Created by Michael Nolan on 6/17/16.
// Copyright © 2016 Michael Nolan. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
#include "parser.h"
#include "assembler.h"
#include <string.h>
#include "instruction.h"
#include <unistd.h>
extern int yyparse (FILE* output_file);
ex... | Add help and binary options | Add help and binary options
| C | mit | d16-processor/d16,d16-processor/d16,d16-processor/d16,d16-processor/d16,d16-processor/d16 |
970da55f2320bef2103f879f4b6c7278b431bfbe | cast/cast.h | cast/cast.h | /*
* CAST-128 in C
* Written by Steve Reid <sreid@sea-to-sky.net>
* 100% Public Domain - no warranty
* Released 1997.10.11
*/
#ifndef _CAST_H_
#define _CAST_H_
typedef unsigned char u8; /* 8-bit unsigned */
typedef unsigned long u32; /* 32-bit unsigned */
typedef struct {
u32 xkey[32]; /* Key, after expansion ... | /*
* CAST-128 in C
* Written by Steve Reid <sreid@sea-to-sky.net>
* 100% Public Domain - no warranty
* Released 1997.10.11
*/
#ifndef _CAST_H_
#define _CAST_H_
#include <stdint.h>
typedef uint8_t u8; /* 8-bit unsigned */
typedef uint32_t u32; /* 32-bit unsigned */
typedef struct {
u32 xkey[32]; /* Key,... | Use stdint.h in CAST to implement 32 bit and 8 bit unsigned integers. | Use stdint.h in CAST to implement 32 bit and 8 bit unsigned integers.
| C | bsd-3-clause | wilx/apg,wilx/apg,wilx/apg,rogerapras/apg,rogerapras/apg,rogerapras/apg,rogerapras/apg,wilx/apg |
82b7e62e178e87e9288f62ed0b90d824f426eb02 | kernel/kernel_debug.h | kernel/kernel_debug.h | /*
* Copyright 2011-2014 Blender Foundation
*
* 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 ag... | /*
* Copyright 2011-2014 Blender Foundation
*
* 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 ag... | Fix for viewport rendering with debug enabled | Cycles: Fix for viewport rendering with debug enabled
| C | apache-2.0 | tangent-opensource/coreBlackbird,pyrochlore/cycles,pyrochlore/cycles,tangent-opensource/coreBlackbird,tangent-opensource/coreBlackbird,pyrochlore/cycles |
3155d4daa5bb7c1a93aebc890240589cdcfa3e88 | ObjectiveRocks/ObjectiveRocks.h | ObjectiveRocks/ObjectiveRocks.h | //
// ObjectiveRocks.h
// ObjectiveRocks
//
// Created by Iska on 20/11/14.
// Copyright (c) 2014 BrainCookie. All rights reserved.
//
#import "RocksDB.h"
#import "RocksDBOptions.h"
#import "RocksDBReadOptions.h"
#import "RocksDBWriteOptions.h"
#import "RocksDBWriteBatch.h"
#import "RocksDBIterator.h"
#import "Roc... | //
// ObjectiveRocks.h
// ObjectiveRocks
//
// Created by Iska on 20/11/14.
// Copyright (c) 2014 BrainCookie. All rights reserved.
//
#import "RocksDB.h"
#import "RocksDBOptions.h"
#import "RocksDBReadOptions.h"
#import "RocksDBWriteOptions.h"
#import "RocksDBWriteBatch.h"
#import "RocksDBIterator.h"
#import "Roc... | Add RocksDB merge operator import to the main public header | Add RocksDB merge operator import to the main public header
| C | mit | iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks |
6c12c50736a7f2cce5d8776c9d64b85e3435aec6 | chrome/browser/extensions/external_install_ui.h | chrome/browser/extensions/external_install_ui.h | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_UI_H_
#define CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_UI_H_
class Browser;
class ExtensionServi... | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_UI_H_
#define CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_UI_H_
#include "build/build_config.h"
cl... | Fix external extension install (post-sideload) restriction on Windows. | Fix external extension install (post-sideload) restriction on Windows.
I had #ifdef'd it to OS_WINDOWS. It should be OS_WIN.
BUG=156727
Review URL: https://codereview.chromium.org/11238042
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@163418 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | Jonekee/chromium.src,chuan9/chromium-crosswalk,dushu1203/chromium.src,markYoungH/chromium.src,Just-D/chromium-1,TheTypoMaster/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Jonekee/chromium.src,Just-D/chromium-1,hgl888/chromium-crosswalk-efl,dednal/chromium.src,junmin-zhu/chromium-rivertrail,patrickm/chromium.src,ltilv... |
c3d0d1fa21c0302241b35fde7d591b27f6eb3afa | common_audio/signal_processing/cross_correlation.c | common_audio/signal_processing/cross_correlation.c | /*
* Copyright (c) 2012 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... | /*
* Copyright (c) 2012 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... | Remove a cast again, after it was shown to worsen Windows perf. | Remove a cast again, after it was shown to worsen Windows perf.
This will hurt Linux x64 perf, but we think that's a compiler bug and we're
willing to take the hit for the better clarity of the code sans cast as well as
the better Windows perf. Hopefully eventually the compiler will improve.
BUG=504813
TEST=none
TBR... | C | bsd-3-clause | sippet/webrtc,sippet/webrtc,sippet/webrtc,sippet/webrtc,sippet/webrtc,sippet/webrtc |
0420ff2a64e441402a14ab10ea5fcf12badc6c42 | util.h | util.h | #ifndef UTIL_H
#define UTIL_H
#include "fibrile.h"
/** Atomics. */
#define fence() fibrile_fence()
#define fadd(ptr, n) __sync_fetch_and_add(ptr, n)
#define cas(...) __sync_val_compare_and_swap(__VA_ARGS__)
/** Lock. */
#define lock(ptr) fibrile_lock(ptr)
#define unlock(ptr) fibrile_unlock(ptr)
#define trylock(ptr... | #ifndef UTIL_H
#define UTIL_H
#include "fibrile.h"
/** Atomics. */
#define fence() fibrile_fence()
#define fadd(ptr, n) __sync_fetch_and_add(ptr, n)
#define cas(...) __sync_val_compare_and_swap(__VA_ARGS__)
/** Lock. */
#define lock(ptr) fibrile_lock(ptr)
#define unlock(ptr) fibrile_unlock(ptr)
#define trylock(ptr... | Add a fence in barrier. | Add a fence in barrier.
| C | mit | chaoran/fibril,chaoran/fibril,chaoran/fibril |
6bed2ffc047130faf3beb32aacc75aa251d355bc | extensions/flac/src/main/jni/include/data_source.h | extensions/flac/src/main/jni/include/data_source.h | /*
* Copyright (C) 2016 The Android Open Source Project
*
* 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 app... | /*
* Copyright (C) 2016 The Android Open Source Project
*
* 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 app... | Remove ndk-build from [] flac build rules | Remove ndk-build from [] flac build rules
Android NDK r9 in [] is deprecated (see []
Update the ExoPlayer flac extensions to use android_jni_library.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=182017669
| C | apache-2.0 | KiminRyu/ExoPlayer,ebr11/ExoPlayer,saki4510t/ExoPlayer,ened/ExoPlayer,amzn/exoplayer-amazon-port,ened/ExoPlayer,MaTriXy/ExoPlayer,tntcrowd/ExoPlayer,kiall/ExoPlayer,stari4ek/ExoPlayer,superbderrick/ExoPlayer,MaTriXy/ExoPlayer,saki4510t/ExoPlayer,superbderrick/ExoPlayer,tntcrowd/ExoPlayer,androidx/media,superbderrick/Ex... |
9dc95fbb934b842c8c055541d727477eb5de8d44 | Criollo/Source/Extensions/NSDate+RFC1123.h | Criollo/Source/Extensions/NSDate+RFC1123.h | //
// NSDate+RFC1123.h
// MKNetworkKit
//
// Created by Marcus Rohrmoser
// http://blog.mro.name/2009/08/nsdateformatter-http-header/
// http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1
// No obvious license attached
/**
Convert RFC1123 format dates
*/
@interface NSDate (RFC1123)
/**
* @name... | //
// NSDate+RFC1123.h
// MKNetworkKit
//
// Created by Marcus Rohrmoser
// http://blog.mro.name/2009/08/nsdateformatter-http-header/
// http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1
// No obvious license attached
#import <Foundation/Foundation.h>
/**
Convert RFC1123 format dates
*/
@interf... | Add explicit Foundation import to NSDate extension (for spm compatibility) | Add explicit Foundation import to NSDate extension (for spm compatibility)
| C | mit | thecatalinstan/Criollo,thecatalinstan/Criollo,thecatalinstan/Criollo |
a9aeb47a0bbf847dbe899e5cc875b25dc9ee71d7 | gtksourceview2.h | gtksourceview2.h | #include "gtk2hs_macros.h"
#include <gtksourceview/gtksourcebuffer.h>
#if GTK_MAJOR_VERSION < 3
#include <gtksourceview/gtksourceiter.h>
#endif
#include <gtksourceview/gtksourcelanguage.h>
#include <gtksourceview/gtksourcelanguagemanager.h>
#include <gtksourceview/gtksourcestyle.h>
#include <gtksourceview/gtksourcestyl... | #include "gtk2hs_macros.h"
#include <gtksourceview/gtksourcebuffer.h>
#if GTK_MAJOR_VERSION < 3
#include <gtksourceview/gtksourceiter.h>
#endif
#include <gtksourceview/gtksourcelanguage.h>
#include <gtksourceview/gtksourcelanguagemanager.h>
#include <gtksourceview/gtksourcestyle.h>
#include <gtksourceview/gtksourcestyl... | Fix for new versions of gtksourceview provided by Oleg Chiruhin | Fix for new versions of gtksourceview provided by Oleg Chiruhin
| C | lgpl-2.1 | gtk2hs/gtksourceview,gtk2hs/gtksourceview |
b80f4b7f7354507616789b1753f115ecfe111013 | tests/regression/27-inv_invariants/04-ints-not-interval.c | tests/regression/27-inv_invariants/04-ints-not-interval.c | //PARAM: --disable ana.int.def_exc --enable ana.int.interval
int main() {
int x;
if(!x) {
assert(x==0);
} else {
assert(x==1); //UNKNOWN!
}
}
| //PARAM: --disable ana.int.def_exc --enable ana.int.interval
int main() {
int x;
if(!x) {
} else {
assert(x==1); //UNKNOWN!
}
}
| Remove assert that is unknown when runinng only with interval | 27/04: Remove assert that is unknown when runinng only with interval
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
32c768d0c03717f729871dc666388c6ca785aedb | Sources/OMValidation.h | Sources/OMValidation.h | //
// OMValidation.h
// OMValidation
//
// Copyright (C) 2015 Oliver Mader
//
// 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 ... | //
// OMValidation.h
// OMValidation
//
// Copyright (C) 2015 Oliver Mader
//
// 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 ... | Include NSArray category into main header | Include NSArray category into main header
| C | mit | b52/OMValidation |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.