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 |
|---|---|---|---|---|---|---|---|---|---|
dfa2c41cdf0cfe58dc5c24cbf999ce419671a2c9 | src/ia64/Gdestroy_addr_space-ia64.c | src/ia64/Gdestroy_addr_space-ia64.c | /* libunwind - a platform-independent unwind library
Copyright (C) 2002 Hewlett-Packard Co
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
This file is part of libunwind.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"... | Make it a no-op for UNW_LOCAL_ONLY. | (unw_destroy_addr_space): Make it a no-op for UNW_LOCAL_ONLY.
2002/12/18 15:52:23-08:00 mostang.com!davidm
Rename: src/ia64/Gdestroy_addr_space.c -> src/ia64/Gdestroy_addr_space-ia64.c
(Logical change 1.32)
| C | mit | androidarmv6/android_external_libunwind,wdv4758h/libunwind,SyndicateRogue/libunwind,geekboxzone/mmallow_external_libunwind,jrmuizel/libunwind,unkadoug/libunwind,frida/libunwind,pathscale/libunwind,rantala/libunwind,yuyichao/libunwind,pathscale/libunwind,tkelman/libunwind,maltek/platform_external_libunwind,evaautomation... | |
6149b9f287815806eafa12f8ff1b310ea904e25b | tools/regression/tls/ttls4/ttls4.c | tools/regression/tls/ttls4/ttls4.c | /*
* This program tests if a new thread's initial tls data
* is clean.
*
* David Xu <davidxu@freebsd.org>
*
* $FreeBSD$
*/
#include <stdio.h>
#include <pthread.h>
int __thread n;
void *f1(void *arg)
{
n = 1;
return (0);
}
void *f2(void *arg)
{
if (n != 0) {
printf("bug, n == %d \n", n);
exit(1);
}
r... | /*
* This program tests if a new thread's initial tls data
* is clean.
*
* David Xu <davidxu@freebsd.org>
*
* $FreeBSD$
*/
#include <stdio.h>
#include <pthread.h>
#include <unistd.h>
int __thread n;
void *f1(void *arg)
{
if (n != 0) {
printf("bug, n == %d \n", n);
exit(1);
}
n = 1;
return (0);
}
int ... | Adjust code to be more reliable. | Adjust code to be more reliable.
| C | bsd-3-clause | jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase |
e865f3e6f4ef2d2617f5003c7c819ed15b5a511b | include/asm-sparc/device.h | include/asm-sparc/device.h | /*
* Arch specific extensions to struct device
*
* This file is released under the GPLv2
*/
#include <asm-generic/device.h>
| /*
* Arch specific extensions to struct device
*
* This file is released under the GPLv2
*/
#ifndef _ASM_SPARC_DEVICE_H
#define _ASM_SPARC_DEVICE_H
struct device_node;
struct of_device;
struct dev_archdata {
struct device_node *prom_node;
struct of_device *op;
};
#endif /* _ASM_SPARC_DEVICE_H */
| Define minimal struct dev_archdata, similarly to sparc64. | [SPARC]: Define minimal struct dev_archdata, similarly to sparc64.
Signed-off-by: David S. Miller <fe08d3c717adf2ae63592e4c9aec6e3e404d8e3e@davemloft.net>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,Krist... |
a1f23181e284c102d6def1b4a13c29b989c5c097 | ui/addressdialog.h | ui/addressdialog.h | #pragma once
#include <QtWidgets/QDialog>
#include <QtWidgets/QLabel>
#include <QtCore/QStringListModel>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QComboBox>
#include <QtCore/QTimer>
#include <QtCore/QThread>
#include "binaryninjaapi.h"
#include "uitypes.h"
class BINARYNINJAUIAPI GetSymbolsListThread: public... | Add autocomplete and preview to 'Go To Address' dialog | Add autocomplete and preview to 'Go To Address' dialog
| C | mit | joshwatson/binaryninja-api,joshwatson/binaryninja-api,joshwatson/binaryninja-api,Vector35/binaryninja-api,joshwatson/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,joshwatson/binaryninja-api,Vector35/binaryninja-api | |
4c870904cd1ae7954ea1412d9145ca75b927dc18 | gobject/gobject-autocleanups.h | gobject/gobject-autocleanups.h | /*
* Copyright © 2015 Canonical Limited
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the licence, or (at your option) any later version.
*
* This librar... | /*
* Copyright © 2015 Canonical Limited
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the licence, or (at your option) any later version.
*
* This librar... | Revert "gvalue: Use g_value_clear as clear function" | Revert "gvalue: Use g_value_clear as clear function"
This reverts commit 3bb2e8dfc9eae7c6abd8fbec5fa751ffcb495121.
| C | lgpl-2.1 | MathieuDuponchelle/glib,mzabaluev/glib,endlessm/glib,cention-sany/glib,MathieuDuponchelle/glib,endlessm/glib,johne53/MB3Glib,mzabaluev/glib,endlessm/glib,mzabaluev/glib,johne53/MB3Glib,cention-sany/glib,MathieuDuponchelle/glib,johne53/MB3Glib,Distrotech/glib,ieei/glib,johne53/MB3Glib,cention-sany/glib,endlessm/glib,iee... |
2b45cbf3663945a2a3178a93b6cf6cce81dd8376 | sipXmediaLib/include/mp/MprnIntMsg.h | sipXmediaLib/include/mp/MprnIntMsg.h | //
// Copyright (C) 2007 SIPez LLC.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// Copyright (C) 2007 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// $$
///////////////////////////////////////////////////////////////////////////////
#ifndef _MprnIntMsg_h_
#define _MprnIntMsg... | Add notification message, bearing some abstract integer. | Add notification message, bearing some abstract integer.
git-svn-id: f26ccc5efe72c2bd8e1c40f599fe313f2692e4de@10874 a612230a-c5fa-0310-af8b-88eea846685b
| C | lgpl-2.1 | sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror | |
e590329059edafa461324397f550cf314e35be70 | include/dijkstra.h | include/dijkstra.h |
#ifndef __DIJKSTRA_H__
#define __DIJKSTRA_H__
#include <track_node.h>
int dijkstra(const track_node* const track,
const track_node* const start,
const track_node* const end,
path_node* const path);
#endif
|
#ifndef __DIJKSTRA_H__
#define __DIJKSTRA_H__
#include <track_node.h>
#define MAX_ROUTING_TIME_ESTIMATE 5
int dijkstra(const track_node* const track,
const track_node* const start,
const track_node* const end,
path_node* const path);
#endif
| Add a max routing time estimate (in clock ticks) | Add a max routing time estimate (in clock ticks) | C | mit | ferrous26/cs452-flaming-meme,ferrous26/cs452-flaming-meme,ferrous26/cs452-flaming-meme |
f72844ae685bc5516a818402115b0df8b3efd016 | libevmjit-cpp/JitVM.h | libevmjit-cpp/JitVM.h | #pragma once
#include <libevm/VMFace.h>
#include <evmjit/libevmjit/ExecutionEngine.h>
namespace dev
{
namespace eth
{
class JitVM: public VMFace
{
public:
virtual bytesConstRef execImpl(u256& io_gas, ExtVMFace& _ext, OnOpFunc const& _onOp = {}, uint64_t _steps = (uint64_t)-1) override final;
private:
jit::Runtime... | #pragma once
#include <libevm/VMFace.h>
#include <evmjit/libevmjit/ExecutionEngine.h>
namespace dev
{
namespace eth
{
class JitVM: public VMFace
{
public:
virtual bytesConstRef execImpl(u256& io_gas, ExtVMFace& _ext, OnOpFunc const& _onOp, uint64_t _steps) override final;
private:
jit::RuntimeData m_data;
jit::E... | Change the way execution results are collected. | Change the way execution results are collected.
Changes handling ExecutionResult by Executive. From now execution results are collected on if a storage for results (ExecutionResult) is provided to an Executiove instance up front. This change allow better output management for calls - VM interface improved.
| C | mit | ethereum/evmjit,ethereum/evmjit,ethereum/evmjit |
61481afd2d1e81e91b533a55dc544a62738ba663 | chrome/browser/extensions/convert_web_app.h | chrome/browser/extensions/convert_web_app.h | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_EXTENSIONS_CONVERT_WEB_APP_H_
#define CHROME_BROWSER_EXTENSIONS_CONVERT_WEB_APP_H_
#pragma once
#include <string>
#include "b... | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_EXTENSIONS_CONVERT_WEB_APP_H_
#define CHROME_BROWSER_EXTENSIONS_CONVERT_WEB_APP_H_
#pragma once
#include <string>
#include "b... | Revert 64847 - Clang fix. | Revert 64847 - Clang fix.
TBR=evan@chromium.org
Review URL: http://codereview.chromium.org/4300003
git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@64850 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
| C | bsd-3-clause | wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser |
23abb094a622353a97e7a51aa28aa5efb29f6fbb | libc/sysdeps/linux/powerpc/bits/msq.h | libc/sysdeps/linux/powerpc/bits/msq.h | /* Copyright (C) 1995, 1996, 1997, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version ... | Make powerpc compile. Needs this header... | Make powerpc compile. Needs this header...
| C | lgpl-2.1 | joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc | |
ac42aa1f7aa6de3cd131ecb8224f1a6d51179760 | libgo/go/log/syslog/syslog_c.c | libgo/go/log/syslog/syslog_c.c | /* syslog_c.c -- call syslog for Go.
Copyright 2011 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file. */
#include <syslog.h>
/* We need to use a C function to call the syslog function, because we
can't represent a C var... | /* syslog_c.c -- call syslog for Go.
Copyright 2011 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file. */
#include <syslog.h>
/* We need to use a C function to call the syslog function, because we
can't represent a C var... | Fix name of C syslog function. | syslog: Fix name of C syslog function.
From Rainer Orth.
R=iant
CC=gofrontend-dev
https://golang.org/cl/5480052
| C | bsd-3-clause | golang/gofrontend,anlhord/gofrontend,anlhord/gofrontend,qskycolor/gofrontend,qskycolor/gofrontend,qskycolor/gofrontend,anlhord/gofrontend,anlhord/gofrontend,golang/gofrontend,golang/gofrontend,anlhord/gofrontend,anlhord/gofrontend,qskycolor/gofrontend,qskycolor/gofrontend,qskycolor/gofrontend,anlhord/gofrontend,qskycol... |
31e4a57f6460265515233833bead6202e7304e07 | EmbeddedPkg/Include/Library/DebugAgentTimerLib.h | EmbeddedPkg/Include/Library/DebugAgentTimerLib.h | /** @file
Platform specific Debug Agent abstraction for timer used by the agent.
The timer is used by the debugger to break into a running program.
Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the... | /** @file
Platform specific Debug Agent abstraction for timer used by the agent.
The timer is used by the debugger to break into a running program.
Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the... | Fix newline at end of file issue. | Fix newline at end of file issue.
git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@10508 6f19259b-4bc3-4df7-8a09-765794883524
| C | bsd-2-clause | MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2 |
f69cd49a44ad37edd7d3c7dcab82ab07633da72a | src/software_rasterizer/rasterizer.h | src/software_rasterizer/rasterizer.h | #ifndef RPLNN_RASTERIZER_H
#define RPLNN_RASTERIZER_H
/* Currently wants the points in pixel coordinates, (0, 0) at screen center increasing towards top-right. Tri wanted as CCW
* Depth buffer stores the depth in the first 24bits and the rest 8 are reserved for future use (stencil). */
void rasterizer_rasterize(uint... | #ifndef RPLNN_RASTERIZER_H
#define RPLNN_RASTERIZER_H
/* Currently wants the points in pixel coordinates, (0, 0) at screen center increasing towards top-right. Tri wanted as CCW
* Depth buffer stores the depth in the first 24bits and the rest 8 are reserved for future use (stencil). */
void rasterizer_rasterize(uint... | Clean up 7: Split function parameter list to multiple lines. | Clean up 7: Split function parameter list to multiple lines.
| C | mit | ropelinen/rasterizer,ropelinen/rasterizer |
d1192bc1cb4ba12af995c6ae6a8a9632eb482c4a | slave/scoils.c | slave/scoils.c | #include "../modlib.h"
#include "../parser.h"
#include "stypes.h"
#include "scoils.h"
//Use external slave configuration
extern MODBUSSlaveStatus MODBUSSlave;
| Create slave coils module header file | Create slave coils module header file
| C | mit | Jacajack/modlib | |
70e0426892b6df38ce023b41ea86526e55a43c11 | tests/regression/02-base/79-unknown-spawn.c | tests/regression/02-base/79-unknown-spawn.c | // PARAM: --enable sem.unknown_function.spawn
#include <goblint.h>
#include <stddef.h>
int magic(void* (f (void *)));
void *t_fun(void *arg) {
// __goblint_check(1); // reachable
return NULL;
}
int main() {
magic(t_fun); // unknown function
return 0;
}
| // PARAM: --enable sem.unknown_function.spawn
#include <goblint.h>
#include <stddef.h>
int magic(void* (f (void *)));
void *t_fun(void *arg) {
__goblint_check(1); // reachable
return NULL;
}
int main() {
magic(t_fun); // unknown function
return 0;
}
| Undo commenting out of __goblint_check | Undo commenting out of __goblint_check
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
9a2c64d71dfd174fb9dcc7f6411e325a54fc64b4 | include/config/SkUserConfigManual.h | include/config/SkUserConfigManual.h | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkUserConfigManual_DEFINED
#define SkUserConfigManual_DEFINED
#define GR_TEST_UTILS 1
#define SK_BUILD_FOR_ANDROID_FRAMEWORK
#define SK_DEFAULT_FONT_CACHE_LIMIT ... | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkUserConfigManual_DEFINED
#define SkUserConfigManual_DEFINED
#define GR_TEST_UTILS 1
#define SK_BUILD_FOR_ANDROID_FRAMEWORK
#define SK_DEFAULT_FONT_CACHE_LIMIT ... | Remove SK_IGNORE_LINEAR_METRICS_FIX flag from Skia | Remove SK_IGNORE_LINEAR_METRICS_FIX flag from Skia
Test: refactoring change, will land once all existing tests pass.
Change-Id: I2cdb41023689e458990a71c5dbcc35844a22bbfa
| C | bsd-3-clause | aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-... |
d488d9cfefc06373fc0f18ec334a5caa8d73e5c9 | test/Index/complete-tabs.c | test/Index/complete-tabs.c | // Test code-completion in the presence of tabs
struct Point { int x, y; };
void f(struct Point *p) {
p->
// RUN: c-index-test -code-completion-at=%s:5:5 %s | FileCheck -check-prefix=CHECK-CC1 %s
// CHECK-CC1: {TypedText x}
// CHECK-CC1: {TypedText y}
| Add a test case for code-completion in the presence of tabs | Add a test case for code-completion in the presence of tabs
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@92882 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl... | |
975f8f82233cacbd8aa5f5baeb786b904e4a6dc8 | src/libreset/params.h | src/libreset/params.h | /*
* libreset - Reentrent set library for fast set operations in C
*
* Copyright (C) 2014 Matthias Beyer
* Copyright (C) 2014 Julian Ganz
*
* This file is part of libreset.
*
* libreset is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as publ... | Add header for parameters and tweakables | Add header for parameters and tweakables
| C | lgpl-2.1 | waysome/libreset,waysome/libreset | |
5616dc9ea64d8fcc7f366f6c11b050817d7ec227 | include/Support/ThreadSupport.h | include/Support/ThreadSupport.h | //===-- Support/ThreadSupport.h - Generic threading support -----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===--------... | //===-- Support/ThreadSupport.h - Generic threading support -----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===--------... | Use autoconf answers from config.h (FIXME, should autoconf this file directly instead). | Use autoconf answers from config.h (FIXME, should autoconf this file
directly instead).
Fix LockHolder/MutexLocker typo.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@11156 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,dsla... |
6b614879e21596184fc0af246243d1cce880e1f7 | test/Sema/carbon.c | test/Sema/carbon.c | // RUN: clang %s -fsyntax-only -print-stats
#ifdef __APPLE__
#include <Carbon/Carbon.h>
#endif
| // RUN: clang %s -fsyntax-only -print-stats &&
// RUN: clang -x c-header -o %t %s && clang -token-cache %t %s
#ifdef __APPLE__
#include <Carbon/Carbon.h>
#endif
| Enhance -fsyntax-only test of Carbon.h to also include testing for PTH. | Enhance -fsyntax-only test of Carbon.h to also include testing for PTH.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@61958 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl... |
26f5dea4e721592f0e64183b9d0a325174487231 | libs/ac_memset/srcs/ac_memset.c | libs/ac_memset/srcs/ac_memset.c | /*
* Copyright 2015 Wink Saville
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /*
* Copyright 2015 Wink Saville
*
* 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... | Add memset, needed by compiler for initializing structs and such | Add memset, needed by compiler for initializing structs and such
| C | apache-2.0 | winksaville/sadie,winksaville/sadie |
497063382b921183790a3ab78a12d7ee3e9943d2 | isHUD/ISHAppDelegate.h | isHUD/ISHAppDelegate.h | //
// ISHAppDelegate.h
// isHUD
//
// Created by ghawkgu on 11/15/11.
// Copyright (c) 2011 ghawkgu. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#define HUD_FADE_IN_DURATION (0.25)
#define HUD_FADE_OUT_DURATION (0.5)
#define HUD_DISPLAY_DURATION (2.0)
#define HUD_ALPHA_VALUE (0.6)
#define HUD_... | //
// ISHAppDelegate.h
// isHUD
//
// Created by ghawkgu on 11/15/11.
// Copyright (c) 2011 ghawkgu. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#define HUD_FADE_IN_DURATION (0.25)
#define HUD_FADE_OUT_DURATION (0.5)
#define HUD_DISPLAY_DURATION (2.0)
#define HUD_ALPHA_VALUE (0.6)
#define HUD_... | Set the height of the HUD to 90. | Set the height of the HUD to 90.
| C | mit | ghawkgu/isHUD |
8dd185b184d006b2e646eb4beeaffa1f9d9d930a | include/Genes/Freedom_To_Move_Gene.h | include/Genes/Freedom_To_Move_Gene.h | #ifndef FREEDOM_TO_MOVE_GENE_H
#define FREEDOM_TO_MOVE_GENE_H
#include <fstream>
#include "Gene.h"
// Total number of legal moves
class Freedom_To_Move_Gene : public Gene
{
public:
Freedom_To_Move_Gene();
explicit Freedom_To_Move_Gene(std::ifstream& ifs);
~Freedom_To_Move_Gene() override;... | #ifndef FREEDOM_TO_MOVE_GENE_H
#define FREEDOM_TO_MOVE_GENE_H
#include <fstream>
#include "Gene.h"
// Total number of legal moves
class Freedom_To_Move_Gene : public Gene
{
public:
Freedom_To_Move_Gene();
~Freedom_To_Move_Gene() override;
Freedom_To_Move_Gene* duplicate() const override;... | Remove unneeded method override declaration from Freedom to Move | Remove unneeded method override declaration from Freedom to Move
| C | mit | MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess |
7278a74da3454fff7eb439ef4e1c6a2049c1be9c | Firmware/main.c | Firmware/main.c | #include <stm32f4xx.h>
#include <stm32f4xx_gpio.h>
void init_GPIO()
{
GPIO_InitTypeDef GPIO_InitStruct = {
.GPIO_Pin = GPIO_Pin_15,
.GPIO_Mode = GPIO_Mode_OUT,
.GPIO_Speed = GPIO_Speed_50MHz,
.GPIO_OType =GPIO_OType_PP,
.GPIO_PuPd = GPIO_PuPd_UP
};
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOD, ENABLE);
... | #include <stm32f4xx.h>
#include <stm32f4xx_gpio.h>
void init_GPIO()
{
GPIO_InitTypeDef GPIO_InitStruct = {
.GPIO_Pin = GPIO_Pin_12 | GPIO_Pin_13 | GPIO_Pin_14 | GPIO_Pin_15,
.GPIO_Mode = GPIO_Mode_OUT,
.GPIO_Speed = GPIO_Speed_50MHz,
.GPIO_OType =GPIO_OType_PP,
.GPIO_PuPd = GPIO_PuPd_DOWN
};
RCC_AHB1Peri... | Adjust GPIO settings and add some test code | Adjust GPIO settings and add some test code
| C | mit | PUCSIE-embedded-course/stm32f4-examples,PUCSIE-embedded-course/stm32f4-examples,PUCSIE-embedded-course/stm32f4-examples,PUCSIE-embedded-course/stm32f4-examples,shengwen1997/stm32_pratice,PUCSIE-embedded-course/stm32f4-examples,shengwen1997/stm32_pratice,PUCSIE-embedded-course/stm32f4-examples,shengwen1997/stm32_pratice... |
c46835cc42db06a1fcf12a11726614b66b6763a4 | project_config/lmic_project_config.h | project_config/lmic_project_config.h | // project-specific definitions for otaa sensor
//#define CFG_eu868 1
//#define CFG_us915 1
//#define CFG_au921 1
//#define CFG_as923 1
#define CFG_in866 1
#define CFG_sx1276_radio 1
//#define LMIC_USE_INTERRUPTS
| // project-specific definitions for otaa sensor
//#define CFG_eu868 1
#define CFG_us915 1
//#define CFG_au921 1
//#define CFG_as923 1
//#define CFG_in866 1
#define CFG_sx1276_radio 1
//#define LMIC_USE_INTERRUPTS
| Change default region back to US | Change default region back to US
| C | mit | mcci-catena/arduino-lmic,mcci-catena/arduino-lmic,mcci-catena/arduino-lmic |
25ac856508aa714758781513c41ceaf214e42d94 | GSXCBuildDelegate.h | GSXCBuildDelegate.h | /* Definition of protocol GSXCBuildDelegate
Copyright (C) 2022 Free Software Foundation, Inc.
By: Gregory John Casamento
Date: 25-01-2022
This file is part of GNUstep.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
L... | /* Definition of protocol GSXCBuildDelegate
Copyright (C) 2022 Free Software Foundation, Inc.
By: Gregory John Casamento
Date: 25-01-2022
This file is part of GNUstep.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
L... | Build delegate change so reporting back updates shows correctly | Build delegate change so reporting back updates shows correctly
| C | lgpl-2.1 | gnustep/xcode |
a08fb84be93610ecd7851e16daeaeb1d175df74c | Sources/HTMLRange.h | Sources/HTMLRange.h | //
// HTMLRange.h
// HTMLKit
//
// Created by Iska on 20/11/16.
// Copyright © 2016 BrainCookie. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface HTMLRange : NSObject
@end
| //
// HTMLRange.h
// HTMLKit
//
// Created by Iska on 20/11/16.
// Copyright © 2016 BrainCookie. All rights reserved.
//
#import "HTMLNode.h"
/**
A HTML Range, represents a sequence of content within a node tree.
Each range has a start and an end which are boundary points.
A boundary point is a tuple consist... | Add properties to HTML Range interface | Add properties to HTML Range interface
See:
https://dom.spec.whatwg.org/#range
| C | mit | iabudiab/HTMLKit,iabudiab/HTMLKit,iabudiab/HTMLKit,iabudiab/HTMLKit,iabudiab/HTMLKit |
90b666664647657fa1317ab126ec03e5a77e9dcb | tests/regression/02-base/91-ad-meet.c | tests/regression/02-base/91-ad-meet.c | // SKIP
// TODO: be sound and claim that assert may hold instead of must not hold
// assert passes when compiled
#include <assert.h>
struct s {
int fst;
};
int main() {
struct s a;
void *p = &a.fst;
void *q = ((int(*)[1]) (&a))[0];
assert(p == q);
return 0;
}
| Add skipped base AD.meet unsoundness test | Add skipped base AD.meet unsoundness test
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
45ebbc31924b8bda38d9141407bd46581ad8a6a9 | SQLite3/Statement.h | SQLite3/Statement.h | #pragma once
#include "sqlite3.h"
#include "Common.h"
namespace SQLite3 {
class Statement {
friend void notifyUnlock(void* args[], int nArgs);
public:
static StatementPtr Prepare(sqlite3* sqlite, Platform::String^ sql);
~Statement();
void Bind(const SafeParameterVector& params);
void Bind(Pa... | #pragma once
#include "sqlite3.h"
#include "Common.h"
namespace SQLite3 {
class Statement {
public:
static StatementPtr Prepare(sqlite3* sqlite, Platform::String^ sql);
~Statement();
void Bind(const SafeParameterVector& params);
void Bind(ParameterMap^ params);
void Run();
Platform::Stri... | Remove orphaned notifyUnlock friend function | Remove orphaned notifyUnlock friend function
| C | mit | doo/SQLite3-WinRT,roryok/SQLite3-WinRT,roryok/SQLite3-WinRT,doo/SQLite3-WinRT,roryok/SQLite3-WinRT,doo/SQLite3-WinRT,roryok/SQLite3-WinRT |
ac9f436e0c8256abd7dd62024325494746702964 | src/BotAssert.h | src/BotAssert.h | #pragma once
#include <cstdio>
#include <cstdarg>
#include <sstream>
#include <stdarg.h>
#include <ctime>
#include <iomanip>
#define BOT_BREAK __debugbreak();
#if true
#define BOT_ASSERT(cond, msg, ...) \
do \
{ \
if (!(cond)) \
{ \
Assert::ReportFailure(#... | #pragma once
#include <cstdio>
#include <cstdarg>
#include <sstream>
#include <stdarg.h>
#include <ctime>
#include <iomanip>
#ifdef WIN32
#define BOT_BREAK __debugbreak();
#else
#define BOT_BREAK ;
#endif
#if true
#define BOT_ASSERT(cond, msg, ...) \
do \
{ \
if (!(cond)) \
... | Put dummy BOT_ASSERT in case of non-Windows build | Put dummy BOT_ASSERT in case of non-Windows build
Unfortunately non-Windows platforms don't have good analogue
for Winodws DebugBrake(). There are several alternatives that
depend heavily on debugger time.
Since we have lldb, gdb and probably something else but still
need to compile the code this commit replaces BOT_... | C | mit | davechurchill/commandcenter |
eb01c70598927adfcfc47a3ab5fc48048e25b4dd | test2/vla/normal_alloca_after_vla.c | test2/vla/normal_alloca_after_vla.c | // RUN: %ocheck 0 %s
void abort(void);
g()
{
return 0;
}
main()
{
int n = 5; // an unaligned value
int vla[n];
vla[0] = 1;
vla[1] = 2;
vla[2] = 3;
vla[3] = 4;
{
// this alloca is done in order after the vla,
// but is coalesced to before the VLA by the stack logic
int x = 99;
if(x != 99) abort();
... | Test normal (backend-)allocas inside VLA scope | Test normal (backend-)allocas inside VLA scope
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler | |
236a881c46f7930f74ed656d85c18a93e2fb9e25 | CMSIS/DSP/Platforms/IPSS/ipss_bench.h | CMSIS/DSP/Platforms/IPSS/ipss_bench.h | #ifndef IPSS_BENCH_H
#define IPSS_BENCH_H
extern void start_ipss_measurement();
extern void stop_ipss_measurement();
#endif
| #ifndef IPSS_BENCH_H
#define IPSS_BENCH_H
#ifdef __cplusplus
extern "C"
{
#endif
void start_ipss_measurement();
void stop_ipss_measurement();
#ifdef __cplusplus
}
#endif
#endif
| Update header for use from C++ | CMSIS-DSP: Update header for use from C++
| C | apache-2.0 | JonatanAntoni/CMSIS_5,JonatanAntoni/CMSIS_5,ARM-software/CMSIS_5,JonatanAntoni/CMSIS_5,JonatanAntoni/CMSIS_5,JonatanAntoni/CMSIS_5,ARM-software/CMSIS_5,ARM-software/CMSIS_5,ARM-software/CMSIS_5,JonatanAntoni/CMSIS_5,ARM-software/CMSIS_5,ARM-software/CMSIS_5 |
05da06ee7b432a9a4a9f14108cece51f6f557114 | cc1/tests/test016.c | cc1/tests/test016.c | /*
name: TEST016
description: Basic pointer test
output:
test016.c:43: error: redefinition of 'func2'
test016.c:47: error: incompatible types when assigning
G1 I g
F1
G2 F1 func1
{
-
A2 I x
A4 P p
G1 #I1 :I
A2 #I1 :I
A4 A2 'P :P
A4 @I #I0 :I
j L5 A2 #I0 =I
yI #I1
L5
A4 G1 'P :P
A4 @I #I0 :I
j L6 A4 #I0 IP !I
... | Add basic test for pointers | Add basic test for pointers
| C | isc | k0gaMSX/scc,8l/scc,k0gaMSX/scc,8l/scc,k0gaMSX/kcc,k0gaMSX/kcc,8l/scc,k0gaMSX/scc | |
dc0beb416b6f4033c0fade3ffe719b1dd65bc30b | ObjectiveRocks/ObjectiveRocks.h | ObjectiveRocks/ObjectiveRocks.h | //
// ObjectiveRocks.h
// ObjectiveRocks
//
// Created by Iska on 20/11/14.
// Copyright (c) 2014 BrainCookie. All rights reserved.
//
#import "RocksDB.h"
#import "RocksDBOptions.h"
#import "RocksDBReadOptions.h"
#import "RocksDBWriteOptions.h"
#import "RocksDBWriteBatch.h"
#import "RocksDBIterator.h"
#import "Roc... | //
// ObjectiveRocks.h
// ObjectiveRocks
//
// Created by Iska on 20/11/14.
// Copyright (c) 2014 BrainCookie. All rights reserved.
//
#import "RocksDB.h"
#import "RocksDBOptions.h"
#import "RocksDBReadOptions.h"
#import "RocksDBWriteOptions.h"
#import "RocksDBWriteBatch.h"
#import "RocksDBIterator.h"
#import "Roc... | Add RocksDB comparator import to the main public header | Add RocksDB comparator import to the main public header
| C | mit | iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks |
83641b5afb00ef76a2b397a2591a705dd1488c7f | cc1/tests/test003.c | cc1/tests/test003.c | /*
name: TEST003
description: Select function to call inside ternary operator
output:
*/
int
foo(void)
{
return 42;
}
int
bar(void)
{
return 24;
}
int
main(void)
{
return (1 ? foo : bar)();
}
| /*
name: TEST003
description: Select function to call inside ternary operator
output:
F1
X1 F1 foo
G1 F1 foo {
-
yI #I2A
}
X2 F1 bar
G2 F1 bar {
-
yI #I18
}
X3 F1 main
G3 F1 main {
-
yI G1 cI
}
*/
int
foo(void)
{
return 42;
}
int
bar(void)
{
return 24;
}
int
main(void)
{
return (1 ? foo : bar)();
}
| Add correct output for TEST003 | Add correct output for TEST003
stateless take a look that it even optimize out
the ternary operator.
| C | isc | k0gaMSX/scc,8l/scc,k0gaMSX/kcc,k0gaMSX/scc,8l/scc,k0gaMSX/scc,8l/scc,k0gaMSX/kcc |
2abc9a8a44d9920d20c30eb639596a8726580381 | markdown_lib.h | markdown_lib.h | #include <stdlib.h>
#include <stdio.h>
#include <glib.h>
enum markdown_extensions {
EXT_SMART = 1,
EXT_NOTES = 2,
EXT_FILTER_HTML = 3,
EXT_FILTER_STYLES = 4
};
enum markdown_formats {
HTML_FORMAT,
LATEX_FORMAT,
GROFF_MM_FORMAT
};
GString * markdown_to_g_strin... | #include <stdlib.h>
#include <stdio.h>
#include <glib.h>
enum markdown_extensions {
EXT_SMART = 0x01,
EXT_NOTES = 0x02,
EXT_FILTER_HTML = 0x04,
EXT_FILTER_STYLES = 0x08
};
enum markdown_formats {
HTML_FORMAT,
LATEX_FORMAT,
GROFF_MM_FORMAT
};
GString * markdow... | Fix extensions flags bit collision. | Fix extensions flags bit collision.
Setting EXT_FILTER_HTML was the same as setting
(EXT_SMART | EXT_NOTES); setting EXT_FILTER_STYLES would
also set EXT_NOTES.
The switch to hex notation is purely to hint that the
values are meant to be used as bit flags directly.
| C | mit | sftrabbit/MarkdownParse,sftrabbit/MarkdownParse,sftrabbit/MarkdownParse |
68a44741998e5a769a9b952ddb422e993dc5b6a9 | base/scoped_value.h | base/scoped_value.h | // LAF Base Library
// Copyright (c) 2014-2016 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifndef BASE_SCOPED_VALUE_H_INCLUDED
#define BASE_SCOPED_VALUE_H_INCLUDED
#pragma once
namespace base {
template<typename T>
class ScopedValue {
... | // LAF Base Library
// Copyright (c) 2022 Igara Studio S.A.
// Copyright (c) 2014-2016 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifndef BASE_SCOPED_VALUE_H_INCLUDED
#define BASE_SCOPED_VALUE_H_INCLUDED
#pragma once
namespace base {
temp... | Add new U param to ScopedValue<T, U> | Add new U param to ScopedValue<T, U>
In this way we can use it for std::atomics, e.g.
base::ScopedValue<std::atomic<bool>, bool>
| C | mit | aseprite/laf,aseprite/laf |
0c641db27c8ef9501990544b093c0bbbe6244776 | media/rx/audio-rx.h | media/rx/audio-rx.h | #ifndef __AUDIO_RX_H__
#define __AUDIO_RX_H__
#include <stdint.h>
typedef void (*put_audio_samples_rx)(uint8_t*, int, int);
int start_audio_rx(const char* sdp, int maxDelay, put_audio_samples_rx callback);
int stop_audio_rx();
#endif /* __AUDIO_RX_H__ */
| #ifndef __AUDIO_RX_H__
#define __AUDIO_RX_H__
#include <stdint.h>
typedef void (*put_audio_samples_rx)(uint8_t *samples, int size, int nframe);
int start_audio_rx(const char* sdp, int maxDelay, put_audio_samples_rx callback);
int stop_audio_rx();
#endif /* __AUDIO_RX_H__ */
| Add params name in put_audio_samples_rx pointer function definition. | Add params name in put_audio_samples_rx pointer function definition.
| C | lgpl-2.1 | shelsonjava/kc-media-native,Kurento/kc-media-native,Kurento/kc-media-native,shelsonjava/kc-media-native |
43c48cdbc5cf5793ad6f0f46cde5ca91ad2b8756 | core/metautils/src/vectorLinkdef.h | core/metautils/src/vectorLinkdef.h | #include <string>
#include <vector>
#ifndef __hpux
using namespace std;
#endif
#pragma create TClass vector<bool>;
#pragma create TClass vector<char>;
#pragma create TClass vector<short>;
#pragma create TClass vector<long>;
#pragma create TClass vector<unsigned char>;
#pragma create TClass vector<unsigned short>;
#pra... | #include <string>
#include <vector>
#ifndef __hpux
using namespace std;
#endif
#pragma create TClass vector<bool>;
#pragma create TClass vector<char>;
#pragma create TClass vector<short>;
#pragma create TClass vector<long>;
#pragma create TClass vector<unsigned char>;
#pragma create TClass vector<unsigned short>;
#pra... | Add missing TClass creation for vector<Long64_t> and vector<ULong64_t> | Add missing TClass creation for vector<Long64_t> and vector<ULong64_t>
git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@38659 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT |
fb3e3283c4503f80fc73b4ef68d68e68c00bd1be | chip/lm4/mock_pwm.c | chip/lm4/mock_pwm.c | /* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Mock PWM control module for Chrome EC */
#include "pwm.h"
#include "timer.h"
#include "uart.h"
static int fan_target_rpm;
static int kblig... | /* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Mock PWM control module for Chrome EC */
#include "pwm.h"
#include "timer.h"
#include "uart.h"
static int fan_target_rpm;
static int kblig... | Fix unit test compilation error | Fix unit test compilation error
A host command to set fan duty cycle is recently added and mock PWM
module doesn't provide the implementation. This breaks our unit test.
Let's fix this.
BUG=chrome-os-partner:10820
TEST='thermal' unit test passed.
Change-Id: I8644742cfec7d2112d7ff1e266b5ac3429c46945
Reviewed-on: http... | C | bsd-3-clause | md5555/ec,mtk09422/chromiumos-platform-ec,md5555/ec,fourier49/BIZ_EC,longsleep/ec,gelraen/cros-ec,coreboot/chrome-ec,longsleep/ec,md5555/ec,eatbyte/chromium-ec,fourier49/BZ_DEV_EC,mtk09422/chromiumos-platform-ec,longsleep/ec,gelraen/cros-ec,akappy7/ChromeOS_EC_LED_Diagnostics,akappy7/ChromeOS_EC_LED_Diagnostics,alterap... |
a0b104941bb518caa627c79a0a6315c226961496 | examples/rmc-test.c | examples/rmc-test.c | #include "rmc.h"
// HMMMMM. All of these get optimized away and shouldn't.
// Also, if r doesn't get used usefully, that load gets optimized away.
// I can't decide whether that is totally fucked or not.
int global_p, global_q;
int bogus_ctrl_dep1() {
XEDGE(read, write);
L(read, int r = global_p);
if (r... | Add a bunch of rmc tests that we brutally miscompile because llvm optimizes everything away. | Add a bunch of rmc tests that we brutally miscompile because llvm optimizes everything away.
| C | mit | msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler | |
ecde2fd66a94951c3a438e411259d2da830ce2a6 | thingshub/CDZThingsHubConfiguration.h | thingshub/CDZThingsHubConfiguration.h | //
// CDZThingsHubConfiguration.h
// thingshub
//
// Created by Chris Dzombak on 1/13/14.
// Copyright (c) 2014 Chris Dzombak. All rights reserved.
//
@interface CDZThingsHubConfiguration : NSObject
/**
Asynchronously returns the app's current `CZDThingsHubConfiguration` as the next value in the signal, then com... | //
// CDZThingsHubConfiguration.h
// thingshub
//
// Created by Chris Dzombak on 1/13/14.
// Copyright (c) 2014 Chris Dzombak. All rights reserved.
//
@class RACSignal;
@interface CDZThingsHubConfiguration : NSObject
/**
Asynchronously returns the app's current `CZDThingsHubConfiguration` as the next value in t... | Add missing forward class declaration to ThingsHubConfiguration | Add missing forward class declaration to ThingsHubConfiguration | C | mit | cdzombak/thingshub,cdzombak/thingshub,cdzombak/thingshub |
f7bae4b98f7bacc29addb1b85e5aecee0054c04d | c/arrays.c | c/arrays.c | #include <stdio.h>
int my_array[] = {1,2,3,4,5,6};
void f()
{
printf("called f\n");
}
void (*f_pointer())(void)
{
return &f;
}
int hundredth(int a[])
{
return a[100];
}
int head(int a[])
{
return a[0];
}
int (*f2())(int*)
{
return &head;
}
int previous(int a[])
{
return a[-1];
}
int main(void)
{
int one ... | #include <stdio.h>
int my_array[] = {1,2,3,4,5,6};
void f()
{
printf("called f\n");
}
void (*f_pointer())(void)
{
return &f;
}
int hundredth(int a[])
{
return a[100];
}
int head(int a[])
{
return a[0];
}
int (*f2())(int*)
{
return &head;
}
int previous(int a[])
{
return a[-1];
}
int main(void)
{
int one ... | Test taking address of C array | Test taking address of C array
| C | bsd-3-clause | dterei/Scraps,dterei/Scraps,dterei/Scraps,dterei/Scraps,dterei/Scraps,dterei/Scraps,dterei/Scraps,dterei/Scraps,dterei/Scraps,dterei/Scraps,dterei/Scraps,dterei/Scraps |
fce01fde1fc4ce33ef25cf1af9773474abefa736 | primitiv/c/status.h | primitiv/c/status.h | /* Copyright 2017 The primitiv Authors. All Rights Reserved. */
#ifndef PRIMITIV_C_STATUS_H_
#define PRIMITIV_C_STATUS_H_
#include <primitiv/c/define.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef enum primitiv_Status {
PRIMITIV_OK = 0,
PRIMITIV_ERROR = 1,
} primitiv_Status;
extern PRIMITIV_C_API const char... | /* Copyright 2017 The primitiv Authors. All Rights Reserved. */
#ifndef PRIMITIV_C_STATUS_H_
#define PRIMITIV_C_STATUS_H_
#include <primitiv/c/define.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef enum primitiv_Status {
PRIMITIV_OK = 0,
PRIMITIV_ERROR = -1,
} primitiv_Status;
extern PRIMITIV_C_API const cha... | Change the PRIMITIV_ERROR value from 1 to -1 so that MSB can imply errors. | Change the PRIMITIV_ERROR value from 1 to -1 so that MSB can imply errors.
| C | apache-2.0 | odashi/primitiv,odashi/primitiv,odashi/primitiv |
f7d5d48f3d78dc9d8f82aa5af23a23807fa0d6be | ui/views/examples/multiline_example.h | ui/views/examples/multiline_example.h | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_VIEWS_EXAMPLES_MULTILINE_EXAMPLE_H_
#define UI_VIEWS_EXAMPLES_MULTILINE_EXAMPLE_H_
#include "base/compiler_specific.h"
#include "base/string16... | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_VIEWS_EXAMPLES_MULTILINE_EXAMPLE_H_
#define UI_VIEWS_EXAMPLES_MULTILINE_EXAMPLE_H_
#include "base/compiler_specific.h"
#include "base/strings/... | Update the include of string16.h to point to its new location. | views/examples: Update the include of string16.h to point to its new location.
string16.h now lives in base/strings/ directory.
BUG=247723
TBR=ben@chromium.org
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/17193002
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@206667 0039d316-1c4b-4281-b951-d... | C | bsd-3-clause | mohamed--abdel-maksoud/chromium.src,Pluto-tv/chromium-crosswalk,markYoungH/chromium.src,M4sse/chromium.src,jaruba/chromium.src,M4sse/chromium.src,Just-D/chromium-1,crosswalk-project/chromium-crosswalk-efl,markYoungH/chromium.src,Just-D/chromium-1,anirudhSK/chromium,markYoungH/chromium.src,mogoweb/chromium-crosswalk,ond... |
9b4a41296ef6979aa4622c509d301d8e5fd7f275 | ext/binary_search.c | ext/binary_search.c | #include <ruby.h>
static ID id_cmp;
static VALUE rb_array_binary_index(VALUE self, VALUE value) {
int lower = 0;
int upper = RARRAY(self)->len - 1;
int i, comp;
while(lower <= upper) {
i = lower + (upper - lower) / 2;
comp = FIX2INT(rb_funcall(value, id_cmp, 1, RARRAY(self)->ptr[i]));
if(comp ==... | #include <ruby.h>
#ifndef RARRAY_PTR
#define RARRAY_PTR(ary) RARRAY(ary)->ptr
#endif
#ifndef RARRAY_LEN
#define RARRAY_LEN(ary) RARRAY(ary)->len
#endif
static ID id_cmp;
static VALUE rb_array_binary_index(VALUE self, VALUE value) {
int lower = 0;
int upper = RARRAY_LEN(self) - 1;
int i, comp;
while(lower <=... | Use RARRAY_LEN and RARRAY_PTR on ruby 1.9 | Use RARRAY_LEN and RARRAY_PTR on ruby 1.9
| C | mit | tyler/binary_search,tyler/binary_search |
af0802bae6f1dfc7323d540c479a79c98944e3d4 | src/RelativeLink/RelativeLink.c | src/RelativeLink/RelativeLink.c | #include <windows.h>
#include <stdio.h>
#include <tchar.h>
//
// RelativeLink.c
// by Jacob Appelbaum <jacob@appelbaum.net>
//
// This is a very small program to work around the lack of relative links
// in any of the most recent builds of Windows.
//
// To build this, you need Cygwin or MSYS.
//
// You need to build... | #include <windows.h>
#include <stdio.h>
#include <tchar.h>
//
// RelativeLink.c
// by Jacob Appelbaum <jacob@appelbaum.net>
//
// This is a very small program to work around the lack of relative links
// in any of the most recent builds of Windows.
//
// To build this, you need Cygwin or MSYS.
//
// You need to build... | Fix pointer without cast issue. | Fix pointer without cast issue.
svn:r14724
| C | bsd-3-clause | Shondoit/torbrowser,Shondoit/torbrowser,Shondoit/torbrowser,Shondoit/torbrowser |
cf91829aa3cf0f0916769f776e55973e00227c28 | t/mmap_test_1.c | t/mmap_test_1.c | #include <stdlib.h> /* malloc(), free() */
#include <sys/mman.h> /* mmap(), munmap() */
#include <stdio.h> /* perror() */
#include <assert.h>
int main(int argc, char **argv)
{
void *addr, *addr2;
size_t size = 16 * 1024;
addr = mmap((void*) 0, size, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, (off_t) 0)... | Test that mmap()ing a region twice does not fail. | Test that mmap()ing a region twice does not fail.
| C | mit | kstephens/smal,kstephens/smal,kstephens/smal | |
01b357ec14e0d8ef60bf12e297c347230fb8da63 | src/UIViewController+IDPExtensions.h | src/UIViewController+IDPExtensions.h | //
// UIViewController+IDPExtensions.h
// ClipIt
//
// Created by Vadim Lavrov Viktorovich on 2/20/13.
// Copyright (c) 2013 IDAP Group. All rights reserved.
//
#import <UIKit/UIKit.h>
#define IDPViewControllerViewOfClassGetterSynthesize(theClass, getterName) \
- (theClass *)getterName { \
if ... | //
// UIViewController+IDPExtensions.h
// ClipIt
//
// Created by Vadim Lavrov Viktorovich on 2/20/13.
// Copyright (c) 2013 IDAP Group. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIViewController (IDPExtensions)
@property (nonatomic, retain, readonly) UITableView *tableView;
@end
| Move IDPViewControllerViewOfClassGetterSynthesize to CommonKit -> IDPPropertyMacros.h | Move IDPViewControllerViewOfClassGetterSynthesize to CommonKit -> IDPPropertyMacros.h
| C | bsd-3-clause | idapgroup/UIKit,idapgroup/UIKit,idapgroup/UIKit,idapgroup/UIKit |
598924ef6499c736f9ba63da255c37bdfebfe213 | includes/linux/goblint_preconf.h | includes/linux/goblint_preconf.h | #define KBUILD_MODNAME "SomeModule"
#define CONFIG_DEBUG_SPINLOCK 1 | #define KBUILD_MODNAME "SomeModule"
#define CONFIG_DEBUG_SPINLOCK 1
#undef __GNUC_MINOR__
#define __GNUC_MINOR__ 4
| Redefine version macro to avoid gcc 4.5 features not supported by CIL | Redefine version macro to avoid gcc 4.5 features not supported by CIL
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
231ba5dc3b5833fb64177f6ebb0bd372c7f026ae | test/Driver/XRay/xray-instrument-os.c | test/Driver/XRay/xray-instrument-os.c | // RUN: not %clang -o /dev/null -v -fxray-instrument -c %s
// XFAIL: -linux-
// REQUIRES: amd64 || x86_64 || x86_64h || arm || aarch64 || arm64
typedef int a;
| // RUN: not %clang -o /dev/null -v -fxray-instrument -c %s
// XFAIL: -linux-
// REQUIRES-ANY: amd64, x86_64, x86_64h, arm, aarch64, arm64
typedef int a;
| Revert "[test] Replace `REQUIRES-ANY: a, b, c` with `REQUIRES: a || b || c`." | Revert "[test] Replace `REQUIRES-ANY: a, b, c` with `REQUIRES: a || b || c`."
The underlying `lit` change needs to be better-coordinated with libc++.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@292898 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
d2d549a541fd716457776e796fad96bfaf96782c | src/runtime/scoped_mutex_lock.h | src/runtime/scoped_mutex_lock.h | #ifndef HALIDE_RUNTIME_MUTEX_H
#define HALIDE_RUNTIME_MUTEX_H
#include "HalideRuntime.h"
// Avoid ODR violations
namespace {
// An RAII mutex
struct ScopedMutexLock {
halide_mutex *mutex;
ScopedMutexLock(halide_mutex *mutex) : mutex(mutex) {
halide_mutex_lock(mutex);
}
~ScopedMutexLock() {
... | Add an OS mutex to Halide runtime. | Add an OS mutex to Halide runtime.
Document an issue with the POSIX thread pool.
Ensure memoization cache is cleaned up when a JITted module is
shutdown. (Also provides a way to clear the cache from AOT code.)
Former-commit-id: cf5298c90763481e80a748c1b10453c482fdd7a8 | C | mit | Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide | |
8337ff531d1611dad7bac73a2751b9f7a44242e5 | src/rtcmix/rtdefs.h | src/rtcmix/rtdefs.h | /* To avoid recursion in certain includes */
#ifndef _RTDEFS_H_
#define _RTDEFS_H_ 1
#define MAXCHANS 4
#define MAX_INPUT_FDS 128
#define AUDIO_DEVICE 9999999
/* definition of input file desc struct used by rtinput */
typedef struct inputdesc {
char filename[1024];
int fd;
int refcount;
#ifdef USE_SNDLIB
short he... | /* To avoid recursion in certain includes */
#ifndef _RTDEFS_H_
#define _RTDEFS_H_ 1
#define MAXCHANS 4
#define MAX_INPUT_FDS 128
#define AUDIO_DEVICE 9999999
/* definition of input file desc struct used by rtinput */
typedef struct inputdesc {
char filename[1024];
int fd;
int refcount;
#ifdef USE_SNDLIB
short he... | Add srate field to InputDesc. | Add srate field to InputDesc.
| C | apache-2.0 | RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix |
92b435334e50b9918e62f8eb6a1cbe8acc4b3321 | tests/performance.c | tests/performance.c | #include <stdlib.h>
#include <stdio.h>
#include "bomalloc.h"
#include "dummy.h"
#define NUM_ROUNDS 500000
size_t class_for_rnd(int rnd) {
return ALIGN(CLASS_TO_SIZE(rnd % NUM_CLASSES) - sizeof(block_t));
}
typedef struct {
int * space;
size_t size;
} record_t;
int main() {
int rnd;
size_t alloc_size;
s... | #include <stdlib.h>
#include <stdio.h>
#include "bomalloc.h"
#include "dummy.h"
#define NUM_ROUNDS 500
size_t class_for_rnd(int rnd) {
return ALIGN(CLASS_TO_SIZE(rnd % NUM_CLASSES) - sizeof(block_t));
}
typedef struct {
int * space;
size_t size;
} record_t;
int main() {
int rnd;
size_t alloc_size;
sran... | Change perf. test to reasonable number | [test] Change perf. test to reasonable number
| C | mit | benohalloran/noomr,benohalloran/noomr,benohalloran/ipa,benohalloran/bomalloc,benohalloran/ipa,benohalloran/bomalloc |
c6a82feaaf54cc0888af0266ec1c6113dbd350c6 | inc/libutils/io/ostream_log_strategy.h | inc/libutils/io/ostream_log_strategy.h | /*
* ostream_log_strategy.h
*
* Author: Ming Tsang
* Copyright (c) 2014 Ming Tsang
* Refer to LICENSE for details
*/
#pragma once
#include <ostream>
#include "libutils/io/log_strategy.h"
namespace utils
{
namespace io
{
template<typename CharT_>
class OstreamLogStrategy : public LogStrategy<CharT_>
{
public:... | /*
* ostream_log_strategy.h
*
* Author: Ming Tsang
* Copyright (c) 2014 Ming Tsang
* Refer to LICENSE for details
*/
#pragma once
#include <ostream>
#include "libutils/io/log_strategy.h"
namespace utils
{
namespace io
{
template<typename CharT_>
class OstreamLogStrategy : public LogStrategy<CharT_>
{
public:... | Delete copy and move constructor | Delete copy and move constructor | C | mit | nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils |
6a4e3316af783cd36cb96a7dd81597cc272801e8 | main.c | main.c | #include "config_parse.h"
#include <stdio.h>
#include <stdlib.h>
extern char **environ;
/******************************************************************************/
int main(
int argc,
char *argv[]
)
{
FILE * conf_fd;
config_parse_res_t res;
if(argc != 2)
{
pr... | #include "config_parse.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
extern char **environ;
/******************************************************************************/
int main(
int argc,
char *argv[]
)
{
FILE * conf_fd;
config_parse_res_t res;
if(argc != ... | Add option to read from stdin | Add option to read from stdin
| C | mit | stefan-misik/config-parse |
f5cca606abcaa2dca2585887be7498947058fc9b | psimpl-c.h | psimpl-c.h | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
psimpl-c
Copyright (c) 2013 Jamie Bullock <jamie@jamiebullock.com>
Based on psimpl
Copyright ... | Add initial C interface with support for Douglas-Peucker | Add initial C interface with support for Douglas-Peucker
| C | mpl-2.0 | jamiebullock/psimpl-c,jamiebullock/psimpl-c,jamiebullock/psimpl-c,jamiebullock/psimpl-c | |
bd6796b0bde2d9ccdc55fdaf7747f1846ecd459d | src/unix/unix_c/unix_mcast_utils.h | src/unix/unix_c/unix_mcast_utils.h | /* OCaml promise library
* http://www.ocsigen.org/lwt
* Copyright (C) 2009-2010 Jérémie Dimino
* 2009 Mauricio Fernandez
* 2010 Pierre Chambart
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* ... | /* OCaml promise library
* http://www.ocsigen.org/lwt
* Copyright (C) 2009-2010 Jérémie Dimino
* 2009 Mauricio Fernandez
* 2010 Pierre Chambart
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* ... | Add in comments the files that uses this header | Add in comments the files that uses this header
| C | mit | c-cube/lwt,ocsigen/lwt,rneswold/lwt,ocsigen/lwt,ocsigen/lwt,rneswold/lwt,c-cube/lwt,rneswold/lwt,c-cube/lwt |
e5c078e0f278adfbe685df2d8e141a9f71ea7cc8 | queue/linkedListImplementation/queue.h | queue/linkedListImplementation/queue.h | #include <stdio.h>
#include <stdlib.h>
#include "utility.h"
/*
* MAW 3.25.a Write the routines to implement queues using: Linked Lists
*
* We use a header node at the very beginning of the linked list.
*
* Front: | header node | -> | data node | -> | data node | :Rear
*/
#ifndef _QUEUE_H
#define _QUEUE_H
type... | #include <stdio.h>
#include <stdlib.h>
#include "utility.h"
/*
* MAW 3.25.a Write the routines to implement queues using: Linked Lists
*
* We use a header node at the very beginning of the linked list.
*
* Front: | header node | -> | data node | -> | data node | :Rear
*/
#ifndef _QUEUE_H
#define _QUEUE_H
type... | Add comment remarks to CDT & ADT | Add comment remarks to CDT & ADT
| C | mit | xxks-kkk/algo,xxks-kkk/algo |
fee691d90d9df4376b6ffffb6516d8a817025c93 | StarEngine/jni/Input/GestureManager.h | StarEngine/jni/Input/GestureManager.h | #pragma once
#ifdef _WIN32
#else
#include <android_native_app_glue.h>
#endif
#include <vector>
#include "BaseGesture.h"
namespace star
{
struct WinInputState;
class GestureManager {
public:
GestureManager();
~GestureManager();
void Update(const Context& context);
void AddGesture(BaseGestur... | #pragma once
#ifdef _WIN32
#else
#include <android_native_app_glue.h>
#endif
#include <vector>
#include "BaseGesture.h"
namespace star
{
struct WinInputState
// [COMMENT] Gesture-Tags
// Gestures should also be given a user-defined tag
// when added to the the manager.
// this way the user can ... | Comment for pieter in Gesture manager. Read && fix | Comment for pieter in Gesture manager. Read && fix
| C | mit | gh054/engine,gh054/engine,GlenDC/StarEngine,GlenDC/StarEngine,hcxyzlm/engine,StarEngine/engine,GlenDC/StarEngine,StarEngine/engine,hcxyzlm/engine,GlenDC/StarEngine,GlenDC/StarEngine |
2d6d79307c500ce31d981ed5c9f54249f8ccb459 | src/kudu/util/shared_ptr_util.h | src/kudu/util/shared_ptr_util.h | // Copyright (c) 2015, Cloudera, inc.
// Confidential Cloudera Information: Covered by NDA.
#ifndef KUDU_UTIL_SHARED_PTR_UTIL_H_
#define KUDU_UTIL_SHARED_PTR_UTIL_H_
#include <cstddef>
#include <tr1/memory>
namespace kudu {
// This is needed on TR1. With C++11, std::hash<std::shared_ptr<>> is provided.
template <cl... | Add hash function for std::tr1::shared_ptr<> | Add hash function for std::tr1::shared_ptr<>
This exists as a std::hash<> specialization for std::shared_ptr in C++11
but it does not ship with TR1.
Change-Id: Id342f8e9c45f93a2b22e530a689ca18ebf8534b1
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/5998
Tested-by: Michael Percy <e07a1fd797b473a9c849e618aa2ce06d8055... | C | apache-2.0 | helifu/kudu,helifu/kudu,cloudera/kudu,helifu/kudu,helifu/kudu,InspurUSA/kudu,helifu/kudu,InspurUSA/kudu,andrwng/kudu,EvilMcJerkface/kudu,andrwng/kudu,helifu/kudu,InspurUSA/kudu,andrwng/kudu,EvilMcJerkface/kudu,cloudera/kudu,EvilMcJerkface/kudu,helifu/kudu,andrwng/kudu,andrwng/kudu,cloudera/kudu,cloudera/kudu,EvilMcJerk... | |
1f9749452f0d1c50eb920c5df7b026542d07eab8 | TARGET_STM/TARGET_STM32F4XX/cmsis_nvic.c | TARGET_STM/TARGET_STM32F4XX/cmsis_nvic.c | /* mbed Microcontroller Library - cmsis_nvic for STM32F4
* Copyright (c) 2009-2011 ARM Limited. All rights reserved.
*
* CMSIS-style functionality to support dynamic vectors
*/
#include "cmsis_nvic.h"
#define NVIC_RAM_VECTOR_ADDRESS (0x20000000) // Location of vectors in RAM
#define NVIC_FLASH_VECTOR_ADDRESS (... | /* mbed Microcontroller Library - cmsis_nvic for STM32F4
* Copyright (c) 2009-2011 ARM Limited. All rights reserved.
*
* CMSIS-style functionality to support dynamic vectors
*/
#include "cmsis_nvic.h"
#define NVIC_RAM_VECTOR_ADDRESS (0x20000000) // Location of vectors in RAM
static unsigned char vtor_relocate... | Fix relocation of vector on STM32. | Fix relocation of vector on STM32.
| C | apache-2.0 | Psykar/kubos,Psykar/kubos,Psykar/kubos,kubostech/KubOS,Psykar/kubos,Psykar/kubos,Psykar/kubos,Psykar/kubos,kubostech/KubOS |
ddc2419c090b0af65edc9eb07ac0a736eb351b69 | build_msvc/libsecp256k1_config.h | build_msvc/libsecp256k1_config.h | /**********************************************************************
* Copyright (c) 2013, 2014 Pieter Wuille *
* Distributed under the MIT software license, see the accompanying *
* file COPYING or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | /**********************************************************************
* Copyright (c) 2013, 2014 Pieter Wuille *
* Distributed under the MIT software license, see the accompanying *
* file COPYING or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | Update MSVC build config for libsecp256k1 | Update MSVC build config for libsecp256k1
| C | mit | namecoin/namecore,MeshCollider/bitcoin,apoelstra/bitcoin,instagibbs/bitcoin,JeremyRubin/bitcoin,jambolo/bitcoin,jambolo/bitcoin,lateminer/bitcoin,pataquets/namecoin-core,bitcoin/bitcoin,bitcoin/bitcoin,practicalswift/bitcoin,apoelstra/bitcoin,mruddy/bitcoin,mm-s/bitcoin,MeshCollider/bitcoin,prusnak/bitcoin,ElementsProj... |
447a5d8024b547e4b008268f128456ca3b764b6b | src/test.c | src/test.c | #include <stdio.h>
int main() {
int a = 0;
while(1) {
printf("%d\t",a);
printf("a = 0x%x\n",a);
int temp;
scanf("%d",&temp);
if(temp == 0) {
continue;
}
else {
a = temp;
}
printf("%d\t",a);
printf("a changed 0x%x\n",a);
}
return 0;
}
| #include <stdio.h>
int main() {
int a = 0;
while(1) {
printf("%d\t",a);
printf("a = 0x%x\n",a);
int temp;
scanf("%d",&temp);
if(temp == 0) {
continue;
}
else {
a = temp;
}
printf("%d\t",a);
printf("a changed 0x%x\n",a);
}
return 0;
}
| Test file tab to space | Test file tab to space
| C | bsd-3-clause | allencch/med,allencch/med,allencch/med |
25caea025ae66c815cc85599e51b0b07d9957321 | 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... | Reword comment to be consistent with comment in ConfinementForce. | Reword comment to be consistent with comment in ConfinementForce. | C | bsd-3-clause | leios/demonsimulationcode,leios/demonsimulationcode |
ffc3e8a32700194477d5d576c8bd3f7df853a6b1 | common/macros.h | common/macros.h | /* -*- Mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
Copyright (C) 2009 Red Hat, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the Lic... | /* -*- Mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
Copyright (C) 2009 Red Hat, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the Lic... | Fix min gcc version for __attribute__(format) | Fix min gcc version for __attribute__(format)
We currently use it only on gcc 4.5 or newer, but it was actually
introduced much earlier than that. It's documented in gcc 2.95.3
manual:
http://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc_4.html#SEC84
and glib uses starting from gcc 2.2.5.
This commit uses the same minimum ver... | C | lgpl-2.1 | fgouget/spice-common,fgouget/spice-common,elmarco/spice-common,fgouget/spice-common,SPICE/spice-common,freedesktop-unofficial-mirror/spice__spice-common,elmarco/spice-common,fgouget/spice-common,freedesktop-unofficial-mirror/spice__spice-common,freedesktop-unofficial-mirror/spice__spice-common,elmarco/spice-common,free... |
f363bf4d9d27601fb67e4a2e5bc2c730cf2eb156 | Pukli/src/Menu_state.h | Pukli/src/Menu_state.h | #ifndef __MENU_STATE_H__
#define __MENU_STATE_H__
#include <vector>
#include "Game_state.h"
#include "Game_object.h"
class Menu_state : public Game_state {
public:
void update();
void render();
bool on_enter();
bool on_exit();
const std::string get_state_id() const { return s_menu_id; };
private:
static const... | #ifndef __MENU_STATE_H__
#define __MENU_STATE_H__
#include <vector>
#include "Game_state.h"
#include "Game_object.h"
class Menu_state : public Game_state {
public:
void update();
void render();
bool on_enter();
bool on_exit();
const std::string get_state_id() const { return s_menu_id; };
private:
static const... | Revert "added button callback functions" | Revert "added button callback functions"
This reverts commit 8962b70fe01cbbd0bd4a82a8c68208ab276add31.
| C | mit | AdjustmentBeaver/pukli,AdjustmentBeaver/pukli |
7fa5884b0122ecaaee5a4a872a6a8b6b73012b58 | webkit/glue/form_data.h | webkit/glue/form_data.h | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_FORM_DATA_H__
#define WEBKIT_GLUE_FORM_DATA_H__
#include <vector>
#include "base/string_util.h"
#include "googleurl/src/gurl.h"
... | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_FORM_DATA_H__
#define WEBKIT_GLUE_FORM_DATA_H__
#include <vector>
#include "base/string_util.h"
#include "googleurl/src/gurl.h"
... | Add a default constructor for FormData. There are too many places that create FormDatas, and we shouldn't need to initialize user_submitted for each call site. | AutoFill: Add a default constructor for FormData. There are too many places
that create FormDatas, and we shouldn't need to initialize user_submitted for
each call site.
BUG=50423
TEST=none
Review URL: http://codereview.chromium.org/3074023
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@54641 0039d316-1c4b-428... | C | bsd-3-clause | gavinp/chromium,adobe/chromium,yitian134/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,yitian... |
b4aa51bece92b29c40af44290210e1abdfcc2078 | 3rdparty/GLKit/GLKMath.h | 3rdparty/GLKit/GLKMath.h | //
// GLKMath.h
// GLKit
//
// Copyright (c) 2011, Apple Inc. All rights reserved.
//
#include <GLKit/GLKMathTypes.h>
#include <GLKit/GLKMatrix3.h>
#include <GLKit/GLKMatrix4.h>
#include <GLKit/GLKVector2.h>
#include <GLKit/GLKVector3.h>
#include <GLKit/GLKVector4.h>
#include <GLKit/GLKQuaternion.h>
#include <GLK... | //
// GLKMath.h
// GLKit
//
// Copyright (c) 2011, Apple Inc. All rights reserved.
//
#include <GLKit/GLKMathTypes.h>
#include <GLKit/GLKMatrix3.h>
#include <GLKit/GLKMatrix4.h>
#include <GLKit/GLKVector2.h>
#include <GLKit/GLKVector3.h>
#include <GLKit/GLKVector4.h>
#include <GLKit/GLKQuaternion.h>
//#include <G... | Remove GLKMatrixStack ... thanks Twilight! :D | Remove GLKMatrixStack ... thanks Twilight! :D
| C | bsd-3-clause | MiJyn/nightmare,MiJyn/nightmare |
8f40a8f6eafed187bc8d5ed38b1d080c9dc2af98 | src/torcontrol.h | src/torcontrol.h | // Copyright (c) 2015 The BitCoin Core developers
// Copyright (c) 2016 The Silk Network developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
/**
* Functionality for communicating with Tor.
*/
#ifndef SILK_TORCONTROL_H
#... | // Copyright (c) 2015 The BitCoin Core developers
// Copyright (c) 2016 The Silk Network developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
/**
* Functionality for communicating with Tor.
*/
#ifndef SILK_TORCONTROL_H
#... | Set Tor Default Monitoring to False | Set Tor Default Monitoring to False | C | mit | SilkNetwork/Silk-Core,duality-solutions/Sequence,SilkNetwork/Silk-Core,SilkNetwork/Silk-Core,duality-solutions/Sequence,duality-solutions/Sequence,SilkNetwork/Silk-Core,duality-solutions/Sequence,SilkNetwork/Silk-Core,duality-solutions/Sequence,SilkNetwork/Silk-Core,duality-solutions/Sequence |
c6e1f67b17b4cb9d707af1245c1ecf00f91f23c0 | utils/count/count.c | utils/count/count.c | /*===- count.c - The 'count' testing tool ---------------------------------===*\
*
* The LLVM Compiler Infrastructure
*
* This file is distributed under the University of Illinois Open Source
* License. See LICENSE.TXT for details.
*
\*===-------------------------------------------------------... | /*===- count.c - The 'count' testing tool ---------------------------------===*\
*
* The LLVM Compiler Infrastructure
*
* This file is distributed under the University of Illinois Open Source
* License. See LICENSE.TXT for details.
*
\*===-------------------------------------------------------... | Fix extra fread after EOF, non-wires-crossed version. | Fix extra fread after EOF, non-wires-crossed version.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@105270 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm... |
15c0a7f99f4179861dc1f77969bf2b62897e4e25 | Source/BugsnagSink.h | Source/BugsnagSink.h | //
// BugsnagSink.h
//
// Created by Conrad Irwin on 2014-10-01.
//
// Copyright (c) 2014 Bugsnag, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without r... | //
// BugsnagSink.h
//
// Created by Conrad Irwin on 2014-10-01.
//
// Copyright (c) 2014 Bugsnag, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without r... | Update import to be compatible with KSCrash 1.8.8+ | Update import to be compatible with KSCrash 1.8.8+
| C | mit | bugsnag/bugsnag-cocoa,bugsnag/bugsnag-cocoa,bugsnag/bugsnag-cocoa,bugsnag/bugsnag-cocoa |
31455c34d693edfbf6e29bc6c669b9178b4cb223 | cocos2d/CCActionManager_Private.h | cocos2d/CCActionManager_Private.h | /*
* cocos2d for iPhone: http://www.cocos2d-iphone.org
*
* Copyright (c) 2013-2014 Cocos2D Authors
*
* 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 with... | /*
* cocos2d for iPhone: http://www.cocos2d-iphone.org
*
* Copyright (c) 2013-2014 Cocos2D Authors
*
* 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 with... | Remove unneeded method from private header | Remove unneeded method from private header | C | mit | TukekeSoft/cocos2d-spritebuilder,TukekeSoft/cocos2d-spritebuilder,TukekeSoft/cocos2d-spritebuilder,TukekeSoft/cocos2d-spritebuilder |
3e752a6b1abdc2770c1968bed604b639cf93be09 | io/file_descriptor.h | io/file_descriptor.h | #ifndef FILE_DESCRIPTOR_H
#define FILE_DESCRIPTOR_H
#include <io/channel.h>
class FileDescriptor : public Channel {
LogHandle log_;
protected:
int fd_;
public:
FileDescriptor(int);
~FileDescriptor();
virtual Action *close(EventCallback *);
virtual Action *read(size_t, EventCallback *);
virtual Action *write(B... | #ifndef FILE_DESCRIPTOR_H
#define FILE_DESCRIPTOR_H
#include <io/channel.h>
class FileDescriptor : public Channel {
LogHandle log_;
protected:
int fd_;
public:
FileDescriptor(int);
~FileDescriptor();
virtual Action *close(EventCallback *);
virtual Action *read(size_t, EventCallback *);
virtual Action *write(B... | Return success rather than failure from shutdown() on FileDescriptor, since it is entirely immaterial. | Return success rather than failure from shutdown() on FileDescriptor, since it
is entirely immaterial.
git-svn-id: 9e2532540f1574e817ce42f20b9d0fb64899e451@333 4068ffdb-0463-0410-8185-8cc71e3bd399
| C | bsd-2-clause | splbio/wanproxy,diegows/wanproxy,diegows/wanproxy,diegows/wanproxy,splbio/wanproxy,splbio/wanproxy |
ede9100cc73dfc9a0ed831c1801a3d100cf5b9a9 | src/h/startup.h | src/h/startup.h | typedef struct {
int cluster; /* Condor Cluster # */
int proc; /* Condor Proc # */
int job_class; /* STANDARD, VANILLA, PVM, PIPE, ... */
uid_t uid; /* Execute job under this UID */
gid_t gid; /* Execute job under this pid */
pid_t virt_pid; /* PVM virt pid of this process */
int soft_ki... | Structure defining information starter needs from the shadow to start up a user job. | Structure defining information starter needs from the shadow to start up
a user job.
| C | apache-2.0 | djw8605/condor,zhangzhehust/htcondor,bbockelm/condor-network-accounting,bbockelm/condor-network-accounting,htcondor/htcondor,htcondor/htcondor,neurodebian/htcondor,clalancette/condor-dcloud,djw8605/condor,clalancette/condor-dcloud,mambelli/osg-bosco-marco,mambelli/osg-bosco-marco,djw8605/htcondor,djw8605/htcondor,bbock... | |
58e3caf75a50a64d485b82d12d2353985413401f | src/util/bitwise.h | src/util/bitwise.h | #pragma once
#include "../definitions.h"
#include "log.h"
namespace bitwise {
inline u16 compose_bytes(const u8 high, const u8 low) {
return static_cast<u16>((high << 8) + low);
}
inline bool check_bit(const u8 value, const u8 bit) {
return (value & (1 << bit)) != 0;
}
inline u8 set_bit(const u8 value, con... | #pragma once
#include "../definitions.h"
#include "log.h"
namespace bitwise {
inline u16 compose_bytes(const u8 high, const u8 low) {
return static_cast<u16>((high << 8) + low);
}
inline bool check_bit(const u8 value, const u8 bit) {
return (value & (1 << bit)) != 0;
}
inline u8 bit_value(const u8 value, c... | Add a bit_value function for the numeric value of a single bit | Add a bit_value function for the numeric value of a single bit
| C | bsd-3-clause | jgilchrist/emulator,jgilchrist/emulator,jgilchrist/emulator |
d007207f3e5c11744d612786df9e7c35887de2b5 | core/include/crash.h | core/include/crash.h | /*
* Copyright (C) 2014 INRIA
*
* This file is subject to the terms and conditions of the GNU Lesser General
* Public License. See the file LICENSE in the top level directory for more
* details.
*/
/**
* @addtogroup core_util
* @{
*
* @file crash.h
* @brief Crash handling header
*
* Define a... | Add a mechanism for handling fatal errors (and reboots) | Add a mechanism for handling fatal errors (and reboots)
| C | lgpl-2.1 | rfswarm2/RIOT,rfswarm/RIOT,zhuoshuguo/RIOT,cladmi/RIOT,dkm/RIOT,locicontrols/RIOT,ant9000/RIOT,OlegHahm/RIOT,mziegert/RIOT,dkm/RIOT,A-Paul/RIOT,koenning/RIOT,arvindpdmn/RIOT,PSHIVANI/Riot-Code,abkam07/RIOT,altairpearl/RIOT,robixnai/RIOT,MonsterCode8000/RIOT,OTAkeys/RIOT,altairpearl/RIOT,LudwigOrtmann/RIOT,dhruvvyas90/R... | |
7a68c33310eef9aae11d887e36a0ea9a4fce15b1 | Settings/Updater/ProgressWindow.h | Settings/Updater/ProgressWindow.h | #pragma once
#include "../Controls/Dialog.h"
#include "../resource.h"
class ProgressWindow : public Dialog {
public:
ProgressWindow() :
Dialog(L"3RVX-UpdateProgress", MAKEINTRESOURCE(IDD_DOWNLOAD)) {
ShowWindow(Dialog::DialogHandle(), SW_SHOWNORMAL);
}
}; | Add class for the progress window | Add class for the progress window
| C | bsd-2-clause | malensek/3RVX,malensek/3RVX,malensek/3RVX | |
5dcd7a8c429aa6f7d26cb8dfce62e4a793a6d9b5 | test/Modules/DebugInfoSubmoduleImport.c | test/Modules/DebugInfoSubmoduleImport.c | // RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules -fmodule-format=obj -debug-info-kind=limited -dwarf-ext-refs \
// RUN: -fimplicit-module-maps -x c -fmodules-cache-path=%t -I %S/Inputs \
// RUN: %s -emit-llvm -debugger-tuning=lldb -o - | FileCheck %s
#include "DebugSubmoduleA.h"
#include "DebugSubmoduleB.h"
// C... | // RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules -fmodule-format=obj -debug-info-kind=limited -dwarf-ext-refs \
// RUN: -fimplicit-module-maps -x c -fmodules-cache-path=%t -I %S/Inputs \
// RUN: %s -emit-llvm -debugger-tuning=lldb -o - | FileCheck %s
//
// RUN: %clang_cc1 -fmodules -fmodule-format=obj -debug-info... | Add a test that local submodule visibility has no effect on debug info | Add a test that local submodule visibility has no effect on debug info
rdar://problem/27876262
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@302809 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... |
1abf575c1cf36df59d0673c0e5d8b326f4526a8b | example/ex-array04.c | example/ex-array04.c | #include <gmp.h>
#include "m-array.h"
#include "m-algo.h"
ARRAY_DEF(mpz, mpz_t, M_CLASSIC_OPLIST(mpz))
ALGO_DEF(array_mpz, ARRAY_OPLIST(mpz, M_CLASSIC_OPLIST(mpz)))
static inline void my_mpz_inc(mpz_t d, const mpz_t a){
mpz_add(d, d, a);
}
static inline void my_mpz_sqr(mpz_t d, const mpz_t a){
mpz_mul(d, a, a);
... | #include <gmp.h>
#include "m-array.h"
#include "m-algo.h"
ARRAY_DEF(mpz, mpz_t, M_CLASSIC_OPLIST(mpz))
ALGO_DEF(array_mpz, ARRAY_OPLIST(mpz, M_CLASSIC_OPLIST(mpz)))
static inline void my_mpz_inc(mpz_t *d, const mpz_t a){
mpz_add(*d, *d, a);
}
static inline void my_mpz_sqr(mpz_t *d, const mpz_t a){
mpz_mul(*d, a,... | Update example with new constraints on map/reduce prototype. | Update example with new constraints on map/reduce prototype.
| C | bsd-2-clause | P-p-H-d/mlib,P-p-H-d/mlib |
c57119c6a4ae1a666a1bc7261dd9afeee1224d02 | util.h | util.h | #ifndef util_h
#define util_h
#define min(a,b) ((a)<(b)?(a):(b))
int warn(const char *s);
void v();
#endif /*util_h*/
| #ifndef util_h
#define util_h
#define min(a,b) ((a)<(b)?(a):(b))
int warn(const char *s);
void v();
#ifdef DEBUG
#define dprintf(fmt, args...) fprintf(stderr, fmt, ##args)
#else
#define dprintf(fmt, ...) (0)
#endif
#endif /*util_h*/
| Add a debugging print macro. | Add a debugging print macro.
| C | mit | amyvmiwei/beanstalkd,PhillipMwaniki/beanstalkd,yetone/beanstalkd,diditaxi/beanstalkd,tdg5/beanstalkd,bmhatfield/beanstalkd,naderman/beanstalkd,LomoX-Offical/beanstalkd-win,amyvmiwei/beanstalkd,CompendiumSoftware/beanstalkd,naderman/beanstalkd,pinguo-xudianyang/beanstalkd,JensRantil/beanstalkd,PhillipMwaniki/beanstalkd,... |
9088e400d3196d691980e36b908548cefcbcd3e0 | include/prd-fw-msg.h | include/prd-fw-msg.h | /* Copyright 2017 IBM Corp.
*
* 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 writin... | /* Copyright 2017 IBM Corp.
*
* 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 writin... | Add generic response structure inside prd_fw_msg | prd: Add generic response structure inside prd_fw_msg
This patch adds generic response structure. Also sync prd_fw_msg type
macros with hostboot.
Next patch makes use of this structure/macro.
CC: Jeremy Kerr <68a658b44bbaefab3ef5cd231967195fc0ff9d69@ozlabs.org>
Signed-off-by: Vasant Hegde <a6d753843573f7bfed5075c1e8... | C | apache-2.0 | open-power/skiboot,open-power/skiboot,shenki/skiboot,shenki/skiboot,shenki/skiboot,shenki/skiboot,qemu/skiboot,shenki/skiboot,stewart-ibm/skiboot,qemu/skiboot,qemu/skiboot,legoater/skiboot,legoater/skiboot,open-power/skiboot,open-power/skiboot,open-power/skiboot,qemu/skiboot,qemu/skiboot,stewart-ibm/skiboot,legoater/sk... |
4b9d0d59b5436e3fc6ffe3452147e226277a3edf | program/system/mission.c | program/system/mission.c | #include "QuadCopterConfig.h"
#include "mavlink.h"
#define MAV_MAX_LEN 263
struct waypoint_t mission_wp_list = {0};
int waypoint_cnt = 0;
int cur_waypoint = 0;
mavlink_message_t msg;
uint8_t buf[MAV_MAX_LEN];
void mission_read_waypoint_list()
{
}
void mission_write_waypoint_list()
{
}
void mission_clear_waypoint(... | #include "QuadCopterConfig.h"
#include "mavlink.h"
#define MAV_MAX_LEN 263
struct waypoint_t mission_wp_list = {0};
int waypoint_cnt = 0;
int cur_waypoint = 0;
mavlink_message_t msg;
uint8_t buf[MAV_MAX_LEN];
void push_waypoint_node(struct waypoint_t *waypoint)
{
}
void free_waypoint_list(struct waypoint_t *waypoi... | Create the waypoint structure operating function prototype | Create the waypoint structure operating function prototype
| C | mit | ming6842/firmware,ming6842/firmware-new,ming6842/firmware-new,UrsusPilot/firmware,ming6842/firmware-new,UrsusPilot/firmware,fboris/firmware,fboris/firmware,UrsusPilot/firmware,ming6842/firmware,ming6842/firmware,fboris/firmware |
3cbe36b63ebb3f5e782aac56c95e15018abf6cda | scripts/freetype/slimftoptions.h | scripts/freetype/slimftoptions.h | /* custom ftoption.h which selects the minimum features needed by mupdf */
#include <freetype/config/ftoption.h>
#undef FT_CONFIG_OPTION_USE_LZW
#undef FT_CONFIG_OPTION_USE_ZLIB
#undef FT_CONFIG_OPTION_USE_BZIP2
#undef FT_CONFIG_OPTION_USE_PNG
#undef FT_CONFIG_OPTION_USE_HARFBUZZ
#undef FT_CONFIG_OPTION_MAC_FONTS
#un... | /* custom ftoption.h which selects the minimum features needed by mupdf */
#include <freetype/config/ftoption.h>
#undef FT_CONFIG_OPTION_USE_LZW
#undef FT_CONFIG_OPTION_USE_ZLIB
#undef FT_CONFIG_OPTION_USE_BZIP2
#undef FT_CONFIG_OPTION_USE_PNG
#undef FT_CONFIG_OPTION_USE_HARFBUZZ
#undef FT_CONFIG_OPTION_MAC_FONTS
#un... | Disable freetype stream support, avoiding FILE interface. | Disable freetype stream support, avoiding FILE interface.
| C | agpl-3.0 | ArtifexSoftware/mupdf,ccxvii/mupdf,TamirEvan/mupdf,ccxvii/mupdf,sebras/mupdf,TamirEvan/mupdf,fluks/mupdf-x11-bookmarks,fluks/mupdf-x11-bookmarks,fluks/mupdf-x11-bookmarks,ArtifexSoftware/mupdf,TamirEvan/mupdf,poor-grad-student/mupdf,poor-grad-student/mupdf,fluks/mupdf-x11-bookmarks,fluks/mupdf-x11-bookmarks,fluks/mupdf... |
afe9df97488c789740212a40fdca119e4845308c | src/condor_includes/condor_fix_unistd.h | src/condor_includes/condor_fix_unistd.h | #ifndef FIX_UNISTD_H
#define FIX_UNISTD_H
#include <unistd.h>
/*
For some reason the g++ include files on Ultrix 4.3 fail to provide
these prototypes, even though the Ultrix 4.2 versions did...
Once again, OSF1 also chokes, unless _AES_SOURCE(?) is defined JCP
*/
#if defined(ULTRIX43) || defined(SUNOS41) || de... | #ifndef FIX_UNISTD_H
#define FIX_UNISTD_H
#if defined(SUNOS41)
# define read _hide_read
# define write _hide_write
#endif
#include <unistd.h>
#if defined(SUNOS41)
# undef read
# undef write
#endif
/*
For some reason the g++ include files on Ultrix 4.3 fail to provide
these prototypes, even though the Ultrix 4... | Fix up prototypes for read() and write() on Suns. | Fix up prototypes for read() and write() on Suns.
| C | apache-2.0 | djw8605/condor,clalancette/condor-dcloud,zhangzhehust/htcondor,djw8605/htcondor,djw8605/condor,bbockelm/condor-network-accounting,djw8605/condor,mambelli/osg-bosco-marco,djw8605/htcondor,djw8605/htcondor,neurodebian/htcondor,htcondor/htcondor,mambelli/osg-bosco-marco,mambelli/osg-bosco-marco,djw8605/htcondor,neurodebia... |
4161a3f63956e7a80939e3ab957abf83a8c5c6c4 | problem_2/solution.c | problem_2/solution.c | #include <stdio.h>
int main(int argc, char *argv[]){
int s, a, b, c;
s = 0;
a = 1;
b = 1;
c = a + b;
while(c < 4000000L){
s += c;
a = b + c;
b = a + c;
c = a + b;
}
printf("%d\n", s);
}
| Add C implementation for problem 2 | Add C implementation for problem 2
| C | mit | mdsrosa/project_euler,mdsrosa/project_euler,mdsrosa/project_euler,mdsrosa/project_euler,mdsrosa/project_euler,mdsrosa/project_euler,mdsrosa/project_euler,mdsrosa/project_euler | |
6d77e4be436f17438dc8b8d12c75b2382040f76d | src2/hcidumpinternal.h | src2/hcidumpinternal.h | #ifndef hcidumpinternal_H
#define hcidumpinternal_H
#include <stdbool.h>
#include <stdint.h>
typedef struct beacon_info {
char uuid[20];
int32_t code;
int32_t manufacturer;
int32_t major;
int32_t minor;
int32_t power;
int32_t calibrated_power;
int32_t rssi;
int64_t time;
} beacon_i... | #ifndef hcidumpinternal_H
#define hcidumpinternal_H
#include <stdbool.h>
#include <stdint.h>
typedef struct beacon_info {
char uuid[36];
int32_t code;
int32_t manufacturer;
int32_t major;
int32_t minor;
int32_t power;
int32_t calibrated_power;
int32_t rssi;
int64_t time;
} beacon_i... | Correct the allowed size of the uuid code | Correct the allowed size of the uuid code
| C | apache-2.0 | starksm64/NativeRaspberryPiBeaconParser,starksm64/NativeRaspberryPiBeaconParser,starksm64/NativeRaspberryPiBeaconParser,starksm64/NativeRaspberryPiBeaconParser,starksm64/NativeRaspberryPiBeaconParser |
d2db26f1c08242b61709d6c297ad28e02acd7abd | Wangscape/noise/module/codecs/CornerCombinerBaseWrapperCodec.h | Wangscape/noise/module/codecs/CornerCombinerBaseWrapperCodec.h | #pragma once
#include <spotify/json.hpp>
#include <noise/noise.h>
#include "noise/module/Wrapper.h"
#include "noise/module/CornerCombinerBase.h"
namespace spotify
{
namespace json
{
template<>
struct default_codec_t<noise::module::Wrapper<noise::module::CornerCombinerBase>>
{
using CornerCombinerBaseWrapper = n... | #pragma once
#include <spotify/json.hpp>
#include <noise/noise.h>
#include "noise/module/Wrapper.h"
#include "noise/module/CornerCombinerBase.h"
namespace spotify
{
namespace json
{
template<>
struct default_codec_t<noise::module::Wrapper<noise::module::CornerCombinerBase>>
{
using CornerCombinerBaseWrapper = n... | Fix find&replace error in CornerCombinerBase codec | Fix find&replace error in CornerCombinerBase codec
| C | mit | Wangscape/Wangscape,serin-delaunay/Wangscape,Wangscape/Wangscape,serin-delaunay/Wangscape,Wangscape/Wangscape |
8487e6a94258271b4036dcc62de05a2940d7d436 | snake.c | snake.c | #include <stdlib.h>
/**
* @author: Hendrik Werner
*/
#define BOARD_HEIGHT 50
#define BOARD_WIDTH 50
typedef struct Position {
int row;
int col;
} Position;
typedef enum Cell {
EMPTY
,SNAKE
,FOOD
} Cell;
typedef Cell Board[BOARD_HEIGHT][BOARD_WIDTH];
typedef enum Direction {LEFT, UP, RIGHT, DOWN} Direction;... | #include <stdlib.h>
/**
* @author: Hendrik Werner
*/
#define BOARD_HEIGHT 50
#define BOARD_WIDTH 50
typedef struct Position {
int row;
int col;
} Position;
typedef enum Cell {
EMPTY
,SNAKE
,FOOD
} Cell;
typedef Cell Board[BOARD_HEIGHT][BOARD_WIDTH];
typedef enum Direction {LEFT, UP, RIGHT, DOWN} Direction;... | Add a function to represents cells as characters. | Add a function to represents cells as characters.
| C | mit | Hendrikto/Snake |
8edeac350ffa63e48ea86a1284111061fd3256a7 | MoblicoSDK/Services/MLCSettingsService.h | MoblicoSDK/Services/MLCSettingsService.h | /*
Copyright 2012 Moblico Solutions LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this work except in compliance with the License.
You may obtain a copy of the License in the LICENSE file, or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable l... | /*
Copyright 2012 Moblico Solutions LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this work except in compliance with the License.
You may obtain a copy of the License in the LICENSE file, or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable l... | Allow overrideSettings to take a nil value. | Allow overrideSettings to take a nil value.
| C | apache-2.0 | Moblico/MoblicoSDK-iOS |
77567b0280eb5f326b0860096f473bb69064e672 | iOSNativeiPadApp/EdKeyNote/EdKeyNote/EdKeyNote/EKNAppDelegate.h | iOSNativeiPadApp/EdKeyNote/EdKeyNote/EdKeyNote/EKNAppDelegate.h | //
// EKNAppDelegate.h
// EdKeyNote
//
// Created by canviz on 9/22/14.
// Copyright (c) 2014 canviz. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "EKNDeskTopViewController.h"
#import "EKNLoginViewController.h"
@interface EKNAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomi... | //
// EKNAppDelegate.h
// EdKeyNote
//
// Created by canviz on 9/22/14.
// Copyright (c) 2014 canviz. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "EKNLoginViewController.h"
@interface EKNAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property (stro... | Remove the import for EKNDeskTopViewController.h | Remove the import for EKNDeskTopViewController.h
| C | apache-2.0 | weshackett/Property-Inspection-Code-Sample,mslaugh/Property-Inspection-Code-Sample,OfficeDev/Property-Inspection-Code-Sample,weshackett/Property-Inspection-Code-Sample,OfficeDev/Property-Inspection-Code-Sample,mslaugh/Property-Inspection-Code-Sample,OfficeDev/Property-Inspection-Code-Sample,weshackett/Property-Inspecti... |
4c835203b2e41aa8b7c61c9e1daaf9a6c4bfb6eb | Mac/mwerks/mwerks_plugin_config.h | Mac/mwerks/mwerks_plugin_config.h | /*
** Config file for dynamically-loaded ppc/cfm68k plugin modules.
*/
/* #define USE_GUSI1 /* Stdio implemented with GUSI */
#define USE_GUSI2 /* Stdio implemented with GUSI */
#define WITH_THREAD /* Use thread support (needs GUSI 2, not GUSI 1) */
#define USE_MSL /* Use MSL libraries */
#ifdef USE_MSL
#define M... | /*
** Config file for dynamically-loaded ppc/cfm68k plugin modules.
*/
/* #define USE_GUSI1 /* Stdio implemented with GUSI */
#define USE_GUSI2 /* Stdio implemented with GUSI */
#if defined(USE_GUSI1) || defined(USE_GUSI2)
#define USE_GUSI
#endif
#define WITH_THREAD /* Use thread support (needs GUSI 2, not GUSI 1) ... | Define USE_GUSI if USE_GUSI1 or USE_GUSI2 is defined. | Define USE_GUSI if USE_GUSI1 or USE_GUSI2 is defined.
| C | mit | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator |
d82e2c1a1f7373fe89ce854d94915ad420596aa2 | include/clang/Sema/CodeCompleteOptions.h | include/clang/Sema/CodeCompleteOptions.h | //===---- CodeCompleteOptions.h - Code Completion Options -------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===---- CodeCompleteOptions.h - Code Completion Options -------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix comments: these are not trailing comments | Fix comments: these are not trailing comments
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@174197 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl... |
1b374d72764837fb898f9b0aa4f2c83785818198 | halley/net/include/halley/net/imessage.h | halley/net/include/halley/net/imessage.h | #pragma once
#include <gsl/gsl_byte>
#include <gsl/span>
namespace Halley
{
class IMessage
{
public:
virtual ~IMessage() {}
virtual size_t getSerializedSize() = 0;
virtual void serializeTo(gsl::span<gsl::byte> dst) = 0;
};
}
| #pragma once
#include <gsl/gsl>
namespace Halley
{
class IMessage
{
public:
virtual ~IMessage() {}
virtual size_t getSerializedSize() = 0;
virtual void serializeTo(gsl::span<gsl::byte> dst) = 0;
};
}
| Change include to fix compilation. | Change include to fix compilation.
| C | apache-2.0 | amzeratul/halley,amzeratul/halley,amzeratul/halley |
f858f7f3804ea20b80a38dab9b1b2d098e1df2a1 | include/llvm/Transforms/Instrumentation.h | include/llvm/Transforms/Instrumentation.h | //===- Transforms/Instrumentation.h - Instrumentation passes ----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===--------... | //===- Transforms/Instrumentation.h - Instrumentation passes ----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===--------... | Add accessor function prototypes for reoptimizer support passes. Make accessors return FunctionPass* as appropriate. | Add accessor function prototypes for reoptimizer support passes.
Make accessors return FunctionPass* as appropriate.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@16619 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,chubbymaggie/asap,apple/swift-... |
dac047db615cb36da26e5502fb430771166f251f | ports/raspberrypi/boards/adafruit_feather_rp2040/mpconfigboard.h | ports/raspberrypi/boards/adafruit_feather_rp2040/mpconfigboard.h | #define MICROPY_HW_BOARD_NAME "Adafruit Feather RP2040"
#define MICROPY_HW_MCU_NAME "rp2040"
#define MICROPY_HW_NEOPIXEL (&pin_GPIO16)
#define DEFAULT_I2C_BUS_SCL (&pin_GPIO3)
#define DEFAULT_I2C_BUS_SDA (&pin_GPIO2)
#define DEFAULT_SPI_BUS_SCK (&pin_GPIO18)
#define DEFAULT_SPI_BUS_MOSI (&pin_GPIO19)
#define DEFAULT... | #define MICROPY_HW_BOARD_NAME "Adafruit Feather RP2040"
#define MICROPY_HW_MCU_NAME "rp2040"
#define MICROPY_HW_NEOPIXEL (&pin_GPIO16)
#define DEFAULT_I2C_BUS_SCL (&pin_GPIO3)
#define DEFAULT_I2C_BUS_SDA (&pin_GPIO2)
#define DEFAULT_SPI_BUS_SCK (&pin_GPIO18)
#define DEFAULT_SPI_BUS_MOSI (&pin_GPIO19)
#define DEFAULT... | Update Feather RP2040 to 8MB | Update Feather RP2040 to 8MB | C | mit | adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython |
b949183f1deda980e0ff77e067dc8d1eed2775c8 | serial.h | serial.h | #ifndef _SERIAL_H_
#define _SERIAL_H_
#include "hardware/packet.h"
#define SERIAL_SUCCESS 1
#define SERIAL_ERROR !SERIAL_SUCCESS
unsigned int serial_connect(char device[]);
unsigned int serial_transmit(struct Packet packet);
unsigned int serial_close();
#endif
| #ifndef _SERIAL_H_
#define _SERIAL_H_
#include "hardware/packet.h"
#define SERIAL_SUCCESS 1
#define SERIAL_ERROR (!SERIAL_SUCCESS)
unsigned int serial_connect(char device[]);
unsigned int serial_transmit(struct Packet packet);
unsigned int serial_close();
#endif
| Add brackets around SERIAL_ERROR definition for compatibility | Add brackets around SERIAL_ERROR definition for compatibility
| C | agpl-3.0 | jackwilsdon/lightcontrol,jackwilsdon/lightcontrol |
b483dd161b054adcff933fd073550bf8f7cc1c47 | include/pector/malloc_allocator_compat.h | include/pector/malloc_allocator_compat.h | #ifndef PECTOR_MALLOC_ALLOCATOR_COMPAT_H
#define PECTOR_MALLOC_ALLOCATOR_COMPAT_H
#ifdef __APPLE__
#include <malloc/malloc.h>
#else
#include <malloc.h>
#endif
#if defined __GNUC__ || defined _WIN32 || defined __APPLE__
#define PT_SIZE_AWARE_COMPAT
#if defined __GNUC__ && !defined _WIN32 && !defined __APPLE__
#defin... | #ifndef PECTOR_MALLOC_ALLOCATOR_COMPAT_H
#define PECTOR_MALLOC_ALLOCATOR_COMPAT_H
#ifdef __APPLE__
#include <malloc/malloc.h>
#else
#include <malloc.h>
#endif
#if defined __GNUC__ || defined _WIN32 || defined __APPLE__ || defined __FreeBSD__
#define PT_SIZE_AWARE_COMPAT
#if defined _WIN32
#define PT_MALLOC_USABLE_S... | Add FreeBSD as platform supporting malloc_usable_size | Add FreeBSD as platform supporting malloc_usable_size
| C | lgpl-2.1 | pjump/pector,aguinet/pector,pjump/pector,aguinet/pector |
1f8565900ffd65dc10e7d0341e29f284c480deab | src/include/TVector.h | src/include/TVector.h | /******************************
* AUTHOR : GUSTAVO MARTINS
* USE AS YOU WISH
* DATE : 11/25/2015
* LANG : ANSI C
* DESCR : A VERY SIMPLE
* 3D VECTOR LIBRARY
******************************/
#ifndef TVECTOR_H
#define TVECTOR_H
typedef struct SVector *TVector;
TVector createVector(double x, double y, double z);
TVector... | /******************************
* AUTHOR : GUSTAVO MARTINS
* USE AS YOU WISH
* DATE : 11/25/2015
* LANG : ANSI C
* DESCR : A VERY SIMPLE
* 3D VECTOR LIBRARY
******************************/
#ifndef TVECTOR_H
#define TVECTOR_H
typedef struct SVector *TVector;
TVector createVector(double x, double y, double z);
TVector... | Add new functions to header | Add new functions to header
| C | mit | gugamm/Simple-Vector-Library |
2e91ae16b74c9fe73444347640ff7a1545809844 | example1.c | example1.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "suspect.h"
suspect_context("Euler's Method",
suspect_test("Predicts y_{n+1} to within the expected threshhold",
suspect_assert("Expected 1 < 0", -1 < 0);
)
suspect_test("Does not explode",
suspect_assert("Expected -1 < 0", -1 < 0);
)
suspe... | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "suspect.h"
suspect_context("Euler's Method",
suspect_test("Expect actual to be within epsilon of target",
float actual = 5.426;
float epsilon = 0.01;
float target = 5.00;
suspect_epsilon(actual,epsilon,target);
)
suspect_test("Does not ex... | Include use case of epsilon | Include use case of epsilon
| C | mit | robertdfrench/Suspect |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.