after stringlengths 72 2.11k | before stringlengths 21 1.55k | diff stringlengths 85 2.31k | instruction stringlengths 20 1.71k | license stringclasses 13
values | repos stringlengths 7 82.6k | commit stringlengths 40 40 |
|---|---|---|---|---|---|---|
#include "syshead.h"
#include "skbuff.h"
struct sk_buff *alloc_skb(unsigned int size)
{
struct sk_buff *skb = malloc(sizeof(struct sk_buff));
memset(skb, 0, sizeof(struct sk_buff));
skb->data = malloc(size);
memset(skb->data, 0, size);
skb->head = skb->data;
skb->tail = skb->data;
skb... | #include "syshead.h"
#include "skbuff.h"
struct sk_buff *alloc_skb(unsigned int size)
{
struct sk_buff *skb = malloc(sizeof(struct sk_buff));
memset(skb, 0, sizeof(struct sk_buff));
skb->data = malloc(size);
memset(skb->data, 0, size);
skb->head = skb->data;
skb->tail = skb->data;
skb... | ---
+++
@@ -18,7 +18,7 @@
void free_skb(struct sk_buff *skb)
{
- free(skb->data);
+ free(skb->head);
free(skb);
}
| Fix pointer in skb free routine
You cannot pass a different memory location to malloc than what it was
originally allocated with :p
| mit | saminiir/level-ip,saminiir/level-ip | 14dd5b240b3b619889aef85184704448c1b05dba |
# ifndef COMMONPARAMS_H
# define COMMONPARAMS_H
struct CommonParams{
int nx,ny,nz;
int NX,NY,NZ;
int rank;
int np;
int nbrL;
int nbrR;
int xOff;
int iskip;
int jskip;
int kskip;
int nstep;
int numOutputs;
double dx,dy,dz;
double LX,LY,LZ;
double dt;
};
# endif // COMMO... |
# ifndef COMMONPARAMS_H
# define COMMONPARAMS_H
struct CommonParams{
int nx,ny,nz;
int NX,NY,NZ;
int rank;
int np;
int xOff;
int iskip;
int jskip;
int kskip;
int nstep;
int numOutputs;
double dx,dy,dz;
double LX,LY,LZ;
double dt;
};
# endif // COMMONPARAMS_H
| ---
+++
@@ -8,6 +8,8 @@
int NX,NY,NZ;
int rank;
int np;
+ int nbrL;
+ int nbrR;
int xOff;
int iskip;
int jskip; | Add SfieldFD class and TIPS3 and TIPS4 classes to phase_field app
| mit | paulmillett/meso | dae8629cff132d3abd5ae83852380b568fbf654a |
#ifndef HEADER_OPENSSLV_H
#define HEADER_OPENSSLV_H
/* Numeric release version identifier:
* MMNNFFRBB: major minor fix final beta/patch
* For example:
* 0.9.3-dev 0x00903000
* 0.9.3beta1 0x00903001
* 0.9.3 0x00903100
* 0.9.3a 0x00903101
* 1.2.3z 0x1020311a
*/
#define OPENSSL_VERSION_NUMBER 0x00903000L
#define... | #ifndef HEADER_OPENSSLV_H
#define HEADER_OPENSSLV_H
#define OPENSSL_VERSION_NUMBER 0x0923 /* Version 0.9.1c is 0913 */
#define OPENSSL_VERSION_TEXT "OpenSSL 0.9.2c 01 Apr 1999"
#define OPENSSL_VERSION_PTEXT " part of " OPENSSL_VERSION_TEXT
#endif /* HEADER_OPENSSLV_H */
| ---
+++
@@ -1,8 +1,17 @@
#ifndef HEADER_OPENSSLV_H
#define HEADER_OPENSSLV_H
-#define OPENSSL_VERSION_NUMBER 0x0923 /* Version 0.9.1c is 0913 */
-#define OPENSSL_VERSION_TEXT "OpenSSL 0.9.2c 01 Apr 1999"
+/* Numeric release version identifier:
+ * MMNNFFRBB: major minor fix final beta/patch
+ * For example:
+ * 0... | Switch to new version numbering scheme.
| apache-2.0 | openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl | e90c7729467108ffd6f813ade011c7ec5ced9680 |
#include <stdlib.h>
#include <mqtt3.h>
mqtt3_context *mqtt3_context_init(int sock)
{
mqtt3_context *context;
context = malloc(sizeof(mqtt3_context));
if(!context) return NULL;
context->next = NULL;
context->sock = sock;
context->last_msg_in = time(NULL);
context->last_msg_out = time(NULL);
context->keepali... | #include <stdlib.h>
#include <mqtt3.h>
mqtt3_context *mqtt3_context_init(int sock)
{
mqtt3_context *context;
context = malloc(sizeof(mqtt3_context));
if(!context) return NULL;
context->next = NULL;
context->sock = sock;
context->last_msg_in = time(NULL);
context->last_msg_out = time(NULL);
context->keepali... | ---
+++
@@ -28,6 +28,10 @@
if(context->sock != -1){
mqtt3_socket_close(context);
}
+ if(context->clean_start){
+ mqtt3_db_subs_clean_start(context);
+ mqtt3_db_client_delete(context);
+ }
if(context->id) free(context->id);
/* FIXME - clean messages and subscriptions */
free(context); | Delete client info / subscription info on disconnect for clean_start == true.
| bsd-3-clause | zlargon/mosquitto,zlargon/mosquitto,zlargon/mosquitto,zlargon/mosquitto,zlargon/mosquitto | 5d55abcfb068c87366329eae8f0502781145b57d |
/*
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#im... | /*
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#im... | ---
+++
@@ -10,7 +10,9 @@
#import <UIKit/UIKit.h>
-typedef UIView *(^CKComponentRootViewHitTestHook)(CKComponentRootView *rootView, CGPoint point, UIEvent *event);
+#import <ComponentKit/CKComponentRootView.h>
+
+typedef UIView *(^CKComponentRootViewHitTestHook)(UIView *rootView, CGPoint point, UIEvent *event);
... | Change type of view passed to hit test hooks
If we want to support non-CKComponentRootViews that use these hooks, it has to be a generic UIView.
| bsd-3-clause | ezc/componentkit,dshahidehpour/componentkit,avnerbarr/componentkit,dstnbrkr/componentkit,SummerHanada/componentkit,mcohnen/componentkit,adamdahan/componentkit,pairyo/componentkit,mcohnen/componentkit,stevielu/componentkit,avnerbarr/componentkit,inbilin-inc/componentkit,lydonchandra/componentkit,liyong03/componentkit,ad... | 1e8ee5c91c4f254e5247f1c50bc4eb5e0edb09a6 |
// PARAM: --enable ana.int.interval
#include <stdlib.h>
#include <assert.h>
int main() {
unsigned long ul;
if (ul <= 0UL) {
__goblint_check(ul == 0UL);
} else {
__goblint_check(ul != 0UL);
}
if (ul > 0UL) {
__goblint_check(ul != 0UL);
} else {
__goblint_check(ul == 0UL);
}
if (! (ul ... | // PARAM: --enable ana.int.interval
#include <stdlib.h>
#include <assert.h>
int main() {
unsigned long ul;
if (ul <= 0UL) {
__goblint_check(ul == 0UL);
} else {
__goblint_check(ul != 0UL);
}
if (ul > 0UL) {
__goblint_check(ul != 0UL);
} else {
__goblint_check(ul == 0UL);
}
if (! (ul ... | ---
+++
@@ -22,7 +22,7 @@
} else {
__goblint_check(ul != 0UL);
}
-
+
unsigned int iu;
if (iu <= 0UL) {
__goblint_check(iu == 0UL);
@@ -45,7 +45,7 @@
int i;
if (! (i > 0)) {
-
+
} else {
__goblint_check(i != 0);
} | Remove trailing spaces in test case.
| mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | 732d189a86d86f281a8b779dce4e28365624f918 |
/**
* @file
*
* @date Jul 18, 2013
* @author: Anton Bondarev
*/
#include <kernel/task.h>
#include <kernel/thread.h>
#include <err.h>
#include <kernel/thread/thread_alloc.h>
#include <hal/arch.h> /*only for arch_idle */
#include <hal/cpu.h>
#include <kernel/cpu/cpu.h>
/*
* Function, which does nothing. For idl... | /**
* @file
*
* @date Jul 18, 2013
* @author: Anton Bondarev
*/
#include <kernel/task.h>
#include <kernel/thread.h>
#include <kernel/thread/thread_alloc.h>
#include <hal/arch.h> /*only for arch_idle */
#include <hal/cpu.h>
#include <kernel/cpu/cpu.h>
/*
* Function, which does nothing. For idle_thread.
*/
sta... | ---
+++
@@ -7,6 +7,7 @@
#include <kernel/task.h>
#include <kernel/thread.h>
+#include <err.h>
#include <kernel/thread/thread_alloc.h>
#include <hal/arch.h> /*only for arch_idle */
@@ -27,20 +28,18 @@
struct thread *idle_thread_create(void) {
struct thread *t;
- sched_priority_t prior;
- if (!(t = threa... | thread: Rework idle thread a little | bsd-2-clause | embox/embox,Kefir0192/embox,Kefir0192/embox,abusalimov/embox,Kefir0192/embox,Kakadu/embox,Kakadu/embox,mike2390/embox,Kakadu/embox,mike2390/embox,embox/embox,embox/embox,embox/embox,vrxfile/embox-trik,Kefir0192/embox,mike2390/embox,abusalimov/embox,embox/embox,gzoom13/embox,Kefir0192/embox,vrxfile/embox-trik,mike2390/e... | c06d2e9315ecd8c1cda65aab7a2f024fd540c8ae |
#ifndef ENGPAR_SIDES_H
#define ENGPAR_SIDES_H
#include <ngraph.h>
#include <PCU.h>
#include "engpar_container.h"
#include <engpar_metrics.h>
#include "engpar_diffusive_input.h"
namespace engpar {
class Sides : public Container<int> {
public:
Sides(agi::Ngraph* g, agi::etype t) {
agi::Ngraph* graph = g;... | #ifndef ENGPAR_SIDES_H
#define ENGPAR_SIDES_H
#include <ngraph.h>
#include <PCU.h>
#include "engpar_container.h"
#include <engpar_metrics.h>
#include "engpar_diffusive_input.h"
namespace engpar {
class Sides : public Container<int> {
public:
Sides(agi::Ngraph* g, agi::etype t) {
agi::Ngraph* graph = g;... | ---
+++
@@ -20,11 +20,11 @@
if (res.size()>1) {
agi::Peers::iterator itr;
for (itr=res.begin();itr!=res.end();itr++) {
- if (*itr!=PCU_Comm_Self()) {
- increment2(*itr);
+ if (*itr != PCU_Comm_Self()) {
+ (*this)[*itr]+=g->weight(edge);
... | Add edge weights to side calculations
| bsd-3-clause | SCOREC/EnGPar,SCOREC/EnGPar,SCOREC/EnGPar | 947bb5ff14287bac17e03a6de4998384a6b72afe |
#include <stdio.h>
#include "aes.h"
static void aes_encrypt_block_openssl(const unsigned char *, unsigned char *, const AES_KEY *);
static void aes_encrypt_block_aesni(const unsigned char *, unsigned char *, const AES_KEY *);
int
use_aesni()
{
return 0;
}
void
aes_encrypt_block(const unsigned char *in, unsigned ch... | #include <stdio.h>
#include "aes.h"
static void aes_encrypt_block_openssl(const unsigned char *, unsigned char *, const AES_KEY *);
static void aes_encrypt_block_aesni(const unsigned char *, unsigned char *, const AES_KEY *);
int
use_aesni()
{
return 0;
}
void
aes_encrypt_block(const unsigned char *in, unsigned ch... | ---
+++
@@ -14,7 +14,14 @@
void
aes_encrypt_block(const unsigned char *in, unsigned char *out, const AES_KEY *key)
{
- if (use_aesni())
+ static int aesni;
+
+ if (aesni == 0)
+ {
+ aesni = use_aesni();
+ }
+
+ if (aesni == 1)
{
aes_encrypt_block_aesni(in, out, key);
} | Use a static variable to track whether to use AES-NI
| bsd-2-clause | seankelly/aesni,seankelly/aesni | f969a9b919fb9765c8f955ab2c68284c41abb097 |
/*
*
* Copyright 2017 Asylo 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 2017 Asylo 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... | ---
+++
@@ -26,11 +26,11 @@
extern "C" {
#endif
-inline uint16_t bswap_16(const uint16_t &n) { return __builtin_bswap16(n); }
+inline uint16_t bswap_16(uint16_t n) { return __builtin_bswap16(n); }
-inline uint32_t bswap_32(const uint32_t &n) { return __builtin_bswap32(n); }
+inline uint32_t bswap_32(uint32_t n)... | Remove pass by reference in bswap functions
This is a simple bug fix to make these functions compatible with C
instead of only with C++.
PiperOrigin-RevId: 205919772
| apache-2.0 | google/asylo,google/asylo,google/asylo,google/asylo,google/asylo,google/asylo | fdb4244b9caf7c1d3b06912796e4a87f583ed1fa |
//
// BotKit.h
// BotKit
//
// Created by Mark Adams on 9/28/12.
// Copyright (c) 2012 thoughtbot. All rights reserved.
//
#import "BKCoreDataManager.h"
#import "BKManagedViewController.h"
#import "BKManagedTableViewController.h"
#import "NSObject+BKCoding.h"
#import "NSArray+ObjectAccess.h"
#import "NSDate+Relati... | //
// BotKit.h
// BotKit
//
// Created by Mark Adams on 9/28/12.
// Copyright (c) 2012 thoughtbot. All rights reserved.
//
#import "BKCoreDataManager.h"
#import "BKManagedViewController.h"
#import "BKManagedTableViewController.h"
#import "NSObject+Coding.h"
#import "NSArray+ObjectAccess.h"
#import "NSDate+Relative... | ---
+++
@@ -9,7 +9,7 @@
#import "BKCoreDataManager.h"
#import "BKManagedViewController.h"
#import "BKManagedTableViewController.h"
-#import "NSObject+Coding.h"
+#import "NSObject+BKCoding.h"
#import "NSArray+ObjectAccess.h"
#import "NSDate+RelativeDates.h"
#import "UIColor+AdjustColor.h" | Fix reference to BKCoding category
| mit | thoughtbot/BotKit,thoughtbot/BotKit | e6f3a0156453cfd376e90f50ee93acfda2b03e9e |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "amath.h"
#define BUF_SIZE 1024
int main(int argc, char *argv[])
{
char buffer[BUF_SIZE];
char *content = "";
while (fgets(buffer, BUF_SIZE, stdin))
asprintf(&content, "%s%s", content, buffer);
char *result = amath_to_mathml(content);
printf... | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "amath.h"
#define BUF_SIZE 1024
int main(int argc, char *argv[])
{
char buffer[BUF_SIZE];
char *content = "";
while (fgets(buffer, BUF_SIZE, stdin))
asprintf(&content, "%s%s", content, buffer);
char *result = amath_to_mathml(content);
printf... | ---
+++
@@ -14,7 +14,7 @@
asprintf(&content, "%s%s", content, buffer);
char *result = amath_to_mathml(content);
- printf("<math>%s</math>", result);
+ printf("<math xmlns=\"http://www.w3.org/1998/Math/MathML\">%s</math>", result);
if (strlen(result) > 0) free(result);
if (strlen(content) > 0) free(conten... | Add XML namespace to math element
The MathML XML namespace isn't needed in context of HTML5 (and I find it a bit verbose), but are used in other applications, e.g. LibreOffice's "Import MathML from Clipboard". Probably should be an command line argument. | isc | camoy/amath,camoy/amath,camoy/amath | 3057d837d3f50cd1651540e71ff6bbfbb06be9e2 |
#include "riot_arduino_uno.h"
#include "utils.h"
riot_arduino_uno_sinks* riot_arduino_uno_sinks_create() {
riot_arduino_uno_sinks *sinks = xmalloc(sizeof(riot_arduino_uno_sinks));
return sinks;
}
riot_arduino_uno_sources* riot_arduino_uno_sources_create() {
riot_arduino_uno_sources *sources = xmalloc(sizeof(rio... | #include "riot_arduino_uno.h"
#include "utils.h"
riot_arduino_uno_sinks* riot_arduino_uno_sinks_create() {
riot_arduino_uno_sinks *sinks = xmalloc(sizeof(riot_arduino_uno_sinks));
return sinks;
}
riot_arduino_uno_sources* riot_arduino_uno_sources_create() {
riot_arduino_uno_sources *sources = xmalloc(sizeof(rio... | ---
+++
@@ -10,3 +10,22 @@
riot_arduino_uno_sources *sources = xmalloc(sizeof(riot_arduino_uno_sources));
return sources;
};
+
+int riot_arduino_uno_run(riot_arduino_uno_main main) {
+ if(main == NULL) {
+ return -1;
+ }
+ riot_arduino_uno_sources *sources = riot_arduino_uno_sources_create();
+ if(sourc... | Add basic riot_run function definition
| mit | artfuldev/RIoT | b70c1ec7f3a81a044b1e42c0f25b8d083810a177 |
//
// lineart.h
// LineArt
//
// Created by Allek Mott on 10/1/15.
// Copyright © 2015 Loop404. All rights reserved.
//
#ifndef lineart_h
#define lineart_h
#include <stdio.h>
#define MAX_LINE_LENGTH 200
// data structure for line
// (x1, y1) = inital point
// (x2, y2) = final point
struct line {
int x1;
... | //
// lineart.h
// LineArt
//
// Created by Allek Mott on 10/1/15.
// Copyright © 2015 Loop404. All rights reserved.
//
#ifndef lineart_h
#define lineart_h
#include <stdio.h>
#define MAX_LINE_LENGTH 200
// data structure for line
// (x1, y1) = inital point
// (x2, y2) = final point
struct line {
int x1;
... | ---
+++
@@ -29,6 +29,13 @@
int y;
};
+// data structure for node
+// in linked list of lines
+struct node {
+ struct line *line;
+ struct node *next;
+};
+
// Generate displacement value for new line
int genDifference();
@@ -43,4 +50,8 @@
// Generate next line in sequence
void genNextLine(struct l... | Add list function declarations, node structure
| apache-2.0 | tchieze/LineArt | 51c7e9a45e870e07de66880248be05d5b73dd249 |
#define ACPI_MACHINE_WIDTH 64
#define ACPI_SINGLE_THREADED
#define ACPI_USE_LOCAL_CACHE
#define ACPI_INLINE inline
#define ACPI_USE_NATIVE_DIVIDE
#define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED
#ifdef ACPI_FULL_DEBUG
#define ACPI_DEBUG_OUTPUT
#define ACPI_DISASSEMBLER
// Depends on threading support
#define ACPI... | #define ACPI_MACHINE_WIDTH 64
#define ACPI_SINGLE_THREADED
#define ACPI_USE_LOCAL_CACHE
#define ACPI_INLINE inline
#define ACPI_USE_NATIVE_DIVIDE
#define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED
#ifdef ACPI_FULL_DEBUG
#define ACPI_DEBUG_OUTPUT
#define ACPI_DISASSEMBLER
// Depends on threading support
#define ACPI... | ---
+++
@@ -12,7 +12,7 @@
// Depends on threading support
#define ACPI_DEBUGGER
-#define ACPI_DBG_TRACK_ALLOCATIONS
+//#define ACPI_DBG_TRACK_ALLOCATIONS
#define ACPI_GET_FUNCTION_NAME __FUNCTION__
#else | Disable allocation tracking (it appears to be broken)
| mit | olsner/os,olsner/os,olsner/os,olsner/os | 7214f0aa8bfbe71e69e3340bda1f2f4411db8ff0 |
//===--- SymbolCollector.h ---------------------------------------*- C++-*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===--- SymbolCollector.h ---------------------------------------*- C++-*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | ---
+++
@@ -32,7 +32,7 @@
void finish() override;
- SymbolSlab takeSymbols() const { return std::move(Symbols); }
+ SymbolSlab takeSymbols() { return std::move(Symbols); }
private:
// All Symbols collected from the AST. | [clangd] Remove the const specifier of the takeSymbol method
otherwise we will copy an object.
git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@320574 91177308-0d34-0410-b5e6-96231b3b80d8
| apache-2.0 | llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra | 518d3b528894007e746413079241cfba4ae5c07a |
// RUN: %clang_cc1 "-triple" "x86_64-apple-darwin3.0.0-iphoneos" -fsyntax-only -verify %s
void f0(int) __attribute__((availability(ios,introduced=2.0,deprecated=2.1)));
void f1(int) __attribute__((availability(ios,introduced=2.1)));
void f2(int) __attribute__((availability(ios,introduced=2.0,deprecated=3.0)));
void f3... | // RUN: %clang_cc1 "-triple" "x86_64-apple-darwin3.0.0-iphoneos" -fsyntax-only -verify %s
void f0(int) __attribute__((availability(ios,introduced=2.0,deprecated=2.1)));
void f1(int) __attribute__((availability(ios,introduced=2.1)));
void f2(int) __attribute__((availability(ios,introduced=2.0,deprecated=3.0)));
void f3... | ---
+++
@@ -6,10 +6,16 @@
void f3(int) __attribute__((availability(ios,introduced=3.0)));
void f4(int) __attribute__((availability(macosx,introduced=10.1,deprecated=10.3,obsoleted=10.5), availability(ios,introduced=2.0,deprecated=2.1,obsoleted=3.0))); // expected-note{{explicitly marked unavailable}}
+void f5(int... | Test attribute merging for the availability attribute.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@128334 91177308-0d34-0410-b5e6-96231b3b80d8
| apache-2.0 | apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl... | 6cc425e21330a5fa456077def0fc727b92e6ecde |
#include <arch/x64/port.h>
#include <truth/panic.h>
#define TEST_RESULT_PORT_NUMBER 0xf4
void test_shutdown_status(enum status status) {
logf(Log_Debug, "Test shutting down with status %s (%d)\n", status_message(status), status);
write_port(status, TEST_RESULT_PORT_NUMBER);
halt();
assert(Not_Reached)... | #include <arch/x64/port.h>
#include <truth/panic.h>
#define TEST_RESULT_PORT_NUMBER 0xf4
void test_shutdown_status(enum status status) {
logf(Log_Debug, "Test shutting down with status %s (%d)\n", status_message(status), status);
write_port(status, TEST_RESULT_PORT_NUMBER);
//__asm__("movb $0x0, %al; outb %a... | ---
+++
@@ -6,10 +6,6 @@
void test_shutdown_status(enum status status) {
logf(Log_Debug, "Test shutting down with status %s (%d)\n", status_message(status), status);
write_port(status, TEST_RESULT_PORT_NUMBER);
- //__asm__("movb $0x0, %al; outb %al, $0xf4");
- __asm__("movb $0xf4, %al; outb %al, $0x0");
- ... | Remove debug messages and duplicate code | mit | iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth | 708004157299c728b304385f3f4255ffbd587f60 |
// RUN: %ocheck 3 %s -g
// test debug emission too
g()
{
return 3;
}
main()
{
if(0){
int i;
f(); // shouldn't hit a linker error here - dead code
a:
i = 2;
return g(i);
}
goto a;
}
| // RUN: %ocheck 3 %s
g()
{
return 3;
}
main()
{
if(0){
f(); // shouldn't hit a linker error here - dead code
a:
return g();
}
goto a;
}
| ---
+++
@@ -1,4 +1,5 @@
-// RUN: %ocheck 3 %s
+// RUN: %ocheck 3 %s -g
+// test debug emission too
g()
{
@@ -8,9 +9,11 @@
main()
{
if(0){
+ int i;
f(); // shouldn't hit a linker error here - dead code
a:
- return g();
+ i = 2;
+ return g(i);
}
goto a; | Test debug label emission with local variables
| mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler | 76f394247acc79e003beeb06fa286f246ea7685a |
/*
* Copyright (c) 2011 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/*
* gc_noinst.c : Functions that shouldn't be instrumented by the compiler
*/
__thread unsigned int thread_suspend_if_needed_count = 0... | /*
* Copyright 2010 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can
* be found in the LICENSE file.
*/
/*
* gc_noinst.c : Functions that shouldn't be instrumented by the compiler
*/
__thread unsigned int thread_suspend_if_needed_count = 0;
... | ---
+++
@@ -1,7 +1,7 @@
/*
- * Copyright 2010 The Native Client Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can
- * be found in the LICENSE file.
+ * Copyright (c) 2011 The Native Client Authors. All rights reserved.
+ * Use of this source code is governed by a ... | Fix the gc_instrumentation test on toolchain bots.
The compiler now inserts explicit references to the suspension flag, which then
fails to link when the flag is not present.
BUG=none
TEST=run_gc_instrumentation_test # with freshly uploaded toolchain
Review URL: http://codereview.chromium.org/8336018
git-svn-id: 72... | bsd-3-clause | nacl-webkit/native_client,nacl-webkit/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client | 184509531a7477bfa89bc075e3873a2a504a9448 |
#ifndef DISK_H
#define DISK_H
#include <stdint.h>
#include "../process/process.h"
#ifdef __i386__
#define IOPRIO_GET 290
#elif __x86_64__
#define IOPRIO_GET 252
#endif
#define IOPRIO_WHO_PROCESS 1
#define IOPRIO_CLASS_SHIFT (13)
#define IOPRIO_PRIO_MASK ((1UL << IOPRIO_CLASS_SHIFT) - 1)
#define PRIOLEN 8
char *f... | #ifndef DISK_H
#define DISK_H
#include "../process/process.h"
#ifdef __i386__
#define IOPRIO_GET 290
#elif __x86_64__
#define IOPRIO_GET 252
#endif
#define IOPRIO_WHO_PROCESS 1
#define IOPRIO_CLASS_SHIFT (13)
#define IOPRIO_PRIO_MASK ((1UL << IOPRIO_CLASS_SHIFT) - 1)
#define PRIOLEN 8
char *filesystem_type(void)... | ---
+++
@@ -1,6 +1,7 @@
#ifndef DISK_H
#define DISK_H
+#include <stdint.h>
#include "../process/process.h"
@@ -25,6 +26,6 @@
char *ioprio_class_nice(int pid);
-void proc_io(proc_t *procs);
+uint64_t get_process_taskstat_io(int pid, char field);
#endif | Adjust declaration for taskstats io call
| mit | tijko/dashboard | 909d0e643ab120ef34344d4b589408ac50d23570 |
#ifndef E_MOD_MAIN_H
# define E_MOD_MAIN_H
//# define LOGFNS 1
# ifdef LOGFNS
# include <stdio.h>
# define LOGFN(fl, ln, fn) printf("-CONF-RANDR: %25s: %5i - %s\n", fl, ln, fn);
# else
# define LOGFN(fl, ln, fn)
# endif
EAPI extern E_Module_Api e_modapi;
EAPI void *e_modapi_init(E_Module *m);
EAPI int e_modapi_s... | #ifndef E_MOD_MAIN_H
# define E_MOD_MAIN_H
# define LOGFNS 1
# ifdef LOGFNS
# include <stdio.h>
# define LOGFN(fl, ln, fn) printf("-CONF-RANDR: %25s: %5i - %s\n", fl, ln, fn);
# else
# define LOGFN(fl, ln, fn)
# endif
# ifndef ECORE_X_RANDR_1_2
# define ECORE_X_RANDR_1_2 ((1 << 16) | 2)
# endif
# ifndef ECORE_... | ---
+++
@@ -1,7 +1,7 @@
#ifndef E_MOD_MAIN_H
# define E_MOD_MAIN_H
-# define LOGFNS 1
+//# define LOGFNS 1
# ifdef LOGFNS
# include <stdio.h>
@@ -10,26 +10,11 @@
# define LOGFN(fl, ln, fn)
# endif
-
-# ifndef ECORE_X_RANDR_1_2
-# define ECORE_X_RANDR_1_2 ((1 << 16) | 2)
-# endif
-
-# ifndef ECORE_X_RAN... | Remove useless defines and variables.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84200
| bsd-2-clause | tasn/enlightenment,rvandegrift/e,FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment,rvandegrift/e,tizenorg/platform.upstream.enlightenment,tasn/enlightenment,rvandegrift/e,FlorentRevest/Enlightenment,tasn/enlightenment,FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment | 3f283a62a22d59028e96d39fdc35c6bd85c2129d |
#ifndef RCR_LEVEL1PAYLOAD_SETUP_H_
#define RCR_LEVEL1PAYLOAD_SETUP_H_
#if defined(ARDUINO) && ARDUINO >= 100
#include "arduino.h"
#else
#include "WProgram.h"
#endif
namespace rcr {
namespace level1payload {
// Setup the object. Swallow any errors.
template<typename T, typename TArg>
inline void setup_object(T& obj... | #ifndef RCR_LEVEL1PAYLOAD_SETUP_H_
#define RCR_LEVEL1PAYLOAD_SETUP_H_
#if defined(ARDUINO) && ARDUINO >= 100
#include "arduino.h"
#else
#include "WProgram.h"
#endif
namespace rcr {
namespace level1payload {
// Setup the object. Swallow any errors.
template<typename T>
inline void setup_object(T& obj, const char* e... | ---
+++
@@ -11,14 +11,35 @@
namespace level1payload {
// Setup the object. Swallow any errors.
-template<typename T>
-inline void setup_object(T& obj, const char* error_message, const char* success_message) {
- if (!obj.begin()) {
- Serial.println(error_message);
+template<typename T, typename TArg>
+inline v... | Add template overload for begin() arguments
| mit | nolanholden/payload-level1-rocket,nolanholden/geovis,nolanholden/geovis,nolanholden/geovis | e1829b05d441cd768a52ceb81af3a906ee6c219c |
// 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.
//
// Some helpers for quic
#ifndef NET_QUIC_QUIC_UTILS_H_
#define NET_QUIC_QUIC_UTILS_H_
#include "net/base/int128.h"
#include "net/base/net_export.... | // 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.
//
// Some helpers for quic
#ifndef NET_QUIC_QUIC_UTILS_H_
#define NET_QUIC_QUIC_UTILS_H_
#include "net/base/int128.h"
#include "net/base/net_export.... | ---
+++
@@ -10,10 +10,6 @@
#include "net/base/int128.h"
#include "net/base/net_export.h"
#include "net/quic/quic_protocol.h"
-
-namespace gfe2 {
- class BalsaHeaders;
-}
namespace net {
| Remove an unused forward declaration.
R=rch@chromium.org
BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/11877024
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@176837 0039d316-1c4b-4281-b951-d872f2087c98
| bsd-3-clause | mohamed--abdel-maksoud/chromium.src,dednal/chromium.src,krieger-od/nwjs_chromium.src,PeterWangIntel/chromium-crosswalk,nacl-webkit/chrome_deps,fujunwei/chromium-crosswalk,M4sse/chromium.src,bright-sparks/chromium-spacewalk,axinging/chromium-crosswalk,hgl888/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,fujun... | c11130f26d609b78e88866c87275794c463171b8 |
#if defined(WIN32)
#define NOGDI
#define NOUSER
#define NOSOUND
#include <winsock2.h>
#include <windows.h>
#include "_condor_fix_nt.h"
#include <stdlib.h>
#else
#include "_condor_fix_types.h"
#include "condor_fix_stdio.h"
#include <stdlib.h>
#include "condor_fix_unistd.h"
#include "condor_fix_limits.h"
#include "con... | #include "_condor_fix_types.h"
#include "condor_fix_stdio.h"
#include <stdlib.h>
#include "condor_fix_unistd.h"
#include "condor_fix_limits.h"
#include "condor_fix_string.h"
#include <ctype.h>
#include <fcntl.h>
#include <errno.h>
#if !defined(SUNOS41)
#include <signal.h>
#endif
| ---
+++
@@ -1,3 +1,15 @@
+#if defined(WIN32)
+
+#define NOGDI
+#define NOUSER
+#define NOSOUND
+#include <winsock2.h>
+#include <windows.h>
+#include "_condor_fix_nt.h"
+#include <stdlib.h>
+
+#else
+
#include "_condor_fix_types.h"
#include "condor_fix_stdio.h"
#include <stdlib.h>
@@ -7,6 +19,14 @@
#include <ctyp... | Use condor_fix_signal.h, not <signal.h>, and include <sys/ioctl.h>
properly. Also, NT specific changes committed to main trunk.
| apache-2.0 | djw8605/condor,bbockelm/condor-network-accounting,neurodebian/htcondor,htcondor/htcondor,clalancette/condor-dcloud,mambelli/osg-bosco-marco,neurodebian/htcondor,bbockelm/condor-network-accounting,neurodebian/htcondor,djw8605/condor,htcondor/htcondor,djw8605/condor,zhangzhehust/htcondor,zhangzhehust/htcondor,bbockelm/co... | fe8b37bf3b859434de2bead4cd4fb00bda48f5c9 |
#ifndef MEM_H__
#define MEM_H__
#include <stdlib.h>
#include "ocomm/o_log.h"
void *xmalloc (size_t size);
void *xcalloc (size_t count, size_t size);
void *xrealloc (void *ptr, size_t size);
size_t xmalloc_usable_size(void *ptr);
char *xstralloc (size_t len);
void *xmemdupz (const void *data, size_t len);
char *xstrn... | #ifndef MEM_H__
#define MEM_H__
#include <stdlib.h>
#include "ocomm/o_log.h"
void *xmalloc (size_t size);
void *xcalloc (size_t count, size_t size);
void *xrealloc (void *ptr, size_t size);
size_t xmalloc_usable_size(void *ptr);
char *xstralloc (size_t len);
void *xmemdupz (const void *data, size_t len);
char *xstrn... | ---
+++
@@ -20,6 +20,15 @@
char *xmemsummary ();
void xmemreport (int loglevel);
+/* Duplicate nil-terminated string
+ *
+ * \param str string to copy in the new xchunk
+ * \return the newly allocated xchunk, or NULL
+ * \see xstrndup
+ * \see strndup(3), strlen(3)
+ */
+#define xstrdup(str) xstrndup((str), strl... | Add xstrdup as a convenience macro around xstrndup
Signed-off-by: Olivier Mehani <b6547e8761a9172c977da5c389270d45960e4aa0@ssji.net>
| mit | alco90/soml,mytestbed/oml,lees0414/EUproject,mytestbed/oml,mytestbed/oml,lees0414/EUproject,lees0414/EUproject,mytestbed/oml,mytestbed/oml,alco90/soml,lees0414/EUproject,alco90/soml,lees0414/EUproject,alco90/soml,alco90/soml | 1bf082ea8864b04f6bb15889fba66e092fd6b2f8 |
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
#include "lua_debug.h"
static const luaL_Reg STANDARD_LIBS[] = {
{ "_G", luaopen_base },
{ LUA_TABLIBNAME, luaopen_table },
{ LUA_STRLIBNAME, luaopen_string },
{ LUA_MATHLIBNAME, luaopen_math },
{ LUA_DBLIBNAME, luaopen_debug },
{ 0, 0 ... | #include "lua.h"
#include "lua_debug.h"
int main() {
return 0;
}
| ---
+++
@@ -1,7 +1,27 @@
#include "lua.h"
+#include "lualib.h"
+#include "lauxlib.h"
#include "lua_debug.h"
+static const luaL_Reg STANDARD_LIBS[] = {
+ { "_G", luaopen_base },
+ { LUA_TABLIBNAME, luaopen_table },
+ { LUA_STRLIBNAME, luaopen_string },
+ { LUA_MATHLIBNAME, luaopen_math },
+ { LUA_... | Add a test program with a bit more substance.
| mit | laarmen/lua_debug,laarmen/lua_debug | 7afb68bf3ea5c1549f10e3bdb7f25ecb51256786 |
//===- Config.h -------------------------------------------------*- C++ -*-===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------... | //===- Config.h -------------------------------------------------*- C++ -*-===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------... | ---
+++
@@ -11,13 +11,12 @@
#define LLD_WASM_CONFIG_H
#include "llvm/ADT/StringRef.h"
+#include "llvm/ADT/StringSet.h"
#include "llvm/BinaryFormat/Wasm.h"
#include "Symbols.h"
using llvm::wasm::WasmGlobal;
-
-#include <set>
namespace lld {
namespace wasm {
@@ -38,7 +37,7 @@
llvm::StringRef OutputFil... | Use llvm::StringSet instead of std::set.
std::set is pretty slow. We generally prefer llvm::StringSet if we don't
need an sorted set.
Differential Revision: https://reviews.llvm.org/D40579
git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@319371 91177308-0d34-0410-b5e6-96231b3b80d8
| apache-2.0 | llvm-mirror/lld,llvm-mirror/lld | e79f9d35c3fb014b4506d6b794abaac3fcd88182 |
// RUN: %clang_cc1 %s -emit-llvm -o - | grep llvm.memset | count 3
typedef __SIZE_TYPE__ size_t;
void *memset(void*, int, size_t);
void bzero(void*, size_t);
void test(int* X, char *Y) {
// CHECK: call i8* llvm.memset
memset(X, 4, 1000);
// CHECK: call void bzero
bzero(Y, 100);
}
| // RUN: %clang_cc1 %s -emit-llvm -o - | grep llvm.memset | count 3
#ifndef memset
void *memset(void*, int, unsigned long);
#endif
#ifndef bzero
void bzero(void*, unsigned long);
#endif
void test(int* X, char *Y) {
// CHECK: call i8* llvm.memset
memset(X, 4, 1000);
// CHECK: call void bzero
bzero(Y, 100);
}
| ---
+++
@@ -1,11 +1,8 @@
// RUN: %clang_cc1 %s -emit-llvm -o - | grep llvm.memset | count 3
-#ifndef memset
-void *memset(void*, int, unsigned long);
-#endif
-#ifndef bzero
-void bzero(void*, unsigned long);
-#endif
+typedef __SIZE_TYPE__ size_t;
+void *memset(void*, int, size_t);
+void bzero(void*, size_t);
v... | Use the correct definition for memset.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@136188 91177308-0d34-0410-b5e6-96231b3b80d8
| apache-2.0 | 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,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... | cd6ab8cc43ee0171d90bf6a0b94b19e12fb831c5 |
/*
* Copyright 2020 Andrey Terekhov, Maxim Menshikov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | /*
* Copyright 2020 Andrey Terekhov, Maxim Menshikov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | ---
+++
@@ -24,16 +24,6 @@
#endif
/**
- * Save up a string array to reprtab
- *
- * @param context RuC context
- * @param str Target string
- *
- * @return FIXME
- */
-int toreprtab(compiler_context *context, char str[]);
-
-/**
* Mode table initialization
*
* @param context RuC context | Remove useless interface of toreprtab
| apache-2.0 | andrey-terekhov/RuC,andrey-terekhov/RuC,andrey-terekhov/RuC | e02046531c3e291aeb87a92918dda0f21bad9700 |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2010 NorthScale, 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
*
* ... | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2010 NorthScale, 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
*
* ... | ---
+++
@@ -20,7 +20,7 @@
/* The intention of this file is to avoid cluttering the code with #ifdefs */
#include <event.h>
-#if !defined(_EVENT_NUMERIC_VERSION) || _EVENT_NUMERIC_VERSION < 0x02000000
+#if (!defined(_EVENT_NUMERIC_VERSION) || _EVENT_NUMERIC_VERSION < 0x02000000) && !defined(WIN32)
typedef int evu... | Fix event test for win32
Change-Id: I74011ed8cdebaf1771bbaadf4c1eba559f240448
Reviewed-on: http://review.couchbase.org/34772
Reviewed-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>
Tested-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>
| bsd-3-clause | couchbase/moxi,membase/moxi,membase/moxi,couchbase/moxi,membase/moxi,couchbase/moxi,couchbase/moxi,membase/moxi,couchbase/moxi,membase/moxi,couchbase/moxi,membase/moxi | de9b060c9e15245df187379f366894c83333bc6c |
// Copyright (c) 2015 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef ATOM_UTILITY_ATOM_CONTENT_UTILITY_CLIENT_H_
#define ATOM_UTILITY_ATOM_CONTENT_UTILITY_CLIENT_H_
#include <vector>
#include "base/compiler_specific.h"
#include "base/memory/sc... | // Copyright (c) 2015 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef ATOM_UTILITY_ATOM_CONTENT_UTILITY_CLIENT_H_
#define ATOM_UTILITY_ATOM_CONTENT_UTILITY_CLIENT_H_
#include <vector>
#include "base/compiler_specific.h"
#include "base/memory/sc... | ---
+++
@@ -21,8 +21,10 @@
~AtomContentUtilityClient() override;
private:
+#if defined(OS_WIN)
typedef ScopedVector<UtilityMessageHandler> Handlers;
Handlers handlers_;
+#endif
DISALLOW_COPY_AND_ASSIGN(AtomContentUtilityClient);
}; | Fix compilation waring on Mac
| mit | shiftkey/electron,shiftkey/electron,the-ress/electron,renaesop/electron,rajatsingla28/electron,electron/electron,rreimann/electron,Floato/electron,renaesop/electron,tonyganch/electron,miniak/electron,brenca/electron,the-ress/electron,miniak/electron,tonyganch/electron,electron/electron,shiftkey/electron,renaesop/electr... | e0c021bfef7292524964b4ab61db5db65c49f6aa |
#include "handlers.h"
void warning(void *ctx, const char *msg, ...)
{
va_list args;
va_start(args, msg);
fprintf(stdout, "SAX.warning()\n");
vfprintf(stdout, msg, args);
va_end(args);
}
void error(void *ctx, const char *msg, ...)
{
va_list args;
va_start(args, msg);
fprintf(stdout, "SAX.error()\n");
vfprin... | #include "handlers.h"
void warning(void *ctx, const char *msg, ...)
{
va_list args;
va_start(args, msg);
fprintf(stdout, "SAX.warning()\n");
vfprintf(stdout, msg, args);
va_end(args);
}
void error(void *ctx, const char *msg, ...)
{
va_list args;
va_start(args, msg);
fprintf(stdout, "SAX.error()\n");
vfprin... | ---
+++
@@ -29,3 +29,8 @@
vfprintf(stdout, msg, args);
va_end(args);
}
+
+void say(void *ctx, const char *tag, const char *msg)
+{
+ fprintf(stdout, "[%s] %s\n", tag, msg);
+} | Add overridable default message serializer
| bsd-3-clause | jonforums/xvalid,jonforums/xvalid,jonforums/xvalid | 080514a81e4b6fba16474516aa84f48039dad111 |
#include "cowboy.h"
VALUE mCowboy;
VALUE fft_1d(VALUE m, VALUE nums){
fftw_complex *in, *out;
fftw_plan fp;
long n;
Check_Type(nums, T_ARRAY);
n = size_of_ary(nums);
if (n == 0){
rb_raise(rb_eException, "Can't use blank array");
}
in = allocate_fftw_complex(n);
out = allocate_fftw_complex(n);
... | #include "cowboy.h"
VALUE mCowboy;
VALUE fft_1d(VALUE m, VALUE nums){
fftw_complex *in, *out;
fftw_plan fp;
long n;
Check_Type(nums, T_ARRAY);
n = size_of_ary(nums);
in = allocate_fftw_complex(n);
out = allocate_fftw_complex(n);
fp = fftw_plan_dft_1d(n, in, out, FFTW_FORWARD, FFTW_ESTIMATE);
cast... | ---
+++
@@ -10,6 +10,9 @@
Check_Type(nums, T_ARRAY);
n = size_of_ary(nums);
+ if (n == 0){
+ rb_raise(rb_eException, "Can't use blank array");
+ }
in = allocate_fftw_complex(n);
out = allocate_fftw_complex(n);
fp = fftw_plan_dft_1d(n, in, out, FFTW_FORWARD, FFTW_ESTIMATE);
@@ -17,6 +20,7 @@
c... | Handle call with empty array gracefully. (Compare to segfault earlier).
| mit | ciniglio/cowboy,ciniglio/cowboy | 8fe518a50830119365916f194dae8d458064ff70 |
// 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 CHROME_NACL_NACL_BROKER_LISTENER_H_
#define CHROME_NACL_NACL_BROKER_LISTENER_H_
#pragma once
#include "base/memory/scoped_ptr.h"
#include "ba... | // 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_NACL_NACL_BROKER_LISTENER_H_
#define CHROME_NACL_NACL_BROKER_LISTENER_H_
#pragma once
#include "base/memory/scoped_ptr.h"
#include "ba... | ---
+++
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// 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.
@@ -27,7 +27,6 @@
private:
void OnLaunchLoaderT... | NaCl: Remove declaration of non-existent method
BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/9592039
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@125431 0039d316-1c4b-4281-b951-d872f2087c98
| bsd-3-clause | gavinp/chromium,adobe/chromium,gavinp/chromium,ropik/chromium,ropik/chromium,ropik/chromium,ropik/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,adobe/chromium,ropik/chromium,yi... | bbbb905e897e8dd9e59c51d1dc3f34023314295e |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_APP_LIST_APP_LIST_EXPORT_H_
#define UI_APP_LIST_APP_LIST_EXPORT_H_
#pragma once
// Defines APP_LIST_EXPORT so that functionality implement... | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_APP_LIST_APP_LIST_EXPORT_H_
#define UI_APP_LIST_APP_LIST_EXPORT_H_
#pragma once
// Defines APP_LIST_EXPORT so that functionality implement... | ---
+++
@@ -19,7 +19,11 @@
#endif // defined(APP_LIST_IMPLEMENTATION)
#else // defined(WIN32)
+#if defined(APP_LIST_IMPLEMENTATION)
#define APP_LIST_EXPORT __attribute__((visibility("default")))
+#else
+#define APP_LIST_EXPORT
+#endif
#endif
#else // defined(COMPONENT_BUILD) | Change the way _EXPORT macros look, app_list edition
I missed this in https://chromiumcodereview.appspot.com/10386108/ . Thanks to tfarina for noticing.
BUG=90078
TEST=none
TBR=ben
Review URL: https://chromiumcodereview.appspot.com/10377151
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@137221 0039d316-1c4b-4... | bsd-3-clause | mogoweb/chromium-crosswalk,hujiajie/pa-chromium,anirudhSK/chromium,nacl-webkit/chrome_deps,zcbenz/cefode-chromium,timopulkkinen/BubbleFish,anirudhSK/chromium,Chilledheart/chromium,krieger-od/nwjs_chromium.src,crosswalk-project/chromium-crosswalk-efl,hujiajie/pa-chromium,keishi/chromium,axinging/chromium-crosswalk,M4sse... | 915afec8f2eb56ad3fb89cedf8b6b6dda363164a |
//===-- GCs.h - Garbage collector linkage hacks ---------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- GCs.h - Garbage collector linkage hacks ---------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | ---
+++
@@ -17,13 +17,13 @@
namespace llvm {
class GCStrategy;
class GCMetadataPrinter;
-
+
/// FIXME: Collector instances are not useful on their own. These no longer
/// serve any purpose except to link in the plugins.
-
+
/// Creates an ocaml-compatible garbage collector.
void linkOca... | Test commit: Remove trailing whitespace.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@203502 91177308-0d34-0410-b5e6-96231b3b80d8
| bsd-2-clause | chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/l... | e45534d027c685561d6da233e3cf5e0c1dde726c |
/*
* Copyright (C) 2015 Muhammad Tayyab Akram
*
* 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 la... | /*
* Copyright (C) 2015 Muhammad Tayyab Akram
*
* 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 la... | ---
+++
@@ -18,6 +18,12 @@
#define SHEENBIDI_PARSER_UNICODE_VERSION_H
#include <string>
+#ifdef major
+#undef major
+#endif
+#ifdef minor
+#undef minor
+#endif
namespace SheenBidi {
namespace Parser { | Fix warnings about major and minor macros
Tools/Parser/UnicodeVersion.h:29:13: warning: In the GNU C Library, "major" is defined
by <sys/sysmacros.h>. For historical compatibility, it is
currently defined by <sys/types.h> as well, but we plan to
remove this soon. To use "major", include <sys/sysmacros.h>
directly.... | apache-2.0 | mta452/SheenBidi,mta452/SheenBidi | 674a7580b153119527f92582465524a09627c1e9 |
/*
@ 0xCCCCCCCC
*/
#if defined(_MSC_VER)
#pragma once
#endif
#ifndef KBASE_BASIC_MACROS_H_
#define KBASE_BASIC_MACROS_H_
#define DISALLOW_COPY(CLASSNAME) \
CLASSNAME(const CLASSNAME&) = delete; \
CLASSNAME& operator=(const CLASSNAME&) = delete
#define DISALLOW_MOVE(CLAS... | /*
@ 0xCCCCCCCC
*/
#if defined(_MSC_VER)
#pragma once
#endif
#ifndef KBASE_BASIC_MACROS_H_
#define KBASE_BASIC_MACROS_H_
#define DISALLOW_COPY(CLASSNAME) \
CLASSNAME(const CLASSNAME&) = delete; \
CLASSNAME& operator=(const CLASSNAME&) = delete
#define DISALLOW_MOVE(CLAS... | ---
+++
@@ -17,4 +17,21 @@
CLASSNAME(CLASSNAME&&) = delete; \
CLASSNAME& operator=(CLASSNAME&&) = delete
+#define UNREFED_VAR(x) \
+ ::kbase::internal::SilenceUnusedVariableWarning(x)
+
+// Put complicated implementation below.
+
+namespace kbase {
+
+namespace internal {
+
+template... | Add a macro UNREFED_VAR to silence unused variables warning.
| mit | kingsamchen/KBase,kingsamchen/KBase_Demo,kingsamchen/KBase,kingsamchen/KBase_Demo | 7bddee2c910460fc164840003b8a2c0c3b1dd284 |
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include <getopt.h>
#include <sys/uio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#include "utils.h"
#include "logSpeed.h"
int keepRunning = 1;
int main(... | #define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include <getopt.h>
#include <sys/uio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#include "utils.h"
#include "logSpeed.h"
int keepRunning = 1;
int main(... | ---
+++
@@ -24,10 +24,10 @@
// signal(SIGINT, intHandler);
for (size_t i = index; i < argc; i++) {
- int fd = open(argv[i], O_WRONLY | O_EXCL | O_DIRECT);
+ int fd = open(argv[i], O_RDWR | O_EXCL | O_DIRECT );
if (fd >= 0) {
size_t bdsize = blockDeviceSizeFromFD(fd);
- trimDevice(fd, a... | Subtract one old school sector
| apache-2.0 | dr-who/stutools,dr-who/stutools | 5103d9b68accfc116275636d1a6068aa14df2d33 |
/*ckwg +5
* Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#ifndef VISTK_PROCESSES_HELPER_IMAGE_MACROS_H
#define VISTK_PROCESSES_HELPER_IMAGE_MACROS_H
... | /*ckwg +5
* Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#ifndef VISTK_PROCESSES_HELPER_IMAGE_MACROS_H
#define VISTK_PROCESSES_HELPER_IMAGE_MACROS_H
... | ---
+++
@@ -21,10 +21,10 @@
return &function<type>; \
}
-#define SPECIFY_FUNCTION(function) \
- TYPE_CHECK(bool, bool, function) \
- TYPE_CHECK(uint8_t, byte, function) \
- TYPE_CHECK(float, float, function) \
- TYPE_CHECK(double, double, function)
+#define SPECIFY_FUNCTION(funct... | Use else in comparison chain
| bsd-3-clause | Kitware/sprokit,mathstuf/sprokit,Kitware/sprokit,mathstuf/sprokit,linus-sherrill/sprokit,linus-sherrill/sprokit,Kitware/sprokit,mathstuf/sprokit,linus-sherrill/sprokit,Kitware/sprokit,mathstuf/sprokit,linus-sherrill/sprokit | f8e8e58902fbaa14e2ea7c8a317747197d53bf37 |
#ifndef NPY_IMPORT_H
#define NPY_IMPORT_H
#include <Python.h>
/*! \brief Fetch and cache Python function.
*
* Import a Python function and cache it for use. The function checks if
* cache is NULL, and if not NULL imports the Python function specified by
* \a module and \a function, increments its reference count,... | #ifndef NPY_IMPORT_H
#define NPY_IMPORT_H
#include <Python.h>
#include <assert.h>
/*! \brief Fetch and cache Python function.
*
* Import a Python function and cache it for use. The function checks if
* cache is NULL, and if not NULL imports the Python function specified by
* \a module and \a function, increments ... | ---
+++
@@ -2,7 +2,6 @@
#define NPY_IMPORT_H
#include <Python.h>
-#include <assert.h>
/*! \brief Fetch and cache Python function.
*
@@ -17,7 +16,7 @@
* @param function Function name.
* @param cache Storage location for imported function.
*/
-NPY_INLINE void
+NPY_INLINE static void
npy_cache_pyfunc(con... | BUG: Fix npy_cache_pyfunc to properly implement inline.
The function was not static, which led to multiple definition
errors.
| bsd-3-clause | leifdenby/numpy,charris/numpy,sonnyhu/numpy,charris/numpy,has2k1/numpy,sinhrks/numpy,rhythmsosad/numpy,pdebuyl/numpy,jorisvandenbossche/numpy,mattip/numpy,stuarteberg/numpy,MaPePeR/numpy,Eric89GXL/numpy,MichaelAquilina/numpy,SiccarPoint/numpy,gmcastil/numpy,nguyentu1602/numpy,MSeifert04/numpy,maniteja123/numpy,mingwpy/... | 8c18581110925ebe9e2b3530d4d5fc4afefbc8b0 |
/*
* Copyright (c) 2019, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <cdefs.h>
#include <stdint.h>
/*
* Instruction pointer authentication key A. The low 64-bit are at [0], and the
* high bits at [1].
*/
uint64_t plat_apiakey[2];
/*
* This is only a toy implementat... | /*
* Copyright (c) 2019, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <cdefs.h>
#include <stdint.h>
/*
* Instruction pointer authentication key A. The low 64-bit are at [0], and the
* high bits at [1]. They are run-time constants so they are placed in the
* rodata sec... | ---
+++
@@ -9,11 +9,9 @@
/*
* Instruction pointer authentication key A. The low 64-bit are at [0], and the
- * high bits at [1]. They are run-time constants so they are placed in the
- * rodata section. They are written before MMU is turned on and the permissions
- * are effective.
+ * high bits at [1].
*/
-ui... | Put Pointer Authentication key value in BSS section
The dummy implementation of the plat_init_apiakey() platform API uses
an internal 128-bit buffer to store the initial key value used for
Pointer Authentication support.
The intent - as stated in the file comments - was for this buffer to
be write-protected by the MM... | bsd-3-clause | achingupta/arm-trusted-firmware,achingupta/arm-trusted-firmware | 47102b35d644a8c5a1343f9ec05c29b5d1e0e1b0 |
#include <stdio.h>
#include <mpi.h>
#include <unistd.h>
#include "hello_mpi.h"
int hello_mpi(void) {
int numprocs, rank, namelen;
char processor_name[MPI_MAX_PROCESSOR_NAME];
MPI_Init(NULL, NULL);
MPI_Comm_size(MPI_COMM_WORLD, &numprocs);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Get_processo... | #include <stdio.h>
#include <mpi.h>
#include "hello_mpi.h"
int hello_mpi(void) {
int numprocs, rank, namelen;
char processor_name[MPI_MAX_PROCESSOR_NAME];
MPI_Init(NULL, NULL);
MPI_Comm_size(MPI_COMM_WORLD, &numprocs);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Get_processor_name(processor_nam... | ---
+++
@@ -1,5 +1,6 @@
#include <stdio.h>
#include <mpi.h>
+#include <unistd.h>
#include "hello_mpi.h"
@@ -17,16 +18,19 @@
printf("I'm master\n");
int slaves_rank = -1;
int i;
- struct MPI_Status status;
+ MPI_Status status;
+ MPI_Request request;
for (... | Convert from MPI_Send/Recv, to MPI_ISend/IRecv
| mit | Convolution-filter/convolution-filter-MPI | b6a04637c81e41c348e985c78f3e9f3009a19826 |
#ifndef __PARSE_GIT_ST_H
#define __PARSE_GIT_ST_H
#include <vector>
#include <string>
const int PIPE_LINE_BUFFER_SIZE = 256;
class GitStatusParser {
std::vector<std::string*> pipe_buffer;
std::string* branch;
std::vector<std::string*> new_files;
std::vector<std::string*> modified_files;
std::vec... | #ifndef __PARSE_GIT_ST_H
#define __PARSE_GIT_ST_H
#include <vector>
#include <string>
const int PIPE_LINE_BUFFER_SIZE = 256;
class GitStatusParser {
std::vector<std::string*> pipe_buffer;
std::string* branch;
std::vector<std::string*> new_files;
std::vector<std::string*> modified_files;
std::vec... | ---
+++
@@ -20,6 +20,11 @@
~GitStatusParser();
void parse();
+ std::string* getBranch() { return branch; }
+ std::vector<std::string*> getNewFiles() { return new_files; }
+ std::vector<std::string*> getModifiedFiles() { return modified_files; }
+ std::vector<std::string*> getUntrackedFiles() {... | Add getters for branch and files.
| mit | tomaszwojcik/git-ec,tomaszwojcik/git-ec | 958bfb18a876a10d862ba71a34c67bf15ccf3274 |
/*
* Copyright (C) 2015 CossackLabs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... | /*
* Copyright (C) 2015 CossackLabs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... | ---
+++
@@ -17,15 +17,15 @@
#import <Foundation/Foundation.h>
#import <themis/themis.h>
-@interface SKeygen : NSObject
+@interface SMessage : NSObject
{
- NSData* _priv_key;
- NSData* _pub_key;
+ NSMutableData* _priv_key;
+ NSMutableData* _pub_key;
}
-- (id)init;
-- (NSData*)priv_key: error:(NSError**)e... | Add some correction to Obj-C wrappers
| apache-2.0 | mnaza/themis,storojs72/themis,cossacklabs/themis,Lagovas/themis,storojs72/themis,mnaza/themis,storojs72/themis,cossacklabs/themis,Lagovas/themis,storojs72/themis,mnaza/themis,cossacklabs/themis,mnaza/themis,cossacklabs/themis,Lagovas/themis,Lagovas/themis,cossacklabs/themis,cossacklabs/themis,storojs72/themis,storojs72... | eae3d77193813825d7c4cb8dcb86d341c0b5b756 |
/**
* 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
... | ---
+++
@@ -43,7 +43,7 @@
scp_lock_init();
- log_message(LOG_LEVEL_WARNING, "[init:%d] libscp initialized", __LINE__);
+ log_message(LOG_LEVEL_DEBUG, "libscp initialized");
return 0;
} | Downgrade "libscp initialized" to LOG_LEVEL_DEBUG, remove line number
It's a bad style to start the log with a cryptic warning.
| 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... | f908528a004812c36a27a6705f8d2453cc9084c4 |
#pragma once
// const float in a header file can lead to duplication of the storage
// but I don't really care in this case. Just don't do it with a header
// that is included hundreds of times.
const float kCurrentVersion = 1.50f;
// Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version
// incr... | #pragma once
// const float in a header file can lead to duplication of the storage
// but I don't really care in this case. Just don't do it with a header
// that is included hundreds of times.
const float kCurrentVersion = 1.49f;
// Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version
// incr... | ---
+++
@@ -3,7 +3,7 @@
// const float in a header file can lead to duplication of the storage
// but I don't really care in this case. Just don't do it with a header
// that is included hundreds of times.
-const float kCurrentVersion = 1.49f;
+const float kCurrentVersion = 1.50f;
// Put a "#define VERSION_SUFF... | Change version number to 1.50
| apache-2.0 | ariccio/UIforETW,google/UIforETW,ariccio/UIforETW,google/UIforETW,ariccio/UIforETW,ariccio/UIforETW,google/UIforETW,google/UIforETW | adca044ede25200548c3b2b4dbdcf8e1ddc40959 |
// 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 CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_UI_H_
#define CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_UI_H_
#include "build/build_config.h"
cl... | // 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 CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_UI_H_
#define CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_UI_H_
class Browser;
class ExtensionServi... | ---
+++
@@ -5,12 +5,14 @@
#ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_UI_H_
#define CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_UI_H_
+#include "build/build_config.h"
+
class Browser;
class ExtensionService;
// Only enable the external install UI on Windows and Mac, because those
// are the platforms ... | Fix external extension install (post-sideload) restriction on Windows.
I had #ifdef'd it to OS_WINDOWS. It should be OS_WIN.
BUG=156727
Review URL: https://codereview.chromium.org/11238042
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@163418 0039d316-1c4b-4281-b951-d872f2087c98
| bsd-3-clause | Jonekee/chromium.src,chuan9/chromium-crosswalk,dushu1203/chromium.src,markYoungH/chromium.src,Just-D/chromium-1,TheTypoMaster/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Jonekee/chromium.src,Just-D/chromium-1,hgl888/chromium-crosswalk-efl,dednal/chromium.src,junmin-zhu/chromium-rivertrail,patrickm/chromium.src,ltilv... | 6c12c50736a7f2cce5d8776c9d64b85e3435aec6 |
// RUN: %clang -S -v -o %t %s 2>&1 | FileCheck %s
// CHECK-NOT: -g
// RUN: %clang -S -v -o %t %s -g 2>&1 | FileCheck %s
// CHECK: -g
// RUN: %clang -S -v -o %t %s -g0 2>&1 | FileCheck %s
// CHECK-NOT: -g
// RUN: %clang -S -v -o %t %s -g -g0 2>&1 | FileCheck %s
// CHECK-NOT: -g
// RUN: %clang -S -v -o ... | // RUN: %clang -S -v -o %t %s 2>&1 | not grep -w -- -g
// RUN: %clang -S -v -o %t %s -g 2>&1 | grep -w -- -g
// RUN: %clang -S -v -o %t %s -g0 2>&1 | not grep -w -- -g
// RUN: %clang -S -v -o %t %s -g -g0 2>&1 | not grep -w -- -g
// RUN: %clang -S -v -o %t %s -g0 -g 2>&1 | grep -w -- -g
| ---
+++
@@ -1,5 +1,14 @@
-// RUN: %clang -S -v -o %t %s 2>&1 | not grep -w -- -g
-// RUN: %clang -S -v -o %t %s -g 2>&1 | grep -w -- -g
-// RUN: %clang -S -v -o %t %s -g0 2>&1 | not grep -w -- -g
-// RUN: %clang -S -v -o %t %s -g -g0 2>&1 | not grep -w -- -g
-// RUN: %clang -S -v -o %t %s -g0 -g 2>&1 | ... | Move a non portable test to FileCheck, from Jonathan Gray!
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@155874 91177308-0d34-0410-b5e6-96231b3b80d8
| apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... | 1de801a7120e0e8a2c7614265880452a20a38a29 |
#include <stddef.h>
#include <unistd.h>
int main(int argc, char *argv[]) {
#ifdef __MINGW32__
const
#endif
char * args[2] = {"T7037", NULL};
execv("./T7037", args);
}
| #include <stddef.h>
#include <unistd.h>
int main(int argc, char *argv[]) {
const char *args[2] = {"T7037", NULL};
execv("./T7037", args);
}
| ---
+++
@@ -2,6 +2,9 @@
#include <unistd.h>
int main(int argc, char *argv[]) {
- const char *args[2] = {"T7037", NULL};
+#ifdef __MINGW32__
+ const
+#endif
+ char * args[2] = {"T7037", NULL};
execv("./T7037", args);
} | Make T7037 work on both Windows and other platforms
| bsd-3-clause | mcschroeder/ghc,forked-upstream-packages-for-ghcjs/ghc,tibbe/ghc,ryantm/ghc,TomMD/ghc,oldmanmike/ghc,nkaretnikov/ghc,mettekou/ghc,GaloisInc/halvm-ghc,GaloisInc/halvm-ghc,nkaretnikov/ghc,mfine/ghc,mettekou/ghc,mcschroeder/ghc,AlexanderPankiv/ghc,christiaanb/ghc,snoyberg/ghc,ghc-android/ghc,snoyberg/ghc,christiaanb/ghc,h... | 188b56251284352d2a2da90d5fab31276a834ff7 |
#define PY_SSIZE_T_CLEAN
#include <Python.h>
static PyObject* websocket_mask(PyObject* self, PyObject* args) {
const char* mask;
Py_ssize_t mask_len;
const char* data;
Py_ssize_t data_len;
Py_ssize_t i;
PyObject* result;
char* buf;
if (!PyArg_ParseTuple(args, "s#s#", &mask, &mask_len, ... | #include <Python.h>
static PyObject* websocket_mask(PyObject* self, PyObject* args) {
const char* mask;
int mask_len;
const char* data;
int data_len;
int i;
if (!PyArg_ParseTuple(args, "s#s#", &mask, &mask_len, &data, &data_len)) {
return NULL;
}
PyObject* result = PyBytes_Fro... | ---
+++
@@ -1,21 +1,24 @@
+#define PY_SSIZE_T_CLEAN
#include <Python.h>
static PyObject* websocket_mask(PyObject* self, PyObject* args) {
const char* mask;
- int mask_len;
+ Py_ssize_t mask_len;
const char* data;
- int data_len;
- int i;
+ Py_ssize_t data_len;
+ Py_ssize_t i;
+ PyOb... | Fix msvc compile error and improve 64 bit compatibility | apache-2.0 | whip112/tornado,wujuguang/tornado,kippandrew/tornado,legnaleurc/tornado,sxfmol/tornado,VShangxiao/tornado,andyaguiar/tornado,jparise/tornado,takeshineshiro/tornado,futurechallenger/tornado,0x73/tornado,InverseLina/tornado,dongpinglai/my_tornado,ymero/tornado,elelianghh/tornado,wxhzk/tornado-1,Aaron1992/tornado,icejoywo... | 57a022230f9ae1b3f5901e26babafb2d321b4511 |
/*
* Copyright 2001-2016 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/lice... | /*
* Copyright 2001-2016 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/lice... | ---
+++
@@ -18,7 +18,7 @@
OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_ALL_BUILTIN, NULL);
}
-#if (defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)) && !defined(OPENSSL_NO_DEPRECATED)
+#if (defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)) && OPENSSL_API_COMPAT < 0x10100... | Convert our own check of OPENSSL_NO_DEPRECATED
... to the check OPENSSL_API_COMPAT < 0x10100000L, to correspond with
how it's declared.
Reviewed-by: Matt Caswell <1fa2ef4755a9226cb9a0a4840bd89b158ac71391@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6470)
| apache-2.0 | openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl | a9091c137bb21a247afa01ecf17bd5c75d9b0e65 |
//
// KWFutureObject.h
// iOSFalconCore
//
// Created by Luke Redpath on 13/01/2011.
// Copyright 2011 LJR Software Limited. All rights reserved.
//
#import <Foundation/Foundation.h>
#ifdef __weak
#undef __weak
#define __weak __unsafe_unretained
#endif
typedef id (^KWFutureObjectBlock)(void);
@interface KWFutur... | //
// KWFutureObject.h
// iOSFalconCore
//
// Created by Luke Redpath on 13/01/2011.
// Copyright 2011 LJR Software Limited. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef id (^KWFutureObjectBlock)(void);
@interface KWFutureObject : NSObject {
__weak id *objectPointer;
KWFutureObjectBlock ... | ---
+++
@@ -7,6 +7,11 @@
//
#import <Foundation/Foundation.h>
+
+#ifdef __weak
+#undef __weak
+#define __weak __unsafe_unretained
+#endif
typedef id (^KWFutureObjectBlock)(void);
| Work arounf use of weak when deployment target it iOS 4
| bsd-3-clause | carezone/Kiwi,carezone/Kiwi,tcirwin/Kiwi,TaemoonCho/Kiwi,howandhao/Kiwi,tcirwin/Kiwi,unisontech/Kiwi,tangwei6423471/Kiwi,iosRookie/Kiwi,TaemoonCho/Kiwi,ecaselles/Kiwi,indiegogo/Kiwi,ashfurrow/Kiwi,TaemoonCho/Kiwi,unisontech/Kiwi,LiuShulong/Kiwi,weslindsay/Kiwi,ecaselles/Kiwi,depop/Kiwi,JoistApp/Kiwi,indiegogo/Kiwi,iosR... | 73cfbf47cc0f13db91e461d98081503597d3d50b |
/* RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
*
* __builtin_longjmp/setjmp should get transformed into intrinsics.
*/
// CHECK-NOT: builtin_longjmp
void jumpaway(int *ptr) {
__builtin_longjmp(ptr,1);
}
int main(void) {
__builtin_setjmp(0);
jumpaway(0);
}
| /* RUN: %clang_cc1 %s -emit-llvm -o - | not grep __builtin_
*
* __builtin_longjmp/setjmp should get transformed into llvm.setjmp/longjmp
* just like explicit setjmp/longjmp calls are.
*/
void jumpaway(int *ptr) {
__builtin_longjmp(ptr,1);
}
int main(void) {
__builtin_setjmp(0);
jumpaway(0);
}
| ---
+++
@@ -1,8 +1,9 @@
-/* RUN: %clang_cc1 %s -emit-llvm -o - | not grep __builtin_
+/* RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
*
- * __builtin_longjmp/setjmp should get transformed into llvm.setjmp/longjmp
- * just like explicit setjmp/longjmp calls are.
+ * __builtin_longjmp/setjmp should get transf... | Fix test in two ways: remove incorrect comment (the intrinsic generated now
is of the llvm.sjlj.* flavore) and convert grep->FileCheck
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@181468 91177308-0d34-0410-b5e6-96231b3b80d8
| apache-2.0 | 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,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-cl... | 1c8f270a75665f44f8570735762003a4319cbe19 |
#include <stdio.h>
#include <cs50.h>
int main(int argc, char *argv[]) {
// check entered key
if (argc != 2 || atoi(argv[1]) < 0) {
printf("Usage: ./caesar k\nWhere k is a non negative integer.\n");
return 1;
}
int key = atoi(argv[1]);
return 0;
}
| #include <stdio.h>
#include <cs50.h>
int main(void) {
return 0;
} | ---
+++
@@ -1,7 +1,17 @@
#include <stdio.h>
#include <cs50.h>
-int main(void) {
+int main(int argc, char *argv[]) {
+
+ // check entered key
+ if (argc != 2 || atoi(argv[1]) < 0) {
+ printf("Usage: ./caesar k\nWhere k is a non negative integer.\n");
+ return 1;
+ }
+
+ int key = atoi(arg... | Add key check and convert key to int
| unlicense | Implaier/CS50,Implaier/CS50,Implaier/CS50,Implaier/CS50 | a236747cee13f512f5f1708b41306533b67ebddb |
#ifndef SRC_FORCES_LABEL_STATE_H_
#define SRC_FORCES_LABEL_STATE_H_
#include <Eigen/Core>
#include <string>
#include <map>
namespace Forces
{
class Force;
/**
* \brief Encapsulates state for a label necessary for the simulation
*
* This consists of label and anchor positions in 2D and 3D, as well as
* the label... | #ifndef SRC_FORCES_LABEL_STATE_H_
#define SRC_FORCES_LABEL_STATE_H_
#include <Eigen/Core>
#include <string>
#include <map>
namespace Forces
{
class Force;
/**
* \brief Encapsulates state for a label necessary for the simulation
*
* This consists of label and anchor positions in 2D and 3D, as well as
* the label... | ---
+++
@@ -26,7 +26,7 @@
LabelState(int id, std::string text, Eigen::Vector3f anchorPosition,
Eigen::Vector2f size);
- const int id;
+ int id;
Eigen::Vector3f anchorPosition;
Eigen::Vector3f labelPosition;
Eigen::Vector2f size;
@@ -35,7 +35,7 @@
Eigen::Vector2f labelPosition2D;
fl... | Remove const modifier from LabelState members.
This enables move and move assignment, which is necessary for
containers.
| mit | Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller | fe85b79dbc358dc3ecddf77f33621798541f358f |
/**
* @file
* @description char devices
*/
#ifndef __CHAR_DEVICE_H
#define __CHAR_DEVICE_H
typedef struct chardev {
int (*putc) (void);
int (*getc) (int);
} chardev_t;
#if 0
#define MAX_COUNT_CHAR_DEVICES 10
static chardev_t pool_chardev[MAX_COUNT_CHAR_DEVICES];
static int chardev_c = 0;
#define ADD_CHAR_DEVICE... | /**
* @file
* @description char devices
*/
#ifndef __CHAR_DEVICE_H
#define __CHAR_DEVICE_H
typedef struct chardev {
int (*putc) (void);
int (*getc) (int);
} chardev_t;
#define MAX_COUNT_CHAR_DEVICES 10
static chardev_t pool_chardev[MAX_COUNT_CHAR_DEVICES];
static int chardev_c = 0;
#define ADD_CHAR_DEVICE(__NA... | ---
+++
@@ -10,7 +10,7 @@
int (*putc) (void);
int (*getc) (int);
} chardev_t;
-
+#if 0
#define MAX_COUNT_CHAR_DEVICES 10
static chardev_t pool_chardev[MAX_COUNT_CHAR_DEVICES];
static int chardev_c = 0;
@@ -22,5 +22,5 @@
.getc = __IN; \
.putc = __OUT;\
};
-
+#endif
#endif /* __CHAR_DEVICE_H */ | Delete char_dev massive from header | bsd-2-clause | gzoom13/embox,vrxfile/embox-trik,Kefir0192/embox,vrxfile/embox-trik,abusalimov/embox,Kefir0192/embox,gzoom13/embox,mike2390/embox,mike2390/embox,embox/embox,embox/embox,abusalimov/embox,embox/embox,embox/embox,mike2390/embox,Kakadu/embox,Kakadu/embox,abusalimov/embox,vrxfile/embox-trik,Kefir0192/embox,abusalimov/embox,... | 28f427e69ea72b113380a835c1096c1e15ca4d22 |
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | FileCheck %s
// PR 5406
// XFAIL: *
// XTARGET: arm
typedef struct { char x[3]; } A0;
void foo (int i, ...);
// CHECK: call void (i32, ...)* @foo(i32 1, i32 {{.*}}) nounwind
int main (void)
{
A0 a3;
a3.x[0] = 0;
a3.x[0] = 0;
a3.x[2] = 26;
foo (1, a3 );
retur... | // RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | FileCheck %s
// PR 5406
// XFAIL: *
// XTARGET: arm
typedef struct { char x[3]; } A0;
void foo (int i, ...);
// CHECK: call arm_aapcscc void (i32, ...)* @foo(i32 1, i32 {{.*}}) nounwind
int main (void)
{
A0 a3;
a3.x[0] = 0;
a3.x[0] = 0;
a3.x[2] = 26;
foo (1, ... | ---
+++
@@ -8,7 +8,7 @@
void foo (int i, ...);
-// CHECK: call arm_aapcscc void (i32, ...)* @foo(i32 1, i32 {{.*}}) nounwind
+// CHECK: call void (i32, ...)* @foo(i32 1, i32 {{.*}}) nounwind
int main (void)
{
A0 a3; | Update test to match recent llvm-gcc change.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@106056 91177308-0d34-0410-b5e6-96231b3b80d8
| bsd-2-clause | dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,apple/s... | 5869dc005e829ed07b066746b01d24f264a47113 |
#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;
}
BSTNode* BSTNode_Create(void* k)
{
BS... | #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;
}
BSTNode* BSTNode_Create(void* k)
{
BS... | ---
+++
@@ -31,3 +31,13 @@
n->k = k;
}
+void BST_Inorder_Tree_Walk(BSTNode* n, void (f)(void*))
+{
+ if (n != NULL)
+ {
+ BST_Inorder_Tree_Walk(n->left, f);
+ f(n->k);
+ BST_Inorder_Tree_Walk(n->right, f);
+ }
+}
+ | Add BST inorder traversal function implementation
| mit | MaxLikelihood/CADT | 52e1beb3dfe634b6e05cd28e480fce984ba36141 |
/*! \file SwiftParticle.h
* \brief header file for the SWIFT particle type.
*/
#ifndef SWIFT_PARTICLE_H
#define SWIFT_PARTICLE_H
#ifdef SWIFTINTERFACE
namespace Swift
{
/* SWIFT enum of part types. Should match VELOCIraptor type values. */
enum part_type {
swift_type_gas = 0,
swift_type_dark_matter... | /*! \file SwiftParticle.h
* \brief header file for the SWIFT particle type.
*/
#ifndef SWIFT_PARTICLE_H
#define SWIFT_PARTICLE_H
#ifdef SWIFTINTERFACE
/**
* @brief The default struct alignment in SWIFT.
*/
#define SWIFT_STRUCT_ALIGNMENT 32
#define SWIFT_STRUCT_ALIGN __attribute__((aligned(SWIFT_STRUCT_ALIGNMEN... | ---
+++
@@ -7,11 +7,6 @@
#define SWIFT_PARTICLE_H
#ifdef SWIFTINTERFACE
- /**
- * @brief The default struct alignment in SWIFT.
- */
-#define SWIFT_STRUCT_ALIGNMENT 32
-#define SWIFT_STRUCT_ALIGN __attribute__((aligned(SWIFT_STRUCT_ALIGNMENT)))
namespace Swift
{
@@ -28,8 +23,7 @@
/* SWIFT/VELOCIraptor par... | Use unaligned particle structure to save memory.
| mit | pelahi/VELOCIraptor-STF,pelahi/VELOCIraptor-STF,pelahi/VELOCIraptor-STF | 80e3504b8bd57974c86cafa9a9fbe0614c965bdf |
// These macros weren't added until v8 version 4.4
#include "node_wrapper.h"
#ifndef V8_MAJOR_VERSION
#if NODE_MODULE_VERSION <= 11
#define V8_MAJOR_VERSION 3
#define V8_MINOR_VERSION 14
#define V8_PATCH_LEVEL 0
#elif V8_MAJOR_VERSION <= 14
#define V8_MAJOR_VERSION 3
#define V8_MINOR_VERSION 28
#define V8... | // These macros weren't added until v8 version 4.4
#include "node_wrapper.h"
#ifndef V8_MAJOR_VERSION
#if NODE_MODULE_VERSION <= 11
#define V8_MAJOR_VERSION 3
#define V8_MINOR_VERSION 14
#define V8_PATCH_LEVEL 0
#elif V8_MAJOR_VERSION <= 14
#define V8_MAJOR_VERSION 3
#define V8_MINOR_VERSION 28
#define V8... | ---
+++
@@ -20,6 +20,8 @@
(V8_MAJOR_VERSION == (major) && V8_MINOR_VERSION == (minor) && V8_PATCH_LEVEL >= (patch)) \
)
-#define NODE_MODULE_OR_V8_AT_LEAST(nodejs, v8_major, v8_minor, v8_patch) (\
- defined(NODE_MODULE_VERSION) ? NODE_MODULE_VERSION >= nodejs : V8_AT_LEAST(v8_major, v8_minor, v8_patch) \
-)
+#if... | Fix msvc preprocessor error (omg)
| isc | laverdet/isolated-vm,laverdet/isolated-vm,laverdet/isolated-vm,laverdet/isolated-vm | 92f64df6d3551bec6f5c14e78b1195a381f9fc11 |
//
// SendEmailController.h
// PhotoWheel
//
// Created by Kirby Turner on 12/11/12.
// Copyright (c) 2012 White Peak Software Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <MessageUI/MessageUI.h>
#import <MessageUI/MFMailComposeViewController.h>
@protocol SendEmailControllerDelegate;
... | //
// SendEmailController.h
// PhotoWheel
//
// Created by Kirby Turner on 12/11/12.
// Copyright (c) 2012 White Peak Software Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <MessageUI/MessageUI.h>
#import <MessageUI/MFMailComposeViewController.h>
@protocol SendEmailControllerDelegate;
... | ---
+++
@@ -16,7 +16,7 @@
@interface SendEmailController : NSObject <MFMailComposeViewControllerDelegate>
-@property (nonatomic, strong) UIViewController<SendEmailControllerDelegate> *viewController;
+@property (nonatomic, weak) UIViewController<SendEmailControllerDelegate> *viewController;
@property (nonatomic... | Change from strong to weak.
| mit | kirbyt/PhotoWheel,kirbyt/PhotoWheel | a34e8ff7a88128234c647074f588ea87435a9fd9 |
#ifndef KMEM_H
#define KMEM_H
#include <stdbool.h>
#include <stdint.h>
#include <arch/x86/paging.h>
#include <libk/kabort.h>
#define KHEAP_PHYS_ROOT ((void*)0x100000)
//#define KHEAP_PHYS_END ((void*)0xc1000000)
#define KHEAP_END_SENTINEL (NULL)
#define KHEAP_BLOCK_SLOP 32
struct kheap_metadata {
size_t size;
... | #ifndef KMEM_H
#define KMEM_H
#include <stdbool.h>
#include <stdint.h>
#include <arch/x86/paging.h>
#include <libk/kabort.h>
#define KHEAP_PHYS_ROOT ((void*)0x100000)
//#define KHEAP_PHYS_END ((void*)0xc1000000)
#define KHEAP_END_SENTINEL (NULL)
// 1 GB
#define PHYS_MEMORY_SIZE (1*1024*1024*1024)
#define KHEAP_BLOCK... | ---
+++
@@ -8,13 +8,8 @@
#define KHEAP_PHYS_ROOT ((void*)0x100000)
//#define KHEAP_PHYS_END ((void*)0xc1000000)
#define KHEAP_END_SENTINEL (NULL)
-// 1 GB
-#define PHYS_MEMORY_SIZE (1*1024*1024*1024)
#define KHEAP_BLOCK_SLOP 32
-
-#define PAGE_ALIGN(x) ((uint32_t)x >> 12)
-
struct kheap_metadata { | Remove macros which now live in paging.h
| mit | iankronquist/kernel-of-truth,Herbstein/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,awensaunders/kernel-of-truth,Herbstein/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,awensaunders/kernel-of-truth,Herbstein/kernel-of-truth,awensaunders/kernel-of-truth | 894133a4b116abcde29ae9a92e5f823af6713083 |
/* Copyright (c) 2015, ENEA Software AB
* Copyright (c) 2015, Nokia
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef __OFP_ODP_COMPAT__
#define __OFP_ODP_COMPAT__
#if ODP_VERSION == 102
#include "linux.h"
#else
#include "odp/helper/linux.h"
#endif /* odp_version == 102 */
#if ODP_... | /* Copyright (c) 2015, ENEA Software AB
* Copyright (c) 2015, Nokia
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef __OFP_ODP_COMPAT__
#define __OFP_ODP_COMPAT__
#if ODP_VERSION == 102
#include "linux.h"
#else
#include "odp/helper/linux.h"
#endif /* odp_version == 102 */
#if ODP_... | ---
+++
@@ -22,8 +22,9 @@
#define odp_cpumask_default_worker(cpumask, num_workers) odp_cpumask_def_worker(cpumask, num_workers)
#elif ODP_VERSION < 102
#define odp_cpumask_default_worker(cpumask, num_workers) odp_cpumask_count(cpumask)
-#define ODP_THREAD_WORKER
-#define ODP_THREAD_CONTROL
+#define odp_init_local(... | Define ODP_THREAD_WORKER and ODP_THREAD_CONTROL as in it's original enum, instead of mangling them.
Defining odp_init_local like this we can initialized properly the
values of ODP_THREAD_WORKER and ODP_THREAD_CONTROL. This is important
for the following patch where we need to define odp_threat_type_t.
Signed-off-by: ... | bsd-3-clause | OpenFastPath/ofp,OpenFastPath/ofp,OpenFastPath/ofp,TolikH/ofp,TolikH/ofp,OpenFastPath/ofp,TolikH/ofp | b3f4c5d49830a8ef77ec1d74e8100fe3cc561230 |
/****************************************************
* This is a test that will test barriers *
****************************************************/
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <fcntl.h>
#include "carbon_user.h"
#include "capi.h"
#include "... | /****************************************************
* This is a test that will test barriers *
****************************************************/
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <fcntl.h>
#include "carbon_user.h"
#include "capi.h"
#include "... | ---
+++
@@ -22,7 +22,7 @@
const unsigned int num_threads = 5;
carbon_thread_t threads[num_threads];
- barrierInit(&my_barrier, num_threads);
+ CarbonBarrierInit(&my_barrier, num_threads);
for(unsigned int i = 0; i < num_threads; i++)
threads[i] = CarbonSpawnThread(test_wait_barrier, (void ... | [tests] Update barrier test to new api.
| mit | victorisildur/Graphite,mit-carbon/Graphite-Cycle-Level,mit-carbon/Graphite-Cycle-Level,mit-carbon/Graphite,mit-carbon/Graphite-Cycle-Level,8l/Graphite,victorisildur/Graphite,8l/Graphite,nkawahara/Graphite,fhijaz/Graphite,8l/Graphite,8l/Graphite,mit-carbon/Graphite-Cycle-Level,nkawahara/Graphite,nkawahara/Graphite,mit-c... | 0e363dd05530ea6d0fe407bfbeb0eff4706301cc |
#pragma once
#include "chainerx/array.h"
#include "chainerx/kernel.h"
namespace chainerx {
class SinhKernel : public Kernel {
public:
static const char* name() { return "Sinh"; }
virtual void Call(const Array& x, const Array& out) = 0;
};
class CoshKernel : public Kernel {
public:
static const char* na... | #pragma once
#include "chainerx/array.h"
#include "chainerx/kernel.h"
namespace chainerx {
class SinhKernel : public Kernel {
public:
static const char* name() { return "Sinh"; }
virtual void Call(const Array& x, const Array& out) = 0;
};
class CoshKernel : public Kernel {
public:
static const char* na... | ---
+++
@@ -28,7 +28,7 @@
class ArcsinhKernel : public Kernel {
public:
- static const char* name() { return "Archsinh"; }
+ static const char* name() { return "Arcsinh"; }
virtual void Call(const Array& x, const Array& out) = 0;
}; | Fix a typo in a kernel name
| mit | pfnet/chainer,wkentaro/chainer,chainer/chainer,chainer/chainer,chainer/chainer,niboshi/chainer,chainer/chainer,niboshi/chainer,wkentaro/chainer,hvy/chainer,wkentaro/chainer,hvy/chainer,niboshi/chainer,hvy/chainer,hvy/chainer,niboshi/chainer,wkentaro/chainer | 1cd869313d2d54aadf44d1958e5a987dee0f1a90 |
// LAF Gfx Library
// Copyright (C) 2019 Igara Studio S.A.
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifndef GFX_SIZE_IO_H_INCLUDED
#define GFX_SIZE_IO_H_INCLUDED
#pragma once
#include "gfx/size.h"
#include <iosfwd>
namespace gfx {
inline std::ostre... | // LAF Gfx Library
// Copyright (C) 2019 Igara Studio S.A.
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifndef GFX_SIZE_IO_H_INCLUDED
#define GFX_SIZE_IO_H_INCLUDED
#pragma once
#include "gfx/size.h"
#include <iosfwd>
namespace gfx {
inline std::ostre... | ---
+++
@@ -15,8 +15,8 @@
inline std::ostream& operator<<(std::ostream& os, const Size& size) {
return os << "("
- << size.x << ", "
- << size.y << ")";
+ << size.w << ", "
+ << size.h << ")";
}
inline std::istream& operator>>(std::istream& in, Siz... | Fix operator<<(ostream&) and operator>>(istream&) for gfx::Size
| mit | aseprite/laf,aseprite/laf | 4fddd802417ad903fe7dd590d7175d556c0697dd |
#define _SLAVEREGISTERS
#include <inttypes.h>
//Functions needed from other modules
extern void MODBUSBuildException( uint8_t, uint8_t );
//Functions for parsing requests
extern void MODBUSParseRequest03( union MODBUSParser *Parser );
extern void MODBUSParseRequest06( union MODBUSParser *Parser );
extern void MODBUS... | #define _SLAVEREGISTERS
#include <inttypes.h>
//Functions needed from other modules
extern void MODBUSBuildException( uint8_t, uint8_t );
//Functions for parsing requests
extern void MODBUSParseRequest03( union MODBUSParser *Parser );
extern void MODBUSParseRequest06( union MODBUSParser *Parser );
extern void MODBUS... | ---
+++
@@ -9,3 +9,8 @@
extern void MODBUSParseRequest03( union MODBUSParser *Parser );
extern void MODBUSParseRequest06( union MODBUSParser *Parser );
extern void MODBUSParseRequest16( union MODBUSParser *Parser );
+
+//Functions for building responses
+extern void MODBUSBuildResponse03( union MODBUSParser *Parse... | Add prototypes of response-building functions
| mit | Jacajack/modlib | 24ccdf6f2a0802a286416133d31364d42d18d720 |
#ifndef WATCHER_GLOBAL_FUNCTIONS
#define WATCHER_GLOBAL_FUNCTIONS
#include <boost/serialization/split_free.hpp>
#include "watcherTypes.h"
BOOST_SERIALIZATION_SPLIT_FREE(boost::asio::ip::address);
namespace boost
{
namespace serialization
{
template<class Archive>
void save(Archive & ar,... | #ifndef WATCHER_GLOBAL_FUNCTIONS
#define WATCHER_GLOBAL_FUNCTIONS
#include <boost/asio/ip/address.hpp>
#include <boost/serialization/split_free.hpp>
BOOST_SERIALIZATION_SPLIT_FREE(boost::asio::ip::address);
namespace boost
{
namespace serialization
{
template<class Archive>
void save(Ar... | ---
+++
@@ -1,8 +1,8 @@
#ifndef WATCHER_GLOBAL_FUNCTIONS
#define WATCHER_GLOBAL_FUNCTIONS
-#include <boost/asio/ip/address.hpp>
#include <boost/serialization/split_free.hpp>
+#include "watcherTypes.h"
BOOST_SERIALIZATION_SPLIT_FREE(boost::asio::ip::address);
@@ -11,14 +11,14 @@
namespace serialization ... | Use watcher::NodeIdentifier in place of boost::asio::address
| agpl-3.0 | glawler/watcher-visualization,glawler/watcher-visualization,glawler/watcher-visualization,glawler/watcher-visualization,glawler/watcher-visualization | d799cd9b227334a81c4c98068f09bad8c4be27c1 |
// UIKitExtensions
//
// UIKitExtensions/UIView/Framing.h
//
// Copyright (c) 2013 Stanislaw Pankevich
// Released under the MIT license
//
// Inspired by FrameAccessor
// https://github.com/AlexDenisov/FrameAccessor/
#import <UIKit/UIKit.h>
@interface UIView (Framing)
// http://stackoverflow.com/questions/16118106/... | // UIKitExtensions
//
// UIKitExtensions/UIView/Framing.h
//
// Copyright (c) 2013 Stanislaw Pankevich
// Released under the MIT license
//
// Inspired by FrameAccessor
// https://github.com/AlexDenisov/FrameAccessor/
#import <UIKit/UIKit.h>
@interface UIView (Framing)
@property CGPoint viewOrigin;
@property CGSize ... | ---
+++
@@ -12,6 +12,8 @@
@interface UIView (Framing)
+// http://stackoverflow.com/questions/16118106/uitextview-strange-text-clipping
+// https://github.com/genericspecific/CKUITools/issues/8
@property CGPoint viewOrigin;
@property CGSize viewSize;
| Add links to original problem
| mit | stanislaw/UIKitExtensions,stanislaw/UIKitExtensions,stanislaw/UIKitExtensions,stanislaw/UIKitExtensions | 351c01d249e0b93f4d2805f5b93d6cb52fae8894 |
#pragma once
#include <SDL2/SDL.h>
#include <string>
class Application
{
private:
// Main loop flag
bool quit;
// The window
SDL_Window* window;
// The window renderer
SDL_Renderer* renderer;
// The background color
SDL_Color backgroundColor;
// Window properties
std::string title... | #pragma once
#include <SDL2/SDL.h>
#include <string>
class Application
{
private:
// Main loop flag
bool quit;
// The window
SDL_Window* window;
// The window renderer
SDL_Renderer* renderer;
// The background color
SDL_Color backgroundColor;
// Window properties
std::string title... | ---
+++
@@ -40,6 +40,21 @@
void set_background_color(SDL_Color color);
+
+ unsigned int get_window_height()
+ {
+ return windowHeight;
+ }
+
+ unsigned int get_window_width()
+ {
+ return windowWidth;
+ }
+
+ bool is_fullscreen()
+ {
+ return isFullscreen;
+ }
public:
Application(); | Add getters for window constants
| mit | gldraphael/SdlTemplate | dd3ef21ed70fa4d34f6713f83089c821b2707a60 |
//
// OAuthManager.h
//
// Created by Ari Lerner on 5/31/16.
// Copyright © 2016 Facebook. All rights reserved.
//
#import <Foundation/Foundation.h>
#if __has_include(<React/RCTBridgeModule.h>)
#import <React/RCTBridgeModule.h>
#else
#import "RCTBridgeModule.h"
#endif
#if __has_include(<React/RCTLinkingManage... | //
// OAuthManager.h
//
// Created by Ari Lerner on 5/31/16.
// Copyright © 2016 Facebook. All rights reserved.
//
#import <Foundation/Foundation.h>
#if __has_include(<React/RCTBridgeModule.h>)
#import <React/RCTBridgeModule.h>
#else
#import "RCTBridgeModule.h"
#endif
#if __has_include("RCTLinkingManager.h")
... | ---
+++
@@ -13,10 +13,10 @@
#import "RCTBridgeModule.h"
#endif
-#if __has_include("RCTLinkingManager.h")
+#if __has_include(<React/RCTLinkingManager.h>)
+ #import <React/RCTLinkingManager.h>
+#else
#import "RCTLinkingManager.h"
-#else
- #import <React/RCTLinkingManager.h>
#endif
| Fix duplicate React library import error conflict w/certain pods
| mit | fullstackreact/react-native-oauth,fullstackreact/react-native-oauth,fullstackreact/react-native-oauth | 3949c3ba8cec129241ce6c47534f417d619c34e3 |
// Copyright (C) 2017 Elviss Strazdins
// This file is part of the Ouzel engine.
#pragma once
#include <X11/keysym.h>
#include <X11/XKBlib.h>
#include <X11/cursorfont.h>
#include <X11/X.h>
#include "input/Input.h"
namespace ouzel
{
class Engine;
namespace input
{
class InputLinux: public Input
... | // Copyright (C) 2017 Elviss Strazdins
// This file is part of the Ouzel engine.
#pragma once
#include <X11/keysym.h>
#include <X11/XKBlib.h>
#include <X11/cursorfont.h>
#include <X11/X.h>
#include "input/Input.h"
namespace ouzel
{
class Engine;
namespace input
{
class InputLinux: public Input
... | ---
+++
@@ -38,7 +38,7 @@
bool cursorVisible = true;
bool cursorLocked = false;
- Cursor emptyCursor = None;
+ ::Cursor emptyCursor = None;
};
} // namespace input
} // namespace ouzel | Fix the declaration of Cursor on Linux
| unlicense | Hotspotmar/ouzel,elvman/ouzel,elnormous/ouzel,Hotspotmar/ouzel,elnormous/ouzel,elnormous/ouzel,Hotspotmar/ouzel,elvman/ouzel | c3a30babd416d7c91ba0d187ff9e57df49930595 |
/*
* Copyright 2014, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*/
#ifndef _UTILS_BUILTIN_H
#define _UTILS_BUILTIN_H
/* macros for accessing compiler b... | /*
* Copyright 2014, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*/
#ifndef _UTILS_BUILTIN_H
#define _UTILS_BUILTIN_H
/* macros for accessing compiler b... | ---
+++
@@ -27,4 +27,8 @@
__builtin_unreachable(); \
} while (0)
+/* Borrowed from linux/include/linux/compiler.h */
+#define likely(x) __builtin_expect(!!(x), 1)
+#define unlikely(x) __builtin_expect(!!(x), 0)
+
#endif /* _UTILS_BUILTIN_H */ | Add likely and unlikely macros.
| bsd-2-clause | agacek/util_libs,winksaville/libutils,agacek/util_libs,agacek/util_libs,seL4/libutils,agacek/util_libs | 9e469bb71d97fb04c425c0955e27174841fe4ba8 |
#include <stdio.h>
#include <string.h>
#ifdef WIN32
#define DLLEXPORT __declspec(dllexport)
#else
#define DLLEXPORT extern
#endif
DLLEXPORT void Nothing()
{
/* we don't even print something */
}
DLLEXPORT int Argless()
{
return 2;
}
DLLEXPORT int long_and_complicated_name()
{
return 3;
}
| #include <stdio.h>
#include <string.h>
#ifdef WIN32
#define DLLEXPORT __declspec(dllexport)
#else
#define DLLEXPORT extern
#endif
DLLEXPORT Nothing()
{
/* we don't even print something */
}
DLLEXPORT int Argless()
{
return 2;
}
DLLEXPORT int long_and_complicated_name()
{
return 3;
}
| ---
+++
@@ -7,7 +7,7 @@
#define DLLEXPORT extern
#endif
-DLLEXPORT Nothing()
+DLLEXPORT void Nothing()
{
/* we don't even print something */
} | Fix compiler warnings on OS X / JVM backend
| artistic-2.0 | Leont/rakudo,softmoth/rakudo,salortiz/rakudo,skids/rakudo,dankogai/rakudo,laben/rakudo,ugexe/rakudo,ungrim97/rakudo,labster/rakudo,tony-o/deb-rakudodaily,salortiz/rakudo,usev6/rakudo,salortiz/rakudo,tony-o/deb-rakudodaily,teodozjan/rakudo,nbrown/rakudo,rakudo/rakudo,ungrim97/rakudo,MasterDuke17/rakudo,awwaiid/rakudo,zo... | 4659f32c7023d6c92874e284d3c031418d634728 |
#include "papi.h"
#include <sys/procfs.h>
#include <stdio.h>
#include <fcntl.h>
int get_memory_info( PAPI_mem_info_t * mem_info ){
int retval = 0;
return PAPI_OK;
}
long _papi_hwd_get_dmem_info(int option){
pid_t pid = getpid();
prpsinfo_t info;
char pfile[256];
int fd;
sprintf(pfile, "/proc/%05... | #include "papi.h"
int get_memory_info( PAPI_mem_info_t * mem_info ){
int retval = 0;
return PAPI_OK;
}
long _papi_hwd_get_dmem_info(int option){
}
| ---
+++
@@ -1,4 +1,7 @@
#include "papi.h"
+#include <sys/procfs.h>
+#include <stdio.h>
+#include <fcntl.h>
int get_memory_info( PAPI_mem_info_t * mem_info ){
int retval = 0;
@@ -6,4 +9,26 @@
}
long _papi_hwd_get_dmem_info(int option){
+ pid_t pid = getpid();
+ prpsinfo_t info;
+ char pfile[256];
+ ... | Support for dynamic memory information added for Alpha
| bsd-3-clause | pyrovski/papi,arm-hpc/papi,pyrovski/papi,pyrovski/papi,pyrovski/papi,arm-hpc/papi,pyrovski/papi,pyrovski/papi,arm-hpc/papi,pyrovski/papi,pyrovski/papi,arm-hpc/papi,arm-hpc/papi,arm-hpc/papi,arm-hpc/papi | ef0e80e41dafccc5d3b64b37d150b4cee858997e |
/*
* scheduler.h
*
* Created on: Jun 8, 2016
* Author: riley
*/
#ifndef SCHEDULER_H
#define SCHEDULER_H
#include <stdint.h>
#include "scheduler_private.h"
typedef void (*task_func_t)( void ) ;
typedef volatile struct task_private_s {
const char * name;
volatile void * task_sp; //Task stack pointe... | /*
* scheduler.h
*
* Created on: Jun 8, 2016
* Author: riley
*/
#ifndef SCHEDULER_H
#define SCHEDULER_H
#include <stdint.h>
#include "scheduler_private.h"
typedef void (*task_func_t)( void ) ;
typedef volatile struct task_private_s {
const char * name;
volatile void * task_sp; //Task stack pointe... | ---
+++
@@ -25,9 +25,6 @@
/**
* Add task to task list to be run at next context switch.
- * Push task routine pointer and empty status register
- * onto the new task stack so they can be popped off later
- * from the task switch interrupt.
*/
void scheduler_add_task(task_t * task_handle, const char * name,
... | Remove implementation details from API comment
| mit | rjw245/rileyOS | f44be40fe1d9be9535a4819d7ef468cbba34ea74 |
// Make sure instrumentation data from available_externally functions doesn't
// get thrown out and are emitted with the expected linkage.
// RUN: %clang_cc1 -O2 -triple x86_64-apple-macosx10.9 -main-file-name c-linkage-available_externally.c %s -o - -emit-llvm -fprofile-instrument=clang | FileCheck %s
// CHECK: @__pr... | // Make sure instrumentation data from available_externally functions doesn't
// get thrown out and are emitted with the expected linkage.
// RUN: %clang_cc1 -O2 -triple x86_64-apple-macosx10.9 -main-file-name c-linkage-available_externally.c %s -o - -emit-llvm -fprofile-instrument=clang | FileCheck %s
// CHECK: @__pr... | ---
+++
@@ -3,7 +3,7 @@
// RUN: %clang_cc1 -O2 -triple x86_64-apple-macosx10.9 -main-file-name c-linkage-available_externally.c %s -o - -emit-llvm -fprofile-instrument=clang | FileCheck %s
// CHECK: @__profc_foo = linkonce_odr hidden global [1 x i64] zeroinitializer, section "__DATA,__llvm_prf_cnts", align 8
-// ... | [Profile] Update testcase for r283948 (NFC)
Old: "__DATA,__llvm_prf_data"
New: "__DATA,__llvm_prf_data,regular,live_support"
This should fix the following bot failure:
http://bb.pgr.jp/builders/cmake-clang-x86_64-linux/builds/55158
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@283949 91177308-0d34-0410-b5e... | apache-2.0 | llvm-mirror/clang,apple/swift-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,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl... | 88f1ce548a1e06c1d40dea57346dcd654f718fb7 |
//===--- TargetBuiltins.h - Target specific builtin IDs -------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Anders Carlsson and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===------------------... | //===--- TargetBuiltins.h - Target specific builtin IDs -------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Anders Carlsson and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===------------------... | ---
+++
@@ -11,8 +11,6 @@
#define LLVM_CLANG_AST_TARGET_BUILTINS_H
#include "clang/AST/Builtins.h"
-
-namespace clang {
/// X86 builtins
namespace X86 {
@@ -34,6 +32,4 @@
};
}
-}
-
#endif | Revert change that broke the build.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@44808 91177308-0d34-0410-b5e6-96231b3b80d8
| apache-2.0 | apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... | 05f753b996a6ea712ab06787190fb3287610fc59 |
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <termbox.h>
#include "editor.h"
#include "util.h"
// termbox catches ctrl-z as a regular key event. To suspend the process as
// normal, manually raise SIGTSTP.
//
// Not 100% sure why we need to shutdown termbox, but the terminal gets all
// weird... | #include <stdio.h>
#include <stdlib.h>
#include <termbox.h>
#include "editor.h"
#include "util.h"
int main(int argc, char *argv[]) {
debug_init();
editor_t editor;
cursor_t cursor;
editor_init(&editor, &cursor, argc > 1 ? argv[1] : NULL);
int err = tb_init();
if (err) {
fprintf(stderr, "tb_init() f... | ---
+++
@@ -1,10 +1,32 @@
#include <stdio.h>
#include <stdlib.h>
+
+#include <signal.h>
#include <termbox.h>
#include "editor.h"
#include "util.h"
+
+// termbox catches ctrl-z as a regular key event. To suspend the process as
+// normal, manually raise SIGTSTP.
+//
+// Not 100% sure why we need to shutdown t... | Handle Ctrl-Z to suspend the process.
| mit | isbadawi/badavi | 459c21926c5bbefe8689a4b4fd6088d0e6ed05f1 |
extern void denoise(void*, int, const uint32_t *in, uint32_t *out, int h, int w);
extern void *kernelInit(void);
extern void kernelFinalize(void*);
enum {
// "Real" filters
SPATIAL,
TEMPORAL_AVG,
ADAPTIVE_TEMPORAL_AVG,
KNN,
AKNN,
// Helpers
DIFF,
SOBEL,
MOTION,
NFILTERS,
};
| extern void denoise(void*, int, const uint32_t *in, uint32_t *out, int h, int w);
extern void *kernelInit(void);
extern void kernelFinalize(void*);
enum {
SPATIAL,
TEMPORAL_AVG,
KNN,
AKNN,
ADAPTIVE_TEMPORAL_AVG,
DIFF,
SOBEL,
MOTION,
};
| ---
+++
@@ -3,12 +3,16 @@
extern void kernelFinalize(void*);
enum {
+ // "Real" filters
SPATIAL,
TEMPORAL_AVG,
+ ADAPTIVE_TEMPORAL_AVG,
KNN,
AKNN,
- ADAPTIVE_TEMPORAL_AVG,
+ // Helpers
DIFF,
SOBEL,
MOTION,
+
+ NFILTERS,
}; | Add comments for filter enums
| mit | xiaq/webcamfilter,xiaq/webcamfilter,xiaq/webcamfilter | cde8356ff78ad98f1c5cf8f34fa92014a1c0342f |
/** \file
* This file only exists to contain the front-page of the documentation
*/
/** \mainpage Documentation of the API if the Tiramisu Compiler
*
* Tiramisu provides few classes to enable users to represent their program:
* - The \ref tiramisu::function class: a function in Tiramisu is equivalent to a functio... | /** \file
* This file only exists to contain the front-page of the documentation
*/
/** \mainpage Documentation of the API if the Tiramisu Compiler
*
* Tiramisu provides few classes to enable users to represent their program:
* - The \ref tiramisu::function class: a function in Tiramisu is equivalent to a functio... | ---
+++
@@ -8,7 +8,7 @@
* - The \ref tiramisu::function class: a function in Tiramisu is equivalent to a function in C. It is composed of multiple computations. Each computation is the equivalent of a statement in C.
* - The \ref tiramisu::input class: an input is used to represent inputs passed to Tiramisu. An ... | Fix the documentation main page
| mit | rbaghdadi/COLi,rbaghdadi/tiramisu,rbaghdadi/tiramisu,rbaghdadi/tiramisu,rbaghdadi/tiramisu,rbaghdadi/ISIR,rbaghdadi/ISIR,rbaghdadi/COLi | accec546d710228b9b2a5cc84557cde6624d7a89 |
/*
Interface to various FFT libraries.
Double complex FFT and IFFT, arbitrary dimensions.
Author: Pearu Peterson, August 2002
*/
#include "fftpack.h"
/* The following macro convert private backend specific function to the public
* functions exported by the module */
#define GEN_PUBLIC_API(name) \
void destroy... | /*
Interface to various FFT libraries.
Double complex FFT and IFFT, arbitrary dimensions.
Author: Pearu Peterson, August 2002
*/
#include "fftpack.h"
/* The following macro convert private backend specific function to the public
* functions exported by the module */
#define GEN_PUBLIC_API(name) \
void destroy... | ---
+++
@@ -19,27 +19,5 @@
zfftnd_##name(inout, rank, dims, direction, howmany, normalize);\
}
-#if defined(WITH_FFTW) || defined(WITH_MKL)
-static
-int equal_dims(int rank,int *dims1,int *dims2) {
- int i;
- for (i=0;i<rank;++i)
- if (dims1[i]!=dims2[i])
- return 0;
- return 1;
-}
-#endif
-
-#... | Remove any non-fftpack code for complex, multi-dimension fft.
| bsd-3-clause | lhilt/scipy,zaxliu/scipy,behzadnouri/scipy,andyfaff/scipy,andim/scipy,newemailjdm/scipy,gef756/scipy,jor-/scipy,fernand/scipy,witcxc/scipy,Eric89GXL/scipy,behzadnouri/scipy,futurulus/scipy,gef756/scipy,gfyoung/scipy,ogrisel/scipy,mdhaber/scipy,maciejkula/scipy,bkendzior/scipy,ilayn/scipy,chatcannon/scipy,aarchiba/scipy... | c46c6a4191ef841fb9e5c852985cbaef31846329 |
#ifndef _SHAKE_H_
#define _SHAKE_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "shake_private.h"
struct shakeDev;
/* libShake functions */
int shakeInit();
void shakeQuit();
void shakeListDevices();
int shakeNumOfDevices();
shakeDev *shakeOpen(unsigned int id);
void shakeClose(shakeDev *dev);
int shakeQuery(sh... | #ifndef _SHAKE_H_
#define _SHAKE_H_
#include "shake_private.h"
struct shakeDev;
/* libShake functions */
int shakeInit();
void shakeQuit();
void shakeListDevices();
int shakeNumOfDevices();
shakeDev *shakeOpen(unsigned int id);
void shakeClose(shakeDev *dev);
int shakeQuery(shakeDev *dev);
void shakeSetGain(shakeDev... | ---
+++
@@ -1,5 +1,9 @@
#ifndef _SHAKE_H_
#define _SHAKE_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
#include "shake_private.h"
@@ -20,4 +24,8 @@
void shakePlay(shakeDev *dev, int id);
void shakeStop(shakeDev *dev, int id);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _SHAKE_H_ */ | Use C calling convention when header is included by C++ code
| mit | zear/libShake,ShadowApex/libShake,ShadowApex/libShake,zear/libShake | 87abaffc4ee3c5a694657821e55d66f7520e66cd |
/* Author: Dan Wilder
*
* School: University of Missouri - St. Louis
* Semester: Fall 2015
* Class: CS 3130 - Design and Analysis of Algorithms
* Instructor: Galina N. Piatnitskaia
*/
#include "sort_algorithms.h"
void swap(int *x, int *y) {
int temp = *x;
*x = *y
*y = temp;
}
void bubbleS... | /* Author: Dan Wilder
*
* School: University of Missouri - St. Louis
* Semester: Fall 2015
* Class: CS 3130 - Design and Analysis of Algorithms
* Instructor: Galina N. Piatnitskaia
*/
#include "sort_algorithms.h"
void swap(int *x, int *y) {
int temp = *x;
*x = *y
*y = temp;
}
void bubbleS... | ---
+++
@@ -14,12 +14,12 @@
*y = temp;
}
-void bubbleSort(int arr[], int n) {
-/* with swaps counting. n is the size of arr.
+void bubbleSort(int arr[], int size) {
+/* with swaps counting.
*/
int i, j;
- for (i = 0; i <= n-1; ++i)
- for (j = n; j >= i+1; --j)
+ for (i = 0; i <= size-1; ++i) ... | Change name of parameter in bubbleSort
| mit | sentientWilder/Search-and-Sort,sentientWilder/Search-and-Sort | a919d4dcbd4286c675d4ef6d720dd80b71be3614 |
#include <stdio.h>
#include <stdlib.h> /* for free */
#include <string.h> /* for strcmp */
#include <strings.h>
#include <platform/cbassert.h>
static void test_asprintf(void) {
char *result = 0;
cb_assert(asprintf(&result, "test 1") > 0);
cb_assert(strcmp(result, "test 1") == 0);
free(result);
cb... | #include <stdio.h>
#include <stdlib.h> /* for free */
#include <string.h> /* for strcmp */
#include <strings.h>
#include <platform/cbassert.h>
static void test_asprintf(void) {
char *result = 0;
(void)asprintf(&result, "test 1");
cb_assert(strcmp(result, "test 1") == 0);
free(result);
(void)aspri... | ---
+++
@@ -7,15 +7,15 @@
static void test_asprintf(void) {
char *result = 0;
- (void)asprintf(&result, "test 1");
+ cb_assert(asprintf(&result, "test 1") > 0);
cb_assert(strcmp(result, "test 1") == 0);
free(result);
- (void)asprintf(&result, "test %d", 2);
+ cb_assert(asprintf(&result... | Check for return value for asprintf
Change-Id: Ib163468aac1a5e52cef28c59b55be2287dc4ba43
Reviewed-on: http://review.couchbase.org/43023
Reviewed-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>
Tested-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>
| apache-2.0 | vmx/platform,vmx/platform | 97c8ae2e5624cdd8576a9acc9b70a9cb7cb47927 |
#include <stdlib.h>
#include "seatest.h"
static void test_abs (void)
{
// abs
assert_int_equal(0, abs(0));
assert_int_equal(1, abs(1));
assert_int_equal(INT_MAX, abs(INT_MAX));
assert_int_equal(1, abs(-1));
// labs
assert_true(labs(0) == 0);
assert_true(labs(1) == 1);
assert_true(la... | #include <stdlib.h>
#include "seatest.h"
static void test_abs (void)
{
// abs
assert_true(abs(0) == 0);
assert_true(abs(1) == 1);
assert_true(abs(INT_MAX) == INT_MAX);
assert_true(abs(-1) == 1);
// labs
assert_true(labs(0) == 0);
assert_true(labs(1) == 1);
assert_true(labs(LONG_MAX)... | ---
+++
@@ -4,10 +4,10 @@
static void test_abs (void)
{
// abs
- assert_true(abs(0) == 0);
- assert_true(abs(1) == 1);
- assert_true(abs(INT_MAX) == INT_MAX);
- assert_true(abs(-1) == 1);
+ assert_int_equal(0, abs(0));
+ assert_int_equal(1, abs(1));
+ assert_int_equal(INT_MAX, abs(INT_MAX)... | Use assert_int_equal not assert_true where possible
| mit | kristapsk/resclib,kristapsk/resclib,kristapsk/reclib,kristapsk/reclib | 4ebe6c82223445eaf08ef58f8abb031c8b5297b9 |
#import <WebKit/WebKit.h>
typedef NS_ENUM (NSInteger, WMFWKScriptMessageType) {
WMFWKScriptMessageUnknown,
WMFWKScriptMessagePeek,
WMFWKScriptMessageConsoleMessage,
WMFWKScriptMessageClickLink,
WMFWKScriptMessageClickImage,
WMFWKScriptMessageClickReference,
WMFWKScriptMessageClickEdit,
... | #import <WebKit/WebKit.h>
typedef NS_ENUM (NSInteger, WMFWKScriptMessageType) {
WMFWKScriptMessagePeek,
WMFWKScriptMessageConsoleMessage,
WMFWKScriptMessageClickLink,
WMFWKScriptMessageClickImage,
WMFWKScriptMessageClickReference,
WMFWKScriptMessageClickEdit,
WMFWKScriptMessageNonAnchorTouc... | ---
+++
@@ -1,6 +1,7 @@
#import <WebKit/WebKit.h>
typedef NS_ENUM (NSInteger, WMFWKScriptMessageType) {
+ WMFWKScriptMessageUnknown,
WMFWKScriptMessagePeek,
WMFWKScriptMessageConsoleMessage,
WMFWKScriptMessageClickLink,
@@ -9,8 +10,7 @@
WMFWKScriptMessageClickEdit,
WMFWKScriptMessageNo... | Move unknown enum entry to top.
| mit | anirudh24seven/wikipedia-ios,julienbodet/wikipedia-ios,wikimedia/wikipedia-ios,montehurd/apps-ios-wikipedia,josve05a/wikipedia-ios,julienbodet/wikipedia-ios,julienbodet/wikipedia-ios,anirudh24seven/wikipedia-ios,julienbodet/wikipedia-ios,montehurd/apps-ios-wikipedia,wikimedia/wikipedia-ios,anirudh24seven/wikipedia-ios,... | 188806ede0679466bb5890f3ec1b52736d7ccc49 |
#import "CoreDataAdditions/NSManagedObject+TDTAdditions.h"
#import "CoreDataAdditions/NSManagedObjectContext+TDTAdditions.h"
#import "CoreDataAdditions/TDTCoreDataUtilityMacros.h"
#import "TargetConditionals.h"
#if TARGET_OS_IPHONE
#import "CoreDataAdditions/NSFetchedResultsController+TDTAdditions.h"
#endif
| #import "CoreDataAdditions/NSManagedObject+TDTAdditions.h"
#import "CoreDataAdditions/NSManagedObjectContext+TDTAdditions.h"
#import "CoreDataAdditions/TDTCoreDataUtilityMacros.h"
#ifdef TARGET_IPHONE_OS
#import "CoreDataAdditions/NSFetchedResultsController+TDTAdditions.h"
#endif
| ---
+++
@@ -2,6 +2,7 @@
#import "CoreDataAdditions/NSManagedObjectContext+TDTAdditions.h"
#import "CoreDataAdditions/TDTCoreDataUtilityMacros.h"
-#ifdef TARGET_IPHONE_OS
+#import "TargetConditionals.h"
+#if TARGET_OS_IPHONE
#import "CoreDataAdditions/NSFetchedResultsController+TDTAdditions.h"
#endif | Fix conditional compilation mechanism for ios
| bsd-3-clause | talk-to/Chocolate,talk-to/Chocolate | 486c59553f64771f7bc1c984324b71442b45dfa2 |
/*-------------------------------------------------------------------------
*
* pqsignal.c
* reliable BSD-style signal(2) routine stolen from RWW who stole it
* from Stevens...
*
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University o... | /*-------------------------------------------------------------------------
*
* pqsignal.c
* reliable BSD-style signal(2) routine stolen from RWW who stole it
* from Stevens...
*
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University o... | ---
+++
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/pqsignal.c,v 1.15 2002/06/20 20:29:54 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/pqsignal.c,v 1.16 2002/11/04 14:27:21 tgl Exp $
*
* NOTES
* This shouldn't be in libpq, but the monitor an... | Fix inclusion order, per Andreas.
| apache-2.0 | ahachete/gpdb,lintzc/gpdb,janebeckman/gpdb,zaksoup/gpdb,CraigHarris/gpdb,Quikling/gpdb,kaknikhil/gpdb,kmjungersen/PostgresXL,jmcatamney/gpdb,rubikloud/gpdb,rvs/gpdb,ovr/postgres-xl,greenplum-db/gpdb,kaknikhil/gpdb,randomtask1155/gpdb,randomtask1155/gpdb,techdragon/Postgres-XL,rvs/gpdb,Quikling/gpdb,50wu/gpdb,ahachete/g... | 04eb41980945926927e8dd22b420182ab7a47bc2 |
//@author A0094446X
#pragma once
#ifndef YOU_GUI_STDAFX_H_
#define YOU_GUI_STDAFX_H_
#include <memory>
#include <QApplication>
#include <QList>
#include <QWidget>
#include <QtWidgets>
#include <boost/date_time/gregorian/greg_month.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#endif // YOU_GUI_STDAFX_H_... | //@author A0094446X
#pragma once
#ifndef YOU_GUI_STDAFX_H_
#define YOU_GUI_STDAFX_H_
#include <QtWidgets>
#endif // YOU_GUI_STDAFX_H_
| ---
+++
@@ -2,5 +2,14 @@
#pragma once
#ifndef YOU_GUI_STDAFX_H_
#define YOU_GUI_STDAFX_H_
+
+#include <memory>
+#include <QApplication>
+#include <QList>
+#include <QWidget>
#include <QtWidgets>
+
+#include <boost/date_time/gregorian/greg_month.hpp>
+#include <boost/date_time/posix_time/posix_time.hpp>
+
#endif ... | Add more files to the PCH for faster compiles.
| mit | cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main | 3a7937af55780e9b2d38ff234d8ddbda90578313 |
/*
* This file is part of buxton.
*
* Copyright (C) 2013 Intel Corporation
*
* buxton is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1
* of the License, or (at your option) any... | /*
* This file is part of buxton.
*
* Copyright (C) 2013 Intel Corporation
*
* buxton is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1
* of the License, or (at your option) any... | ---
+++
@@ -16,9 +16,9 @@
#endif
#ifdef DEBUG
-#define buxton_debug() buxton_log()
+#define buxton_debug(...) buxton_log(__VA_ARGS__)
#else
-#define buxton_debug do {} while(0);
+#define buxton_debug(...) do {} while(0);
#endif /* DEBUG */
void buxton_log(const char* fmt, ...); | Fix the buxton_debug macro to support arguments
| lgpl-2.1 | sofar/buxton,sofar/buxton | b0183a9c878d330245437728c658360eb84e895d |
#import <Foundation/Foundation.h>
#import "NMBExceptionCapture.h"
#import "DSL.h"
FOUNDATION_EXPORT double NimbleVersionNumber;
FOUNDATION_EXPORT const unsigned char NimbleVersionString[];
| #import <Foundation/Foundation.h>
#import <Nimble/NMBExceptionCapture.h>
#import <Nimble/DSL.h>
FOUNDATION_EXPORT double NimbleVersionNumber;
FOUNDATION_EXPORT const unsigned char NimbleVersionString[];
| ---
+++
@@ -1,6 +1,6 @@
#import <Foundation/Foundation.h>
-#import <Nimble/NMBExceptionCapture.h>
-#import <Nimble/DSL.h>
+#import "NMBExceptionCapture.h"
+#import "DSL.h"
FOUNDATION_EXPORT double NimbleVersionNumber;
FOUNDATION_EXPORT const unsigned char NimbleVersionString[]; | Convert module-based imports to relative
| apache-2.0 | dgdosen/Nimble,dgdosen/Nimble,Quick/Nimble,phatblat/Nimble,AnthonyMDev/Nimble,DanielAsher/Nimble,ashfurrow/Nimble,AnthonyMDev/Nimble,abbeycode/Nimble,phatblat/Nimble,feinstruktur/Nimble,ashfurrow/Nimble,phatblat/Nimble,ashfurrow/Nimble,jeffh/Nimble,twobitlabs/Nimble,abbeycode/Nimble,jeffh/Nimble,DanielAsher/Nimble,jeff... | abd003aaf24b0f4e7d5d815e492282bca5ed70fb |
/*
* Copyright 2001-2018 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... | /*
* Copyright 2001-2018 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... | ---
+++
@@ -12,9 +12,6 @@
void ENGINE_load_builtin_engines(void)
{
- /* Some ENGINEs need this */
- OPENSSL_cpuid_setup();
-
OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_ALL_BUILTIN, NULL);
}
| Remove superfluous call to OPENSSL_cpuid_setup
Signed-off-by: Patrick Steuer <patrick.steuer@de.ibm.com>
Reviewed-by: Kurt Roeckx <bb87b47479d83cec3c76132206933257ded727b2@roeckx.be>
Reviewed-by: Matt Caswell <1fa2ef4755a9226cb9a0a4840bd89b158ac71391@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9... | apache-2.0 | openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl | 29ce3458d8474870805dd1439cf857d19519bfb1 |
#include <kernel/x86/apic.h>
#include <kernel/port/mmio.h>
void apic_timer_init(uint8_t int_no, uint8_t divisor, uint8_t mode) {
/** set the divisor: **/
uint32_t reg = get32(DIVIDE_CONF);
reg &= ~0xf;
/* The representation of the divisor in the divide configuration
* register is... weird. We're normalizing it... | #include <kernel/x86/apic.h>
#include <kernel/port/mmio.h>
void apic_timer_init(uint8_t int_no, uint8_t divisor, uint8_t mode) {
/** set the divisor: **/
uint32_t reg = get32(DIVIDE_CONF);
reg &= ~0xf;
/* The representation of the divisor in the divide configuration
* register is... weird. We're normalizing it... | ---
+++
@@ -14,7 +14,11 @@
* details. */
if (divisor == 0) divisor = 7;
else divisor -= 1;
+
+ /* Clear the low 4 bits; the rest is reserved and shouldn't be touched. */
+ reg &= ~0xf;
reg |= (divisor & 0x3) | ((divisor & 0x4)<<1);
+
put32(DIVIDE_CONF, reg);
/** set the lvt entry: **/ | timer: Clear existing divisor before setting it.
This is just a case of being slightly more diligent; there is not
currently observed behavior change.
| isc | zenhack/zero,zenhack/zero,zenhack/zero | b9ecedf51225867a3060d4de155186855c7de6b7 |
#pragma once
namespace me {
// basic optional implementation.
template<class T>
class Optional {
T *m_object;
public:
Optional() : m_object(0) { }
// copy constructor
Optional(const Optional<T>& other) : m_object(new T(*other)) { }
// move constructor
Optional(Optional<T>&& other) : m... | #pragma once
namespace me {
template<class T>
class Optional {
T *m_object;
public:
Optional() : m_object(0) {}
Optional(const T& other) : m_object(new T(other)) {}
Optional& operator=(const T& other) {
if (m_object != 0) {
delete m_object;
}
m_object = new T(other);
return... | ---
+++
@@ -1,19 +1,47 @@
#pragma once
namespace me {
+ // basic optional implementation.
template<class T>
class Optional {
T *m_object;
+
public:
- Optional() : m_object(0) {}
+ Optional() : m_object(0) { }
- Optional(const T& other) : m_object(new T(other)) {}
+ // copy constructor
+ Optional(c... | Use move semantics in Optional implementation.
| mit | ckarmann/TrackCommit,ckarmann/TrackCommit | 34d2be5fddf51413062f0995bfcb3b9401ffcef1 |
#include "nb_simp.c"
struct arrayProb* gibbsC_shim(struct arrayProb* topic_prior_b,
struct arrayProb* word_prior_c,
struct arrayNat* z_d,
struct arrayNat* w_e,
struct arrayNat* doc_f,
unsigned int docUpdate_g)
{
struct arrayProb* res = (... | #include "nb_simp.c"
struct arrayProb* gibbsC_shim(struct arrayProb* topic_prior_b,
struct arrayProb* word_prior_c,
struct arrayNat* z_d,
struct arrayNat* w_e,
struct arrayNat* doc_f,
unsigned int docUpdate_g)
{
struct arrayProb* res = (... | ---
+++
@@ -7,7 +7,7 @@
struct arrayNat* doc_f,
unsigned int docUpdate_g)
{
- struct arrayProb* res = (struct arrayProb*)malloc(sizeof(struct arrayProb*));
+ struct arrayProb* res = (struct arrayProb*)malloc(sizeof(struct arrayProb));
*res = gibbsC(*topic_prior_b, *word_prior_c... | Fix size error in malloc call
| bsd-3-clause | zaxtax/naive_bayes,zaxtax/naive_bayes,zaxtax/naive_bayes,zaxtax/naive_bayes | acb699bec196566a5dba364b97b83ae28a9b1a80 |
//
// FLEXNetworkObserver.h
// Derived from:
//
// PDAFNetworkDomainController.h
// PonyDebugger
//
// Created by Mike Lewis on 2/27/12.
//
// Licensed to Square, Inc. under one or more contributor license agreements.
// See the LICENSE file distributed with this work for the terms under
// which Square, Inc. l... | //
// FLEXNetworkObserver.h
// Derived from:
//
// PDAFNetworkDomainController.h
// PonyDebugger
//
// Created by Mike Lewis on 2/27/12.
//
// Licensed to Square, Inc. under one or more contributor license agreements.
// See the LICENSE file distributed with this work for the terms under
// which Square, Inc. l... | ---
+++
@@ -14,7 +14,7 @@
#import <Foundation/Foundation.h>
-extern NSString *const kFLEXNetworkObserverEnabledStateChangedNotification;
+FOUNDATION_EXTERN NSString *const kFLEXNetworkObserverEnabledStateChangedNotification;
/// This class swizzles NSURLConnection and NSURLSession delegate methods to observe ... | Use FOUNDATION_EXTERN for global variable
Global variables that can be accessed from both C (or Objective-C) and
C++ (or Objective-C++) source files should be marked `extern "C"` when
in C++ mode (which is what `FOUNDATION_EXTERN` does), to ensure
consistent access across languages.
| bsd-3-clause | Flipboard/FLEX,NSExceptional/FLEX,Xiaobin0860/FLEX,Flipboard/FLEX,NSExceptional/FLEX | ed49a4fc89281608f41bebd3d09b8e0e1f2ea4c8 |
//
// Mapping.h
// Menu
//
// Created by Matt on 21/07/15.
// Copyright (c) 2015 Blue Rocket. All rights reserved.
//
#import <BRMenu/UI/BRMenuBackBarButtonItemView.h>
#import <BRMenu/UI/BRMenuBarButtonItemView.h>
#import <BRMenu/UI/BRMenuPlusMinusButton.h>
#import <BRMenu/UI/BRMenuStepper.h>
#import <BRMenu/UI/BR... | //
// Mapping.h
// Menu
//
// Created by Matt on 21/07/15.
// Copyright (c) 2015 Blue Rocket. All rights reserved.
//
#import <BRMenu/UI/BRMenuPlusMinusButton.h>
#import <BRMenu/UI/BRMenuStepper.h>
#import <BRMenu/UI/BRMenuUIStyle.h>
| ---
+++
@@ -6,6 +6,8 @@
// Copyright (c) 2015 Blue Rocket. All rights reserved.
//
+#import <BRMenu/UI/BRMenuBackBarButtonItemView.h>
+#import <BRMenu/UI/BRMenuBarButtonItemView.h>
#import <BRMenu/UI/BRMenuPlusMinusButton.h>
#import <BRMenu/UI/BRMenuStepper.h>
#import <BRMenu/UI/BRMenuUIStyle.h> | Include latest class additions in umbrella include.
| apache-2.0 | Blue-Rocket/BRMenu,Blue-Rocket/BRMenu,Blue-Rocket/BRMenu,Blue-Rocket/BRMenu,Blue-Rocket/BRMenu | 41b1fefc4ecf7317d4e8ca4529edde1d5fad6ac0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.