commit stringlengths 40 40 | old_file stringlengths 4 237 | new_file stringlengths 4 237 | old_contents stringlengths 1 4.24k | new_contents stringlengths 1 4.87k | subject stringlengths 15 778 | message stringlengths 15 8.75k | lang stringclasses 266
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
00429da5931314964a3f9d91ed93e32a0a6ab7b2 | PBWebViewController/PBWebViewController.h | PBWebViewController/PBWebViewController.h | //
// PBWebViewController.h
// Pinbrowser
//
// Created by Mikael Konutgan on 11/02/2013.
// Copyright (c) 2013 Mikael Konutgan. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface PBWebViewController : UIViewController <UIWebViewDelegate>
@property (strong, nonatomic) NSURL *URL;
@property (strong, nona... | //
// PBWebViewController.h
// Pinbrowser
//
// Created by Mikael Konutgan on 11/02/2013.
// Copyright (c) 2013 Mikael Konutgan. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface PBWebViewController : UIViewController <UIWebViewDelegate>
/**
* The URL that will be loaded by the web view controller.
* ... | Document all the public properties and methods | Document all the public properties and methods
| C | mit | kmikael/PBWebViewController,jhmcclellandii/PBWebViewController,mobitar/MBXWebViewController,junjie/PBWebViewController |
e143b52dbbee202551c0ccc7ce594cbe530a8391 | ArcGISRuntimeSDKQt_CppSamples/Maps/SetInitialMapLocation/SetInitialMapLocation.h | ArcGISRuntimeSDKQt_CppSamples/Maps/SetInitialMapLocation/SetInitialMapLocation.h | // [WriteFile Name=SetInitialMapLocation, Category=Maps]
// [Legal]
// Copyright 2015 Esri.
// 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
//... | // [WriteFile Name=SetInitialMapLocation, Category=Maps]
// [Legal]
// Copyright 2015 Esri.
// 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
//... | Fix legal comment build error | Fix legal comment build error
| C | apache-2.0 | Esri/arcgis-runtime-samples-qt,Esri/arcgis-runtime-samples-qt,Esri/arcgis-runtime-samples-qt,Esri/arcgis-runtime-samples-qt |
2380cb3c0804df11297de421c4defec96de19f8b | src/2D_element_arithmetic.c | src/2D_element_arithmetic.c | #include<2D_element_arithmetic.h>
matrix * elem_matrix_operation(elem (*fp)(elem, float), matrix * m,
float param) {
int i, j = 0;
for(i = 0; i < m->rows; i++) {
for(j =0; j < m->columns; j++) {
set_matrix_member(m, i+1, j+1,
(*fp)(m->arr[i*m->columns +j], para... | #include<2D_element_arithmetic.h>
matrix * elem_matrix_operation(elem (*fp)(elem, float), matrix * m,
float param) {
int i, j = 0;
for(i = 0; i < m->rows; i++) {
for(j =0; j < m->columns; j++) {
set_matrix_member(m, i+1, j+1,
(*fp)(m->arr[i*m->columns +j], para... | Make explicit the casts and floor division in pow_elem function | Make explicit the casts and floor division in pow_elem function
| C | mit | cphang99/matrix_playground,cphang99/matrix_playground,cphang99/matrix_playground |
fab6f220cdbcd7269d8f6e19988774efe0a49983 | test/Analysis/stack-addr-ps.c | test/Analysis/stack-addr-ps.c | // RUN: clang -checker-simple -verify %s
int* f1() {
int x = 0;
return &x; // expected-warning{{Address of stack memory associated with local variable 'x' returned.}} expected-warning{{address of stack memory associated with local variable 'x' returned}}
}
int* f2(int y) {
return &y; // expected-warning{{Addre... | // RUN: clang -checker-simple -verify %s
int* f1() {
int x = 0;
return &x; // expected-warning{{Address of stack memory associated with local variable 'x' returned.}} expected-warning{{address of stack memory associated with local variable 'x' returned}}
}
int* f2(int y) {
return &y; // expected-warning{{Addre... | Enhance compound literal test case. | Enhance compound literal test case.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@58480 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | 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,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
ff4417bbf993d1695567ce8672a2c19f6f48f557 | lib/Headers/varargs.h | lib/Headers/varargs.h | /*===---- varargs.h - Variable argument handling -------------------------------------===
*
* 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 t... | /*===---- varargs.h - Variable argument handling -------------------------------------===
*
* 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 t... | Add a newline at the end of the file. | Add a newline at the end of the file.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@99026 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,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl... |
ce3668fd60044c328af41b358a66a0e6741db1fb | boot/espressif/hal/include/esp_log.h | boot/espressif/hal/include/esp_log.h | /*
* Copyright (c) 2021 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include <mcuboot_config/mcuboot_logging.h>
#define ESP_LOGE(tag, fmt, ...) MCUBOOT_LOG_ERR(fmt, ##__VA_ARGS__)
#define ESP_LOGW(tag, fmt, ...) MCUBOOT_LOG_WRN(fmt, ##__VA_ARGS__)
#define ESP_LOG... | /*
* SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include <mcuboot_config/mcuboot_logging.h>
#define ESP_LOGE(tag, fmt, ...) MCUBOOT_LOG_ERR("[%s] " fmt, tag, ##__VA_ARGS__)
#define ESP_LOGW(tag, fmt, ...) MCUBOOT_LOG_WRN("[%s] " fmt, ta... | Use "TAG" field from ESP_LOG* macros from IDF libraries | espressif: Use "TAG" field from ESP_LOG* macros from IDF libraries
Signed-off-by: Gustavo Henrique Nihei <42b1270cfd1a4f11d4db08d9d441d5d8452cd3b6@espressif.com>
| C | apache-2.0 | runtimeco/mcuboot,ATmobica/mcuboot,ATmobica/mcuboot,ATmobica/mcuboot,runtimeco/mcuboot,ATmobica/mcuboot,runtimeco/mcuboot,runtimeco/mcuboot,runtimeco/mcuboot,ATmobica/mcuboot |
fe5717664e4220a0bde701fc3239ef7eabe4f138 | MdeModulePkg/Universal/HiiDatabaseDxe/R8Lib.h | MdeModulePkg/Universal/HiiDatabaseDxe/R8Lib.h | /** @file
Implement a utility function named R8_EfiLibCompareLanguage.
Copyright (c) 2007 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full ... | /** @file
Implement a utility function named R8_EfiLibCompareLanguage.
Copyright (c) 2007 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. Th... | Update to use DOS format | Update to use DOS format
git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@6339 6f19259b-4bc3-4df7-8a09-765794883524
| C | bsd-2-clause | MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2 |
2cb139d6f1660d7354a8b9a3e1a86d9bc45aead1 | Pod/Classes/Models/LKManager.h | Pod/Classes/Models/LKManager.h | //
// LKManager.h
//
// Created by Vlad Gorbenko on 4/21/15.
// Copyright (c) 2015 Vlad Gorbenko. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "LKLanguage.h"
extern NSString *const LKLanguageDidChangeNotification;
extern NSString *const LKSourceDefault;
extern NSString *const LKSourcePlist;
... | //
// LKManager.h
//
// Created by Vlad Gorbenko on 4/21/15.
// Copyright (c) 2015 Vlad Gorbenko. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "LKLanguage.h"
extern NSString *const LKLanguageDidChangeNotification;
extern NSString *const LKSourceDefault;
extern NSString *const LKSourcePlist;
... | Make language by code public. | Make language by code public.
| C | mit | mojidabckuu/Loki,mojidabckuu/Loki |
fee172d7eafd98a5df3c251ed5065f9e91eb4b2a | coursework/assignment1/matrix_multiplication.c | coursework/assignment1/matrix_multiplication.c | #include <stdio.h>
#include <mpi.h>
int main(int argc, char *argv[]) {
int numprocs, rank, namelen;
char processor_name[MPI_MAX_PROCESSOR_NAME];
MPI_Init(&argc, &argv);
MPI_Comm_size(MPI_COMM_WORLD, &numprocs);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Get_processor_name(processor_name, &namelen);
// T... | // mat_x num of rows equals to
// mat_a num of rows
#define A_ROWS 3
#define X_ROWS 3
// mat_x num of cols equals to
// mat_b num of cols
#define B_COLS 3
#define X_COLS 3
// mat_a num of cols should be equals to
// mat_b num of rows
#define A_COLS 2
#define B_ROWS 2
#include <stdio.h>
// #include <mpi.h>
void print_... | Add matrix multiplication code in C | Add matrix multiplication code in C
| C | mit | arthurazs/uff-lpp,arthurazs/uff-lpp,arthurazs/uff-lpp |
d0ae779c15cfa916a186dff8872e2a3f4401c2d3 | snapshots/hacl-c/Random.h | snapshots/hacl-c/Random.h | /* This file was auto-generated by KreMLin! */
#ifndef __Random_H
#define __Random_H
#include "kremlib.h"
#include "config.h"
#include "drng.h"
#include "cpuid.h"
typedef uint8_t u8;
typedef uint32_t u32;
typedef uint64_t u64;
typedef uint8_t *bytes;
uint32_t random_uint32();
uint64_t random_uint64();
void ran... | /* This file was auto-generated by KreMLin! */
#ifndef __Random_H
#define __Random_H
#include "kremlib.h"
#include "config.h"
#include "drng.h"
#include "cpuid.h"
typedef uint8_t u8;
typedef uint32_t u32;
typedef uint64_t u64;
uint32_t random_uint32();
uint64_t random_uint64();
void random_bytes(uint8_t *rand, ... | Remove a redifinition of type 'bytes' | Remove a redifinition of type 'bytes'
| C | apache-2.0 | mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star |
32adade0be324e7280a606adaaa17279ab2b7c7d | doxygen/main_page.c | doxygen/main_page.c | /**
@mainpage M-Stack
@section Intro
This is M-Stack, a free USB Device Stack for PIC Microcontrollers. For more information, see the <a href="group__public__api.html">Public API Page.</a>
*/
| /**
@mainpage M-Stack
@section Intro
This is M-Stack, a free USB Device Stack for PIC Microcontrollers.
For more information, see the <a href="http://www.signal11.us/oss/m-stack">main web page.</a>
For API documentation, see the <a href="group__public__api.html">Public API Page.</a>
*/
| Add web page link to the main doxygen page | doxygen: Add web page link to the main doxygen page
| C | apache-2.0 | rollingstone/m-stack,rollingstone/m-stack,pololu/m-stack,pololu/m-stack |
4dc1a5ab19c9cc8a84d726d4a01d0e3ea75644b9 | include/fish_detector/common/species_dialog.h | include/fish_detector/common/species_dialog.h | /// @file
/// @brief Defines SpeciedDialog class.
#ifndef SPECIES_DIALOG_H
#define SPECIES_DIALOG_H
namespace fish_detector {
class SpeciesDialog : public QDialog {
Q_OBJECT
#ifndef NO_TESTING
friend class TestSpeciesDialog;
#endif
public:
/// @brief Constructor.
///
/// @param parent Parent widget.
expl... | /// @file
/// @brief Defines SpeciesDialog class.
#ifndef SPECIES_DIALOG_H
#define SPECIES_DIALOG_H
#include <memory>
#include <QWidget>
#include <QDialog>
#include "fish_detector/common/species.h"
namespace Ui {
class SpeciesDialog;
}
namespace fish_detector {
class SpeciesDialog : public QDialog {
Q_OBJECT... | Add function returning Species object | Add function returning Species object
| C | mit | BGWoodward/FishDetector |
5fff847531ede017aeabc7e38264f438748b5493 | webkit/plugins/ppapi/ppp_pdf.h | webkit/plugins/ppapi/ppp_pdf.h | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_PLUGINS_PPAPI_PPP_PDF_H_
#define WEBKIT_PLUGINS_PPAPI_PPP_PDF_H_
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_point.h"
#inclu... | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_PLUGINS_PPAPI_PPP_PDF_H_
#define WEBKIT_PLUGINS_PPAPI_PPP_PDF_H_
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_point.h"
#inclu... | Add missing unversioned interface-name macro for PPP_Pdf. | Add missing unversioned interface-name macro for PPP_Pdf.
BUG=107398
Review URL: http://codereview.chromium.org/9114010
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@116504 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | adobe/chromium,adobe/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,gavinp/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,ropik/chromium,ropik/chromium,gavinp/chrom... |
e62cfdcc7390d420833d2bead953d8e172719f37 | src/dst.c | src/dst.c | #include "syshead.h"
#include "dst.h"
#include "ip.h"
#include "arp.h"
int dst_neigh_output(struct sk_buff *skb)
{
struct iphdr *iphdr = ip_hdr(skb);
struct netdev *netdev = skb->netdev;
uint8_t *dmac = arp_get_hwaddr(iphdr->daddr);
int rc;
if (dmac) {
return netdev_transmit(skb, dmac, ETH... | #include "syshead.h"
#include "dst.h"
#include "ip.h"
#include "arp.h"
int dst_neigh_output(struct sk_buff *skb)
{
struct iphdr *iphdr = ip_hdr(skb);
struct netdev *netdev = skb->netdev;
uint8_t *dmac = arp_get_hwaddr(iphdr->daddr);
int rc;
if (dmac) {
return netdev_transmit(skb, dmac, ETH... | Add ugly hack for waiting that ARP cache gets populated | Add ugly hack for waiting that ARP cache gets populated
We do not have a retransmission system implemented yet,
so let's sleep here for a while in order to get the ARP entry
if it is missing.
| C | mit | saminiir/level-ip,saminiir/level-ip |
813b100e98470a3dca5116895e37cadfae1e7c2d | util/cpp/db/util/Macros.h | util/cpp/db/util/Macros.h | /*
* Copyright (c) 2008 Digital Bazaar, Inc. All rights reserved.
*/
#ifndef db_util_Macros_H
#define db_util_Macros_H
/**
* Miscellaneous general use macros.
*/
/**
* Macro statement wrapper. Adapted from glib.
* Use:
* if(x) DB_STMT_START { ... } DB_STMT_END; else ...
*/
#define DB_STMT_START do
#define D... | /*
* Copyright (c) 2008 Digital Bazaar, Inc. All rights reserved.
*/
#ifndef db_util_Macros_H
#define db_util_Macros_H
/**
* Miscellaneous general use macros.
*/
/**
* Macro statement wrapper. Adapted from glib.
* Use:
* if(x) DB_STMT_START { ... } DB_STMT_END; else ...
*/
#define DB_STMT_START do
#define D... | Fix DB_STRINGIFY to indirectly convert arg to a string. | Fix DB_STRINGIFY to indirectly convert arg to a string.
| C | agpl-3.0 | digitalbazaar/monarch,digitalbazaar/monarch,digitalbazaar/monarch,digitalbazaar/monarch,digitalbazaar/monarch |
c888133119dece5f3a60a1f02a8a3c3916898206 | test/Sema/no-format-y2k-turnsoff-format.c | test/Sema/no-format-y2k-turnsoff-format.c | // RUN: %clang_cc1 -verify -fsyntax-only -Wformat -Wno-format-y2k
// rdar://9504680
void foo(const char *, ...) __attribute__((__format__ (__printf__, 1, 2)));
void bar(unsigned int a) {
foo("%s", a); // expected-warning {{format specifies type 'char *' but the argument has type 'unsigned int'}}
}
| // RUN: %clang_cc1 -verify -fsyntax-only -Wformat -Wno-format-y2k %s
// rdar://9504680
void foo(const char *, ...) __attribute__((__format__ (__printf__, 1, 2)));
void bar(unsigned int a) {
foo("%s", a); // expected-warning {{format specifies type 'char *' but the argument has type 'unsigned int'}}
}
| Make this test actually test something | Make this test actually test something
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@164677 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... |
7bdd3703e4012446a446b66580e66f4fa80db07e | lib/src/clacks-api/clacks.c | lib/src/clacks-api/clacks.c | #include "clacks_common.h"
#include "id_client.h"
#include "TraceMessage.pb-c.h"
#include "../transport-client/cl_transport_domsock_client.h"
#include <stdio.h>
#include "clacks.h"
/* API Back-End */
void _clacks_trace_string_id(char *str, char *id) {
int ret;
TraceMessage t_msg = TRACE_MESSAGE__INIT;
t_msg.ac... | #include "clacks_common.h"
#include "id_client.h"
#include "TraceMessage.pb-c.h"
#include "../transport-client/cl_transport_domsock_client.h"
#include <stdio.h>
#include "clacks.h"
/* API Back-End */
void _clacks_trace_string_id(char *str, char *id) {
int ret;
TraceMessage t_msg = TRACE_MESSAGE__INIT;
t_msg.ac... | Set the id for the trace message | Set the id for the trace message
| C | mit | jamessnee/clacks,jamessnee/clacks,jamessnee/clacks |
1d6e54c49babe1975a1b6285e8b7f039c04b3ab3 | muduo/base/Atomic.h | muduo/base/Atomic.h | #ifndef MUDUO_BASE_ATOMIC_H
#define MUDUO_BASE_ATOMIC_H
#include <boost/noncopyable.hpp>
namespace muduo
{
class AtomicInt64 : boost::noncopyable
{
public:
AtomicInt64()
: value_(0)
{
}
int64_t get()
{
return value_;
}
int64_t addAndGet(int64_t x)
{
value_ += x;
return value_;
}
... | #ifndef MUDUO_BASE_ATOMIC_H
#define MUDUO_BASE_ATOMIC_H
#include <boost/noncopyable.hpp>
namespace muduo
{
class AtomicInt64 : boost::noncopyable
{
public:
AtomicInt64()
: value_(0)
{
}
int64_t get()
{
return value_;
}
int64_t addAndGet(int64_t x)
{
return __sync_add_and_fetch(&value_,... | Implement atomic integer with gcc builtins. | Implement atomic integer with gcc builtins.
| C | bsd-3-clause | wangweihao/muduo,Cofyc/muduo,jxd134/muduo,shenhzou654321/muduo,floristt/muduo,floristt/muduo,SuperMXC/muduo,Cofyc/muduo,lvshiling/muduo,fc500110/muduo,danny200309/muduo,jerk1991/muduo,lizj3624/http-github.com-chenshuo-muduo-,jxd134/muduo,SourceInsight/muduo,zhuangshi23/muduo,SourceInsight/muduo,devsoulwolf/muduo,shenhz... |
8127f3a6e6c615856006842cee6df2e13c1ba852 | test/CFrontend/2007-06-18-SextAttrAggregate.c | test/CFrontend/2007-06-18-SextAttrAggregate.c | // RUN: %llvmgcc %s -o - -S -emit-llvm -O3 | grep {i8 signext}
// PR1513
struct s{
long a;
long b;
};
void f(struct s a, char *b, char C) {
}
| // RUN: %llvmgcc %s -o - -S -emit-llvm -O3 | grep {i8 signext}
// PR1513
struct s{
long a;
long b;
};
void f(struct s a, char *b, signed char C) {
}
| Make this explictly signed. Fixes PR1571. | Make this explictly signed. Fixes PR1571.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@40569 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,d... |
b89efa2cd07719696316128da95a2c56088141e1 | Core/DataStructures/mitkVideoSource.h | Core/DataStructures/mitkVideoSource.h | #ifndef _mitk_Video_Source_h_
#define _mitk_Video_Source_h_
#include "mitkCommon.h"
#include <itkObject.h>
#include "itkObjectFactory.h"
namespace mitk
{
/**
* Simple base class for acquiring video data.
*/
class VideoSource //: public itk::Object
{
public:
//mitkClassMacro( VideoSource, itk::Obj... | #ifndef _mitk_Video_Source_h_
#define _mitk_Video_Source_h_
#include "mitkCommon.h"
#include <itkObject.h>
#include "itkObjectFactory.h"
namespace mitk
{
/**
* Simple base class for acquiring video data.
*/
class VideoSource //: public itk::Object
{
public:
//mitkClassMacro( VideoSource, itk::Obj... | FIX warnings: newline at end of file | FIX warnings: newline at end of file
| C | bsd-3-clause | fmilano/mitk,danielknorr/MITK,lsanzdiaz/MITK-BiiG,danielknorr/MITK,nocnokneo/MITK,NifTK/MITK,fmilano/mitk,lsanzdiaz/MITK-BiiG,MITK/MITK,rfloca/MITK,danielknorr/MITK,iwegner/MITK,fmilano/mitk,lsanzdiaz/MITK-BiiG,iwegner/MITK,danielknorr/MITK,lsanzdiaz/MITK-BiiG,fmilano/mitk,MITK/MITK,fmilano/mitk,rfloca/MITK,fmilano/mit... |
e434cc2a4d7de10c15ecf18ba27be5819e247910 | include/llvm/Option/OptSpecifier.h | include/llvm/Option/OptSpecifier.h | //===--- OptSpecifier.h - Option Specifiers ---------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===--- OptSpecifier.h - Option Specifiers ---------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Add missing include, found by modules build. | Add missing include, found by modules build.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@207158 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,apple/swif... |
baa4007881f894ff8c0a04b71002d53f4fe9572a | kernel/x86/tests/lock.c | kernel/x86/tests/lock.c | #include <kernel/x86/lock.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
static volatile int counter;
static mutex_t lock;
void *do_thread(void *arg) {
int sign = (int)arg;
for(int i = 0; i < 100000; i++) {
wait_aquire(&lock);
counter += sign;
release(&lock);
}
return... | #include <kernel/arch/lock.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
static volatile int counter;
static mutex_t lock;
void *do_thread(void *arg) {
int sign = (int)arg;
for(int i = 0; i < 100000; i++) {
wait_aquire(&lock);
counter += sign;
release(&lock);
}
retur... | Fix bitrotted include in test | Fix bitrotted include in test
| C | isc | zenhack/zero,zenhack/zero,zenhack/zero |
84e98bde6e98ab033b63393efc2741e260a63253 | include/lldb/Host/PosixApi.h | include/lldb/Host/PosixApi.h | //===-- PosixApi.h ----------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- PosixApi.h ----------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Add a newline to the end of the file to remove the clang warnings. | Add a newline to the end of the file to remove the clang warnings.
git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@278188 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb |
0b7aa15019283753a620c908deea7bab4da1f94d | libcassandra/util/platform.h | libcassandra/util/platform.h | /*
* LibCassandra
* Copyright (C) 2010-2011 Padraig O'Sullivan, Ewen Cheslack-Postava
* All rights reserved.
*
* Use and distribution licensed under the BSD license. See
* the COPYING file in the parent directory for full text.
*/
#ifndef __LIBCASSANDRA_UTIL_PLATFORM_H
#define __LIBCASSANDRA_UTIL_PLATFORM_H
#i... | /*
* LibCassandra
* Copyright (C) 2010-2011 Padraig O'Sullivan, Ewen Cheslack-Postava
* All rights reserved.
*
* Use and distribution licensed under the BSD license. See
* the COPYING file in the parent directory for full text.
*/
#ifndef __LIBCASSANDRA_UTIL_PLATFORM_H
#define __LIBCASSANDRA_UTIL_PLATFORM_H
#i... | Disable boost's include_next functionality, fixes compatibility with Sirikata. | Disable boost's include_next functionality, fixes compatibility with Sirikata.
| C | bsd-3-clause | xiaozhou/libcassandra,xiaozhou/libcassandra,xiaozhou/libcassandra,xiaozhou/libcassandra |
3c409aa80a2d40b21277cdbddf879a376814e315 | src/config_traits.h | src/config_traits.h | #include <type_traits>
template<typename T>
struct is_config_type:std::integral_constant<bool,false>{};
template<> struct is_config_type <bool>: std::integral_constant<bool,true>{};
template<> struct is_config_type <int>: std::integral_constant<bool,true>{};
template<> struct is_config_t... | #include <type_traits>
template<typename T>
struct is_config_type: std::false_type{};
template<> struct is_config_type <bool>: std::true_type{};
template<> struct is_config_type <int>: std::true_type{};
template<> struct is_config_type <long>: std::true_type{};
template<> s... | Change integral_constant<bool> to true_type and false_type. | Change integral_constant<bool> to true_type and false_type.
| C | mit | actinium/cppConfig |
588dcc093d81a4acfac699195641dfa26571d2a1 | 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 95
#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 96
#endif
| Update Skia milestone to 96 | Update Skia milestone to 96
Change-Id: I635df8267340a9068b80a2e6c001958cfb2d10e4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/447578
Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
Reviewed-by: Eric Boren <0e499112533c8544f0505ea0d08394fb5ad7d8fa@google.com>
Auto-Submit:... | C | bsd-3-clause | google/skia,google/skia,aosp-mirror/platform_external_skia,google/skia,google/skia,google/skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,google/skia,aosp-mirror/pl... |
7d8b06f783652f8464b9985d07a0c9ba2ce4e202 | 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 66
#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 67
#endif
| Update Skia milestone to 67 | Update Skia milestone to 67
TBR: reed
Bug: skia:
Change-Id: I11a5515c41d5bb7ed95294fdb63668c35d14d960
Reviewed-on: https://skia-review.googlesource.com/111326
Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
| C | bsd-3-clause | google/skia,Hikari-no-Tenshi/android_external_skia,rubenvb/skia,HalCanary/skia-hc,google/skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,rubenvb/skia,aosp-mirror/platform_external_skia,google/skia,google/skia,Hikari-no-Tenshi/android_external_skia,google/skia,rubenvb/skia,HalCanary/skia-hc,google/skia,Hikari-n... |
1dfa8ad98b49171049e224a2fe2a33176c6bf779 | include/sigar_visibility.h | include/sigar_visibility.h | /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2013 Couchbase, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ht... | /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2013 Couchbase, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ht... | Remove support for Sun Studio compiler | Remove support for Sun Studio compiler
Change-Id: I7fb2ac0cd9942fad79eb874604dc48e02a0d01db
Reviewed-on: https://review.couchbase.org/c/sigar/+/166582
Tested-by: Build Bot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
Reviewed-by: Paolo Cocchi <9dd88c9f3e5cbab6e19a6c020f107e0c648ac956@couchbase.com>
| C | apache-2.0 | couchbase/sigar,couchbase/sigar |
4d3b0456778961c5a8af919a7c1fcf60a8658bf4 | kernel/kernel/resourceManager.c | kernel/kernel/resourceManager.c | #include "resourceManager.h"
#include "kernelHeap.h"
//allocates frames
MemoryResource *create_memoryResource(unsigned int size)
{
MemoryResource *memRes;
memRes = kmalloc(sizeof(MemoryResource));
return memRes;
} | #include "resourceManager.h"
#include "kernelHeap.h"
//allocates frames
MemoryResource *create_memoryResource(unsigned int size)
{
MemoryResource *memRes;
memRes = (MemoryResource*)kmalloc(sizeof(MemoryResource));
return memRes;
}
| Use type casts from void | Use type casts from void
| C | mit | povilasb/simple-os,povilasb/simple-os |
4c7c2cb4711297c1e5eefad723ab3b1db27d1614 | include/parrot/stacks.h | include/parrot/stacks.h | /* stacks.h
* Copyright: (When this is determined...it will go here)
* CVS Info
* $Id$
* Overview:
* Stack handling routines for Parrot
* Data Structure and Algorithms:
* History:
* Notes:
* References:
*/
#if !defined(PARROT_STACKS_H_GUARD)
#define PARROT_STACKS_H_GUARD
#include "parrot/parr... | /* stacks.h
* Copyright: (When this is determined...it will go here)
* CVS Info
* $Id$
* Overview:
* Stack handling routines for Parrot
* Data Structure and Algorithms:
* History:
* Notes:
* References:
*/
#if !defined(PARROT_STACKS_H_GUARD)
#define PARROT_STACKS_H_GUARD
#include "parrot/parr... | Fix typo in function name | Fix typo in function name
git-svn-id: 6e74a02f85675cec270f5d931b0f6998666294a3@255 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
| C | artistic-2.0 | ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot |
8d8fbf94c3fc783a1becafb9efa6db8f4d0985f1 | ext/mysql2/mysql2_ext.h | ext/mysql2/mysql2_ext.h | #ifndef MYSQL2_EXT
#define MYSQL2_EXT
void Init_mysql2(void);
/* tell rbx not to use it's caching compat layer
by doing this we're making a promise to RBX that
we'll never modify the pointers we get back from RSTRING_PTR */
#define RSTRING_NOT_MODIFIED
#include <ruby.h>
#ifdef HAVE_MYSQL_H
#include <mysql.h>
#... | #ifndef MYSQL2_EXT
#define MYSQL2_EXT
void Init_mysql2(void);
/* tell rbx not to use it's caching compat layer
by doing this we're making a promise to RBX that
we'll never modify the pointers we get back from RSTRING_PTR */
#define RSTRING_NOT_MODIFIED
#include <ruby.h>
#ifdef HAVE_MYSQL_H
#include <mysql.h>
#... | Include mysql_com.h has been here for ages but was superfluous | Include mysql_com.h has been here for ages but was superfluous
| C | mit | kamipo/mysql2,kamipo/mysql2,sodabrew/mysql2,sodabrew/mysql2,tamird/mysql2,jeremy/mysql2,brianmario/mysql2,jeremy/mysql2,bigcartel/mysql2,brianmario/mysql2,tamird/mysql2,jeremy/mysql2,kamipo/mysql2,brianmario/mysql2,kamipo/mysql2,tamird/mysql2,sodabrew/mysql2,bigcartel/mysql2,bigcartel/mysql2,tamird/mysql2,bigcartel/mys... |
89826f41bd5c96e6b13692d03d08049c912b9365 | cat.c | cat.c | #include "types.h"
#include "stat.h"
#include "user.h"
char buf[512];
void
cat(int fd)
{
int n;
while((n = read(fd, buf, sizeof(buf))) > 0)
write(1, buf, n);
if(n < 0){
printf(1, "cat: read error\n");
exit();
}
}
int
main(int argc, char *argv[])
{
int fd, i;
if(argc <= 1){
cat(0);
e... | #include "types.h"
#include "stat.h"
#include "user.h"
char buf[512];
void
cat(int fd)
{
int n;
while((n = read(fd, buf, sizeof(buf))) > 0) {
if (write(1, buf, n) != n) {
printf(1, "cat: write error\n");
exit();
}
}
if(n < 0){
printf(1, "cat: read error\n");
exit();
}
}
int
mai... | Check result of write (thans to Alexander Kapshuk <alexander.kapshuk@gmail) | Check result of write (thans to Alexander Kapshuk <alexander.kapshuk@gmail)
| C | mit | shyandsy/xv6,shyandsy/xv6,shyandsy/xv6,ManaPoustizadeh/OS-finalProject,shyandsy/xv6,ManaPoustizadeh/OS-finalProject,gw/xv6,phf/xv6-public,voytovichs/xv6-public,voytovichs/xv6-public,ManaPoustizadeh/OS-finalProject,voytovichs/xv6-public,gw/xv6,phf/xv6-public,voytovichs/xv6-public,voytovichs/xv6-public,phf/xv6-public,phf... |
84fa2ddd969525d8d92329bda9e9b9457ebc3ddd | mach.c | mach.c | #define WORD (8 * sizeof(ulong))
#define clz(x) __builtin_clzl(x)
#define fls(x) (WORD - clz(x))
#define ffs(x) (__builtin_ctzl(x))
#define get(x, i) ((x) & (1 << (i)))
#define set(x, i) (x = (x) | (1 << (i)))
#define unset(x, i) (x = (x) & ~(1 << (i)))
| #define WORD (8 * sizeof(ulong))
#define clz(x) __builtin_clzl(x)
#define fls(x) (WORD - clz(x))
#define ffs(x) (__builtin_ctzl(x))
#define get(x, i) ((x) & (1L << (i)))
#define set(x, i) (x = (x) | (1L << (i)))
#define unset(x, i) (x = (x) & ~(1L << (i)))
| Fix to literal data types in the macros | Fix to literal data types in the macros
Thanks for Fu, Bing for noting.
| C | mit | coriolanus/libhhash |
8c6b30c2bdbdca9d78fcd7a4cde15e5aa6802029 | safe.h | safe.h | #ifndef SAFE_H
#define SAFE_H
#include "debug.h"
#ifndef DISABLE_SAFE
#define SAFE_STRINGIFY(x) #x
#define SAFE_TOSTRING(x) SAFE_STRINGIFY(x)
#define SAFE_AT __FILE__ ":" SAFE_TOSTRING(__LINE__) ": "
#define SAFE_ASSERT(cond) do { \
if (!(cond)) { \
DEBUG_DUMP(0, "error: " SAFE_AT "%m"); \
DEBUG_BREAK(!(c... | #ifndef SAFE_H
#define SAFE_H
#include "debug.h"
#ifndef DISABLE_SAFE
#define SAFE_STRINGIFY(x) #x
#define SAFE_TOSTRING(x) SAFE_STRINGIFY(x)
#define SAFE_AT __FILE__ ":" SAFE_TOSTRING(__LINE__) ": "
#define SAFE_ASSERT(cond) do { \
if (!(cond)) { \
DEBUG_DUMP(0, "error: " SAFE_AT "%m"); \
DEBUG_BREAK(!(c... | Add SAFE_RZCALL to wrap calls that returns zero. | Add SAFE_RZCALL to wrap calls that returns zero.
| C | mit | chaoran/fibril,chaoran/fibril,chaoran/fibril |
cccd3fafcffa318fa783f857f84b5545028daca2 | src/pubkey/if_algo/if_op.h | src/pubkey/if_algo/if_op.h | /*************************************************
* IF Operations Header File *
* (C) 1999-2008 Jack Lloyd *
*************************************************/
#ifndef BOTAN_IF_OP_H__
#define BOTAN_IF_OP_H__
#include <botan/bigint.h>
#include <botan/pow_mod.h>
#include <bot... | /*************************************************
* IF Operations Header File *
* (C) 1999-2008 Jack Lloyd *
*************************************************/
#ifndef BOTAN_IF_OP_H__
#define BOTAN_IF_OP_H__
#include <botan/bigint.h>
#include <botan/pow_mod.h>
#include <bot... | Add BOTAN_DLL macro to Default_IF_Op | Add BOTAN_DLL macro to Default_IF_Op
| C | bsd-2-clause | randombit/botan,webmaster128/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,webmaster128/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/b... |
e2090ddb0dcd238d265538f9217f24b3780033e8 | src/search/psdd/projection.h | src/search/psdd/projection.h | /* -*- mode:linux -*- */
/**
* \file projection.h
*
*
*
* \author Ethan Burns
* \date 2008-10-15
*/
#if !defined(_PROJECTION_H_)
#define _PROJECTION_H_
#include <vector>
#include "../state.h"
using namespace std;
/**
* An abstract projection function class.
*/
class Projection {
public:
virtual ~Projecti... | /* -*- mode:linux -*- */
/**
* \file projection.h
*
*
*
* \author Ethan Burns
* \date 2008-10-15
*/
#if !defined(_PROJECTION_H_)
#define _PROJECTION_H_
#include <vector>
#include "../state.h"
using namespace std;
/**
* An abstract projection function class.
*/
class Projection {
public:
virtual ~Projecti... | Remove the last reminints of NBlocks from Projection. | Remove the last reminints of NBlocks from Projection.
| C | mit | eaburns/pbnf,eaburns/pbnf,eaburns/pbnf,eaburns/pbnf |
cb32da0416b823b7f4b65e7e85d6cba16ca4d1e1 | include/linux/slob_def.h | include/linux/slob_def.h | #ifndef __LINUX_SLOB_DEF_H
#define __LINUX_SLOB_DEF_H
void *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node);
static inline void *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags)
{
return kmem_cache_alloc_node(cachep, flags, -1);
}
void *__kmalloc_node(size_t size, gfp_t flags, int node);
... | #ifndef __LINUX_SLOB_DEF_H
#define __LINUX_SLOB_DEF_H
void *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node);
static inline void *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags)
{
return kmem_cache_alloc_node(cachep, flags, -1);
}
void *__kmalloc_node(size_t size, gfp_t flags, int node);
... | Kill off duplicate kzalloc() definition. | slob: Kill off duplicate kzalloc() definition.
With the slab zeroing allocations cleanups Christoph stubbed in a generic
kzalloc(), which was missed on SLOB. Follow the SLAB/SLUB changes and
kill off the __kzalloc() wrapper that SLOB was using.
Reported-by: Jan Engelhardt <f383ed465f890d2e8ea864dd0c28cf8ec50a8942@com... | C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Program... |
b670133b9e9fd7bce078674d782dad9d7c320f9d | test/Analysis/array-struct.c | test/Analysis/array-struct.c | // RUN: clang -checker-simple -verify %s &&
// RUN: clang -checker-simple -analyzer-store-region -verify %s
struct s {
int data;
int data_array[10];
};
typedef struct {
int data;
} STYPE;
void g1(struct s* p);
void f(void) {
int a[10];
int (*p)[10];
p = &a;
(*p)[3] = 1;
struct s d;
struct s *q;... | // RUN: clang -checker-simple -verify %s &&
// RUN: clang -checker-simple -analyzer-store-region -verify %s
struct s {
int data;
int data_array[10];
};
typedef struct {
int data;
} STYPE;
void g1(struct s* p);
void f(void) {
int a[10];
int (*p)[10];
p = &a;
(*p)[3] = 1;
struct s d;
struct s *q;... | Add a test case for alloca(). | Add a test case for alloca().
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@59233 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... |
54993a9f4ebc279f5dac6754e61f2c6ea98dbb65 | src/bin/test_carousel.c | src/bin/test_carousel.c | #include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#endif
#ifndef ELM_LIB_QUICKLAUNCH
void
test_carousel(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg;
win = elm_win_add(NULL, "carousel", ELM_WIN_BASIC);
elm_win_title_set(win... | #include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#endif
#ifndef ELM_LIB_QUICKLAUNCH
void
test_carousel(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *car;
win = elm_win_add(NULL, "carousel", ELM_WIN_BASIC);
elm_win_title_s... | Add carousel to carousel test =P | Add carousel to carousel test =P
But it's not working anyway.
SVN revision: 53684
| C | lgpl-2.1 | rvandegrift/elementary,rvandegrift/elementary,FlorentRevest/Elementary,rvandegrift/elementary,tasn/elementary,tasn/elementary,FlorentRevest/Elementary,FlorentRevest/Elementary,tasn/elementary,rvandegrift/elementary,tasn/elementary,FlorentRevest/Elementary,tasn/elementary |
8316f8d582c9a13bf1ebba93fe66d85a61430692 | test/profile/infinite_loop.c | test/profile/infinite_loop.c | // RUN: %clang_pgogen -O2 -o %t %s
// RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t
// RUN: llvm-profdata show -function main -counts %t.profraw| FileCheck %s
void exit(int);
int g;
__attribute__((noinline)) void foo()
{
g++;
if (g==1000)
exit(0);
}
int main()
{
while (1) {
foo();
}
}
// CHECK:... | // RUN: %clang_pgogen -O2 -o %t %s
// RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t
// RUN: llvm-profdata show -function main -counts %t.profraw| FileCheck %s
void exit(int);
int g;
__attribute__((noinline)) void foo()
{
g++;
if (g==1000)
exit(0);
}
int main()
{
while (1) {
foo();
}
}
// CHECK:... | Test case update for D40873 | Test case update for D40873
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@320105 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 |
e1986201336c472fe94095486457c431f1e6bd9f | tests/end_to_end_tests_remote.h | tests/end_to_end_tests_remote.h | #ifndef end_to_end_tests_remote_h_incl
#define end_to_end_tests_remote_h_incl
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
#include "end_to_end_tests_base.h"
class EndToEndTestsRemote : public EndToEndTestsBase {
static bool is_receiver;
CPPUNIT_TEST_SUITE(EndToEndTestsRemo... | #ifndef end_to_end_tests_remote_h_incl
#define end_to_end_tests_remote_h_incl
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
#include "end_to_end_tests_base.h"
class EndToEndTestsRemote : public EndToEndTestsBase {
static bool is_receiver;
CPPUNIT_TEST_SUITE(EndToEndTestsRemo... | Add the thunk test to the suite. | Add the thunk test to the suite.
git-svn-id: 30f60abd488961f3df74c65f80d9d7b5813a1a78@653 1971e5c1-a347-0410-b49b-82492f0cf60c
| C | bsd-2-clause | brettdh/libcmm,brettdh/libcmm,brettdh/libcmm,brettdh/libcmm,brettdh/libcmm |
13f6248da3578c67dc472fb38e1abc621fc6f2ae | src/untrusted/nacl/pthread_initialize_minimal.c | src/untrusted/nacl/pthread_initialize_minimal.c | /*
* Copyright (c) 2012 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <unistd.h>
#include "native_client/src/untrusted/nacl/nacl_irt.h"
#include "native_client/src/untrusted/nacl/nacl_thread.h"
#inc... | /*
* Copyright (c) 2012 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <unistd.h>
#include "native_client/src/untrusted/nacl/nacl_irt.h"
#include "native_client/src/untrusted/nacl/nacl_thread.h"
#inc... | Remove unnecessary rounding when allocating initial thread block | Cleanup: Remove unnecessary rounding when allocating initial thread block
The other calls to __nacl_tls_combined_size() don't do this.
__nacl_tls_combined_size() should be doing any necessary rounding itself.
BUG=none
TEST=trybots
Review URL: https://codereview.chromium.org/18555008
git-svn-id: 721b910a23eff8a86f0... | C | bsd-3-clause | Lind-Project/native_client,Lind-Project/native_client,Lind-Project/native_client,Lind-Project/native_client,Lind-Project/native_client,Lind-Project/native_client |
715d1d7ea657172072bd95f436b7fc6290b97b92 | KristalliProtocolModule/KristalliProtocolModuleApi.h | KristalliProtocolModule/KristalliProtocolModuleApi.h | // For conditions of distribution and use, see copyright notice in license.txt
#ifndef incl_KristalliProtocolModuleApi_h
#define incl_KristalliProtocolModuleApi_h
#if defined (_WINDOWS)
#if defined(KRISTALLIPROTOCOL_MODULE_EXPORTS)
#define KRISTALLIPROTOCOL_MODULE_API __declspec(dllexport)
#else
#define KRISTALLIPRO... | // For conditions of distribution and use, see copyright notice in license.txt
#ifndef incl_KristalliProtocolModuleApi_h
#define incl_KristalliProtocolModuleApi_h
#if defined (_WINDOWS)
#if defined(KRISTALLIPROTOCOL_MODULE_EXPORTS)
#define KRISTALLIPROTOCOL_MODULE_API __declspec(dllexport)
#else
#define KRISTALLIPRO... | Fix syntax error for linux build. | Fix syntax error for linux build.
| C | apache-2.0 | realXtend/tundra,antont/tundra,antont/tundra,BogusCurry/tundra,antont/tundra,jesterKing/naali,BogusCurry/tundra,AlphaStaxLLC/tundra,pharos3d/tundra,AlphaStaxLLC/tundra,AlphaStaxLLC/tundra,antont/tundra,antont/tundra,realXtend/tundra,AlphaStaxLLC/tundra,pharos3d/tundra,antont/tundra,realXtend/tundra,AlphaStaxLLC/tundra,... |
695dbab30302266c3edf137895eb0627d7188d8d | chrome/browser/chromeos/cros/mock_update_library.h | chrome/browser/chromeos/cros/mock_update_library.h | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_CHROMEOS_CROS_MOCK_UPDATE_LIBRARY_H_
#define CHROME_BROWSER_CHROMEOS_CROS_MOCK_UPDATE_LIBRARY_H_
#pragma once
#include "base/o... | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_CHROMEOS_CROS_MOCK_UPDATE_LIBRARY_H_
#define CHROME_BROWSER_CHROMEOS_CROS_MOCK_UPDATE_LIBRARY_H_
#pragma once
#include "base/o... | Fix the Chrome OS build. | Fix the Chrome OS build.
TEST=make -j40 BUILDTYPE=Release browser_tests
BUG=chromium-os:6030
Review URL: http://codereview.chromium.org/4129006
git-svn-id: http://src.chromium.org/svn/trunk/src@64027 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Former-commit-id: 21f711df9e9164d849fc0c637465577383f0b1c0 | 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... |
2f3b7e4c88b3634d077f158d8a90553981b8c0a7 | include/pector/malloc_allocator_compat.h | include/pector/malloc_allocator_compat.h | #ifndef PECTOR_MALLOC_ALLOCATOR_COMPAT_H
#define PECTOR_MALLOC_ALLOCATOR_COMPAT_H
#ifdef __APPLE__
#include <malloc/malloc.h>
#else
#include <malloc.h>
#endif
#if defined __GNUC__ || defined _WIN32 || defined __APPLE__ || defined __FreeBSD__
#define PT_SIZE_AWARE_COMPAT
#if defined _WIN32
#define PT_MALLOC_USABLE_S... | #ifndef PECTOR_MALLOC_ALLOCATOR_COMPAT_H
#define PECTOR_MALLOC_ALLOCATOR_COMPAT_H
#ifdef __APPLE__
#include <malloc/malloc.h>
#else
#include <malloc.h>
#endif
#if defined __linux__ || defined __gnu_hurd__ || defined _WIN32 || defined __APPLE__ || defined __FreeBSD__
#define PT_SIZE_AWARE_COMPAT
#if defined _WIN32
#... | Change malloc_usable_size for Linux with the __linux__ macro | Change malloc_usable_size for Linux with the __linux__ macro
Suggested by Carter Li.
Also add check for GNU/Hurd.
| C | lgpl-2.1 | pjump/pector,aguinet/pector,aguinet/pector,pjump/pector |
c9454b616a60f0d476333b655458c81830562f9a | util.h | util.h | /*
This file is part of ethash.
ethash 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 3 of the License, or
(at your option) any later version.
ethash is distributed in the hope that i... | /*
This file is part of ethash.
ethash 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 3 of the License, or
(at your option) any later version.
ethash is distributed in the hope that i... | Add comment about stack probing and remove unused ifdefs | Add comment about stack probing and remove unused ifdefs
| C | mit | PaulGrey30/go-get--u-github.com-tools-godep,LefterisJP/cpp-ethereum,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,d-das/cpp-ethereum,joeldo/cpp-ethereum,xeddmc/cpp-ethereum,expanse-org/cpp-expanse,eco/cpp-ethereum,yann300/cpp-ethereum,gluk256/cpp-ethereum,expanse-project/cpp-expanse,karek314/cpp-ethereu... |
8377ed36990acb2eae2b1a4775f00688ab4490ea | tests/performance.c | tests/performance.c | int test_performance() {
asic_t *device = asic_init(TI83p);
struct timespec start, stop;
unsigned long long t;
int i;
clock_gettime(CLOCK_MONOTONIC_RAW, &start);
for (i = 0; i < 1000000; i++) {
i -= cpu_execute(device->cpu, 1);
}
clock_gettime(CLOCK_MONOTONIC_RAW, &stop);
t ... | int test_performance() {
asic_t *device = asic_init(TI83p);
clock_t start, stop;
int i;
start = clock();
for (i = 0; i < 1000000; i++) {
i -= cpu_execute(device->cpu, 1);
}
stop = clock();
double time = (double)(stop - start) / (CLOCKS_PER_SEC / 1000);
double mHz = 1000.0 / ... | Switch to more common timing functions | Switch to more common timing functions
| C | mit | KnightOS/z80e,KnightOS/z80e |
8634605ecfa7cb7b339b066e57348ef7f4801e32 | lib/CodeGen/SanitizerBlacklist.h | lib/CodeGen/SanitizerBlacklist.h | //===--- SanitizerBlacklist.h - Blacklist for sanitizers --------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===--- SanitizerBlacklist.h - Blacklist for sanitizers --------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix for LLVM API change to SpecialCaseList::create | Fix for LLVM API change to SpecialCaseList::create
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@216926 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... |
8eb990df360a6eaac3a6bfe3bcb22636d99edc0b | gspell/gspell-init.h | gspell/gspell-init.h | /*
* This file is part of gspell, a spell-checking library.
*
* Copyright 2016 - Ignacio Casal Quinteiro <icq@gnome.org>
* Copyright 2016 - Sébastien Wilmet <swilmet@gnome.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Licens... | /*
* This file is part of gspell, a spell-checking library.
*
* Copyright 2016 - Ignacio Casal Quinteiro <icq@gnome.org>
* Copyright 2016 - Sébastien Wilmet <swilmet@gnome.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Licens... | Revert "win32: include windef.h instead of windows.h" | Revert "win32: include windef.h instead of windows.h"
This reverts commit 7a51b17a061cb4e83c5d0e862cb1c4c32c7033e7.
This was actually good, normally. See the discussion at:
https://bugzilla.gnome.org/show_bug.cgi?id=774325
Not tested, I don't test gspell on/for Windows.
| C | lgpl-2.1 | GNOME/gspell,GNOME/gspell |
0f993209fdd1e8bed4e9fd3d9ba758416b39eaa8 | src/plugins/orbbec_hand/TrackedPoint.h | src/plugins/orbbec_hand/TrackedPoint.h | #ifndef TRACKEDPOINT_H
#define TRACKEDPOINT_H
#include <opencv2/core/affine.hpp>
#include "TrackingData.h"
namespace sensekit { namespace plugins { namespace hand {
struct TrackedPoint
{
public:
cv::Point m_position;
cv::Point3f m_worldPosition;
cv::Point3f m_steadyWorldPosition;
... | #ifndef TRACKEDPOINT_H
#define TRACKEDPOINT_H
#include <opencv2/core/affine.hpp>
#include "TrackingData.h"
namespace sensekit { namespace plugins { namespace hand {
struct TrackedPoint
{
public:
cv::Point m_position;
cv::Point3f m_worldPosition;
cv::Point3f m_worldDeltaPosition;
... | Remove old tracked point fields | Remove old tracked point fields
| C | apache-2.0 | orbbec/astra,orbbec/astra,orbbec/astra,orbbec/astra,orbbec/astra |
2822ae02ece582706720ef387c37eee8c245a8f6 | lib/c_impl/n_speech_trimmer.c | lib/c_impl/n_speech_trimmer.c | #include "noyes.h"
#undef TRUE
#define TRUE 1
#undef FALSE
#define FALSE 0
SpeechTrimmer * new_speech_trimmer() {
SpeechTrimmer *self = malloc(sizeof(SpeechTrimmer));
self->leader = 5;
self->trailer = 5;
self->speech_started = FALSE;
self->bcm = new_bent_cent_marker();
self->false_count = 0;
self->true_c... | #include "noyes.h"
#undef TRUE
#define TRUE 1
#undef FALSE
#define FALSE 0
SpeechTrimmer * new_speech_trimmer() {
SpeechTrimmer *self = malloc(sizeof(SpeechTrimmer));
self->leader = 5;
self->trailer = 5;
self->speech_started = FALSE;
self->bcm = new_bent_cent_marker();
self->false_count = 0;
self->true_c... | Fix memory error due to missing return statement in speech trimmer constructor. | Fix memory error due to missing return statement in speech trimmer constructor.
| C | bsd-2-clause | talkhouse/noyes,talkhouse/noyes,talkhouse/noyes |
25c52209c37546ae811c6653fd725a192c58c602 | components/password_manager/core/browser/browser_save_password_progress_logger.h | components/password_manager/core/browser/browser_save_password_progress_logger.h | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_BROWSER_SAVE_PASSWORD_PROGRESS_LOGGER_H_
#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_BROWSER_SAVE_PA... | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_BROWSER_SAVE_PASSWORD_PROGRESS_LOGGER_H_
#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_BROWSER_SAVE_PA... | Revert 262696 "Revert 262685 "Fix a forward declaration of Passw..." | Revert 262696 "Revert 262685 "Fix a forward declaration of Passw..."
> Revert 262685 "Fix a forward declaration of PasswordManagerClient"
>
> Compile still fails:
> http://build.chromium.org/p/chromium.linux/buildstatus?builder=Linux%20GTK%20Builder&number=2681
> ../../chrome/browser/ui/gtk/login_prompt_gtk.cc:70:7:e... | C | bsd-3-clause | dednal/chromium.src,axinging/chromium-crosswalk,Just-D/chromium-1,Pluto-tv/chromium-crosswalk,dushu1203/chromium.src,ltilve/chromium,bright-sparks/chromium-spacewalk,Fireblend/chromium-crosswalk,axinging/chromium-crosswalk,fujunwei/chromium-crosswalk,dushu1203/chromium.src,M4sse/chromium.src,dushu1203/chromium.src,Fire... |
404504635570833ffec7857cfa28e055b276b521 | optional/capi/ext/proc_spec.c | optional/capi/ext/proc_spec.c | #include <string.h>
#include "ruby.h"
#include "rubyspec.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef HAVE_RB_PROC_NEW
VALUE concat_func(VALUE args) {
int i;
char buffer[500] = {0};
if (TYPE(args) != T_ARRAY) return Qnil;
for(i = 0; i < RARRAY_LEN(args); ++i) {
VALUE v = RARRAY_PTR(args)[i];
strc... | #include <string.h>
#include "ruby.h"
#include "rubyspec.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef HAVE_RB_PROC_NEW
VALUE concat_func(VALUE args) {
int i;
char buffer[500] = {0};
if (TYPE(val) != T_ARRAY) return Qnil;
for(i = 0; i < RARRAY_LEN(args); ++i) {
VALUE v = RARRAY_PTR(args)[i];
strca... | Revert "Fix typo in the commit a5312c77." | Revert "Fix typo in the commit a5312c77."
This reverts commit 401825d6045ab8e3bd1514404e7c326a045a92ae.
See the following revert for an explanation.
| C | mit | godfat/rubyspec,chesterbr/rubyspec,kachick/rubyspec,iainbeeston/rubyspec,yous/rubyspec,sferik/rubyspec,flavio/rubyspec,markburns/rubyspec,scooter-dangle/rubyspec,benlovell/rubyspec,lucaspinto/rubyspec,ruby/rubyspec,Zoxc/rubyspec,metadave/rubyspec,saturnflyer/rubyspec,eregon/rubyspec,alex/rubyspec,Aesthetikx/rubyspec,Ju... |
8e4c186215c3d086a734dc0aec7f119b8a88c0a9 | ui/views/widget/desktop_capture_client.h | ui/views/widget/desktop_capture_client.h | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_VIEWS_WIDGET_DESKTOP_CAPTURE_CLIENT_H_
#define UI_VIEWS_WIDGET_DESKTOP_CAPTURE_CLIENT_H_
#include "base/basictypes.h"
#include "base/compi... | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_VIEWS_WIDGET_DESKTOP_CAPTURE_CLIENT_H_
#define UI_VIEWS_WIDGET_DESKTOP_CAPTURE_CLIENT_H_
#include "base/basictypes.h"
#include "base/compi... | Revert 155836 - Fix static build. | Revert 155836 - Fix static build.
TBR=ben@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10918157
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@155841 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | anirudhSK/chromium,Jonekee/chromium.src,mogoweb/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,crosswalk-project/chromium-crosswalk-efl,chuan9/chromium-crosswalk,ltilve/chromium,hujiajie/pa-chromium,axinging/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,ltilve/chromium,nacl-webkit/chrome_deps,bright-sp... |
8c274b950988b1bb4e56ce734f4817dc4788ecaa | lib/tinynotify-cli.c | lib/tinynotify-cli.c | /* libtinynotify
* (c) 2011 Michał Górny
* 2-clause BSD-licensed
*/
#include "config.h"
#include "tinynotify-cli.h"
#include "tinynotify.h"
#include <stdlib.h>
#include <unistd.h>
#include <getopt.h>
Notification notification_new_from_cmdline(int argc, char *argv[]) {
int opterr_backup = opterr;
int arg;
cons... | /* libtinynotify
* (c) 2011 Michał Górny
* 2-clause BSD-licensed
*/
#include "config.h"
#include "tinynotify.h"
#include "tinynotify-cli.h"
#include <stdlib.h>
#include <unistd.h>
#include <getopt.h>
Notification notification_new_from_cmdline(int argc, char *argv[]) {
int opterr_backup = opterr;
int arg;
cons... | Switch header order to ensure local gets used before system one. | Switch header order to ensure local gets used before system one.
| C | bsd-2-clause | mortbauer/tinynotify-send,mortbauer/libtinynotify |
3c219200ac98dc367dcfbbf027efab4f3a3b1475 | quic/platform/api/quic_test.h | quic/platform/api/quic_test.h | // Copyright (c) 2017 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 QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_
#define QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_
#include "quic/platform/api/quic_logging.h"
#include "net... | // Copyright (c) 2017 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 QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_
#define QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_
#include "quic/platform/api/quic_logging.h"
#include "net... | Move EXPECT_EQ macro magic from quic/platform to quiche/platform. | Move EXPECT_EQ macro magic from quic/platform to quiche/platform.
The purpose of this machinary is to override EXPECT_EQ and similar comparison
macros so that -Wsigned-compare actually catches signed-unsigned comparison in
internal builds (where gTest implementation is slightly different so otherwise
the warning would... | C | bsd-3-clause | google/quiche,google/quiche,google/quiche,google/quiche |
ec11df6a1272f275bbda22375ee8a84c034e09b4 | modules/modinclude.h | modules/modinclude.h | #include "../main.h"
class ConfigReader;
class ModuleInterface; // forward-declare so it can be used in modules and server
#include "../connection.h" // declare other classes that use it
#include "../modules.h"
#include "../config.cpp"
#include "../modinterface.cpp" | #include "../main.h"
class ConfigReader;
class ModuleInterface; // forward-declare so it can be used in modules and server
#include "../connection.h" // declare other classes that use it
#include "../modules.h"
#include "../config.cpp"
#include "../modules.cpp"
#include "../modinterface.cpp" | Add a file to the module include. | Add a file to the module include.
| C | mit | ElementalAlchemist/RoBoBo,ElementalAlchemist/RoBoBo |
addd55dcf27bda9e3f6cfe4301c067276fa67161 | plugins/ua_debug_dump_pkgs.c | plugins/ua_debug_dump_pkgs.c | /* This work is licensed under a Creative Commons CCZero 1.0 Universal License.
* See http://creativecommons.org/publicdomain/zero/1.0/ for more information. */
#include "ua_util.h"
#include <ctype.h>
#include <stdio.h>
void UA_dump_hex_pkg(UA_Byte* buffer, size_t bufferLen) {
printf("--------------- HEX Package... | /* This work is licensed under a Creative Commons CCZero 1.0 Universal License.
* See http://creativecommons.org/publicdomain/zero/1.0/ for more information. */
#include "ua_util.h"
#include <ctype.h>
#include <stdio.h>
void UA_dump_hex_pkg(UA_Byte* buffer, size_t bufferLen) {
printf("--------------- HEX Package... | Align format with `hexdump -C` | Align format with `hexdump -C`
| C | mpl-2.0 | JGrothoff/open62541,open62541/open62541,JGrothoff/open62541,JGrothoff/open62541,jpfr/open62541,jpfr/open62541,open62541/open62541,open62541/open62541,StalderT/open62541,jpfr/open62541,JGrothoff/open62541,StalderT/open62541,StalderT/open62541,StalderT/open62541,open62541/open62541,jpfr/open62541 |
f412fab9497a47ca77eece623fe53927302948c0 | TWTValidation/TWTValidationLocalization.h | TWTValidation/TWTValidationLocalization.h | //
// TWTValidationLocalization.h
// TWTValidation
//
// Created by Prachi Gauriar on 4/3/2014.
// Copyright (c) 2014 Two Toasters, LLC. All rights reserved.
//
#define TWTLocalizedString(key) \
[[NSBundle bundleForClass:[self class]] localizedStringForKey:(key) value:@"" table:@"TWTValidation"]
| //
// TWTValidationLocalization.h
// TWTValidation
//
// Created by Prachi Gauriar on 4/3/2014.
// Copyright (c) 2014 Two Toasters, LLC.
//
// 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 So... | Add license to localization header | Add license to localization header
| C | mit | twotoasters/TWTValidation,twotoasters/TWTValidation,twotoasters/TWTValidation |
895dedeb2104e08ae4256d6f8f862798cb4d92f0 | chrome/browser/ui/panels/panel_browser_window_gtk.h | chrome/browser/ui/panels/panel_browser_window_gtk.h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_
#define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_
#include "chrome/browser/ui... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_
#define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_
#include "chrome/browser/ui... | Revert 88154 - Use scoped_ptr for Panel in PanelBrowserWindowGTK. Reason: PanelBrowserWindow dtor is now complex and cannot be inlined. | Revert 88154 - Use scoped_ptr for Panel in PanelBrowserWindowGTK.
Reason: PanelBrowserWindow dtor is now complex and cannot be inlined.
BUG=None
TEST=Verified WindowOpenPanel test now hits Panel destructor.
Review URL: http://codereview.chromium.org/7120011
TBR=jennb@chromium.org
Review URL: http://codereview.chromi... | C | bsd-3-clause | nacl-webkit/chrome_deps,mohamed--abdel-maksoud/chromium.src,littlstar/chromium.src,axinging/chromium-crosswalk,hujiajie/pa-chromium,dushu1203/chromium.src,Pluto-tv/chromium-crosswalk,axinging/chromium-crosswalk,markYoungH/chromium.src,hujiajie/pa-chromium,zcbenz/cefode-chromium,mohamed--abdel-maksoud/chromium.src,nacl-... |
b07ec29109a2ca1603d3a4c199132f4c510ef763 | third_party/lua-5.2.3/src/floating_temple.c | third_party/lua-5.2.3/src/floating_temple.c | /*
** Hook functions for integration with the Floating Temple distributed
** interpreter
*/
#include <stddef.h>
#define floating_temple_c
#define LUA_CORE
#include "lua.h"
#include "floating_temple.h"
#include "lobject.h"
#include "luaconf.h"
static int ft_defaultnewstringhook (lua_State *L, StkId obj, const ch... | /*
** Hook functions for integration with the Floating Temple distributed
** interpreter
*/
#include <stddef.h>
#define floating_temple_c
#define LUA_CORE
#include "lua.h"
#include "floating_temple.h"
#include "lobject.h"
#include "luaconf.h"
#define FT_DEFINE_HOOK_FUNC(install_func, hook_type, hook_var, hook_p... | Add the definition of the default hook function to the FT_DEFINE_HOOK_FUNCTION macro. | Add the definition of the default hook function to the FT_DEFINE_HOOK_FUNCTION macro.
| C | apache-2.0 | snyderek/floating_temple,snyderek/floating_temple,snyderek/floating_temple |
72f86cdd70ccbe468222911d421f064981d34746 | 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: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@81368 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
| C | bsd-3-clause | wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser |
0dd1f0b32359949a948c557a2c20f5f735e00c3a | generic/include/clc/float/definitions.h | generic/include/clc/float/definitions.h | #define FLT_DIG 6
#define FLT_MANT_DIG 24
#define FLT_MAX_10_EXP +38
#define FLT_MAX_EXP +128
#define FLT_MIN_10_EXP -37
#define FLT_MIN_EXP -125
#define FLT_RADIX 2
#define FLT_MAX 0x1.fffffep127f
#define FLT_MIN 0x1.0p-126f
#define FLT_EPSILON 0x1.0p-23f
#ifdef cl_khr_fp64
#define DBL_DIG 15
#define DBL_... | #define FLT_DIG 6
#define FLT_MANT_DIG 24
#define FLT_MAX_10_EXP +38
#define FLT_MAX_EXP +128
#define FLT_MIN_10_EXP -37
#define FLT_MIN_EXP -125
#define FLT_RADIX 2
#define FLT_MAX 0x1.fffffep127f
#define FLT_MIN 0x1.0p-126f
#define FLT_EPSILON 0x1.0p-23f
#define M_PI_F 0x1.921fb6p+1
#ifdef cl_khr_fp64
#d... | Add definition for M_PI_F v3 | Add definition for M_PI_F v3
v2:
- Use a hexadecimal constant.
v3:
- Use a hexadecimal constant in floating-point notation.
git-svn-id: e7f1ab7c2a259259587475a3e7520e757882f167@204666 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/libclc,llvm-mirror/libclc,llvm-mirror/libclc,llvm-mirror/libclc,llvm-mirror/libclc,llvm-mirror/libclc,llvm-mirror/libclc |
f90fc43d4d7518e454793a5bb6b6a882e7e01d9a | test/Driver/offloading-interoperability.c | test/Driver/offloading-interoperability.c | // REQUIRES: clang-driver
// REQUIRES: powerpc-registered-target
// REQUIRES: nvptx-registered-target
//
// Verify that CUDA device commands do not get OpenMP flags.
//
// RUN: %clang -### -x cuda -target powerpc64le-linux-gnu -std=c++11 --cuda-gpu-arch=sm_35 -fopenmp %s 2>&1 \
// RUN: | FileCheck %s --check-prefix NO... | // REQUIRES: clang-driver
// REQUIRES: powerpc-registered-target
// REQUIRES: nvptx-registered-target
//
// Verify that CUDA device commands do not get OpenMP flags.
//
// RUN: %clang -### -x cuda -target powerpc64le-linux-gnu -std=c++11 --cuda-gpu-arch=sm_35 -fopenmp=libomp %s 2>&1 \
// RUN: | FileCheck %s --check-pr... | Make test not fail on hosts where the default omp library is gomp. | Make test not fail on hosts where the default omp library is gomp.
This is the case on some linuxes, just force libomp so we get the
desired results.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@277138 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | 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,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl... |
21a1e7a69685d0698eac0cfee6435035e02363d9 | base/checks.h | base/checks.h | /*
* Copyright 2006 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... | /*
* Copyright 2006 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... | Define convenient FATAL_ERROR() and FATAL_ERROR_IF() macros | Define convenient FATAL_ERROR() and FATAL_ERROR_IF() macros
R=henrike@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/16079004
git-svn-id: 03ae4fbe531b1eefc9d815f31e49022782c42458@6701 4adac7df-926f-26a2-2b94-8c16560cd09d
| C | bsd-3-clause | Omegaphora/external_chromium_org_third_party_webrtc,jgcaaprom/android_external_chromium_org_third_party_webrtc,android-ia/platform_external_chromium_org_third_party_webrtc,geekboxzone/lollipop_external_chromium_org_third_party_webrtc,MIPS/external-chromium_org-third_party-webrtc,Omegaphora/external_chromium_org_third_p... |
9bae8c664000ff38f07429fa1726ec61575f2c84 | tests/regression/13-privatized/17-priv_interval.c | tests/regression/13-privatized/17-priv_interval.c | // PARAM: --set ana.int.interval true --set solver "'new'"
#include<pthread.h>
#include<assert.h>
int glob1 = 5;
pthread_mutex_t mutex1 = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t mutex2 = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
int t;
pthread_mutex_lock(&mutex1);
t = glob1;
assert(t == 5);
glo... | // PARAM: --set ana.int.interval true --set solver "'td3'"
#include<pthread.h>
#include<assert.h>
int glob1 = 5;
pthread_mutex_t mutex1 = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t mutex2 = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
int t;
pthread_mutex_lock(&mutex1);
t = glob1;
assert(t == 5);
glo... | Switch solver for 13-privatized/17-priv_internal.c to td3 to make test case pass | Switch solver for 13-privatized/17-priv_internal.c to td3 to make test case pass
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
50c714cde2c67b4c326cbec21d9383620ffbd32d | tensorflow/core/platform/default/integral_types.h | tensorflow/core/platform/default/integral_types.h | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | Change definition of tensorflow::int64 to std::int64_t. | Change definition of tensorflow::int64 to std::int64_t.
There is no reason for TensorFlow to have its own special non-standard `int64` type any more; we can use the standard one instead.
PiperOrigin-RevId: 351674712
Change-Id: I82c1d67c07436a3f158a029a3a657fef5a05060e
| C | apache-2.0 | karllessard/tensorflow,tensorflow/tensorflow,gautam1858/tensorflow,petewarden/tensorflow,sarvex/tensorflow,yongtang/tensorflow,yongtang/tensorflow,Intel-tensorflow/tensorflow,sarvex/tensorflow,frreiss/tensorflow-fred,karllessard/tensorflow,yongtang/tensorflow,Intel-Corporation/tensorflow,karllessard/tensorflow,tensorfl... |
bc97f851842b313acf04e099fc95f94676a05894 | TRVSDictionaryWithCaseInsensitivity/TRVSDictionaryWithCaseInsensitivity.h | TRVSDictionaryWithCaseInsensitivity/TRVSDictionaryWithCaseInsensitivity.h | //
// TRVSDictionaryWithCaseInsensitivity.h
// TRVSDictionaryWithCaseInsensitivity
//
// Created by Travis Jeffery on 7/24/14.
// Copyright (c) 2014 Travis Jeffery. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for TRVSDictionaryWithCaseInsensitivity.
FOUNDATION_EXPORT double TRVSDict... | //
// TRVSDictionaryWithCaseInsensitivity.h
// TRVSDictionaryWithCaseInsensitivity
//
// Created by Travis Jeffery on 7/24/14.
// Copyright (c) 2014 Travis Jeffery. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for TRVSDictionaryWithCaseInsensitivity.
FOUNDATION_EXPORT doubl... | Fix import of foundation - no need for uikit | Fix import of foundation - no need for uikit
| C | mit | travisjeffery/TRVSDictionaryWithCaseInsensitivity |
7f2565af8a98c0dc8f3c0bcd3f92098e669208f1 | SmartDeviceLink/SDLImageField+ScreenManagerExtensions.h | SmartDeviceLink/SDLImageField+ScreenManagerExtensions.h | //
// SDLImageField+ScreenManagerExtensions.h
// SmartDeviceLink
//
// Created by Joel Fischer on 5/20/20.
// Copyright © 2020 smartdevicelink. All rights reserved.
//
#import <SmartDeviceLink/SmartDeviceLink.h>
NS_ASSUME_NONNULL_BEGIN
@interface SDLImageField (ScreenManagerExtensions)
+ (NSArray<SDLImageField ... | //
// SDLImageField+ScreenManagerExtensions.h
// SmartDeviceLink
//
// Created by Joel Fischer on 5/20/20.
// Copyright © 2020 smartdevicelink. All rights reserved.
//
#import "SDLImageField.h"
NS_ASSUME_NONNULL_BEGIN
@interface SDLImageField (ScreenManagerExtensions)
+ (NSArray<SDLImageField *> *)allImageField... | Fix failed import in podspec | Fix failed import in podspec
| C | bsd-3-clause | smartdevicelink/sdl_ios,smartdevicelink/sdl_ios,smartdevicelink/sdl_ios,smartdevicelink/sdl_ios,smartdevicelink/sdl_ios |
6a70d7a87c3b684caf67cbccb56753db807fb005 | ext/cap2/cap2.c | ext/cap2/cap2.c | #include <ruby.h>
#include <errno.h>
#include <sys/capability.h>
static VALUE cap2_getpcaps(VALUE self, VALUE pid) {
cap_t cap_d;
ssize_t length;
char *caps;
VALUE result;
Check_Type(pid, T_FIXNUM);
cap_d = cap_get_pid(NUM2INT(pid));
if (cap_d == NULL) {
rb_raise(
rb_eRuntimeError,
"Fa... | #include <ruby.h>
#include <errno.h>
#include <sys/capability.h>
static VALUE cap2_getpcaps(VALUE self, VALUE pid) {
cap_t cap_d;
ssize_t length;
char *caps;
VALUE result;
Check_Type(pid, T_FIXNUM);
cap_d = cap_get_pid(FIX2INT(pid));
if (cap_d == NULL) {
rb_raise(
rb_eRuntimeError,
"Fa... | Use FIX2INT rather than NUM2INT in Cap2.getpcaps | Use FIX2INT rather than NUM2INT in Cap2.getpcaps
| C | mit | lmars/cap2,lmars/cap2 |
6e2bee2717a640046dd323972d9c7238d8184797 | include/ccspec/core/example_group.h | include/ccspec/core/example_group.h | #ifndef CCSPEC_CORE_EXAMPLE_GROUP_H_
#define CCSPEC_CORE_EXAMPLE_GROUP_H_
#include <functional>
#include <list>
#include <stack>
#include <string>
namespace ccspec {
namespace core {
class ExampleGroup;
typedef ExampleGroup* Creator(std::string desc, std::function<void ()> spec);
class ExampleGroup {
public:
... | #ifndef CCSPEC_CORE_EXAMPLE_GROUP_H_
#define CCSPEC_CORE_EXAMPLE_GROUP_H_
#include <functional>
#include <list>
#include <stack>
#include <string>
namespace ccspec {
namespace core {
class ExampleGroup;
typedef ExampleGroup* Creator(std::string desc, std::function<void ()> spec);
extern std::stack<ExampleGroup*> g... | Move global variable declaration for consistency | Move global variable declaration for consistency
| C | mit | zhangsu/ccspec,tempbottle/ccspec,michaelachrisco/ccspec,zhangsu/ccspec,michaelachrisco/ccspec,tempbottle/ccspec,michaelachrisco/ccspec,tempbottle/ccspec,zhangsu/ccspec |
a6c7d872c26713d43f0152ce23abf4c6eccfc609 | grantlee_core_library/filterexpression.h | grantlee_core_library/filterexpression.h | /*
Copyright (c) 2009 Stephen Kelly <steveire@gmail.com>
*/
#ifndef FILTER_H
#define FILTER_H
#include "variable.h"
#include "grantlee_export.h"
namespace Grantlee
{
class Parser;
}
class Token;
namespace Grantlee
{
class GRANTLEE_EXPORT FilterExpression
{
public:
enum Reversed
{
IsNotReversed,
I... | /*
Copyright (c) 2009 Stephen Kelly <steveire@gmail.com>
*/
#ifndef FILTEREXPRESSION_H
#define FILTEREXPRESSION_H
#include "variable.h"
#include "grantlee_export.h"
namespace Grantlee
{
class Parser;
}
class Token;
namespace Grantlee
{
class GRANTLEE_EXPORT FilterExpression
{
public:
enum Reversed
{
... | Use a correct include guard | Use a correct include guard
| C | lgpl-2.1 | simonwagner/grantlee,simonwagner/grantlee,cutelyst/grantlee,simonwagner/grantlee,simonwagner/grantlee,cutelyst/grantlee,cutelyst/grantlee,simonwagner/grantlee,simonwagner/grantlee,cutelyst/grantlee,cutelyst/grantlee |
baa17436b073514a3739fad3b487c0bee90afb5d | include/corsika/particle/VParticleProperties.h | include/corsika/particle/VParticleProperties.h | /**
\file
Particle property interface
\author Lukas Nellen
\version $Id$
\date 03 Apr 2004
*/
#pragma once
#include <string>
namespace corsika
{
/**
\class VParticleProperties VParticleProperties.h "corsika/VParticleProperties.h"
\brief Internal interface for particle properties. This is... | /**
\file
Particle property interface
\author Lukas Nellen
\version $Id$
\date 03 Apr 2004
*/
#pragma once
#include <string>
#include <memory.h>
namespace corsika
{
/**
\class VParticleProperties VParticleProperties.h "corsika/VParticleProperties.h"
\brief Internal interface for particle... | Add one more memory include | Add one more memory include
| C | bsd-2-clause | javierggt/corsika_reader,javierggt/corsika_reader,javierggt/corsika_reader |
e1c47c5248d8c0d0bbb2462b73cd7ee031ef85d3 | src/engine/core/include/halley/core/entry/entry_point.h | src/engine/core/include/halley/core/entry/entry_point.h | #pragma once
#include <memory>
#include <vector>
#include "halley/core/game/main_loop.h"
#ifdef _WIN32
#define HALLEY_STDCALL __stdcall
#else
#define HALLEY_STDCALL
#endif
namespace Halley
{
class Game;
class Core;
class HalleyStatics;
constexpr static uint32_t HALLEY_DLL_API_VERSION = 23;
class IHalleyEntry... | #pragma once
#include <memory>
#include <vector>
#include "halley/core/game/main_loop.h"
#ifdef _WIN32
#define HALLEY_STDCALL __stdcall
#else
#define HALLEY_STDCALL
#endif
namespace Halley
{
class Game;
class Core;
class HalleyStatics;
constexpr static uint32_t HALLEY_DLL_API_VERSION = 24;
class IHalleyEntry... | Move new method on interface further down to avoid messing with vtable compatibility | Move new method on interface further down to avoid messing with vtable compatibility
| C | apache-2.0 | amzeratul/halley,amzeratul/halley,amzeratul/halley |
4771a29b5042fc9496f4d72f76c0151fe73716ba | src/placement/apollonius_labels_arranger.h | src/placement/apollonius_labels_arranger.h | #ifndef SRC_PLACEMENT_APOLLONIUS_LABELS_ARRANGER_H_
#define SRC_PLACEMENT_APOLLONIUS_LABELS_ARRANGER_H_
#include <Eigen/Core>
#include <memory>
#include <vector>
#include "./labels_arranger.h"
class CudaArrayProvider;
namespace Placement
{
/**
* \brief Returns the labels in an order defined by the apollonius grap... | #ifndef SRC_PLACEMENT_APOLLONIUS_LABELS_ARRANGER_H_
#define SRC_PLACEMENT_APOLLONIUS_LABELS_ARRANGER_H_
#include <Eigen/Core>
#include <memory>
#include <vector>
#include "./labels_arranger.h"
class CudaArrayProvider;
namespace Placement
{
/**
* \brief Returns the labels in an order defined by the apollonius grap... | Remove unused and not implement ApolloniusLabelsArranger destructor. | Remove unused and not implement ApolloniusLabelsArranger destructor.
| C | mit | Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller |
1912ee2e5a92ebde98aad2835b8ea5eef918cd8f | CefSharp.Core/Internals/CefRequestCallbackWrapper.h | CefSharp.Core/Internals/CefRequestCallbackWrapper.h | // Copyright 2010-2015 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#pragma once
#include "Stdafx.h"
using namespace CefSharp;
namespace CefSharp
{
namespace Internals
{
public ref class CefRequest... | // Copyright 2010-2015 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#pragma once
#include "Stdafx.h"
using namespace CefSharp;
namespace CefSharp
{
namespace Internals
{
public ref class CefRequest... | Fix build issue from prev. merge. | Fix build issue from prev. merge.
| C | bsd-3-clause | haozhouxu/CefSharp,VioletLife/CefSharp,joshvera/CefSharp,ITGlobal/CefSharp,windygu/CefSharp,AJDev77/CefSharp,yoder/CefSharp,haozhouxu/CefSharp,jamespearce2006/CefSharp,ruisebastiao/CefSharp,VioletLife/CefSharp,haozhouxu/CefSharp,joshvera/CefSharp,yoder/CefSharp,windygu/CefSharp,illfang/CefSharp,dga711/CefSharp,Haraguro... |
6bfe949dbd60e78c6a7d9ecc438f38e69e50f757 | src/modules/linsys/factory.c | src/modules/linsys/factory.c | /*
* factory.c for Linsys SDI consumer
*/
#include <framework/mlt.h>
#include <string.h>
extern mlt_consumer consumer_SDIstream_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
MLT_REPOSITORY
{
MLT_REGISTER( consumer_type, "linsys_sdi", consumer_SDIstream_init );
}
| /*
* factory.c for Linsys SDI consumer
*/
#include <framework/mlt.h>
#include <string.h>
extern mlt_consumer consumer_SDIstream_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
MLT_REPOSITORY
{
MLT_REGISTER( consumer_type, "sdi", consumer_SDIstream_init );
}
| Change linssys_sdi consumer to just "sdi" | Change linssys_sdi consumer to just "sdi"
| C | lgpl-2.1 | gmarco/mlt-orig,zzhhui/mlt,siddharudh/mlt,anba8005/mlt,ttill/MLT-roto-tracking,wideioltd/mlt,ttill/MLT-roto,ttill/MLT-roto,wideioltd/mlt,ttill/MLT-roto-tracking,ttill/MLT-roto-tracking,ttill/MLT,ttill/MLT,xzhavilla/mlt,wideioltd/mlt,xzhavilla/mlt,anba8005/mlt,xzhavilla/mlt,gmarco/mlt-orig,mltframework/mlt,ttill/MLT-rot... |
fcb91db238536949ceca5bcbe9c93b61b658240a | src/matchers/EXPMatchers+beIdenticalTo.h | src/matchers/EXPMatchers+beIdenticalTo.h | #import "Expecta.h"
EXPMatcherInterface(beIdenticalTo, (void *expected));
| #import "Expecta.h"
EXPMatcherInterface(_beIdenticalTo, (void *expected));
#if __has_feature(objc_arc)
#define beIdenticalTo(expected) _beIdenticalTo((__bridge void*)expected)
#else
#define beIdenticalTo _beIdenticalTo
#endif
| Fix ARC warning and avoid having to bridge id objects | Fix ARC warning and avoid having to bridge id objects
| C | mit | iguchunhui/expecta,iosdev-republicofapps/expecta,ashfurrow/expecta,ashfurrow/expecta,Lightricks/expecta,specta/expecta,jmoody/expecta,jmburges/expecta,modocache/expecta,jmoody/expecta,suxinde2009/expecta,Bogon/expecta,github/expecta,tonyarnold/expecta,Bogon/expecta,Lightricks/expecta,jmburges/expecta,suxinde2009/expect... |
20cf8ae478c2712d4c211b49868e334357f05356 | src/include/storage/copydir.h | src/include/storage/copydir.h | /*-------------------------------------------------------------------------
*
* copydir.h
* Header for src/port/copydir.c compatibility functions.
*
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* src/include/st... | /*-------------------------------------------------------------------------
*
* copydir.h
* Copy a directory.
*
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* src/include/storage/copydir.h
*
*----------------... | Fix copy-and-pasteo a little more completely. | Fix copy-and-pasteo a little more completely.
copydir.c is no longer in src/port
| C | apache-2.0 | 50wu/gpdb,50wu/gpdb,arcivanov/postgres-xl,pavanvd/postgres-xl,Postgres-XL/Postgres-XL,pavanvd/postgres-xl,techdragon/Postgres-XL,oberstet/postgres-xl,adam8157/gpdb,lisakowen/gpdb,tpostgres-projects/tPostgres,xinzweb/gpdb,ashwinstar/gpdb,pavanvd/postgres-xl,techdragon/Postgres-XL,postmind-net/postgres-xl,tpostgres-proje... |
5ce583eacdc66fec34b8788793170b3f860f14b5 | ComponentKit/Debug/CKComponentHierarchyDebugHelper.h | ComponentKit/Debug/CKComponentHierarchyDebugHelper.h | /*
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#im... | /*
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#im... | Mark remaining APIs unsafe in extensions | Mark remaining APIs unsafe in extensions
This is a follow up to #534 that should help us close out #390.
| C | bsd-3-clause | bricooke/componentkit,yiding/componentkit,dshahidehpour/componentkit,eczarny/componentkit,avnerbarr/componentkit,dshahidehpour/componentkit,dshahidehpour/componentkit,bricooke/componentkit,bricooke/componentkit,MDSilber/componentkit,eczarny/componentkit,MDSilber/componentkit,yiding/componentkit,bricooke/componentkit,MD... |
51e169a1422fe902f3b9aa165e7058ea636baf22 | Modules/Common/include/mirtkStatus.h | Modules/Common/include/mirtkStatus.h | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2013-2015 Imperial College London
* Copyright 2013-2015 Andreas Schuh
*
* 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
*
... | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2013-2015 Imperial College London
* Copyright 2013-2015 Andreas Schuh
*
* 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
*
... | Remove needless comma after last enumeration value | style: Remove needless comma after last enumeration value [Common]
| C | apache-2.0 | schuhschuh/MIRTK,BioMedIA/MIRTK,schuhschuh/MIRTK,BioMedIA/MIRTK,stefanpsz/MIRTK,stefanpsz/MIRTK,stefanpsz/MIRTK,schuhschuh/MIRTK,BioMedIA/MIRTK,BioMedIA/MIRTK,schuhschuh/MIRTK,stefanpsz/MIRTK |
71b7d664f70030e12ccd7f99729f50861fb4e858 | Engine/Entity.h | Engine/Entity.h | #ifndef __ENTITY_H__
#define __ENTITY_H__
#include "ModuleCollision.h"
class Entity
{
public:
Entity() : parent(nullptr) {}
Entity(Entity* parent) : parent(parent) {}
virtual ~Entity() {}
// Entity lifecycle methods
virtual bool Start()
{
return true;
}
virtual bool Start(bool active)
{
this->activ... | #ifndef __ENTITY_H__
#define __ENTITY_H__
#include "ModuleCollision.h"
class Entity
{
public:
Entity() : Parent(nullptr) {}
Entity(Entity* parent) : Parent(parent) {}
virtual ~Entity() {}
// Entity lifecycle methods
virtual bool Start()
{
return true;
}
virtual bool Start(bool active)
{
this->_acti... | Adjust entity class to naming conventions | Adjust entity class to naming conventions
references #3 | C | mit | jowie94/The-Simpsons-Arcade,jowie94/The-Simpsons-Arcade |
c68037fdc18d4dade36611a4a93dcc3fbbcfa045 | bin/test_date.c | bin/test_date.c | #include <stdio.h>
#include <time.h>
#include <stdlib.h>
int check_date(struct tm *date, time_t time, char *name) {
if( date == NULL ) {
printf("%s(%lld) returned null\n", name, (long long)time);
return 1;
}
else {
printf("%s(%lld): %s\n", name, (long long)time, asctime(date));
... | #include <stdio.h>
#include <time.h>
#include <stdlib.h>
int check_date(struct tm *date, time_t time, char *name) {
if( date == NULL ) {
printf("%s(%lld) returned null\n", name, (long long)time);
return 1;
}
else {
printf("%s(%lld): %s\n", name, (long long)time, asctime(date));
... | Print out the size of time_t and tm.tm_year for debugging porpuses. | Print out the size of time_t and tm.tm_year for debugging porpuses.
| C | mit | chromatic/y2038,chromatic/y2038,evalEmpire/y2038,bulk88/y2038,schwern/y2038,chromatic/y2038,foxtacles/y2038,foxtacles/y2038,bulk88/y2038,bulk88/y2038,evalEmpire/y2038,schwern/y2038 |
5c4a5fd8eeef6942ff79b519aa86b195a1e70aaf | Wikipedia/Code/WMFAnalyticsLogging.h | Wikipedia/Code/WMFAnalyticsLogging.h | #import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@protocol WMFAnalyticsLogging <NSObject>
- (NSString*)analyticsName;
@end
NS_ASSUME_NONNULL_END | #import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@protocol WMFAnalyticsContextProviding <NSObject>
- (NSString*)analyticsContext;
@end
@protocol WMFAnalyticsContentTypeProviding <NSObject>
- (NSString*)analyticsContentType;
@end
@protocol WMFAnalyticsViewNameProviding <NSObject>
- (NSString*)analytics... | Add additional protocols for tracking context, content type, and analytics name | Add additional protocols for tracking context, content type, and analytics name
| C | mit | anirudh24seven/wikipedia-ios,wikimedia/apps-ios-wikipedia,montehurd/apps-ios-wikipedia,wikimedia/apps-ios-wikipedia,julienbodet/wikipedia-ios,josve05a/wikipedia-ios,wikimedia/wikipedia-ios,bgerstle/wikipedia-ios,josve05a/wikipedia-ios,wikimedia/apps-ios-wikipedia,wikimedia/wikipedia-ios,bgerstle/wikipedia-ios,montehurd... |
83b7ba154c3b7735685315c7dbbf2083945b947c | board.h | board.h | #ifndef __BOARD_H
#define __BOARD_H
#ifdef __cplusplus
extern "C" {
#endif
#define F_OSC0 12000000UL
#define F_OSC1 0UL
#define F_CPU 66000000UL
#define HSBMASK_DEFAULT 0xFFFFFFFF
#define PBAMASK_DEFAULT 0xFFFFFFFF
#define PBBMASK_DEFAULT 0xFFFFFFFF
void init_board(void);
#ifdef __cplusplus
}
#endif
#endif
| #ifndef __BOARD_H
#define __BOARD_H
#ifdef __cplusplus
extern "C" {
#endif
#define ADC_VREF 3.0
#define ADC_BITS 10
#define F_CPU 66000000UL
#define F_OSC0 12000000UL
#define F_OSC1 0UL
#define HSBMASK_DEFAULT 0xFFFFFFFF
#define PBAMASK_DEFAULT 0xFFFFFFFF
#define PBBMASK_DEFAULT 0xFFFFFFFF
void init_board(void);
... | Add adc settings and a function to calculate the conversion | Add adc settings and a function to calculate the conversion
| C | bsd-3-clause | denravonska/aery32,aery32/aery32,denravonska/aery32,aery32/aery32 |
9c6ef2d2e6fc944267fb3a857d5797afb9efcb06 | queue.c | queue.c | #include "queue.h"
struct Queue
{
size_t head;
size_t tail;
size_t size;
void** e;
};
Queue* Queue_Create(size_t n)
{
Queue* q = (Queue *)malloc(sizeof(Queue));
q->size = n;
q->head = q->tail = 1;
q->e = (void **)malloc(sizeof(void*) * (n + 1));
} | #include "queue.h"
struct Queue
{
size_t head;
size_t tail;
size_t size;
void** e;
};
Queue* Queue_Create(size_t n)
{
Queue* q = (Queue *)malloc(sizeof(Queue));
q->size = n;
q->head = q->tail = 1;
q->e = (void **)malloc(sizeof(void*) * (n + 1));
return q;
} | Add missing return after Queue creation | Add missing return after Queue creation
| C | mit | MaxLikelihood/CADT |
6ae7b4776f1cbafb5703376cb806572667070b8d | libc/sysdeps/linux/common/getrusage.c | libc/sysdeps/linux/common/getrusage.c | /* vi: set sw=4 ts=4: */
/*
* getrusage() for uClibc
*
* Copyright (C) 2000-2004 by Erik Andersen <andersen@codepoet.org>
*
* GNU Library General Public License (LGPL) version 2 or later.
*/
#include "syscalls.h"
#include <unistd.h>
#include <wait.h>
_syscall2(int, getrusage, int, who, struct rusage *, usage);
| /* vi: set sw=4 ts=4: */
/*
* getrusage() for uClibc
*
* Copyright (C) 2000-2004 by Erik Andersen <andersen@codepoet.org>
*
* GNU Library General Public License (LGPL) version 2 or later.
*/
#include "syscalls.h"
#include <unistd.h>
#include <wait.h>
_syscall2(int, getrusage, __rusage_who_t, who, struct rusage *... | Correct type, gcc-3.4.5 fails, thanks nitinkg for reporting/testing | Correct type, gcc-3.4.5 fails, thanks nitinkg for reporting/testing
| C | lgpl-2.1 | joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc |
3951fae51d776d05e871ee5a7beb62fb832985b1 | src/port/pthread-win32.h | src/port/pthread-win32.h | #ifndef __PTHREAD_H
#define __PTHREAD_H
typedef ULONG pthread_key_t;
typedef HANDLE pthread_mutex_t;
typedef int pthread_once_t;
DWORD pthread_self(void);
void pthread_setspecific(pthread_key_t, void *);
void *pthread_getspecific(pthread_key_t);
void pthread_mutex_init(pthread_mutex_t *, void *attr);
void pt... | #ifndef __PTHREAD_H
#define __PTHREAD_H
typedef ULONG pthread_key_t;
typedef HANDLE pthread_mutex_t;
typedef int pthread_once_t;
DWORD pthread_self(void);
void pthread_setspecific(pthread_key_t, void *);
void *pthread_getspecific(pthread_key_t);
int pthread_mutex_init(pthread_mutex_t *, void *attr);
int pt... | Fix declarations of pthread functions, missed in recent commit. | Fix declarations of pthread functions, missed in recent commit.
| C | agpl-3.0 | tpostgres-projects/tPostgres,50wu/gpdb,jmcatamney/gpdb,Chibin/gpdb,Postgres-XL/Postgres-XL,Postgres-XL/Postgres-XL,ovr/postgres-xl,techdragon/Postgres-XL,Chibin/gpdb,xinzweb/gpdb,adam8157/gpdb,pavanvd/postgres-xl,kmjungersen/PostgresXL,50wu/gpdb,ovr/postgres-xl,lisakowen/gpdb,ovr/postgres-xl,greenplum-db/gpdb,jmcatamne... |
9d7343347b61a9e0110b8ba81cdd66b5c5ea0bac | src/sas/readstat_xport.c | src/sas/readstat_xport.c | #include <stdint.h>
#include "readstat_xport.h"
#include "../readstat_bits.h"
char _xport_months[12][4] = {
"JAN", "FEB", "MAR", "APR", "MAY", "JUN",
"JUL", "AUG", "SEP", "OCT", "NOV", "DEC" };
void xport_namestr_bswap(xport_namestr_t *namestr) {
if (!machine_is_little_endian())
return;
name... | #include <stdint.h>
#include "readstat_xport.h"
#include "../readstat_bits.h"
char _xport_months[12][4] = {
"JAN", "FEB", "MAR", "APR", "MAY", "JUN",
"JUL", "AUG", "SEP", "OCT", "NOV", "DEC" };
void xport_namestr_bswap(xport_namestr_t *namestr) {
if (!machine_is_little_endian())
return;
name... | Fix bug in XPORT byteswapping | Fix bug in XPORT byteswapping
| C | mit | WizardMac/ReadStat,WizardMac/ReadStat |
a512578fdd9e815f9244bc1d5a5fcd30464e8cbc | source/openta/ta_errors.h | source/openta/ta_errors.h | // Public domain. See "unlicense" statement at the end of this file.
#define TA_ERROR_FAILED_TO_PARSE_CMDLINE -1
#define TA_ERROR_FAILED_TO_CREATE_GAME_CONTEXT -2
#define TA_ERROR_INVALID_ARGS -3
| // Public domain. See "unlicense" statement at the end of this file.
typedef int ta_result;
#define TA_SUCCESS 0
#define TA_ERRORS -1
#define TA_INVALID_ARGS -2
#define TA_OUT_OF_MEMORY -3
#define TA_ERROR_FAILED_TO_PARSE_CMDLINE -1
#define TA_ERROR_FAILED_TO_CREATE_GAME_CONTEXT -2
... | Add a few result codes. | Add a few result codes.
| C | mit | mackron/openta,mackron/openta |
c9b72d350872bf0d23d3b7905c7f8169c7f91a8b | reverb/cc/conversions.h | reverb/cc/conversions.h | // Copyright 2019 DeepMind Technologies Limited.
//
// 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 l... | // Copyright 2019 DeepMind Technologies Limited.
//
// 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 l... | Document why `ImportNumpy ` exists and when it should be used. | Document why `ImportNumpy ` exists and when it should be used.
PiperOrigin-RevId: 474532725
Change-Id: I305a57456bcac3186389a733e16d962fcee99dee
| C | apache-2.0 | deepmind/reverb,deepmind/reverb,deepmind/reverb,deepmind/reverb |
f160c0edd74d9f31c936b92c7e7e6b4c9fb6848e | src/engine/scriptwindow.h | src/engine/scriptwindow.h | #ifndef SCRIPTWINDOW_H
#define SCRIPTWINDOW_H
#include <stdint.h>
#include <QHash>
#include <QObject>
#include <QScriptValue>
class QScriptEngine;
class ScriptWindow : public QObject {
Q_OBJECT
public:
explicit ScriptWindow(const QScriptValue &originalWindow, QObject *parent = 0);
QScrip... | #ifndef SCRIPTWINDOW_H
#define SCRIPTWINDOW_H
#include <QHash>
#include <QObject>
#include <QScriptValue>
class QScriptEngine;
class ScriptWindow : public QObject {
Q_OBJECT
public:
explicit ScriptWindow(const QScriptValue &originalWindow, QObject *parent = 0);
QScriptValue toScriptValue(... | Fix compile error on Amazon EC2. | Fix compile error on Amazon EC2.
| C | agpl-3.0 | arendjr/PlainText,arendjr/PlainText,arendjr/PlainText |
2fbd5548c56d6cbeef46248da67cb97455a3a7ec | apps/rldtest/rldtest.c | apps/rldtest/rldtest.c | /*
** Copyright 2002, Manuel J. Petit. All rights reserved.
** Distributed under the terms of the NewOS License.
*/
#include <stdio.h>
#include <dlfcn.h>
extern int fib(int);
extern void shared_hello(void);
int
main()
{
void *freston;
void *girlfriend;
shared_hello();
printf("%d %d %d %d %d %d\n", fib(0), fib(1... | /*
** Copyright 2002, Manuel J. Petit. All rights reserved.
** Distributed under the terms of the NewOS License.
*/
#include <stdio.h>
#include <dlfcn.h>
extern int fib(int);
extern void shared_hello(void);
int
main()
{
void *freston;
void *girlfriend;
shared_hello();
printf("%d %d %d %d %d %d\n", fib(0), fib(1... | Fix serious bug. Should be RTLD_NOW... RTLD_LAZY does not work for getting a girlfriend. | Fix serious bug. Should be RTLD_NOW... RTLD_LAZY does not work for getting a girlfriend.
git-svn-id: fb278a52ad97f7fbef074986829f2c6a2a3c4b34@547 c25cc9d1-44fa-0310-b259-ad778cb1d433
| C | bsd-3-clause | dioptre/newos,travisg/newos,siraj/newos,zhouxh1023/newos,siraj/newos,siraj/newos,dioptre/newos,dioptre/newos,siraj/newos,travisg/newos,zhouxh1023/newos,travisg/newos,zhouxh1023/newos |
4ea166194c7eec0262b3e30d9a599ea187a8591e | src/ios/KirinKit/KirinKit/Extensions/GWTServices/NewDatabaseAccessService.h | src/ios/KirinKit/KirinKit/Extensions/GWTServices/NewDatabaseAccessService.h | //
// NewDatabasesImpl.h
// KirinKit
//
// Created by Douglas Hoskins on 04/10/2013.
// Copyright (c) 2013 Future Platforms. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "NSObject+Kirin.h"
#import "KirinGwtServiceStub.h"
#import "NewTransactionService.h"
#import <toNative/DatabaseAccessService... | //
// NewDatabasesImpl.h
// KirinKit
//
// Created by Douglas Hoskins on 04/10/2013.
// Copyright (c) 2013 Future Platforms. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "NSObject+Kirin.h"
#import "KirinGwtServiceStub.h"
#import "NewTransactionService.h"
#import <toNative/DatabaseAccessService... | Make KirinGwtServiceStub use KirinSynchronousExecute protocol | [ios] Make KirinGwtServiceStub use KirinSynchronousExecute protocol
| C | apache-2.0 | futureplatforms/Kirin,futureplatforms/Kirin,futureplatforms/Kirin,futureplatforms/Kirin,futureplatforms/Kirin |
8709f4c305854a8e23e6c0fc868b7c9a65827707 | src/String.h | src/String.h | //=============================================================================
// String.h
//=============================================================================
#ifndef SRC_STRING_H_
#define SRC_STRING_H_
#include "AutoReleasePool.h"
#include <string.h>
//--------------------------------------------... | //=============================================================================
// String.h
//=============================================================================
#ifndef SRC_STRING_H_
#define SRC_STRING_H_
#include "AutoReleasePool.h"
#include <string.h>
//--------------------------------------------... | Refactor - fix error in gcc compile | Refactor - fix error in gcc compile | C | apache-2.0 | jasonxhill/okavangoc,jasonxhill/okavangoc |
96bc2bb6c95cb61d0039c7da19cd7d172c668aa9 | lib/libmid/errstr.c | lib/libmid/errstr.c | #include "../../include/mid.h"
#include <SDL/SDL_error.h>
#include <stdarg.h>
#include <errno.h>
#include <string.h>
enum { Bufsz = 1024 };
static char curerr[Bufsz + 1];
void seterrstr(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
snprintf(curerr, Bufsz + 1, fmt, ap);
va_end(ap);
}
const char *miderrs... | #include "../../include/mid.h"
#include <SDL/SDL_error.h>
#include <stdarg.h>
#include <errno.h>
#include <string.h>
enum { Bufsz = 1024 };
static char curerr[Bufsz + 1];
void seterrstr(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
vsnprintf(curerr, Bufsz + 1, fmt, ap);
va_end(ap);
}
const char *miderr... | Call vsnprintf instead of just snprintf. | Call vsnprintf instead of just snprintf.
| C | mit | velour/mid,velour/mid,velour/mid |
dcf530dd0e811a75191bd0f86e53561db1a8ed44 | config/config-mem.h | config/config-mem.h | /*
* config-mem.h
*
* Copyright (c) 1996, 1997
* Transvirtual Technologies, Inc. All rights reserved.
*
* See the file "license.terms" for information on usage and redistribution
* of this file.
*/
#ifndef __config_mem_h
#define __config_mem_h
#if defined(HAVE_STRING_H)
#include <string.h>
#endif
#if defin... | /*
* config-mem.h
*
* Copyright (c) 1996, 1997
* Transvirtual Technologies, Inc. All rights reserved.
*
* See the file "license.terms" for information on usage and redistribution
* of this file.
*/
#ifndef __config_mem_h
#define __config_mem_h
#if defined(HAVE_STRING_H)
#include <string.h>
#endif
#if defin... | Fix build problem under FreeBSD. | Fix build problem under FreeBSD.
| C | lgpl-2.1 | kaffe/kaffe,kaffe/kaffe,kaffe/kaffe,kaffe/kaffe,kaffe/kaffe |
25d67e3ef084ff3894a235c2ab529f362524b89a | include/nekit/utils/async_io_interface.h | include/nekit/utils/async_io_interface.h | // MIT License
// Copyright (c) 2017 Zhuhao Wang
// 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, mer... | // MIT License
// Copyright (c) 2017 Zhuhao Wang
// 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, mer... | Make AsyncIoInterface a pure interface | REFACTOR: Make AsyncIoInterface a pure interface
| C | mit | zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit |
3281226fa2caa220f9654fa3c6734f56962792a2 | prefix.h | prefix.h | #ifndef KLETCH_MATH_PREFIX_H
#define KLETCH_MATH_PREFIX_H
#include <utility>
#include <tuple>
#include <iostream>
#include <limits>
#include "special_functions.h"
namespace kletch {
#ifdef KLETCH_USE_DOUBLES
typedef double real;
#else
typedef float real;
#endif
template <typename T>
inline constexpr real rl... | #ifndef KLETCH_MATH_PREFIX_H
#define KLETCH_MATH_PREFIX_H
#include <utility>
#include <tuple>
#include <iostream>
#include <limits>
#include "special_functions.h"
namespace kletch {
#ifdef KLETCH_WITH_DOUBLE
typedef double real;
#else
typedef float real;
#endif
template <typename T>
inline constexpr real rl... | Make ReferenceFresnelTest th config dependent | Make ReferenceFresnelTest th config dependent
| C | unlicense | mkacz91/math |
642e338cf79c78704ebfa7833fdd148f561921f5 | sw/device/lib/dif/dif_warn_unused_result.h | sw/device/lib/dif/dif_warn_unused_result.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_DIF_DIF_WARN_UNUSED_RESULT_H_
#define OPENTITAN_SW_DEVICE_LIB_DIF_DIF_WARN_UNUSED_RESULT_H_
/**
* @file
* @brief Unused Result Warning... | // 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_DIF_DIF_WARN_UNUSED_RESULT_H_
#define OPENTITAN_SW_DEVICE_LIB_DIF_DIF_WARN_UNUSED_RESULT_H_
/**
* @file
* @brief Unused Result Warning... | Add a comment explaining how to drop an error on the ground | [dif] Add a comment explaining how to drop an error on the ground
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509, which
necessitates doing this in a non-standard, but still portable, manner.
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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.