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 |
|---|---|---|---|---|---|---|---|---|---|
4ebbd5b7b92a0b184605c9a64a16e49417ce37a2 | Sources/FKBenchmark.h | Sources/FKBenchmark.h | // Part of FoundationKit http://foundationk.it
#import <mach/mach_time.h>
#import "FKInternal.h"
/**
If we are in Debug-Mode this functions benchmarks the given block and logs
information about it's duration. Otherwise the block is just executed.
@param title the name of the benchmark
@param block the block to ... | // Part of FoundationKit http://foundationk.it
#import <mach/mach_time.h>
#import "FKInternal.h"
/**
If we are in Debug-Mode this functions benchmarks the given block and logs
information about it's duration. Otherwise the block is just executed.
@param title the name of the benchmark
@param block the block to ... | Fix analyzer warning that title is not read | Fix analyzer warning that title is not read
| C | mit | foundationkit/FoundationKit,foundationkit/FoundationKit,foundationkit/FoundationKit |
db57bd7faea002d5e73e0468a6e131416c1059df | phase-01/main.c | phase-01/main.c | #include <stdlib.h>
int main(int argc, char *argv[])
{
return EXIT_SUCCESS;
}
| /**
* Phase 01 - Get a Window that works and can be closed.
*
* This code won't be structured very well, just trying to get stuff working.
*/
#include <stdlib.h>
int main(int argc, char *argv[])
{
return EXIT_SUCCESS;
}
| Add a little header explaining the purpose of phase-01 | Add a little header explaining the purpose of phase-01
| C | mit | Faison/xlib-learning |
111522b5ef16dd6907e194a6b1f4d9af5d0dc0fa | code/src/util/tools.h | code/src/util/tools.h | /*
* tools.h
*
* Created on: May 4, 2011
* Author: wozniak
*/
#ifndef TOOLS_H
#define TOOLS_H
/**
Determine the length of an array of pointers
*/
int array_length(void** array);
#define append(string, args...) string += sprintf(string, ## args)
#endif /* TOOLS_H_ */
| /*
* tools.h
*
* Created on: May 4, 2011
* Author: wozniak
*/
#ifndef TOOLS_H
#define TOOLS_H
/**
Determine the length of an array of pointers
*/
int array_length(void** array);
#define append(string, args...) string += sprintf(string, ## args)
#define vappend(string, args...) string += vsprintf(stri... | Check in new macro vappend()- not actually used | Check in new macro vappend()- not actually used
git-svn-id: 4403cc1077de9de61ebbb06aa07b0a825c555f62@1737 dc4e9af1-7f46-4ead-bba6-71afc04862de
| C | apache-2.0 | basheersubei/swift-t,swift-lang/swift-t,JohnPJenkins/swift-t,JohnPJenkins/swift-t,JohnPJenkins/swift-t,swift-lang/swift-t,swift-lang/swift-t,blue42u/swift-t,swift-lang/swift-t,blue42u/swift-t,blue42u/swift-t,swift-lang/swift-t,JohnPJenkins/swift-t,blue42u/swift-t,swift-lang/swift-t,blue42u/swift-t,swift-lang/swift-t,ba... |
947bb5ff14287bac17e03a6de4998384a6b72afe | partition/Diffusive/src/engpar_sides.h | partition/Diffusive/src/engpar_sides.h | #ifndef ENGPAR_SIDES_H
#define ENGPAR_SIDES_H
#include <ngraph.h>
#include <PCU.h>
#include "engpar_container.h"
#include <engpar_metrics.h>
#include "engpar_diffusive_input.h"
namespace engpar {
class Sides : public Container<int> {
public:
Sides(agi::Ngraph* g, agi::etype t) {
agi::Ngraph* graph = g;... | #ifndef ENGPAR_SIDES_H
#define ENGPAR_SIDES_H
#include <ngraph.h>
#include <PCU.h>
#include "engpar_container.h"
#include <engpar_metrics.h>
#include "engpar_diffusive_input.h"
namespace engpar {
class Sides : public Container<int> {
public:
Sides(agi::Ngraph* g, agi::etype t) {
agi::Ngraph* graph = g;... | Add edge weights to side calculations | Add edge weights to side calculations
| C | bsd-3-clause | SCOREC/EnGPar,SCOREC/EnGPar,SCOREC/EnGPar |
cc41ed4411ea07febb3e03fd525ea2981e086643 | ext/baz/baz_vector_ruby.h | ext/baz/baz_vector_ruby.h | // ext/baz/baz_vector_ruby.h
#ifndef BAZ_VECTOR_RUBY_H
#define BAZ_VECTOR_RUBY_H
#include "baz_vector_lib.h"
#include <ruby.h>
void init_baz_vector( VALUE parent_module );
#endif
| // ext/baz/baz_vector_ruby.h
#ifndef BAZ_VECTOR_RUBY_H
#define BAZ_VECTOR_RUBY_H
#include "baz_vector_lib.h"
#include <ruby.h>
// Ruby 1.8.7 compatibility patch
#ifndef DBL2NUM
#define DBL2NUM( dbl_val ) rb_float_new( dbl_val )
#endif
void init_baz_vector( VALUE parent_module );
#endif
| Add definition of DBL2NUM for 1.8.7 | Add definition of DBL2NUM for 1.8.7
| C | mit | neilslater/ruby_nex_cpp,neilslater/ruby_nex_cpp,neilslater/ruby_nex_cpp |
8cef253d30d0099fcaadb47e30c98f754b8e8a41 | content/browser/renderer_host/quota_dispatcher_host.h | content/browser/renderer_host/quota_dispatcher_host.h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_
#define CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_
#include "base/basictyp... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_
#define CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_
#include "base/basictyp... | Fix clang build that have been broken by 81364. | Fix clang build that have been broken by 81364.
BUG=none
TEST=green tree
TBR=jam
Review URL: http://codereview.chromium.org/6838008
git-svn-id: http://src.chromium.org/svn/trunk/src@81368 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Former-commit-id: 72f86cdd70ccbe468222911d421f064981d34746 | C | bsd-3-clause | meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u... |
8b7b69ad99b2a227dfb42ec0240883d4f3354224 | src/common.h | src/common.h | #pragma once
#include <cstdio>
// HACK: No idea where this should actually be defined
#define nullptr 0x0
#pragma GCC diagnostic ignored "-Wattributes"
#include "openvr.h"
#pragma GCC diagnostic warning "-Wattributes"
using namespace vr;
#ifdef __x86_64__
// MS instead of SysV ABI for 64bit
#define WOVR_ENTRY __attr... | #pragma once
#include <cstdio>
// HACK: No idea where this should actually be defined
#define nullptr 0x0
// If _WIN32 is defined, openvr.h will decorate the exported functions with __declspec(dllimport) which implies
// __attribute__((ms_abi)). This makes things explode, as we need to call them with SysV ABI.
#undef... | Fix implied ms_abi where it shouldn't be | Fix implied ms_abi where it shouldn't be
| C | bsd-3-clause | roothorick/WineOpenVR,roothorick/WineOpenVR,roothorick/WineOpenVR |
2060f21af2c0e469250ab8c30370739b24b18e9e | src/common.h | src/common.h | // Copyright (c) 2012-2013, the scalloc Project Authors. All rights reserved.
// Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD license that can be found in the LICENSE file.
#ifndef SCALLOC_COMMON_H_
#define SCALLOC_COMMON_H_
#include <stddef.h> // size_t
#include "confi... | // Copyright (c) 2012-2013, the scalloc Project Authors. All rights reserved.
// Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD license that can be found in the LICENSE file.
#ifndef SCALLOC_COMMON_H_
#define SCALLOC_COMMON_H_
#include <stddef.h> // size_t
#include "confi... | Add some allocator constants like minimum alignment or maximum small size. | Add some allocator constants like minimum alignment or maximum small size.
Signed-off-by: Michael Lippautz <0d543840881a2c189b4f7636b15eebd6a8f60ace@gmail.com>
| C | bsd-2-clause | cksystemsgroup/scalloc,cksystemsgroup/scalloc,cksystemsgroup/scalloc |
5c18be3539a8150fc3f18a482fc077b881c2dc90 | firmware/ShinyeiPPD42NS/ShinyeiPPD42NS.h | firmware/ShinyeiPPD42NS/ShinyeiPPD42NS.h | #include <cmath>
class ShinyeiPPD42NS {
public:
ShinyeiPPD42NS(unsigned long sampling_interval_ms) {
_sampling_interval_ms = sampling_interval_ms;
_is_sampling_complete = false;
}
void startSampling(unsigned long stms);
float getConcentration(unsigned long duration, unsigned long current_time_ms);... | #include <cmath>
class ShinyeiPPD42NS {
public:
ShinyeiPPD42NS(float sampling_interval_ms) {
_sampling_interval_ms = sampling_interval_ms;
_is_sampling_complete = false;
}
void startSampling(unsigned long stms);
float getConcentration(unsigned long duration, unsigned long current_time_ms);
boo... | Improve precision for dust particle counts | Improve precision for dust particle counts
| C | mit | Rockvole/indoor-air-quality-dashboard,Rockvole/indoor-air-quality-dashboard,Rockvole/indoor-air-quality-dashboard,Rockvole/indoor-air-quality-dashboard,Rockvole/indoor-air-quality-dashboard |
97461cc2b13d7084eeb38442b845cf1d96621364 | Ashton/AshtonObjc/AshtonObjcMixedContentPreprocessor.h | Ashton/AshtonObjc/AshtonObjcMixedContentPreprocessor.h | //
// AshtonObjcMixedContentPreprocessor.h
// Ashton
//
// Created by Michael Schwarz on 15.01.18.
// Copyright © 2018 Michael Schwarz. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface AshtonObjcMixedContentPreprocessor: NSObject
- (NSString *)preprocessHTMLString:(N... | //
// AshtonObjcMixedContentPreprocessor.h
// Ashton
//
// Created by Michael Schwarz on 15.01.18.
// Copyright © 2018 Michael Schwarz. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
/// TBXML parser cannot handle html mixed content, therefore we have to preprocess it
/// mixe... | Add comment regarding mixed content preprocessor | Add comment regarding mixed content preprocessor
| C | mit | IdeasOnCanvas/Ashton,IdeasOnCanvas/Ashton,IdeasOnCanvas/Ashton |
7a949e2764e67c9722d6cead0bd465ac80bf83b1 | include/joy/internal/strcat.h | include/joy/internal/strcat.h | /*!
* This file defines an interface to fold preprocessor strings into one token.
*
* @author Louis Dionne
*/
#ifndef JOY_INTERNAL_STRCAT_H
#define JOY_INTERNAL_STRCAT_H
#include <chaos/preprocessor/recursion/expr.h>
#include <chaos/preprocessor/algorithm/fold_right.h>
#include <chaos/preprocessor/string/core.h>
... | Add a facility to concatenate preprocessor strings. | Add a facility to concatenate preprocessor strings.
| C | mit | ldionne/joy,ldionne/joy | |
355c96ef5a42de8929a53c8dbd4d852cb6d61181 | test/Sema/x86-intrinsics-headers.c | test/Sema/x86-intrinsics-headers.c | // RUN: %clang -fsyntax-only %s
// RUN: %clang -fsyntax-only -fno-lax-vector-conversions %s
// RUN: %clang -fsyntax-only -x c++ %s
#if defined(i386) || defined(__x86_64__)
# if defined(__MMX__)
#include <emmintrin.h>
#include <mm_malloc.h>
# endif
# if defined(__SSE__)
#include <xmmintrin.h>
# endif
# if defin... | // RUN: %clang -fsyntax-only %s
// RUN: %clang -fsyntax-only -fno-lax-vector-conversions %s
// RUN: %clang -fsyntax-only -x c++ %s
#if defined(i386) || defined(__x86_64__)
# if defined(__MMX__)
#include <emmintrin.h>
#include <mm_malloc.h>
# endif
# if defined(__SSE__)
#include <xmmintrin.h>
# endif
# if defin... | Add include for smmintrin.h to this test. | Add include for smmintrin.h to this test.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@99019 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl... |
c1089b86e56123ae7556f19d809d19edd4974c74 | Utilities/vxl/v3p/netlib/libf2c/c_sqrt.c | Utilities/vxl/v3p/netlib/libf2c/c_sqrt.c | #include "v3p_f2c.h"
#ifdef KR_headers
extern double sqrt(), f__cabs();
VOID c_sqrt(r, z) complex *r, *z;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
extern double f__cabs(double, double);
void c_sqrt(complex *r, complex *z)
#endif
{
double mag, t;
double zi = z->i, zr =... | #include "v3p_f2c.h"
#ifdef KR_headers
extern double sqrt(), f__cabs();
VOID c_sqrt(r, z) complex *r, *z;
#else
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
extern double f__cabs(double, double);
#undef complex
#define complex v3p_netlib_complex
void c_sqrt(complex *r, complex *z)
#endif
{
... | Fix for complex reference on Mac. | COMP: Fix for complex reference on Mac.
| C | apache-2.0 | jcfr/ITK,heimdali/ITK,hendradarwin/ITK,hinerm/ITK,stnava/ITK,BlueBrain/ITK,zachary-williamson/ITK,fuentesdt/InsightToolkit-dev,blowekamp/ITK,BRAINSia/ITK,richardbeare/ITK,eile/ITK,CapeDrew/DCMTK-ITK,malaterre/ITK,eile/ITK,BRAINSia/ITK,thewtex/ITK,malaterre/ITK,BlueBrain/ITK,BRAINSia/ITK,GEHC-Surgery/ITK,eile/ITK,hjmjoh... |
00477f3f6647d56d975186f3d13ec796ab94d97c | src/include/coincident/coincident.h | src/include/coincident/coincident.h | #pragma once
#if defined(__cplusplus)
extern "C" {
#endif
/**
* Fork a number of child processes, to run in parallel multiple
* times.
*
* @param nProcesses the number of processes to fork, at least 2
*
* @return the process ID from 0..nProcesses or -1 on failure
*/
extern int coincident_fork(int n);
extern ... | Add a public C-based API | API: Add a public C-based API
Not implemented yet though...
| C | lgpl-2.1 | SimonKagstrom/coincident,SimonKagstrom/coincident | |
e2321d5144bb9807da20753df47b221e6f039a73 | src/qt/optionsdialog.h | src/qt/optionsdialog.h | #ifndef OPTIONSDIALOG_H
#define OPTIONSDIALOG_H
#include <QDialog>
namespace Ui {
class OptionsDialog;
}
class OptionsModel;
class MonitoredDataMapper;
class QValidatedLineEdit;
/** Preferences dialog. */
class OptionsDialog : public QDialog
{
Q_OBJECT
public:
explicit OptionsDialog(QWidget *parent = 0);
... | #ifndef OPTIONSDIALOG_H
#define OPTIONSDIALOG_H
#include <QDialog>
namespace Ui {
class OptionsDialog;
}
class OptionsModel;
class MonitoredDataMapper;
class QValidatedLineEdit;
/** Preferences dialog. */
class OptionsDialog : public QDialog
{
Q_OBJECT
public:
explicit OptionsDialog(QWidget *parent = 0);
... | Use Tor refs - options headers | Use Tor refs - options headers
| C | mit | mammix2/boostcoin-core,mammix2/boostcoin-core,mammix2/boostcoin-core,mammix2/boostcoin-core,mammix2/boostcoin-core |
f2253cbc614b005453ddd8935bc1bea6dce71472 | SimpleAT.h | SimpleAT.h | #ifndef SIMPLEAT_H
#define SIMPLEAT_H
#include <stdint.h>
#define AT_MAX_NUMBER_OF_ARGS 4
#define CLIENT_FUNCTION_TYPE uint16_t
#define ECHO_MODE_ON 1
#define AT_NO_ARGS {0}
#define AT_ARGS(...) {__VA_ARGS__, -1}
#define AT_ARG(x) ((uint8_t) sizeof (x))
#define AT_COMMAND(name, args, client) {(char*)#name, 0, args , ... | #ifndef SIMPLEAT_H
#define SIMPLEAT_H
#include <stdint.h>
#define AT_MAX_NUMBER_OF_ARGS 4
#define CLIENT_FUNCTION_TYPE uint16_t
#define ECHO_MODE_ON 1
#define AT_NO_ARGS {0}
#define AT_ARGS(...) {__VA_ARGS__, -1}
#define AT_TYPE(x) ((uint8_t) sizeof (x))
#define AT_COMMAND(name, args, client) {(char*)#name, 0, args ,... | Improve name AT_ARG changed to AT_TYPE | Improve name AT_ARG changed to AT_TYPE
Signed-off-by: rodrigopex <3b2e0cd8e32147e0545aeecd8920e147dee7f189@gmail.com>
| C | mit | rodrigopex/SimpleAT |
1d777adbe4b7b314287a60b63e6f56212c8f286b | include/plat/tk1/plat/machine/hardware.h | include/plat/tk1/plat/machine/hardware.h | /*
* Copyright 2016, General Dynamics C4 Systems
*
* This software may be distributed and modified according to the terms of
* the GNU General Public License version 2. Note that NO WARRANTY is provided.
* See "LICENSE_GPLv2.txt" for details.
*
* @TAG(GD_GPL)
*/
#ifndef __PLAT_MACHINE_HARDWARE_H
#define __PLAT... | /*
* Copyright 2016, General Dynamics C4 Systems
*
* This software may be distributed and modified according to the terms of
* the GNU General Public License version 2. Note that NO WARRANTY is provided.
* See "LICENSE_GPLv2.txt" for details.
*
* @TAG(GD_GPL)
*/
#ifndef __PLAT_MACHINE_HARDWARE_H
#define __PLAT... | Correct previous merge with master | arm-hyp: Correct previous merge with master
| C | bsd-2-clause | cmr/seL4,cmr/seL4,cmr/seL4 |
32c23749becdede47f7c1540478f52ac11de7d59 | include/common/libfsm_common.h | include/common/libfsm_common.h | /*
* Copyright 2021 Scott Vokes
*
* See LICENCE for the full copyright terms.
*/
#ifndef LIBFSM_COMMON_H
#define LIBFSM_COMMON_H
#if defined(__clang__)
/* Newer versions of clang's UBSan emit warnings about *all* unsigned
* integer overflows. While they are defined behavior, overflow can
* cause bugs. This macr... | Add a header w/ macro to suppress unsigned integer UBSan warnings. | Add a header w/ macro to suppress unsigned integer UBSan warnings.
This header can be included by all of the various src/* codebases.
| C | bsd-2-clause | katef/libfsm,katef/libfsm,katef/libfsm,katef/libfsm,katef/libfsm | |
213f326810b6852bc54f38fd8bb71793f70f2c7a | include/linux/mfd/wm8350/wdt.h | include/linux/mfd/wm8350/wdt.h | /*
* wdt.h -- Watchdog Driver for Wolfson WM8350 PMIC
*
* Copyright 2007 Wolfson Microelectronics PLC
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the ... | Add WM8350 watchdog register definitions | mfd: Add WM8350 watchdog register definitions
Signed-off-by: Mark Brown <b51b9a92386687a9ac927cebfa0f978adeb8cea5@opensource.wolfsonmicro.com>
Acked-by: Samuel Ortiz <0ba86cb3f08bbb861958e54bd3438887adb4263c@openedhand.com>
Signed-off-by: Liam Girdwood <a57ef363056e61beffa2efa59c68550d40db03b0@slimlogic.co.uk>
| C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kana... | |
2ea2f9ce2d3a23d54ab508ddd5d01ce0a54a4bbc | include/features.h | include/features.h |
#ifndef __FEATURES_H
#define __FEATURES_H
/* Major and minor version number of the uCLibc library package. Use
these macros to test for features in specific releases. */
#define __UCLIBC__ 0
#define __UCLIBC_MAJOR__ 9
#define __UCLIBC_MINOR__ 1
#ifdef __STDC__
#define __P(x) x
#define __const const
/* Almo... |
#ifndef __FEATURES_H
#define __FEATURES_H
/* Major and minor version number of the uCLibc library package. Use
these macros to test for features in specific releases. */
#define __UCLIBC__ 0
#define __UCLIBC_MAJOR__ 9
#define __UCLIBC_MINOR__ 1
/* __restrict is known in EGCS 1.2 and above. */
#if !defined __G... | Remove __restrict when not supported -Erik | Remove __restrict when not supported
-Erik
| C | lgpl-2.1 | joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc |
4a50f0e986c8e57fb734bd66a93f951e89fa370a | includes/sv-comp.c | includes/sv-comp.c | void __VERIFIER_error() { abort(); }
int __VERIFIER_nondet_int() { int val; return val; } | void __VERIFIER_error() { abort(); }
// Some files define __VERIFIER_assume, some declare as extern. What happens when redefined?
void __VERIFIER_assume(int expression) { if (!expression) { LOOP: goto LOOP; }; return; }
// #define __VERIFIER_nondet(X) X __VERIFIER_nondet_##X() { X val; return val; }
#define __VERIFIE... | Add more common __VERIFIER functions | Add more common __VERIFIER functions
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
ba9175808084f22081a755314f966fa26026a8d7 | test/Driver/qa_override.c | test/Driver/qa_override.c | // RUN: env QA_OVERRIDE_GCC3_OPTIONS="#+-Os +-Oz +-O +-O3 +-Oignore +a +b +c xb Xa Omagic ^-### " %clang -target x86_64-apple-darwin %s -O2 b -O3 2>&1 | FileCheck %s
// RUN: env QA_OVERRIDE_GCC3_OPTIONS="x-Werror +-mfoo" %clang -target x86_64-apple-darwin -Werror %s -c -### 2>&1 | FileCheck %s -check-prefix=RM-WERROR
... | // RUN: env QA_OVERRIDE_GCC3_OPTIONS="#+-Os +-Oz +-O +-O3 +-Oignore +a +b +c xb Xa Omagic ^-### " %clang -target x86_64-apple-darwin %s -O2 b -O3 2>&1 | FileCheck %s
// RUN: env QA_OVERRIDE_GCC3_OPTIONS="x-Werror +-msse" %clang -target x86_64-apple-darwin -Werror %s -c -### 2>&1 | FileCheck %s -check-prefix=RM-WERROR
... | Use a valid option (-msse) for testing QA_OVERRIDE_GCC3_OPTIONS. | Use a valid option (-msse) for testing QA_OVERRIDE_GCC3_OPTIONS.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@191300 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-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,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... |
3be568cfef886afadf3c820d5c194d3d98d4f250 | test/Profile/func-entry.c | test/Profile/func-entry.c | // Test that function entry counts are set correctly.
// RUN: llvm-profdata merge %S/Inputs/func-entry.proftext -o %t.profdata
// RUN: %clang %s -o - -mllvm -disable-llvm-optzns -emit-llvm -S -fprofile-instr-use=%t.profdata | FileCheck %s
void foo(void);
// CHECK: define void @foo() #0 !prof [[FOO:![0-9]+]]
void foo... | // Test that function entry counts are set correctly.
// RUN: llvm-profdata merge %S/Inputs/func-entry.proftext -o %t.profdata
// RUN: %clang %s -o - -mllvm -disable-llvm-optzns -emit-llvm -S -fprofile-instr-use=%t.profdata | FileCheck %s
void foo(void);
// CHECK: @foo() #0 !prof [[FOO:![0-9]+]]
void foo() { return;... | Fix PPC failure. Adjust CHECK pattern. | Fix PPC failure. Adjust CHECK pattern.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@238413 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
154fe2b4be294050b9975edbbe2d83294a83d6b6 | crypto/lhash/lhash_lcl.h | crypto/lhash/lhash_lcl.h | /*
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/lice... | /*
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/lice... | Complete the rename of LHASH functions and types | Complete the rename of LHASH functions and types
LHASH_NODE was used internally, which doesn't work when configured
'no-deprecated'
Reviewed-by: Rich Salz <c04971a99e5a9ee80eaab4b1deb37e845b0bd697@openssl.org>
| C | apache-2.0 | openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl |
4fc052a4d01f37d84c484c779266d137b4b39137 | tests/fpga/texture/sseg.h | tests/fpga/texture/sseg.h | #ifndef __SSEG_H
#define __SSEG_H
// aaa
// f b
// ggg
// e c
// ddd
const int kSegA = 1;
const int kSegB = 2;
const int kSegC = 4;
const int kSegD = 8;
const int kSegE = 16;
const int kSegF = 32;
const int kSegG = 64;
static char digits[] = {
~(kSegA | kSegB | kSegC | kSegD | kSegE | kSegF), // 0
~(kSegB | k... | Add seven segment control code for debugging | Add seven segment control code for debugging
| C | apache-2.0 | FulcronZ/NyuziProcessor,jbush001/NyuziProcessor,FulcronZ/NyuziProcessor,FulcronZ/NyuziProcessor,hoangt/NyuziProcessor,hoangt/NyuziProcessor,jbush001/NyuziProcessor,jbush001/NyuziProcessor,jbush001/NyuziProcessor,hoangt/NyuziProcessor,jbush001/NyuziProcessor,jbush001/NyuziProcessor,FulcronZ/NyuziProcessor,hoangt/NyuziPr... | |
dd311938bea9633a230f0e3dd5145bda5b142de9 | mediathread/demuxer_skeleton.c | mediathread/demuxer_skeleton.c | /* *
* $Id$
*
* This file is part of Fenice
*
* Fenice -- Open Media Server
*
* Copyright (C) 2007 by
* - Dario Gallucci <dario.gallucci@polito.it>
*
* Fenice is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the ... | Add skeleton for demuxer modules | Add skeleton for demuxer modules
| C | lgpl-2.1 | winlinvip/feng,lscube/feng,winlinvip/feng,winlinvip/feng,lscube/feng,lscube/feng | |
0324b6204df54b3c93d3847eb5d50fe7ce55c22e | EZForm/EZForm/src/EZFormField+Private.h | EZForm/EZForm/src/EZFormField+Private.h | //
// EZForm
//
// Copyright 2011-2013 Chris Miles. 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 restriction, including without limitation the right... | //
// EZForm
//
// Copyright 2011-2013 Chris Miles. 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 restriction, including without limitation the right... | Update project to Xcode 11 beta 7 | Update project to Xcode 11 beta 7
Only update required is to replace `assign` with `weak`
| C | mit | realestate-com-au/EZForm,realestate-com-au/EZForm |
390d39f85242312778390db23603d8044c391c43 | euler/euler044.c | euler/euler044.c | // Copyright 2018 Dennis Decker Jensen
// Date: 29 April 2018
// Purpose: Minimum difference of pentagon numbers.
// Tectonics: cc -std=c11 -pedantic -Wall -O2 -o euler044 euler044.c
//
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
enum { npentagons = 10000 }; // N.B! Trial and error
unsigned pentagon[np... | Solve Euler problem 44 on min. pentagon numbers. | Solve Euler problem 44 on min. pentagon numbers.
| C | isc | dennisdjensen/sketchbook,dennisdjensen/sketchbook,dennisdjensen/sketchbook,dennisdjensen/sketchbook,dennisdjensen/sketchbook | |
db0dc75d6403b6663c0eab4c6ccb672eb9b2ed72 | arch/x86/lib/usercopy.c | arch/x86/lib/usercopy.c | /*
* User address space access functions.
*
* For licencing details see kernel-base/COPYING
*/
#include <linux/highmem.h>
#include <linux/module.h>
#include <asm/word-at-a-time.h>
/*
* best effort, GUP based copy_from_user() that is NMI-safe
*/
unsigned long
copy_from_user_nmi(void *to, const void __user *fro... | /*
* User address space access functions.
*
* For licencing details see kernel-base/COPYING
*/
#include <linux/highmem.h>
#include <linux/module.h>
#include <asm/word-at-a-time.h>
#include <linux/sched.h>
/*
* best effort, GUP based copy_from_user() that is NMI-safe
*/
unsigned long
copy_from_user_nmi(void *t... | Check user address explicitly in copy_from_user_nmi() | perf/x86: Check user address explicitly in copy_from_user_nmi()
Signed-off-by: Arun Sharma <c2cb8b536bb785a11a9303a3d5590407e9ac6d77@fb.com>
Cc: Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org>
Cc: 2578944098299abf708b08eff6fcf60565553586@vger.kernel.org
Signed-off-by: Peter Zijlstra <645... | C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Program... |
e0b44e2f0dc3124674bdb7ba6cc3ea0c3e38779c | src/commands.c | src/commands.c | #include "commands.h"
#include <stdbool.h>
#include <stdio.h>
#include "util.h"
static const char* quit_matches[] = {"quit"};
static const char* help_matches[] = {"help"};
static void print_commands_help() {
puts(" Commands available:\n");
puts(" :quit \tExit laco");
puts(" :help \tDisplay this lis... | #include "commands.h"
#include <stdbool.h>
#include <stdio.h>
#include "util.h"
static const char* quit_matches[] = {"quit"};
static const char* help_matches[] = {"help", "?"};
static void print_commands_help() {
puts(" Commands available:\n");
puts(" :quit \tExit laco");
puts(" :help, :? \tDispl... | Add short hand for help command | Add short hand for help command
| C | bsd-2-clause | sourrust/laco |
42d67826408f0c67cc6c9e9d2f41d203531031e0 | TATLayout/TATLayout.h | TATLayout/TATLayout.h | //
// TATLayout.h
// TATLayout
//
// An expressive, simple yet poweful way for coding layout constraints in iOS.
//
// Copyright (c) 2014 Claudio Romandini.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), t... | //
// TATLayout.h
// TATLayout
//
// An expressive, simple yet poweful way for coding layout constraints in iOS.
//
// Copyright (c) 2014 Claudio Romandini.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), t... | Add imports in main library header | Add imports in main library header
| C | mit | cromandini/TATLayout,cromandini/TATLayout |
80f76eaea4479b3853d228727e2a88e5b18b31c3 | libmue/tests/test_guest_tuple_iterator.h | libmue/tests/test_guest_tuple_iterator.h | #ifndef TEST_GUEST_TUPLE_ITERATOR_H
#define TEST_GUEST_TUPLE_ITERATOR_H
#include <cxxtest/TestSuite.h>
#include <unordered_set>
#include <vector>
#include "teams.h"
#include "guest_tuple_iterator.h"
class TestSeenTable : public CxxTest::TestSuite
{
private:
std::vector<mue::Team> make_testteams(int num)
{
st... | Add test Skel for guest_tuple_iterator.h | Add test Skel for guest_tuple_iterator.h
Signed-off-by: Jan Losinski <577c4104c61edf9f052c616c0c23e67bef4a9955@wh2.tu-dresden.de>
| C | bsd-3-clause | eXma/meet-and-eat-distribution-tool,janLo/meet-and-eat-distribution-tool,eXma/meet-and-eat-distribution-tool,janLo/meet-and-eat-distribution-tool,eXma/meet-and-eat-distribution-tool,janLo/meet-and-eat-distribution-tool | |
2114a48105c52b6b0e1c1cbbe59080ea8583e846 | cupy/cuda/cupy_thrust.h | cupy/cuda/cupy_thrust.h | #ifndef INCLUDE_GUARD_CUPY_CUDA_THRUST_H
#define INCLUDE_GUARD_CUPY_CUDA_THRUST_H
#ifndef CUPY_NO_CUDA
namespace cupy {
namespace thrust {
template <typename T>
void _sort(void *, size_t *, const std::vector<ptrdiff_t>&, size_t, void *);
template <typename T>
void _lexsort(size_t *, void *, size_t, size_t, size_t,... | #ifndef INCLUDE_GUARD_CUPY_CUDA_THRUST_H
#define INCLUDE_GUARD_CUPY_CUDA_THRUST_H
#ifndef CUPY_NO_CUDA
namespace cupy {
namespace thrust {
template <typename T>
void _sort(void *, size_t *, const std::vector<ptrdiff_t>&, size_t, void *);
template <typename T>
void _lexsort(size_t *, void *, size_t, size_t, size_t,... | Fix for no cuda environment | Fix for no cuda environment
| C | mit | cupy/cupy,cupy/cupy,cupy/cupy,cupy/cupy |
f6aacdd94fe8d648081d42cd578cf5280f6f55fe | config/config_class.h | config/config_class.h | #ifndef CONFIG_CLASS_H
#define CONFIG_CLASS_H
#include <map>
class Config;
class ConfigObject;
class ConfigType;
class ConfigValue;
class ConfigClass {
friend class Config;
std::string name_;
std::map<std::string, ConfigType *> members_;
protected:
ConfigClass(const std::string& name)
: name_(name),
members... | #ifndef CONFIG_CLASS_H
#define CONFIG_CLASS_H
#include <map>
class Config;
class ConfigObject;
class ConfigType;
class ConfigValue;
class ConfigClass {
friend class Config;
std::string name_;
std::map<std::string, ConfigType *> members_;
protected:
ConfigClass(const std::string& name)
: name_(name),
members... | Add an add_member method for adding members. Change visibility of everything. | Add an add_member method for adding members. Change visibility of everything.
git-svn-id: 9e2532540f1574e817ce42f20b9d0fb64899e451@156 4068ffdb-0463-0410-8185-8cc71e3bd399
| C | bsd-2-clause | diegows/wanproxy,splbio/wanproxy,diegows/wanproxy,splbio/wanproxy,diegows/wanproxy,splbio/wanproxy |
18f6f1d23ea4838ce05b6cde0bb96f74d9e738fe | High_Temp_MCP320x.h | High_Temp_MCP320x.h | /*
High_Temp.h
2014 Copyright (c) Seeed Technology Inc. All right reserved.
Loovee
2013-4-14
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 Lice... | /*
High_Temp.h
2014 Copyright (c) Seeed Technology Inc. All right reserved.
Loovee
2013-4-14
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 Lice... | Remove chipselect member - not needed | Remove chipselect member - not needed
| C | mit | mhaas/Grove_HighTemp_Sensor |
5a060de3f13d00e80d51486fc4a7410186aa3bfd | lib/GPIOlib.h | lib/GPIOlib.h | #ifndef GPIOLIB_H
#define GPIOLIB_H
#define FORWARD 1
#define BACKWARD 0
namespace GPIO
{
int init();
int controlLeft(int direction,int speed);
int controlRight(int direction,int speed);
int stopLeft();
int stopRight();
int resetCounter();
void getCounter(int *countLeft,int *countRight);
int turnTo(int an... | #ifndef GPIOLIB_H
#define GPIOLIB_H
#define FORWARD 1
#define BACKWARD 0
namespace GPIO
{
int init();
int controlLeft(int direction,int speed);
int controlRight(int direction,int speed);
int stopLeft();
int stopRight();
int resetCounter();
void getCounter(int *countLeft,int *countRight);
int turnTo(int ... | Remove texts for understanding to Wiki pages | Remove texts for understanding to Wiki pages
| C | mit | miaoxw/EmbeddedSystemNJU2017-Demo |
6bc030767c511ee71fa99f2c8f36c2dcb2844698 | perl/xs/KinoSearch/Util/StringHelper.c | perl/xs/KinoSearch/Util/StringHelper.c | /* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... | /* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... | Work around undocumented feature/bug in perlapi function is_utf8_string() by short-circuiting StrHelp_utf8_valid() to return true when the length of the string is 0. | Work around undocumented feature/bug in perlapi function is_utf8_string() by
short-circuiting StrHelp_utf8_valid() to return true when the length of the
string is 0.
git-svn-id: 0e6074679e66e8f1cc73dfc755b08bab367f805b@1027787 13f79535-47bb-0310-9956-ffa450edef68
| C | apache-2.0 | kidaa/lucy,rectang/lucy,pombredanne/apache-lucy,pombredanne/apache-lucy,apache/lucy,kidaa/lucy,rbevers/lucy,apache/lucy,nwellnhof/lucy,apache/lucy,kidaa/lucy,pombredanne/apache-lucy,kidaa/lucy,kidaa/lucy,rectang/lucy,apache/lucy,rbevers/lucy,apache/lucy,nwellnhof/lucy,rectang/lucy,nwellnhof/lucy,pombredanne/apache-lucy... |
dc5390b941c4694b601b52dc1a0ad5c69ed1cfa2 | tests/auto/common/declarativewebutils.h | tests/auto/common/declarativewebutils.h | /****************************************************************************
**
** Copyright (C) 2014 Jolla Ltd.
** Contact: Raine Makelainen <raine.makelainen@jolla.com>
**
****************************************************************************/
/* This Source Code Form is subject to the terms of the Mozilla Pu... | /****************************************************************************
**
** Copyright (C) 2014 Jolla Ltd.
** Contact: Raine Makelainen <raine.makelainen@jolla.com>
**
****************************************************************************/
/* This Source Code Form is subject to the terms of the Mozilla Pu... | Add missing property for WebUtils mock | [sailfish-browser] Add missing property for WebUtils mock
A warning was printed when running unit tests.
| C | mpl-2.0 | alinelena/sailfish-browser,sailfishos/sailfish-browser,sailfishos/sailfish-browser,alinelena/sailfish-browser,rojkov/sailfish-browser,alinelena/sailfish-browser,alinelena/sailfish-browser,rojkov/sailfish-browser,sailfishos/sailfish-browser,sailfishos/sailfish-browser,rojkov/sailfish-browser,sailfishos/sailfish-browser |
f788caa9971a22e6642c54458c80df8420aaf89e | constant-helper.c | constant-helper.c | #include <fcntl.h>
#include <stdio.h>
int
main(void)
{
printf("F_GETFL=%d\n", F_GETFL);
printf("F_SETFL=%d\n", F_SETFL);
printf("O_NONBLOCK=%d\n", O_NONBLOCK);
return 0;
}
| Add helper program to lookup C constants | Add helper program to lookup C constants
| C | mit | hoelzro/p6-linenoise,hoelzro/p6-linenoise | |
1d2187a1d3a933cad1265d24e817af50723cd7a8 | testcentury.c | testcentury.c | #include "decode_time.h"
#include <stdio.h>
int
main(int argc, char *argv[])
{
/* start with 2000-01-01 = Saturday (matches `ncal 2000`) */
uint8_t century, lday, co;
struct tm time;
time.tm_wday = 6; /* Saturday */
/* check for every date if it matches */
for (century = 0; century < 4; century++)
for (time.... | Add a small test program for century_offset(), passes. | Add a small test program for century_offset(), passes.
| C | bsd-2-clause | rene0/dcf77pi,rene0/dcf77pi | |
9cbbb1707f067cd7806a6a408e9e25a258649209 | iobuf/iobuf_timeout.c | iobuf/iobuf_timeout.c | #include <errno.h>
#include <sys/poll.h>
#include "iobuf.h"
int iobuf_timeout(iobuf* io, int poll_out)
{
struct pollfd pfd;
int result;
if (!io->timeout) return 1;
pfd.fd = io->fd;
pfd.events = poll_out ? POLLOUT : POLLIN;
while ((result = poll(&pfd, 1, io->timeout)) == -1) {
if (errno == EAGAIN) c... | #include <errno.h>
#include "iobuf.h"
#include "iopoll.h"
int iobuf_timeout(iobuf* io, int poll_out)
{
iopoll_fd pfd;
int result;
if (!io->timeout) return 1;
pfd.fd = io->fd;
pfd.events = poll_out ? IOPOLL_WRITE : IOPOLL_READ;
while ((result = iopoll(&pfd, 1, io->timeout)) == -1) {
if (errno == EAG... | Use iopoll instead of poll directly. | Use iopoll instead of poll directly.
| C | lgpl-2.1 | bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs |
8e5fa6ed489c9101bd87452b92db2559666c606c | Source/Export.h | Source/Export.h | ///////////////////////////////////////////////////////////////////////////////
// This source file is part of Zeroth.
//
// Copyright (c) 2016 Colin Hill
//
///////////////////////////////////////////////////////////////////////////////
#pragma once
#include <Hect/Core/Export.h>
#ifdef HECT_WINDOWS_BUILD
#ifdef ZER... | ///////////////////////////////////////////////////////////////////////////////
// This source file is part of Zeroth.
//
// Copyright (c) 2016 Colin Hill
//
///////////////////////////////////////////////////////////////////////////////
#pragma once
#include <Hect/Core/Export.h>
#ifdef HECT_WINDOWS_BUILD
#ifdef ZER... | Fix export macro for non-MS compilers | Fix export macro for non-MS compilers
| C | mit | colinhect/zeroth,colinhect/zeroth,colinhect/zeroth |
6c8a791702467c48fa62f506baa18a5980b7fcf9 | deps/cellulariot/src/SDL_Pi_HDC1000.h | deps/cellulariot/src/SDL_Pi_HDC1000.h | /* @author: Samuel G samuel.genois@mail.mcgill.ca
Modification Log:
Date Author Modification
-----------------------------------------------------------------
31-Oct-2018 Samuel G Created the file
===============================================================... | /* @author: Samuel G samuel.genois@mail.mcgill.ca
Modification Log:
Date Author Modification
-----------------------------------------------------------------
31-Oct-2018 Samuel G Created the file
07-Nov-2018 Matthew L-K Switch to file de... | Switch HDC1000 to file descriptor design | Switch HDC1000 to file descriptor design
| C | mit | anrl/JAM,anrl/JAM,anrl/JAM,anrl/JAM,anrl/JAM,anrl/JAM |
3de1c775e0cd2e3c0a2c6d9723da6dc2d82640b2 | include/truth/panic.h | include/truth/panic.h | #pragma once
#include <truth/cpu.h>
#include <truth/types.h>
#include <truth/log.h>
#define Not_Reached false
#define assert(x) \
if (!(x)) { \
logf("Assertion failed: (%s) function %s, file %s, line %d.", \
(#x), __func__, __FILE__, __LINE__); \
panic(); \
}
#define assert_ok(x... | #pragma once
#include <truth/cpu.h>
#include <truth/types.h>
#include <truth/log.h>
#define Not_Reached false
#define assert(x) \
if (!(x)) { \
logf("Assertion failed: (%s) function %s, file %s, line %d.", \
(#x), __func__, __FILE__, __LINE__); \
panic(); \
}
#define assert_ok(x... | Remove attribute ignored by compiler | Remove attribute ignored by compiler
| C | mit | iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth |
557d3de09e89c71aa82403b113bd9b863ae3fb0d | test/CodeGen/pgo-sample.c | test/CodeGen/pgo-sample.c | // Test if PGO sample use passes are invoked.
//
// Ensure Pass PGOInstrumentationGenPass is invoked.
// RUN: %clang_cc1 -O2 -fprofile-sample-use=%S/Inputs/pgo-sample.prof %s -mllvm -debug-pass=Structure -emit-llvm -o - 2>&1 | FileCheck %s
// CHECK: Remove unused exception handling info
// CHECK: Sample profile pass
| // Test if PGO sample use passes are invoked.
//
// Ensure Pass PGOInstrumentationGenPass is invoked.
// RUN: %clang_cc1 -O2 -fno-experimental-new-pass-manager -fprofile-sample-use=%S/Inputs/pgo-sample.prof %s -mllvm -debug-pass=Structure -emit-llvm -o - 2>&1 | FileCheck %s --check-prefix=LEGACY
// RUN: %clang_cc1 -O2 ... | Remove exception handling before loading pgo sample profile data | [clang][NewPM] Remove exception handling before loading pgo sample profile data
This patch ensures that SimplifyCFGPass comes before SampleProfileLoaderPass
on PGO runs in the new PM and fixes clang/test/CodeGen/pgo-sample.c.
Differential Revision: https://reviews.llvm.org/D63626
git-svn-id: ffe668792ed300d6c2daa1f6... | C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang |
4de18794094da4ebb67698b7c5a3b7a11fd5d477 | src/rtcmix/sockdefs.h | src/rtcmix/sockdefs.h | #include <netinet/in.h>
#include "defs.h" /* for MAXDISPARGS */
#define MAXTEXTARGS ((MAXDISPARGS*sizeof(double))/512)
#define MYPORT (IPPORT_RESERVED + 78)
/* IPPORT_RESERVED is 1024, so this is socket 1102
IPPORT_MAXPORT is 65535 on SGIs */
typedef struct sockdata {
char name[100]; /* the cmix command name *... | #include <netinet/in.h>
#include "maxdispargs.h"
#define MAXTEXTARGS ((MAXDISPARGS*sizeof(double))/512)
#define MYPORT (IPPORT_RESERVED + 78)
/* IPPORT_RESERVED is 1024, so this is socket 1102
IPPORT_MAXPORT is 65535 on SGIs */
typedef struct sockdata {
char name[100]; /* the cmix command name */
union {
... | Include maxdispargs.h instead of defs.h. | Include maxdispargs.h instead of defs.h.
| C | apache-2.0 | RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix |
945b00123bf13fa108fc4aafc52c64f87836aaef | src/include/estimators.h | src/include/estimators.h | #ifndef GRIDINF_INCLUDE_ESTIMATORS_H
#define GRIDINF_INCLUDE_ESTIMATORS_H
#include "core.h"
namespace ginf {
// Find the labeling where every node chooses the label that minimizes the data cost
template <typename T>
void decodeMaxPrior(Grid<T> *grid, Matrix<int> *result) {
for (int y = 0; y < grid->getHeight(); ... | Add functions to perform simple approximate inference | Add functions to perform simple approximate inference
| C | mit | evilncrazy/GridInfCuda,evilncrazy/GridInfCuda | |
5a429584d9cab3ffa15d6cd091a27181dc454c54 | Opcodes/ftest.c | Opcodes/ftest.c | #include "csdl.h"
#include <math.h>
void tanhtable(FUNC *ftp, FGDATA *ff)
{
MYFLT *fp = ftp->ftable;
MYFLT range = ff->e.p[5];
double step = (double)range/(ff->e.p[3]);
int i;
double x;
for (i=0, x=FL(0.0); i<ff->e.p[3]; i++, x+=step)
*fp++ = (MYFLT)tanh(x);
}
static void gentune(FUNC *f... | #include "csdl.h"
#include <math.h>
void tanhtable(FUNC *ftp, FGDATA *ff)
{
MYFLT *fp = ftp->ftable;
MYFLT range = ff->e.p[5];
double step = (double)range/(ff->e.p[3]);
int i;
double x;
for (i=0, x=FL(0.0); i<ff->e.p[3]; i++, x+=step)
*fp++ = (MYFLT)tanh(x);
}
static NGFENS localfgens[]... | Remove gen from loadable code | Remove gen from loadable code
| C | lgpl-2.1 | ketchupok/csound,ketchupok/csound,ketchupok/csound,ketchupok/csound,csound/csound,ketchupok/csound,csound/csound,csound/csound,csound/csound,csound/csound,csound/csound,csound/csound,ketchupok/csound,csound/csound,ketchupok/csound,csound/csound,ketchupok/csound,csound/csound,ketchupok/csound,ketchupok/csound |
27390e0138f13a06c5d52054510e7a979e900f97 | test/wasm/soft/float/fixunstfdi.c | test/wasm/soft/float/fixunstfdi.c | #include "src/math/reinterpret.h"
#include <math.h>
#include <stdint.h>
#include <assert.h>
static _Bool run(uint64_t a)
{
return a == truncl(a);
}
int main(void)
{
const uint64_t delta = 0x0008D46BA87B5A22;
for (uint64_t i = 0x3FFFFFFFFFFFFFFF; i < 0x4340000000000000; i += delta)
assert(run(rein... | #include "src/math/reinterpret.h"
#include <math.h>
#include <stdint.h>
#include <assert.h>
int main(void)
{
const __int128 delta = (__int128)0x17E93193 << 64 | 0xC0605887B0E6B634;
for (__int128 i = reinterpret(__int128, 0.9L); i < reinterpret(__int128, 0x1p64L); i += delta) {
long double x = reinterp... | Test truncation of long double -> uint64_t | Test truncation of long double -> uint64_t
| C | mit | jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic |
ae2f6d0a505d398642a1d6c6a057b971d93b1611 | sw/device/lib/runtime/check.h | sw/device/lib/runtime/check.h | // Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0`
#ifndef OPENTITAN_SW_DEVICE_LIB_RUNTIME_CHECK_H_
#define OPENTITAN_SW_DEVICE_LIB_RUNTIME_CHECK_H_
#include <stdbool.h>
#include "sw/device/lib/base/log.h"
#include "s... | // Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0`
#ifndef OPENTITAN_SW_DEVICE_LIB_RUNTIME_CHECK_H_
#define OPENTITAN_SW_DEVICE_LIB_RUNTIME_CHECK_H_
#include <stdbool.h>
#include "sw/device/lib/base/log.h"
#include "s... | Fix a couple typos in the CHECK macros. | [sw] Fix a couple typos in the CHECK macros.
Signed-off-by: Miguel Young de la Sota <71b8e7f4945fd97b98544cf897992af89646547a@google.com>
| C | apache-2.0 | lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan |
66cd92fa8407ceeecd4abfe1968eaaed60e04b1d | src/host/string_hash.c | src/host/string_hash.c | /**
* \file string_hash.c
* \brief Computes a hash value for a string.
* \author Copyright (c) 2012-2014 Jason Perkins and the Premake project
*/
#include "premake.h"
#include <string.h>
int string_hash(lua_State* L)
{
const char* str = luaL_checkstring(L, 1);
unsigned long seed = luaL_optint(L, 2, 0);
lua... | /**
* \file string_hash.c
* \brief Computes a hash value for a string.
* \author Copyright (c) 2012-2014 Jason Perkins and the Premake project
*/
#include "premake.h"
#include <string.h>
int string_hash(lua_State* L)
{
const char* str = luaL_checkstring(L, 1);
unsigned long seed = luaL_optint(L, 2, 0);
lua... | Fix implicit conversion warning when building with floating point Lua | Fix implicit conversion warning when building with floating point Lua
| C | bsd-3-clause | annulen/premake,annulen/premake,annulen/premake,annulen/premake |
1e88990b7b2b4bfc9999b79a78a08e7decf7e416 | src/types.h | src/types.h | /*
* types.h
* Ansilove 4.1.0
* https://www.ansilove.org
*
* Copyright (c) 2011-2020 Stefan Vogt, Brian Cassidy, and Frederic Cambus
* All rights reserved.
*
* Ansilove is licensed under the BSD 2-Clause License.
* See LICENSE file for details.
*/
#ifndef TYPES_H
#define TYPES_H
#define ANSILOVE_FILETYPE_AN... | /*
* types.h
* Ansilove 4.1.0
* https://www.ansilove.org
*
* Copyright (c) 2011-2020 Stefan Vogt, Brian Cassidy, and Frederic Cambus
* All rights reserved.
*
* Ansilove is licensed under the BSD 2-Clause License.
* See LICENSE file for details.
*/
#ifndef TYPES_H
#define TYPES_H
#define ANSILOVE_FILETYPE_AN... | Add forward declarations for ansilove_ctx and ansilove_options structs. | Add forward declarations for ansilove_ctx and ansilove_options structs.
| C | bsd-2-clause | ansilove/ansilove,ansilove/AnsiLove-C |
d4eb917f1f92bbcbe4efd035125a1d5f0d776cd8 | include/Range.h | include/Range.h | #ifndef EFDL_RANGE_H
#define EFDL_RANGE_H
#include <QPair>
#include <QDebug>
namespace efdl {
typedef QPair<qint64, qint64> Range; // (start, end)
}
QDebug operator<<(QDebug dbg, const efdl::Range &r);
#endif // EFDL_RANGE_H
| #ifndef EFDL_RANGE_H
#define EFDL_RANGE_H
#include <QPair>
#include <QDebug>
namespace efdl {
/**
* Encapsulates a file data range of the form [start, end[
*
* Note that "end" is not inclusive!
*/
typedef QPair<qint64, qint64> Range;
}
QDebug operator<<(QDebug dbg, const efdl::Range &r);
#endif // E... | Make it explicit that the 'end' in a range [start, end[ is _not_ inclusive. | Make it explicit that the 'end' in a range [start, end[ is _not_ inclusive.
| C | mit | netromdk/efdl,netromdk/efdl |
b3ee386a185c0e97967506b17ff6555668716b02 | src/qt/guiconstants.h | src/qt/guiconstants.h | #ifndef GUICONSTANTS_H
#define GUICONSTANTS_H
/* Milliseconds between model updates */
static const int MODEL_UPDATE_DELAY = 500;
/* Maximum passphrase length */
static const int MAX_PASSPHRASE_SIZE = 1024;
/* Size of icons in status bar */
static const int STATUSBAR_ICONSIZE = 16;
/* Invalid field background styl... | #ifndef GUICONSTANTS_H
#define GUICONSTANTS_H
/* Milliseconds between model updates */
static const int MODEL_UPDATE_DELAY = 500;
/* Maximum passphrase length */
static const int MAX_PASSPHRASE_SIZE = 1024;
/* Size of icons in status bar */
static const int STATUSBAR_ICONSIZE = 16;
/* Invalid field background styl... | Improve colors of minting tab and transactions tab. | Improve colors of minting tab and transactions tab.
| C | mit | Peerunity/Peerunity,Peerunity/Peerunity,Peerunity/Peerunity,Peerunity/Peerunity |
e27e62b62b5662afca8c1471ef54c36e7d953b09 | test/system/test_system_idle.c | test/system/test_system_idle.c | /*
* kinetic-c
* Copyright (C) 2014 Seagate Technology.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This progr... | Add idle multiprocess system test. | Add idle multiprocess system test.
| C | mpl-2.0 | benmcclelland/kinetic-c,chenchongli/kinetic-c,Kinetic/kinetic-c,chenchongli/kinetic-c,Kinetic/kinetic-c,Seagate/kinetic-c,rcrane/kinetic-c,benmcclelland/kinetic-c,benmcclelland/kinetic-c,Kinetic/kinetic-c,Seagate/kinetic-c,kinjalcpatel/kinetic-c,rcrane/kinetic-c,Kinetic/kinetic-c,benmcclelland/kinetic-c,chenchongli/kin... | |
c3097e8290c50f7fc67920233a4d4a7a20d68dcb | fmt/sign_pad.c | fmt/sign_pad.c | #include <string.h>
#include "number.h"
/** Format padding for a signed number. */
unsigned fmt_sign_pad(char* buffer, int sign, unsigned width, char pad)
{
char* s = buffer;
if (buffer == 0)
return width + (sign != 0);
if (!width) {
if (sign)
*s++ = '-';
}
else {
if (pad != '0') {
me... | #include <string.h>
#include "number.h"
/** Format padding for a signed number. */
unsigned fmt_sign_pad(char* buffer, int sign, unsigned width, char pad)
{
char* s = buffer;
if (buffer == 0)
return width + (sign != 0);
if (!width) {
if (sign)
*s++ = '-';
}
else {
if (pad != '0') {
me... | Include the no-buffer length when testing this function. | Include the no-buffer length when testing this function.
| C | lgpl-2.1 | bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs |
56bfdc11d63694e8f2248e98b8d1ee1eedfb0e43 | src/avfs/avfsincludes.h | src/avfs/avfsincludes.h | #include "assertive.h"
#include <VSScript.h>
#include <VapourSynth.h>
#include <VSHelper.h>
#include <climits>
#include <cstdint>
#include <cstdarg>
#include <cstring>
#include <cstdlib>
#include <wchar.h>
#include <cstdio>
#include <algorithm>
#include <new>
#include <codecvt>
#include <string>
#include <fstream>
#inc... | #include "assertive.h"
#include <VSScript.h>
#include <VapourSynth.h>
#include <VSHelper.h>
#include <climits>
#include <cstdint>
#include <cstdarg>
#include <cstring>
#include <cstdlib>
#include <wchar.h>
#include <cstdio>
#include <algorithm>
#include <new>
#include <codecvt>
#include <string>
#include <fstream>
#inc... | Reduce the number of windows specific includes in AVFS | Reduce the number of windows specific includes in AVFS
| C | lgpl-2.1 | vapoursynth/vapoursynth,Kamekameha/vapoursynth,vapoursynth/vapoursynth,vapoursynth/vapoursynth,Kamekameha/vapoursynth,Kamekameha/vapoursynth,vapoursynth/vapoursynth,Kamekameha/vapoursynth |
b336f8736f562f6723777d70f6f5956e28ccab73 | util.h | util.h | #ifndef UTIL_H
#define UTIL_H
void set_verbose_on();
void set_debug_on();
void error(const char * fmt, ...);
void verbose(const char * fmt, ...);
void debug(const char * fmt, ...);
#endif
| #ifndef UTIL_H
#define UTIL_H
void set_verbose_on();
void set_debug_on();
void error(const char * fmt, ...);
void verbose(const char * fmt, ...);
void debug(const char * fmt, ...);
void run_command(char * const argv[]);
#endif
| Allow run_command to be accessed from other files | Allow run_command to be accessed from other files
| C | mit | jaybosamiya/wifi-sniffer,jaybosamiya/wifi-sniffer |
aabfde2411ee372efed2ceff2c89c5b89b7ede5d | MergeTwoSortedListsRecursive.c | MergeTwoSortedListsRecursive.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct node {
int data;
struct node *next;
};
struct node *createNode (int value) {
struct node *newNode = (struct node *) malloc (sizeof (struct node));
newNode -> data = value;
newNode -> next = NULL;
return new... | Merge two sorted lists - recursive | Added: Merge two sorted lists - recursive
say
1 2
3 4
are the given sorted lists.
the smallest element will be one of the head nodes' data.
say head1.
thus, keep it aside and update it's next by assigning it to the next smaller element in both the lists. this element would also be at either of the head nodes.... | C | mit | devrezo/iaap | |
ed56e96ebeffec4ee264c707ddacc3ac3b3bb2fd | include/body.h | include/body.h | #ifndef CPR_BODY_H
#define CPR_BODY_H
#include <string>
#include "defines.h"
namespace cpr {
class Body : public std::string {
public:
Body() = default;
Body(const Body& rhs) = default;
Body(Body&& rhs) = default;
Body& operator=(const Body& rhs) = default;
Body& operator=(Body&& rhs) = defaul... | #ifndef CPR_BODY_H
#define CPR_BODY_H
#include <cstring>
#include <initializer_list>
#include <string>
#include "defines.h"
namespace cpr {
class Body : public std::string {
public:
Body() = default;
Body(const Body& rhs) = default;
Body(Body&& rhs) = default;
Body& operator=(const Body& rhs) = d... | Add specific headers for used symbols in Body | Add specific headers for used symbols in Body
| C | mit | whoshuu/cpr,SuperV1234/cpr,whoshuu/cpr,msuvajac/cpr,msuvajac/cpr,SuperV1234/cpr,SuperV1234/cpr,msuvajac/cpr,whoshuu/cpr |
9daa20c4f49febf0046ed42e0b436ad9f6956a2c | qsjsonlistmodel.h | qsjsonlistmodel.h | #pragma once
#include <QObject>
#include <QQmlParserStatus>
#include "qslistmodel.h"
class QSJsonListModel : public QSListModel, public QQmlParserStatus
{
Q_OBJECT
Q_PROPERTY(QString keyField READ keyField WRITE setKeyField NOTIFY keyFieldChanged)
Q_PROPERTY(QVariantList source READ source WRITE setSource... | #pragma once
#include <QObject>
#include <QQmlParserStatus>
#include "qslistmodel.h"
/* QSJsonListModel is a data model that combine QSListModel and QSDiffRunner
* into a single class. It may take a Javascript array object as source input,
* it will compare with previous input then update the model according to
* ... | Add description to QSJsonListModel in source file. | Add description to QSJsonListModel in source file.
| C | apache-2.0 | benlau/qsyncable,benlau/qsyncable |
e59e627e6e8ef1baab2dcd79e5b28f1a6d31978c | libyaul/yaul.h | libyaul/yaul.h | /*
* Copyright (c) 2012-2014 Israel Jacquez
* See LICENSE for details.
*
* Israel Jacquez <mrkotfw@gmail.com>
*/
#ifndef _LIBYAUL_H_
#define _LIBYAUL_H_
/* CPU */
#include <cpu.h>
/* SCU */
#include <scu.h>
/* CS0 */
#include <arp.h>
#include <dram-cartridge.h>
#include <usb-cartridge.h>
/* CS2 */
#include <c... | /*
* Copyright (c) 2012-2014 Israel Jacquez
* See LICENSE for details.
*
* Israel Jacquez <mrkotfw@gmail.com>
*/
#ifndef _LIBYAUL_H_
#define _LIBYAUL_H_
/* CPU-bus CPU */
#include <cpu.h>
/* CPU-bus SMPC */
#include <smpc.h>
/* SCU */
#include <scu.h>
/* CS0 */
#include <arp.h>
#include <dram-cartridge.h>
#in... | Add missing header (for SCSP) | Add missing header (for SCSP)
| C | mit | ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul |
9a91e90810d8c91e9e83799e7824f1ff9b171266 | IPCalculator/IPAddress.h | IPCalculator/IPAddress.h | #include <iostream>
// An IPv4 address has the following form:
// "A.B.C.D", where A, B, C and D are bytes
class IPAddress {
public:
IPAddress (unsigned char a = 0, unsigned char b = 0, unsigned char c = 0, unsigned char d = 0);
IPAddress operator& (const IPAddress& addr) const;
IPAddress operator| (c... | #ifndef _IP_ADDRESS_H_
#define _IP_ADDRESS_H_
#include <iostream>
// An IPv4 address has the following form:
// "A.B.C.D", where A, B, C and D are bytes
class IPAddress {
public:
IPAddress (unsigned char a = 0, unsigned char b = 0, unsigned char c = 0, unsigned char d = 0);
IPAddress operator& (const IPAd... | Add header guard to prevent multiple inclusion errors | Add header guard to prevent multiple inclusion errors
| C | mit | ocpodariu/ip-calculator |
ca7cea3fe392766a1252c86274554950384663e4 | bench/udb2/test-mlib.c | bench/udb2/test-mlib.c | #include "../common.c"
#include "m-dict.h"
static inline bool oor_equal_p(unsigned int k, unsigned char n)
{
return k == (unsigned int)n;
}
static inline void oor_set(unsigned int *k, unsigned char n)
{
*k = (unsigned int)n;
}
DICT_OA_DEF2(dict_oa_uint,
unsigned int, M_OPEXTEND(M_DEFAULT_OPLIST, OOR_EQUAL(o... | #include "../common.c"
#define DICTI_OA_PROBING(s) 1
#include "m-dict.h"
static inline bool oor_equal_p(unsigned int k, unsigned char n)
{
return k == (unsigned int)n;
}
static inline void oor_set(unsigned int *k, unsigned char n)
{
*k = (unsigned int)n;
}
DICT_OA_DEF2(dict_oa_uint,
unsigned int, M_OPEXTEND... | Use of linear probing and the same hash function as other libraries | Use of linear probing and the same hash function as other libraries
| C | bsd-2-clause | P-p-H-d/mlib,P-p-H-d/mlib |
fcf556ee83012bf061286ddaea7dd84826dab7d1 | src/bin/e_error.c | src/bin/e_error.c | #include "e.h"
/* local subsystem functions */
/* local subsystem globals */
/* externally accessible functions */
EAPI void
e_error_message_show_internal(char *txt)
{
/* FIXME: maybe log these to a file and display them at some point */
printf("<<<< Enlightenment Error >>>>\n"
"%s\n",
txt);
}
/* local ... | #include "e.h"
/* local subsystem functions */
/* local subsystem globals */
/* externally accessible functions */
EAPI void
e_error_message_show_internal(char *txt)
{
/* FIXME: maybe log these to a file and display them at some point */
printf("<<<< Enlightenment Error >>>>\n%s\n", txt);
}
/* local subsystem... | Fix formatting. (Really ??? 3 lines for something that can fit on one ?) | E: Fix formatting. (Really ??? 3 lines for something that can fit on
one ?)
git-svn-id: 6ac5796aeae0cef97fb47bcc287d4ce899c6fa6e@61614 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
| C | bsd-2-clause | jordemort/e17,jordemort/e17,jordemort/e17 |
13cd844ad3d0ab3c71578f5ddcb49699f3845fb1 | src/condor_includes/condor_constants.h | src/condor_includes/condor_constants.h | #ifndef CONSTANTS_H
#define CONSTANTS_H
#if !defined(__STDC__) && !defined(__cplusplus)
#define const
#endif
/*
Set up a boolean variable type. Since this definition could conflict
with other reasonable definition of BOOLEAN, i.e. using an enumeration,
it is conditional.
*/
#ifndef BOOLEAN_TYPE_DEFINED
typedef i... | #ifndef CONSTANTS_H
#define CONSTANTS_H
#if !defined(__STDC__) && !defined(__cplusplus)
#define const
#endif
/*
Set up a boolean variable type. Since this definition could conflict
with other reasonable definition of BOOLEAN, i.e. using an enumeration,
it is conditional.
*/
#ifndef BOOLEAN_TYPE_DEFINED
typedef i... | Change BOOL to BOOL_T to avoid confilct with "condor_expr.h". | Change BOOL to BOOL_T to avoid confilct with "condor_expr.h".
| C | apache-2.0 | djw8605/htcondor,mambelli/osg-bosco-marco,mambelli/osg-bosco-marco,mambelli/osg-bosco-marco,djw8605/htcondor,clalancette/condor-dcloud,clalancette/condor-dcloud,djw8605/htcondor,bbockelm/condor-network-accounting,clalancette/condor-dcloud,neurodebian/htcondor,djw8605/condor,neurodebian/htcondor,djw8605/condor,zhangzheh... |
bb43546c7a3d535576b49f0a729761ba6a348892 | include/sound/asound.h | include/sound/asound.h | #include <alsa/sound/uapi/asound.h>
| /* workaround for building with old glibc / kernel headers */
#ifdef __linux__
#include <linux/types.h>
#else
#include <sys/types.h>
#endif
#ifndef __kernel_long_t
#define __kernel_long_t long
#endif
#include <alsa/sound/uapi/asound.h>
| Fix build error with old kernel headers | header: Fix build error with old kernel headers
Old development environment doesn't necessarily contain the headers
defining __kernel_long_t that is recently used for y2038 timespec
conditional. Define it explicitly in such a case.
Signed-off-by: Takashi Iwai <4596b3305151c7ee743192a95d394341e3d3b644@suse.de>
| C | lgpl-2.1 | tiwai/alsa-lib,alsa-project/alsa-lib,alsa-project/alsa-lib,takaswie/alsa-lib,takaswie/alsa-lib,tiwai/alsa-lib,alsa-project/alsa-lib,takaswie/alsa-lib,alsa-project/alsa-lib,takaswie/alsa-lib,tiwai/alsa-lib,tiwai/alsa-lib,takaswie/alsa-lib |
5ede7ca028f40c0770b8cb646138b592a84ead78 | SSPSolution/SSPSolution/GameStateHandler.h | SSPSolution/SSPSolution/GameStateHandler.h | #ifndef SSPAPPLICATION_GAMESTATES_GAMESTATEHANDLER_H
#define SSPAPPLICATION_GAMESTATES_GAMESTATEHANDLER_H
#include "GameState.h"
#include "StartState.h"
#include "LevelSelectState.h"
#include <vector>
//#define START_WITHOUT_MENU
class GameStateHandler
{
private:
std::vector<GameState*> m_stateStack;
std::vector<Ga... | #ifndef SSPAPPLICATION_GAMESTATES_GAMESTATEHANDLER_H
#define SSPAPPLICATION_GAMESTATES_GAMESTATEHANDLER_H
#include "GameState.h"
#include "StartState.h"
#include "LevelSelectState.h"
#include <vector>
#define START_WITHOUT_MENU
class GameStateHandler
{
private:
std::vector<GameState*> m_stateStack;
std::vector<Game... | UPDATE default start without menu | UPDATE default start without menu
| C | apache-2.0 | Chringo/SSP,Chringo/SSP |
8b6c24dce25e743ceecd06d1c175c1cf8b91627b | browser/brightray_paths.h | browser/brightray_paths.h | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BROWSER_BRIGHTRAY_PATHS_H_
#define BROWSER_BRIGHTRAY_PATHS_H_
#include "base/compiler_specific.h"
#if defined(OS_WIN)
#include "base/base_paths_... | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BROWSER_BRIGHTRAY_PATHS_H_
#define BROWSER_BRIGHTRAY_PATHS_H_
#include "base/compiler_specific.h"
#if defined(OS_WIN)
#include "base/base_paths_... | Change our PATH_START to 11000 | Change our PATH_START to 11000
| C | mit | atom/brightray,bbondy/brightray,brave/brightray,atom/brightray,brave/brightray,bbondy/brightray |
314f4b9a1ea1272e83165570ff5634d53425f2fc | scene/geometry/sphere.h | scene/geometry/sphere.h | /*
* A sphere which can be added
* Author: Dino Wernli
*/
#ifndef SPHERE_H_
#define SPHERE_H_
#include "scene/element.h"
#include "util/point3.h"
#include "util/random.h"
class Material;
class Sphere : public Element {
public:
// Does not take ownership of material.
Sphere(const Point3& center, Scalar radiu... | /*
* A sphere which can be added
* Author: Dino Wernli
*/
#ifndef SPHERE_H_
#define SPHERE_H_
#include "scene/element.h"
#include "util/point3.h"
#include "util/random.h"
class Material;
class Sphere : public Element {
public:
// Does not take ownership of material.
Sphere(const Point3& center, Scalar radiu... | Add todo because comment is wrong. | Add todo because comment is wrong.
| C | mit | dinowernli/raytracer,dinowernli/raytracer,dinowernli/raytracer,dinowernli/raytracer |
9340480f46eb97d0774b77f47c316fe0bb4632e5 | dhash/dhblock_chash_srv.h | dhash/dhblock_chash_srv.h | #include <dhblock_srv.h>
class pmaint;
struct block_info;
struct adb_keyaux_t;
enum adb_status;
// Internal implementation of content hash repair_job logic.
class rjchash;
class dhblock_chash_srv : public dhblock_srv {
friend class rjchash;
ptr<adb> cache_db;
pmaint *pmaint_obj;
void localqueue (u_int32_t... | #include <dhblock_srv.h>
class pmaint;
struct block_info;
struct adb_keyaux_t;
enum adb_status;
// Internal implementation of content hash repair_job logic.
class rjchash;
class dhblock_chash_srv : public dhblock_srv {
friend class rjchash;
ptr<adb> cache_db;
pmaint *pmaint_obj;
void localqueue (u_int32_t... | Fix mis-named parameters in header. | Fix mis-named parameters in header.
| C | mit | weidezhang/dht,sit/dht,sit/dht,sit/dht,weidezhang/dht,weidezhang/dht,sit/dht,sit/dht,weidezhang/dht,weidezhang/dht |
0663fd7688904bad0bf3b87d4192553420fe00a1 | examples/misc/samples/src/loop-simple1.c | examples/misc/samples/src/loop-simple1.c | #include <stdio.h>
#include <stdlib.h>
int main(int argc, char * argv[]) {
unsigned int i;
unsigned int a;
unsigned int l;
if (argc != 2) {
printf("Usage: %s <iterations>\n", argv[0]);
exit(-1);
}
l = (unsigned int) atoi(argv[1]);
for (i = 0; i < l; i++) {
a++;
... | Add binary sample (add missing file) | Add binary sample (add missing file)
| C | bsd-2-clause | cnheitman/barf-project,cnheitman/barf-project,programa-stic/barf-project,cnheitman/barf-project,programa-stic/barf-project | |
d4e76b1eb2dd6a96faf591ea6935088095528b96 | include/rose/memory.h | include/rose/memory.h | /*
* Copyright (c) 2012 Rob Hoelz <rob at hoelz.ro>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify... | /*
* Copyright (c) 2012 Rob Hoelz <rob at hoelz.ro>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify... | Add macros for page aligning | Add macros for page aligning
| C | mit | hoelzro/rose-kernel,hoelzro/rose-kernel |
e99fdabfefb6c3b5426932eed6c8165ea1476231 | io/pipe_pair_simple.h | io/pipe_pair_simple.h | #ifndef IO_PIPE_PAIR_SIMPLE_H
#define IO_PIPE_PAIR_SIMPLE_H
#include <io/pipe_simple.h>
#include <io/pipe_simple_wrapper.h>
class PipePairSimple : public PipePair {
PipeSimpleWrapper<PipePairSimple> *incoming_pipe_;
PipeSimpleWrapper<PipePairSimple> *outgoing_pipe_;
protected:
PipePairSimple(void)
: incoming_pipe... | Add PipePairSimple which allows a user to simply construct a single object which implements a PipePair. | Add PipePairSimple which allows a user to simply construct a single object which
implements a PipePair.
git-svn-id: 9e2532540f1574e817ce42f20b9d0fb64899e451@486 4068ffdb-0463-0410-8185-8cc71e3bd399
| C | bsd-2-clause | splbio/wanproxy,diegows/wanproxy,diegows/wanproxy,splbio/wanproxy,diegows/wanproxy,splbio/wanproxy | |
6e21b4d8465f8cd4dc4181ea10683b576b361455 | Base/RXBufferMacros.h | Base/RXBufferMacros.h | //
// RXBufferMacros.h
// rivenx
//
#if !defined(RX_BUFFER_MACROS_H)
#define RX_BUFFER_MACROS_H
#define BUFFER_OFFSET(buffer, bytes) (__typeof__(buffer))((uintptr_t)buffer + (bytes))
#define BUFFER_NOFFSET(buffer, bytes) (__typeof__(buffer))((uintptr_t)buffer - (bytes))
#define BUFFER_ADD_OFFSET(buffer, bytes) (buf... | //
// RXBufferMacros.h
// rivenx
//
#if !defined(RX_BUFFER_MACROS_H)
#define RX_BUFFER_MACROS_H
#define BUFFER_OFFSET(buffer, bytes) (__typeof__(buffer))((uintptr_t)(buffer) + (bytes))
#define BUFFER_NOFFSET(buffer, bytes) (__typeof__(buffer))((uintptr_t)(buffer) - (bytes))
#define BUFFER_ADD_OFFSET(buffer, bytes) ... | Fix the new buffer macros by ensuring macro arguments are evaluated first. | Fix the new buffer macros by ensuring macro arguments are evaluated first.
| C | bsd-3-clause | jfroy/rivenx,jfroy/rivenx,jfroy/rivenx,jfroy/rivenx |
73164701cee9fe9a89c34bd6b59a961096a45155 | testmud/mud/home/Game/sys/verb/ooc/wiz/system/preload.c | testmud/mud/home/Game/sys/verb/ooc/wiz/system/preload.c | /*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2012 Raymond Jennings
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundati... | Add command to reload property configuration | Add command to reload property configuration
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka | |
53f6358ae3dd63a1ca308409a3faeccee1d3e0ad | src/murmurhash3.h | src/murmurhash3.h | //-----------------------------------------------------------------------------
// MurmurHash3 was written by Austin Appleby, and is placed in the public
// domain. The author hereby disclaims copyright to this source code.
#ifndef _MURMURHASH3_H_
#define _MURMURHASH3_H_
//--------------------------------------------... | //-----------------------------------------------------------------------------
// MurmurHash3 was written by Austin Appleby, and is placed in the public
// domain. The author hereby disclaims copyright to this source code.
#ifndef _MURMURHASH3_H_
#define _MURMURHASH3_H_
//--------------------------------------------... | Fix build break on WIN32 | Fix build break on WIN32
New versions of MSVC have stdint.h
Change-Id: Ica591b67c9e09541648d3a47e6c8fc98afde2547
Reviewed-on: http://review.couchbase.org/42716
Tested-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>
Reviewed-by: Chiyoung Seo <fcffc23db27b19ee4ebba46695ee6b50e09216a2@couchbase.com... | C | bsd-3-clause | jimwwalker/ep-engine,membase/ep-engine,owendCB/ep-engine,daverigby/kv_engine,daverigby/ep-engine,daverigby/kv_engine,hisundar/ep-engine,owendCB/ep-engine,teligent-ru/ep-engine,owendCB/ep-engine,owendCB/ep-engine,hisundar/ep-engine,couchbase/ep-engine,sriganes/ep-engine,couchbase/ep-engine,jimwwalker/ep-engine,membase/e... |
31193e4a68582e1b495f8fbf9bdf7904ec44b304 | src/kernel/task/resource/vfork/res_vfork.c | src/kernel/task/resource/vfork/res_vfork.c | /**
* @file res_vfork.c
* @brief Task resource for vfork
* @date May 16, 2014
* @author Anton Bondarev
*/
#include <stddef.h>
#include <setjmp.h>
#include <kernel/task.h>
#include <kernel/task/resource.h>
#include <kernel/task/resource/task_vfork.h>
TASK_RESOURCE_DEF(task_vfork_desc, struct task_vfork... | /**
* @file res_vfork.c
* @brief Task resource for vfork
* @date May 16, 2014
* @author Anton Bondarev
*/
#include <stddef.h>
#include <setjmp.h>
#include <util/binalign.h>
#include <kernel/task.h>
#include <kernel/task/resource.h>
#include <kernel/task/resource/task_vfork.h>
TASK_RESOURCE_DEF(task_v... | Add alignment for 'vfork' task resource | kernel: Add alignment for 'vfork' task resource
| C | bsd-2-clause | embox/embox,embox/embox,embox/embox,embox/embox,embox/embox,embox/embox |
7751530df026441258cabf46f474761c85330f8d | test/Sema/attr-noescape.c | test/Sema/attr-noescape.c | // RUN: %clang_cc1 %s -fblocks -verify -fsyntax-only
#if !__has_attribute(noescape)
# error "missing noescape attribute"
#endif
int *global_var __attribute((noescape)); // expected-warning{{'noescape' attribute only applies to parameters}}
void foo(__attribute__((noescape)) int *int_ptr,
__attribute__((noe... | // RUN: %clang_cc1 %s -fblocks -verify -fsyntax-only
#if !__has_attribute(noescape)
# error "missing noescape attribute"
#endif
int *global_var __attribute((noescape)); // expected-warning{{'noescape' attribute only applies to parameters}}
void foo(__attribute__((noescape)) int *int_ptr,
__attribute__((noe... | Fix expected warning after r313945. | Fix expected warning after r313945.
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang |
c8828e1233954b718cd29ff91cd600513aa87a14 | Artsy/Resources/Artsy-Bridging-Header.h | Artsy/Resources/Artsy-Bridging-Header.h | //
// Use this file to import your target's public headers that you would like to expose to Swift.
//
#import "UIViewController+FullScreenLoading.h"
#import "ArtsyAPI+Sales.h"
#import "ARScrollNavigationChief.h"
#import "ARWhitespaceGobbler.h"
#import "ARCountdownView.h"
#import "UIView+HitTestExpansion.h"
#import "... | //
// Use this file to import your target's public headers that you would like to expose to Swift.
//
#import "UIViewController+FullScreenLoading.h"
#import "ArtsyAPI+Sales.h"
#import "ARScrollNavigationChief.h"
#import "ARWhitespaceGobbler.h"
#import "ARCountdownView.h"
#import "UIView+HitTestExpansion.h"
#import "... | Remove unused imports from the swift bridging header | Remove unused imports from the swift bridging header
| C | mit | artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen |
06fbd5ddb83944b92f2ed0eb67eb017a385c940f | grantlee_core_library/grantlee_export.h | grantlee_core_library/grantlee_export.h | /*
This file is part of the Grantlee template system.
Copyright (c) 2009 Stephen Kelly <steveire@gmail.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License version 3 only, as published by the Free Software Foundation.
This l... | /*
This file is part of the Grantlee template system.
Copyright (c) 2009 Stephen Kelly <steveire@gmail.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License version 3 only, as published by the Free Software Foundation.
This l... | Disable the export stuff on non-windows. | Disable the export stuff on non-windows.
| C | lgpl-2.1 | cutelyst/grantlee,cutelyst/grantlee,simonwagner/grantlee,simonwagner/grantlee,simonwagner/grantlee,cutelyst/grantlee,simonwagner/grantlee,simonwagner/grantlee,cutelyst/grantlee,cutelyst/grantlee,simonwagner/grantlee |
949ddf0d60e041c9a96a81ce68e9b25882b455b3 | net/ldap/inc/LinkDef.h | net/ldap/inc/LinkDef.h | #ifdef __CINT__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ class TLDAPServer;
#pragma link C++ class TLDAPResult;
#pragma link C++ class TLDAPEntry;
#pragma link C++ class TLDAPAttribute;
#pragma link C++ global LDAP_PORT;
#pragma link C++ global LDAP... | #ifdef __CINT__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ class TLDAPServer;
#pragma link C++ class TLDAPResult;
#pragma link C++ class TLDAPEntry;
#pragma link C++ class TLDAPAttribute;
// These constants are preprocessor statements
// in ldap.h and... | Remove selection of preprocessor macros as globals in the linkdef | Remove selection of preprocessor macros as globals in the linkdef
| C | lgpl-2.1 | krafczyk/root,karies/root,sawenzel/root,pspe/root,CristinaCristescu/root,omazapa/root,vukasinmilosevic/root,CristinaCristescu/root,olifre/root,satyarth934/root,vukasinmilosevic/root,bbockelm/root,satyarth934/root,krafczyk/root,smarinac/root,karies/root,krafczyk/root,CristinaCristescu/root,agarciamontoro/root,agarciamon... |
578cb132ff6498c08fe8ad7c354b59507dd48491 | subsys/mgmt/mcumgr/lib/cmd/img_mgmt/src/img_mgmt_util.c | subsys/mgmt/mcumgr/lib/cmd/img_mgmt/src/img_mgmt_util.c | /*
* Copyright (c) 2018-2021 mcumgr authors
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdio.h>
#include <string.h>
#include "img_mgmt/image.h"
#include "img_mgmt/img_mgmt.h"
int
img_mgmt_ver_str(const struct image_version *ver, char *dst)
{
int rc = 0;
int rc1 = 0;
rc = snprintf(dst, IMG_MGMT_VER_... | /*
* Copyright (c) 2018-2021 mcumgr authors
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdio.h>
#include <string.h>
#include "img_mgmt/image.h"
#include "img_mgmt/img_mgmt.h"
int
img_mgmt_ver_str(const struct image_version *ver, char *dst)
{
int rc = 0;
int rc1 = 0;
rc = snprintf(dst, IMG_MGMT_VER_... | Make version string work with CONFIG_NEWLIB_LIBC | mgmt/mcumgr/lib: Make version string work with CONFIG_NEWLIB_LIBC
By default the newlib does not compile with %hhu processing,
to avoid turning on additional options for newlib compilation
this commit changes formatting string to use %hu instead.
The commit fixes problem with malformed version string being
returned, b... | C | apache-2.0 | galak/zephyr,finikorg/zephyr,finikorg/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,finikorg/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr,galak/zephyr |
0fe81b0ebf715830907d91749ac5364804e64a26 | tests/unit/s2n_cttime_functions_test.c | tests/unit/s2n_cttime_functions_test.c | /*
* Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... | Add test for constant-time comparison and copy | Add test for constant-time comparison and copy
| C | apache-2.0 | raycoll/s2n,alexeblee/s2n,bpdavidson/s2n,bpdavidson/s2n,wcs1only/s2n,alexeblee/s2n,awslabs/s2n,gibson-compsci/s2n,wcs1only/s2n,wcs1only/s2n,jldodds/s2n,raycoll/s2n,PKRoma/s2n,awslabs/s2n,alexeblee/s2n,PKRoma/s2n,jldodds/s2n,PKRoma/s2n,alexeblee/s2n,awslabs/s2n,alexeblee/s2n,bpdavidson/s2n,raycoll/s2n,bpdavidson/s2n,col... | |
0c47b2bee26a859ef99a11a81feecee6aa8248f9 | src/math.h | src/math.h | #ifndef G_EBKLRON9896QUFJSD3FNA40IITV3F
#define G_EBKLRON9896QUFJSD3FNA40IITV3F
#ifdef __cplusplus
extern "C" {
#endif
/*@self.public()*/
static const double CAL_PI = 3.141592653589793238462643383279502884197169399375;
#ifdef __cplusplus
}
#endif
#endif
| #ifndef G_EBKLRON9896QUFJSD3FNA40IITV3F
#define G_EBKLRON9896QUFJSD3FNA40IITV3F
#ifdef __cplusplus
extern "C" {
#endif
/*@self.public()*/
#ifndef M_PI
#define M_PI 3.141592653589793238462643383279502884197169399375
#endif
#ifdef __cplusplus
}
#endif
#endif
| Define M_PI instead of CAL_PI | Define M_PI instead of CAL_PI
| C | mit | Rufflewind/calico,Rufflewind/calico,Rufflewind/calico |
b70c1ec7f3a81a044b1e42c0f25b8d083810a177 | c/boards/arduino_uno/riot_arduino_uno.c | c/boards/arduino_uno/riot_arduino_uno.c | #include "riot_arduino_uno.h"
#include "utils.h"
riot_arduino_uno_sinks* riot_arduino_uno_sinks_create() {
riot_arduino_uno_sinks *sinks = xmalloc(sizeof(riot_arduino_uno_sinks));
return sinks;
}
riot_arduino_uno_sources* riot_arduino_uno_sources_create() {
riot_arduino_uno_sources *sources = xmalloc(sizeof(rio... | #include "riot_arduino_uno.h"
#include "utils.h"
riot_arduino_uno_sinks* riot_arduino_uno_sinks_create() {
riot_arduino_uno_sinks *sinks = xmalloc(sizeof(riot_arduino_uno_sinks));
return sinks;
}
riot_arduino_uno_sources* riot_arduino_uno_sources_create() {
riot_arduino_uno_sources *sources = xmalloc(sizeof(rio... | Add basic riot_run function definition | Add basic riot_run function definition
| C | mit | artfuldev/RIoT |
028eec9dc1352855a8d0f1e6077decfdc653b208 | src/SequenceLocation.h | src/SequenceLocation.h | #ifndef __SEQUENCELOCATION_H__
#define __SEQUENCELOCATION_H__
#include "Types.h"
#include "IRefProvider.h"
//#pragma pack(push)
//#pragma pack(2)
struct SequenceLocation
{
uint m_Location;
short m_RefId;
bool used() {
return m_Location != 0;
}
bool operator< (SequenceLocation const & rhs) ... | #ifndef __SEQUENCELOCATION_H__
#define __SEQUENCELOCATION_H__
#include "Types.h"
#include "IRefProvider.h"
//#pragma pack(push)
//#pragma pack(2)
struct SequenceLocation
{
uint m_Location;
int m_RefId;
bool used() {
return m_Location != 0;
}
bool operator< (SequenceLocation const & rhs) co... | Fix for references with more than 32k sequences. | Fix for references with more than 32k sequences. | C | mit | philres/ngmlr,philres/ngmlr,philres/ngmlr,philres/ngmlr |
b5703fa20995fc5dd01f9026f6259b2ceeadcdb1 | mini7digit.c | mini7digit.c | /*
1
4 5
2
6 7
3
*/
#include <stdio.h>
void line(char** a, int u, int v) {
char *c = a[1];
while(*c) {
int y = ("|O6VYNnX~^")[*c++-48]+1;
printf("%c%c%c%c",
y & u ? '|' : 32,
y & v ? '_' : 32,
y & u*2 ? '|' : 32,
c[0] ? ' ' : '\n');
}
}
int main(int y, char **a) {
line(a... | /*
1
4 5
2
6 7
3
*/
#include <stdio.h>
#define L(u,v) \
for(char *c = a[1];*c;) { \
printf("%c%c%c%c", \
y & u ? '|' : 32, \
y & v ? '_' : 32, \
(y = ("|O6VYNnX~^")[*c++-48]+1) & u*2 ? '|' : 32, \
c[1] ? ' ' : '\n'); \
};
int main(int y, char **a) {
L(0, 1);
L(8, 2);
L(32, 4);
return ... | Use a single call only (warning x86 only) Move the y assignment to another point in code | Use a single call only (warning x86 only)
Move the y assignment to another point in code
| C | mit | McZonk/7segements,McZonk/7segements |
34bfe82ca656fcad46859c533d4f7b17cb4226ed | frame.h | frame.h | //
// Created by admarkov on 22.04.17.
//
#ifndef FUNC_COMPOSER_FRAME_H
#define FUNC_COMPOSER_FRAME_H
#include <string>
typedef unsigned int index;
void crash(char info[]="") {
puts("Fatal error.");
exit(0);
}
#endif //FUNC_COMPOSER_FRAME_H
| //
// Created by admarkov on 22.04.17.
//
#ifndef FUNC_COMPOSER_FRAME_H
#define FUNC_COMPOSER_FRAME_H
#include <string>
using namespace std;
typedef unsigned int index;
void crash(string info="No information.") {
puts("Fatal error: "+info);
exit(0);
}
#endif //FUNC_COMPOSER_FRAME_H
| Add error output for crash() | Add error output for crash()
| C | mit | admarkov/func_composer,admarkov/func_composer |
e6db6f62fd25e728c2efe15928cbaab095b71457 | include/core/SkMilestone.h | include/core/SkMilestone.h | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 109
#endif
| /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 110
#endif
| Update Skia milestone to 110 | Update Skia milestone to 110
Change-Id: I99decad5e458e0353dfba0737c6d527ff550ae2d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/603820
Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
Auto-Submit: Rakshit Sharma <e91e6cdce3825eaad0fa11b55195605cfed87fab@google.com>
Commit-... | C | bsd-3-clause | google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia |
c42b568053e800eb7205a4a8f8429b92aef8b0db | disklist/disklist.c | disklist/disklist.c | /*
* disklist - List of disk and partitions using parted library
*
* Written in 2013 by Prashant P Shah <pshah.mumbai@gmail.com>
*
* To the extent possible under law, the author(s) have dedicated
* all copyright and related and neighboring rights to this software
* to the public domain worldwide. This software i... | Add listing disks and partitions program | Add listing disks and partitions program
Signed-off-by: Prashant Shah <80f978b5ac27fb318171799f0fb6a277863f2bf5@gmail.com>
| C | cc0-1.0 | prashants/c | |
98bfd42cf7a9dcd974071926232d0082fb80e1dc | include/CudaLE.h | include/CudaLE.h | /////////////////////////////////////////////////////////////////////////////////////////
///
/// \file CudaLE.h
///
/// __Description__: Main include file for the CudaLE lib
///
/// __Version__: 1.0\n
/// __Author__: Alex Chen, fizban007@gmail.com\n
/// __Organization__: Columbia Uni... | /////////////////////////////////////////////////////////////////////////////////////////
///
/// \file CudaLE.h
///
/// __Description__: Main include file for the CudaLE lib
///
/// __Version__: 1.0\n
/// __Author__: Alex Chen, fizban007@gmail.com\n
/// __Organization__: Columbia Uni... | Make the macro play nice with clang | Make the macro play nice with clang
| C | mit | fizban007/CudaLE,fizban007/CudaLE |
72b5907f318972685252659ca191d63fbe2f352b | lib/enable_execute_stack.c | lib/enable_execute_stack.c | //===-- enable_execute_stack.c - Implement __enable_execute_stack ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- enable_execute_stack.c - Implement __enable_execute_stack ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Use getpagesize() on non-Darwin platforms. - Presumably we will eventually need configure magic for this stuff. | Use getpagesize() on non-Darwin platforms.
- Presumably we will eventually need configure magic for this stuff.
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@74586 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt |
e02046531c3e291aeb87a92918dda0f21bad9700 | libs/compiler/tables.h | libs/compiler/tables.h | /*
* Copyright 2020 Andrey Terekhov, Maxim Menshikov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | /*
* Copyright 2020 Andrey Terekhov, Maxim Menshikov
*
* 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... | Remove useless interface of toreprtab | Remove useless interface of toreprtab
| C | apache-2.0 | andrey-terekhov/RuC,andrey-terekhov/RuC,andrey-terekhov/RuC |
176b9678afe004e1847e16c600f85120b3378dfd | fast-xattr-test/fast-xattr-test/main.c | fast-xattr-test/fast-xattr-test/main.c | //
// main.c
// fast-xattr-test
//
// Created by David Schlachter on 2015-07-09.
// Copyright (c) 2015 David Schlachter. All rights reserved.
//
#include <stdio.h>
#include <sys/xattr.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
int main(int argc, const char * argv[]) {
//char a[80];
//st... | //
// main.c
// fast-xattr-test
//
// Created by David Schlachter on 2015-07-09.
// Copyright (c) 2015 David Schlachter. All rights reserved.
//
#include <stdio.h>
#include <sys/xattr.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
int main(int argc, const char * argv[]) {
//char a[80];
//st... | Set first argument to name, second to path | Set first argument to name, second to path
| C | mit | davidschlachter/fast-xattr-test |
d0b6352558dfc24ff3d1e5a65d3811b065f9ca93 | CodeSamples/UserTypeToString.h | CodeSamples/UserTypeToString.h | #pragma once
#include <iostream>
#include <string>
class UserTypeToString
{
public:
UserTypeToString(std::string name, int age, double netWorth);
~UserTypeToString();
friend std::ostream& operator<<(std::ostream& os, const UserTypeToString& obj);
std::string name;
int age;
double netWorth;
};
std::ostream& op... | #pragma once
#include <iostream>
#include <string>
class UserTypeToString
{
public:
UserTypeToString(std::string name, int age, double netWorth);
~UserTypeToString();
friend std::ostream& operator<<(std::ostream& os, const UserTypeToString& obj);
std::string name;
int age;
double netWorth;
};
// Must be inlin... | Remove unneccesary code and add a comment to the declaration of operator<< | Remove unneccesary code and add a comment to the declaration of operator<<
| C | mit | Shawn1874/CodeSamples,Shawn1874/CodeSamples,Shawn1874/CodeSamples,Shawn1874/CodeSamples |
3d1939e899fdbb7d71998f33221e687b61c291af | include/HubFramework/HUBHeaderMacros.h | include/HubFramework/HUBHeaderMacros.h | #import <Foundation/Foundation.h>
/// Macro that marks an initializer as designated, and also makes the default Foundation initializers unavailable
#define HUB_DESIGNATED_INITIALIZER NS_DESIGNATED_INITIALIZER; \
/** Unavailable. Use the designated initializer instead */ \
+ (instancetype)new NS_UNAVAILABLE; \
... | #import <Foundation/Foundation.h>
/// Macro that marks an initializer as designated, and also makes the default Foundation initializers unavailable
#define HUB_DESIGNATED_INITIALIZER NS_DESIGNATED_INITIALIZER; \
/** Unavailable. Use the designated initializer instead */ \
+ (instancetype)new NS_UNAVAILABLE; \
... | Define NS_EXTENSIBLE_STRING_ENUM if not defined | Define NS_EXTENSIBLE_STRING_ENUM if not defined
This enables us to support building with Xcode 7. | C | apache-2.0 | spotify/HubFramework,spotify/HubFramework,spotify/HubFramework,spotify/HubFramework |
bc7451295fc860956e4139133a73f203e8d8b099 | GatewayCore/SubscriptionDataStore.h | GatewayCore/SubscriptionDataStore.h | #ifndef SUBSCRIPTION_DATA_STORE_H
#define SUBSCRIPTION_DATA_STORE_H
#include <list>
#include <string>
class SubscriptionDataStore {
public:
SubscriptionDataStore();
std::list<std::string> getHandlersForType(const std::string &typeName);
void subscribe(const std::string &typeName, const std::string &handlerNa... | Add header file for cross-gateway subscription data store | Add header file for cross-gateway subscription data store
| C | mit | isis-ammo/ammo-gateway,isis-ammo/ammo-gateway,isis-ammo/ammo-gateway,isis-ammo/ammo-gateway,isis-ammo/ammo-gateway,isis-ammo/ammo-gateway | |
73649ffabcf481cc0e2f668062526931d5040901 | ldso/include/unsecvars.h | ldso/include/unsecvars.h | /*
* Environment variable to be removed for SUID programs. The names are all
* stuffed in a single string which means they have to be terminated with a
* '\0' explicitly.
*/
#define UNSECURE_ENVVARS \
"LD_PRELOAD\0" \
"LD_LIBRARY_PATH\0" \
"LD_DEBUG\0" \
"LD_DEBUG_OUTPUT\0" \
"LD_TRACE_LOADED_OBJECTS\0" \
... | /*
* Environment variable to be removed for SUID programs. The names are all
* stuffed in a single string which means they have to be terminated with a
* '\0' explicitly.
*/
#define UNSECURE_ENVVARS \
"LD_PRELOAD\0" \
"LD_LIBRARY_PATH\0" \
"LD_DEBUG\0" \
"LD_DEBUG_OUTPUT\0" \
"LD_TRACE_LOADED_OBJECTS\0" \
... | Remove TMPDIR from glibc's commented list | Remove TMPDIR from glibc's commented list
| C | lgpl-2.1 | wbx-github/uclibc-ng,kraj/uclibc-ng,skristiansson/uClibc-or1k,klee/klee-uclibc,ddcc/klee-uclibc-0.9.33.2,groundwater/uClibc,OpenInkpot-archive/iplinux-uclibc,ndmsystems/uClibc,OpenInkpot-archive/iplinux-uclibc,m-labs/uclibc-lm32,hwoarang/uClibc,ChickenRunjyd/klee-uclibc,majek/uclibc-vx32,foss-for-synopsys-dwc-arc-proce... |
40d0f7fefc15d4830f769f3b3115a622e9254452 | source/logging.c | source/logging.c | #include "logging.h"
void error_log(const char *format, ...){
FILE *flog;
//If the log file is over 3.5 megabytes, empty it and start again
struct stat st;
if (!stat(log_filename, &st) && st.st_size >= 36700160) //1048576 per megabyte
flog = fopen(log_filename, "w+");
else flog = fopen(log_filename, "a+");
//W... | #include "logging.h"
void error_log(const char *format, ...){
FILE *flog;
//If the log file is over 3.5 megabytes, empty it and start again
struct stat st;
if (!stat(log_filename, &st) && st.st_size >= 3670016) //1048576 per megabyte
flog = fopen(log_filename, "w+");
else flog = fopen(log_filename, "a+");
//Wr... | Set log limit back to 3.5 megabytes | Set log limit back to 3.5 megabytes
| C | mit | Azmisov/NIMBYDaemon,Azmisov/NIMBYDaemon,Azmisov/NIMBYDaemon |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.