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 |
|---|---|---|---|---|---|---|---|---|---|
f4ef4ff9d744adcc8424e6993674b20000c750bf | src/clock_posix.c | src/clock_posix.c | #include <time.h>
#include "clock.h"
#include "clock_type.h"
extern int clock_init(struct Clock **clockp, struct Allocator *allocator)
{
struct timespec res;
if (clock_getres(CLOCK_MONOTONIC, &res) != 0 || res.tv_nsec > 1000) {
/* unknown clock or insufficient resolution */
... | #include <time.h>
#include "clock.h"
#include "clock_type.h"
extern int clock_init(struct SPDR_Clock **clockp, struct SPDR_Allocator *allocator)
{
struct timespec res;
if (clock_getres(CLOCK_MONOTONIC, &res) != 0 || res.tv_nsec > 1000) {
/* unknown clock or insufficient resolution */... | Fix compilation on posix platforms | Fix compilation on posix platforms
| C | mit | uucidl/uu.spdr,uucidl/uu.spdr,uucidl/uu.spdr |
5cd8261adec0f6b5de939ecf826ee8638a5a93e4 | src/output.c | src/output.c | #include <format.h>
#include <string.h> /* strlen */
#include <output.h>
#include <unistd.h> /* write */
/* Initially we put data to stdout. */
int cur_out = 1;
/* Put data to current output. */
void putd(const char *data, unsigned long len)
{
(void)write(cur_out,data,len);
}
void put(const char *data)
{
putd(d... | #include <format.h>
#include <string.h> /* strlen */
#include <output.h>
#include <unistd.h> /* write */
/* Initially we put data to stdout. */
int cur_out = 1;
/* Put data to current output. */
void putd(const char *data, unsigned long len)
{
ssize_t n = write(cur_out,data,len);
(void)n;
}
void put(const char *... | Work around incompatibility of warn_unused_result on one machine. | Work around incompatibility of warn_unused_result on one machine.
On one machine, the call to "write" in output.c gave this compiler error:
ignoring return value of ‘write’, declared with attribute warn_unused_result
To work around that, the code now grabs the return value and ignores it with
(void).
| C | mit | chkoreff/Fexl,chkoreff/Fexl |
7a0ffdc64e8e522035a7bc74ee3cea0bfeb55cd1 | eval/src/vespa/eval/eval/hamming_distance.h | eval/src/vespa/eval/eval/hamming_distance.h | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
namespace vespalib::eval {
inline double hamming_distance(double a, double b) {
uint8_t x = (uint8_t) a;
uint8_t y = (uint8_t) b;
return __builtin_popcount(x ^ y);
}
}
| // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
namespace vespalib::eval {
inline double hamming_distance(double a, double b) {
uint8_t x = (uint8_t) (int8_t) a;
uint8_t y = (uint8_t) (int8_t) b;
return __builtin_popcount(x ^ y);
}
}
| Convert from double to signed data type for reference hamming distance. | Convert from double to signed data type for reference hamming distance.
| C | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
09a2b4f4234f66c2dc89c269743ba04bf78ae8ba | src/interfaces/odbc/md5.h | src/interfaces/odbc/md5.h | /* File: connection.h
*
* Description: See "md.h"
*
* Comments: See "notice.txt" for copyright and license information.
*
*/
#ifndef __MD5_H__
#define __MD5_H__
#include "psqlodbc.h"
#include <stdlib.h>
#include <string.h>
#ifdef WIN32
#define MD5_ODBC
#define FRONTEND
#endif
#define MD5_PASSWD_LEN 35
/*... | /* File: md5.h
*
* Description: See "md5.c"
*
* Comments: See "notice.txt" for copyright and license information.
*
*/
#ifndef __MD5_H__
#define __MD5_H__
#include "psqlodbc.h"
#include <stdlib.h>
#include <string.h>
#ifdef WIN32
#define MD5_ODBC
#define FRONTEND
#endif
#define MD5_PASSWD_LEN 35
/* From ... | Fix comment at top of file to match file name. | Fix comment at top of file to match file name.
| C | apache-2.0 | Quikling/gpdb,ashwinstar/gpdb,Quikling/gpdb,Chibin/gpdb,tangp3/gpdb,chrishajas/gpdb,yuanzhao/gpdb,zaksoup/gpdb,zaksoup/gpdb,lpetrov-pivotal/gpdb,xinzweb/gpdb,rvs/gpdb,foyzur/gpdb,foyzur/gpdb,rvs/gpdb,yuanzhao/gpdb,edespino/gpdb,lpetrov-pivotal/gpdb,lintzc/gpdb,xinzweb/gpdb,lintzc/gpdb,rubikloud/gpdb,zeroae/postgres-xl,... |
8573926253391f103e73c7b4ec77a6e61b662186 | src/utils.h | src/utils.h | #pragma once
#include <memory>
#include <cstdio> // fopen, fclose
#include <openssl/evp.h>
#include <openssl/ec.h>
namespace JWTXX
{
namespace Utils
{
struct FileCloser
{
void operator()(FILE* fp) { fclose(fp); }
};
typedef std::unique_ptr<FILE, FileCloser> FilePtr;
struct EVPKeyDeleter
{
void operator()(... | #pragma once
#include <memory>
#include <cstdio> // fopen, fclose
#include <openssl/evp.h>
#include <openssl/ec.h>
namespace JWTXX
{
namespace Utils
{
struct EVPKeyDeleter
{
void operator()(EVP_PKEY* key) { EVP_PKEY_free(key); }
};
typedef std::unique_ptr<EVP_PKEY, EVPKeyDeleter> EVPKeyPtr;
struct EVPMDCTXDel... | Move file closer out from public. | Move file closer out from public.
| C | mit | madf/jwtxx,madf/jwtxx,RealImage/jwtxx,RealImage/jwtxx |
56f322d7e40c891d396ede91242b0c4a05b7e383 | bst.c | bst.c | #include "bst.h"
static void BST_Transplant(BST* T, BSTNode* u, BSTNode* v);
struct BSTNode
{
BSTNode* left;
BSTNode* right;
BSTNode* p;
void* k;
};
struct BST
{
BSTNode* root;
};
| #include "bst.h"
static void BST_Transplant(BST* T, BSTNode* u, BSTNode* v);
struct BSTNode
{
BSTNode* left;
BSTNode* right;
BSTNode* p;
void* k;
};
struct BST
{
BSTNode* root;
};
BST* BST_Create(void)
{
BST* T = (BST* )malloc(sizeof(BST));
T->root = NULL;
return T;
}
| Add BST Create function implementation | Add BST Create function implementation
| C | mit | MaxLikelihood/CADT |
68bf16f8d1e7c8dff8732f8aae4b4b418054216f | test/Driver/darwin-asan-nofortify.c | test/Driver/darwin-asan-nofortify.c | // Make sure AddressSanitizer disables _FORTIFY_SOURCE on Darwin.
// REQUIRES: system-darwin
// RUN: %clang -faddress-sanitizer %s -E -dM -o - | FileCheck %s
// CHECK: #define _FORTIFY_SOURCE 0
| // Make sure AddressSanitizer disables _FORTIFY_SOURCE on Darwin.
// RUN: %clang -faddress-sanitizer %s -E -dM -target x86_64-darwin - | FileCheck %s
// CHECK: #define _FORTIFY_SOURCE 0
| Use an explicit target to test that source fortification is off when building for Darwin with -faddress-sanitizer. | Use an explicit target to test that source fortification is off when building for Darwin with -faddress-sanitizer.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@164485 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | 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,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-cl... |
76879c5d5204ad38a36e183d8a03e20d9dc0ae56 | src/search/util/timeout.h | src/search/util/timeout.h | /* -*- mode:linux -*- */
/**
* \file timeout.h
*
*
*
* \author Ethan Burns
* \date 2008-12-16
*/
#define _POSIX_C_SOURCE 200112L
void timeout(unsigned int sec);
| /* -*- mode:linux -*- */
/**
* \file timeout.h
*
*
*
* \author Ethan Burns
* \date 2008-12-16
*/
void timeout(unsigned int sec);
| Remove the _POSIX_C_SOURCE def that the sparc doesn't like | Remove the _POSIX_C_SOURCE def that the sparc doesn't like
| C | mit | eaburns/pbnf,eaburns/pbnf,eaburns/pbnf,eaburns/pbnf |
43afb1bad3a927217f002bb9c3181a59e38839a7 | daemon/mcbp_validators.h | daemon/mcbp_validators.h | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2015 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
*
* http://w... | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2015 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
*
* http://w... | Drop C linkage for message validators | Drop C linkage for message validators
Change-Id: I5a95a6ddd361ee2009ea399479a7df51733af709
Reviewed-on: http://review.couchbase.org/54979
Tested-by: buildbot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
Reviewed-by: Dave Rigby <a09264da4832c7ff1d3bf1608a19f4b870f93750@couchbase.com>
| C | bsd-3-clause | daverigby/kv_engine,owendCB/memcached,owendCB/memcached,daverigby/kv_engine,daverigby/kv_engine,daverigby/memcached,couchbase/memcached,owendCB/memcached,owendCB/memcached,couchbase/memcached,daverigby/memcached,daverigby/memcached,couchbase/memcached,daverigby/memcached,daverigby/kv_engine,couchbase/memcached |
920a78097ae079fc6a77fb808c989078134479d7 | DeepLinkKit/Categories/NSObject+DPLJSONObject.h | DeepLinkKit/Categories/NSObject+DPLJSONObject.h | @import Foundation;
@interface NSObject (DPLJSONObject)
/**
Returns a JSON compatible version of the receiver.
@discussion
- NSDictionary and NSArray will call `DPLJSONObject' on all of their items.
- Objects in an NSDictionary not keyed by an NSString will be removed.
- NSNumbers that are NaN or Inf will be... | @import Foundation;
@interface NSObject (DPLJSONObject)
/**
Returns a JSON compatible version of the receiver.
@discussion
- NSDictionary and NSArray will call `DPLJSONObject' on all of their items.
- Objects in an NSDictionary not keyed by an NSString will be removed.
- NSNumbers that are NaN or Inf will be r... | Fix warning 'Empty paragraph passed to '@discussion' command' | Fix warning 'Empty paragraph passed to '@discussion' command'
| C | mit | button/DeepLinkKit,button/DeepLinkKit,button/DeepLinkKit,button/DeepLinkKit |
436ff08a08318e1f6cb9ce5e1b8517b6ea00c0c0 | tmcd/decls.h | tmcd/decls.h | /*
* EMULAB-COPYRIGHT
* Copyright (c) 2000-2003 University of Utah and the Flux Group.
* All rights reserved.
*/
#define TBSERVER_PORT 7777
#define TBSERVER_PORT2 14447
#define MYBUFSIZE 2048
#define BOSSNODE_FILENAME "bossnode"
/*
* As the tmcd changes, incompatable changes with older version of
* the softw... | /*
* EMULAB-COPYRIGHT
* Copyright (c) 2000-2003 University of Utah and the Flux Group.
* All rights reserved.
*/
#define TBSERVER_PORT 7777
#define TBSERVER_PORT2 14447
#define MYBUFSIZE 2048
#define BOSSNODE_FILENAME "bossnode"
/*
* As the tmcd changes, incompatable changes with older version of
* the softw... | Update to version 9 to match libsetup/tmcd. | Update to version 9 to match libsetup/tmcd.
| C | agpl-3.0 | nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome |
08a9882cc8cbec97947215a7cdb1f60effe82b15 | server/gwkv_ht_wrapper.h | server/gwkv_ht_wrapper.h | #ifndef GWKV_HT_WRAPPER
#define GWKV_HT_WRAPPER
#include <stdlib.h>
typedef enum {
GET,
SET
} method;
/* Defines for result codes */
#define STORED 0
#define NOT_STORED 1
#define EXISTS 2
#define NOT_FOUND 3
struct {
method method_type,
const char* key,
size_t key_length,
... | #ifndef GWKV_HT_WRAPPER
#define GWKV_HT_WRAPPER
#include <stdlib.h>
#include "../hashtable/hashtable.h"
typedef enum {
GET,
SET
} method;
/* Defines for result codes */
#define STORED 0
#define NOT_STORED 1
#define EXISTS 2
#define NOT_FOUND 3
struct {
method method_type,
const char*... | Change server set/get function names | Change server set/get function names
| C | mit | gwAdvNet2015/gw-kv-store |
e54d4a7ec72354285ba4b8202a45693b83b75835 | common.h | common.h | #ifndef _COMMON_H
#define _COMMON_H
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#ifdef _LINUX
#include <bsd/string.h>
#endif
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxml/xmlsave.h>
#include <libxml/encoding.h>
#include <libxml/xmlstring.h>... | #ifndef _COMMON_H
#define _COMMON_H
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#ifdef _LINUX
#include <bsd/string.h>
#endif
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxml/xmlsave.h>
#include <libxml/encoding.h>
#include <libxml/xmlstring.h>... | Tag 2.1.1 because of the segfault fix. | Tag 2.1.1 because of the segfault fix.
| C | bsd-2-clause | levaidaniel/kc,levaidaniel/kc,levaidaniel/kc |
1d80b38e935401e40bdca2f3faaec4aeba77a716 | src/random.h | src/random.h | /**
* @file random.h
* @ingroup CppAlgorithms
* @brief Random utility functions.
*
* Copyright (c) 2013 Sebastien Rombauts (sebastien.rombauts@gmail.com)
*
* Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
* or copy at http://opensource.org/licenses/MIT)
*/
/**
* @brief Random... | /**
* @file random.h
* @ingroup CppAlgorithms
* @brief Random utility functions.
*
* Copyright (c) 2013 Sebastien Rombauts (sebastien.rombauts@gmail.com)
*
* Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
* or copy at http://opensource.org/licenses/MIT)
*/
#include <cstddef> ... | Fix Travis build (missing include for size_t) | Fix Travis build (missing include for size_t)
| C | mit | SRombauts/cpp-algorithms,SRombauts/cpp-algorithms |
b1321ce850ae77ea8d4a3fc0958ec58b404ec10d | chapter3/GameObject.h | chapter3/GameObject.h | #ifndef __GAME_OBJECT_H__
#define __GAME_OBJECT_H__
#include<iostream>
#include<SDL2/SDL.h>
class GameObject
{
public:
void load(int pX, int pY, int pWidth, int pHeight, std::string pTextureId);
void draw(SDL_Renderer *renderer);
void update();
void clean() { std::cout << "clean ga... | #ifndef __GAME_OBJECT_H__
#define __GAME_OBJECT_H__
#include<iostream>
#include<SDL2/SDL.h>
class GameObject
{
public:
virtual void load(int pX, int pY, int pWidth, int pHeight, std::string pTextureId);
virtual void draw(SDL_Renderer *renderer);
virtual void update();
virtual void c... | Include virtual in all methods. | Include virtual in all methods.
| C | bsd-2-clause | caiotava/SDLBook |
b01a4463c1dbd4854f9fba47af8fa30394640375 | TokenArray.h | TokenArray.h | #ifndef _EXCELFORMUAL_TOKEN_ARRAY_H__
#define _EXCELFORMUAL_TOKEN_ARRAY_H__
#include <vector>
using std::vector;
namespace ExcelFormula{
class Token;
class TokenArray{
public:
TokenArray();
void toVector(vector<Token*>&);
void fromVector(vector<Token*>&);
size_t size() {return m_tokens.size();}
... | #ifndef _EXCELFORMUAL_TOKEN_ARRAY_H__
#define _EXCELFORMUAL_TOKEN_ARRAY_H__
#include <vector>
#include <cstddef>
using std::vector;
namespace ExcelFormula{
class Token;
class TokenArray{
public:
TokenArray();
void toVector(vector<Token*>&);
void fromVector(vector<Token*>&);
size_t size() {return... | Add missing include for size_t | Add missing include for size_t
Fixes compile error:
[...]
g++ -c -g TokenArray.cpp
In file included from TokenArray.cpp:1:0:
TokenArray.h:20:4: error: ‘size_t’ does not name a type
size_t size() {return m_tokens.size();}
^
TokenArray.h:41:4: error: ‘size_t’ does not name a type
size_t m_index;
^
| C | mit | lishen2/Excel_formula_parser_cpp |
a60af963642a31734c0a628fa79090fa5b7c58b2 | include/libport/unistd.h | include/libport/unistd.h | #ifndef LIBPORT_UNISTD_H
# define LIBPORT_UNISTD_H
# include <libport/detect-win32.h>
# include <libport/windows.hh> // Get sleep wrapper
# include <libport/config.h>
// This is traditional Unix file.
# ifdef LIBPORT_HAVE_UNISTD_H
# include <unistd.h>
# endif
// OSX does not have O_LARGEFILE. No information was f... | #ifndef LIBPORT_UNISTD_H
# define LIBPORT_UNISTD_H
# include <libport/detect-win32.h>
# include <libport/windows.hh> // Get sleep wrapper
# include <libport/config.h>
// This is traditional Unix file.
# ifdef LIBPORT_HAVE_UNISTD_H
# include <unistd.h>
# endif
// OSX does not have O_LARGEFILE. No information was f... | Define chdir as a macro. | Define chdir as a macro.
The previous definition was uselessly complicated, and lacked the
proper API declaration.
* include/libport/unistd.h (chdir): Define as "_chdir".
| C | bsd-3-clause | aldebaran/libport,aldebaran/libport,aldebaran/libport,aldebaran/libport,aldebaran/libport |
5c43c3ef287b4aebdddbbf66a6afcdd4d2c47124 | TeamSnapSDK/SDK/CollectionJSON/TSDKCollectionJSON.h | TeamSnapSDK/SDK/CollectionJSON/TSDKCollectionJSON.h | //
// TSDKCollectionJSON.h
// TeamSnapSDK
//
// Created by Jason Rahaim on 1/10/14.
// Copyright (c) 2014 TeamSnap. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface TSDKCollectionJSON : NSObject <NSCoding, NSCopying>
@property (nonatomic, strong) NSURL *_Nullable href;
@property (nonatomic, s... | //
// TSDKCollectionJSON.h
// TeamSnapSDK
//
// Created by Jason Rahaim on 1/10/14.
// Copyright (c) 2014 TeamSnap. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface TSDKCollectionJSON : NSObject <NSCoding, NSCopying>
@property (nonatomic, strong) NSURL *_Nullable href;
@property (nonatomic, s... | Add type to Collection Property | Add type to Collection Property
| C | mit | teamsnap/teamsnap-SDK-iOS,teamsnap/teamsnap-SDK-iOS,teamsnap/teamsnap-SDK-iOS |
f2c9e4ef2fd88ddebec6d885eb6a9b40efdea4de | simple-examples/static.c | simple-examples/static.c | #include <stdio.h>
/* Static functions and static global variables are only visible in
* the file that it is declared in. Static variables inside of a
* function have a different meaning and is described below */
void foo()
{
int x = 0;
static int staticx = 0; // initialized once; keeps value between invocations ... | // Scott Kuhl
#include <stdio.h>
/* Static functions and static global variables are only visible in
* the file that it is declared in. Static variables inside of a
* function have a different meaning and is described below */
void foo()
{
int x = 0;
static int staticx = 0; // initialized once; keeps value betwee... | Add name to top of file. | Add name to top of file. | C | unlicense | skuhl/sys-prog-examples,skuhl/sys-prog-examples,skuhl/sys-prog-examples |
ce94377523f8e0aeff726e30222974022dfaae59 | src/config.h | src/config.h | /******************************
** Tsunagari Tile Engine **
** config.h **
** Copyright 2011 OmegaSDG **
******************************/
#ifndef CONFIG_H
#define CONFIG_H
// === Default Configuration Settings ===
/* Tsunagari config file. -- Command Line */
#define CLIENT_CONF_FILE "./client.... | /******************************
** Tsunagari Tile Engine **
** config.h **
** Copyright 2011 OmegaSDG **
******************************/
#ifndef CONFIG_H
#define CONFIG_H
// === Default Configuration Settings ===
/* Tsunagari config file. -- Command Line */
#define CLIENT_CONF_FILE "./client.... | Fix snprintf on VisualC++ with a conditional define. | Fix snprintf on VisualC++ with a conditional define.
| C | mit | pmer/TsunagariC,pariahsoft/Tsunagari,pariahsoft/Tsunagari,pariahsoft/TsunagariC,pariahsoft/Tsunagari,pariahsoft/Tsunagari,pmer/TsunagariC,pariahsoft/TsunagariC,pariahsoft/TsunagariC,pmer/TsunagariC |
c54058d7b015ad60403f7996a98ba08dc30bf868 | src/importers/kredbimporter.h | src/importers/kredbimporter.h | /***************************************************************************
* Copyright © 2004 Jason Kivlighn <jkivlighn@gmail.com> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under th... | /***************************************************************************
* Copyright © 2004 Jason Kivlighn <jkivlighn@gmail.com> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under th... | Fix Krazy warnings: explicit - KreDBImporter | Fix Krazy warnings: explicit - KreDBImporter
svn path=/trunk/extragear/utils/krecipes/; revision=1119833
| C | lgpl-2.1 | eliovir/krecipes,eliovir/krecipes,eliovir/krecipes,eliovir/krecipes |
c1f31e37e3ed046237c04ef0dddcb6587d4f88fb | src/libdpdkif/configuration.h | src/libdpdkif/configuration.h | /*
* Configurables. Adjust these to be appropriate for your system.
*/
/* change blacklist parameters (-b) if necessary */
static const char *ealargs[] = {
"if_dpdk",
"-b 00:00:03.0",
"-c 1",
"-n 1",
};
/* change PORTID to the one your want to use */
#define IF_PORTID 0
/* change to the init method of your NI... | /*
* Configurables. Adjust these to be appropriate for your system.
*/
/* change blacklist parameters (-b) if necessary
* If you have more than one interface, you will likely want to blacklist
* at least one of them.
*/
static const char *ealargs[] = {
"if_dpdk",
"-b 00:00:03.0",
"-c 1",
"-n 1",
};
/* chang... | Add note about blacklisting interfaces | Add note about blacklisting interfaces | C | bsd-2-clause | jqyy/drv-netif-dpdk,jqyy/drv-netif-dpdk |
600d895282d9e8fe6d2505902ec3e3970a9e19f7 | src/mixal_parser_lib/include/mixal/parser.h | src/mixal_parser_lib/include/mixal/parser.h | #pragma once
#include <mixal/config.h>
#include <mixal/parsers_utils.h>
namespace mixal {
class MIXAL_PARSER_LIB_EXPORT IParser
{
public:
std::size_t parse_stream(std::string_view str, std::size_t offset = 0);
protected:
~IParser() = default;
virtual void do_clear() = 0;
virtual std::size_t do_pa... | #pragma once
#include <mixal/config.h>
#include <mixal/parsers_utils.h>
namespace mixal {
class MIXAL_PARSER_LIB_EXPORT IParser
{
public:
std::size_t parse_stream(std::string_view str, std::size_t offset = 0);
bool is_valid() const;
std::string_view str() const;
protected:
IParser() = default;
... | Extend IParser interface: remember parse state - succesfull or not; what part of string was parsed | Extend IParser interface: remember parse state - succesfull or not; what part of string was parsed
| C | mit | grishavanika/mix,grishavanika/mix,grishavanika/mix |
2924da319e5a0d76d1ce8462c7029e6395884662 | test/CodeGen/2010-07-14-overconservative-align.c | test/CodeGen/2010-07-14-overconservative-align.c | // RUN: %clang_cc1 %s -triple x86_64-apple-darwin -emit-llvm -o - | FileCheck %s
// PR 5995
struct s {
int word;
struct {
int filler __attribute__ ((aligned (8)));
};
};
void func (struct s *s)
{
// CHECK: load %struct.s** %s.addr, align 8
s->word = 0;
}
| // RUN: %clang_cc1 %s -triple x86_64-apple-darwin -emit-llvm -o - | FileCheck %s
// PR 5995
struct s {
int word;
struct {
int filler __attribute__ ((aligned (8)));
};
};
void func (struct s *s)
{
// CHECK: load %struct.s**{{.*}}align 8
s->word = 0;
}
| Rewrite matching line to be friendlier to misc buildbots. | Rewrite matching line to be friendlier to misc buildbots.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@136168 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-cl... |
82050d5da0e4be70b0131eb996873e1f686b8d68 | ep_testsuite.h | ep_testsuite.h | #ifndef EP_TESTSUITE_H
#define EP_TESTSUITE_H 1
#include <memcached/engine.h>
#include <memcached/engine_testapp.h>
#ifdef __cplusplus
extern "C" {
#endif
MEMCACHED_PUBLIC_API
engine_test_t* get_tests(void);
MEMCACHED_PUBLIC_API
bool setup_suite(struct test_harness *th);
#ifdef __cplusplus
}
#endif
#endif
| #ifndef EP_TESTSUITE_H
#define EP_TESTSUITE_H 1
#include <memcached/engine.h>
#include <memcached/engine_testapp.h>
#ifdef __cplusplus
extern "C" {
#endif
MEMCACHED_PUBLIC_API
engine_test_t* get_tests(void);
MEMCACHED_PUBLIC_API
bool setup_suite(struct test_harness *th);
MEMCACHED_PUBLIC_API
bool teardown_suite();... | Fix test suite compilation errors | Fix test suite compilation errors
This fixes some missing function declaration errors:
CXX ep_testsuite_la-ep_testsuite.lo
cc1plus: warnings being treated as errors
ep_testsuite.cc: In function ‘test_result prepare(engine_test_t*)’:
ep_testsuite.cc:5425: error: no previous declaration for ‘test_result prepare(en... | C | apache-2.0 | zbase/ep-engine,daverigby/kv_engine,couchbase/ep-engine,abhinavdangeti/ep-engine,hisundar/ep-engine,couchbaselabs/ep-engine,owendCB/ep-engine,daverigby/kv_engine,jimwwalker/ep-engine,abhinavdangeti/ep-engine,couchbaselabs/ep-engine,couchbase/ep-engine,daverigby/kv_engine,sriganes/ep-engine,jimwwalker/ep-engine,couchbas... |
33b703740fd3ade5192bb61492b14cf5cfcebc2c | InputState.h | InputState.h | #ifndef INPUTSTATE_H
#define INPUTSTATE_H
#include <SDL2/SDL.h>
#undef main
#include <map>
class InputState
{
public:
enum KeyFunction { KF_EXIT, KF_FORWARDS, KF_BACKWARDS, KF_ROTATE_SUN };
InputState();
void readInputState();
bool getKeyState(KeyFunction f);
int getAbsoluteMouseX() { return mouse_x; };
int ge... | #ifndef INPUTSTATE_H
#define INPUTSTATE_H
#include <SDL2/SDL.h>
#undef main
#include <map>
class InputState
{
public:
enum KeyFunction { KF_EXIT, KF_FORWARDS, KF_BACKWARDS, KF_ROTATE_SUN };
InputState();
void readInputState();
bool getKeyState(KeyFunction f);
int getAbsoluteMouseX() { return mouse_x; };
int ge... | Fix InputSize symbol array size. | Fix InputSize symbol array size.
| C | mit | pstiasny/derpengine,pstiasny/derpengine |
11d45b0090be38423587ef8d1a0215937932223e | src/memory.c | src/memory.c | /*
* Copyright (c) 2009-2012 Petri Lehtinen <petri@digip.org>
* Copyright (c) 2011-2012 Basile Starynkevitch <basile@starynkevitch.net>
*
* Jansson is free software; you can redistribute it and/or modify it
* under the terms of the MIT license. See LICENSE for details.
*/
#include <stdlib.h>
#include <string.h>
... | /*
* Copyright (c) 2009-2012 Petri Lehtinen <petri@digip.org>
* Copyright (c) 2011-2012 Basile Starynkevitch <basile@starynkevitch.net>
*
* Jansson is free software; you can redistribute it and/or modify it
* under the terms of the MIT license. See LICENSE for details.
*/
#include <stdlib.h>
#include <string.h>
... | Fix integer overflow in jsonp_strdup() | Fix integer overflow in jsonp_strdup()
Fixes #129.
| C | mit | AmesianX/jansson,markalanj/jansson,Vorne/jansson,OlehKulykov/jansson,bstarynk/jansson,simonfojtu/FireSight,markalanj/jansson,firepick1/jansson,chrullrich/jansson,Mephistophiles/jansson,markalanj/jansson,firepick-delta/FireSight,liu3tao/jansson,rogerz/jansson,firepick1/FireSight,liu3tao/jansson,firepick-delta/FireSight,... |
8f020cf00dff0ae6d40f68ba7f901c1c0f784093 | ui/base/ime/character_composer.h | ui/base/ime/character_composer.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 UI_BASE_IME_CHARACTER_COMPOSER_H_
#define UI_BASE_IME_CHARACTER_COMPOSER_H_
#pragma once
#include <vector>
#include "base/basictypes.h"
#inc... | // 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 UI_BASE_IME_CHARACTER_COMPOSER_H_
#define UI_BASE_IME_CHARACTER_COMPOSER_H_
#pragma once
#include <vector>
#include "base/basictypes.h"
#inc... | Fix link error when component=shared_library is set | Fix link error when component=shared_library is set
BUG=103789
TEST=Manual
Review URL: http://codereview.chromium.org/8515013
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@109554 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | keishi/chromium,chuan9/chromium-crosswalk,ondra-novak/chromium.src,Jonekee/chromium.src,Chilledheart/chromium,pozdnyakov/chromium-crosswalk,Just-D/chromium-1,ChromiumWebApps/chromium,hgl888/chromium-crosswalk,keishi/chromium,timopulkkinen/BubbleFish,hgl888/chromium-crosswalk,robclark/chromium,krieger-od/nwjs_chromium.s... |
580305a8cda0cb85ee837cf8d8a15ee80ba0c41d | cint/include/iosfwd.h | cint/include/iosfwd.h | #ifndef G__IOSFWD_H
#define G__IOSFWD_H
#include <iostream.h>
typedef basic_streambuf<char, char_traits<char> > streambuf;
#endif
| #ifndef G__IOSFWD_H
#define G__IOSFWD_H
#include <iostream.h>
#endif
| Undo change proposed by Philippe. Too many side effects. | Undo change proposed by Philippe. Too many side effects.
git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@5468 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT,dawehner/root,bbannier/ROOT,dawehner/root,bbannier/ROOT,dawehner/root,bbannier/ROOT |
f3d275984b116f79fbb8568e72d1707ef12230c5 | unix/image.c | unix/image.c | // 13 september 2016
#include "uipriv_unix.h"
struct uiImage {
uiUnixControl c;
GtkWidget *widget;
};
uiUnixControlAllDefaults(uiImage)
uiImage *uiNewImage(const char *filename)
{
uiImage *img;
uiUnixNewControl(uiImage, img);
img->widget = gtk_image_new_from_file(filename);
return img;
}
| // 13 september 2016
#include "uipriv_unix.h"
struct uiImage {
uiUnixControl c;
GtkWidget *widget;
};
uiUnixControlAllDefaults(uiImage)
void uiImageSetSize(uiImage *i, unsigned int width, unsigned int height)
{
GdkPixbuf *pixbuf;
pixbuf = gtk_image_get_pixbuf(GTK_IMAGE(i->widget));
pixbuf = gdk_pixbuf_scale_si... | Implement getting and setting uiImage size in Gtk | Implement getting and setting uiImage size in Gtk
| C | mit | sclukey/libui,sclukey/libui |
af7c239ac6629f7bd102b3e648c0dd86c2054407 | os/gl/gl_context_nsgl.h | os/gl/gl_context_nsgl.h | // LAF OS Library
// Copyright (C) 2022 Igara Studio S.A.
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifndef OS_GL_CONTEXT_NSGL_INCLUDED
#define OS_GL_CONTEXT_NSGL_INCLUDED
#pragma once
#include "os/gl/gl_context.h"
namespace os {
class GLContextNSGL :... | // LAF OS Library
// Copyright (C) 2022 Igara Studio S.A.
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifndef OS_GL_CONTEXT_NSGL_INCLUDED
#define OS_GL_CONTEXT_NSGL_INCLUDED
#pragma once
#include "os/gl/gl_context.h"
namespace os {
class GLContextNSGL :... | Replace nil with nullptr in GLContextNSGL to compile correctly | [osx] Replace nil with nullptr in GLContextNSGL to compile correctly
| C | mit | aseprite/laf,aseprite/laf |
46e2418fc661eb2d58272c995d8579ec67accf69 | packages/grpc-native-core/ext/completion_queue.h | packages/grpc-native-core/ext/completion_queue.h | /*
*
* Copyright 2016 gRPC authors.
*
* 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 agree... | /*
*
* Copyright 2016 gRPC authors.
*
* 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 agree... | Update completion queue header to match code changes | Update completion queue header to match code changes
| C | apache-2.0 | grpc/grpc-node,grpc/grpc-node,grpc/grpc-node,grpc/grpc-node |
18442c5cf486e16f4cb418a0d7ef2a2dd9ea7c34 | Fastor/tensor/ScalarIndexing.h | Fastor/tensor/ScalarIndexing.h | #ifndef SCALAR_INDEXING_NONCONST_H
#define SCALAR_INDEXING_NONCONST_H
// Scalar indexing non-const
//----------------------------------------------------------------------------------------------------------//
template<typename... Args, typename std::enable_if<sizeof...(Args)==dimension_t::value &&
... | #ifndef SCALAR_INDEXING_NONCONST_H
#define SCALAR_INDEXING_NONCONST_H
// Scalar indexing non-const
//----------------------------------------------------------------------------------------------------------//
template<typename... Args, typename std::enable_if<sizeof...(Args)==dimension_t::value &&
... | Allow indexing by operator[] when dimension is 1 | Allow indexing by operator[] when dimension is 1
| C | mit | romeric/Fastor,romeric/Fastor,romeric/Fastor |
d7519565d22249fa2c0f2ec4c60a2c0e3981b916 | features/mbedtls/platform/inc/platform_mbed.h | features/mbedtls/platform/inc/platform_mbed.h | /**
* Copyright (C) 2006-2016, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | /**
* Copyright (C) 2006-2016, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | Disable MBEDTLS_HAVE_DATE_TIME as ARMCC does not support gmtime | Disable MBEDTLS_HAVE_DATE_TIME as ARMCC does not support gmtime
| C | apache-2.0 | andcor02/mbed-os,andcor02/mbed-os,betzw/mbed-os,mbedmicro/mbed,c1728p9/mbed-os,c1728p9/mbed-os,c1728p9/mbed-os,c1728p9/mbed-os,betzw/mbed-os,andcor02/mbed-os,kjbracey-arm/mbed,betzw/mbed-os,kjbracey-arm/mbed,betzw/mbed-os,kjbracey-arm/mbed,mbedmicro/mbed,andcor02/mbed-os,c1728p9/mbed-os,betzw/mbed-os,andcor02/mbed-os,m... |
6ddc15b9ba5b3b0c811a1ad22131005360474692 | libyaul/scu/bus/b/vdp/vdp2_tvmd_display_clear.c | libyaul/scu/bus/b/vdp/vdp2_tvmd_display_clear.c | /*
* Copyright (c) 2012-2016 Israel Jacquez
* See LICENSE for details.
*
* Israel Jacquez <mrkotfw@gmail.com>
*/
#include <vdp2/tvmd.h>
#include "vdp-internal.h"
void
vdp2_tvmd_display_clear(void)
{
_state_vdp2()->regs.tvmd &= 0x7FFF;
/* Change the DISP bit during VBLANK */
vdp2_tvmd_vb... | /*
* Copyright (c) 2012-2016 Israel Jacquez
* See LICENSE for details.
*
* Israel Jacquez <mrkotfw@gmail.com>
*/
#include <vdp2/tvmd.h>
#include "vdp-internal.h"
void
vdp2_tvmd_display_clear(void)
{
_state_vdp2()->regs.tvmd &= 0x7EFF;
/* Change the DISP bit during VBLANK */
vdp2_tvmd_vb... | Clear bit when writing to VDP2(TVMD) | Clear bit when writing to VDP2(TVMD)
| C | mit | ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul |
f24e70fa3a204565a656594b48ac84c390aa1e8f | libcef_dll/cef_macros.h | libcef_dll/cef_macros.h | // Copyright (c) 2014 The Chromium Embedded Framework 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 CEF_LIBCEF_DLL_CEF_MACROS_H_
#define CEF_LIBCEF_DLL_CEF_MACROS_H_
#pragma once
#ifdef BUILDING_CEF_SHARED
#include "base/m... | // Copyright (c) 2014 The Chromium Embedded Framework 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 CEF_LIBCEF_DLL_CEF_MACROS_H_
#define CEF_LIBCEF_DLL_CEF_MACROS_H_
#pragma once
#ifdef BUILDING_CEF_SHARED
#include "base/m... | Remove duplicate content in file. | Remove duplicate content in file.
git-svn-id: 66addb63d0c46e75f185859367c4faf62af16cdd@1734 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
| C | bsd-3-clause | kuscsik/chromiumembedded,kuscsik/chromiumembedded,kuscsik/chromiumembedded,kuscsik/chromiumembedded |
f908528a004812c36a27a6705f8d2453cc9084c4 | sesman/libscp/libscp_init.c | sesman/libscp/libscp_init.c | /**
* xrdp: A Remote Desktop Protocol server.
*
* Copyright (C) Jay Sorg 2004-2012
*
* 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
... | /**
* xrdp: A Remote Desktop Protocol server.
*
* Copyright (C) Jay Sorg 2004-2012
*
* 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
... | Downgrade "libscp initialized" to LOG_LEVEL_DEBUG, remove line number | Downgrade "libscp initialized" to LOG_LEVEL_DEBUG, remove line number
It's a bad style to start the log with a cryptic warning.
| C | apache-2.0 | metalefty/xrdp,moobyfr/xrdp,itamarjp/xrdp,PKRoma/xrdp,PKRoma/xrdp,jsorg71/xrdp,cocoon/xrdp,ubuntu-xrdp/xrdp,ubuntu-xrdp/xrdp,itamarjp/xrdp,neutrinolabs/xrdp,itamarjp/xrdp,moobyfr/xrdp,proski/xrdp,jsorg71/xrdp,metalefty/xrdp,moobyfr/xrdp,neutrinolabs/xrdp,neutrinolabs/xrdp,cocoon/xrdp,metalefty/xrdp,proski/xrdp,cocoon/x... |
7359740eaddf6e4c01ccd91fe1044932d019d8e3 | Settings/Controls/Label.h | Settings/Controls/Label.h | #pragma once
#include "Control.h"
#include "../../3RVX/Logger.h"
class Label : public Control {
public:
Label() {
}
Label(int id, HWND parent) :
Control(id, parent) {
}
}; | #pragma once
#include "Control.h"
#include "../../3RVX/Logger.h"
class Label : public Control {
public:
Label() {
}
Label(int id, HWND parent) :
Control(id, parent) {
}
Label(int id, DialogBase &parent, bool translate = true) :
Control(id, parent, false) {
}
}; | Add a new-style constructor for labels | Add a new-style constructor for labels
| C | bsd-2-clause | malensek/3RVX,malensek/3RVX,malensek/3RVX |
4160de1a24f5ca414508e396e43ba756d73f8338 | Source/PPSSignatureView.h | Source/PPSSignatureView.h | #import <UIKit/UIKit.h>
#import <GLKit/GLKit.h>
@interface PPSSignatureView : GLKView
@property (assign, nonatomic) UIColor *strokeColor;
@property (assign, nonatomic) BOOL hasSignature;
@property (strong, nonatomic) UIImage *signatureImage;
- (void)erase;
@end
| #import <UIKit/UIKit.h>
#import <GLKit/GLKit.h>
@interface PPSSignatureView : GLKView
@property (assign, nonatomic) IBInspectable UIColor *strokeColor;
@property (assign, nonatomic) BOOL hasSignature;
@property (strong, nonatomic) UIImage *signatureImage;
- (void)erase;
@end
| Make stroke color an IBInspectable property. | Make stroke color an IBInspectable property.
| C | mit | ronaldsmartin/PPSSignatureView |
e636d645deee9bf088091fba525ca18f55c516c9 | src/common/angleutils.h | src/common/angleutils.h | //
// Copyright (c) 2002-2010 The ANGLE 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.
//
// angleutils.h: Common ANGLE utilities.
#ifndef COMMON_ANGLEUTILS_H_
#define COMMON_ANGLEUTILS_H_
// A macro to disallow the copy c... | //
// Copyright (c) 2002-2010 The ANGLE 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.
//
// angleutils.h: Common ANGLE utilities.
#ifndef COMMON_ANGLEUTILS_H_
#define COMMON_ANGLEUTILS_H_
// A macro to disallow the copy c... | Add helper functions to safely release Windows COM resources, and arrays of COM resources. | Add helper functions to safely release Windows COM resources, and arrays of COM resources.
TRAC #22656
Signed-off-by: Nicolas Capens
Signed-off-by: Shannon Woods
Author: Jamie Madill
git-svn-id: 2a1ef23f1c4b6a1dbccd5f9514022461535c55c0@2014 736b8ea6-26fd-11df-bfd4-992fa37f6226
| C | bsd-3-clause | ehsan/angle,xuxiandi/angleproject,xin3liang/platform_external_chromium_org_third_party_angle_dx11,MIPS/external-chromium_org-third_party-angle_dx11,shairai/angleproject,MIPS/external-chromium_org-third_party-angle,xin3liang/platform_external_chromium_org_third_party_angle,RepublicMaster/angleproject,vvuk/angle-old,andr... |
aa18a176915c652969964763a767b00453655423 | source/system/Array.h | source/system/Array.h | #ifndef OOC_ARRAY_H_
#define OOC_ARRAY_H_
#define array_malloc(size) calloc(1, (size))
#define array_free free
#include <stdint.h>
#define _lang_array__Array_new(type, size) ((_lang_array__Array) { size, array_malloc((size) * sizeof(type)) });
#if defined(safe)
#define _lang_array__Array_get(array, index, type) ( \... | #ifndef OOC_ARRAY_H_
#define OOC_ARRAY_H_
#define array_malloc(size) calloc(1, (size))
#define array_free free
#include <stdint.h>
#define _lang_array__Array_new(type, size) ((_lang_array__Array) { size, array_malloc((size) * sizeof(type)) });
#if defined(safe)
#define _lang_array__Array_get(array, index, type) ( \... | Set pointer to array data to null after free | Set pointer to array data to null after free
| C | mit | firog/ooc-kean,magic-lang/ooc-kean,thomasfanell/ooc-kean,simonmika/ooc-kean,simonmika/ooc-kean,sebastianbaginski/ooc-kean,sebastianbaginski/ooc-kean,thomasfanell/ooc-kean,fredrikbryntesson/ooc-kean,firog/ooc-kean,fredrikbryntesson/ooc-kean,magic-lang/ooc-kean |
a7074f2fe3c4f0eac5efb79ea6896319038dbe9f | test/asan/TestCases/printf-4.c | test/asan/TestCases/printf-4.c | // RUN: %clang_asan -O2 %s -o %t
// RUN: %env_asan_opts=check_printf=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s
// RUN: not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s
// FIXME: sprintf is not intercepted on Windows yet.
// XFAIL: win32
#include <stdio.h>
int main() {
volatile char c = '0';
... | // RUN: %clang_asan -O2 %s -o %t
// RUN: %env_asan_opts=check_printf=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s
// RUN: not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s
// FIXME: sprintf is not intercepted on Windows yet.
// XFAIL: win32
#include <stdio.h>
int main() {
volatile char c = '0';
... | Fix order of arguments to fputs | Fix order of arguments to fputs
This time actually tested on Linux, where the test is not XFAILed.
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@263294 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 |
24aa328ddab86fd861961b1d68091d334d773d75 | slobrok/src/vespa/slobrok/server/reconfigurable_stateserver.h | slobrok/src/vespa/slobrok/server/reconfigurable_stateserver.h | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/config/helper/configfetcher.h>
#include <vespa/config/subscription/configuri.h>
#include <vespa/config-stateserver.h>
namespace vespalib {
class HealthProducer;
class MetricsP... | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/config/helper/configfetcher.h>
#include <vespa/config/subscription/configuri.h>
#include <vespa/config-stateserver.h>
namespace vespalib {
struct HealthProducer;
struct Metric... | Adjust forward declarations in slobrok. | Adjust forward declarations in slobrok.
| C | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
4fe769ebf1a4a71fb90ac7e37a747aadc07052ea | numpy/core/src/multiarray/convert_datatype.h | numpy/core/src/multiarray/convert_datatype.h | #ifndef _NPY_ARRAY_CONVERT_DATATYPE_H_
#define _NPY_ARRAY_CONVERT_DATATYPE_H_
NPY_NO_EXPORT PyObject *
PyArray_CastToType(PyArrayObject *mp, PyArray_Descr *at, int fortran);
#endif
| #ifndef _NPY_ARRAY_CONVERT_DATATYPE_H_
#define _NPY_ARRAY_CONVERT_DATATYPE_H_
NPY_NO_EXPORT PyObject *
PyArray_CastToType(PyArrayObject *mp, PyArray_Descr *at, int fortran);
NPY_NO_EXPORT int
PyArray_CastTo(PyArrayObject *out, PyArrayObject *mp);
NPY_NO_EXPORT PyArray_VectorUnaryFunc *
PyArray_GetCastFunc(PyArray_De... | Add API for datatype conversion. | Add API for datatype conversion.
| C | bsd-3-clause | rgommers/numpy,WarrenWeckesser/numpy,larsmans/numpy,ssanderson/numpy,numpy/numpy-refactor,rudimeier/numpy,Dapid/numpy,tynn/numpy,ddasilva/numpy,sigma-random/numpy,dimasad/numpy,githubmlai/numpy,skymanaditya1/numpy,BMJHayward/numpy,chatcannon/numpy,numpy/numpy-refactor,Yusa95/numpy,hainm/numpy,ewmoore/numpy,ogrisel/nump... |
05375b10cfd6e060242c9786fb7887dcd3850ebc | Wangscape/noise/module/codecs/NoiseQualityCodec.h | Wangscape/noise/module/codecs/NoiseQualityCodec.h | #pragma once
#include <spotify/json.hpp>
#include <noise/noise.h>
namespace spotify
{
namespace json
{
template<>
struct default_codec_t<noise::NoiseQuality>
{
using NoiseQuality = noise::NoiseQuality;
static codec::enumeration_t<NoiseQuality, codec::string_t> codec()
{
auto codec = codec::enume... | #pragma once
#include <spotify/json.hpp>
#include <noise/noise.h>
namespace spotify
{
namespace json
{
template<>
struct default_codec_t<noise::NoiseQuality>
{
using NoiseQuality = noise::NoiseQuality;
static codec::one_of_t<
codec::enumeration_t<NoiseQuality, codec::number_t<int>>,
codec::e... | Allow specification of NoiseQuality with an int | Allow specification of NoiseQuality with an int
| C | mit | Wangscape/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape,serin-delaunay/Wangscape,serin-delaunay/Wangscape |
23439b2341320a973b1c135abc541236de6550bf | hack_malloc.c | hack_malloc.c | #define _GNU_SOURCE
#include <stdio.h>
#include <stddef.h>
#include <unistd.h>
#include <sys/mman.h>
void* malloc(size_t size) {
printf("malloc... ");
size += sizeof(size_t);
int page_size = getpagesize();
int rem = size % page_size;
if (rem > 0) {
size += page_size - rem;
}
void* addr = mmap(0, siz... | #define _GNU_SOURCE
#include <stdio.h>
#include <stddef.h>
#include <unistd.h>
#include <sys/mman.h>
void* malloc(size_t size) {
write(STDOUT_FILENO, "malloc... ", 10);
size += sizeof(size_t);
int page_size = getpagesize();
int rem = size % page_size;
if (rem > 0) {
size += page_size - rem;
}
void* ... | Replace printf with safe write to stdout | Replace printf with safe write to stdout
| C | mit | vmarkovtsev/hack_malloc,vmarkovtsev/hack_malloc |
500af378f68af6e6438ad7375d933b0b788e8142 | src/plugins/test_swap.c | src/plugins/test_swap.c | #include <glib/gprintf.h>
int main (int argc, char **argv) {
gboolean succ = FALSE;
gchar *err_msg = NULL;
succ = bd_swap_mkswap ("/dev/xd1", "SWAP", &err_msg);
if (succ)
puts ("Succeded.");
else
g_printf ("Not succeded: %s\n", err_msg);
succ = bd_swap_swapon ("/dev/xd1", 5, &... | #include <glib/gprintf.h>
int main (int argc, char **argv) {
gboolean succ = FALSE;
gchar *err_msg = NULL;
succ = bd_swap_mkswap ("/dev/xd1", "SWAP", &err_msg);
if (succ)
puts ("Succeded.");
else
g_printf ("Not succeded: %s", err_msg);
succ = bd_swap_swapon ("/dev/xd1", 5, &er... | Remove newlines from the swap test outputs | Remove newlines from the swap test outputs
They are already included in the utility's output.
| C | lgpl-2.1 | atodorov/libblockdev,snbueno/libblockdev,rhinstaller/libblockdev,atodorov/libblockdev,atodorov/libblockdev,vpodzime/libblockdev,dashea/libblockdev,rhinstaller/libblockdev,rhinstaller/libblockdev,snbueno/libblockdev,vpodzime/libblockdev,vpodzime/libblockdev,dashea/libblockdev |
41b1df604617bdde59bb722b9247c16fa4677d94 | lib/memzip/lexermemzip.c | lib/memzip/lexermemzip.c | #include <stdlib.h>
#include "py/lexer.h"
#include "memzip.h"
mp_lexer_t *mp_lexer_new_from_file(const char *filename)
{
void *data;
size_t len;
if (memzip_locate(filename, &data, &len) != MZ_OK) {
return NULL;
}
return mp_lexer_new_from_str_len(qstr_from_str(filename), (const char *)dat... | #include <stdlib.h>
#include "py/lexer.h"
#include "py/runtime.h"
#include "py/mperrno.h"
#include "memzip.h"
mp_lexer_t *mp_lexer_new_from_file(const char *filename)
{
void *data;
size_t len;
if (memzip_locate(filename, &data, &len) != MZ_OK) {
mp_raise_OSError(MP_ENOENT);
}
return mp_l... | Make lexer constructor raise exception when file not found. | lib/memzip: Make lexer constructor raise exception when file not found.
| C | mit | blazewicz/micropython,cwyark/micropython,infinnovation/micropython,selste/micropython,cwyark/micropython,bvernoux/micropython,PappaPeppar/micropython,pozetroninc/micropython,chrisdearman/micropython,henriknelson/micropython,AriZuu/micropython,MrSurly/micropython,micropython/micropython-esp32,torwag/micropython,Peetz0r/... |
67d9df24bf6ac9d6a3397971605cb563fb35c54d | src/roman_convert_to_int.c | src/roman_convert_to_int.c | #include <string.h>
#include <stdbool.h>
#include "roman_convert_to_int.h"
#include "roman_clusters.h"
static const int ERROR = -1;
static bool starts_with(const char *str, RomanCluster cluster);
int roman_convert_to_int(const char *numeral)
{
if (!numeral) return ERROR;
int total = 0;
for (int cluster_index = ... | #include <string.h>
#include <stdbool.h>
#include "roman_convert_to_int.h"
#include "roman_clusters.h"
static const int ERROR = -1;
static bool starts_with(const char *str, RomanCluster cluster);
int roman_convert_to_int(const char *numeral)
{
if (!numeral) return ERROR;
int total = 0;
for (const RomanCluster *... | Use cluster iterator in to_int function | Use cluster iterator in to_int function
| C | mit | greghaskins/roman-calculator.c |
2c0f601424bb82be02e2334c54b2b6ccb0cae9bc | Wangscape/codecs/OptionsCodec.h | Wangscape/codecs/OptionsCodec.h | #pragma once
#include <spotify/json.hpp>
#include "Options.h"
#include "metaoutput/codecs/FilenamesCodec.h"
#include "TerrainSpecCodec.h"
#include "TileFormatCodec.h"
using namespace spotify::json::codec;
namespace spotify
{
namespace json
{
template<>
struct default_codec_t<Options>
{
static object_t<Options>... | #pragma once
#include <spotify/json.hpp>
#include "Options.h"
#include "metaoutput/codecs/FilenamesCodec.h"
#include "TerrainSpecCodec.h"
#include "TileFormatCodec.h"
using namespace spotify::json::codec;
namespace spotify
{
namespace json
{
template<>
struct default_codec_t<Options>
{
static object_t<Options>... | Revert to AlphaCalculatorMode in options codec | Revert to AlphaCalculatorMode in options codec
| C | mit | Wangscape/Wangscape,serin-delaunay/Wangscape,Wangscape/Wangscape,serin-delaunay/Wangscape,Wangscape/Wangscape |
6dee7b6820ee89ef41561a005645f0ecda59c2ea | kernel/port/data.c | kernel/port/data.c | #include <stddef.h>
#include <kernel/port/data.h>
void enq(Queue *q, List *item) {
item->next = NULL;
if(!q->tail) {
q->head = item;
q->tail = item;
} else {
q->tail->next = item;
}
}
List *deq(Queue *q) {
if(!q->head) {
return NULL;
}
List *ret = q->head;
q->head = q->head->next;
if(!q->head) {
q-... | #include <stddef.h>
#include <kernel/port/data.h>
void enq(Queue *q, List *item) {
item->next = NULL;
if(!q->tail) {
q->head = item;
q->tail = item;
} else {
q->tail->next = item;
q->tail = item;
}
}
List *deq(Queue *q) {
if(!q->head) {
return NULL;
}
List *ret = q->head;
q->head = q->head->next;
i... | Fix a bug in the queue implementation | Fix a bug in the queue implementation
Unfortunately this was not the problem with the scheduler. For some
reason we're never getting a second timer interrupt.
| C | isc | zenhack/zero,zenhack/zero,zenhack/zero |
b58c6841e09d91905747830d2d4471f55392765d | libevmjit/CompilerHelper.h | libevmjit/CompilerHelper.h | #pragma once
#include "preprocessor/llvm_includes_start.h"
#include <llvm/IR/IRBuilder.h>
#include "preprocessor/llvm_includes_end.h"
namespace dev
{
namespace eth
{
namespace jit
{
class RuntimeManager;
/// Base class for compiler helpers like Memory, GasMeter, etc.
class CompilerHelper
{
protected:
CompilerHelpe... | #pragma once
#include "preprocessor/llvm_includes_start.h"
#include <llvm/IR/IRBuilder.h>
#include "preprocessor/llvm_includes_end.h"
namespace dev
{
namespace eth
{
namespace jit
{
class RuntimeManager;
/// Base class for compiler helpers like Memory, GasMeter, etc.
class CompilerHelper
{
protected:
CompilerHelpe... | Reimplement InsertPointGuard to avoid LLVM ABI incompatibility. | Reimplement InsertPointGuard to avoid LLVM ABI incompatibility.
In general, the NDEBUG flag should match cpp-ethereum and LLVM builds. But this is hard to satisfy as we usually have one system-wide build of LLVM and different builds of cpp-ethereum. This ABI incompatibility hit OSX only in release builds as LLVM is bu... | C | mit | ethereum/evmjit,ethereum/evmjit,ethereum/evmjit |
f4836c754a5b37064d49220e1be97d46a28b9d8b | include/llvm/Intrinsics.h | include/llvm/Intrinsics.h | //===-- llvm/Instrinsics.h - LLVM Intrinsic Function Handling ---*- C++ -*-===//
//
// This file defines a set of enums which allow processing of intrinsic
// functions. Values of these enum types are returned by
// Function::getIntrinsicID.
//
//===---------------------------------------------------------------------... | //===-- llvm/Instrinsics.h - LLVM Intrinsic Function Handling ---*- C++ -*-===//
//
// This file defines a set of enums which allow processing of intrinsic
// functions. Values of these enum types are returned by
// Function::getIntrinsicID.
//
//===---------------------------------------------------------------------... | Add alpha intrinsics, contributed by Rahul Joshi | Add alpha intrinsics, contributed by Rahul Joshi
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@7372 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swif... |
68c4d8ab89f17d621f69786cbb751976afce72f4 | lib/assert2.h | lib/assert2.h |
#pragma once
#include <cassert>
#include <string>
#define assert2(expr, str) \
((expr) \
? __ASSERT_VOID_CAST (0)\
: __assert_fail ((std::string(__STRING(expr)) + "; " + (str)).c_str(), __FILE__, __LINE__, __ASSERT_FUNCTION))
|
#pragma once
#include <cassert>
#include <string>
#if __GNUC__
#define assert2(expr, str) \
((expr) \
? __ASSERT_VOID_CAST (0)\
: __assert_fail ((std::string(__STRING(expr)) + "; " + (str)).c_str(), __FILE__, __LINE__, __ASSERT_FUNCTION))
#elif __clang__
#define assert2(expr, str) \
((exp... | Work better on various versions of clang. | Work better on various versions of clang.
| C | mit | tewalds/morat,yotomyoto/morat,tewalds/morat,tewalds/morat,yotomyoto/morat,yotomyoto/morat |
359ce984aa895a88248856bb338f7c5484da1443 | crypto/openssh/version.h | crypto/openssh/version.h | /* $OpenBSD: version.h,v 1.37 2003/04/01 10:56:46 markus Exp $ */
/* $FreeBSD$ */
#ifndef SSH_VERSION
#define SSH_VERSION (ssh_version_get())
#define SSH_VERSION_BASE "OpenSSH_3.6.1p1"
#define SSH_VERSION_ADDENDUM "FreeBSD-20030423"
const char *ssh_version_get(void);
void ssh_version_set_addend... | /* $OpenBSD: version.h,v 1.37 2003/04/01 10:56:46 markus Exp $ */
/* $FreeBSD$ */
#ifndef SSH_VERSION
#define SSH_VERSION (ssh_version_get())
#define SSH_VERSION_BASE "OpenSSH_3.6.1p1"
#define SSH_VERSION_ADDENDUM "FreeBSD-20030916"
const char *ssh_version_get(void);
void ssh_version_set_addend... | Update the OpenSSH addendum string for the buffer handling fix. | Update the OpenSSH addendum string for the buffer handling fix.
| C | bsd-3-clause | jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase |
77a03785213b62287c316cf819430457078f713f | src/condor_ckpt/fcntl.h | src/condor_ckpt/fcntl.h | #if defined(AIX32) && defined(__cplusplus )
# include "fix_gnu_fcntl.h"
#elif defined(AIX32) && !defined(__cplusplus )
typedef unsigned short ushort;
# include <fcntl.h>
#elif defined(ULTRIX42) && defined(__cplusplus )
# include "fix_gnu_fcntl.h"
#else
# include <fcntl.h>
#endif
| #if defined(__cplusplus) && !defined(OSF1) /* GNU G++ */
# include "fix_gnu_fcntl.h"
#elif defined(AIX32) /* AIX bsdcc */
# typedef unsigned short ushort;
# include <fcntl.h>
#else /* Everybody else */
# include <fcntl.h>
#endif
| Make things depend on the compiler (G++, bsdcc, others) rather than on specific platforms. | Make things depend on the compiler (G++, bsdcc, others) rather than
on specific platforms.
| C | apache-2.0 | djw8605/condor,djw8605/condor,zhangzhehust/htcondor,htcondor/htcondor,bbockelm/condor-network-accounting,clalancette/condor-dcloud,bbockelm/condor-network-accounting,neurodebian/htcondor,neurodebian/htcondor,zhangzhehust/htcondor,htcondor/htcondor,djw8605/condor,zhangzhehust/htcondor,bbockelm/condor-network-accounting,... |
3bbe9e5aab0bcd51b95b3f718cb790807931d82b | chrome/browser/extensions/extension_message_handler.h | chrome/browser/extensions/extension_message_handler.h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_
#define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_
#pragma once
#include "... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_
#define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_
#pragma once
#include "... | Clarify class comment for ExtensionMessageHandler. | Clarify class comment for ExtensionMessageHandler.
TBR=jam@chromium.org
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@82674 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | yitian134/chromium,gavinp/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,ropik/chromium,ropik/chromium,adobe/chromium,adobe/ch... |
f978f33427f4f3d5273f5b13b776bfbab9e66f16 | ReactiveAlamofire/ReactiveAlamofire.h | ReactiveAlamofire/ReactiveAlamofire.h | //
// ReactiveAlamofire.h
// ReactiveAlamofire
//
// Created by Srdan Rasic on 23/04/16.
// Copyright © 2016 ReactiveKit. All rights reserved.
//
//! Project version number for ReactiveAlamofire.
FOUNDATION_EXPORT double ReactiveAlamofireVersionNumber;
//! Project version string for ReactiveAlamofire.
FOUNDATION_... | //
// ReactiveAlamofire.h
// ReactiveAlamofire
//
// Created by Srdan Rasic on 23/04/16.
// Copyright © 2016 ReactiveKit. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for ReactiveAlamofire.
FOUNDATION_EXPORT double ReactiveAlamofireVersionNumber;
//! Project version string... | Use Foundation framework instead of UIKit. | Use Foundation framework instead of UIKit.
| C | mit | ReactiveKit/ReactiveAlamofire,ReactiveKit/ReactiveAlamofire |
e2971406eb3b2ecdd211b9e7403fa02ae725b115 | misc/miscfn.h | misc/miscfn.h | #ifndef H_MISCFN
#define H_MISCFN
#include "config.h"
#if HAVE_FNMATCH_H
#include <fnmatch.h>
#else
#include "misc-fnmatch.h"
#endif
#if HAVE_GLOB_H
#include <glob.h>
#else
#include "misc-glob.h"
#endif
#if ! HAVE_S_IFSOCK
#define S_IFSOCK (0)
#endif
#if ! HAVE_S_ISLNK
#define S_ISLNK(mode) ((mode) & S_IFLNK)
#end... | #ifndef H_MISCFN
#define H_MISCFN
#include "config.h"
#if HAVE_FNMATCH_H
#include <fnmatch.h>
#else
#include "misc-fnmatch.h"
#endif
#if HAVE_GLOB_H
#include <glob.h>
#else
#include "misc-glob.h"
#endif
#if ! HAVE_S_IFSOCK
#define S_IFSOCK (0)
#endif
#if ! HAVE_S_ISLNK
#define S_ISLNK(mode) ((mode) & S_IFLNK)
#end... | Include <limits.h> if it's available. | Include <limits.h> if it's available.
| C | lgpl-2.1 | devzero2000/RPM5,devzero2000/RPM5,devzero2000/RPM5,devzero2000/RPM5,devzero2000/RPM5,devzero2000/RPM5,devzero2000/RPM5 |
971068ecfa82cea5b21a3ccc962e95b7cdb5f38d | app/tx/main.c | app/tx/main.c | #include <stdio.h>
#include <stdint.h>
#include <string.h>
#include "nrf51.h"
#include "nrf_delay.h"
#include "error.h"
#include "gpio.h"
#include "leds.h"
#include "radio.h"
void error_handler(uint32_t err_code, uint32_t line_num, char * file_name)
{
while (1)
{
for (uint8_t i = LED_START; i < LED_S... | #include <stdio.h>
#include <stdint.h>
#include <string.h>
#include "nrf51.h"
#include "nrf_delay.h"
#include "error.h"
#include "gpio.h"
#include "leds.h"
#include "radio.h"
void error_handler(uint32_t err_code, uint32_t line_num, char * file_name)
{
while (1)
{
for (uint8_t i = LED_START; i < LED_S... | Send only one packet at a time. | Send only one packet at a time.
| C | bsd-3-clause | hlnd/nrf51-simple-radio,hlnd/nrf51-simple-radio |
922128855ca81ca6d5cad13df91eb312e81057b9 | GITBlob.h | GITBlob.h | //
// GITBlob.h
// CocoaGit
//
// Created by Geoffrey Garside on 29/06/2008.
// Copyright 2008 ManicPanda.com. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "GITObject.h"
@interface GITBlob : GITObject {
NSData * data;
}
#pragma mark -
#pragma mark Properties
@property(retain) NSData * data;
#prag... | //
// GITBlob.h
// CocoaGit
//
// Created by Geoffrey Garside on 29/06/2008.
// Copyright 2008 ManicPanda.com. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "GITObject.h"
@interface GITBlob : GITObject {
NSData * data;
}
#pragma mark -
#pragma mark Properties
@property(retain) NSData * data;
#prag... | Add pragmas to differentiate init method types | Add pragmas to differentiate init method types
| C | mit | schacon/cocoagit,schacon/cocoagit,geoffgarside/cocoagit,geoffgarside/cocoagit |
e9d6b3358ac35901ccc6a4a5a317670fa469db25 | arch/arm/include/asm/smp_scu.h | arch/arm/include/asm/smp_scu.h | #ifndef __ASMARM_ARCH_SCU_H
#define __ASMARM_ARCH_SCU_H
#define SCU_PM_NORMAL 0
#define SCU_PM_DORMANT 2
#define SCU_PM_POWEROFF 3
#ifndef __ASSEMBLER__
unsigned int scu_get_core_count(void __iomem *);
void scu_enable(void __iomem *);
int scu_power_mode(void __iomem *, unsigned int);
#endif
#endif
| #ifndef __ASMARM_ARCH_SCU_H
#define __ASMARM_ARCH_SCU_H
#define SCU_PM_NORMAL 0
#define SCU_PM_DORMANT 2
#define SCU_PM_POWEROFF 3
#ifndef __ASSEMBLER__
#include <asm/cputype.h>
static inline bool scu_a9_has_base(void)
{
return read_cpuid_part_number() == ARM_CPU_PART_CORTEX_A9;
}
static inline unsigned long scu_... | Add API to detect SCU base address from CP15 | ARM: Add API to detect SCU base address from CP15
Add API to detect SCU base address from CP15.
Signed-off-by: Hiroshi Doyu <7e37d737f0c384c0dce297667d084735fade9098@nvidia.com>
Acked-by: Russell King <f6aa0246ff943bfa8602cdf60d40c481b38ed232@arm.linux.org.uk>
Signed-off-by: Stephen Warren <5ef2a23ba3aff51d1cfc8c113c... | C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Program... |
65dd7026a906f7a70ef326f18540c0b648a0ffed | include/asm-mips/mach-ip22/cpu-feature-overrides.h | include/asm-mips/mach-ip22/cpu-feature-overrides.h | /*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2003 Ralf Baechle
*/
#ifndef __ASM_MACH_IP22_CPU_FEATURE_OVERRIDES_H
#define __ASM_MACH_IP22_CPU_FEATURE_OVERRIDES_H
/*
*... | /*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2003 Ralf Baechle
*/
#ifndef __ASM_MACH_IP22_CPU_FEATURE_OVERRIDES_H
#define __ASM_MACH_IP22_CPU_FEATURE_OVERRIDES_H
/*
*... | Define some more common ip22 CPU features. | Define some more common ip22 CPU features.
Signed-off-by: Thiemo Seufer <8e77f49f827b66c39fd886f99e6ef704c1fecc26@networkno.de>
Signed-off-by: Ralf Baechle <92f48d309cda194c8eda36aa8f9ae28c488fa208@linux-mips.org>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_k... |
b191a0b5165cd6b4f8103c71719058e7b1869c0e | src/net/cearth_network.c | src/net/cearth_network.c | #include "cearth_network.h"
void
blob_init(blob *b)
{
b->size = 0;
}
void
blob_add_int8(blob *b, int8_t i)
{
b->data[b->size] = i;
b->size++;
}
void
blob_add_str(blob *b, char *str)
{
int len = strlen(str);
strcpy((char *)b->data+b->size, str);
b->size += len;
}
| #include "cearth_network.h"
| Remove all trace functions from pre 0.0.1 prototyping | Remove all trace functions from pre 0.0.1 prototyping
| C | mit | nyanpasu/cearth |
c162af7b20680c4b1ff45cfb245a2dd8a507c29a | ruby/rpm-rb.h | ruby/rpm-rb.h | #ifndef H_RPM_RB
#define H_RPM_RB
/**
* \file ruby/rpm-rb.h
* \ingroup rb_c
*
* RPM Ruby bindings "RPM" module
*/
#include "system.h"
#include <rpmiotypes.h>
#include <rpmtypes.h>
#include <rpmtag.h>
#undef xmalloc
#undef xcalloc
#undef xrealloc
#pragma GCC diagnostic ignored "-Wstrict-prototypes"
#inclu... | #ifndef H_RPM_RB
#define H_RPM_RB
/**
* \file ruby/rpm-rb.h
* \ingroup rb_c
*
* RPM Ruby bindings "RPM" module
*/
#include "system.h"
#include <rpmiotypes.h>
#include <rpmtypes.h>
#include <rpmtag.h>
/**
* The "RPM" Ruby module.
*/
extern VALUE rpmModule;
#ifdef __cplusplus
extern "C" {
#endif
/**
*... | Fix header file inclusion/define problems with xmalloc & Co and ruby | Fix header file inclusion/define problems with xmalloc & Co and ruby
| C | lgpl-2.1 | devzero2000/RPM5,devzero2000/RPM5,devzero2000/RPM5,devzero2000/RPM5,devzero2000/RPM5,devzero2000/RPM5,devzero2000/RPM5 |
697549c5dc3f200b4bc13971fe4cc19aa4bd2c74 | include/rsa.h | include/rsa.h | #ifndef _RSA_H_
#define _RSA_H_
#include "mpi.h"
/* Everything must be kept private except for n and e.
* (n,e) is the public key, (n,d) is the private key. */
typedef struct {
mpi_t n; /* modulus n = pq */
mpi_t phi; /* phi = (p-1)(q-1) */
mpi_t e; /* public exponent 1 < e < phi s.t. gcd(e,phi)=1 */
mpi_t d; ... | #ifndef _RSA_H_
#define _RSA_H_
#include "mpi.h"
/* Everything must be kept private except for n and e.
* (n,e) is the public key, (n,d) is the private key. */
typedef struct {
mpi_t n; /* modulus n = pq */
mpi_t phi; /* phi = (p-1)(q-1) */
mpi_t e; /* public exponent 1 < e < phi s.t. gcd(e,phi)=1 */
mpi_t d; ... | Use mt64_context instead of mp_rand_ctx | Use mt64_context instead of mp_rand_ctx
| C | bsd-2-clause | fmela/weecrypt,fmela/weecrypt |
c06b5c5985127d50d137673e5862909e07b590a6 | inspector/ios-inspector/ForgeModule/file/file_API.h | inspector/ios-inspector/ForgeModule/file/file_API.h | //
// file_API.h
// Forge
//
// Copyright (c) 2020 Trigger Corp. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface file_API : NSObject
+ (void)getImage:(ForgeTask*)task;
+ (void)getVideo:(ForgeTask*)task;
+ (void)getFileFromSourceDirectory:(ForgeTask*)task resource:(NSString*)resource;
+ (void... | //
// file_API.h
// Forge
//
// Copyright (c) 2020 Trigger Corp. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface file_API : NSObject
+ (void)getImage:(ForgeTask*)task;
+ (void)getVideo:(ForgeTask*)task;
+ (void)getFileFromSourceDirectory:(ForgeTask*)task resource:(NSString*)resource;
+ (void... | Rename isFile -> exists in header file too | Rename isFile -> exists in header file too
| C | bsd-2-clause | trigger-corp/trigger.io-file,trigger-corp/trigger.io-file |
7603c10e309db118e06cef5c998d7d16c0218e98 | src/models/src/NIMutableTableViewModel+Private.h | src/models/src/NIMutableTableViewModel+Private.h | //
// Copyright 2011-2014 NimbusKit
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | //
// Copyright 2011-2014 NimbusKit
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | Add proper import for NIMutableViewModel | Add proper import for NIMutableViewModel | C | apache-2.0 | kisekied/nimbus,chanffdavid/nimbus,quyixia/nimbus,panume/nimbus,JyHu/nimbus,Arcank/nimbus,bangquangvn/nimbus,bogardon/nimbus,michaelShab/nimbus,marcobgoogle/nimbus,dmishe/nimbus,dachaoisme/nimbus,dmishe/nimbus,zilaiyedaren/nimbus,bangquangvn/nimbus,Arcank/nimbus,panume/nimbus,zilaiyedaren/nimbus,quyixia/nimbus,dachaois... |
230ea3b21a8daabde9b2e0dcd93dedb5b5a87003 | ppapi/native_client/src/shared/ppapi_proxy/ppruntime.h | ppapi/native_client/src/shared/ppapi_proxy/ppruntime.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 NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PPRUNTIME_H_
#define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PPRUNTIME_H_
#include "native_client/sr... | /*
* 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 NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PPRUNTIME_H_
#define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PPRUNTIME_H_
#include "native_client/sr... | Remove declaration of IrtInit(), which is no longer defined anywhere | NaCl: Remove declaration of IrtInit(), which is no longer defined anywhere
BUG=https://code.google.com/p/nativeclient/issues/detail?id=3186
TEST=build
Review URL: https://codereview.chromium.org/157803004
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@250121 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | Jonekee/chromium.src,jaruba/chromium.src,Jonekee/chromium.src,axinging/chromium-crosswalk,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk-efl,Chilledheart/chromium,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,ondra-novak/chromium.src,ChromiumWebApps/chromium,littlstar/chromium.src,mohamed--abdel-maksoud/... |
af7220c2bebbcc2f1c49ec190d26724a0c4aed25 | drivers/sds011/sds011_saul.c | drivers/sds011/sds011_saul.c | /*
* Copyright (C) 2018 HAW-Hamburg
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*
*/
/**
* @ingroup drivers_sds011
* @{
*
* @file
* @brief SAUL adaption for SDS011 sensor
... | /*
* Copyright (C) 2018 HAW-Hamburg
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*
*/
/**
* @ingroup drivers_sds011
* @{
*
* @file
* @brief SAUL adaption for SDS011 sensor
... | Fix SAUL read error return | drivers/sds011: Fix SAUL read error return
| C | lgpl-2.1 | RIOT-OS/RIOT,cladmi/RIOT,OlegHahm/RIOT,authmillenon/RIOT,authmillenon/RIOT,rfuentess/RIOT,josephnoir/RIOT,yogo1212/RIOT,smlng/RIOT,josephnoir/RIOT,mfrey/RIOT,cladmi/RIOT,x3ro/RIOT,A-Paul/RIOT,mtausig/RIOT,BytesGalore/RIOT,smlng/RIOT,toonst/RIOT,mfrey/RIOT,RIOT-OS/RIOT,OlegHahm/RIOT,yogo1212/RIOT,kaspar030/RIOT,ant9000/... |
07bf91bd54bf71c4431072091b725f7b2efcea4c | mcp2515_dfs.h | mcp2515_dfs.h | #ifndef MCP2515_LIB_DEFINITIONS_H_
#define MCP2515_LIB_DEFINITIONS_H_
/*******************************************************************************
SPI Commands
*******************************************************************************/
#define SPI_READ 0x03
/***********************************************... | #ifndef MCP2515_LIB_DEFINITIONS_H_
#define MCP2515_LIB_DEFINITIONS_H_
/*******************************************************************************
SPI Commands
*******************************************************************************/
#define SPI_READ 0x03
#define SPI_BIT_MODIFY 0x05
/************... | Add SPI bit modify command definition | Add SPI bit modify command definition
| C | apache-2.0 | jnod/mcp2515_lib,jnod/mcp2515_lib |
67189e4682c9f0a3b7aeffdea5d05cd39ec5f5c5 | cmd/gvedit/csettings.h | cmd/gvedit/csettings.h |
#ifndef CSETTINGS_H
#define CSETTINGS_H
class MdiChild;
#include <QDialog>
#include <QString>
#include "ui_settings.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "gvc.h"
#include "gvio.h"
class CFrmSettings : public QDialog
{
Q_OBJECT
public:
CFrmSettings();
int runSettings(MdiChild*... |
#ifndef CSETTINGS_H
#define CSETTINGS_H
class MdiChild;
#include <QDialog>
#include <QString>
#include "ui_settings.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "gvc.h"
/* #include "gvio.h" */
class CFrmSettings : public QDialog
{
Q_OBJECT
public:
CFrmSettings();
int runSettings(Mdi... | Comment out unnecessary use of gvio.h | Comment out unnecessary use of gvio.h
| C | epl-1.0 | jho1965us/graphviz,pixelglow/graphviz,MjAbuz/graphviz,pixelglow/graphviz,MjAbuz/graphviz,jho1965us/graphviz,kbrock/graphviz,BMJHayward/graphviz,tkelman/graphviz,BMJHayward/graphviz,BMJHayward/graphviz,jho1965us/graphviz,jho1965us/graphviz,MjAbuz/graphviz,pixelglow/graphviz,BMJHayward/graphviz,tkelman/graphviz,ellson/gr... |
861e37ad5969f764574722f4cfc0734511cbac7f | include/asm-arm/mach/flash.h | include/asm-arm/mach/flash.h | /*
* linux/include/asm-arm/mach/flash.h
*
* Copyright (C) 2003 Russell King, All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef ASMARM_MACH_FLA... | /*
* linux/include/asm-arm/mach/flash.h
*
* Copyright (C) 2003 Russell King, All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef ASMARM_MACH_FLA... | Add memory control method to support OneNAND sync burst read | [ARM] 3057/1: Add memory control method to support OneNAND sync burst read
Patch from Kyungmin Park
This patch is required for OneNAND MTD to passing the OneNAND sync. burst read
Signed-off-by: Kyungmin Park
Signed-off-by: Russell King <f6aa0246ff943bfa8602cdf60d40c481b38ed232@arm.linux.org.uk>
| C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,Krist... |
6dcac4a16d43bc76b5e4492233cd170699f30875 | CollapsibleTable/GWCollapsibleTable/GWCollapsibleTable.h | CollapsibleTable/GWCollapsibleTable/GWCollapsibleTable.h | //
// GWCollapsibleTable.h
// CollapsibleTable
//
// Created by Greg Wang on 13-1-3.
// Copyright (c) 2013年 Greg Wang. All rights reserved.
//
@protocol GWCollapsibleTableDataSource <NSObject>
- (BOOL)tableView:(UITableView *)tableView canCollapseSection:(NSInteger)section;
- (UITableViewCell *)tableView:(UITable... | //
// GWCollapsibleTable.h
// CollapsibleTable
//
// Created by Greg Wang on 13-1-3.
// Copyright (c) 2013年 Greg Wang. All rights reserved.
//
#import "NSObject+GWCollapsibleTable.h"
#import "UITableView+GWCollapsibleTable.h"
@protocol GWCollapsibleTableDataSource <NSObject>
- (BOOL)tableView:(UITableView *)tabl... | Add necessary interfaces Add optional delegate methods | Add necessary interfaces
Add optional delegate methods
| C | mit | yocaminobien/GWCollapsibleTable,gregwym/GWCollapsibleTable |
61768b0b8e04f3a2c8353db4c2e332b499a5c03a | Test/MathLib.h | Test/MathLib.h | #pragma once
//MathLib.h
#ifndef _MATHLIB_
#define _MATHLIB_
#endif | #pragma once
//MathLib.h
#ifndef _MATHLIB_
#define _MATHLIB_
//Make some change to check if new branch is created.
#endif | Make some change to check if new branch is created. | Make some change to check if new branch is created.
| C | mit | mrlitong/fpsgame,mrlitong/fpsgame,mrlitong/Game-Engine-Development-Usage,mrlitong/fpsgame |
7fb448ae7e6ad876b225f67d8ef064a0f93e0988 | src/medida/reporting/abstract_polling_reporter.h | src/medida/reporting/abstract_polling_reporter.h | //
// Copyright (c) 2012 Daniel Lundin
//
#ifndef MEDIDA_REPORTING_ABSTRACT_POLLING_REPORTER_H_
#define MEDIDA_REPORTING_ABSTRACT_POLLING_REPORTER_H_
#include <memory>
#include "medida/types.h"
namespace medida {
namespace reporting {
class AbstractPollingReporter {
public:
Abstract... | //
// Copyright (c) 2012 Daniel Lundin
//
#ifndef MEDIDA_REPORTING_ABSTRACT_POLLING_REPORTER_H_
#define MEDIDA_REPORTING_ABSTRACT_POLLING_REPORTER_H_
#include <memory>
#include "medida/types.h"
namespace medida {
namespace reporting {
class AbstractPollingReporter {
public:
Abstract... | Comment on abstract-polling-reporter to handle the shutdown followed by start racing to modify thread before it can be joined, it is not a valid usecase anyway, so handling it thru comment. | Comment on abstract-polling-reporter to handle the shutdown followed by start racing to modify thread before it can be joined, it is not a valid usecase anyway, so handling it thru comment.
| C | apache-2.0 | janmejay/medida,janmejay/medida,janmejay/medida,janmejay/medida |
6e8f38b090c65c05dbcd4496081c5b4a09e0e375 | include/zephyr/CExport.h | include/zephyr/CExport.h | #ifndef ZEPHYR_CEXPORT_H
#define ZEPHYR_CEXPORT_H
#ifdef __cplusplus
#define Z_VAR(ns, n) n
#else
#define Z_VAR(ns, n) ns ## _ ## n
#endif
#ifdef __cplusplus
#define Z_NS_START(n) namespace n {
#define Z_NS_END }
#else
#define Z_NS_START(n)
#define Z_NS_END
#endif
#ifdef __cplusplus
#define Z_ENUM_CLASS(ns, n) enum ... | #ifndef ZEPHYR_CEXPORT_H
#define ZEPHYR_CEXPORT_H
/* declare a namespaced name */
#ifdef __cplusplus
#define ZD(ns)
#else
#define ZD(ns) ns_
#endif
/* use a namespaced name */
#ifdef __cplusplus
#define ZU(ns) ns::
#else
#define ZU(ns) ns_
#endif
/* declare a namespace */
#ifdef __cplusplus
#define Z_NS_START(n) nam... | Move to namespace include/use model | Move to namespace include/use model
Now if you want to declare a namespaced name, use ZD()
If you want to use a namesapce name, use ZU()
| C | mit | DeonPoncini/zephyr |
000ad953336509328f3540237d568f1387511943 | include/graph.h | include/graph.h | #ifndef __GRAPH_H__
#define __GRAPH_H__
#include "resources.h"
class graph {
private: //For data structures
struct vertex;
struct edge {
vertex *endpoint;
edge *opposite_edge, *next_edge;
double direction;
bool in_tree;
uint index;
conductor_info elect_info;
edge();
};
struct vertex {
edge *firs... | #ifndef __GRAPH_H__
#define __GRAPH_H__
#include "resources.h"
class graph {
private: //For data structures
struct vertex;
struct edge {
vertex *endpoint;
edge *opposite_edge, *next_edge;
double direction;
bool in_tree;
uint index;
conductor_info elect_info;
edge();
};
struct vertex {
edge *firs... | Change the function of find_tree_path | Change the function of find_tree_path
| C | mit | try-skycn/PH116-FinalProject |
9d0b2b728b9a431546b11252793844bf7506ec84 | test/Headers/arm-neon-header.c | test/Headers/arm-neon-header.c | // RUN: %clang_cc1 -triple thumbv7-apple-darwin10 -target-cpu cortex-a8 -fsyntax-only -Wvector-conversions -verify %s
// RUN: %clang_cc1 -x c++ -triple thumbv7-apple-darwin10 -target-cpu cortex-a8 -fsyntax-only -Wvector-conversions -verify %s
#include <arm_neon.h>
// Radar 8228022: Should not report incompatible vect... | // RUN: %clang_cc1 -triple thumbv7-apple-darwin10 -target-cpu cortex-a8 -fsyntax-only -Wvector-conversions -verify %s
// RUN: %clang_cc1 -triple thumbv7-apple-darwin10 -target-cpu cortex-a8 -fsyntax-only -fno-lax-vector-conversions -verify %s
// RUN: %clang_cc1 -x c++ -triple thumbv7-apple-darwin10 -target-cpu cortex-a... | Test use of arm_neon.h with -fno-lax-vector-conversions. | Test use of arm_neon.h with -fno-lax-vector-conversions.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@120642 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... |
ab2f0f4bc9ca50ccd01cb67194249b5a18b755eb | include/jive/vsdg/types.h | include/jive/vsdg/types.h | #ifndef JIVE_VSDG_TYPES_H
#define JIVE_VSDG_TYPES_H
#include <jive/vsdg/basetype.h>
#include <jive/vsdg/statetype.h>
#include <jive/vsdg/controltype.h>
#endif
| #ifndef JIVE_VSDG_TYPES_H
#define JIVE_VSDG_TYPES_H
#include <jive/vsdg/basetype.h>
#include <jive/vsdg/statetype.h>
#include <jive/vsdg/controltype.h>
#include <jive/vsdg/valuetype.h>
#endif
| Add valuetype as "standard" type | Add valuetype as "standard" type
Add to vsdg/types.h header to make it available as "standard"
type.
| C | lgpl-2.1 | phate/jive,phate/jive,phate/jive |
274b3426db25b8d63cbf25475e728ce1ee6caebd | include/net/netevent.h | include/net/netevent.h | #ifndef _NET_EVENT_H
#define _NET_EVENT_H
/*
* Generic netevent notifiers
*
* Authors:
* Tom Tucker <tom@opengridcomputing.com>
* Steve Wise <swise@opengridcomputing.com>
*
* Changes:
*/
#ifdef __KERNEL__
#include <net/dst.h>
struct netevent_redirect {
struct dst_entry *... | #ifndef _NET_EVENT_H
#define _NET_EVENT_H
/*
* Generic netevent notifiers
*
* Authors:
* Tom Tucker <tom@opengridcomputing.com>
* Steve Wise <swise@opengridcomputing.com>
*
* Changes:
*/
#ifdef __KERNEL__
struct dst_entry;
struct netevent_redirect {
struct dst_entry *old... | Remove unnecessary inclusion of dst.h | [NET]: Remove unnecessary inclusion of dst.h
The file net/netevent.h only refers to struct dst_entry * so it
doesn't need to include dst.h. I've replaced it with a forward
declaration.
Signed-off-by: Herbert Xu <ef65de1c7be0aa837fe7b25ba9a7739905af6a55@gondor.apana.org.au>
Signed-off-by: David S. Miller <fe08d3c717a... | C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,Krist... |
020bf65a067d187bdb2dd54a118f7b3f461535a1 | include/log.h | include/log.h |
#ifndef LOG_H
#define LOG_H
#include "types.h"
#include <fstream>
class Statement;
class Exp;
class LocationSet;
class RTL;
class Log
{
public:
Log() { }
virtual Log &operator<<(const char *str) = 0;
virtual Log &operator<<(Statement *s);
virtual Log &operator<<(Exp *e);
virtual Log &operator<<(RTL *r);
virt... |
#ifndef LOG_H
#define LOG_H
#include "types.h"
#include <fstream>
class Statement;
class Exp;
class LocationSet;
class RTL;
class Log
{
public:
Log() { }
virtual Log &operator<<(const char *str) = 0;
virtual Log &operator<<(Statement *s);
virtual Log &operator<<(Exp *e);
virtual Log &operator<<(RTL *r);
virt... | Fix for older MSVC compilers without operator<< for long longs (not tested on MSVC6) | Fix for older MSVC compilers without operator<< for long longs (not tested on MSVC6)
| C | bsd-3-clause | xujun10110/boomerang,xujun10110/boomerang,nemerle/boomerang,nemerle/boomerang,nemerle/boomerang,xujun10110/boomerang,TambourineReindeer/boomerang,TambourineReindeer/boomerang,nemerle/boomerang,nemerle/boomerang,nemerle/boomerang,nemerle/boomerang,xujun10110/boomerang,TambourineReindeer/boomerang,TambourineReindeer/boom... |
2eb40cde2d22b44b9d459da008fa9dcf8c39d3f2 | StateMachine/StateMachine.h | StateMachine/StateMachine.h | #ifndef StateMachine_StateMachine_h
#define StateMachine_StateMachine_h
#import "LSStateMachine.h"
#import "LSEvent.h"
#import "LSTransition.h"
#import "LSStateMachineMacros.h"
#endif
| #ifndef StateMachine_StateMachine_h
#define StateMachine_StateMachine_h
#import "LSStateMachine.h"
#import "LSStateMachineMacros.h"
#endif
| Remove private headers from global public header | Remove private headers from global public header
| C | mit | sergiou87/StateMachine,luisobo/StateMachine,sergiou87/StateMachine,brynbellomy/StateMachine-GCDThreadsafe,luisobo/StateMachine,brynbellomy/StateMachine-GCDThreadsafe |
28504f18175b27a474e076bc7f07ae70cd9798e7 | sandboxed_api/sandbox2/syscall_defs.h | sandboxed_api/sandbox2/syscall_defs.h | #ifndef SANDBOXED_API_SANDBOX2_SYSCALL_DEFS_H_
#define SANDBOXED_API_SANDBOX2_SYSCALL_DEFS_H_
#include <sys/types.h>
#include <cstdint>
#include <string>
#include <vector>
#include "absl/strings/string_view.h"
#include "absl/types/span.h"
#include "sandboxed_api/config.h"
#include "sandboxed_api/sandbox2/syscall.h"
... | #ifndef SANDBOXED_API_SANDBOX2_SYSCALL_DEFS_H_
#define SANDBOXED_API_SANDBOX2_SYSCALL_DEFS_H_
#include <sys/types.h>
#include <cstdint>
#include <string>
#include <vector>
#include "absl/strings/string_view.h"
#include "absl/types/span.h"
#include "sandboxed_api/config.h"
#include "sandboxed_api/sandbox2/syscall.h"
... | Make code not have a -Warray-parameter warning. | Make code not have a -Warray-parameter warning.
PiperOrigin-RevId: 467842322
Change-Id: Ic262a3f98fa823ef524ac02d08b2f5b8f4adf71d
| C | apache-2.0 | google/sandboxed-api,google/sandboxed-api,google/sandboxed-api,google/sandboxed-api |
60ea97b28f20e5a191cdae6ff1bde978cdcad85e | src/TantechEngine/observer.h | src/TantechEngine/observer.h | #ifndef TE_OBSERVER_H
#define TE_OBSERVER_H
namespace te
{
template <class EventType>
class Observer
{
public:
virtual ~Observer() {}
virtual void onNotify(const EventType& evt) = 0;
};
}
#endif
| #ifndef TE_OBSERVER_H
#define TE_OBSERVER_H
#include <vector>
#include <memory>
#include <cassert>
namespace te
{
template <class EventType>
class Observer
{
public:
virtual ~Observer() {}
virtual void onNotify(const EventType& evt) = 0;
};
template <class EventType>
class Notifier
{... | Add Notifier base class, complements Observer | Add Notifier base class, complements Observer
| C | mit | evinstk/TantechEngine,evinstk/TantechEngine,evinstk/TantechEngine,evinstk/TantechEngine,evinstk/TantechEngine,evinstk/TantechEngine |
749cfdeebb9f9706d8705ea46ed29bd3d9b1e834 | src/altera.c | src/altera.c | #include "mruby.h"
extern void altera_piocore_init(mrb_state *mrb);
extern void altera_piocore_final(mrb_state *mrb);
void
mrb_embed_altera_gem_init(mrb_state *mrb)
{
struct RClass *mod;
mod = mrb_define_module(mrb, "Altera")
altera_piocore_init(mrb, mod);
}
void
mrb_embed_altera_gem_final(mrb_state *mrb)
{
... | #include "mruby.h"
extern void altera_piocore_init(mrb_state *mrb, struct RClass *mod);
extern void altera_piocore_final(mrb_state *mrb);
void
mrb_embed_altera_gem_init(mrb_state *mrb)
{
struct RClass *mod;
mod = mrb_define_module(mrb, "Altera");
altera_piocore_init(mrb, mod);
}
void
mrb_embed_altera_gem_fina... | Fix prototype and syntax mistake | Fix prototype and syntax mistake
| C | mit | kimushu/mruby-altera,kimushu/mruby-altera |
a5f0f5dc4ba0d3f1d257db7542e7dedc7627c462 | Settings/Controls/Slider.h | Settings/Controls/Slider.h | // Copyright (c) 2015, Matthew Malensek.
// Distributed under the BSD 2-Clause License (see LICENSE.txt for details)
#pragma once
#include <Windows.h>
#include <CommCtrl.h>
#include "Control.h"
class Slider : public Control {
public:
Slider(int id, DialogBase &parent) :
Control(id, parent, false) {
}
... | // Copyright (c) 2015, Matthew Malensek.
// Distributed under the BSD 2-Clause License (see LICENSE.txt for details)
#pragma once
#include <Windows.h>
#include <CommCtrl.h>
#include "Control.h"
class Slider : public Control {
public:
Slider(int id, DialogBase &parent) :
Control(id, parent, false) {
}
... | Update slide event method definition | Update slide event method definition
| C | bsd-2-clause | malensek/3RVX,malensek/3RVX,malensek/3RVX |
acad4e8f9653beb8ffde0d516251dbf206bb375f | bluetooth/bdroid_buildcfg.h | bluetooth/bdroid_buildcfg.h | /*
* Copyright 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Add WBS support on Bluedroid (1/6) | Add WBS support on Bluedroid (1/6)
Bug 13764086
Change-Id: Ib861d94b752561392e315ab8f459c30588075a46
| C | apache-2.0 | maruos/android_device_lge_hammerhead,maruos/android_device_lge_hammerhead,maruos/android_device_lge_hammerhead,maruos/android_device_lge_hammerhead |
44dfccfeb025f4eb61c9f31af287c00a46a37a0d | fastlib/branches/fastlib-stl/fastlib/fx/option_impl.h | fastlib/branches/fastlib-stl/fastlib/fx/option_impl.h | #ifndef MLPACK_IO_OPTION_IMPL_H
#define MLPACK_IO_OPTION_IMPL_H
#include "io.h"
namespace mlpack {
/*
* @brief Registers a parameter with IO.
* This allows the registration of parameters at program start.
*/
template<typename N>
Option<N>::Option(bool ignoreTemplate,
N defaultValue,
... | #ifndef MLPACK_IO_OPTION_IMPL_H
#define MLPACK_IO_OPTION_IMPL_H
#include "io.h"
namespace mlpack {
/*
* @brief Registers a parameter with IO.
* This allows the registration of parameters at program start.
*/
template<typename N>
Option<N>::Option(bool ignoreTemplate,
N defaultValue,
... | Set a default value for boolean options (false). | Set a default value for boolean options (false).
| C | bsd-3-clause | minhpqn/mlpack,palashahuja/mlpack,Azizou/mlpack,ajjl/mlpack,minhpqn/mlpack,ranjan1990/mlpack,bmswgnp/mlpack,lezorich/mlpack,ranjan1990/mlpack,theranger/mlpack,thirdwing/mlpack,trungda/mlpack,stereomatchingkiss/mlpack,chenmoshushi/mlpack,BookChan/mlpack,darcyliu/mlpack,ersanliqiao/mlpack,stereomatchingkiss/mlpack,datach... |
61e076548c04d626edd4fb9a2d67bc69ac73ced8 | source/board/nina_b1.c | source/board/nina_b1.c | /**
* @file nina_b1.c
* @brief board ID for the u-blox NINA-B1 EVA maker board
*
* DAPLink Interface Firmware
* Copyright (c) 2009-2016, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use thi... | /**
* @file nina_b1.c
* @brief board ID for the u-blox NINA-B1 EVA maker board
*
* DAPLink Interface Firmware
* Copyright (c) 2009-2016, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file ex... | Convert line endings to unix format | Convert line endings to unix format
Convert the line endings for nina_b1.c to unix format. This matches
the rest of the codebase. This also fixes strange git behavior which
cause this file to show up as modified even when no changes have
been made.
| C | apache-2.0 | google/DAPLink-port,sg-/DAPLink,sg-/DAPLink,google/DAPLink-port,sg-/DAPLink,google/DAPLink-port,google/DAPLink-port |
7210b0870c273abcd45c9d7663623242a846e256 | mc/inc/LinkDef.h | mc/inc/LinkDef.h | // @(#)root/mc:$Name: $:$Id: LinkDef.h,v 1.2 2002/04/26 08:46:10 brun Exp $
#ifdef __CINT__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ global gMC;
#pragma link C++ enum PDG_t;
#pragma link C++ enum TMCProcess;
#pragma link C++ class TVirtualMC+;
... | // @(#)root/mc:$Name: $:$Id: LinkDef.h,v 1.2 2002/04/26 09:25:02 brun Exp $
#ifdef __CINT__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ global gMC;
#pragma link C++ enum PDG_t;
#pragma link C++ enum TMCProcess;
#pragma link C++ class TVirtualMC+;
... | Add TMCVerbose to the list of mc classes | Add TMCVerbose to the list of mc classes
git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@6190 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | satyarth934/root,dfunke/root,tc3t/qoot,georgtroska/root,georgtroska/root,perovic/root,sawenzel/root,alexschlueter/cern-root,kirbyherm/root-r-tools,arch1tect0r/root,abhinavmoudgil95/root,zzxuanyuan/root-compressor-dummy,cxx-hep/root-cern,agarciamontoro/root,nilqed/root,abhinavmoudgil95/root,zzxuanyuan/root-compressor-du... |
d6631b5abcdb414436c0a90bc11ba0cd4808eda0 | inc/fftw_hao.h | inc/fftw_hao.h | #ifndef FFTW_HAO_H
#define FFTW_HAO_H
#include "fftw_define.h"
class FFTServer
{
int dimen;
int* n;
int L;
std::complex<double>* inforw;
std::complex<double>* outforw;
std::complex<double>* inback;
std::complex<double>* outback;
fftw_plan planforw;
fftw_plan planback;
public:
... | #ifndef FFTW_HAO_H
#define FFTW_HAO_H
#include "fftw_define.h"
class FFTServer
{
public:
int dimen;
int* n;
int L;
std::complex<double>* inforw;
std::complex<double>* outforw;
std::complex<double>* inback;
std::complex<double>* outback;
fftw_plan planforw;
fftw_plan planback;
... | Remove friend function in FFTServer. | Remove friend function in FFTServer.
| C | mit | hshi/fftw_lib_hao,hshi/fftw_lib_hao |
9150976b9768c6f92fdf56d50f5f02e0b226b2ee | cuser/acpica/acenv_header.h | cuser/acpica/acenv_header.h | #include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#define ACPI_MACHINE_WIDTH __INTPTR_WIDTH__
#define ACPI_SINGLE_THREADED
#define ACPI_USE_LOCAL_CACHE
#define ACPI_USE_NATIVE_DIVIDE
#define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED
#undef ACPI_GET_FUNCTION_NAME
#ifdef ACPI_FULL_DEBU... | #include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#define ACPI_MACHINE_WIDTH __INTPTR_WIDTH__
#define ACPI_SINGLE_THREADED
#define ACPI_USE_LOCAL_CACHE
#define ACPI_USE_NATIVE_DIVIDE
#define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED
#undef ACPI_GET_FUNCTION_NAME
#ifdef ACPI_FULL_DEBU... | Remove some of ACPICA's x32 support | Remove some of ACPICA's x32 support
To actually work properly in x32, it would need to manage mappings of
physical memory into the lower 4GB. Let's just require that you build it
in 64-bit mode...
| C | mit | olsner/os,olsner/os,olsner/os,olsner/os |
8323e87f08a46398ae1ca4103e92b2cfe07c94a1 | src/client.h | src/client.h | #ifndef _client_h_
#define _client_h_
#define DEFAULT_PORT 4080
void client_enable();
void client_disable();
int get_client_enabled();
void client_connect(char *hostname, int port);
void client_start();
void client_stop();
void client_send(char *data);
char *client_recv();
void client_version(int version);
void clien... | #ifndef _client_h_
#define _client_h_
#ifdef _MSC_VER
#define snprintf _snprintf
#endif
#define DEFAULT_PORT 4080
void client_enable();
void client_disable();
int get_client_enabled();
void client_connect(char *hostname, int port);
void client_start();
void client_stop();
void client_send(char *data);
char *clie... | Add Visual Studio 2013 fix from omnus | Add Visual Studio 2013 fix from omnus
| C | mit | DanielOaks/Craft,naxIO/magebattle,naxIO/magebattle,DanielOaks/Craft |
e1050535819445459bb97a5c690b20780b5a3b5f | include/machine/hardware.h | include/machine/hardware.h | /*
* Copyright 2014, General Dynamics C4 Systems
*
* This software may be distributed and modified according to the terms of
* the GNU General Public License version 2. Note that NO WARRANTY is provided.
* See "LICENSE_GPLv2.txt" for details.
*
* @TAG(GD_GPL)
*/
#ifndef __MACHINE_HARDWARE_H
#define __MACHINE_H... | /*
* Copyright 2014, General Dynamics C4 Systems
*
* This software may be distributed and modified according to the terms of
* the GNU General Public License version 2. Note that NO WARRANTY is provided.
* See "LICENSE_GPLv2.txt" for details.
*
* @TAG(GD_GPL)
*/
#ifndef __MACHINE_HARDWARE_H
#define __MACHINE_H... | Update prototype of maskInterrupt to match implementations. | Update prototype of maskInterrupt to match implementations.
The prototype will ultimately be removed, but the mismatch is presently
breaking verification.
| C | bsd-2-clause | cmr/seL4,cmr/seL4,cmr/seL4 |
ab42abde834a306787fee9b66f6e482501395e3b | parser_tests.c | parser_tests.c | #include "parser.h"
#include "ast.h"
#include "tests.h"
void test_parse_number();
int main() {
test_parse_number();
return 0;
}
struct token *make_token(enum token_type tk_type, char* str, double dbl,
int number) {
struct token *tk = malloc(sizeof(struct token));
tk->type = tk_type;
if (t... | #include "parser.h"
#include "ast.h"
#include "tests.h"
void test_parse_number();
int main() {
test_parse_number();
return 0;
}
struct token *make_token(enum token_type tk_type, char* str, double dbl,
int number) {
struct token *tk = malloc(sizeof(struct token));
tk->type = tk_type;
if (t... | Fix bug in parser tests | Fix bug in parser tests
The act of parsing the ast pops the token from the token list, so we need
a pointer to the token for our assertion.
| C | mit | iankronquist/yaz,iankronquist/yaz |
b5b27a8a3401ba739778049c258aa8cd52c65d80 | client_encoder/win/dshow_util.h | client_encoder/win/dshow_util.h | // Copyright (c) 2012 The WebM project authors. All Rights Reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS. All contributing projec... | // Copyright (c) 2012 The WebM project authors. All Rights Reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS. All contributing projec... | Fix release mode compile error. | Fix release mode compile error.
odbgstream must always be included before hrtext.
Change-Id: I184e8e9ec61c51b8f7e3f5d38135dfa85405d69e
| C | bsd-3-clause | kim42083/webm.webmlive,iniwf/webm.webmlive,Acidburn0zzz/webm.webmlive,abwiz0086/webm.webmlive,Maria1099/webm.webmlive,abwiz0086/webm.webmlive,reimaginemedia/webm.webmlive,kalli123/webm.webmlive,iniwf/webm.webmlive,felipebetancur/webmlive,kleopatra999/webm.webmlive,felipebetancur/webmlive,kalli123/webm.webmlive,gshORTON... |
41bde8c2fb193aaa8ebefe7d42b32fb0e12626e9 | test/CodeGen/code-coverage.c | test/CodeGen/code-coverage.c | // RUN: %clang -O0 -S -mno-red-zone -fprofile-arcs -ftest-coverage -emit-llvm %s -o - | FileCheck %s
// <rdar://problem/12843084>
int test1(int a) {
switch (a % 2) {
case 0:
++a;
case 1:
a /= 2;
}
return a;
}
// Check tha the `-mno-red-zone' flag is set here on the generated functions.
// CHECK: vo... | // RUN: %clang_cc1 -O0 -emit-llvm -disable-red-zone -femit-coverage-notes -femit-coverage-data %s -o - | FileCheck %s
// <rdar://problem/12843084>
int test1(int a) {
switch (a % 2) {
case 0:
++a;
case 1:
a /= 2;
}
return a;
}
// Check tha the `-mno-red-zone' flag is set here on the generated functi... | Use correct flags for this test. | Use correct flags for this test.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@169768 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-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-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl... |
318d87ddc093ded8e70bb41204079c45e73b4e5e | os/atTime.h | os/atTime.h |
#ifndef AT_TIME_H
#define AT_TIME_H
// Under Windows, define the gettimeofday() function with corresponding types
#ifdef _MSC_VER
#include <windows.h>
#include <time.h>
// TYPES
struct timezone
{
int tz_minuteswest;
int tz_dsttime;
};
// FUNCTIONS
int gettimeofda... |
#ifndef AT_TIME_H
#define AT_TIME_H
// Under Windows, define the gettimeofday() function with corresponding types
#ifdef _MSC_VER
#include <windows.h>
#include <time.h>
#include "atSymbols.h"
// TYPES
struct timezone
{
int tz_minuteswest;
int tz_dsttime;
};
// FU... | Add the atSymbols to this so the getTimeOfDay function was usable outside of the windows dll. | Add the atSymbols to this so the getTimeOfDay function was usable outside of the windows dll.
| C | apache-2.0 | ucfistirl/atlas,ucfistirl/atlas |
44b9b99aaa607272a4e90ae42d4aba051b85fb22 | 3RVX/VolumeSlider.h | 3RVX/VolumeSlider.h | #pragma once
#include "OSD\OSD.h"
#include "MeterWnd\MeterWnd.h"
class VolumeSlider : public OSD {
public:
VolumeSlider(HINSTANCE hInstance, Settings &settings);
void Hide();
private:
MeterWnd _mWnd;
};
| #pragma once
#include "OSD\OSD.h"
#include "SliderWnd.h"
class VolumeSlider : public OSD {
public:
VolumeSlider(HINSTANCE hInstance, Settings &settings);
void Hide();
private:
SliderWnd _sWnd;
};
| Use a sliderwnd instance to implement the volume slider | Use a sliderwnd instance to implement the volume slider
| C | bsd-2-clause | malensek/3RVX,malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX,Soulflare3/3RVX |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.