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 |
|---|---|---|---|---|---|---|
//===-- llvm/Bytecode/Reader.h - Reader for VM bytecode files ----*- C++ -*--=//
//
// This functionality is implemented by the lib/Bytecode/Reader library.
// This library is used to read VM bytecode files from an iostream.
//
// Note that performance of this library is _crucial_ for performance of the
// JIT type app... | //===-- llvm/Bytecode/Reader.h - Reader for VM bytecode files ----*- C++ -*--=//
//
// This functionality is implemented by the lib/Bytecode/Reader library.
// This library is used to read VM bytecode files from an iostream.
//
// Note that performance of this library is _crucial_ for performance of the
// JIT type app... | ---
+++
@@ -13,6 +13,7 @@
#define LLVM_BYTECODE_READER_H
#include <string>
+#include <vector>
class Module;
@@ -23,4 +24,10 @@
Module *ParseBytecodeBuffer(const unsigned char *Buffer, unsigned BufferSize,
std::string *ErrorStr = 0);
+// ReadArchiveFile - Read bytecode files fr... | Add prototype to read .a files
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@5821 91177308-0d34-0410-b5e6-96231b3b80d8
| apache-2.0 | llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,chubbymaggie/asap,apple/swift-llvm,GPUOpe... | 23e0a58c5a48802946cf0fbadef023179a443f05 |
#pragma once
#include <string>
#include <iostream>
#include <math.h>
#include "Standard.hxx"
#include "Standard_PrimitiveTypes.hxx"
#include "Standard_Stream.hxx"
#include "Standard_Failure.hxx"
#include "Standard_Transient.hxx"
| #pragma once
#include <string>
#include <iostream>
#include <math.h>
#include "Standard.hxx"
#include "Standard_PrimitiveTypes.hxx"
#include "Standard_Stream.hxx"
#include "Standard_Failure.hxx"
#include "Standard_Transient.hxx"
#ifdef USE_STL_STREAM
#include <sstream>
#else /* USE_STL_STREAM */
#ifdef WNT
#include ... | ---
+++
@@ -10,12 +10,3 @@
#include "Standard_Failure.hxx"
#include "Standard_Transient.hxx"
-#ifdef USE_STL_STREAM
-#include <sstream>
-#else /* USE_STL_STREAM */
-#ifdef WNT
-#include <strstrea.h>
-#else
-#include <strstream.h>
-#endif
-#endif | Remove obsolete includes in TKernel precompiled
| lgpl-2.1 | finetjul/oce,heartvalve/oce,heartvalve/oce,Tridify/oce,BenoitPerrot/oce,tpaviot/oce,tpaviot/oce,EvgeneOskin/oce,EvgeneOskin/oce,finetjul/oce,heartvalve/oce,finetjul/oce,finetjul/oce,Tridify/oce,EvgeneOskin/oce,Tridify/oce,BenoitPerrot/oce,BenoitPerrot/oce,finetjul/oce,Tridify/oce,tpaviot/oce,tpaviot/oce,heartvalve/oce,... | 6f470d631baf6f5a9d30e49ef67593a12e7d7faa |
#include <string.h>
#include "ruby.h"
#include "rubyspec.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef HAVE_RB_PROC_NEW
VALUE concat_func(VALUE args) {
int i;
char buffer[500] = {0};
if (TYPE(args) != T_ARRAY) return Qnil;
for(i = 0; i < RARRAY_LEN(args); ++i) {
VALUE v = RARRAY_PTR(args)[i];
strc... | #include <string.h>
#include "ruby.h"
#include "rubyspec.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef HAVE_RB_PROC_NEW
VALUE concat_func(VALUE args) {
int i;
char buffer[500] = {0};
if (TYPE(val) != T_ARRAY) return Qnil;
for(i = 0; i < RARRAY_LEN(args); ++i) {
VALUE v = RARRAY_PTR(args)[i];
strca... | ---
+++
@@ -11,7 +11,7 @@
VALUE concat_func(VALUE args) {
int i;
char buffer[500] = {0};
- if (TYPE(val) != T_ARRAY) return Qnil;
+ if (TYPE(args) != T_ARRAY) return Qnil;
for(i = 0; i < RARRAY_LEN(args); ++i) {
VALUE v = RARRAY_PTR(args)[i];
strcat(buffer, StringValuePtr(v)); | Fix typo in the commit a5312c77.
| mit | julik/rubyspec,mrkn/rubyspec,no6v/rubyspec,ruby/spec,josedonizetti/rubyspec,wied03/rubyspec,timfel/rubyspec,jstepien/rubyspec,benburkert/rubyspec,Aesthetikx/rubyspec,timfel/rubyspec,iliabylich/rubyspec,rdp/rubyspec,alindeman/rubyspec,markburns/rubyspec,kachick/rubyspec,xaviershay/rubyspec,rdp/rubyspec,rkh/rubyspec,amar... | 401825d6045ab8e3bd1514404e7c326a045a92ae |
#ifndef EXPR_TOK_H
#define EXPR_TOK_H
extern expr_n tok_cur_num;
extern enum tok
{
tok_ident = -1,
tok_num = -2,
tok_eof = 0,
tok_lparen = '(',
tok_rparen = ')',
/* operators returned as char-value,
* except for double-char ops
*/
/* binary */
tok_multiply = '*',
tok_divide = '/',
tok_modulus ... | #ifndef EXPR_TOK_H
#define EXPR_TOK_H
extern expr_n tok_cur_num;
extern enum tok
{
tok_ident = -1,
tok_num = -2,
tok_eof = 0,
tok_lparen = '(',
tok_rparen = ')',
/* operators returned as char-value,
* except for double-char ops
*/
/* binary */
tok_multiply = '*',
tok_divide = '/',
tok_modulus ... | ---
+++
@@ -25,28 +25,28 @@
tok_xor = '^',
tok_or = '|',
tok_and = '&',
- tok_orsc = -1,
- tok_andsc = -2,
- tok_shiftl = -3,
- tok_shiftr = -4,
+ tok_orsc = -3,
+ tok_andsc = -4,
+ tok_shiftl = -5,
+ tok_shiftr = -6,
/* unary - TODO */
tok_not = '!',
tok_bnot ... | Fix clash in cpp tokens
| mit | 8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler | c49c79960407e33d6ba47d5de0c78500cbf3205f |
#ifndef ROUTER_H
#define ROUTER_H
#include <apr_queue.h>
#include "operator/operator.h"
#include "planner/planner.h"
#include "types/tuple.h"
typedef struct C4Router C4Router;
C4Router *router_make(C4Runtime *c4, apr_queue_t *queue);
void router_main_loop(C4Router *router);
apr_queue_t *router_get_queue(C4Router *r... | #ifndef ROUTER_H
#define ROUTER_H
#include <apr_queue.h>
#include "operator/operator.h"
#include "planner/planner.h"
#include "types/tuple.h"
typedef struct C4Router C4Router;
C4Router *router_make(C4Runtime *c4, apr_queue_t *queue);
void router_main_loop(C4Router *router);
apr_queue_t *router_get_queue(C4Router *r... | ---
+++
@@ -17,7 +17,7 @@
void router_enqueue_tuple(apr_queue_t *queue, Tuple *tuple,
TableDef *tbl_def);
-char *router_enqueue_dump_table(apr_queue_t *queue, const char *table,
+char *router_enqueue_dump_table(apr_queue_t *queue, const char *tbl_name,
ap... | Tweak a function prototype in header.
| mit | bloom-lang/c4,bloom-lang/c4,bloom-lang/c4 | 73606739ba6dba3ae32debf6823ea05483429e53 |
#pragma once
#include <math.h>
struct Vector3 {
union {
float v[3];
struct {
float x;
float y;
float z;
};
struct {
union {
float azimuth;
float yaw;
};
float pitch;
... | #pragma once
#include <math.h>
struct Vector3 {
union {
float v[3];
struct {
float x;
float y;
float z;
};
struct {
float azimuth;
float pitch;
float roll;
};
};
Vector3() {
x = 0;
... | ---
+++
@@ -11,7 +11,10 @@
float z;
};
struct {
- float azimuth;
+ union {
+ float azimuth;
+ float yaw;
+ };
float pitch;
float roll;
}; | Allow both yaw and azimuth
| mit | loopj/i2c-sensor-hal,loopj/i2c-sensor-hal | 8b30c206f7da701fa5c609c1100c3957ae22c916 |
void dc_dump() {
// TODO: Check direction and change to U and D
static int prev_l = 0, prev_r = 0;
if (!prev_l && vexRT[Btn7L])
dump_set(-127);
if (!prev_r && vexRT[Btn7R])
dump_set(127);
if ((prev_l && !vexRT[Btn7L]) || (prev_r && !vexRT[Btn7R]))
dump_set(0);
prev_l = v... | void dc_dump() {
static int prev_l = 0, prev_r = 0;
if (!prev_l && vexRT[Btn7L])
dump_set(-80);
if (!prev_r && vexRT[Btn7R])
dump_set(80);
if ((prev_l && !vexRT[Btn7L]) || (prev_r && !vexRT[Btn7R]))
dump_set(0);
prev_l = vexRT[Btn7L];
prev_r = vexRT[Btn7R];
}
| ---
+++
@@ -1,11 +1,13 @@
void dc_dump() {
+
+ // TODO: Check direction and change to U and D
static int prev_l = 0, prev_r = 0;
if (!prev_l && vexRT[Btn7L])
- dump_set(-80);
+ dump_set(-127);
if (!prev_r && vexRT[Btn7R])
- dump_set(80);
+ dump_set(127);
if ((prev_... | Change dump power to 127
| mit | qsctr/vex-4194b-2016 | 269c892039f901b97057614b664e72df31c2c597 |
//
// Toolkit header to include the main headers of the 'AFToolkit' library.
//
#import "AFDefines.h"
#import "AFLogHelper.h"
#import "AFFileHelper.h"
#import "AFPlatformHelper.h"
#import "AFKVO.h"
#import "AFArray.h"
#import "AFMutableArray.h"
#import "UITableViewCell+Universal.h"
#import "AFDBClient.h"
#import "AFVi... | //
// Toolkit header to include the main headers of the 'AFToolkit' library.
//
#pragma mark - Common Import
#import "AFLogHelper.h"
#import "AFFileHelper.h"
#import "AFPlatformHelper.h"
#import "AFKVO.h"
#import "AFArray.h"
#import "AFMutableArray.h"
#import "UITableViewCell+Universal.h"
#import "AFDBClient.h"
#imp... | ---
+++
@@ -2,9 +2,7 @@
// Toolkit header to include the main headers of the 'AFToolkit' library.
//
-
-#pragma mark - Common Import
-
+#import "AFDefines.h"
#import "AFLogHelper.h"
#import "AFFileHelper.h"
#import "AFPlatformHelper.h" | Add defines header to toolkit header
| mit | mlatham/AFToolkit | 4e24df1ba483b3028017176b08bc336b8ca79274 |
/*-------------------------------------------------------------------------
*
* pgtz.c
* Timezone Library Integration Functions
*
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.6 2004/05/01 22:07:03 momjian Exp $
*
*-... | /*-------------------------------------------------------------------------
*
* pgtz.c
* Timezone Library Integration Functions
*
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.5 2004/05/01 01:38:53 momjian Exp $
*
*-... | ---
+++
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.5 2004/05/01 01:38:53 momjian Exp $
+ * $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.6 2004/05/01 22:07:03 momjian Exp $
*
*--------------------... | Fix timezone data path for Unix and win32.
| apache-2.0 | yuanzhao/gpdb,atris/gpdb,kmjungersen/PostgresXL,zeroae/postgres-xl,yuanzhao/gpdb,jmcatamney/gpdb,50wu/gpdb,yuanzhao/gpdb,rubikloud/gpdb,rvs/gpdb,lpetrov-pivotal/gpdb,techdragon/Postgres-XL,yuanzhao/gpdb,Postgres-XL/Postgres-XL,lisakowen/gpdb,CraigHarris/gpdb,kaknikhil/gpdb,lintzc/gpdb,rubikloud/gpdb,janebeckman/gpdb,li... | f4c69c820550a352cb123bfb0b16c33c659a4ca6 |
#import <Foundation/Foundation.h>
#import "Nocilla.h"
@class LSStubRequest;
@class LSStubResponse;
@protocol LSHTTPRequest;
extern NSString * const LSUnexpectedRequest;
@interface LSNocilla : NSObject
+ (LSNocilla *)sharedInstance;
@property (nonatomic, strong, readonly) NSArray *stubbedRequests;
- (void)start;
- (... | #import <Foundation/Foundation.h>
#import "Nocilla.h"
#import "LSHTTPRequest.h"
@class LSStubRequest;
@class LSStubResponse;
extern NSString * const LSUnexpectedRequest;
@interface LSNocilla : NSObject
+ (LSNocilla *)sharedInstance;
@property (nonatomic, strong, readonly) NSArray *stubbedRequests;
- (void)start;
- ... | ---
+++
@@ -1,9 +1,9 @@
#import <Foundation/Foundation.h>
#import "Nocilla.h"
-#import "LSHTTPRequest.h"
@class LSStubRequest;
@class LSStubResponse;
+@protocol LSHTTPRequest;
extern NSString * const LSUnexpectedRequest;
| Replace import with forward declaration.
| mit | pcantrell/Nocilla,ileitch/Nocilla,luisobo/Nocilla,0xmax/Nocilla,patcheng/Nocilla,tomguthrie/Nocilla,Panajev/Nocilla,luxe-eng/valet-ios.Nocilla,SanjoDeundiak/Nocilla,TheAdamBorek/Nocilla,luxe-eng/valet-ios.Nocilla,0xmax/Nocilla,TheAdamBorek/Nocilla | f6a808e5190055af32abe8060bbe7d4ab2d5d6d4 |
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <gmock/gmock.h>
#include <react/renderer/scheduler/SurfaceHandler.h>
namespace facebook {
namespace reac... | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <gmock/gmock.h>
#include <react/renderer/scheduler/SurfaceHandler.h>
namespace facebook {
namespace reac... | ---
+++
@@ -18,8 +18,8 @@
public:
MockSurfaceHandler() : SurfaceHandler("moduleName", 0){};
- MOCK_METHOD(void, setDisplayMode, (DisplayMode), (const, noexcept));
- MOCK_METHOD(SurfaceId, getSurfaceId, (), (const, noexcept));
+ MOCK_QUALIFIED_METHOD1(setDisplayMode, const noexcept, void(DisplayMode));
+ MO... | Revert D34351084: Migrate from googletest 1.8 to googletest 1.10
Differential Revision:
D34351084 (https://github.com/facebook/react-native/commit/94891ab5f883efa55146dc42e1cd9705506794f3)
Original commit changeset: 939b3985ab63
Original Phabricator Diff: D34351084 (https://github.com/facebook/react-native/commit/94... | mit | facebook/react-native,janicduplessis/react-native,janicduplessis/react-native,facebook/react-native,facebook/react-native,javache/react-native,facebook/react-native,facebook/react-native,javache/react-native,facebook/react-native,javache/react-native,janicduplessis/react-native,janicduplessis/react-native,javache/react... | eb434c1c76cdad0f5f841487dc9568c5079c6fb8 |
#ifndef CALC_SCANNER_DEF_H_
#define CALC_SCANNER_DEF_H_
typedef union {
int int_value;
} YYSTYPE;
class ParserState {
public:
int result;
int eval;
ParserState() : result(0) {
}
};
#endif // CALC_SCANNER_DEF_H_
| #ifndef CALC_SCANNER_DEF_H_
#define CALC_SCANNER_DEF_H_
typedef union {
int int_value;
} YYSTYPE;
typedef struct {
int function;
int result;
YYSTYPE lhs;
YYSTYPE rhs;
} BinaryFunction;
class ParserState {
public:
int result;
int eval;
ParserState() : result(0) {
}
};
#endif // CALC_SCANNER_D... | ---
+++
@@ -4,13 +4,6 @@
typedef union {
int int_value;
} YYSTYPE;
-
-typedef struct {
- int function;
- int result;
- YYSTYPE lhs;
- YYSTYPE rhs;
-} BinaryFunction;
class ParserState {
public: | Remove silly struct that's silly
| mit | nic0lette/lemony,nic0lette/lemony,nic0lette/lemony | 1213144d03d3bc69979ea50b32979ddd2b7f8dd2 |
#ifndef PROBLEM_H
#define PROBLEM_H
#include "sense.h"
class Problem {
public:
int objcnt; // Number of objectives
double* rhs;
int** objind; // Objective indices
double** objcoef; // Objective coefficients
Sense objsen; // Objective sense. Note that all objectives must have the same
... | #ifndef PROBLEM_H
#define PROBLEM_H
#include "sense.h"
class Problem {
public:
int objcnt; // Number of objectives
double* rhs;
int** objind; // Objective indices
double** objcoef; // Objective coefficients
Sense objsen; // Objective sense. Note that all objectives must have the same
... | ---
+++
@@ -15,12 +15,17 @@
int* conind;
char* consense;
+ Problem();
~Problem();
};
+inline Problem::Problem() : objcnt(0) { }
inline Problem::~Problem() {
+ // If objcnt == 0, then no problem has been assigned and no memory allocated
+ if (objcnt == 0)
+ return;
for(int j = 0; j ... | Fix invalid delete[] calls in ~Problem
If objcnt is 0, then no memory has been allocated.
| bsd-2-clause | WPettersson/moip_aira,WPettersson/moip_aira,WPettersson/moip_aira,WPettersson/moip_aira | 240a18f3955c0c2749c867b32c231b19672d83e0 |
#ifndef DECL_H
#define DECL_H
#include <stdint.h>
typedef enum DeclSpec {
DECL_SPEC_NONE = 0x0,
DECL_SPEC_FLOAT = 0x1,
DECL_SPEC_INT = 0x2,
DECL_SPEC_SIGNED = 0x4,
DECL_SPEC_UNSIGNED = 0x8,
DECL_SPEC_VOID = 0x10,
} DeclSpec;
typedef uint16_t DeclSpecs;
#endif
| #ifndef DECL_H
#define DECL_H
#include <stdlib.h>
typedef enum DeclSpec {
DECL_SPEC_NONE = 0x0,
DECL_SPEC_FLOAT = 0x1,
DECL_SPEC_INT = 0x2,
DECL_SPEC_SIGNED = 0x4,
DECL_SPEC_UNSIGNED = 0x8,
DECL_SPEC_VOID = 0x10,
} DeclSpec;
typedef size_t DeclSpecs;
#endif
| ---
+++
@@ -1,7 +1,7 @@
#ifndef DECL_H
#define DECL_H
-#include <stdlib.h>
+#include <stdint.h>
typedef enum DeclSpec {
DECL_SPEC_NONE = 0x0,
@@ -12,6 +12,6 @@
DECL_SPEC_VOID = 0x10,
} DeclSpec;
-typedef size_t DeclSpecs;
+typedef uint16_t DeclSpecs;
#endif | Change type of DeclSpecs to uint16_t
Using size_t was a bit overkill.
| unlicense | InternetUnexplorer/Periapsis-CC | e0540dc80d92c82729dc8b40aeae20d3011dc46e |
#include "util.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "laco.h"
static inline void ignore_extra(const char chr, char** string_ptr) {
if(*string_ptr == NULL) return;
while(**string_ptr == chr) {
*string_ptr += 1;
}
}
/* External API */
void laco_kill(LacoState* laco, int st... | #include "util.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "laco.h"
static inline void ignore_extra(const char chr, char** string_ptr) {
if(*string_ptr == NULL) return;
while(**string_ptr == chr) {
*string_ptr += 1;
}
}
/* External API */
void laco_kill(LacoState* laco, int st... | ---
+++
@@ -28,9 +28,9 @@
bool laco_is_match(const char** matches, const char* test_string) {
int i;
- char* match;
+ const char* match;
- for(i = 0; (match = (char*) matches[i]); i++) {
+ for(i = 0; (match = matches[i]); i++) {
if(strcmp(test_string, match) == 0) {
return true;
} | Change type from `char*` to `const char*`
This is to gets rid of the explicit type conversation every iteration of the
loop.
| bsd-2-clause | sourrust/laco | 96018d05e6801cf935ef630288d45dc2238b5db8 |
#ifdef __cplusplus
extern "C" {
#endif
/*
* buf: input fuzzing data
* len: size of the 'buf' data
*
* Return value: should return 0
*/
int LLVMFuzzerTestOneInput(const uint8_t * buf, size_t len);
/*
* argc: ptr to main's argc
* argv: ptr to main's argv
*
* Return value: ignored
*/
int LLVMFuzzerInit... | #ifdef __cplusplus
extern "C" {
#endif
/*
* buf: input fuzzing data
* len: size of the 'buf' data
*
* Return value: should return 0
*/
int LLVMFuzzerTestOneInput(const uint8_t * buf, size_t len);
/*
* argc: ptr to main's argc
* argv: ptr to main's argv
*
* Return value: ignored
*/
int LLVMFuzzerInit... | ---
+++
@@ -27,7 +27,7 @@
*/
void HF_ITER(const uint8_t ** buf_ptr, size_t * len_ptr);
-#if defined(_HF_ARCH_LINUX)
+#if defined(__linux__)
/*
* Enter Linux namespaces
@@ -48,7 +48,7 @@
*/
bool linuxMountTmpfs(const char *dst);
-#endif /* defined(_HF_ARCH_LINUX) */
+#en... | Change defined(_HF_ARCH_LINUX) -> defined(__linux__) for public includes
| apache-2.0 | google/honggfuzz,google/honggfuzz,anestisb/honggfuzz,google/honggfuzz | 0061b22b7bfe41ca8e5ec39a199fc1c8fa9203d0 |
/**
* This is used to setup the UART device on an AVR unit.
*/
#pragma once
#include <avr/io.h>
#ifndef BAUD
# define BAUD 9600
# warning BAUD rate not set. Setting BAUD rate to 9600.
#endif // BAUD
#define BAUDRATE ((F_CPU)/(BAUD*16UL)-1)
static inline void uart_enable(void) {
UBRR0H = BAUDRATE >> 8;
UBR... | /**
* This is used to setup the UART device on an AVR unit.
*/
#pragma once
#include <avr/io.h>
#ifndef BAUD
# define BAUD 9600
# warning BAUD rate not set. Setting BAUD rate to 9600.
#endif // BAUD
#define BAUDRATE ((F_CPU)/(BAUD*16UL)-1)
static inline void uart_enable(void) {
UBRR0H = BAUDRATE >> 8;
UBR... | ---
+++
@@ -16,8 +16,13 @@
static inline void uart_enable(void) {
UBRR0H = BAUDRATE >> 8;
UBRR0L = BAUDRATE;
+
+ // Set RX/TN enabled
UCSR0B |= _BV(TXEN0) | _BV(RXEN0);
- UCSR0C |= _BV(UMSEL00) | _BV(UCSZ01) | _BV(UCSZ00);
+
+ // Set asynchronous USART
+ // Set frame format: 8-bit data, 2-stop bit
+ UC... | Correct the frame format and async mode for the UART. Add useful comments.
| mpl-2.0 | grimwm/avr,grimwm/avr,grimwm/avr,grimwm/avr | 7ef1bd0d3543ec940405f94e3c908771b6a3c210 |
/**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2010 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#ifdef USE_TI_UISCROLLABLEVIEW
#import "TiUIView.h"
@interface TiUIScrollableVie... | /**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2010 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#ifdef USE_TI_UISCROLLABLEVIEW
#import "TiUIView.h"
@interface TiUIScrollableVie... | ---
+++
@@ -16,8 +16,6 @@
BOOL showPageControl;
CGFloat pageControlHeight;
BOOL handlingPageControlEvent;
- CGFloat maxScale;
- CGFloat minScale;
// Have to correct for an apple goof; rotation stops scrolling, AND doesn't move to the next page.
BOOL rotatedWhileScrolling; | [timob-4738] Include header file changes missed from last checkin
| apache-2.0 | pec1985/titanium_mobile,kopiro/titanium_mobile,shopmium/titanium_mobile,pinnamur/titanium_mobile,peymanmortazavi/titanium_mobile,jhaynie/titanium_mobile,FokkeZB/titanium_mobile,benbahrenburg/titanium_mobile,smit1625/titanium_mobile,shopmium/titanium_mobile,ashcoding/titanium_mobile,indera/titanium_mobile,falkolab/titan... | f73256aa30d789aa13df85fd31ce45581bf029a5 |
/*===- ConfinementForce.h - libSimulation -=====================================
*
* DEMON
*
* This file is distributed under the BSD Open Source License. See LICENSE.TXT
* for details.
*
*===-----------------------------------------------------------------------===*/
#ifndef CONFIN... | /*===- ConfinementForce.h - libSimulation -=====================================
*
* DEMON
*
* This file is distributed under the BSD Open Source License. See LICENSE.TXT
* for details.
*
*===-----------------------------------------------------------------------===*/
#ifndef CONFIN... | ---
+++
@@ -19,13 +19,13 @@
// IMPORTANT: In the above constructor, confineConst must be positive!
~ConfinementForce() {}
- void force1(const double currentTime); // rk substep 1
- void force2(const double currentTime); // rk substep 2
- void force3(const double currentTime); // rk substep 3
- void force4(const... | Add virtual to methods that get overridden. | bsd-3-clause | leios/demonsimulationcode,leios/demonsimulationcode | 9899ff8cb4bd63601fc3dfa115b00d65c3388fff |
#import <Foundation/Foundation.h>
/// Macro that marks an initializer as designated, and also makes the default Foundation initializers unavailable
#define HUB_DESIGNATED_INITIALIZER NS_DESIGNATED_INITIALIZER; \
/** Unavailable. Use the designated initializer instead */ \
+ (instancetype)new NS_UNAVAILABLE; \
... | #import <Foundation/Foundation.h>
/// Macro that marks an initializer as designated, and also makes the default Foundation initializers unavailable
#define HUB_DESIGNATED_INITIALIZER NS_DESIGNATED_INITIALIZER; \
/** Unavailable. Use the designated initializer instead */ \
+ (instancetype)new NS_UNAVAILABLE; \
... | ---
+++
@@ -8,3 +8,8 @@
- (instancetype)init NS_UNAVAILABLE; \
/** Unavailable. Use the designated initializer instead */ \
- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE;
+
+/// This macro was introduced in Xcode 8, so adding this here for now (if not defined) to support Xco... | Define NS_EXTENSIBLE_STRING_ENUM if not defined
This enables us to support building with Xcode 7. | apache-2.0 | spotify/HubFramework,spotify/HubFramework,spotify/HubFramework,spotify/HubFramework | 3d1939e899fdbb7d71998f33221e687b61c291af |
/*
Minimal C SDL example. This code is in the public domain.
Compile with:
gcc -o minc minc.c `sdl2-config --cflags --libs`
*/
#include <unistd.h>
#include <assert.h>
#include <stdio.h>
#include "SDL.h"
int main(int argc, char** argv)
{
assert (SDL_Init(SDL_INIT_VIDEO) == 0);
SDL_Window *w =
SD... | /*
Minimal C SDL example. This code is in the public domain.
Compile with:
gcc `sdl2-config --cflags` `sdl2-config --libs` minc.c
*/
#include <unistd.h>
#include <assert.h>
#include <stdio.h>
#include "SDL.h"
int main(int argc, char** argv)
{
assert (SDL_Init(SDL_INIT_VIDEO) == 0);
SDL_Window *w = ... | ---
+++
@@ -1,7 +1,7 @@
/*
Minimal C SDL example. This code is in the public domain.
Compile with:
- gcc `sdl2-config --cflags` `sdl2-config --libs` minc.c
+ gcc -o minc minc.c `sdl2-config --cflags --libs`
*/
#include <unistd.h> | Update compilation instructions for minimal C example.
| isc | dbuenzli/tsdl | 22190c6a5152fba9cec3807d96762a8da9a31130 |
// See copyright notice in Copying.
#ifndef COMMON_BLOCK_H
#define COMMON_BLOCK_H
#define FLAG_DEFAULT 0u
#define FLAG_IS_FRAGMENT (1u << 0)
#define FLAG_ADMIN (1u << 1)
#define FLAG_NO_FRAGMENT (1u << 2)
#define FLAG_CUSTODY (1u << 3)
#define FLAG_SINGLETON (1u << 4)
#define FLAG_ACK (1u << 5)
#define PRIO_RESET ~... | // See copyright notice in Copying.
#ifndef COMMON_BLOCK_H
#define COMMON_BLOCK_H
enum {
FLAG_DEFAULT = 0,
FLAG_IS_FRAGMENT = 1 << 0,
FLAG_ADMIN = 1 << 1,
FLAG_NO_FRAGMENT = 1 << 2,
FLAG_CUSTODY = 1 << 3,
FLAG_SINGLETON = 1 << 4,
FLAG_ACK = 1 << 5,
PRIO_RESET = ~(0x3 << 7),
PRIO_... | ---
+++
@@ -3,36 +3,34 @@
#ifndef COMMON_BLOCK_H
#define COMMON_BLOCK_H
-enum {
- FLAG_DEFAULT = 0,
+#define FLAG_DEFAULT 0u
- FLAG_IS_FRAGMENT = 1 << 0,
- FLAG_ADMIN = 1 << 1,
- FLAG_NO_FRAGMENT = 1 << 2,
- FLAG_CUSTODY = 1 << 3,
- FLAG_SINGLETON = 1 << 4,
- FLAG_ACK = 1 << 5,
+#define FLA... | Convert flag constants from enum to defines
This fixes signedness errors
| mit | kchmck/mkbundle | fae9876b444ebf71c67626d2d3d5f9a11ab7b664 |
#include "NativeNodeUtils.h"
#ifndef __FF_CATCHCVEXCEPTIONWORKER_H__
#define __FF_CATCHCVEXCEPTIONWORKER_H__
struct CatchCvExceptionWorker : public FF::SimpleWorker {
public:
std::string execute() {
try {
return executeCatchCvExceptionWorker();
} catch (std::exception &e) {
return std::string(e.what());
... | #include "NativeNodeUtils.h"
#ifndef __FF_CATCHCVEXCEPTIONWORKER_H__
#define __FF_CATCHCVEXCEPTIONWORKER_H__
struct CatchCvExceptionWorker : public FF::SimpleWorker {
public:
std::string execute() {
try {
return executeCatchCvExceptionWorker();
} catch (std::exception e) {
return std::string(e.what());
}... | ---
+++
@@ -8,7 +8,7 @@
std::string execute() {
try {
return executeCatchCvExceptionWorker();
- } catch (std::exception e) {
+ } catch (std::exception &e) {
return std::string(e.what());
}
} | Add more helpful C++ error messages
| mit | justadudewhohacks/opencv4nodejs,justadudewhohacks/opencv4nodejs,justadudewhohacks/opencv4nodejs,justadudewhohacks/opencv4nodejs,justadudewhohacks/opencv4nodejs,justadudewhohacks/opencv4nodejs | 4d26eeb21841892bbab01c023a32f285e94a84bb |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <area51/hashmap.h>
#include <area51/list.h>
#include <area51/log.h>
#include <nre/reference.h>
#include <nre/schedule.h>
/*
* Callback to add a schedule to the crs locations map
*/
static bool indexAll(void *k, void *v, void *c... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <area51/hashmap.h>
#include <area51/list.h>
#include <area51/log.h>
#include <libxml/xmlreader.h>
#include <nre/reference.h>
#include <nre/schedule.h>
/*
* Callback to add a schedule to the crs locations map
*/
static bool inde... | ---
+++
@@ -6,7 +6,6 @@
#include <area51/hashmap.h>
#include <area51/list.h>
#include <area51/log.h>
-#include <libxml/xmlreader.h>
#include <nre/reference.h>
#include <nre/schedule.h>
@@ -25,7 +24,7 @@
struct LocationRef *l = hashmapGet(s->ref->tiploc, &sl->tpl);
if (l && l->crs > 0)
- ... | Index schedule not the main struct | apache-2.0 | peter-mount/departureboards,peter-mount/departureboards,peter-mount/departureboards | b883b10aef5ff23e7ad6c9342b5d27db26632837 |
//
// PSTCKTransactionParams.h
// Paystack
//
#import <Foundation/Foundation.h>
#import "PSTCKFormEncodable.h"
/**
* Representation of the transaction to perform on a card
*/
@interface PSTCKTransactionParams : NSObject<PSTCKFormEncodable>
@property (nonatomic, copy, nonnull) NSString *email;
@property (nonatomi... | //
// PSTCKTransactionParams.h
// Paystack
//
#import <Foundation/Foundation.h>
#import "PSTCKFormEncodable.h"
/**
* Representation of the transaction to perform on a card
*/
@interface PSTCKTransactionParams : NSObject<PSTCKFormEncodable>
@property (nonatomic, copy, nonnull) NSString *email;
@property (nonatomi... | ---
+++
@@ -17,8 +17,8 @@
@property (nonatomic) NSInteger transaction_charge;
@property (nonatomic, copy, nullable) NSString *bearer;
@property (nonatomic, readonly, nullable) NSString *metadata;
-@property (nonatomic, readonly, nullable) NSString *plan;
-@property (nonatomic, readonly, nullable) NSString *currenc... | [fix] Make sure plan and currency are not readonly
| mit | PaystackHQ/paystack-ios,PaystackHQ/paystack-ios,PaystackHQ/paystack-ios,PaystackHQ/paystack-ios | bd1ce049956272df99ec52598a2234afa32b3055 |
#pragma once
#include <array>
namespace filter {
/*
* Warning: This class does not protect against sum overflow. It is possible
* that the sum of values exceeds the maximum value T can store.
*/
template <typename T, size_t N>
class MovingAverage {
public:
MovingAverage(T initial_value=static_cast<T>(... | #pragma once
#include <array>
namespace filter {
template <typename T, size_t N>
class MovingAverage {
public:
MovingAverage(T initial_value=static_cast<T>(0));
T output() const; // return average of data in buffer
T output(T input); // add new value to buffer and return average
priva... | ---
+++
@@ -2,6 +2,11 @@
#include <array>
namespace filter {
+
+/*
+ * Warning: This class does not protect against sum overflow. It is possible
+ * that the sum of values exceeds the maximum value T can store.
+ */
template <typename T, size_t N>
class MovingAverage { | Document possibility of sum overflow in MovingAverage
| bsd-2-clause | oliverlee/phobos,oliverlee/phobos,oliverlee/phobos,oliverlee/phobos | f0d5e3667099a34ca060fc13de19ef5be0c84db2 |
// 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 BASE_FLOAT_UTIL_H_
#define BASE_FLOAT_UTIL_H_
#pragma once
#include "build/build_config.h"
#include <float.h>
#include <math.h>
#if defined... | // Copyright (c) 2006-2008 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 BASE_FLOAT_UTIL_H_
#define BASE_FLOAT_UTIL_H_
#pragma once
#include "build/build_config.h"
#include <float.h>
#include <math.h>
#if de... | ---
+++
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 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.
@@ -18,7 +18,11 @@
namespace base {
inline bo... | Use isfinite instead of finite on Mac
According to math.h in the 10.6 SDK, finite is deprecated in favor of isfinite, and finite isn't available on iOS.
BUG=None
TEST=None
Review URL: https://chromiumcodereview.appspot.com/10704126
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@145876 0039d316-1c4b-4281-b951... | bsd-3-clause | dushu1203/chromium.src,hujiajie/pa-chromium,dednal/chromium.src,timopulkkinen/BubbleFish,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk-efl,dednal/chromium.src,pozdnyakov/chromium-crosswalk,M4sse/chromium.src,Jonekee/chromium.src,patrickm/chromium.src,patrickm/chromium.src,keishi/chromium,axinging/c... | c894081a7f7ac467d6282b8955e32dd3ac040ef1 |
class dccChat : public Module {
public:
virtual void onDCCReceive(std::string dccid, std::string message);
};
class dccSender : public Module {
public:
virtual void dccSend(std::string dccid, std::string message);
virtual bool hookDCCMessage(std::string modName, std::string hookMsg);
}; | class dccChat : public Module {
public:
void onDCCReceive(std::string dccid, std::string message);
};
class dccSender : public Module {
public:
void dccSend(std::string dccid, std::string message);
}; | ---
+++
@@ -1,9 +1,10 @@
class dccChat : public Module {
public:
- void onDCCReceive(std::string dccid, std::string message);
+ virtual void onDCCReceive(std::string dccid, std::string message);
};
class dccSender : public Module {
public:
- void dccSend(std::string dccid, std::string message);
+ virtual... | Fix those functions not being virtual.
| mit | ElementalAlchemist/RoBoBo,ElementalAlchemist/RoBoBo | d569c69ea1a361ada0e09f2c58bd611b686d82e9 |
/**
* \file os_rmdir.c
* \brief Remove a subdirectory.
* \author Copyright (c) 2002-2013 Jason Perkins and the Premake project
*/
#include <stdlib.h>
#include "premake.h"
int os_rmdir(lua_State* L)
{
int z;
const char* path = luaL_checkstring(L, 1);
#if PLATFORM_WINDOWS
z = RemoveDirectory(path);
#else
z... | /**
* \file os_rmdir.c
* \brief Remove a subdirectory.
* \author Copyright (c) 2002-2008 Jason Perkins and the Premake project
*/
#include <stdlib.h>
#include "premake.h"
int os_rmdir(lua_State* L)
{
int z;
const char* path = luaL_checkstring(L, 1);
#if PLATFORM_WINDOWS
z = RemoveDirectory(path);
#else
z... | ---
+++
@@ -1,7 +1,7 @@
/**
* \file os_rmdir.c
* \brief Remove a subdirectory.
- * \author Copyright (c) 2002-2008 Jason Perkins and the Premake project
+ * \author Copyright (c) 2002-2013 Jason Perkins and the Premake project
*/
#include <stdlib.h>
@@ -16,7 +16,7 @@
#if PLATFORM_WINDOWS
z = RemoveDir... | Fix error result handling in os.rmdir()
| bsd-3-clause | Yhgenomics/premake-core,felipeprov/premake-core,sleepingwit/premake-core,xriss/premake-core,bravnsgaard/premake-core,grbd/premake-core,PlexChat/premake-core,prapin/premake-core,soundsrc/premake-core,prapin/premake-core,prapin/premake-core,jsfdez/premake-core,sleepingwit/premake-core,resetnow/premake-core,LORgames/prema... | ff8d8029fdfa0b28c67012b8fcddb4e2d9a2523d |
#ifdef _WIN32
#include <time.h>
#ifndef METRO
#include <winsock2.h>
#endif
#include <windows.h>
#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
#define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64
#else
#define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL
#endif
struct timeval;
int gettimeofday(struct timeval ... | #ifdef _WIN32
#include <time.h>
#include <winsock2.h>
#include <windows.h>
#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
#define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64
#else
#define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL
#endif
struct timeval;
int gettimeofday(struct timeval *tv, struct timezone ... | ---
+++
@@ -1,7 +1,9 @@
#ifdef _WIN32
#include <time.h>
+#ifndef METRO
#include <winsock2.h>
+#endif
#include <windows.h>
#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS) | Tweak to allow building on metro.
Limited testing seems to suggest that the only thing stopping the MuPDF
library building on metro seems to be the use of winsock.h.
| agpl-3.0 | hackqiang/mupdf,crow-misia/mupdf,knielsen/mupdf,lustersir/MuPDF,ArtifexSoftware/mupdf,lamemate/mupdf,flipstudio/MuPDF,FabriceSalvaire/mupdf-cmake,lolo32/mupdf-mirror,MokiMobility/muPDF,geetakaur/NewApps,sebras/mupdf,Kalp695/mupdf,kobolabs/mupdf,asbloomf/mupdf,hxx0215/MuPDFMirror,michaelcadilhac/pdfannot,tophyr/mupdf,hj... | 0cd78c0a12ebc84b56a58016fbcc83aefba64e1a |
// MockUIAlertController by Jon Reid, http://qualitycoding.org/about/
// Copyright 2015 Jonathan M. Reid. See LICENSE.txt
#import <UIKit/UIKit.h>
#import "QCOMockPopoverPresentationController.h" // Convenience import instead of @class
/**
Captures mocked UIAlertController arguments.
*/
@interface QCOMockA... | // MockUIAlertController by Jon Reid, http://qualitycoding.org/about/
// Copyright 2015 Jonathan M. Reid. See LICENSE.txt
#import <UIKit/UIKit.h>
#import "QCOMockPopoverPresentationController.h" // Convenience import instead of @class
/**
Captures QCOMockAlertController arguments.
*/
@interface QCOMockAle... | ---
+++
@@ -7,7 +7,7 @@
/**
- Captures QCOMockAlertController arguments.
+ Captures mocked UIAlertController arguments.
*/
@interface QCOMockAlertVerifier : NSObject
| Change comment to eliminate reference to eliminated test double
| mit | foulkesjohn/MockUIAlertController,yas375/MockUIAlertController,carabina/MockUIAlertController | f1c400b56e0bd233a28553053e6fbf70f2d87331 |
// SDLAbstractProtocol.h
//
@class SDLAbstractTransport;
@class SDLRPCMessage;
@class SDLRPCRequest;
#import "SDLProtocolListener.h"
#import "SDLTransportDelegate.h"
@interface SDLAbstractProtocol : NSObject <SDLTransportDelegate>
@property (strong) NSString *debugConsoleGroupName;
@property (weak) SDLAbstractTra... | // SDLAbstractProtocol.h
//
@class SDLAbstractTransport;
@class SDLRPCMessage;
@class SDLRPCRequest;
#import "SDLProtocolListener.h"
#import "SDLTransportDelegate.h"
@interface SDLAbstractProtocol : NSObject <SDLTransportDelegate>
@property (strong) NSString *debugConsoleGroupName;
@property (weak) SDLAbstractTra... | ---
+++
@@ -13,7 +13,7 @@
@property (strong) NSString *debugConsoleGroupName;
@property (weak) SDLAbstractTransport *transport;
-@property (weak) NSHashTable *protocolDelegateTable; // table of id<SDLProtocolListener>
+@property (strong) NSHashTable *protocolDelegateTable; // table of id<SDLProtocolListener>
/... | Fix SDLProtocol delegate table being released too early
| bsd-3-clause | FordDev/sdl_ios,APCVSRepo/sdl_ios,smartdevicelink/sdl_ios,adein/sdl_ios,kshala-ford/sdl_ios,kshala-ford/sdl_ios,smartdevicelink/sdl_ios,FordDev/sdl_ios,APCVSRepo/sdl_ios,kshala-ford/sdl_ios,APCVSRepo/sdl_ios,davidswi/sdl_ios,kshala-ford/sdl_ios,davidswi/sdl_ios,APCVSRepo/sdl_ios,FordDev/sdl_ios,FordDev/sdl_ios,smartdev... | a58c131cca2faedf386aa57b7f68b0ab0dd4f6b8 |
#ifndef _POLYGON_H_
#define _POLYGON_H_
/*
* geometric properties of the polygon meant for solving
*
* The default C pre-processor configuration here is to solve triangles.
*/
#ifndef POLYGON_DEPTH
#define POLYGON_DEPTH 3
#endif
#if (POLYGON_DEPTH < 3)
#error You cannot have a polygon with fewer than 3 ... | #ifndef _POLYGON_H_
#define _POLYGON_H_
/*
* geometric properties of the polygon meant for solving
*
* The default C pre-processor configuration here is to solve triangles.
*/
#define POLYGON_DEPTH 3
#if (POLYGON_DEPTH < 3)
#error You cannot have a polygon with fewer than 3 sides!
#endif
#if (POLYGON_DE... | ---
+++
@@ -6,8 +6,10 @@
*
* The default C pre-processor configuration here is to solve triangles.
*/
+#ifndef POLYGON_DEPTH
+#define POLYGON_DEPTH 3
+#endif
-#define POLYGON_DEPTH 3
#if (POLYGON_DEPTH < 3)
#error You cannot have a polygon with fewer than 3 sides!
#endif | Allow POLYGON_DEPTH to be configurable by compile commands.
| cc0-1.0 | cxd4/trig,cxd4/trig | 941075e6a69846082231e76aca8642d299c2093c |
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep extern_weak
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | llvm-as | llc
#if !defined(__linux__) && !defined(__FreeBSD__) && \
!defined(__OpenBSD__) && !defined(__CYGWIN__)
void foo() __attribute__((weak_import));
#else
void foo() __attribute__((weak));
#endif
void ... | // RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep extern_weak
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | llvm-as | llc
#if !defined(__linux__) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
void foo() __attribute__((weak_import));
#else
void foo() __attribute__((weak));
#endif
void bar() { foo(); }
| ---
+++
@@ -1,7 +1,8 @@
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep extern_weak
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | llvm-as | llc
-#if !defined(__linux__) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
+#if !defined(__linux__) && !defined(__FreeBSD__) && \
+ !defined(__OpenBSD__) && !defined(... | Make this pass for CYGWIN.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@44354 91177308-0d34-0410-b5e6-96231b3b80d8
| bsd-2-clause | dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llv... | f19341dec7361451f100a882a023b14583454d7e |
/*-
* This file is in the public domain.
*/
/* $FreeBSD$ */
#include <i386/clock.h>
| /*-
* Copyright (C) 2005 TAKAHASHI Yoshihiro. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of c... | ---
+++
@@ -1,33 +1,6 @@
/*-
- * Copyright (C) 2005 TAKAHASHI Yoshihiro. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copy... | Remove my copyright. This file includes simply i386's one now.
| bsd-3-clause | jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase | 4f133b2d11568f9e495cfa76ed1a61bed8b4c81c |
/*
* rmgrdesc.c
*
* pg_xlogdump resource managers definition
*
* contrib/pg_xlogdump/rmgrdesc.c
*/
#define FRONTEND 1
#include "postgres.h"
#include "access/clog.h"
#include "access/gin.h"
#include "access/gist_private.h"
#include "access/hash.h"
#include "access/heapam_xlog.h"
#include "access/multixact.h"
#inc... | /*
* rmgrdesc.c
*
* pg_xlogdump resource managers definition
*
* contrib/pg_xlogdump/rmgrdesc.c
*/
#define FRONTEND 1
#include "postgres.h"
#include "access/clog.h"
#include "access/gin.h"
#include "access/gist_private.h"
#include "access/hash.h"
#include "access/heapam_xlog.h"
#include "access/multixact.h"
#inc... | ---
+++
@@ -27,7 +27,7 @@
#include "storage/standby.h"
#include "utils/relmapper.h"
-#define PG_RMGR(symname,name,redo,desc,startup,cleanup,restartpoint) \
+#define PG_RMGR(symname,name,redo,desc,startup,cleanup) \
{ name, desc, },
const RmgrDescData RmgrDescTable[RM_MAX_ID + 1] = { | Fix compilation of pg_xlogdump, now that rm_safe_restartpoint is no more.
Oops. Pointed out by Andres Freund.
| mpl-2.0 | Postgres-XL/Postgres-XL,ovr/postgres-xl,oberstet/postgres-xl,50wu/gpdb,greenplum-db/gpdb,xinzweb/gpdb,ovr/postgres-xl,adam8157/gpdb,jmcatamney/gpdb,pavanvd/postgres-xl,ashwinstar/gpdb,zeroae/postgres-xl,techdragon/Postgres-XL,lisakowen/gpdb,adam8157/gpdb,lisakowen/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,xinzweb/gpdb,xin... | 033dc1c92cf018d396e983d425b821dda420cfff |
#include "clar_libgit2.h"
#include "cache.h"
static git_repository *g_repo;
void test_threads_basic__initialize(void)
{
g_repo = cl_git_sandbox_init("testrepo");
}
void test_threads_basic__cleanup(void)
{
cl_git_sandbox_cleanup();
}
void test_threads_basic__cache(void)
{
// run several threads polling the cac... | #include "clar_libgit2.h"
#include "cache.h"
static git_repository *g_repo;
void test_threads_basic__initialize(void)
{
g_repo = cl_git_sandbox_init("testrepo");
}
void test_threads_basic__cleanup(void)
{
cl_git_sandbox_cleanup();
}
void test_threads_basic__cache(void)
{
// run several threads polling the cac... | ---
+++
@@ -21,3 +21,16 @@
// run several threads polling the cache at the same time
cl_assert(1 == 1);
}
+
+void test_threads_basic__multiple_init(void)
+{
+ git_repository *nested_repo;
+
+ git_threads_init();
+ cl_git_pass(git_repository_open(&nested_repo, cl_fixture("testrepo.git")));
+ git_repository_free(n... | Add test for multiple thread init/shutdown
| lgpl-2.1 | mhp/libgit2,maxiaoqian/libgit2,t0xicCode/libgit2,rcorre/libgit2,KTXSoftware/libgit2,Aorjoa/libgit2_maked_lib,chiayolin/libgit2,claudelee/libgit2,claudelee/libgit2,sygool/libgit2,nokiddin/libgit2,yongthecoder/libgit2,oaastest/libgit2,Tousiph/Demo1,spraints/libgit2,Aorjoa/libgit2_maked_lib,leoyanggit/libgit2,yosefhackmon... | cfd192b0140f004404a208cde967ac8eef16cdff |
/*
* macsetfiletype - Set the mac's idea of file type
*
*/
#include "macdefs.h"
int
setfiletype(name, creator, type)
char *name;
long creator, type;
{
FInfo info;
unsigned char *pname;
pname = (StringPtr) c2pstr(name);
if ( GetFInfo(pname, 0, &info) < 0 )
return -1;
info.fdType = type;
info.fdCreator ... |
/*
* macsetfiletype - Set the mac's idea of file type
*
*/
#include <Files.h>
#include <pascal.h>
int
setfiletype(name, creator, type)
char *name;
long creator, type;
{
FInfo info;
unsigned char *pname;
pname = c2pstr(name);
if ( GetFInfo(pname, 0, &info) < 0 )
return -1;
info.fdType = type;
info.fdCr... | ---
+++
@@ -4,8 +4,7 @@
*
*/
-#include <Files.h>
-#include <pascal.h>
+#include "macdefs.h"
int
setfiletype(name, creator, type)
@@ -15,7 +14,7 @@
FInfo info;
unsigned char *pname;
- pname = c2pstr(name);
+ pname = (StringPtr) c2pstr(name);
if ( GetFInfo(pname, 0, &info) < 0 )
return -1;
info... | Make it work under MPW too.
| mit | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator | d940b57163ff5ab118821be7ad3e9ede057f5a75 |
//===- Transforms/Instrumentation.h - Instrumentation passes ----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===--------... | //===- Transforms/Instrumentation.h - Instrumentation passes ----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===--------... | ---
+++
@@ -16,14 +16,29 @@
namespace llvm {
-class Pass;
+class ModulePass;
+class FunctionPass;
+
+// Reoptimizer support pass: add instrumentation calls to back-edges of loops
+ModulePass *createLoopInstrumentationPass ();
+
+// Reoptimizer support pass: combine multiple back-edges w/ same target into one
+Fu... | Add accessor function prototypes for reoptimizer support passes.
Make accessors return FunctionPass* as appropriate.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@16619 91177308-0d34-0410-b5e6-96231b3b80d8
| bsd-2-clause | dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,chubbymaggie/asap,apple/swift-... | f858f7f3804ea20b80a38dab9b1b2d098e1df2a1 |
#ifndef __INSECT_H__
#define __INSECT_H__
#ifdef __cplusplus
extern "C" {
#endif /* C++ */
#include "insect/crawler.h"
#include "insect/records.h"
/* basic file API */
#include "insect/file/stat.h"
#ifdef USE_THREADS
#include "insect/concurrent/thread.h"
#endif /* USE_THREADS */
#ifdef __cplusplus
} /* extern "C" ... | #ifndef __INSECT_H__
#define __INSECT_H__
#include "insect/crawler.h"
#include "insect/records.h"
/* basic file API */
#include "insect/file/stat.h"
#ifdef USE_THREADS
#include "insect/concurrent/thread.h"
#endif /* USE_THREADS */
#endif /* __INSECT_H__ */
| ---
+++
@@ -1,5 +1,9 @@
#ifndef __INSECT_H__
#define __INSECT_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* C++ */
#include "insect/crawler.h"
#include "insect/records.h"
@@ -11,4 +15,8 @@
#include "insect/concurrent/thread.h"
#endif /* USE_THREADS */
+#ifdef __cplusplus
+} /* extern "C" */
+#endif /* ... | Add extern "C" wrapper to main header, for C++
| bsd-2-clause | hagemt/insect,hagemt/insect | fbe96411e7888bfb9cc92fe85e35e093239d24a7 |
#pragma once
#include "geometry.h"
#include "yaml_utils.h"
#include <vector>
#include <boost/shared_ptr.hpp>
#include <librevenge/librevenge.h>
namespace libpagemaker
{
class PMDPage
{
std::vector<boost::shared_ptr<PMDLineSet> > m_shapes;
public:
PMDPage() : m_shapes()
{ }
void addShape(boost::shared_ptr<PM... | #pragma once
#include "geometry.h"
#include "yaml_utils.h"
#include <vector>
#include <boost/shared_ptr.hpp>
#include <librevenge/librevenge.h>
namespace libpagemaker
{
class PMDPage
{
std::vector<boost::shared_ptr<PMDLineSet> > m_shapes;
public:
PMDPage() : m_shapes()
{ }
void addShape(boost::shared_ptr<PM... | ---
+++
@@ -33,7 +33,9 @@
void emitYaml(yaml_emitter_t *emitter) const
{
+ yamlBeginMap(emitter);
yamlIndirectForeach(emitter, "shapes", m_shapes);
+ yamlEndMap(emitter);
}
};
| Fix bug in shape yaml emit
| mpl-2.0 | umanwizard/libpagemaker,umanwizard/libpagemaker,umanwizard/libpagemaker,anuragkanungo/libpagemaker,anuragkanungo/libpagemaker,umanwizard/libpagemaker,anuragkanungo/libpagemaker,umanwizard/libpagemaker,anuragkanungo/libpagemaker | 37ffe379713c08899981532bad1a9df96c7fd3e2 |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | ---
+++
@@ -24,8 +24,8 @@
#include <fcb/fcb.h>
#include "config/config.h"
-struct conf_file {
- struct cf_storage cf_itf;
+struct conf_fcb {
+ struct conf_store cf_store;
struct fcb cf_fcb;
};
| Update to catch up with renames of internal structures.
| apache-2.0 | mlaz/mynewt-core,andrzej-kaczmarek/incubator-mynewt-core,andrzej-kaczmarek/apache-mynewt-core,IMGJulian/incubator-mynewt-core,IMGJulian/incubator-mynewt-core,IMGJulian/incubator-mynewt-core,mlaz/mynewt-core,andrzej-kaczmarek/incubator-mynewt-core,wes3/incubator-mynewt-core,mlaz/mynewt-core,wes3/incubator-mynewt-core,an... | 2b03ded9e3f9a0668784a2090852625adfd58485 |
/*
* public domain strtok_r() by Charlie Gordon
*
* from comp.lang.c 9/14/2007
*
* http://groups.google.com/group/comp.lang.c/msg/2ab1ecbb86646684
*
* (Declaration that it's public domain):
* http://groups.google.com/group/comp.lang.c/msg/7c7b39328fefab9c
*/
#include <string.h>
#ifdef __MING... | /*
* public domain strtok_r() by Charlie Gordon
*
* from comp.lang.c 9/14/2007
*
* http://groups.google.com/group/comp.lang.c/msg/2ab1ecbb86646684
*
* (Declaration that it's public domain):
* http://groups.google.com/group/comp.lang.c/msg/7c7b39328fefab9c
*/
#include <string.h>
#ifdef __MING... | ---
+++
@@ -24,7 +24,10 @@
str += strspn(str, delim);
if (*str == '\0')
+ {
+ *nextp = str;
return NULL;
+ }
ret = str;
str += strcspn(str, delim); | Fix possible invalid write on Windows-specific `strtok_r` stub | agpl-3.0 | Levak/warfacebot,Levak/warfacebot,Levak/warfacebot | 621af6e0e6a48c8a8c5b4804de1bdc91c3436f5b |
#ifndef XMMSC_SOCKETS_H
#define XMMSC_SOCKETS_H
#include <xmmsc/xmmsc_stdbool.h>
/* Windows */
#ifdef _MSC_VER
#include <Winsock2.h>
#include <Ws2tcpip.h>
typedef SOCKET xmms_socket_t;
typedef int socklen_t;
#define XMMS_EINTR WSAEINTR
#define XMMS_EAGAIN WSAEWOULDBLOCK
/* UNIX */
#else
#define SOCKET_ERROR (-1)
#d... | #ifndef XMMSC_SOCKETS_H
#define XMMSC_SOCKETS_H
#include <xmmsc/xmmsc_stdbool.h>
/* Windows */
#ifdef _MSC_VER
#include <Winsock2.h>
#include <Ws2tcpip.h>
typedef SOCKET xmms_socket_t;
typedef int socklen_t;
#define XMMS_EINTR WSAEINTR
#define XMMS_EAGAIN WSAEWOULDBLOCK
/* UNIX */
#else
#define SOCKET_ERROR (-1)
#d... | ---
+++
@@ -18,9 +18,9 @@
#define SOCKET_ERROR (-1)
#define XMMS_EINTR EINTR
#define XMMS_EAGAIN EWOULDBLOCK
+#include <sys/types.h>
#include <sys/socket.h>
#include <sys/select.h>
-#include <sys/types.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h> | BUG(501): Fix compilation on OpenBSD (from Bernhard Leiner)
| lgpl-2.1 | theefer/xmms2,oneman/xmms2-oneman-old,theeternalsw0rd/xmms2,oneman/xmms2-oneman-old,mantaraya36/xmms2-mantaraya36,krad-radio/xmms2-krad,theefer/xmms2,krad-radio/xmms2-krad,dreamerc/xmms2,chrippa/xmms2,mantaraya36/xmms2-mantaraya36,chrippa/xmms2,theefer/xmms2,oneman/xmms2-oneman-old,six600110/xmms2,six600110/xmms2,onema... | c033df3aeef588c2faf3cce3066b091980be0083 |
/*
* Copyright (c) 2019 Oticon A/S
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* This header exists solely to allow drivers meant for the native_posix board
* to be used directly in the nrf52_bsim board.
* Note that such reuse should be done with great care.
*
* The command line arguments parsing logic fro... | /*
* Copyright (c) 2019 Oticon A/S
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* This header exists solely to allow drivers meant for the native_posix board
* to be used directly in the nrf52_bsim board.
* Note that such reuse should be done with great care.
*
* The command line arguments parsing logic fro... | ---
+++
@@ -17,10 +17,23 @@
* command line arguments is passed to the nrf52_bsim one
*/
+#ifndef BOARDS_POSIX_NRF52_BSIM_CMDLINE_H
+#define BOARDS_POSIX_NRF52_BSIM_CMDLINE_H
+
#include "../native_posix/cmdline_common.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
static inline void native_add_command_line_o... | nrf52_bsim: Add missing header guard and extern C block
Add a missing header guard and an extern "C" block
in one of the nrf52_bsim headers
Signed-off-by: Alberto Escolar Piedras <52be3174920ed06cbdfbcf9622a1a6c68e942617@oticon.com>
| apache-2.0 | nashif/zephyr,nashif/zephyr,nashif/zephyr,finikorg/zephyr,Vudentz/zephyr,nashif/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,Vudentz/zephyr,Vudentz/zephyr,finikorg/zephyr,galak/zephyr,finikorg/zephyr,Vudentz/zephyr,nashif/zephyr,galak/zephyr,galak/zephyr,zephyrproject-rtos/ze... | 18ea3bfa8059ab859a758a65fd006327f1da31fd |
#include <avr/io.h>
#include <avr/wdt.h>
#include <avr/interrupt.h>
int main ( void ) {
//Disable interrupts and reset WDT timer
cli();
wdt_reset();
//Reset MCU status register
MCUSR &= ~(1<<WDRF);
//Disable watchdog
WDTCR |= (1<<WDCE) | (1<<WDE);
WDTCR = 0;
//Enable LED
DDRB = 1<<DDB3;
PORTB = 1<<PORT... | #include <avr/io.h>
int main (void) {
//Set pin 3 as output to source current?
PORTB = 1<<PORTB3;
DDRB = 1<<DDB3;
} | ---
+++
@@ -1,9 +1,38 @@
#include <avr/io.h>
+#include <avr/wdt.h>
+#include <avr/interrupt.h>
-int main (void) {
+int main ( void ) {
- //Set pin 3 as output to source current?
+ //Disable interrupts and reset WDT timer
+ cli();
+ wdt_reset();
+
+ //Reset MCU status register
+ MCUSR &= ~(1<<WDRF);
+
+ //Disabl... | Make a watchdog timer blink a LED
| mit | Atom058/ArduinoLithiumCharger,Atom058/ArduinoLithiumCharger | c98e8774e1173d05e733fb02032d06e61813a6a3 |
#include "gc.h"
#include "tree.h"
#include "dict.h"
#include "match.h"
#include "optimize.h"
/*
* We recursively iterate through all
* rules on all the children of the tree
* until the expression is irreducible,
* i.e. stops changing.
*
* Also, we (try to) apply the optimization
* routine.
*/
int apply_rules... | #include "gc.h"
#include "tree.h"
#include "dict.h"
#include "match.h"
#include "optimize.h"
/* We recursively iterate through all
* rules on all the children of the tree
* until the expression is irreducible,
* i.e. stops changing.
*
* Also, we (try to) apply the optimization
* routine.
*/
int apply_rules... | ---
+++
@@ -5,11 +5,12 @@
#include "match.h"
#include "optimize.h"
-/* We recursively iterate through all
+/*
+ * We recursively iterate through all
* rules on all the children of the tree
- * until the expression is irreducible,
+ * until the expression is irreducible,
* i.e. stops changing.
- *
+ *
* A... | Change indent and comments to a more readable style
| mit | bl0ckeduser/symdiff,bl0ckeduser/symdiff,bl0ckeduser/symdiff | 920e161a029d38c78042221415d036d7a6e631c5 |
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#endif
#ifndef ELM_LIB_QUICKLAUNCH
void
test_carousel(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *car;
win = elm_win_add(NULL, "carousel", ELM_WIN_BASIC);
elm_win_title_s... | #include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#endif
#ifndef ELM_LIB_QUICKLAUNCH
void
test_carousel(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg;
win = elm_win_add(NULL, "carousel", ELM_WIN_BASIC);
elm_win_title_set(win... | ---
+++
@@ -6,7 +6,7 @@
void
test_carousel(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- Evas_Object *win, *bg;
+ Evas_Object *win, *bg, *car;
win = elm_win_add(NULL, "carousel", ELM_WIN_BASIC);
elm_win_title_set(win, "Carousel");
@@ -17,6 +17,15 @@
evas_obj... | Add carousel to carousel test =P
But it's not working anyway.
SVN revision: 53684
| lgpl-2.1 | rvandegrift/elementary,rvandegrift/elementary,FlorentRevest/Elementary,rvandegrift/elementary,tasn/elementary,tasn/elementary,FlorentRevest/Elementary,FlorentRevest/Elementary,tasn/elementary,rvandegrift/elementary,tasn/elementary,FlorentRevest/Elementary,tasn/elementary | 54993a9f4ebc279f5dac6754e61f2c6ea98dbb65 |
#include <stdio.h>
#include <signal.h>
#include <unistd.h>
#include <assert.h>
#include <stdlib.h>
#include <setjmp.h>
jmp_buf try;
void handler(int sig) {
static int i = 0;
write(2, "stack overflow\n", 15);
longjmp(try, ++i);
_exit(1);
}
unsigned recurse(unsigned x) {
return recurse(x)+1;
}
int ma... | #include <stdio.h>
#include <signal.h>
#include <unistd.h>
#include <assert.h>
#include <stdlib.h>
#include <setjmp.h>
jmp_buf try;
void handler(int sig) {
static int i = 0;
write(2, "stack overflow\n", 15);
longjmp(try, ++i);
_exit(1);
}
unsigned recurse(unsigned x) {
return recurse(x)+1;
}
int ma... | ---
+++
@@ -20,7 +20,8 @@
}
int main() {
- static char stack[SIGSTKSZ];
+ char* stack;
+ stack = malloc(sizeof(stack) * SIGSTKSZ);
stack_t ss = {
.ss_size = SIGSTKSZ,
.ss_sp = stack, | Put alternate stack on heap
| apache-2.0 | danluu/setjmp-longjmp-ucontext-snippets,danluu/setjmp-longjmp-ucontext-snippets | 03186dd5ad61d9d9bc366ec5e23e313910ddb48f |
#include "Arduino.h"
class MotorShield
{
public:
MotorShield(uint8_t speedPinLeft, uint8_t dirPinLeft,
uint8_t speedPinRight, uint8_t dirPinRight);
void init();
void forward();
void backward();
void stop();
void fullSpeed();
void stopLeft();
void stopRight();
private:
ui... | #include "Arduino.h"
class MotorShield
{
public:
MotorShield(uint8_t speedPinLeft, uint8_t dirPinLeft,
uint8_t speedPinRight, uint8_t dirPinRight);
void init();
void forward();
void backward();
void stop();
void fullSpeed();
void stopLeft();
void stopRight();
private:
in... | ---
+++
@@ -13,10 +13,10 @@
void stopLeft();
void stopRight();
private:
- int speedPinLeft,
- dirPinLeft,
- speedPinRight,
- dirPinRight,
- maxSpeed,
- minSpeed;
+ uint8_t speedPinLeft,
+ dirPinLeft,
+ speedPinRight,
+ dirPinRight,... | Change var types to the same type that constructor expects
| mit | lenon/arduino-motorshield | c45c927b2776def13b062707fff08974ddb4c920 |
/*
* system_log.h
*
* Author: Ming Tsang
* Copyright (c) 2014 Ming Tsang
* Refer to LICENSE for details
*/
#pragma once
#include "libutils/misc/singleton.h"
namespace libutils
{
namespace io
{
template<typename T> class Logger;
}
}
namespace libutils
{
namespace io
{
/**
* The default system logger
*/
te... | /*
* system_log.h
*
* Author: Ming Tsang
* Copyright (c) 2014 Ming Tsang
* Refer to LICENSE for details
*/
#pragma once
#include "libutils/io/logger.h"
#include "libutils/misc/singleton.h"
namespace libutils
{
namespace io
{
/**
* The default system logger
*/
template<typename CharT>
class SystemLog : publi... | ---
+++
@@ -8,8 +8,17 @@
#pragma once
-#include "libutils/io/logger.h"
#include "libutils/misc/singleton.h"
+
+namespace libutils
+{
+namespace io
+{
+
+template<typename T> class Logger;
+
+}
+}
namespace libutils
{
@@ -25,3 +34,5 @@
}
}
+
+#include "libutils/io/logger.h" | Include logger.h later to prevent using SystemLog before definition | mit | nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils | e86ec93def569ec100bcbca7e9f1952e64a0851d |
#ifndef __PTHREAD_H
#define __PTHREAD_H
typedef ULONG pthread_key_t;
typedef HANDLE pthread_mutex_t;
typedef int pthread_once_t;
DWORD pthread_self(void);
void pthread_setspecific(pthread_key_t, void *);
void *pthread_getspecific(pthread_key_t);
int pthread_mutex_init(pthread_mutex_t *, void *attr);
int pt... | #ifndef __PTHREAD_H
#define __PTHREAD_H
typedef ULONG pthread_key_t;
typedef HANDLE pthread_mutex_t;
typedef int pthread_once_t;
DWORD pthread_self(void);
void pthread_setspecific(pthread_key_t, void *);
void *pthread_getspecific(pthread_key_t);
void pthread_mutex_init(pthread_mutex_t *, void *attr);
void pt... | ---
+++
@@ -10,10 +10,10 @@
void pthread_setspecific(pthread_key_t, void *);
void *pthread_getspecific(pthread_key_t);
-void pthread_mutex_init(pthread_mutex_t *, void *attr);
-void pthread_mutex_lock(pthread_mutex_t *);
+int pthread_mutex_init(pthread_mutex_t *, void *attr);
+int pthread_mutex_lock(pth... | Fix declarations of pthread functions, missed in recent commit.
| agpl-3.0 | tpostgres-projects/tPostgres,50wu/gpdb,jmcatamney/gpdb,Chibin/gpdb,Postgres-XL/Postgres-XL,Postgres-XL/Postgres-XL,ovr/postgres-xl,techdragon/Postgres-XL,Chibin/gpdb,xinzweb/gpdb,adam8157/gpdb,pavanvd/postgres-xl,kmjungersen/PostgresXL,50wu/gpdb,ovr/postgres-xl,lisakowen/gpdb,ovr/postgres-xl,greenplum-db/gpdb,jmcatamne... | 3951fae51d776d05e871ee5a7beb62fb832985b1 |
/* -*- C -*-
* $Id: defs.h 11708 2007-02-12 23:01:19Z shyouhei $
*/
#ifndef DIGEST_DEFS_H
#define DIGEST_DEFS_H
#include "ruby.h"
#include <sys/types.h>
#include <sys/cdefs.h>
/*
* #if defined(HAVE_SYS_CDEFS_H)
* # include <sys/cdefs.h>
* #endif
* #if !defined(__BEGIN_DECLS)
* # define __BEGIN_DECLS
* # defi... | /* -*- C -*-
* $Id: defs.h 11708 2007-02-12 23:01:19Z shyouhei $
*/
#ifndef DIGEST_DEFS_H
#define DIGEST_DEFS_H
#include "ruby.h"
#include <sys/types.h>
#include <sys/cdefs.h>
/*
* #if defined(HAVE_SYS_CDEFS_H)
* # include <sys/cdefs.h>
* #endif
* #if !defined(__BEGIN_DECLS)
* # define __BEGIN_DECLS
* # defi... | ---
+++
@@ -36,4 +36,12 @@
* #endif
*/
+/* Define if processor uses big-endian word */
+/*
+#ifdef __BIG_ENDIAN__
+#define WORDS_BIGENDIAN
+#else */ /* !__BIG_ENDIAN__ */
+/* #undef WORDS_BIGENDIAN */
+/* #endif */ /* __BIG_ENDIAN__ */
+
#endif /* DIGEST_DEFS_H */ | Fix Digest failures on OSX PPC (big endian) systems
- add some tests to defs.h to check for the existence of the __BIG_ENDIAN__
macro which is available on POSIX systems. If it is defined, we define the
WORDS_BIGENDIAN macro which is tested by the digest/**/*.c files to activate
special code for byte reordering
... | bsd-3-clause | heftig/rubinius,mlarraz/rubinius,sferik/rubinius,lgierth/rubinius,jemc/rubinius,kachick/rubinius,travis-repos/rubinius,pH14/rubinius,jemc/rubinius,Wirachmat/rubinius,ngpestelos/rubinius,slawosz/rubinius,Azizou/rubinius,travis-repos/rubinius,pH14/rubinius,digitalextremist/rubinius,digitalextremist/rubinius,jemc/rubinius... | 42f453c38a1dd6c14aaf9cd655034d258c9ae931 |
// The following macros should be defined on entry to this file:
// __COMPDB_ENTRY:
// The contents of this compilation database entry. Should be a string
// literal.
// __COMPDB_SYMNAME:
// ATM I can't think of a way to generate a unique symbol name, so just
// force it to be passed in.
__attribute__((section... | // __COMPDB_ENTRY: The contents of this compilation database entry.
// Should be a string literal.
// __COMPDB_SYMNAME: ATM I can't think of a way to generate a unique symbol
// name, so just force the TU to provide it.
__attribute__((section(".llvm.compdb")))
extern const char __COMPDB_SYMNAME[] = "<<<COMPDB:" __COMPD... | ---
+++
@@ -1,6 +1,9 @@
-// __COMPDB_ENTRY: The contents of this compilation database entry.
-// Should be a string literal.
-// __COMPDB_SYMNAME: ATM I can't think of a way to generate a unique symbol
-// name, so just force the TU to provide it.
+// The following macros should be defined on entry to this file:
+// ... | Make this file a bit prettier.
| mit | chisophugis/clang-compdb-in-object-file,chisophugis/clang-compdb-in-object-file | 6562bb5c59335458afc804997116ba8c432c0785 |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | /*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | ---
+++
@@ -18,7 +18,7 @@
#define MINZIP_INLINE_MAGIC_H_
#ifndef MINZIP_GENERATE_INLINES
-#define INLINE extern __inline__
+#define INLINE extern inline __attribute((__gnu_inline__))
#else
#define INLINE
#endif | Fix multiple defined symbol errors
Use of __inline__ by projects in bootable/* was causing problems with
clang. Following the BKM and replaced use of __inline__ with
__attribute((__gnu_inline)).
Change-Id: If4ccfded685bb2c9d9c23c9b92ee052208399ef0
Author: Edwin Vane <7f62528bc61ebf7c7c86be496bd30af8ee2167eb@intel.com... | apache-2.0 | M1cha/libaroma,M1cha/libaroma,amarullz/libaroma,ProjectOpenCannibal/libaroma,M1cha/libaroma,amarullz/libaroma,ProjectOpenCannibal/libaroma,ProjectOpenCannibal/libaroma,M1cha/libaroma,amarullz/libaroma,amarullz/libaroma,M1cha/libaroma,amarullz/libaroma,ProjectOpenCannibal/libaroma,ProjectOpenCannibal/libaroma,M1cha/liba... | e95f31e37ff53c7030e335d58c484e30514a4805 |
/**
* MDx Hash Function
* (C) 1999-2008 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#ifndef BOTAN_MDX_BASE_H__
#define BOTAN_MDX_BASE_H__
#include <botan/hash.h>
namespace Botan {
/**
* MDx Hash Function Base Class
*/
class BOTAN_DLL MDx_HashFunction : public HashFunction
{
public:
... | /**
* MDx Hash Function
* (C) 1999-2008 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#ifndef BOTAN_MDX_BASE_H__
#define BOTAN_MDX_BASE_H__
#include <botan/hash.h>
namespace Botan {
/**
* MDx Hash Function Base Class
*/
class BOTAN_DLL MDx_HashFunction : public HashFunction
{
public:
... | ---
+++
@@ -21,18 +21,17 @@
MDx_HashFunction(u32bit, u32bit, bool, bool, u32bit = 8);
virtual ~MDx_HashFunction() {}
protected:
+ void add_data(const byte[], u32bit);
+ void final_result(byte output[]);
+ virtual void compress_n(const byte block[], u32bit block_n) = 0;
+
void c... | Make the member variables of MDx_HashFunction private instead of protected -
no subclass needs access to any of these variables.
| bsd-2-clause | Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,randombit/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,webmaster128/botan,randombit/botan,randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster1... | bbef5652aa760beb83ef3116ecec3bd5eb76af35 |
#ifndef OOC_ARRAY_H_
#define OOC_ARRAY_H_
#define array_malloc(size) calloc(1, (size))
#define array_free free
#include <stdint.h>
#define _lang_array__Array_new(type, size) ((_lang_array__Array) { size, array_malloc((size) * sizeof(type)) });
#if defined(safe)
#define _lang_array__Array_get(array, index, type) ( \... | #ifndef OOC_ARRAY_H_
#define OOC_ARRAY_H_
#define array_malloc(size) calloc(1, (size))
#define array_free free
#include <stdint.h>
#define _lang_array__Array_new(type, size) ((_lang_array__Array) { size, array_malloc((size) * sizeof(type)) });
#if defined(safe)
#define _lang_array__Array_get(array, index, type) ( \... | ---
+++
@@ -20,7 +20,7 @@
(((type*) array.data)[index] = value)
#endif
-#define _lang_array__Array_free(array) { array_free(array.data); array.data = NULL; array.length = 0; }
+#define _lang_array__Array_free(array) { array_free(array.data); }
typedef struct {
size_t length; | Revert "Set pointer to array data to null after free"
| mit | firog/ooc-kean,sebastianbaginski/ooc-kean,magic-lang/ooc-kean,fredrikbryntesson/ooc-kean,thomasfanell/ooc-kean,firog/ooc-kean,simonmika/ooc-kean,simonmika/ooc-kean,magic-lang/ooc-kean,thomasfanell/ooc-kean,fredrikbryntesson/ooc-kean,sebastianbaginski/ooc-kean | 36a864d477bf010819748d50f8be13b0497c1c7f |
#ifdef LOVR_WEBGL
#include <GLES3/gl3.h>
#include <GLES2/gl2ext.h>
#include <GL/gl.h>
#include <GL/glext.h>
#else
#include "lib/glad/glad.h"
#endif
#include <stdint.h>
#pragma once
#define GPU_BUFFER_FIELDS \
uint32_t id; \
uint8_t incoherent;
#define GPU_CANVAS_FIELDS \
uint32_t framebuffer; \
uint32_t res... | #ifdef LOVR_WEBGL
#include <GLES3/gl3.h>
#include <GLES2/gl2ext.h>
#include <GL/gl.h>
#include <GL/glext.h>
#else
#include "lib/glad/glad.h"
#endif
#include <stdint.h>
#pragma once
#define GPU_BUFFER_FIELDS \
uint32_t id; \
uint8_t incoherent;
#define GPU_CANVAS_FIELDS \
uint32_t framebuffer; \
uint32_t res... | ---
+++
@@ -29,7 +29,7 @@
uint32_t program;
#define GPU_TEXTURE_FIELDS \
+ uint8_t incoherent; \
GLuint id; \
GLuint msaaId; \
- GLenum target; \
- uint8_t incoherent;
+ GLenum target; | Adjust Texture padding so it's 64 bytes;
| mit | bjornbytes/lovr,bjornbytes/lovr,bjornbytes/lovr,bjornbytes/lovr,bjornbytes/lovr | 8d8f4eef73993a3ea51b47c2d7a7c238b627369a |
/*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
/*
* Driver version
*/
#define QLA2XXX_VERSION "8.06.00.08-k"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 6
#define QLA_DRIVER_PATCH_VER 0
#defi... | /*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
/*
* Driver version
*/
#define QLA2XXX_VERSION "8.05.00.03-k"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 5
#define QLA_DRIVER_PATCH_VER 0
#defi... | ---
+++
@@ -7,9 +7,9 @@
/*
* Driver version
*/
-#define QLA2XXX_VERSION "8.05.00.03-k"
+#define QLA2XXX_VERSION "8.06.00.08-k"
#define QLA_DRIVER_MAJOR_VER 8
-#define QLA_DRIVER_MINOR_VER 5
+#define QLA_DRIVER_MINOR_VER 6
#define QLA_DRIVER_PATCH_VER 0
#define QLA_DRIVER_BETA_VER 0 | [SCSI] qla2xxx: Update the driver version to 8.06.00.08-k.
Signed-off-by: Giridhar Malavali <799b6491fce2c7a80b5fedcf9a728560cc9eb954@qlogic.com>
Signed-off-by: Saurav Kashyap <88d6fd94e71a9ac276fc44f696256f466171a3c0@qlogic.com>
Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
| mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs | e03d1b21d1f8482072ff3a9db12197b401b3bc56 |
// RUN: %clang-cc1 -fsyntax-only %s 2>&1 | FileCheck %s
// IMPORTANT: This test case intentionally DOES NOT use --disable-free. It
// tests that we are properly reclaiming the ASTs and we do not have a double free.
// Previously we tried to free the size expression of the VLA twice.
int foo(int x) {
int y[x * 3];
... | // RUN: c-index-test -test-load-source local %s 2>&1 | FileCheck %s
// This is invalid source. Previously a double-free caused this
// example to crash c-index-test.
int foo(int x) {
int y[x * 3];
help
};
// CHECK: 8:3: error: use of undeclared identifier 'help'
// CHECK: help
// CHECK: 12:102: error: expected... | ---
+++
@@ -1,13 +1,14 @@
-// RUN: c-index-test -test-load-source local %s 2>&1 | FileCheck %s
+// RUN: %clang-cc1 -fsyntax-only %s 2>&1 | FileCheck %s
-// This is invalid source. Previously a double-free caused this
-// example to crash c-index-test.
+// IMPORTANT: This test case intentionally DOES NOT use --disa... | Change test case to use 'clang -cc1' (without --disable-free) instead of c-index-test (whose memory management behavior may change in the future).
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@92043 91177308-0d34-0410-b5e6-96231b3b80d8
| apache-2.0 | 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,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-cl... | 29b6f3869ed2b4ee706b604dbd563a302d4bbba9 |
#ifndef MAPPER_1_H
#define MAPPER_1_H
#include <Mapper.h>
enum PrgMode {
PRG_32KB,
FIX_FIRST_16KB,
FIX_LAST_16KB,
};
enum ChrMode {
CHR_8KB,
CHR_4KB,
};
class Mapper1: public Mapper {
public:
uint8_t readPrg(uint16_t addr);
void writePrg(uint16_t addr, uint8_t value);
uint8_t readChr... | #ifndef MAPPER_1_H
#define MAPPER_1_H
#include <Mapper.h>
enum PrgMode {
PRG_32KB,
FIX_FIRST_16KB,
FIX_LAST_16KB,
};
enum ChrMode {
CHR_8KB,
CHR_4KB,
};
class Mapper1: public Mapper {
public:
uint8_t readPrg(uint16_t addr);
void writePrg(uint16_t addr, uint8_t value);
uint8_t readChr... | ---
+++
@@ -34,7 +34,7 @@
int chrRomBank0 = 0;
int chrRomBank1 = 0;
- PrgMode prgMode = PrgMode::PRG_32KB;
+ PrgMode prgMode = PrgMode::FIX_LAST_16KB;
ChrMode chrMode = ChrMode::CHR_8KB;
int prg16kBankAddresses[2]; | Update mapper 1 default mapping on boot
| mit | scottjcrouch/ScootNES,scottjcrouch/ScootNES,scottjcrouch/ScootNES | a615df7468af8315894a91bd5758699abbfcc97c |
// RUN: %clang_cc1 %s -emit-llvm -o - -fblocks -triple x86_64-apple-darwin10 | FileCheck %s
// rdar://10033986
typedef void (^BLOCK)(void);
int main ()
{
_Complex double c;
BLOCK b = ^() {
_Complex double z;
z = z + c;
};
b();
}
// CHECK: define internal void @__main_block_invoke_0
// CHE... | // RUN: %clang_cc1 %s -emit-llvm -o - -fblocks -triple x86_64-apple-darwin10 | FileCheck %s
// rdar://10033986
typedef void (^BLOCK)(void);
int main ()
{
_Complex double c;
BLOCK b = ^() {
_Complex double z;
z = z + c;
};
b();
}
// CHECK: define internal void @__main_block_invoke_0
// CHE... | ---
+++
@@ -14,7 +14,7 @@
// CHECK: define internal void @__main_block_invoke_0
// CHECK: [[C1:%.*]] = alloca { double, double }, align 8
-// CHECK: [[C1]].realp = getelementptr inbounds { double, double }* [[C1]], i32 0, i32 0
-// CHECK-NEXT: [[C1]].real = load double* [[C1]].realp
-// CHECK-NEXT: [[C1]].ima... | Revise test and see if it passes with a release-built clang.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@139043 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,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... | 0f2c1ce4661a6d767441b74f0c71f8bf93db91d6 |
// RUN: %clang_cc1 -triple i386-pc-linux-gnu -emit-llvm -o %t %s
// RUN: grep 'declare i32 @f0() readnone ;' %t
// RUN: grep 'declare i32 @f1() readonly ;' %t
// RUN: grep 'declare void @f2(.* sret) ;' %t
// RUN: grep 'declare void @f3(.* sret) ;' %t
// RUN: grep 'declare void @f4(.* byval) ;' %t
// RUN: grep 'declare ... | // RUN: %clang_cc1 -triple i386-pc-linux-gnu -emit-llvm -o %t %s
// RUN: grep 'declare i32 @f0() readnone$' %t
// RUN: grep 'declare i32 @f1() readonly$' %t
// RUN: grep 'declare void @f2(.* sret)$' %t
// RUN: grep 'declare void @f3(.* sret)$' %t
// RUN: grep 'declare void @f4(.* byval)$' %t
// RUN: grep 'declare void ... | ---
+++
@@ -1,10 +1,10 @@
// RUN: %clang_cc1 -triple i386-pc-linux-gnu -emit-llvm -o %t %s
-// RUN: grep 'declare i32 @f0() readnone$' %t
-// RUN: grep 'declare i32 @f1() readonly$' %t
-// RUN: grep 'declare void @f2(.* sret)$' %t
-// RUN: grep 'declare void @f3(.* sret)$' %t
-// RUN: grep 'declare void @f4(.* byval... | Correct this test for the fact that the number of uses is now printed
in a comment.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@112813 91177308-0d34-0410-b5e6-96231b3b80d8
| apache-2.0 | apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-cl... | cd4c34d2a078b78ca31fd3bc5cbb210123dce89d |
//===--- UIKitOverlayShims.h ---===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See h... | //===--- UIKitOverlayShims.h ---===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See h... | ---
+++
@@ -20,7 +20,10 @@
#endif
#if TARGET_OS_TV || TARGET_OS_IOS
-static inline BOOL _swift_UIKit_UIFocusEnvironmentContainsEnvironment(id<UIFocusEnvironment> environment, id<UIFocusEnvironment> otherEnvironment) {
+static inline BOOL _swift_UIKit_UIFocusEnvironmentContainsEnvironment(
+ id<UIFocusEnvironment... | [overlay] Make the UIKit shim function properly available
<rdar://problem/33789760>
| apache-2.0 | xwu/swift,lorentey/swift,swiftix/swift,practicalswift/swift,jckarter/swift,apple/swift,parkera/swift,shajrawi/swift,allevato/swift,harlanhaskins/swift,aschwaighofer/swift,gregomni/swift,shajrawi/swift,CodaFi/swift,lorentey/swift,xedin/swift,gregomni/swift,gregomni/swift,airspeedswift/swift,shajrawi/swift,practicalswift... | f1b1720769e346cc2a619f80191e380619421669 |
#include <stdio.h>
#include <cs50.h>
#include <string.h>
#define ALPHA_NUM 26
int main(int argc, char *argv[]) {
// check argument number and argument key to be greater than -1
if (argc != 2 || atoi(argv[1]) < 0) {
printf("Usage (k >= 0):\n./caesar k \n");
return 1;
}
int key = atoi(a... | #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;
}
| ---
+++
@@ -1,15 +1,30 @@
#include <stdio.h>
#include <cs50.h>
+#include <string.h>
+#define ALPHA_NUM 26
int main(int argc, char *argv[]) {
- // check entered key
+ // check argument number and argument key to be greater than -1
if (argc != 2 || atoi(argv[1]) < 0) {
- printf("Usage: ./caesar... | Add unfinished loop to encode message
| unlicense | Implaier/CS50,Implaier/CS50,Implaier/CS50,Implaier/CS50 | c343de856dbe3f7049ad0193911216b3e7acdc54 |
/*
* File: dump.h
* Author: Scott Bennett
*/
#ifndef DUMP_H
#define DUMP_H
void dumpMemory();
void dumpProgramRegisters();
void dumpProcessorRegisters();
#endif /* DUMP_H */
| /**
* File: dump.h
* Author: Scott Bennett
*/
#ifndef DUMP_H
#define DUMP_H
void dumpMemory();
void dumpProgramRegisters();
void dumpProcessorRegisters();
#endif /* DUMP_H */
| ---
+++
@@ -1,12 +1,13 @@
-/**
+/*
* File: dump.h
* Author: Scott Bennett
*/
#ifndef DUMP_H
#define DUMP_H
+
void dumpMemory();
void dumpProgramRegisters();
void dumpProcessorRegisters();
+
#endif /* DUMP_H */
- | Change header to C style. | isc | sbennett1990/YESS,sbennett1990/YESS,sbennett1990/YESS | 9f0a75104da58dd1c8a88e825ff3a7815d8ca7f8 |
#ifndef PATH_INTEGRATOR_H
#define PATH_INTEGRATOR_H
#include "surface_integrator.h"
#include "renderer/renderer.h"
/*
* Surface integrator that uses Path tracing for computing illumination at a point on the surface
*/
class PathIntegrator : public SurfaceIntegrator {
const int min_depth, max_depth;
public:
/*
... | #ifndef PATH_INTEGRATOR_H
#define PATH_INTEGRATOR_H
#include "surface_integrator.h"
#include "renderer/renderer.h"
/*
* Surface integrator that uses Path tracing for computing illumination at a point on the surface
*/
class PathIntegrator : public SurfaceIntegrator {
const int min_depth, max_depth;
public:
/*
... | ---
+++
@@ -22,21 +22,6 @@
*/
Colorf illumination(const Scene &scene, const Renderer &renderer, const RayDifferential &ray,
DifferentialGeometry &dg, Sampler &sampler, MemoryPool &pool) const override;
-
-private:
- /*
- * Trace a camera path starting from the first hit at dg returning the throughput of the
... | Remove the unused bidir functions from path tracer
| mit | Twinklebear/tray,Twinklebear/tray | 125eec8781231cf21041b742dccd906ef1c55738 |
#pragma once
#include <vector>
#include <boost/multiprecision/cpp_int.hpp>
namespace dev
{
namespace eth
{
namespace jit
{
using byte = uint8_t;
using bytes = std::vector<byte>;
using u256 = boost::multiprecision::uint256_t;
using bigint = boost::multiprecision::cpp_int;
struct NoteChannel {}; // FIXME: Use some lo... | #pragma once
#include <vector>
#include <boost/multiprecision/cpp_int.hpp>
namespace dev
{
namespace eth
{
namespace jit
{
using byte = uint8_t;
using bytes = std::vector<byte>;
using u256 = boost::multiprecision::uint256_t;
using bigint = boost::multiprecision::cpp_int;
struct NoteChannel {}; // FIXME: Use some lo... | ---
+++
@@ -37,10 +37,10 @@
// TODO: Replace with h256
struct i256
{
- uint64_t a;
- uint64_t b;
- uint64_t c;
- uint64_t d;
+ uint64_t a = 0;
+ uint64_t b = 0;
+ uint64_t c = 0;
+ uint64_t d = 0;
};
static_assert(sizeof(i256) == 32, "Wrong i265 size");
| Fix some GCC initialization warnings
| mit | ethereum/evmjit,ethereum/evmjit,ethereum/evmjit | d9ace0273fba4d7da6da20f36183c2b9bf1ad305 |
/*
* Copyright 2011-2013 Blender Foundation
*
* 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 ag... | /*
* Copyright 2011-2013 Blender Foundation
*
* 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 ag... | ---
+++
@@ -20,12 +20,16 @@
#define WITH_CYCLES_OPTIMIZED_KERNEL_SSE3
#define WITH_CYCLES_OPTIMIZED_KERNEL_SSE41
+/* VC2008 is not ready for sse41, probably broken blendv intrinsic... */
+#if defined(_MSC_VER) && (_MSC_VER < 1700)
+#undef WITH_CYCLES_OPTIMIZED_KERNEL_SSE41
+#endif
+
#endif
#if defined(i386) |... | Cycles: Disable SSE41 kernel on 32bit, we don't use intrinsics here anyway. Also disable it for Visual Studio < 2012, broken blendv instruction.
| apache-2.0 | pyrochlore/cycles,tangent-opensource/coreBlackbird,pyrochlore/cycles,tangent-opensource/coreBlackbird,pyrochlore/cycles,tangent-opensource/coreBlackbird | ef1774c5b7f39291692a42b4aeced11abf8e7ace |
/*
Copyright(C) 2014 Brazil
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed i... | /*
Copyright(C) 2014 Brazil
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed i... | ---
+++
@@ -18,9 +18,9 @@
#ifndef GROONGA_H
#define GROONGA_H
-#include <groonga/groonga.h>
-#include <groonga/ii.h>
-#include <groonga/expr.h>
-#include <groonga/util.h>
+#include "groonga/groonga.h"
+#include "groonga/ii.h"
+#include "groonga/expr.h"
+#include "groonga/util.h"
#endif /* GROONGA_H */ | Use "..." for ensure including header files in sub directory
| lgpl-2.1 | kenhys/groonga,naoa/groonga,hiroyuki-sato/groonga,groonga/groonga,hiroyuki-sato/groonga,hiroyuki-sato/groonga,hiroyuki-sato/groonga,kenhys/groonga,redfigure/groonga,naoa/groonga,redfigure/groonga,kenhys/groonga,komainu8/groonga,hiroyuki-sato/groonga,cosmo0920/groonga,cosmo0920/groonga,redfigure/groonga,naoa/groonga,nao... | 9f2e996500ef58f5ddadfab9ec7e882b9a201933 |
/*
* Copyright (C) 2014 Freie Universität Berlin
* Copyright (C) 2014 PHYTEC Messtechnik GmbH
* Copyright (C) 2017 Eistec AB
*
* This file is subject to the terms and conditions of the GNU Lesser General
* Public License v2.1. See the file LICENSE in the top level directory for more
* details.
*/
/**
* @ingro... | /*
* Copyright (C) 2014 Freie Universität Berlin
* Copyright (C) 2014 PHYTEC Messtechnik GmbH
* Copyright (C) 2017 Eistec AB
*
* This file is subject to the terms and conditions of the GNU Lesser General
* Public License v2.1. See the file LICENSE in the top level directory for more
* details.
*/
/**
* @ingro... | ---
+++
@@ -9,7 +9,7 @@
*/
/**
- * @ingroup boards_frdm-k64f
+ * @ingroup boards_frdm-k22f
* @{
*
* @file
@@ -20,9 +20,7 @@
* @}
*/
-#include <stdint.h>
#include "board.h"
-#include "mcg.h"
#include "periph/gpio.h"
void board_init(void)
@@ -32,9 +30,9 @@
/* initialize and turn off... | frdm-k22f: Fix typos and remove unused includes
| lgpl-2.1 | kbumsik/RIOT,mfrey/RIOT,A-Paul/RIOT,OTAkeys/RIOT,smlng/RIOT,rfuentess/RIOT,mtausig/RIOT,jasonatran/RIOT,jasonatran/RIOT,rfuentess/RIOT,miri64/RIOT,authmillenon/RIOT,neiljay/RIOT,smlng/RIOT,kaspar030/RIOT,RIOT-OS/RIOT,gebart/RIOT,yogo1212/RIOT,kaspar030/RIOT,authmillenon/RIOT,BytesGalore/RIOT,kYc0o/RIOT,x3ro/RIOT,authmi... | b87325fe34c477f7786e791805bf692dbe79676b |
/* ---------------------------------------------------------------- */
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#if PY_VERSION_HEX < 0x02050000
typedef int Py_ssize_t;
#endif
/* ---------------------------------------------------------------- */
#define MPICH_SKIP_MPICXX 1
#define OMPI_SKIP_MPICXX 1
#include <p... | /* ---------------------------------------------------------------- */
#include <Python.h>
/* ---------------------------------------------------------------- */
#define MPICH_SKIP_MPICXX 1
#define OMPI_SKIP_MPICXX 1
#include <petsc.h>
/* ---------------------------------------------------------------- */
#includ... | ---
+++
@@ -1,6 +1,10 @@
/* ---------------------------------------------------------------- */
+#define PY_SSIZE_T_CLEAN
#include <Python.h>
+#if PY_VERSION_HEX < 0x02050000
+typedef int Py_ssize_t;
+#endif
/* ---------------------------------------------------------------- */
| Fix build failure with Python<=2.4 and PETSc<=3.1
| bsd-2-clause | zonca/petsc4py,zonca/petsc4py,zonca/petsc4py,zonca/petsc4py | 38310122f3a4d99326320da14638ff9088a33b56 |
/**
* \file string_hash.c
* \brief Computes a hash value for a string.
* \author Copyright (c) 2012-2014 Jason Perkins and the Premake project
*/
#include "premake.h"
#include <string.h>
int string_hash(lua_State* L)
{
const char* str = luaL_checkstring(L, 1);
unsigned long seed = luaL_optint(L, 2, 0);
lua... | /**
* \file string_hash.c
* \brief Computes a hash value for a string.
* \author Copyright (c) 2012-2014 Jason Perkins and the Premake project
*/
#include "premake.h"
#include <string.h>
int string_hash(lua_State* L)
{
const char* str = luaL_checkstring(L, 1);
unsigned long seed = luaL_optint(L, 2, 0);
lua... | ---
+++
@@ -12,7 +12,7 @@
{
const char* str = luaL_checkstring(L, 1);
unsigned long seed = luaL_optint(L, 2, 0);
- lua_pushnumber(L, do_hash(str, seed));
+ lua_pushnumber(L, (lua_Number)do_hash(str, seed));
return 1;
}
| Fix implicit conversion warning when building with floating point Lua
| bsd-3-clause | bravnsgaard/premake-core,noresources/premake-core,starkos/premake-core,noresources/premake-core,premake/premake-core,tvandijck/premake-core,Yhgenomics/premake-core,felipeprov/premake-core,jstewart-amd/premake-core,Meoo/premake-core,TurkeyMan/premake-core,martin-traverse/premake-core,jstewart-amd/premake-core,jstewart-a... | ef460ae7e5836154d5e8e811af87491126de5487 |
#ifndef QCDEVICE_H
#define QCDEVICE_H
/* QuickCross Project
* License: APACHE-2.0
* Author: Ben Lau
* Project Site: https://github.com/benlau/quickcross
*
*/
#include <QObject>
class QCDevice : public QObject
{
Q_OBJECT
Q_PROPERTY(QString os READ os)
Q_PROPERTY(bool isAndroid READ isAndroid NOTIFY n... | #ifndef QCDEVICE_H
#define QCDEVICE_H
/* QuickCross Project
* License: APACHE-2.0
* Author: Ben Lau
* Project Site: https://github.com/benlau/quickcross
*
*/
#include <QObject>
class QCDevice : public QObject
{
Q_OBJECT
Q_PROPERTY(QString os READ os)
Q_PROPERTY(bool isAndroid READ isAndroid)
Q_P... | ---
+++
@@ -14,12 +14,12 @@
{
Q_OBJECT
Q_PROPERTY(QString os READ os)
- Q_PROPERTY(bool isAndroid READ isAndroid)
- Q_PROPERTY(bool isLinux READ isLinux)
- Q_PROPERTY(bool isMac READ isMac)
- Q_PROPERTY(bool isIOS READ isIOS)
- Q_PROPERTY(bool isWindows READ isWindows)
- Q_PROPERTY(qreal ... | QCDevice: Add a never emit signal on properties.
| apache-2.0 | benlau/quickcross,benlau/quickcross,benlau/quickcross | f381f9302f7b97246101165938b101c3d7050e56 |
//
// PMPinboardService.h
// Pinmarker
//
// Created by Kyle Stevens on 9/24/14.
// Copyright (c) 2014 kilovolt42. All rights reserved.
//
@interface PMPinboardService : NSObject
+ (void)requestAPITokenForAPIToken:(NSString *)token success:(void (^)(NSString *))success failure:(void (^)(NSError *))failure;
+ (voi... | //
// PMPinboardService.h
// Pinmarker
//
// Created by Kyle Stevens on 9/24/14.
// Copyright (c) 2014 kilovolt42. All rights reserved.
//
@class PMBookmark;
@interface PMPinboardService : NSObject
+ (void)requestAPITokenForAPIToken:(NSString *)token success:(void (^)(NSString *))success failure:(void (^)(NSErro... | ---
+++
@@ -5,8 +5,6 @@
// Created by Kyle Stevens on 9/24/14.
// Copyright (c) 2014 kilovolt42. All rights reserved.
//
-
-@class PMBookmark;
@interface PMPinboardService : NSObject
| Remove unnecessary forward class declaration
| mit | kilovolt42/Pinmarker,kilovolt42/Pinmarker,kilovolt42/Pinmarker | 9e7a287e2d334dbfecd3b8ed1c07b2c84ad9a085 |
#pragma once
#include "Tab.h"
class Display : public Tab {
public:
virtual void SaveSettings();
private:
virtual DLGPROC Command(unsigned short nCode, unsigned short ctrlId);
virtual DLGPROC Notification(NMHDR *nHdr);
virtual void Initialize();
virtual void LoadSettings();
void OnPositionCh... | #pragma once
#include "Tab.h"
class Display : public Tab {
public:
virtual void SaveSettings();
private:
virtual DLGPROC Command(unsigned short nCode, unsigned short ctrlId);
virtual DLGPROC Notification(NMHDR *nHdr);
virtual void Initialize();
virtual void LoadSettings();
void OnPositionCh... | ---
+++
@@ -38,6 +38,12 @@
Label _hideSpeedLabel;
Spinner _hideSpeed;
+private:
+ /* Strings: */
+ std::wstring primaryMonitorStr = L"Primary Monitor";
+ std::wstring allMonitorStr = L"All Monitors";
+ std::wstring customPositionStr = L"Custom";
+ std::wstring noAnimStr = L"None";
privat... | Add strings (will be used for translation)
| bsd-2-clause | Soulflare3/3RVX,malensek/3RVX,malensek/3RVX,malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX | 169dc7b8de2f347edb54ce9007cfbf1c551be33a |
/*
* Copyright (c) 2013 Jeremy Yallop.
*
* This file is distributed under the terms of the MIT License.
* See the file LICENSE for details.
*/
#ifndef TYPE_INFO_STUBS_H
#define TYPE_INFO_STUBS_H
#include <caml/mlvalues.h>
/* Read a C value from a block of memory */
/* read : 'a prim -> offset:int -> raw_pointer... | /*
* Copyright (c) 2013 Jeremy Yallop.
*
* This file is distributed under the terms of the MIT License.
* See the file LICENSE for details.
*/
#ifndef TYPE_INFO_STUBS_H
#define TYPE_INFO_STUBS_H
#include <caml/mlvalues.h>
#include <caml/fail.h>
#include <caml/callback.h>
/* allocate_unpassable_struct_type_info ... | ---
+++
@@ -9,11 +9,6 @@
#define TYPE_INFO_STUBS_H
#include <caml/mlvalues.h>
-#include <caml/fail.h>
-#include <caml/callback.h>
-
-/* allocate_unpassable_struct_type_info : (size, alignment) -> _ ctype */
-value ctypes_allocate_unpassable_struct_type_info(int size, int alignment);
/* Read a C value from a bl... | Remove another obsolete function declaration.
| mit | yallop/ocaml-ctypes,fdopen/ocaml-ctypes,dsheets/ocaml-ctypes,sjfloat/ocaml-ctypes,yallop/ocaml-ctypes,whitequark/ocaml-ctypes,whitequark/ocaml-ctypes,sjfloat/ocaml-ctypes,sjfloat/ocaml-ctypes,dsheets/ocaml-ctypes,fdopen/ocaml-ctypes,fdopen/ocaml-ctypes,whitequark/ocaml-ctypes,dsheets/ocaml-ctypes,ocamllabs/ocaml-ctypes... | 79ad033eb47e12d5ea50015d10855c6ff3bc535b |
#include "log.h"
#include <stdio.h>
#include <stdarg.h>
void debug(const char* format, ...) {
#ifdef __DEBUG__
va_list args;
va_start(args, format);
vprintf(format, args);
va_end(args);
#endif // __DEBUG__
}
void initializeLogging() { }
| #include "log.h"
#include <stdio.h>
void debug(const char* format, ...) {
#ifdef __DEBUG__
vprintf(format, args);
#endif // __DEBUG__
}
void initializeLogging() { }
| ---
+++
@@ -1,9 +1,13 @@
#include "log.h"
#include <stdio.h>
+#include <stdarg.h>
void debug(const char* format, ...) {
#ifdef __DEBUG__
+ va_list args;
+ va_start(args, format);
vprintf(format, args);
+ va_end(args);
#endif // __DEBUG__
}
| Fix debugging printouts when running tests.
| bsd-3-clause | openxc/vi-firmware,ene-ilies/vi-firmware,mgiannikouris/vi-firmware,mgiannikouris/vi-firmware,mgiannikouris/vi-firmware,mgiannikouris/vi-firmware,ene-ilies/vi-firmware,openxc/vi-firmware,openxc/vi-firmware,ene-ilies/vi-firmware,ene-ilies/vi-firmware,openxc/vi-firmware | b0cc4feff6ca7ac2015a44dd36506de77023b798 |
#include "src/math/reinterpret.h"
#include <math.h>
#include <stdint.h>
#include <assert.h>
int main(void)
{
const __int128 delta = (__int128)0x17E93193 << 64 | 0xC0605887B0E6B634;
for (__int128 i = reinterpret(__int128, 0.9L); i < reinterpret(__int128, 0x1p64L); i += delta) {
long double x = reinterp... | #include "src/math/reinterpret.h"
#include <math.h>
#include <stdint.h>
#include <assert.h>
static _Bool run(uint64_t a)
{
return a == truncl(a);
}
int main(void)
{
const uint64_t delta = 0x0008D46BA87B5A22;
for (uint64_t i = 0x3FFFFFFFFFFFFFFF; i < 0x4340000000000000; i += delta)
assert(run(rein... | ---
+++
@@ -3,18 +3,12 @@
#include <stdint.h>
#include <assert.h>
-static _Bool run(uint64_t a)
-{
- return a == truncl(a);
-}
-
int main(void)
{
- const uint64_t delta = 0x0008D46BA87B5A22;
+ const __int128 delta = (__int128)0x17E93193 << 64 | 0xC0605887B0E6B634;
- for (uint64_t i = 0x3FFFFFFFFFF... | Test truncation of long double -> uint64_t
| mit | jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic | 27390e0138f13a06c5d52054510e7a979e900f97 |
/*
* Copyright 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.
*/
#include <stdlib.h>
#include <stdio.h>
#include "native_client/src/include/portability.h"
#include "native_client/src/shared/platform/nacl_ex... | /*
* Copyright 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.
*/
#include <stdlib.h>
#include "native_client/src/include/portability.h"
#include "native_client/src/shared/platform/nacl_exit.h"
#include "nat... | ---
+++
@@ -5,6 +5,7 @@
*/
#include <stdlib.h>
+#include <stdio.h>
#include "native_client/src/include/portability.h"
#include "native_client/src/shared/platform/nacl_exit.h"
@@ -12,13 +13,7 @@
void NaClAbort(void) {
-#ifdef COVERAGE
- /* Give coverage runs a chance to flush coverage data */
- exit((-... | Fix exit issue on Vista/Win7Atom
TerminateProcess returns causing "exit" to fall through. This is causing the buildbots
to go red. To fix this, We must add a check to verify termination was scheduled, then
loop. As a seperate CL we should find a way to do this without allowing a return
on an untrusted stack.
BUG=... | bsd-3-clause | nacl-webkit/native_client,nacl-webkit/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,nacl-webkit/native_client | c43332e636fb372919959d58e25554dcb52148ba |
/* Copyright (c) 2004 Timo Sirainen */
#include "lib.h"
#include "str.h"
#include "str-sanitize.h"
void str_sanitize_append(string_t *dest, const char *src, size_t max_len)
{
const char *p;
for (p = src; *p != '\0'; p++) {
if (((unsigned char)*p & 0x7f) < 32)
break;
}
str_append_n(dest, src, (size_t)(p - s... | /* Copyright (c) 2004 Timo Sirainen */
#include "lib.h"
#include "str.h"
#include "str-sanitize.h"
void str_sanitize_append(string_t *dest, const char *src, size_t max_len)
{
const char *p;
for (p = src; *p != '\0'; p++) {
if ((unsigned char)*p < 32)
break;
}
str_append_n(dest, src, (size_t)(p - src));
fo... | ---
+++
@@ -9,13 +9,13 @@
const char *p;
for (p = src; *p != '\0'; p++) {
- if ((unsigned char)*p < 32)
+ if (((unsigned char)*p & 0x7f) < 32)
break;
}
str_append_n(dest, src, (size_t)(p - src));
for (; *p != '\0' && max_len > 0; p++, max_len--) {
- if ((unsigned char)*p < 32)
+ if (((unsigned c... | Convert also 0x80..0x9f characters to '?'
--HG--
branch : HEAD
| mit | jwm/dovecot-notmuch,jkerihuel/dovecot,jkerihuel/dovecot,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jkerihuel/dovecot,jkerihuel/dovecot,jwm/dovecot-notmuch,jkerihuel/dovecot,jwm/dovecot-notmuch | 37a5cee2b4362014d6c0f81c82b2f75d7a5204f6 |
/*
* Copyright © 2009 CNRS, INRIA, Université Bordeaux 1
* Copyright © 2009 Cisco Systems, Inc. All rights reserved.
* See COPYING in top-level directory.
*/
#include <hwloc.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
mytest_hwloc_topology_t topology;
unsigned depth;
hwloc_cpuset_t cpu_s... | /*
* Copyright © 2009 CNRS, INRIA, Université Bordeaux 1
* Copyright © 2009 Cisco Systems, Inc. All rights reserved.
* See COPYING in top-level directory.
*/
#include <hwloc.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
mytest_hwloc_topology_t topology;
unsigned depth;
hwloc_cpuset_t cpu_s... | ---
+++
@@ -15,12 +15,18 @@
/* Just call a bunch of functions to see if we can link and run */
+ printf("*** Test 1: cpuset alloc\n");
cpu_set = mytest_hwloc_cpuset_alloc();
+ printf("*** Test 2: topology init\n");
mytest_hwloc_topology_init(&topology);
+ printf("*** Test 3: topology load\... | Add some more print statements to this test, ju...
Add some more print statements to this test, just to help
differentiate the output when debugging is enabled
This commit was SVN r1752.
| bsd-3-clause | ggouaillardet/hwloc,shekkbuilder/hwloc,shekkbuilder/hwloc,ggouaillardet/hwloc,ggouaillardet/hwloc,shekkbuilder/hwloc,ggouaillardet/hwloc,shekkbuilder/hwloc | fadc5f679f9aae27b623c95f91208b2f139e089e |
/*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2008 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
/*
* Driver version
*/
#define QLA2XXX_VERSION "8.03.01-k9"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 3
#define QLA_DRIVER_PATCH_VER 1
#define... | /*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2008 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
/*
* Driver version
*/
#define QLA2XXX_VERSION "8.03.01-k8"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 3
#define QLA_DRIVER_PATCH_VER 1
#define... | ---
+++
@@ -7,7 +7,7 @@
/*
* Driver version
*/
-#define QLA2XXX_VERSION "8.03.01-k8"
+#define QLA2XXX_VERSION "8.03.01-k9"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 3 | [SCSI] qla2xxx: Update version number to 8.03.01-k9.
Signed-off-by: Giridhar Malavali <799b6491fce2c7a80b5fedcf9a728560cc9eb954@qlogic.com>
Signed-off-by: James Bottomley <407b36959ca09543ccda8f8e06721c791bc53435@suse.de>
| mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_k... | 3b9c212a5cbb1e13ced92639ce83f7a48b8b2331 |
#ifndef _MATH_MT_H_
#define _MATH_MT_H_
#if defined(_MSC_VER) && (_MSC_VER <= 1300)
typedef unsigned __int32 uint32_t;
#elif defined(__linux__) || defined(__GLIBC__) || defined(__WIN32__) || defined(__APPLE__)
#include <stdint.h>
#elif defined(__osf__)
#include <inttypes.h>
#else
#include <sys/types.h>
#endif
enum { ... | #ifndef _MATH_MT_H_
#define _MATH_MT_H_
#if defined(_MSC_VER) && (_MSC_VER <= 1300)
typedef unsigned __int32 uint32_t;
#elif defined(__linux__) || defined(__GLIBC__) || defined(__WIN32__)
#include <stdint.h>
#elif defined(__osf__)
#include <inttypes.h>
#else
#include <sys/types.h>
#endif
enum { N = 624, M = 397 };
s... | ---
+++
@@ -3,7 +3,7 @@
#if defined(_MSC_VER) && (_MSC_VER <= 1300)
typedef unsigned __int32 uint32_t;
-#elif defined(__linux__) || defined(__GLIBC__) || defined(__WIN32__)
+#elif defined(__linux__) || defined(__GLIBC__) || defined(__WIN32__) || defined(__APPLE__)
#include <stdint.h>
#elif defined(__osf__)
#in... | Fix OS X build failure
| bsd-3-clause | amenonsen/Math-Random-MT,amenonsen/Math-Random-MT | 78a7a88da94ee3e6972485ceca00be8519212025 |
#include <stdlib.h>
#include <stdio.h>
struct llnode;
struct symbol;
struct function;
union value;
struct variable;
struct statement;
struct call;
struct llnode {
struct variable* car;
struct llnode* cdr;
};
struct call {
char* name;
struct function func;
struct symbol* arguments;
int numargs;
}
stru... | #include <stdlib.h>
#include <stdio.h>
struct llnode;
struct symbol;
struct function;
union value;
struct variable;
struct statement;
struct call;
struct llnode {
struct type* car;
struct llnode* cdr;
};
struct call {
char* name;
struct function func;
struct symbol* arguments;
int numargs;
}
struct s... | ---
+++
@@ -12,7 +12,7 @@
struct llnode {
- struct type* car;
+ struct variable* car;
struct llnode* cdr;
};
@@ -31,6 +31,7 @@
struct function {
struct symbol* args; //these are the symbols that the function takes as arguments
char* definition; // this is the function's actual definition, left in... | Add a numargs field to struct function, which refers to the number of arguments the function takes.
| mit | aacoppa/final,aacoppa/final | cf1943751de987986a59a5a458070a7bf4548fee |
//===- PPCTargetStreamer.h - PPC Target Streamer ----------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- PPCTargetStreamer.h - PPC Target Streamer --s-----------*- C++ -*--===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | ---
+++
@@ -1,4 +1,4 @@
-//===-- PPCTargetStreamer.h - PPC Target Streamer --s-----------*- C++ -*--===//
+//===- PPCTargetStreamer.h - PPC Target Streamer ----------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
@@ -10,18 +10,26 @@
#ifndef LLVM_LIB_TARGET_POWERPC_PPCTARGETSTR... | [PowerPC] Fix some Include What You Use warnings; other minor fixes (NFC).
This is preparation to reduce MC headers dependencies.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@294368 91177308-0d34-0410-b5e6-96231b3b80d8
| apache-2.0 | apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,app... | e22b221f8f12b2ec8348745d91836c236b206738 |
// Copyright 2012-2014 UX Productivity Pty Ltd
//
// 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 ... | // Copyright 2012-2014 UX Productivity Pty Ltd
//
// 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 ... | ---
+++
@@ -23,6 +23,10 @@
#define ATTRIBUTE_FORMAT(archetype,index,first) __attribute__((format(archetype,index,first)))
#endif
+#ifdef WIN32
+#define _CRT_SECURE_NO_WARNINGS
+#endif
+
#include <sys/types.h>
#include <stdint.h>
#include <stdarg.h> | Win32: Disable warnings about insecure functions
Set the _CRT_SECURE_NO_WARNINGS macro so that VC++ doesn't complain
about commonly-used functions like open and vsnprintf that it considers
"unsafe". The alternatives it suggests are not available on Unix-based
platforms, and they're used extensively throughout the code... | apache-2.0 | apache/incubator-corinthia,corinthia/corinthia-docformats,apache/incubator-corinthia,apache/incubator-corinthia,apache/incubator-corinthia,apache/incubator-corinthia,corinthia/corinthia-docformats,apache/incubator-corinthia,corinthia/corinthia-docformats,corinthia/corinthia-docformats,corinthia/corinthia-docformats,apa... | af533b7e864c9a3790abe2095110924cc374af3c |
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the l... | // This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the l... | ---
+++
@@ -14,7 +14,7 @@
#define CONCAT_EXPANDED(a,b) CONCAT(a,b)
#define _C_LABEL(name) CONCAT_EXPANDED(__USER_LABEL_PREFIX__,name)
-#if defined(__GNU__) || defined(__ANDROID__) || defined(__FreeBSD__)
+#if defined(__GNU__) || defined(__GNUC__) || defined(__ANDROID__) || defined(__FreeBSD__)
#define NO_EXEC_ST... | Fix libFoundation.so being flagged as requiring executable stack
libFoundation.so is flagged as requiring an executable stack on Linux, although it does not. This is due to GNU as behavior.
Please see discussion at https://bugs.swift.org/browse/SR-2700?jql=text%20~%20%22executable%20stack%22
This was already intended... | apache-2.0 | ikesyo/swift-corelibs-foundation,JGiola/swift-corelibs-foundation,amraboelela/swift-corelibs-foundation,ikesyo/swift-corelibs-foundation,johnno1962b/swift-corelibs-foundation,parkera/swift-corelibs-foundation,alblue/swift-corelibs-foundation,amraboelela/swift-corelibs-foundation,apple/swift-corelibs-foundation,johnno19... | dcc7db1fa3167c6dca1fef18dd38b820952faa49 |
#ifndef OPTHELPERS_H
#define OPTHELPERS_H
#ifdef __has_builtin
#define HAS_BUILTIN __has_builtin
#else
#define HAS_BUILTIN(x) (0)
#endif
#ifdef __GNUC__
/* LIKELY optimizes the case where the condition is true. The condition is not
* required to be true, but it can result in more optimal code for the true
* path at... | #ifndef OPTHELPERS_H
#define OPTHELPERS_H
#ifdef __has_builtin
#define HAS_BUILTIN __has_builtin
#else
#define HAS_BUILTIN(x) (0)
#endif
#ifdef __GNUC__
/* LIKELY optimizes the case where the condition is true. The condition is not
* required to be true, but it can result in more optimal code for the true
* path at... | ---
+++
@@ -12,9 +12,9 @@
* required to be true, but it can result in more optimal code for the true
* path at the expense of a less optimal false path.
*/
-#define LIKELY(x) __builtin_expect(!!(x), !0)
+#define LIKELY(x) __builtin_expect(!!(x), !false)
/* The opposite of LIKELY, optimizing the case where the ... | Use false instead of 0 for a boolean
| lgpl-2.1 | aaronmjacobs/openal-soft,aaronmjacobs/openal-soft | c8e8ac42abb9225c3abfac036340548cfaaa0e92 |
/* mbed Microcontroller Library - cmsis_nvic for STM32F4
* Copyright (c) 2009-2011 ARM Limited. All rights reserved.
*
* CMSIS-style functionality to support dynamic vectors
*/
#include "cmsis_nvic.h"
#define NVIC_RAM_VECTOR_ADDRESS (0x20000000) // Location of vectors in RAM
static unsigned char vtor_relocate... | /* mbed Microcontroller Library - cmsis_nvic for STM32F4
* Copyright (c) 2009-2011 ARM Limited. All rights reserved.
*
* CMSIS-style functionality to support dynamic vectors
*/
#include "cmsis_nvic.h"
#define NVIC_RAM_VECTOR_ADDRESS (0x20000000) // Location of vectors in RAM
#define NVIC_FLASH_VECTOR_ADDRESS (... | ---
+++
@@ -6,20 +6,22 @@
#include "cmsis_nvic.h"
#define NVIC_RAM_VECTOR_ADDRESS (0x20000000) // Location of vectors in RAM
-#define NVIC_FLASH_VECTOR_ADDRESS (0x0) // Initial vector position in flash
+
+static unsigned char vtor_relocated;
void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) {
... | Fix relocation of vector on STM32.
| apache-2.0 | Psykar/kubos,Psykar/kubos,Psykar/kubos,kubostech/KubOS,Psykar/kubos,Psykar/kubos,Psykar/kubos,Psykar/kubos,kubostech/KubOS | 1f9749452f0d1c50eb920c5df7b026542d07eab8 |
extern void __VERIFIER_error() __attribute__ ((__noreturn__));
extern int __VERIFIER_nondet_int();
int main()
{
int x, y;
if (__VERIFIER_nondet_int())
{
x = 0;
y = 1;
}
else
{
x = 1;
y = 0;
}
// if (!(x + y == 1))
if (x + y != 1)
__VERIFIER_e... | extern void __VERIFIER_error() __attribute__ ((__noreturn__));
extern int __VERIFIER_nondet_int();
void __VERIFIER_assert(int cond) {
if (!(cond)) {
ERROR: __VERIFIER_error();
}
return;
}
int main()
{
int x, y;
if (__VERIFIER_nondet_int())
{
x = 0;
y = 1;
}
else
... | ---
+++
@@ -1,11 +1,5 @@
extern void __VERIFIER_error() __attribute__ ((__noreturn__));
extern int __VERIFIER_nondet_int();
-void __VERIFIER_assert(int cond) {
- if (!(cond)) {
- ERROR: __VERIFIER_error();
- }
- return;
-}
int main()
{ | Remove unused __VERIFIER_assert definition from nofun test
| mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | f9167849b8c24cd4689aedd6c9a1c43719091d8f |
#include <stdio.h>
#include <stdlib.h>
#include "arch.h"
#include "../../cc2.h"
#include "../../../inc/sizes.h"
/*
* : is for user-defined Aggregate Types
* $ is for globals (represented by a pointer)
* % is for function-scope temporaries
* @ is for block labels
*/
static char
sigil(Symbol *sym)
{
switch (sym-... |
#include <stdio.h>
#include <stdlib.h>
#include "arch.h"
#include "../../cc2.h"
#include "../../../inc/sizes.h"
void
defsym(Symbol *sym, int alloc)
{
}
void
data(Node *np)
{
}
void
writeout(void)
{
}
| ---
+++
@@ -6,10 +6,71 @@
#include "../../cc2.h"
#include "../../../inc/sizes.h"
+/*
+ * : is for user-defined Aggregate Types
+ * $ is for globals (represented by a pointer)
+ * % is for function-scope temporaries
+ * @ is for block labels
+ */
+static char
+sigil(Symbol *sym)
+{
+ switch (sym->kind) {
+ case EX... | [cc2] Add basic implementation of defsym()
This is a first implementation which a limited implementation of
sigil() and of size2asm() that, for instance, does not support
strings.
| isc | k0gaMSX/scc,k0gaMSX/scc,k0gaMSX/scc | 70a260148ff33185ce8e70b3dbd46a15c0ff5aaf |
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2015 Ben Vanik. All rights reserved. ... | /**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2015 Ben Vanik. All rights reserved. ... | ---
+++
@@ -16,11 +16,12 @@
#include "xenia/base/platform.h"
-// Xlib is used only for GLX interaction, the window management and input
-// events are done with gtk/gdk
+// Xlib/Xcb is used only for GLX/Vulkan interaction, the window management
+// and input events are done with gtk/gdk
#include <X11/Xlib.h>
#... | Add xcb headers to linux platform, needed for vulkan
| bsd-3-clause | sephiroth99/xenia,sephiroth99/xenia,sephiroth99/xenia | a8053f72e54e41011cad782cb37801dc26af6251 |
/*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2005 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
/*
* Driver version
*/
#define QLA2XXX_VERSION "8.01.05-k3"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 1
#define QLA_DRIVER_PATCH_VER 5
#define... | /*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2005 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
/*
* Driver version
*/
#define QLA2XXX_VERSION "8.01.05-k2"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 1
#define QLA_DRIVER_PATCH_VER 5
#define... | ---
+++
@@ -7,7 +7,7 @@
/*
* Driver version
*/
-#define QLA2XXX_VERSION "8.01.05-k2"
+#define QLA2XXX_VERSION "8.01.05-k3"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 1 | [SCSI] qla2xxx: Update version number to 8.01.05-k3.
Signed-off-by: Andrew Vasquez <67840a4977006af7f584bdc4c86d7243c1629cad@qlogic.com>
Signed-off-by: James Bottomley <407b36959ca09543ccda8f8e06721c791bc53435@SteelEye.com>
| apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Program... | 76c1534e0bd78e9a7662edcf5c994bac63d939fd |
#pragma once
#include <pthread.h>
#include <stdint.h>
namespace neosmart
{
//Type declarations
struct neosmart_event_t_;
typedef neosmart_event_t_ * neosmart_event_t;
//WIN32-style pevent functions
neosmart_event_t CreateEvent(bool manualReset = false, bool initialState = false);
int DestroyEvent(neosma... | #pragma once
#include <pthread.h>
#include <stdint.h>
namespace neosmart
{
struct neosmart_event_t_;
typedef neosmart_event_t_ * neosmart_event_t;
neosmart_event_t CreateEvent(bool manualReset = false, bool initialState = false);
int DestroyEvent(neosmart_event_t event);
int WaitForEvent(neosmart_event_t event... | ---
+++
@@ -5,12 +5,17 @@
namespace neosmart
{
+ //Type declarations
struct neosmart_event_t_;
typedef neosmart_event_t_ * neosmart_event_t;
+ //WIN32-style pevent functions
neosmart_event_t CreateEvent(bool manualReset = false, bool initialState = false);
int DestroyEvent(neosmart_event_t event)... | TBD: Add posix-styled functions for using neosmart_event_t objects
| mit | neosmart/pevents,neosmart/pevents | e4edb986c6acfb48e0d95b845bcdca75595f5308 |
/**
* \file inet_ntop
* inet_ntop emulation based on inet_ntoa.
* \author Matthias Andree
*
*/
#include "config.h"
#if !HAVE_INET_NTOP
#include "leafnode.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
#include <string.h>
const char *
inet_ntop... | /**
* \file inet_ntop
* inet_ntop emulation based on inet_ntoa.
* \author Matthias Andree
*
*/
#include "config.h"
#ifndef HAVE_INET_NTOP
#include "leafnode.h"
#include "mastring.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
#ifdef WITH_DMALLO... | ---
+++
@@ -5,18 +5,13 @@
*
*/
#include "config.h"
-#ifndef HAVE_INET_NTOP
+#if !HAVE_INET_NTOP
#include "leafnode.h"
-#include "mastring.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
-
-#ifdef WITH_DMALLOC
-#include <dmalloc.h>
-#endif... | Drop dmalloc.h, not needed.
Drop dmalloc.h, not needed.
Use strncpy for portability, we do not want this function to rely on
mastring.
| lgpl-2.1 | BackupTheBerlios/leafnode,BackupTheBerlios/leafnode,BackupTheBerlios/leafnode,BackupTheBerlios/leafnode | b502a1ea2f1c9735c7af7d67e275532437eb539f |
#ifndef BS_CONFIG_PARSER_H
#define BS_CONFIG_PARSER_H
#include "bs_common.h"
#include <map>
#include <string>
#include <vector>
namespace blue_sky {
struct wcfg;
class BS_API bs_cfg_p {
public:
friend struct wcfg;
typedef std::vector<std::string> vstr_t;
typedef std::map<std::string,vstr_t> map_t;
... | #ifndef BS_CONFIG_PARSER_H
#define BS_CONFIG_PARSER_H
#include "bs_common.h"
#include <map>
#include <string>
#include <vector>
namespace blue_sky {
struct wcfg;
class BS_API bs_cfg_p {
public:
friend struct wcfg;
typedef std::vector<std::string> vstr_t;
typedef std::map<std::string,vstr_t> map_t;
... | ---
+++
@@ -24,6 +24,11 @@
const map_t &env() const;
vstr_t getenv(const char *e);
+ vstr_t operator[] (const char *e)
+ {
+ return getenv (e);
+ }
+
private:
bs_cfg_p ();
@@ -32,6 +37,14 @@
typedef singleton< bs_cfg_p > cfg;
+ struct bs_config
+ {
+ bs_cfg_p::vstr_t
+ oper... | Add bs_config for hide bs_cfg_p::Instance () usage
And add operator[] to getenv
| mpl-2.0 | uentity/bluesky,uentity/bluesky,uentity/bluesky,uentity/bluesky,uentity/bluesky | 1a387a296e9988792baa730fd2b0972d98158a68 |
#include <gtk/gtk.h>
static void
test_type (GType t)
{
GtkWidget *w;
AtkObject *a;
if (g_type_is_a (t, GTK_TYPE_WIDGET))
{
w = (GtkWidget *)g_object_new (t, NULL);
a = gtk_widget_get_accessible (w);
g_assert (GTK_IS_ACCESSIBLE (a));
g_assert (gtk_accessible_get_widget (GTK_ACCESSIBL... | #include <gtk/gtk.h>
static void
test_type (GType t)
{
GtkWidget *w;
AtkObject *a;
if (g_type_is_a (t, GTK_TYPE_WIDGET))
{
w = (GtkWidget *)g_object_new (t, NULL);
a = gtk_widget_get_accessible (w);
g_assert (GTK_IS_ACCESSIBLE (a));
g_assert (gtk_accessible_get_widget (GTK_ACCESSIBL... | ---
+++
@@ -21,17 +21,14 @@
int
main (int argc, char *argv[])
{
- GType *tp;
- gint i;
+ const GType *tp;
+ guint i, n;
gtk_init (&argc, &argv);
- tp = g_new0 (GType, 1000);
-#undef GDK_WINDOWING_X11
-#include "../gtktypefuncs.c"
- *tp = 0;
+ tp = gtk_test_list_all_types (&n);
- for (i = 0; tp[i];... | tests: Use testing API instead of duplicating it
| lgpl-2.1 | ebassi/gtk,ebassi/gtk,jigpu/gtk,chergert/gtk,ahodesuka/gtk,msteinert/gtk,Lyude/gtk-,bratsche/gtk-,Adamovskiy/gtk,davidgumberg/gtk,davidgumberg/gtk,alexlarsson/gtk,ahodesuka/gtk,msteinert/gtk,bratsche/gtk-,chergert/gtk,Sidnioulz/SandboxGtk,ahodesuka/gtk,jadahl/gtk,Lyude/gtk-,bratsche/gtk-,chergert/gtk,Sidnioulz/SandboxG... | 06a8fac3e909e7df4bd888cbb76964479ae80abc |
/*
* This file is part of the FreeStreamer project,
* (C)Copyright 2011-2015 Matias Muhonen <mmu@iki.fi>
* See the file ''LICENSE'' for using the code.
*
* https://github.com/muhku/FreeStreamer
*/
#import <UIKit/UIKit.h>
#include "FSFrequencyDomainAnalyzer.h"
#define kFSFrequencyPlotViewMaxCount 64
@interface... | /*
* This file is part of the FreeStreamer project,
* (C)Copyright 2011-2015 Matias Muhonen <mmu@iki.fi>
* See the file ''LICENSE'' for using the code.
*
* https://github.com/muhku/FreeStreamer
*/
#include "FSFrequencyDomainAnalyzer.h"
#define kFSFrequencyPlotViewMaxCount 64
@interface FSFrequencyPlotView : UI... | ---
+++
@@ -5,6 +5,8 @@
*
* https://github.com/muhku/FreeStreamer
*/
+
+#import <UIKit/UIKit.h>
#include "FSFrequencyDomainAnalyzer.h"
| Add a missing UIKit import.
| bsd-3-clause | mjasa/FreeStreamer,christophercotton/FreeStreamer,alecgorge/FreeStreamer,alecgorge/FreeStreamer,mjasa/FreeStreamer,christophercotton/FreeStreamer,ren6/FreeStreamer,zdw19840929/FreeStreamer,christophercotton/FreeStreamer,zdw19840929/FreeStreamer,zdw19840929/FreeStreamer,ren6/FreeStreamer,mjasa/FreeStreamer,nKey/FreeStre... | bb7aa6ace39ad6ce1e71f9f177441a6744814855 |
#include "kremlib.h"
#include "kremstr.h"
/******************************************************************************/
/* Implementation of FStar.String and FStar.HyperIO */
/******************************************************************************/
/* FStar.h is generally kept for ... | #include "kremlib.h"
#include "kremstr.h"
/******************************************************************************/
/* Implementation of FStar.String and FStar.HyperIO */
/******************************************************************************/
/* FStar.h is generally kept for ... | ---
+++
@@ -26,6 +26,10 @@
return FStar_String_strcat(s0, s1);
}
+void FStar_HyperStack_IO_print_string(Prims_string s) {
+ printf("%s", s);
+}
+
void FStar_IO_debug_print_string(Prims_string s) {
printf("%s", s);
} | Revert "Try to catch up on upstream F* changes"
This reverts commit 5b09f1f43b155df40caa8d8716075ccd7d08af26.
| apache-2.0 | FStarLang/kremlin,FStarLang/kremlin,FStarLang/kremlin,FStarLang/kremlin | 2d6cf0686fb211408a6f5ed96ac5341f1c486aaa |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.