commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
33bbb00cdc583af343bcabc53acb189252d38b6b | caffe2/utils/threadpool/pthreadpool_impl.h | caffe2/utils/threadpool/pthreadpool_impl.h | /**
* Copyright (c) 2016-present, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | /**
* Copyright (c) 2016-present, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | Fix ThreadPool class/struct forward declaration mixup | Fix ThreadPool class/struct forward declaration mixup
Summary: `ThreadPool` is a class, but it is forward-declared as a struct, which produces an error when compiled with clang 5.
Reviewed By: Maratyszcza
Differential Revision: D6399594
fbshipit-source-id: e8e81006f484b38e60389c659e9500ec9cfab731
| C | apache-2.0 | Yangqing/caffe2,caffe2/caffe2,xzturn/caffe2,davinwang/caffe2,davinwang/caffe2,Yangqing/caffe2,Yangqing/caffe2,davinwang/caffe2,xzturn/caffe2,xzturn/caffe2,xzturn/caffe2,Yangqing/caffe2,Yangqing/caffe2,xzturn/caffe2,davinwang/caffe2,davinwang/caffe2 |
7a6b32904342e3006e6fb1a968068ca9c8e674fb | Programs/GUI/Includes/Manager/SoundManager.h | Programs/GUI/Includes/Manager/SoundManager.h | /*************************************************************************
> File Name: SoundManager.h
> Project Name: Hearthstone++
> Author: Chan-Ho Chris Ohk
> Purpose: Sound manager of Hearthstone++ GUI program.
> Created Time: 2018/06/05
> Copyright (c) 2018, Chan-Ho Chris Ohk
*************************************... | /*************************************************************************
> File Name: SoundManager.h
> Project Name: Hearthstone++
> Author: Chan-Ho Chris Ohk
> Purpose: Sound manager of Hearthstone++ GUI program.
> Created Time: 2018/06/05
> Copyright (c) 2018, Chan-Ho Chris Ohk
*************************************... | Fix compile error on MacOS (unsupported <optional>) | Fix compile error on MacOS (unsupported <optional>)
| C | mit | Hearthstonepp/Hearthstonepp,Hearthstonepp/Hearthstonepp |
02fa4f4e01ae24ac1507b3c86902a14ee2815319 | test/FrontendC/2008-11-11-AnnotateStructFieldAttribute.c | test/FrontendC/2008-11-11-AnnotateStructFieldAttribute.c | // RUN: %llvmgcc -c -emit-llvm %s -o - | llvm-dis | grep llvm.ptr.annotation | count 3
#include <stdio.h>
/* Struct with element X being annotated */
struct foo {
int X __attribute__((annotate("StructAnnotation")));
int Y;
int Z;
};
void test(struct foo *F) {
F->X = 42;
F->Z = 1;
F->Y = F->... | Add test case for ptr annotation. | Add test case for ptr annotation.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@59142 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab... | |
6ebe8168c19687c6227ac41127f1e7c02a46e4d9 | tests/regression/27-inv_invariants/09-invariant-worsen.c | tests/regression/27-inv_invariants/09-invariant-worsen.c | // extracted from 01/22
#include <assert.h>
int main() {
int a = 1;
int b = 1;
int *x;
int rnd;
if (rnd)
x = &a;
else
x = &b;
assert(*x == 1);
b = 2;
assert(a == 1);
if (*x != 0) { // TODO: invariant makes less precise!
assert(a == 1); // TODO
}
return 0;
} | Add test where base invariant worsens precision | Add test where base invariant worsens precision
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
225ed70ce8cda3ba1922063e3bdb95204d30e853 | v6502/main.c | v6502/main.c | //
// main.c
// v6502
//
// Created by Daniel Loffgren on H.25/03/28.
// Copyright (c) 平成25年 Hello-Channel, LLC. All rights reserved.
//
#include <stdio.h>
#include "cpu.h"
#include "mem.h"
int main(int argc, const char * argv[])
{
printf("Allocating virtual memory of size 2k…\n");
return 0;
}
| //
// main.c
// v6502
//
// Created by Daniel Loffgren on H.25/03/28.
// Copyright (c) 平成25年 Hello-Channel, LLC. All rights reserved.
//
#include <stdio.h>
#include <string.h>
#include "cpu.h"
#include "mem.h"
#include "core.h"
int main(int argc, const char * argv[])
{
printf("Creating 1 virtual CPU…\n");
v650... | Create a CPU and start REPLing | Create a CPU and start REPLing
git-svn-id: dd14d189f2554b0b3f4c2209a95c13d2029e3fe8@6 96dfbd92-d197-e211-9ca9-00110a534b34
| C | mit | RyuKojiro/v6502 |
19ed9ff12a7623717beacf55ad0b7b02a9cecace | src/gop/hp.h | src/gop/hp.h | /* Copyright 2016 Vanderbilt University
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 writing, so... | Add missing internal Hportal header | Add missing internal Hportal header
| C | apache-2.0 | accre/lstore,tacketar/lstore,accre/lstore,tacketar/lstore,accre/lstore,tacketar/lstore,tacketar/lstore,accre/lstore | |
4cc2cf0e8fc8584a8bd564c21f5448433a7f6a31 | atmel-samd/rgb_led_colors.h | atmel-samd/rgb_led_colors.h | #define BLACK 0x000000
#define GREEN 0x001000
#define BLUE 0x000010
#define CYAN 0x001010
#define RED 0x100000
#define ORANGE 0x100800
#define YELLOW 0x101000
#define PURPLE 0x100010
#define WHITE 0x101010
#define BOOT_RUNNING BLUE
#define MAIN_RUNNING GREEN
#define SAFE_MODE YELLOW
#define ALL_D... | #define BLACK 0x000000
#define GREEN 0x003000
#define BLUE 0x000030
#define CYAN 0x003030
#define RED 0x300000
#define ORANGE 0x302000
#define YELLOW 0x303000
#define PURPLE 0x300030
#define WHITE 0x303030
#define BOOT_RUNNING BLUE
#define MAIN_RUNNING GREEN
#define SAFE_MODE YELLOW
#define ALL_D... | Increase the status LED brightness a bit so that newer DotStars aren't super dim. This will make status NeoPixels a bit bright but one can use samd.set_rgb_status_brightness() to dim them. | Increase the status LED brightness a bit so that newer DotStars
aren't super dim. This will make status NeoPixels a bit bright
but one can use samd.set_rgb_status_brightness() to dim them.
| C | mit | adafruit/circuitpython,adafruit/micropython,adafruit/micropython,adafruit/circuitpython,adafruit/circuitpython,adafruit/micropython,adafruit/circuitpython,adafruit/micropython,adafruit/micropython,adafruit/circuitpython,adafruit/circuitpython |
961166443c193be490106684f3c29e894d21dcfd | libevmjit/Common.h | libevmjit/Common.h | #pragma once
#include <vector>
#include <boost/multiprecision/cpp_int.hpp>
namespace dev
{
namespace eth
{
namespace jit
{
using byte = uint8_t;
using bytes = std::vector<byte>;
using u256 = boost::multiprecision::uint256_t;
using bigint = boost::multiprecision::cpp_int;
struct NoteChannel {}; // FIXME: Use some lo... | #pragma once
#include <vector>
#include <boost/multiprecision/cpp_int.hpp>
namespace dev
{
namespace eth
{
namespace jit
{
using byte = uint8_t;
using bytes = std::vector<byte>;
using u256 = boost::multiprecision::uint256_t;
using bigint = boost::multiprecision::cpp_int;
struct NoteChannel {}; // FIXME: Use some lo... | Fix some GCC initialization warnings | Fix some GCC initialization warnings
| C | mit | expanse-project/cpp-expanse,vaporry/cpp-ethereum,yann300/cpp-ethereum,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,PaulGrey30/go-get--u-github.com-tools-godep,d-das/cpp-ethereum,Sorceror32/go-get--u-github.com-tools-godep,xeddmc/cpp-ethereum,joeldo/cpp-ethereum,Sorceror32/go-get--u-github.com-tools-god... |
a59be15fe062229e4a5566d930186bf521c4d8c0 | include/tilck/kernel/debug_utils.h | include/tilck/kernel/debug_utils.h | /* SPDX-License-Identifier: BSD-2-Clause */
#pragma once
#include <tilck/kernel/paging.h>
#include <tilck/kernel/hal.h>
size_t stackwalk32(void **frames, size_t count,
void *ebp, pdir_t *pdir);
void dump_stacktrace(void);
void dump_regs(regs *r);
void validate_stack_pointer_int(const char *file,... | /* SPDX-License-Identifier: BSD-2-Clause */
#pragma once
#include <tilck/kernel/paging.h>
#include <tilck/kernel/hal.h>
size_t stackwalk32(void **frames, size_t count,
void *ebp, pdir_t *pdir);
void dump_stacktrace(void);
void dump_regs(regs *r);
void validate_stack_pointer_int(const char *file,... | Make DEBUG_VALIDATE_STACK_PTR() a no-op in unit tests | [debug] Make DEBUG_VALIDATE_STACK_PTR() a no-op in unit tests
| C | bsd-2-clause | vvaltchev/experimentOs,vvaltchev/experimentOs,vvaltchev/experimentOs,vvaltchev/experimentOs |
17bd549d6a85a90837f56b0374564d6b1a18259a | list.h | list.h | #include <stdlib.h>
#ifndef __LIST_H__
#define __LIST_H__
struct ListNode;
struct List;
typedef struct ListNode ListNode;
typedef struct List List;
List* List_Create(void);
void List_Destroy(List* l);
ListNode* ListNode_Create(void *);
void ListNode_Destroy(ListNode* n);
ListNode* List_Search(List* l, void* k, int (f)... | #include <stdlib.h>
#ifndef __LIST_H__
#define __LIST_H__
struct ListNode;
struct List;
typedef struct ListNode ListNode;
typedef struct List List;
List* List_Create(void);
void List_Destroy(List* l);
ListNode* ListNode_Create(void * k);
void ListNode_Destroy(ListNode* n);
ListNode* List_Search(List* l, void* k, int (... | Add missing parameter variable name 'k' | Add missing parameter variable name 'k'
| C | mit | MaxLikelihood/CADT |
b5cc0902de920ae24f8545549dc6cdf342b36628 | test-seccomp-filter.c | test-seccomp-filter.c | #include <sys/prctl.h>
#include <linux/seccomp.h>
int
main(void)
{
prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, 0);
return(EFAULT == errno ? 0 : 1);
}
| Add thusfar-unused Linux seccomp filter test. | Add thusfar-unused Linux seccomp filter test.
| C | isc | kristapsdz/kcgi,kristapsdz/kcgi | |
7214f0aa8bfbe71e69e3340bda1f2f4411db8ff0 | cuser/acpica/acenv_header.h | cuser/acpica/acenv_header.h | #define ACPI_MACHINE_WIDTH 64
#define ACPI_SINGLE_THREADED
#define ACPI_USE_LOCAL_CACHE
#define ACPI_INLINE inline
#define ACPI_USE_NATIVE_DIVIDE
#define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED
#ifdef ACPI_FULL_DEBUG
#define ACPI_DEBUG_OUTPUT
#define ACPI_DISASSEMBLER
// Depends on threading support
#define ACPI... | #define ACPI_MACHINE_WIDTH 64
#define ACPI_SINGLE_THREADED
#define ACPI_USE_LOCAL_CACHE
#define ACPI_INLINE inline
#define ACPI_USE_NATIVE_DIVIDE
#define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED
#ifdef ACPI_FULL_DEBUG
#define ACPI_DEBUG_OUTPUT
#define ACPI_DISASSEMBLER
// Depends on threading support
#define ACPI... | Disable allocation tracking (it appears to be broken) | Disable allocation tracking (it appears to be broken)
| C | mit | olsner/os,olsner/os,olsner/os,olsner/os |
4df3463df9e5e50ecab60d9ed1bd969f16d5417b | tails_files/securedrop_init.c | tails_files/securedrop_init.c | #include <unistd.h>
int main(int argc, char* argv) {
setuid(0);
// Use absolute path to the Python binary and execl to avoid $PATH or symlink trickery
execl("/usr/bin/python2.7", "python2.7", "/home/vagrant/tails_files/test.py", (char*)NULL);
return 0;
}
| #include <unistd.h>
int main(int argc, char* argv) {
setuid(0);
// Use absolute path to the Python binary and execl to avoid $PATH or symlink trickery
execl("/usr/bin/python2.7", "python2.7", "/home/amnesia/Persistent/.securedrop/securedrop_init.py", (char*)NULL);
return 0;
}
| Fix path in tails_files C wrapper | Fix path in tails_files C wrapper
| C | agpl-3.0 | mark-in/securedrop-prov-upstream,mark-in/securedrop-prov-upstream,mark-in/securedrop-prov-upstream,mark-in/securedrop-prov-upstream |
585cca1d52aa7e082aaa029c585fef8ea6d25d43 | modules/example/seed-example.c | modules/example/seed-example.c | /* -*- mode: C; indent-tabs-mode: t; tab-width: 8; c-basic-offset: 2; -*- */
/*
* This file is part of Seed, the GObject Introspection<->Javascript bindings.
*
* Seed 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 So... | /* -*- mode: C; indent-tabs-mode: t; tab-width: 8; c-basic-offset: 2; -*- */
/*
* This file is part of Seed, the GObject Introspection<->Javascript bindings.
*
* Seed 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 So... | Remove extraneous space in output | Remove extraneous space in output
| C | lgpl-2.1 | danilocesar/seed,danilocesar/seed,danilocesar/seed,danilocesar/seed,danilocesar/seed |
ab870ba01a18e2228b6b9827dba7e5d2b9c7a8ab | International/CIAPIRequest.h | International/CIAPIRequest.h | //
// CIAPIRequest.h
// International
//
// Created by Dimitry Bentsionov on 7/4/13.
// Copyright (c) 2013 Carnegie Museums. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AFNetworking.h"
#define API_BASE_URL @"http://guidecms.carnegiemuseums.org/"
#define API_TOKEN @"207b0977eb0be992898c7c... | //
// CIAPIRequest.h
// International
//
// Created by Dimitry Bentsionov on 7/4/13.
// Copyright (c) 2013 Carnegie Museums. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AFNetworking.h"
#define API_BASE_URL @"http://guidecms.carnegiemuseums.org"
typedef void (^CIAPIHoursRequestSuccessBlock)... | Remove unused API_TOKEN and API_SECRET | Remove unused API_TOKEN and API_SECRET
| C | mit | CMP-Studio/cmoa-app-ios,CMP-Studio/cmoa-app-ios |
e78b06f28070b1361e76c889ebc815973557aa3c | src/exercise210.c | src/exercise210.c | /*
* A solution to Exercise 2-3 in The C Programming Language (Second Edition).
*
* This file was written by Damien Dart, <damiendart@pobox.com>. This is free
* and unencumbered software released into the public domain. For more
* information, please refer to the accompanying "UNLICENCE" file.
*/
#include <stdin... | Add solution to Exercise 2-10. | Add solution to Exercise 2-10.
| C | unlicense | damiendart/knr-solutions,damiendart/knr-solutions,damiendart/knr-solutions | |
f93edabc6295b37955e27384c650487c4689324d | src/instruction.h | src/instruction.h | #ifndef _INC_INSTRUCTION_H
#define _INC_INSTRUCTION_H
#include "basetypes.h"
#include <vector>
#include <map>
typedef std::vector<byte> ByteString;
class BaseCPU;
class Instruction {
public:
Instruction(ByteString opcode, SizeType instructionLength);
virtual void execute(BaseCPU &cpu, const ByteString ¶... | #ifndef _INC_INSTRUCTION_H
#define _INC_INSTRUCTION_H
#include "basetypes.h"
#include <vector>
#include <map>
typedef std::vector<byte> ByteString;
class BaseCPU;
class Instruction {
public:
Instruction(ByteString opcode, SizeType instructionLength);
virtual void execute(BaseCPU &cpu, const ByteString ¶... | Add note to fix confusing Instruction lengths | Add note to fix confusing Instruction lengths
| C | mit | aroxby/cpu,aroxby/cpu |
39fdbda361ba08ffd09f7632d88d28f6e7e19ba6 | include/llvm/Analysis/LiveVar/LiveVarMap.h | include/llvm/Analysis/LiveVar/LiveVarMap.h | /* Title: LiveVarMap.h
Author: Ruchira Sasanka
Date: Jun 30, 01
Purpose: This file contains the class for a map between the BasicBlock class
and the BBLiveVar class, which is a wrapper class of BasicBlock
used for the live variable analysis. The reverse mapping can
be found in the B... | /* Title: LiveVarMap.h -*- C++ -*-
Author: Ruchira Sasanka
Date: Jun 30, 01
Purpose: This file contains the class for a map between the BasicBlock class
and the BBLiveVar class, which is a wrapper class of BasicBlock
used for the live variable analysis. The reverse mapping can
be ... | Use generic pointer hashes instead of custom ones. | Use generic pointer hashes instead of custom ones.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@1684 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbym... |
49237f04a8982e919bce667a47e0024cd0705d60 | test/FrontendC/x86-64-red-zone.c | test/FrontendC/x86-64-red-zone.c | // RUN: $llvmgcc -m64 -fomit-frame-pointer -O2 %s -S -o - > %t
// RUN: not grep subq %t
// RUN: not grep addq %t
// RUN: grep {\\-4(%%rsp)} %t | count 2
// RUN: $llvmgcc -m64 -fomit-frame-pointer -O2 %s -S -o - -mno-red-zone > %t
// RUN: grep subq %t | count 1
// RUN: grep addq %t | count 1
// This is a test for x86-64... | Add a FrontendC testcase for the x86-64 Red Zone feature, to help verify that the feature may be disabled through the -mno-red-zone option. | Add a FrontendC testcase for the x86-64 Red Zone feature,
to help verify that the feature may be disabled through
the -mno-red-zone option.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@63079 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift... | |
8948e345f5b99784538cac6b305dd78c43e80eb2 | test/PCH/modified-header-error.c | test/PCH/modified-header-error.c | // XFAIL: win32
// RUN: mkdir -p %t.dir
// RUN: echo '#include "header2.h"' > %t.dir/header1.h
// RUN: echo > %t.dir/header2.h
// RUN: cp %s %t.dir/t.c
// RUN: %clang_cc1 -x c-header %t.dir/header1.h -emit-pch -o %t.pch
// RUN: echo >> %t.dir/header2.h
// RUN: %clang_cc1 %t.dir/t.c -include-pch %t.pch -fsyntax-only 2>&... | // RUN: mkdir -p %t.dir
// RUN: echo '#include "header2.h"' > %t.dir/header1.h
// RUN: echo > %t.dir/header2.h
// RUN: cp %s %t.dir/t.c
// RUN: %clang_cc1 -x c-header %t.dir/header1.h -emit-pch -o %t.pch
// RUN: echo >> %t.dir/header2.h
// RUN: %clang_cc1 %t.dir/t.c -include-pch %t.pch -fsyntax-only 2>&1 | FileCheck %s... | Revert r132426; this test passes more often than not, and we don't have a way to mark tests as intermittently failing at the moment. | Revert r132426; this test passes more often than not, and we don't have a way to mark tests as intermittently failing at the moment.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@132446 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | 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,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl... |
cec1a48a4138035c6c8462c8baaee699addf0ede | AVOS/AVOSCloudLiveQuery/AVSubscription.h | AVOS/AVOSCloudLiveQuery/AVSubscription.h | //
// AVSubscription.h
// AVOS
//
// Created by Tang Tianyong on 15/05/2017.
// Copyright © 2017 LeanCloud Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AVQuery.h"
#import "AVDynamicObject.h"
NS_ASSUME_NONNULL_BEGIN
@interface AVSubscriptionOptions : AVDynamicObject
@end
@interface AV... | //
// AVSubscription.h
// AVOS
//
// Created by Tang Tianyong on 15/05/2017.
// Copyright © 2017 LeanCloud Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AVQuery.h"
#import "AVDynamicObject.h"
NS_ASSUME_NONNULL_BEGIN
@protocol AVSubscriptionDelegate <NSObject>
@end
@interface AVSubscri... | Add delegate property for subscription | Add delegate property for subscription
| C | apache-2.0 | leancloud/objc-sdk,leancloud/objc-sdk,leancloud/objc-sdk,leancloud/objc-sdk |
339d11539a67d2e3c4dce940e364ed7002961377 | Mac/Compat/sync.c | Mac/Compat/sync.c | /* The equivalent of the Unix 'sync' system call: FlushVol.
Public domain by Guido van Rossum, CWI, Amsterdam (July 1987).
For now, we only flush the default volume
(since that's the only volume written to by MacB). */
#include "macdefs.h"
int
sync(void)
{
if (FlushVol((StringPtr)0, 0) == noErr)
return 0;... | /* The equivalent of the Unix 'sync' system call: FlushVol.
Public domain by Guido van Rossum, CWI, Amsterdam (July 1987).
For now, we only flush the default volume
(since that's the only volume written to by MacB). */
#include "macdefs.h"
void
sync(void)
{
if (FlushVol((StringPtr)0, 0) == noErr)
return;
... | Make the prototype match the declaration in the GUSI header files. | Make the prototype match the declaration in the GUSI header files.
| C | mit | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator |
39cbe6995ca13a4e24850528c16c33a1bd8f39d5 | vtStor/CommandHandlerInterface.h | vtStor/CommandHandlerInterface.h | /*
<License>
Copyright 2015 Virtium Technology
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 writing... | /*
<License>
Copyright 2015 Virtium Technology
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 writing... | Remove declare: class VTSTOR_API cDriveInterface | Remove declare: class VTSTOR_API cDriveInterface
| C | apache-2.0 | tranminhtam/vtStor,tranminhtam/vtStor,tranminhtam/vtStor,tranminhtam/vtStor |
a981815c88aca37a8dcb42f1ce673ed838114251 | webkit/fileapi/quota_file_util.h | webkit/fileapi/quota_file_util.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_FILEAPI_QUOTA_FILE_UTIL_H_
#define WEBKIT_FILEAPI_QUOTA_FILE_UTIL_H_
#include "webkit/fileapi/file_system_file_util.h"
#include "webki... | // 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_FILEAPI_QUOTA_FILE_UTIL_H_
#define WEBKIT_FILEAPI_QUOTA_FILE_UTIL_H_
#include "webkit/fileapi/file_system_file_util.h"
#include "webki... | Add virtual in QuitaFileUtil to fix the compilation error in r82441. | Add virtual in QuitaFileUtil to fix the compilation error in r82441.
TBR=dmikurube,kinuko
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6882112
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@82445 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | gavinp/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,ga... |
837dabff5245b55bfde5b7c84425416831c039df | licharger.c | licharger.c | #include <avr/io.h>
#include <avr/delay.h> | #include <avr/io.h>
int main (void) {
//Set pin 3 as output to source current?
PORTB = 1<<PORTB3;
DDRB = 1<<DDB3;
} | Add basic program to turn an LED on | Add basic program to turn an LED on
| C | mit | Atom058/ArduinoLithiumCharger,Atom058/ArduinoLithiumCharger |
a318a6ee85491e867edadd155dfa29d793b2ad1f | ext/xorcist/xorcist.c | ext/xorcist/xorcist.c | #include "ruby.h"
VALUE Xorcist = Qnil;
void Init_xorcist();
VALUE xor_in_place(VALUE x, VALUE y, VALUE self);
VALUE xor_in_place(VALUE self, VALUE x, VALUE y) {
const char *src = 0;
char *dest = 0;
size_t len;
size_t y_len;
rb_str_modify(x);
dest = RSTRING_PTR(x);
len = RSTRING_LEN(x);... | #include <ruby.h>
VALUE Xorcist = Qnil;
void Init_xorcist();
VALUE xor_in_place(VALUE x, VALUE y, VALUE self);
VALUE xor_in_place(VALUE self, VALUE x, VALUE y) {
const char *src = 0;
char *dest = 0;
size_t len;
size_t y_len;
rb_str_modify(x);
dest = RSTRING_PTR(x);
len = RSTRING_LEN(x);... | Use angle brackets for Ruby include | Use angle brackets for Ruby include
| C | mit | Teino1978-Corp/Teino1978-Corp-xorcist,fny/xorcist,fny/xorcist,Teino1978-Corp/Teino1978-Corp-xorcist,fny/xorcist,fny/xorcist,Teino1978-Corp/Teino1978-Corp-xorcist,Teino1978-Corp/Teino1978-Corp-xorcist |
7847a35e376e39ba86bb75721f1c2e5bf79fb9ab | test2/structs/lvalue/cant.c | test2/structs/lvalue/cant.c | // RUN: %check -e %s
main()
{
struct A
{
int i;
} a, b, c;
a = b ? : c; // CHECK: error: struct involved in if-expr
}
| Test for struct in GNU ?: expressions | Test for struct in GNU ?: expressions
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler | |
ae5143868081c97304191a55a4ecc3a390fc77e5 | src/MarbleTest.h | src/MarbleTest.h | //
// This file is part of the Marble Desktop Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2004-2007 Torsten Rahn <tackat@kde.org>"
// Copyright 2007 Inge Wallin <ingwa@kde.... | //
// This file is part of the Marble Desktop Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2004-2007 Torsten Rahn <tackat@kde.org>"
// Copyright 2007 Inge Wallin <ingwa@kde.... | Fix @brief description by making it on one line instead of two | Fix @brief description by making it on one line instead of two
svn path=/trunk/KDE/kdeedu/marble/; revision=879319
| C | lgpl-2.1 | tucnak/marble,David-Gil/marble-dev,utkuaydin/marble,tzapzoor/marble,tucnak/marble,Earthwings/marble,David-Gil/marble-dev,probonopd/marble,quannt24/marble,AndreiDuma/marble,oberluz/marble,oberluz/marble,oberluz/marble,quannt24/marble,tzapzoor/marble,Earthwings/marble,tzapzoor/marble,AndreiDuma/marble,Earthwings/marble,o... |
84562bd91c74c00ad7df15ddb0e2ee8e7d8f49ab | src/debugger_global.h | src/debugger_global.h | #ifndef DEBUGGER_PARSER_GLOBAL_H_
#define DEBUGGER_PARSER_GLOBAL_H_
#include "common.h"
#include <stdio.h>
struct debug_expr {
enum expr_type { EXPR_NULL, EXPR_MEM, EXPR_REG } type;
int32_t val;
};
enum display_type {
DISP_NULL,
DISP_DEC,
DISP_HEX,
DISP_INST,
DISP_max
};
struct debugg... | #ifndef DEBUGGER_PARSER_GLOBAL_H_
#define DEBUGGER_PARSER_GLOBAL_H_
#include "common.h"
#include <stdint.h>
#include <stdio.h>
struct debug_expr {
enum expr_type { EXPR_NULL, EXPR_MEM, EXPR_REG } type;
int32_t val;
};
enum display_type {
DISP_NULL,
DISP_DEC,
DISP_HEX,
DISP_INST,
DISP_m... | Mend missing reference to stdint | Mend missing reference to stdint
| C | mit | kulp/tenyr,kulp/tenyr,kulp/tenyr |
970d2e0a24d25f61ba31eee9575f73f48dd1102d | src/debugger/utils.h | src/debugger/utils.h | /*
* Copyright 2006-2008 The FLWOR 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 o... | /*
* Copyright 2006-2008 The FLWOR 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 o... | Add [] operator. Fix potential memory errors. | Add [] operator.
Fix potential memory errors.
| C | apache-2.0 | bgarrels/zorba,bgarrels/zorba,bgarrels/zorba,28msec/zorba,bgarrels/zorba,cezarfx/zorba,cezarfx/zorba,28msec/zorba,cezarfx/zorba,cezarfx/zorba,28msec/zorba,bgarrels/zorba,bgarrels/zorba,28msec/zorba,cezarfx/zorba,cezarfx/zorba,cezarfx/zorba,28msec/zorba,bgarrels/zorba,28msec/zorba,28msec/zorba,cezarfx/zorba,bgarrels/zor... |
951007303bdf13ef0f50de7e1b84b766c682e5d3 | alura/c/adivinhacao.c | alura/c/adivinhacao.c | #include <stdio.h>
int main() {
// imprime o cabecalho do nosso jogo
printf("******************************************\n");
printf("* Bem vindo ao nosso jogo de adivinhação *\n");
printf("******************************************\n");
int numerosecreto = 42;
printf("O número %d é o secreto. Não conta p... | #include <stdio.h>
int main() {
// imprime o cabecalho do nosso jogo
printf("******************************************\n");
printf("* Bem vindo ao nosso jogo de adivinhação *\n");
printf("******************************************\n");
int numerosecreto = 42;
int chute;
printf("Qual é o seu chute? "... | Update file, Alura, Introdução a C, Aula 1.5 | Update file, Alura, Introdução a C, Aula 1.5
| C | mit | fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs |
5ac661e80c92e90ae0ed8ba658570db8f76e8490 | modules/acct_rtcp_hep/_acct_rtcp_hep_config.h | modules/acct_rtcp_hep/_acct_rtcp_hep_config.h | static struct hep_ctx ctx = {
.initfails = 0,
.hints = {{ 0 }},
.capt_host = "10.0.0.1",
.capt_port = "9060",
.capt_id = 101,
.hep_version = 3,
.usessl = 0,
.pl_compress = 0,
.sendPacketsCount = 0
};
| static struct hep_ctx ctx = {
.initfails = 0,
.hints = {{ 0 }},
.capt_host = "10.0.0.1",
.capt_port = "9060",
.hints = {{ .ai_socktype = SOCK_DGRAM }},
.capt_id = 101,
.hep_version = 3,
.usessl = 0,
.pl_compress = 0,
.sendPacketsCount = 0... | Add .hints initializer for clarity. | Add .hints initializer for clarity.
| C | bsd-2-clause | dsanders11/rtpproxy,sippy/rtpproxy,sippy/rtpproxy,dsanders11/rtpproxy,dsanders11/rtpproxy,sippy/rtpproxy |
a8e112272be9d82ba964e4b1694539b4606b2436 | test/CodeGen/pointer-signext.c | test/CodeGen/pointer-signext.c | // RUN: %clang_cc1 -triple x86_64-pc-win32 -emit-llvm -O2 -o - %s | FileCheck %s
// Under Windows 64, int and long are 32-bits. Make sure pointer math doesn't
// cause any sign extensions.
// CHECK: [[P:%.*]] = add i64 %param, -8
// CHECK-NEXT: [[Q:%.*]] = inttoptr i64 [[P]] to [[R:%.*\*]]
// CHECK-NEXT: {{%.*}... | // RUN: %clang_cc1 -triple x86_64-pc-win32 -emit-llvm -O2 -o - %s | FileCheck %s
// Under Windows 64, int and long are 32-bits. Make sure pointer math doesn't
// cause any sign extensions.
// CHECK: [[P:%.*]] = add i64 %param, -8
// CHECK-NEXT: [[Q:%.*]] = inttoptr i64 [[P]] to [[R:%.*]]*
// CHECK-NEXT: {{%.*}}... | Adjust test case to be compatible with future changes to explicitly pass the type to getelementptr | Adjust test case to be compatible with future changes to explicitly pass the type to getelementptr
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@229196 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... |
181f9eba6f31b27bd669e6b70a48488fab25389a | src/nrf24.c | src/nrf24.c | /*
* This file is part of the KNOT Project
*
* Copyright (c) 2015, CESAR. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright... | Add NRF24L01 node_ops 'driver' skeleton | gw: Add NRF24L01 node_ops 'driver' skeleton
This patch adds the initial code to implement node_ops 'driver'
abstraction for NRF24L01. NRF24L01 is connected to the host through SPI
connection, and multiple users must be managed using 'pipes' which are
analogous to radio access code for a logical channel.
| C | lgpl-2.1 | CESARBR/knot-service-source,CESARBR/knot-service-source,CESARBR/knot-service-source,CESARBR/knot-service-source,CESARBR/knot-service-source | |
8035340f994f48b8b5f7c0d382517c3243b58ac3 | libpqxx/include/pqxx/util.h | libpqxx/include/pqxx/util.h | /*-------------------------------------------------------------------------
*
* FILE
* pqxx/util.h
*
* DESCRIPTION
* Various utility definitions for libpqxx
*
* Copyright (c) 2001-2004, Jeroen T. Vermeulen <jtv@xs4all.nl>
*
* See COPYING for copyright license. If you did not receive a file called
*... | /*-------------------------------------------------------------------------
*
* FILE
* pqxx/util.h
*
* DESCRIPTION
* Various utility definitions for libpqxx
*
* Copyright (c) 2001-2004, Jeroen T. Vermeulen <jtv@xs4all.nl>
*
* See COPYING for copyright license. If you did not receive a file called
*... | Allow suppression of "deprecated header" warning | Allow suppression of "deprecated header" warning
| C | bsd-3-clause | jtv/libpqxx,jtv/libpqxx,jtv/libpqxx,jtv/libpqxx |
f16b686efbe6bfe50c1fbb3c5b318c279fc16ec0 | include/rime/common.h | include/rime/common.h | //
// Copyleft RIME Developers
// License: GPLv3
//
// 2011-03-14 GONG Chen <chen.sst@gmail.com>
//
#ifndef RIME_COMMON_H_
#define RIME_COMMON_H_
#include <memory>
#include <utility>
#define BOOST_BIND_NO_PLACEHOLDERS
#include <boost/signals2/connection.hpp>
#include <boost/signals2/signal.hpp>
#ifdef RIME_ENABLE_LOG... | //
// Copyleft RIME Developers
// License: GPLv3
//
// 2011-03-14 GONG Chen <chen.sst@gmail.com>
//
#ifndef RIME_COMMON_H_
#define RIME_COMMON_H_
#include <memory>
#include <utility>
#define BOOST_BIND_NO_PLACEHOLDERS
#include <boost/signals2/connection.hpp>
#include <boost/signals2/signal.hpp>
#ifdef RIME_ENABLE_LOG... | Fix a typo in the comment. | Fix a typo in the comment.
| C | bsd-3-clause | kionz/librime,j717273419/librime,kionz/librime,bygloam/librime,rime/librime,rime/librime,jakwings/librime,bygloam/librime,bygloam/librime,j717273419/librime,rwduzhao/librime,Prcuvu/librime,Prcuvu/librime,j717273419/librime,rwduzhao/librime,rwduzhao/librime,kionz/librime,jakwings/librime,Prcuvu/librime,jakwings/librime,... |
67053fa6cd61e995236f77bd525822a80a2b83aa | src/strategies/BasicRoundStrategy.h | src/strategies/BasicRoundStrategy.h | // This program is free software licenced under MIT Licence. You can
// find a copy of this licence in LICENCE.txt in the top directory of
// source code.
//
#ifndef BASIC_ROUND_STRATEGY_H_INCLUDED
#define BASIC_ROUND_STRATEGY_H_INCLUDED
// Project
#include "globals.h"
#include "RoundStrategy.h"
namespace warlight... | // This program is free software licenced under MIT Licence. You can
// find a copy of this licence in LICENCE.txt in the top directory of
// source code.
//
#ifndef BASIC_ROUND_STRATEGY_H_INCLUDED
#define BASIC_ROUND_STRATEGY_H_INCLUDED
// Project
#include "globals.h"
#include "RoundStrategy.h"
namespace warlight... | Add override after overriden methods | Add override after overriden methods
| C | mit | calincru/Warlight-AI-Challenge-2-Bot,calincru/Warlight-AI-Challenge-2-Bot |
518c6e2ec1dd9b4ad8bd9b52b35ae2ba0a05594e | mpi_ls_affinity.c | mpi_ls_affinity.c | /*
Copyright (c) 2013 Janne Blomqvist
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute,... | Test program to get CPU affinity of an MPI application | Test program to get CPU affinity of an MPI application
| C | mit | jabl/ls_affinity | |
35ae6c5ab2c6945d346a45dedc095dc54f8b8a03 | lib/src/downloader/download-query-loader.h | lib/src/downloader/download-query-loader.h | #ifndef DOWNLOAD_QUERY_LOADER_H
#define DOWNLOAD_QUERY_LOADER_H
#include <QString>
class Site;
class DownloadQueryImage;
class DownloadQueryGroup;
class DownloadQueryLoader
{
public:
static bool load(QString path, QList<DownloadQueryImage> &uniques, QList<DownloadQueryGroup> &batchs, QMap<QString, Site*> &sites)... | #ifndef DOWNLOAD_QUERY_LOADER_H
#define DOWNLOAD_QUERY_LOADER_H
#include <QString>
#include <QList>
#include <QMap>
class Site;
class DownloadQueryImage;
class DownloadQueryGroup;
class DownloadQueryLoader
{
public:
static bool load(QString path, QList<DownloadQueryImage> &uniques, QList<DownloadQueryGroup> &bat... | Include QList and QMap to header file to fix build | Include QList and QMap to header file to fix build
| C | apache-2.0 | Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber |
03c66d522256b7cc8a266625e5f16f4b63b6c303 | windows/dirent.h | windows/dirent.h | #ifndef _TOKU_DIRENT_H
#define _TOKU_DIRENT_H
#if defined(__cplusplus)
extern "C" {
#endif
//The DIR functions do not exist in windows, but the Linux API ends up
//just using a wrapper. We might convert these into an toku_os_* type api.
enum {
DT_UNKNOWN = 0,
DT_DIR = 4,
DT_REG = 8
};
struct di... | #ifndef _TOKU_DIRENT_H
#define _TOKU_DIRENT_H
#include "toku_os_types.h"
#if defined(__cplusplus)
extern "C" {
#endif
//The DIR functions do not exist in windows, but the Linux API ends up
//just using a wrapper. We might convert these into an toku_os_* type api.
enum {
DT_UNKNOWN = 0,
DT_DIR = 4,
D... | Fix broken windows build due to r19902 (merge of 2499d branch) | [t:2499] Fix broken windows build due to r19902 (merge of 2499d branch)
git-svn-id: b5c078ec0b4d3a50497e9dd3081db18a5b4f16e5@19935 c7de825b-a66e-492c-adef-691d508d4ae1
| C | lgpl-2.1 | ollie314/server,flynn1973/mariadb-aix,natsys/mariadb_10.2,natsys/mariadb_10.2,davidl-zend/zenddbi,natsys/mariadb_10.2,natsys/mariadb_10.2,ollie314/server,ollie314/server,davidl-zend/zenddbi,natsys/mariadb_10.2,natsys/mariadb_10.2,davidl-zend/zenddbi,flynn1973/mariadb-aix,davidl-zend/zenddbi,flynn1973/mariadb-aix,davidl... |
8c890982a2aa318fcc632ee616e1c5398fa9eb91 | Settings/Display.h | Settings/Display.h | #pragma once
#include "Tab.h"
class Display : public Tab {
public:
virtual void SaveSettings();
protected:
virtual void Initialize();
virtual void LoadSettings();
private:
bool OnAnimationChanged();
bool OnAnimationSpin(NMUPDOWN *ud);
bool OnCustomCheckChanged();
bool OnPositionChanged()... | #pragma once
#include "Tab.h"
#include <CommCtrl.h>
class Display : public Tab {
public:
virtual void SaveSettings();
protected:
virtual void Initialize();
virtual void LoadSettings();
private:
bool OnAnimationChanged();
bool OnAnimationSpin(NMUPDOWN *ud);
bool OnCustomCheckChanged();
b... | Add constant for spin increment | Add constant for spin increment
| C | bsd-2-clause | malensek/3RVX,malensek/3RVX,malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,Soulflare3/3RVX |
41bf86fc16dd31522953dff4b29241c98c082139 | tests/sv-comp/cfg/path_true-unreach-call.c | tests/sv-comp/cfg/path_true-unreach-call.c | extern void __VERIFIER_error() __attribute__ ((__noreturn__));
extern int __VERIFIER_nondet_int();
void __VERIFIER_assert(int cond) {
if (!(cond)) {
ERROR: __VERIFIER_error();
}
return;
}
int main()
{
int x, y;
if (__VERIFIER_nondet_int())
{
x = 0;
y = 1;
}
else
... | Add basic (base analysis) path sensitivity test | Add basic (base analysis) path sensitivity test
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
1f1153dc7087845e1909bae381af106d39c13912 | tests/pinocchio/lib.h | tests/pinocchio/lib.h | #include <QtCore/QProcess>
#include <QtDBus/QtDBus>
#include <QtTest/QtTest>
#include <TelepathyQt4/Client/PendingOperation>
#include <TelepathyQt4/Constants>
#include "tests/lib/test.h"
class PinocchioTest : public Test
{
Q_OBJECT
public:
PinocchioTest(QObject *parent = 0);
virtual ~PinocchioTest()... | #include <QtCore/QProcess>
#include <QtDBus/QtDBus>
#include <QtTest/QtTest>
#include <TelepathyQt4/Client/PendingOperation>
#include <TelepathyQt4/Constants>
#include "tests/lib/test.h"
class PinocchioTest : public Test
{
Q_OBJECT
public:
PinocchioTest(QObject *parent = 0);
virtual ~PinocchioTest()... | Remove spurious mLoop member from PinocchioTest | Remove spurious mLoop member from PinocchioTest
Having moved mLoop into the parent class, the fact that there's another
one here (uninitialized, and used for about half the functions) breaks
the tests.
| C | lgpl-2.1 | TelepathyIM/telepathy-qt,special/telepathy-qt-upstream,tiagosh/telepathy-qt,TelepathyQt/telepathy-qt,anantkamath/telepathy-qt,anantkamath/telepathy-qt,freedesktop-unofficial-mirror/telepathy__telepathy-qt4,tiagosh/telepathy-qt,TelepathyIM/telepathy-qt,freedesktop-unofficial-mirror/telepathy__telepathy-qt,special/telepa... |
99b0d43bdf67fc060df5e5b541d72e6e3723a391 | chap1/charcount.c | chap1/charcount.c | #include <stdio.h>
int main()
{
long nc = 0;
while (getchar() != EOF) {
++nc;
}
printf("count: %d\n", nc);
}
| #include <stdio.h>
int main()
{
double nc = 0;
for (nc = 0; getchar() != EOF; ++nc)
;
printf("count: %f\n", nc);
}
| Use dirty C tricks to make it smaller | Use dirty C tricks to make it smaller
| C | mit | jabocg/theclang |
9ff982c1ae369eeb29f416251c63721a9c8738bf | test/CodeGen/2009-06-01-addrofknr.c | test/CodeGen/2009-06-01-addrofknr.c | // RUN: clang-cc %s -o %t -emit-llvm -verify
// PR4289
struct funcptr {
int (*func)();
};
static int func(f)
void *f;
{
return 0;
}
int
main(int argc, char *argv[])
{
struct funcptr fp;
fp.func = &func;
fp.func = func;
return 0;
}
| // RUN: clang-cc %s -o %t -emit-llvm -verify
// PR4289
struct funcptr {
int (*func)();
};
static int func(f)
void *f;
{
return 0;
}
int
main(int argc, char *argv[])
{
struct funcptr fp;
fp.func = &func;
fp.func = func;
}
| Revert this, was a bug in my new warning code, not the test case. | Revert this, was a bug in my new warning code, not the test case.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@76690 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,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,llvm-mirror/cl... |
ebb0c49aa4b45a4778ec270c99b872873d4d37a6 | starlight.h | starlight.h | #pragma once
#include <string>
#if 0
int Stricmp(const char* str1, const char* str2) {
int d;
while ((d = toupper(*str2) - toupper(*str1)) == 0 && *str1) {
str1++;
str2++;
}
return d;
}
int Strnicmp(const char* str1, const char* str2, int count) {
int d = 0;
while (count > 0 && (d = toupper(*str2) - toupper... | #pragma once
#include <string>
#if 0
int Stricmp(const char* str1, const char* str2) {
int d;
while ((d = toupper(*str2) - toupper(*str1)) == 0 && *str1) {
str1++;
str2++;
}
return d;
}
int Strnicmp(const char* str1, const char* str2, int count) {
int d = 0;
while (count > 0 && (d = toupper(*str2) - toupper... | Remove __vectorcall calling convention on older versions of MSVC++ | Remove __vectorcall calling convention on older versions of MSVC++
| C | mit | darkedge/starlight,darkedge/starlight,darkedge/starlight |
17135f7fdf4e4757570805be06fff3c7ae13ec3e | base/win/comptr.h | base/win/comptr.h | // LAF Base Library
// Copyright (c) 2017 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifndef BASE_WIN_COMPTR_H_INCLUDED
#define BASE_WIN_COMPTR_H_INCLUDED
#pragma once
#if !defined(_WIN32)
#error This header file can be used only on Window... | Add ComPtr utility to laf-base library | Add ComPtr utility to laf-base library
| C | mit | aseprite/laf,aseprite/laf | |
797a01fb912a5d121649726f4f7956a9c5da9f16 | tests/regression/02-base/51-empty-not-dead.c | tests/regression/02-base/51-empty-not-dead.c | //PARAM: --set ana.activated '["base", "mallocWrapper"]'
// Copied & modified from 33/04.
#include <assert.h>
int main() {
// state: {bot}, because no locals/globals
assert(1); // state: {bot}, because Hoare set add (in PathSensitive2 map) keeps bot, while reduce would remove
assert(1); // state: {bot}, be... | Add test where base has live bottom state | Add test where base has live bottom state
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
77378e0ff43a3fc1074c3eac22dbf25d1686fece | src/imap/cmd-create.c | src/imap/cmd-create.c | /* Copyright (C) 2002 Timo Sirainen */
#include "common.h"
#include "mail-namespace.h"
#include "commands.h"
bool cmd_create(struct client_command_context *cmd)
{
struct mail_namespace *ns;
const char *mailbox, *full_mailbox;
bool directory;
size_t len;
/* <mailbox> */
if (!client_read_string_args(cmd, 1, &mai... | /* Copyright (C) 2002 Timo Sirainen */
#include "common.h"
#include "mail-namespace.h"
#include "commands.h"
bool cmd_create(struct client_command_context *cmd)
{
struct mail_namespace *ns;
const char *mailbox, *full_mailbox;
bool directory;
size_t len;
/* <mailbox> */
if (!client_read_string_args(cmd, 1, &mai... | CREATE ns_prefix/box/ didn't work right when namespace prefix existed. | CREATE ns_prefix/box/ didn't work right when namespace prefix existed.
--HG--
branch : HEAD
| C | mit | dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot |
bf3b21090f3081c379cffb8f28cecfe6cb28591b | include/shmlog_tags.h | include/shmlog_tags.h | /*
* $Id$
*
* Define the tags in the shared memory in a reusable format.
* Whoever includes this get to define what the SLTM macro does.
*
*/
SLTM(CLI)
SLTM(SessionOpen)
SLTM(SessionClose)
SLTM(ClientAddr)
SLTM(Request)
SLTM(URL)
SLTM(Protocol)
SLTM(HD_Unknown)
SLTM(HD_Lost)
#define HTTPH(a, b, c, d, e, f, g) SL... | /*
* $Id$
*
* Define the tags in the shared memory in a reusable format.
* Whoever includes this get to define what the SLTM macro does.
*
*/
SLTM(Debug)
SLTM(CLI)
SLTM(SessionOpen)
SLTM(SessionClose)
SLTM(ClientAddr)
SLTM(Request)
SLTM(URL)
SLTM(Protocol)
SLTM(HD_Unknown)
SLTM(HD_Lost)
#define HTTPH(a, b, c, d,... | Add a Debug shmemlog tag. | Add a Debug shmemlog tag.
git-svn-id: 7d4b18ab7d176792635d6a7a77dd8cbbea8e8daa@104 d4fa192b-c00b-0410-8231-f00ffab90ce4
| C | bsd-2-clause | ssm/pkg-varnish,CartoDB/Varnish-Cache,ssm/pkg-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,CartoDB/Varnish-Cache,wikimedia/operations-debs-varnish,CartoDB/Varnish-Cache,wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,ssm/pkg-varnish,wikimedia/operations-debs-varnish |
c0d6f035e91ad580fca2e764c7bbe6c70d4d5c74 | src/condor_includes/condor_syscall_mode.h | src/condor_includes/condor_syscall_mode.h | #ifndef _CONDOR_SYSCALLS_H
#define _CONDOR_SYSCALLS_H
#if defined( AIX32)
# include "syscall.aix32.h"
#else
# include <syscall.h>
#endif
typedef int BOOL;
static const int SYS_LOCAL = 1;
static const int SYS_REMOTE = 0;
static const int SYS_RECORDED = 2;
static const int SYS_MAPPED = 2;
static const int SYS_UNRE... | #ifndef _CONDOR_SYSCALLS_H
#define _CONDOR_SYSCALLS_H
#if defined( AIX32)
# include "syscall.aix.h"
#else
# include <syscall.h>
#endif
typedef int BOOL;
static const int SYS_LOCAL = 1;
static const int SYS_REMOTE = 0;
static const int SYS_RECORDED = 2;
static const int SYS_MAPPED = 2;
static const int SYS_UNRECO... | Make work for AIX machines. | Make work for AIX machines.
| C | apache-2.0 | zhangzhehust/htcondor,zhangzhehust/htcondor,htcondor/htcondor,djw8605/htcondor,mambelli/osg-bosco-marco,clalancette/condor-dcloud,bbockelm/condor-network-accounting,htcondor/htcondor,djw8605/htcondor,clalancette/condor-dcloud,djw8605/htcondor,mambelli/osg-bosco-marco,clalancette/condor-dcloud,djw8605/condor,clalancette... |
f08a19b4cdf0740d852fc4cadf1c27f4cf63cfb9 | libmorton/include/morton_common.h | libmorton/include/morton_common.h | #pragma once
#include <stdint.h>
#if _MSC_VER
#include <intrin.h>
#endif
template<typename morton>
inline bool findFirstSetBit(const morton x, unsigned long* firstbit_location) {
#if _MSC_VER && !_WIN64
// 32 BIT on 32 BIT
if (sizeof(morton) <= 4) {
return _BitScanReverse(firstbit_location, x);
}
// 64 BIT on 3... | #pragma once
// Libmorton - Common helper methods needed in Morton encoding/decoding
#include <stdint.h>
#if _MSC_VER
#include <intrin.h>
#endif
template<typename morton>
inline bool findFirstSetBit(const morton x, unsigned long* firstbit_location) {
#if _MSC_VER && !_WIN64
// 32 BIT on 32 BIT
if (sizeof(morton) <... | Fix MSVC compiler warnings about return value not being a boolean | Fix MSVC compiler warnings about return value not being a boolean
| C | mit | Forceflow/libmorton |
b96e42cf7643421ab923ac1d4bb0119c2f3faa8e | include/tclap/Visitor.h | include/tclap/Visitor.h |
/******************************************************************************
*
* file: Visitor.h
*
* Copyright (c) 2003, Michael E. Smoot .
* All rights reverved.
*
* See the file COPYING in the top directory of this distribution for
* more information.
*
* THE SOFTWARE IS PROVIDED _AS IS_, W... |
/******************************************************************************
*
* file: Visitor.h
*
* Copyright (c) 2003, Michael E. Smoot .
* All rights reverved.
*
* See the file COPYING in the top directory of this distribution for
* more information.
*
* THE SOFTWARE IS PROVIDED _AS IS_, W... | Make "visit" method pure virtual (needs to be implemented by subclass to make sense). | Make "visit" method pure virtual (needs to be implemented by subclass
to make sense).
| C | mit | ufz/tclap,ufz/tclap,mjkoo/tclap,mirror/tclap,ufz/tclap,mirror/tclap,Qointum/tclap,mc-server/TCLAP,xguerin/tclap,mc-server/TCLAP,Qointum/tclap,mirror/tclap,mirror/tclap,mjkoo/tclap,xguerin/tclap,xguerin/tclap,mjkoo/tclap,xguerin/tclap,mc-server/TCLAP,Qointum/tclap |
d8f45f076d3f27ac094acb998c2c457ec2ae105f | RectConfinementForce.h | RectConfinementForce.h | /*===- RectConfinementForce.h - libSimulation -=================================
*
* DEMON
*
* This file is distributed under the BSD Open Source License. See LICENSE.TXT
* for details.
*
*===-----------------------------------------------------------------------===*/
#ifndef RECTC... | /*===- RectConfinementForce.h - libSimulation -=================================
*
* DEMON
*
* This file is distributed under the BSD Open Source License. See LICENSE.TXT
* for details.
*
*===-----------------------------------------------------------------------===*/
#ifndef RECTC... | Fix direction of rectangular confinement force. | Fix direction of rectangular confinement force. | C | bsd-3-clause | leios/demonsimulationcode,leios/demonsimulationcode |
ae6149b38413f373634eec6bfd897789cb0c7bdf | tests/regression/29-svcomp/12_interval_bot.c | tests/regression/29-svcomp/12_interval_bot.c | // PARAM: --enable ana.int.interval --enable ana.int.def_exc
int main(){
unsigned long long a ;
unsigned long long addr;
if(a + addr > 0x0ffffffffULL){
return 1;
}
}
| Add minimal failing test case | Add minimal failing test case
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
bf6888b5555a045a90642bf637f1a18f82559bcc | src/arch/microblaze/kernel/interrupt_handler.c | src/arch/microblaze/kernel/interrupt_handler.c | /**
* @file
* @details This file contains @link interrupt_handler() @endlink function.
* It's proxy between asm code and kernel interrupt handler
* @link irq_dispatch() @endlink function.
*
* @date 27.11.09
* @author Anton Bondarev
*/
#include <drivers/irqctrl.h>
#include <asm/msr.h>
/* we havn'... | /**
* @file
* @details This file contains @link interrupt_handler() @endlink function.
* It's proxy between asm code and kernel interrupt handler
* @link irq_dispatch() @endlink function.
*
* @date 27.11.09
* @author Anton Bondarev
*/
#include <drivers/irqctrl.h>
#include <asm/msr.h>
#include <ke... | Fix microblaze build after merge 480c64b | Fix microblaze build after merge 480c64b | C | bsd-2-clause | gzoom13/embox,mike2390/embox,embox/embox,Kefir0192/embox,abusalimov/embox,mike2390/embox,mike2390/embox,gzoom13/embox,Kefir0192/embox,Kakadu/embox,abusalimov/embox,Kakadu/embox,gzoom13/embox,vrxfile/embox-trik,Kakadu/embox,vrxfile/embox-trik,gzoom13/embox,gzoom13/embox,mike2390/embox,gzoom13/embox,embox/embox,Kakadu/em... |
267980e066f9e8c5df8902cdec2005018f632a4d | simulator/mips/mips.h | simulator/mips/mips.h | /**
* mips.h - all the aliases to MIPS ISA
* @author Aleksandr Misevich
* Copyright 2018 MIPT-MIPS
*/
#ifndef MIPS_H_
#define MIPS_H_
#include "mips_instr.h"
#include <infra/instrcache/instr_cache_memory.h>
template<MIPSVersion VERSION>
struct MIPS
{
using Register = MIPSRegister;
using RegisterUInt = M... | /**
* mips.h - all the aliases to MIPS ISA
* @author Aleksandr Misevich
* Copyright 2018 MIPT-MIPS
*/
#ifndef MIPS_H_
#define MIPS_H_
#include "mips_instr.h"
#include <infra/instrcache/instr_cache_memory.h>
template<MIPSVersion version>
struct MIPS
{
using Register = MIPSRegister;
using RegisterUInt = M... | Rename VERSION to avoid overlapping with external macros | Rename VERSION to avoid overlapping with external macros | C | mit | MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015 |
1243b447349640c14dc76a2f441edb77a9892186 | include/knowledge/ClassSelector.h | include/knowledge/ClassSelector.h | #ifndef CLASS_SELECTOR_H_
#define CLASS_SELECTOR_H_
#include "llvm/IR/Module.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Operator.h"
#include "llvm/IR/Type.h"
#include "llvm/IR/V... | Move class selection code out to a separate header | Move class selection code out to a separate header
- makes it possible to be referenced by teh gen-clips-classes program
| C | bsd-3-clause | DrItanium/durandal,DrItanium/durandal | |
f585f6437fb528405f2a9afb620b21be21bebfac | src/main.c | src/main.c | #include <stdio.h>
int main(int argc, char *argv[])
{
printf("gxtas - The GTA Text Assembler\n");
return 0;
}
| /*
* Copyright (c) 2017 Wes Hampson <thehambone93@gmail.com>
*
* Licensed under the MIT License. See LICENSE at top level directory.
*/
#include <stdio.h>
#include <string.h>
#include "gxtas.h"
void show_help_info(void)
{
printf("%s\n", GXTAS_HELP_MESSAGE);
}
void show_version_info(void)
{
printf("%s - ... | Add license header, add version and help info | Add license header, add version and help info
| C | mit | thehambone93/gxtmaker,thehambone93/gxtmaker |
0f262e2c5921e8febea95f259c41302714de5a6a | src/settings/types/Ratio.h | src/settings/types/Ratio.h | //Copyright (c) 2018 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#ifndef RATIO_H
#define RATIO_H
namespace cura
{
/*
* \brief Represents a ratio between two numbers.
*
* This is a facade. It behaves like a double.
*/
struct Ratio
{
/*
* \brief Default constructor set... | //Copyright (c) 2018 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#ifndef RATIO_H
#define RATIO_H
namespace cura
{
/*
* \brief Represents a ratio between two numbers.
*
* This is a facade. It behaves like a double.
*/
struct Ratio
{
/*
* \brief Default constructor set... | Add operators for arithmetic with ratios | Add operators for arithmetic with ratios
Contributes to issue CURA-4410.
| C | agpl-3.0 | Ultimaker/CuraEngine,Ultimaker/CuraEngine |
472c06e90366bc906d48caac6d9e6320e4823116 | include/rocksdb/perf_level.h | include/rocksdb/perf_level.h | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
#ifndef INCLUDE_ROCKSDB... | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
#ifndef INCLUDE_ROCKSDB... | Add low and upper bound values for rocksdb::PerfLevel enum | Add low and upper bound values for rocksdb::PerfLevel enum
Summary:
Add under and over limits for rocksdb::PerfLevel enum
to allow us to do boundary checks before casting ints or unints
to this enum.
Test Plan: make all check -j32
Reviewers: sdong
Reviewed By: sdong
Subscribers: andrewkr, dhruba, leveldb
Differen... | C | bsd-3-clause | wenduo/rocksdb,facebook/rocksdb,hobinyoon/rocksdb,hobinyoon/rocksdb,hobinyoon/rocksdb,SunguckLee/RocksDB,norton/rocksdb,wat-ze-hex/rocksdb,norton/rocksdb,wat-ze-hex/rocksdb,norton/rocksdb,SunguckLee/RocksDB,vmx/rocksdb,wenduo/rocksdb,SunguckLee/RocksDB,wat-ze-hex/rocksdb,ryneli/rocksdb,hobinyoon/rocksdb,bbiao/rocksdb,A... |
eb7a693e0f6de7f3baf55f4fc3a744d6b2863c26 | include/encode/SkWebpEncoder.h | include/encode/SkWebpEncoder.h | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkWebpEncoder_DEFINED
#define SkWebpEncoder_DEFINED
#include "SkEncoder.h"
class SkWStream;
namespace SK_API SkWebpEncoder {
struct Options {
/**
... | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkWebpEncoder_DEFINED
#define SkWebpEncoder_DEFINED
#include "SkEncoder.h"
class SkWStream;
namespace SkWebpEncoder {
struct SK_API Options {
/**
... | Move SK_API from namespace to function | Move SK_API from namespace to function
Bug: skia:
Change-Id: Ib538b77c28e323bbcc40634b0f3cd87d88d898e8
Reviewed-on: https://skia-review.googlesource.com/16496
Reviewed-by: Mike Reed <f5cabf8735907151a446812c9875d6c0c712d847@google.com>
Reviewed-by: Matt Sarett <bb43c9b8214fcf1292f134c9714ba8a0e7075913@google.com>
Comm... | C | bsd-3-clause | google/skia,HalCanary/skia-hc,HalCanary/skia-hc,HalCanary/skia-hc,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,HalCanary/skia-hc,rubenvb/skia,HalCanary/skia-hc,google/skia,HalCanary/skia-hc,google/skia,HalCanary/skia-hc,google/skia,Hikari-no-Tenshi/android_external_skia,rubenvb/skia... |
b020472a9ad91dd6a7d950aeeb49af36170cd334 | src/tests/marquise_util_test.c | src/tests/marquise_util_test.c | #include <glib.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "../marquise.h"
extern uint8_t valid_namespace(char *namespace);
extern char* build_spool_path(const char *spool_prefix, char *namespace);
void test_valid_namespace() {
int ret = valid_namespace("abcdefghijklmn12345");
g_assert_... | #include <glib.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "../marquise.h"
extern uint8_t valid_namespace(char *namespace);
extern char* build_spool_path(const char *spool_prefix, char *namespace);
void test_valid_namespace() {
int ret = valid_namespace("abcdefghijklmn12345");
g_assert_... | Add test for spool path construction | Add test for spool path construction
Signed-off-by: Sharif Olorin <f4e2cff0138e8cd5600e8ca295bf078683584659@tesser.org>
| C | bsd-3-clause | anchor/libmarquise,anchor/libmarquise |
41f5a8559f2909ca28cffaa73eb138d6811a598c | elixir/src/main.c | elixir/src/main.c | // Regular C libs
#include <stdio.h>
// Elixir libs -- clang doesn't know where the hell this is
#include "erl_nif.h"
static ERL_NIF_TERM hello(ErlNifEnv *env, int argc, const ERL_NIF_TERM argv[]) {
}
| // Regular C libs
#include <stdio.h>
// Elixir libs -- clang doesn't know where the hell this is
#include "erl_nif.h"
// Needs to figure out what ERL_NIF_TERM means
static ERL_NIF_TERM hello(ErlNifEnv *env, int argc, const ERL_NIF_TERM argv[]) {
}
static ErlNifFuncs funcs[] = {
{"hello", 2, hello}
};
ERL_NIF_INIT... | Add basic setup for Elixir binding | Add basic setup for Elixir binding
| C | unlicense | bentranter/binding,bentranter/binding,bentranter/binding |
943c83c4943e375b18858c770378b2a74cadf74e | doc/doxy_examples.c | doc/doxy_examples.c | /** \defgroup mpg123_examples example programs using libmpg123
@{ */
/** \file mpg123_to_wav.c A simple MPEG audio to WAV converter using libmpg123 (read) and libsndfile (write).
...an excersize on two simple APIs. */
/** \file mpglib.c Example program mimicking the old mpglib test program.
It takes an MPEG bit... | /** \defgroup mpg123_examples example programs using libmpg123
@{ */
/** \file mpg123_to_wav.c A simple MPEG audio to WAV converter using libmpg123 (read) and libsndfile (write).
...an excersize on two simple APIs. */
/** \file mpglib.c Example program mimicking the old mpglib test program.
It takes an MPEG bit... | Add feedseek example to API docs. | Add feedseek example to API docs.
git-svn-id: 793bb72743a407948e3701719c462b6a765bc435@2963 35dc7657-300d-0410-a2e5-dc2837fedb53
| C | lgpl-2.1 | Distrotech/mpg123,Distrotech/mpg123,Distrotech/mpg123,Distrotech/mpg123,Distrotech/mpg123,Distrotech/mpg123,Distrotech/mpg123 |
f6db8b91f5cfb6203727754f5e1cf2a666a1cdba | BoxContentSDK/BoxContentSDK/QueueManagers/BOXAPIAccessTokenDelegate.h | BoxContentSDK/BoxContentSDK/QueueManagers/BOXAPIAccessTokenDelegate.h | //
// BOXAPIAccessTokenDelegate.h
// BoxContentSDK
//
// Created by Andrew Chun on 6/6/15.
// Copyright (c) 2015 Box. All rights reserved.
//
/**
* App Users are full-featured enterprise Box accounts that belong to your application not a Box user. Unlike typical Box accounts,
* these accounts do not have an ass... | //
// BOXAPIAccessTokenDelegate.h
// BoxContentSDK
//
// Created by Andrew Chun on 6/6/15.
// Copyright (c) 2015 Box. All rights reserved.
//
/**
* App Users are full-featured enterprise Box accounts that belong to your application not a Box user. Unlike typical Box accounts,
* these accounts do not have an ass... | Update the App Users documentation links | Update the App Users documentation links | C | apache-2.0 | box/box-ios-sdk,box/box-ios-sdk,box/box-ios-sdk |
41cdace7b9f4caf0e21119996ca2d8696c6abae0 | mud/home/Http/lib/form/thing.c | mud/home/Http/lib/form/thing.c | inherit "/lib/string/sprint";
inherit "../support";
static string thing_form(object obj)
{
string buffer;
buffer = "<h1>Object form</h1>\n";
buffer += "<form action=\"object.lpc?obj=" + object2string(obj) + "\" method=\"post\">\n";
buffer += "<p>Mass: <input type=\"text\" name=\"mass\" value=\"" + mixed_sprint(o... | inherit "/lib/string/sprint";
inherit "../support";
static string thing_form(object obj)
{
string buffer;
buffer = "<h1>Object form</h1>\n";
buffer += "<form action=\"object.lpc?obj=" + object2string(obj) + "\" method=\"post\">\n";
buffer += "Mass: <input type=\"text\" name=\"mass\" value=\"" + mixed_sprint(obj-... | Allow local mass and mass to be set separately by form | Allow local mass and mass to be set separately by form
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka |
77645b99f438be1a0906126be8052ad36761b1cd | src/include/port/bsdi.h | src/include/port/bsdi.h | #if defined(__i386__)
#define NEED_I386_TAS_ASM
#endif
#if defined(__sparc__)
#define NEED_SPARC_TAS_ASM
#endif
#define HAS_TEST_AND_SET
typedef unsigned char slock_t;
| #if defined(__i386__)
#define NEED_I386_TAS_ASM
#endif
#if defined(__sparc__)
#define NEED_SPARC_TAS_ASM
#endif
#define HAS_TEST_AND_SET
typedef unsigned char slock_t;
/* This is marked as obsoleted in BSD/OS 4.3. */
#ifndef EAI_ADDRFAMILY
#define EAI_ADDRFAMILY 1
#endif
| Add define for missing EAI_ADDRFAMILY in BSD/OS 4.3. | Add define for missing EAI_ADDRFAMILY in BSD/OS 4.3.
| C | agpl-3.0 | tpostgres-projects/tPostgres,yuanzhao/gpdb,chrishajas/gpdb,ahachete/gpdb,Postgres-XL/Postgres-XL,rubikloud/gpdb,lpetrov-pivotal/gpdb,yuanzhao/gpdb,greenplum-db/gpdb,foyzur/gpdb,atris/gpdb,greenplum-db/gpdb,yuanzhao/gpdb,postmind-net/postgres-xl,50wu/gpdb,rvs/gpdb,cjcjameson/gpdb,kaknikhil/gpdb,Chibin/gpdb,Quikling/gpdb... |
4b32efb0f13060b1769d65a16a952b9b02b873a7 | src/lib/mkdir-parents.c | src/lib/mkdir-parents.c | /* Copyright (c) 2003 Timo Sirainen */
#include "lib.h"
#include "mkdir-parents.h"
#include <sys/stat.h>
int mkdir_parents(const char *path, mode_t mode)
{
const char *p;
if (mkdir(path, mode) < 0 && errno != EEXIST) {
if (errno != ENOENT)
return -1;
p = strrchr(path, '/');
if (p == NULL || p == path)
... | /* Copyright (c) 2003 Timo Sirainen */
#include "lib.h"
#include "mkdir-parents.h"
#include <sys/stat.h>
int mkdir_parents(const char *path, mode_t mode)
{
const char *p;
/* EISDIR check is for BSD/OS which returns it if path contains '/'
at the end and it exists. */
if (mkdir(path, mode) < 0 && errno != EEX... | Check for EISDIR error as well. Fixed problems with BSD/OS. | Check for EISDIR error as well. Fixed problems with BSD/OS.
--HG--
branch : HEAD
| C | mit | dscho/dovecot,jwm/dovecot-notmuch,dscho/dovecot,jkerihuel/dovecot,jkerihuel/dovecot,jkerihuel/dovecot,jkerihuel/dovecot,dscho/dovecot,jkerihuel/dovecot,dscho/dovecot,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jwm/dovecot-notmuch,dscho/dovecot,jwm/dovecot-notmuch |
c504a5c47a93476f4e28208bd8307e79e7340db0 | JPetReaderInterface/JPetReaderInterface.h | JPetReaderInterface/JPetReaderInterface.h | /**
* @copyright Copyright 2016 The J-PET Framework 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 find a copy of the License in the LICENCE file.
*
* Unless required by applicable la... | /**
* @copyright Copyright 2016 The J-PET Framework 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 find a copy of the License in the LICENCE file.
*
* Unless required by applicable la... | Change int to long long | Change int to long long
| C | apache-2.0 | alexkernphysiker/j-pet-framework,alexkernphysiker/j-pet-framework,alexkernphysiker/j-pet-framework,alexkernphysiker/j-pet-framework,JPETTomography/j-pet-framework,JPETTomography/j-pet-framework,alexkernphysiker/j-pet-framework,JPETTomography/j-pet-framework |
e192c702e056dd62480ac3a31fe44a4038d5cb0e | modules/template/src/hello.c | modules/template/src/hello.c | /*
* Sample MPI "hello world" application in C
*
* J. Hursey
*
*/
#include <stdio.h>
#include "mpi.h"
int main(int argc, char* argv[])
{
int rank, size, len;
char processor[MPI_MAX_PROCESSOR_NAME];
/*
* Initialize the MPI library
*/
MPI_Init(&argc, &argv);
/*
* Get my 'rank' ... | /*
* Sample MPI "hello world" application in C
*
* J. Hursey
*
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "mpi.h"
int main(int argc, char* argv[])
{
int rank, size, len;
char processor[MPI_MAX_PROCESSOR_NAME];
char *name = NULL;
/*
* Initialize the MPI library
... | Add an optional command line parameter to demostrate a custom form field | Add an optional command line parameter to demostrate a custom form field
| C | bsd-3-clause | OnRampOrg/onramp,OnRampOrg/onramp,ssfoley/onramp,koepked/onramp,koepked/onramp,koepked/onramp,koepked/onramp,koepked/onramp,ssfoley/onramp,OnRampOrg/onramp,OnRampOrg/onramp,koepked/onramp,ssfoley/onramp,OnRampOrg/onramp,OnRampOrg/onramp,ssfoley/onramp,OnRampOrg/onramp |
90fd5ea47ef2c91bc908165a9acd946977155e86 | include/flatcc/portable/pstdalign.h | include/flatcc/portable/pstdalign.h | #ifndef PSTDALIGN_H
#define PSTDALIGN_H
#ifndef __alignas_is_defined
#ifndef __cplusplus
#if (defined(__STDC__) && __STDC__ && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L)
/* C11 or newer */
#include <stdalign.h>
#else
#if defined(__GNUC__) || defined (__IBMC__) || defined(__clang__)
#define _Alignas(... | #ifndef PSTDALIGN_H
#define PSTDALIGN_H
#ifndef __alignas_is_defined
#ifndef __cplusplus
#if ((__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)) || defined(__IBMC__)
#undef PORTABLE_C11_STDALIGN_MISSING
#define PORTABLE_C11_STDALIGN_MISSING
#endif
#if (defined(__STDC__) && __STDC__ && defined(__STDC_VERSION__)... | Handle C11 compilers witout stdalign | Handle C11 compilers witout stdalign
| C | apache-2.0 | dvidelabs/flatcc,skhoroshavin/flatcc,skhoroshavin/flatcc,dvidelabs/flatcc,skhoroshavin/flatcc,dvidelabs/flatcc |
9ebd09954a3b53fa5d87e8e3f1b1bb49c15b62e5 | PolyMapGenerator/LineEquation.h | PolyMapGenerator/LineEquation.h | #ifndef LINE_EQUATION_H
#define LINE_EQUATION_H
#include "Vector2.h"
class LineEquation
{
public:
LineEquation();
LineEquation(Vector2 a, Vector2 b);
LineEquation(Vector2 p, double m);
~LineEquation();
LineEquation(const LineEquation& e);
LineEquation(LineEquation&& e);
LineEquation& operator=(const LineEq... | #ifndef LINE_EQUATION_H
#define LINE_EQUATION_H
#include "Vector2.h"
class LineEquation
{
public:
LineEquation();
LineEquation(Vector2 p1, Vector2 p2);
LineEquation(Vector2 p, double m);
~LineEquation();
LineEquation(const LineEquation& e);
LineEquation(LineEquation&& e);
LineEquation& operator=(const Line... | Modify parameter's name (name conflict) | Modify parameter's name (name conflict)
| C | mit | utilForever/PolyMapGenerator |
87239eaa106a3d4ada4f538b885d9372afa93c6c | include/GLState.h | include/GLState.h | //
// Created by Asger Nyman Christiansen on 08/01/2017.
// Copyright © 2017 Asger Nyman Christiansen. All rights reserved.
//
#pragma once
namespace gle
{
class GLState
{
public:
static void cull_back_faces(bool enable)
{
static bool currently_enabled = true;
if(... | //
// Created by Asger Nyman Christiansen on 08/01/2017.
// Copyright © 2017 Asger Nyman Christiansen. All rights reserved.
//
#pragma once
namespace gle
{
class GLState
{
public:
static void cull_back_faces(bool enable)
{
static bool currently_enabled = false;
if... | Correct initialisation of cull back faces. | Bugfix: Correct initialisation of cull back faces.
| C | mit | asny/GLEngine |
7f34eeef5436765c791931b8a75fce002bf9e13a | src/app_mt/temp_profile.c | src/app_mt/temp_profile.c |
#include "temp_profile.h"
#include "sntp.h"
float
temp_profile_get_current_setpoint(const temp_profile_t* profile)
{
int i;
uint32_t duration_into_profile = sntp_get_time() - profile->start_time;
uint32_t step_begin = 0;
float last_temp = profile->start_value.value;
for (i = 0; i < profile->num_steps; ++i... |
#include "temp_profile.h"
#include "sntp.h"
float
temp_profile_get_current_setpoint(const temp_profile_t* profile)
{
int i;
uint32_t duration_into_profile = sntp_get_time() - profile->start_time;
uint32_t step_begin = 0;
float last_temp = profile->start_value.value;
for (i = 0; i < profile->num_steps; ++i... | Fix temp profile setpoint interpolation. | Fix temp profile setpoint interpolation. | C | mit | brewbit/model-t,brewbit/model-t,brewbit/model-t |
ea731767b015872398bf555c4e5c813e2516d9a6 | src/fclaw2d_include_all.h | src/fclaw2d_include_all.h | /*
Copyright (c) 2012 Carsten Burstedde, Donna Calhoun
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of c... | Add big include file which can be used for applications | Add big include file which can be used for applications
| C | bsd-2-clause | ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw | |
25b8cee970500b0b82324807ad058d55ce10be41 | src/ios/ChromeBluetooth.h | src/ios/ChromeBluetooth.h | @interface ChromeBluetooth : CDVPlugin {
}
#pragma mark chrome.bluetoothLowEnergy interface
// chrome.bluetooth and chrome.bluetoothLowEnergy uses same file because connect, and disconnect
// a deivce requires the same instance of CBCentralManager that found the device.
- (void)connect:(CDVInvokedUrlCommand*)com... | @interface ChromeBluetooth : CDVPlugin {
}
#pragma mark chrome.bluetoothLowEnergy interface
// chrome.bluetooth and chrome.bluetoothLowEnergy uses same file because connect, and disconnect
// a deivce requires the same instance of CBCentralManager that found the device.
- (void)connect:(CDVInvokedUrlCommand*)com... | Fix up missing newlines at eof | Fix up missing newlines at eof
| C | bsd-3-clause | pwnall/cordova-plugin-chrome-apps-bluetooth,MobileChromeApps/cordova-plugin-chrome-apps-bluetooth,pwnall/cordova-plugin-chrome-apps-bluetooth,MobileChromeApps/cordova-plugin-chrome-apps-bluetooth |
bb50e22fd3ad82381dbf750a790b8380a1a1bba5 | src/get_load.c | src/get_load.c | // vim:ts=8:expandtab
#include "i3status.h"
const char *get_load() {
static char part[512];
/* Get load */
#ifdef LINUX
slurp("/proc/loadavg", part, sizeof(part));
*skip_character(part, ' ', 3) = '\0';
#else
/* TODO: correctly check for NetBSD, check if it works the same on *BSD */
... | // vim:ts=8:expandtab
#include "i3status.h"
#include <err.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
const char *get_load() {
static char part[512];
/* Get load */
#if defined(__FreeBSD__) || defined(linux) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__) || defined(sun)... | Use getloadavg() instead of using /proc, patch by Baptiste Daroussin | Use getloadavg() instead of using /proc, patch by Baptiste Daroussin
| C | bsd-3-clause | mkroman/i3status,dj95/i3status,lexszero/i3status,DSMan195276/i3status,afh/i3status,opntr/i3status,Watcom/i3status,lastorset/i3status,Yuhta/i3status,opntr/i3status,rpetrano/i3status,JSmith-BitFlipper/i3status,Gravemind/i3status,puiterwijk/i3status,rpetrano/i3status,i3/i3status,stettberger/i3status,lexszero/i3status,lahw... |
7e8c622d155d03fa0bdf039b9d935a44092004a3 | lib/zip_err_str.c | lib/zip_err_str.c | /*
This file was generated automatically by ./make_zip_err_str.sh
from ./zip.h; make changes there.
*/
#include "zipint.h"
const char * const _zip_err_str[] = {
"No error",
"Multi-disk zip archives not supported",
"Renaming temporary file failed",
"Closing zip archive failed",
"Seek erro... | Add generated file so that hg HEAD can be used with cmake. | Add generated file so that hg HEAD can be used with cmake.
| C | bsd-3-clause | det/libzip,det/libzip,det/libzip,det/libzip | |
3893e7e397b3932a3e6e604d2e7a82b260a1133e | libc/stdio/gets.c | libc/stdio/gets.c | /* Copyright (C) 2004 Manuel Novoa III <mjn3@codepoet.org>
*
* GNU Library General Public License (LGPL) version 2 or later.
*
* Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
*/
#include "_stdio.h"
link_warning(gets, "the 'gets' function is dangerous and should not be used.")
/* UNSAFE FU... | /* Copyright (C) 2004 Manuel Novoa III <mjn3@codepoet.org>
*
* GNU Library General Public License (LGPL) version 2 or later.
*
* Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
*/
#include "_stdio.h"
link_warning(gets, "the 'gets' function is dangerous and should not be used.")
/* UNSAFE FU... | Build if GETC_MACRO use is disabled | Build if GETC_MACRO use is disabled
| C | lgpl-2.1 | ndmsystems/uClibc,wbx-github/uclibc-ng,klee/klee-uclibc,mephi42/uClibc,waweber/uclibc-clang,groundwater/uClibc,ddcc/klee-uclibc-0.9.33.2,foss-xtensa/uClibc,ysat0/uClibc,hwoarang/uClibc,klee/klee-uclibc,kraj/uClibc,gittup/uClibc,czankel/xtensa-uclibc,groundwater/uClibc,foss-xtensa/uClibc,groundwater/uClibc,skristiansson... |
5781c503d06f05637262564eafbb324adb39b344 | SVNetworking/SVNetworking/SVNetworking.h | SVNetworking/SVNetworking/SVNetworking.h | //
// SVNetworking.h
// SVNetworking
//
// Created by Nate Stedman on 3/14/14.
// Copyright (c) 2014 Svpply. All rights reserved.
//
#import <SVNetworking/NSObject+SVBindings.h>
#import <SVNetworking/NSObject+SVMultibindings.h>
#import <SVNetworking/SVDataRequest.h>
#import <SVNetworking/SVDiskCache.h>
#import <SV... | //
// SVNetworking.h
// SVNetworking
//
// Created by Nate Stedman on 3/14/14.
// Copyright (c) 2014 Svpply. All rights reserved.
//
#import <SVNetworking/NSObject+SVBindings.h>
#import <SVNetworking/NSObject+SVMultibindings.h>
#import <SVNetworking/SVDataRequest.h>
#import <SVNetworking/SVDiskCache.h>
#import <SV... | Add new resource classes to the header. | Add new resource classes to the header.
| C | bsd-3-clause | eBay/SVNetworking,eBay/SVNetworking |
5031c46ec40984d57fd0e4a1e53dc3490603b2ae | test/PCH/asm.c | test/PCH/asm.c | // Test this without pch.
// RUN: clang-cc -include %S/asm.h -fsyntax-only -verify %s &&
// Test with pch.
// RUN: clang-cc -emit-pch -o %t %S/asm.h &&
// RUN: clang-cc -include-pch %t -fsyntax-only -verify %s
void call_f(void) { f(); }
void call_clobbers(void) { clobbers(); }
| // Test this without pch.
// RUN: clang-cc -triple i386-unknown-unknown -include %S/asm.h -fsyntax-only -verify %s &&
// Test with pch.
// RUN: clang-cc -triple i386-unknown-unknown -emit-pch -o %t %S/asm.h &&
// RUN: clang-cc -triple i386-unknown-unknown -include-pch %t -fsyntax-only -verify %s
void call_f(void) {... | Make this test portable to non-x86 hosts, patch by Mark Cianciosa! | Make this test portable to non-x86 hosts, patch by Mark Cianciosa!
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@71146 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl... |
3624f96f852e276f9fc7731b9c43a9de42dd8983 | test/helpers-Server.c | test/helpers-Server.c | #include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include "Server.h"
char char_of_uint8(uint8_t x) {
return (char) x;
}
uint32_t bufstrcpy(char *dst, const char *src) {
/* The F* precondition guarantees that src is zero-terminated */
return sprintf(dst, "%s", src);
}
uint32_t print_u32(char *dst, ... | #include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include "Server.h"
uint32_t bufstrcpy(char *dst, const char *src) {
/* The F* precondition guarantees that src is zero-terminated */
return sprintf(dst, "%s", src);
}
uint32_t print_u32(char *dst, uint32_t i) {
return sprintf(dst, "%"PRIu32, i);
}
| Remove function now implemented in kremlib | Remove function now implemented in kremlib
| C | apache-2.0 | FStarLang/kremlin,FStarLang/kremlin,FStarLang/kremlin,FStarLang/kremlin |
fc066825e6f076f54e3a08f6c498eb49a64aff50 | projects/com.oracle.truffle.llvm.test/tests/c/attributes/visibility/visibility1.c | projects/com.oracle.truffle.llvm.test/tests/c/attributes/visibility/visibility1.c | #include<stdlib.h>
volatile int i1 __attribute__ ((visibility ("protected")));
volatile int i2 __attribute__ ((visibility ("default")));
volatile int i3 __attribute__ ((visibility ("hidden")));
volatile int i4 __attribute__ ((visibility ("protected")));
volatile int i5 __attribute__ ((visibility ("internal")));
int m... | Add test case for visibility attributes | Add test case for visibility attributes
| C | bsd-3-clause | grimmerm/sulong,lxp/sulong,crbb/sulong,lxp/sulong,PrinzKatharina/sulong,PrinzKatharina/sulong,PrinzKatharina/sulong,crbb/sulong,PrinzKatharina/sulong,crbb/sulong,grimmerm/sulong,crbb/sulong,lxp/sulong,grimmerm/sulong,lxp/sulong,grimmerm/sulong | |
82b3f8023289175cf756187ab35318066715f430 | src/modules/conf_theme/e_int_config_theme.h | src/modules/conf_theme/e_int_config_theme.h | /*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#ifdef E_TYPEDEFS
#else
#ifndef E_INT_CONFIG_THEME_H
#define E_INT_CONFIG_THEME_H
EAPI E_Config_Dialog *e_int_config_theme(E_Container *con, const char *params __UNUSED__);
EAPI void e_int_config_theme_import_done(E_Config_Dialog *dia);
EAPI void... | /*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#ifdef E_TYPEDEFS
#else
#ifndef E_INT_CONFIG_THEME_H
#define E_INT_CONFIG_THEME_H
EAPI E_Config_Dialog *e_int_config_theme(E_Container *con, const char *params __UNUSED__);
EAPI void e_int_config_theme_import_done(E_Config_Dialog *dia);
EAPI void... | Declare public function in header. | Declare public function in header.
git-svn-id: 0f3f1c46c6da7ffd142db61e503a7ff63af3a195@35475 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
| C | bsd-2-clause | jordemort/e17,jordemort/e17,jordemort/e17 |
f755ecfb8cec7b19dff84295309f2afb24a5afd1 | arch/powerpc/platforms/pseries/of_helpers.c | arch/powerpc/platforms/pseries/of_helpers.c | #include <linux/string.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/of.h>
#include "of_helpers.h"
/**
* pseries_of_derive_parent - basically like dirname(1)
* @path: the full_name of a node to be added to the tree
*
* Returns the node which should be the parent of the node
* described by pa... | #include <linux/string.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/of.h>
#include "of_helpers.h"
/**
* pseries_of_derive_parent - basically like dirname(1)
* @path: the full_name of a node to be added to the tree
*
* Returns the node which should be the parent of the node
* described by pa... | Correct string length in pseries_of_derive_parent() | powerpc/pseries: Correct string length in pseries_of_derive_parent()
Commit a030e1e4bbd085bbcfd0a23f8d355fcd41f39bed make a change to use
kstrndup() instead of kmalloc() + strlcpy() in the pseries_of_derive_parent()
routine that introduces a subtle change in the parent path name generated.
The kstrndup() routine will ... | C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs |
3151c3c004a5edac53a35a9a017cd7b9229cc85b | runtime/runtime_vars.c | runtime/runtime_vars.c |
#include "gc.h"
#include "runtime_vars.h"
#include "scheduler.h"
GC_Env* __get_GC_Env()
{
#ifdef MULTITHREAD
return get_currentthread()->gcEnv;
#else
return currentthread->gcEnv;
#endif
}
|
#include "gc.h"
#include "runtime_vars.h"
#include "scheduler.h"
GC_Env* __get_GC_Env()
{
#ifdef MULTITHREAD
return get_currentthread()->gcEnv;
#else
return currentthread->gcEnv;
#endif
}
ThreadData* __mellow_get_cur_green_thread()
{
#ifdef MULTITHREAD
return get_currentthread();
#else
return current... | Add function to get current green thread at-will | Add function to get current green thread at-will
| C | mit | Mellow-Programming-Language/Mellow,Mellow-Programming-Language/Mellow,Mellow-Programming-Language/Mellow |
54fcf270dee6ed9d27e23b94129788b758df1e6b | include/uapi/linux/cifs/cifs_mount.h | include/uapi/linux/cifs/cifs_mount.h | /*
* include/uapi/linux/cifs/cifs_mount.h
*
* Author(s): Scott Lovenberg (scott.lovenberg@gmail.com)
*
* 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 ... | /*
* include/uapi/linux/cifs/cifs_mount.h
*
* Author(s): Scott Lovenberg (scott.lovenberg@gmail.com)
*
* 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 ... | Expand max share name length to 256 | cifs: Expand max share name length to 256
The old max share name length limit was 80 due to Windows NET SHARE
command not allowing more than that. However, share names can be much
longer. This is a more reasonable maximum share name length.
Signed-off-by: Scott Lovenberg <15023d7c1da44acb5cafa0fa8ca989be856d31b9@gm... | C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs |
13f68420e7b441d5364055f2cc50f14e7b547f76 | vp8/common/opencl/idctllm_cl.h | vp8/common/opencl/idctllm_cl.h | /*
* Copyright (c) 2010 The WebM 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 contributin... | /*
* Copyright (c) 2010 The WebM 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 contributin... | Declare C fallbacks in IDCT header. | Declare C fallbacks in IDCT header.
| C | bsd-3-clause | awatry/libvpx.opencl,awatry/libvpx.opencl,awatry/libvpx.opencl,awatry/libvpx.opencl |
1475e4c1f1ae295038b97cbb8cdcdd42e9e27cf1 | common/network/packet_type.h | common/network/packet_type.h | #ifndef __PACKET_TYPE_H__
#define __PACKET_TYPE_H__
enum PacketType
{
INVALID,
USER,
SHARED_MEM_REQ,
SHARED_MEM_EVICT,
SHARED_MEM_RESPONSE,
SHARED_MEM_UPDATE_UNEXPECTED,
SHARED_MEM_ACK,
SHARED_MEM_TERMINATE_THREADS,
MCP_REQUEST_TYPE,
MCP_RESPONSE_TYPE,
MCP_UTILIZATION_UPDATE_TYPE,
... | #ifndef __PACKET_TYPE_H__
#define __PACKET_TYPE_H__
enum PacketType
{
INVALID,
USER,
SHARED_MEM_REQ,
SHARED_MEM_EVICT,
SHARED_MEM_RESPONSE,
SHARED_MEM_UPDATE_UNEXPECTED,
SHARED_MEM_ACK,
SHARED_MEM_TERMINATE_THREADS,
MCP_REQUEST_TYPE,
MCP_RESPONSE_TYPE,
MCP_UTILIZATION_UPDATE_TYPE,
... | Expand MCP messages to have user (modeled) and system (magic) types. | [network] Expand MCP messages to have user (modeled) and system (magic) types.
| C | mit | 8l/Graphite,8l/Graphite,mit-carbon/Graphite-Cycle-Level,8l/Graphite,mit-carbon/Graphite,nkawahara/Graphite,mit-carbon/Graphite,fhijaz/Graphite,nkawahara/Graphite,mit-carbon/Graphite-Cycle-Level,mit-carbon/Graphite,mit-carbon/Graphite-Cycle-Level,nkawahara/Graphite,fhijaz/Graphite,nkawahara/Graphite,victorisildur/Graphi... |
7edfed86771a8b04c8b20919311f5493e07f775f | core/cont/inc/TListOfTypes.h | core/cont/inc/TListOfTypes.h | // @(#)root/cont
// Author: Philippe Canal Aug 2013
/*************************************************************************
* Copyright (C) 1995-2013, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | // @(#)root/cont
// Author: Philippe Canal Aug 2013
/*************************************************************************
* Copyright (C) 1995-2013, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | Remove unnecessary virtual keyword. Lower version number to minimun. | Remove unnecessary virtual keyword. Lower version number to minimun.
| C | lgpl-2.1 | CristinaCristescu/root,root-mirror/root,agarciamontoro/root,Duraznos/root,zzxuanyuan/root-compressor-dummy,thomaskeck/root,CristinaCristescu/root,perovic/root,cxx-hep/root-cern,Duraznos/root,esakellari/root,CristinaCristescu/root,abhinavmoudgil95/root,jrtomps/root,sbinet/cxx-root,zzxuanyuan/root-compressor-dummy,karies... |
e6f3a0156453cfd376e90f50ee93acfda2b03e9e | BotKit/BotKit.h | BotKit/BotKit.h | //
// BotKit.h
// BotKit
//
// Created by Mark Adams on 9/28/12.
// Copyright (c) 2012 thoughtbot. All rights reserved.
//
#import "BKCoreDataManager.h"
#import "BKManagedViewController.h"
#import "BKManagedTableViewController.h"
#import "NSObject+Coding.h"
#import "NSArray+ObjectAccess.h"
#import "NSDate+Relative... | //
// BotKit.h
// BotKit
//
// Created by Mark Adams on 9/28/12.
// Copyright (c) 2012 thoughtbot. All rights reserved.
//
#import "BKCoreDataManager.h"
#import "BKManagedViewController.h"
#import "BKManagedTableViewController.h"
#import "NSObject+BKCoding.h"
#import "NSArray+ObjectAccess.h"
#import "NSDate+Relati... | Fix reference to BKCoding category | Fix reference to BKCoding category
| C | mit | thoughtbot/BotKit,thoughtbot/BotKit |
df2aa1efbb940aa7bf5ef49235e1d7aff0d52128 | test/Analysis/array-struct.c | test/Analysis/array-struct.c | // RUN: clang -checker-simple -verify %s
// RUN: clang -checker-simple -analyzer-store-region -verify %s
struct s {
int data;
int data_array[10];
};
typedef struct {
int data;
} STYPE;
void f(void) {
int a[10];
int (*p)[10];
p = &a;
(*p)[3] = 1;
struct s d;
struct s *q;
q = &d;
q->data = 3;
... | // RUN: clang -checker-simple -verify %s
// RUN: clang -checker-simple -analyzer-store-region -verify %s
struct s {
int data;
int data_array[10];
};
typedef struct {
int data;
} STYPE;
void f(void) {
int a[10];
int (*p)[10];
p = &a;
(*p)[3] = 1;
struct s d;
struct s *q;
q = &d;
q->data = 3;
... | Add test code for array initialization. | Add test code for array initialization.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@58502 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl... |
3d1e914af227fd8fd7a41420664b225bf63e8f81 | drivers/scsi/qla4xxx/ql4_version.h | drivers/scsi/qla4xxx/ql4_version.h | /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.04.00-k4"
| /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.04.00-k5"
| Update driver version to 5.04.00-k5 | qla4xxx: Update driver version to 5.04.00-k5
Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com>
Reviewed-by: Mike Christie <6fe105eefab41990d7ec714c6c25ade3095cdb48@cs.wisc.edu>
Signed-off-by: Christoph Hellwig <923f7720577207a44b32e59bbfbea59d27f1ae8e@lst.de>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs |
458e459c372dca5579958aa760b4f3e2fc4c0e35 | bandit/registration/registrar.h | bandit/registration/registrar.h | #ifndef BANDIT_REGISTRATION_REGISTRAR_H
#define BANDIT_REGISTRATION_REGISTRAR_H
#include <bandit/registration/spec_registry.h>
namespace bandit {
namespace detail {
struct spec_registrar {
spec_registrar(std::function<void()> func) {
bandit::detail::specs().push_back(func);
}
};
}
}
#... | #ifndef BANDIT_REGISTRATION_REGISTRAR_H
#define BANDIT_REGISTRATION_REGISTRAR_H
#include <bandit/registration/spec_registry.h>
namespace bandit {
namespace detail {
struct spec_registrar {
spec_registrar(std::function<void()> func) {
bandit::detail::specs().push_back(func);
}
};
}
}
#... | Use BANDIT_CONCAT instead of SNOWHOUSE_CONCAT macro | Use BANDIT_CONCAT instead of SNOWHOUSE_CONCAT macro
Resolves #134
| C | mit | joakimkarlsson/bandit,joakimkarlsson/bandit,joakimkarlsson/bandit |
594d5743324d6748cb3fb1fa01c559ec4b225a34 | src/SE_CInputManager.h | src/SE_CInputManager.h | /*
* This file is part of SpeakEasy.
* Copyright (C) 2012 Lambert Clara <lambert.clara@yahoo.fr>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* Licens... | /*
* This file is part of SpeakEasy.
* Copyright (C) 2012 Lambert Clara <lambert.clara@yahoo.fr>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* Licens... | Remove useless explicit keyword on constructors without arguments. | Remove useless explicit keyword on constructors without arguments.
| C | agpl-3.0 | belkiss/SpeakEasy,belkiss/SpeakEasy |
81cb088385ca4a1f63b7b308a8766117eaf90c09 | drivers/scsi/qla2xxx/qla_version.h | drivers/scsi/qla2xxx/qla_version.h | /*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
/*
* Driver version
*/
#define QLA2XXX_VERSION "8.06.00.08-k"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 6
#define QLA_DRIVER_PATCH_VER 0
#defi... | /*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
/*
* Driver version
*/
#define QLA2XXX_VERSION "8.06.00.12-k"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 6
#define QLA_DRIVER_PATCH_VER 0
#defi... | Update the driver version to 8.06.00.12-k. | [SCSI] qla2xxx: Update the driver version to 8.06.00.12-k.
Signed-off-by: Giridhar Malavali <799b6491fce2c7a80b5fedcf9a728560cc9eb954@qlogic.com>
Signed-off-by: Saurav Kashyap <88d6fd94e71a9ac276fc44f696256f466171a3c0@qlogic.com>
Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs |
302313fc0923fb3cc142e3a37c54e5f0f5ebdaa4 | test/FrontendC/vla-2.c | test/FrontendC/vla-2.c | // RUN: %llvmgcc -std=gnu99 %s -S -o - | grep ".*alloca.*align 32"
extern void bar(int[]);
void foo(int a)
{
int var[a] __attribute__((__aligned__(32)));
bar(var);
return;
}
| // RUN: %llvmgcc -std=gnu99 %s -S -o - | grep ".*alloca.*align 16"
extern void bar(int[]);
void foo(int a)
{
int var[a] __attribute__((__aligned__(16)));
bar(var);
return;
}
| Update this to use a "valid" alignment. | Update this to use a "valid" alignment.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@108985 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,app... |
dfc6e33a4089b9f76dfb9aaf22014daa925849a2 | radiant-player-mac/LastFm/LastFmPopover.h | radiant-player-mac/LastFm/LastFmPopover.h | /*
* LastFmPopover.h
*
* Created by Sajid Anwar.
*
* Subject to terms and conditions in LICENSE.md.
*
*/
#import <Cocoa/Cocoa.h>
#import <LastFM/LastFm.h>
#import "LastFmService.h"
#define LASTFM_SIGN_IN_TAG 1
@interface LastFmPopover : NSPopover<NSPopoverDelegate>
@property (retain) IBOutlet LastFmService ... | /*
* LastFmPopover.h
*
* Created by Sajid Anwar.
*
* Subject to terms and conditions in LICENSE.md.
*
*/
#import <Cocoa/Cocoa.h>
#import <LastFm/LastFm.h>
#import "LastFmService.h"
#define LASTFM_SIGN_IN_TAG 1
@interface LastFmPopover : NSPopover<NSPopoverDelegate>
@property (retain) IBOutlet LastFmService ... | Fix case sensitive import statement | Fix case sensitive import statement
Fixes #190
| C | mit | kbhomes/radiant-player-mac,radiant-player/radiant-player-mac,kbhomes/radiant-player-mac,kbhomes/radiant-player-mac,radiant-player/radiant-player-mac,kbhomes/radiant-player-mac,radiant-player/radiant-player-mac,radiant-player/radiant-player-mac,kbhomes/radiant-player-mac,radiant-player/radiant-player-mac |
b51aa35a0453a008bd583f4e8cfcf9a0eb22366b | Markup.h | Markup.h | //***************************************************************************
extern "C"
{
#import <Cocoa/Cocoa.h>
#import "RWPluginFramework.h"
}
//***************************************************************************
#pragma mark Logging
#if ENABLE_LOGGING
# define Log NSLog
# define LOG_ENTRY NSLog(@"... | //***************************************************************************
extern "C"
{
#import <Cocoa/Cocoa.h>
#import "RWPluginFramework.h"
}
//***************************************************************************
#pragma mark Logging
#if ENABLE_LOGGING
# define Log NSLog
# define LOG_ENTRY NSLog(@"... | Use stringWithUTF8String instead of deprecated stringWithCString | Use stringWithUTF8String instead of deprecated stringWithCString
| C | mit | andrep/rw-markup,andrep/rw-markup,andrep/rw-markup |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.