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 |
|---|---|---|---|---|---|---|
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */
#include "common.h"
#include "commands.h"
#include "imap-expunge.h"
bool cmd_close(struct client_command_context *cmd)
{
struct client *client = cmd->client;
struct mailbox *mailbox = client->mailbox;
struct mail_storage *storage;
if (!... | /* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */
#include "common.h"
#include "commands.h"
#include "imap-expunge.h"
bool cmd_close(struct client_command_context *cmd)
{
struct client *client = cmd->client;
struct mailbox *mailbox = client->mailbox;
struct mail_storage *storage;
if (!... | ---
+++
@@ -18,6 +18,8 @@
if (!imap_expunge(mailbox, NULL))
client_send_untagged_storage_error(client, storage);
+ else if (mailbox_sync(mailbox, 0, 0, NULL) < 0)
+ client_send_untagged_storage_error(client, storage);
if (mailbox_close(&mailbox) < 0)
client_send_untagged_storage_error(cli... | CLOSE: Synchronize the mailbox after expunging messages to actually get them
expunged.
--HG--
branch : HEAD
| mit | dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot | 87004dbc4eab7de47be325ac4211d2ce0c43e938 |
/* ecp_alt.h with dummy types for MBEDTLS_ECP_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | /* ecp_alt.h with dummy types for MBEDTLS_ECP_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | ---
+++
@@ -21,19 +21,15 @@
typedef struct mbedtls_ecp_group
{
- int dummy;
+ const mbedtls_ecp_group_id id;
+ const mbedtls_mpi P;
+ const mbedtls_mpi A;
+ const mbedtls_mpi B;
+ const mbedtls_ecp_point G;
+ const mbedtls_mpi N;
+ const size_t pbits;
+ const size_t nbits;
}
mbedtls_e... | Define public fields of mbedtls_ecp_group in alt test header
And don't define configuration macros that only apply to the built-in
implementation.
Signed-off-by: Gilles Peskine <f805f64266d288fc5467baa7be6cd0ff366f477b@arm.com>
| apache-2.0 | Mbed-TLS/mbedtls,ARMmbed/mbedtls,NXPmicro/mbedtls,ARMmbed/mbedtls,ARMmbed/mbedtls,NXPmicro/mbedtls,Mbed-TLS/mbedtls,ARMmbed/mbedtls,NXPmicro/mbedtls,Mbed-TLS/mbedtls,Mbed-TLS/mbedtls,NXPmicro/mbedtls | ad7f53cdb35644304350b077a9ac11e5ec588036 |
#include <math.h>
#include "gauge.h"
int init_gauge(gauge_t *gauge) {
gauge->count = 0;
gauge->sum = 0;
gauge->value = 0;
return 0;
}
int gauge_add_sample(gauge_t *gauge, double sample, bool delta) {
if (delta) {
gauge->value += sample;
} else {
gauge->value = sample;
}
... | #include <math.h>
#include "gauge.h"
/**
* Initializes the gauge struct
* @arg gauge The gauge struct to initialize
* @return 0 on success.
*/
int init_gauge(gauge_t *gauge) {
gauge->count = 0;
gauge->sum = 0;
gauge->value = 0;
return 0;
}
/**
* Adds a new sample to the struct
* @arg gauge The g... | ---
+++
@@ -1,11 +1,7 @@
#include <math.h>
#include "gauge.h"
-/**
- * Initializes the gauge struct
- * @arg gauge The gauge struct to initialize
- * @return 0 on success.
- */
+
int init_gauge(gauge_t *gauge) {
gauge->count = 0;
gauge->sum = 0;
@@ -13,13 +9,6 @@
return 0;
}
-/**
- * Adds a new... | Remove duplicate comment from the c file
| bsd-3-clause | drawks/statsite,theatrus/statsite,theatrus/statsite,drawks/statsite,drawks/statsite,drawks/statsite,theatrus/statsite,drawks/statsite,theatrus/statsite,theatrus/statsite,drawks/statsite | 9a12c4bd62e7b23a69f8adc616f42a8f3c4c1685 |
#include "comm.h"
static void inbox_received_handler(DictionaryIterator *iter, void *context) {
#if defined(PBL_COLOR)
Tuple *background_t = dict_find(iter, AppKeyColorBackground);
if(background_t) {
data_set_color(ColorBackground, (GColor){ .argb = background_t->value->int8 });
}
Tuple *sides_t = dict_fi... | #include "comm.h"
static void inbox_received_handler(DictionaryIterator *iter, void *context) {
#if defined(PBL_COLOR)
Tuple *background_t = dict_find(iter, AppKeyColorBackground);
if(background_t) {
data_set_color(ColorBackground, (GColor){ .argb = background_t->value->int32 });
}
Tuple *sides_t = dict_f... | ---
+++
@@ -4,29 +4,29 @@
#if defined(PBL_COLOR)
Tuple *background_t = dict_find(iter, AppKeyColorBackground);
if(background_t) {
- data_set_color(ColorBackground, (GColor){ .argb = background_t->value->int32 });
+ data_set_color(ColorBackground, (GColor){ .argb = background_t->value->int8 });
}
... | Use more reliable union value
| mit | C-D-Lewis/isotime-appstore,C-D-Lewis/isotime-appstore,C-D-Lewis/isotime-appstore,C-D-Lewis/isotime-appstore | edb65bb8be45202ec4b1b0dbaeb4cbe0b50e1553 |
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_RENDERER_WEBVIEW_COLOR_OVERLAY_H_
#define CHROME_RENDERER_WEBVIEW_COLOR_OVERLAY_H_
#pragma once
#include "base/basictypes.h"
#include ... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_RENDERER_WEBVIEW_COLOR_OVERLAY_H_
#define CHROME_RENDERER_WEBVIEW_COLOR_OVERLAY_H_
#pragma once
#include "base/basictypes.h"
#include ... | ---
+++
@@ -10,7 +10,7 @@
#include "base/compiler_specific.h"
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPageOverlay.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h"
+#include "third_party/WebKit/Source/WebKit/chromium/p... | Fix build break from the future.
TBR=pfeldman
Review URL: http://codereview.chromium.org/8801036
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@113098 0039d316-1c4b-4281-b951-d872f2087c98
| bsd-3-clause | Fireblend/chromium-crosswalk,hujiajie/pa-chromium,anirudhSK/chromium,junmin-zhu/chromium-rivertrail,pozdnyakov/chromium-crosswalk,nacl-webkit/chrome_deps,Fireblend/chromium-crosswalk,pozdnyakov/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,anirudhSK/chromium,bright-sparks/chromium-spacewalk,bright-sparks/chromiu... | f768655c72cb93e263763f23b3238acd04ac2a19 |
#include <stdio.h>
void SpinYetAgain()
{
volatile unsigned int count = 0;
int i;
for(i=0; i<1000; i++)
{
count++;
}
}
void SpinSomeMore()
{
volatile unsigned int count = 0;
int i;
for(i=0; i<1000; i++)
{
count++;
}
SpinYetAgain();
}
void Spin()
{
volat... | #include <stdio.h>
void SpinYetAgain()
{
volatile unsigned int count = 0;
for(int i=0; i<1000; i++)
{
count++;
}
}
void SpinSomeMore()
{
volatile unsigned int count = 0;
for(int i=0; i<1000; i++)
{
count++;
}
SpinYetAgain();
}
void Spin()
{
volatile unsigned i... | ---
+++
@@ -3,7 +3,8 @@
void SpinYetAgain()
{
volatile unsigned int count = 0;
- for(int i=0; i<1000; i++)
+ int i;
+ for(i=0; i<1000; i++)
{
count++;
}
@@ -12,7 +13,8 @@
void SpinSomeMore()
{
volatile unsigned int count = 0;
- for(int i=0; i<1000; i++)
+ int i;
+ fo... | Fix C declaration errors on ARM.
| mit | brianrob/coretests,brianrob/coretests | 80dadf74982bc78acb1fedd5e9e65f754d6bbee8 |
#include_next <string.h>
#ifndef LIBCRYPTOCOMPAT_STRING_H
#define LIBCRYPTOCOMPAT_STRING_H
#include <sys/types.h>
#ifdef __sun
/* Some functions historically defined in string.h were placed in strings.h by
* SUS. Use the same hack as OS X and FreeBSD use to work around on Solaris.
*/
#include <strings.h>
#endif
s... | #include_next <string.h>
#ifndef LIBCRYPTOCOMPAT_STRING_H
#define LIBCRYPTOCOMPAT_STRING_H
#include <sys/types.h>
#ifdef __sun
/* Some functions historically defined in string.h were placed in strings.h by
* SUS. Use the same hack as OS X and FreeBSD use to work around on Solaris.
*/
#include <strings.h>
#endif
s... | ---
+++
@@ -22,20 +22,4 @@
int timingsafe_memcmp(const void *b1, const void *b2, size_t len);
-#ifdef __pnacl__
-inline int strncasecmp(const char *str1, const char *str2, size_t n) {
- size_t i = 0;
- for(; str1[i] == str2[i] &&
- str1[i] != '\0' && str2[i] != '\0' &&
- i < n; ++i) { }
- return... | Fix multiple def errors for strcasecmp && strncasecmp.
| mpl-2.0 | DiamondLovesYou/rust-ppapi,DiamondLovesYou/rust-ppapi,DiamondLovesYou/rust-ppapi,DiamondLovesYou/rust-ppapi | e62b57a8e9fce54fc356a8379b22a065e510450b |
/*
* The OpenDiamond Platform for Interactive Search
* Version 4
*
* Copyright (c) 2002-2005 Intel Corporation
* All rights reserved.
*
* This software is distributed under the terms of the Eclipse Public
* License, Version 1.0 which can be found in the file named LICENSE.
* ANY USE, REPRODUCTION OR DIS... | /*
* The OpenDiamond Platform for Interactive Search
* Version 4
*
* Copyright (c) 2002-2005 Intel Corporation
* All rights reserved.
*
* This software is distributed under the terms of the Eclipse Public
* License, Version 1.0 which can be found in the file named LICENSE.
* ANY USE, REPRODUCTION OR DIS... | ---
+++
@@ -16,16 +16,7 @@
/*
* Names for some of the system defined attributes.
- * XXX update these from the spec.
*/
-
-#define SIZE "SYS_SIZE"
-#define UID "SYS_UID"
-#define GID "SYS_GID"
-#define BLK_SIZE "SYS_BLKSIZE"
-#define ATIME "SYS_ATIME"
-#define MTIME "SYS_MTIME"
-#define CTIME "SYS_CTIME"... | Drop definitions of unused object attributes
| epl-1.0 | cmusatyalab/opendiamond,cmusatyalab/opendiamond,cmusatyalab/opendiamond,cmusatyalab/opendiamond,cmusatyalab/opendiamond | ab3d51e895884d5beb0ad836fa88dfe702408c07 |
/*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#pragma onc... | /*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#pragma onc... | ---
+++
@@ -10,7 +10,7 @@
#pragma once
-#include <folly/experimental/fibers/FiberManagerMap.h>
+#include <folly/fibers/FiberManagerMap.h>
#include <wangle/concurrent/IOExecutor.h>
namespace wangle { | Move fibers out of experimental
Summary: folly::fibers have been used by mcrouter for more than 2 years, so not really experimental.
Reviewed By: pavlo-fb
Differential Revision: D3320595
fbshipit-source-id: 68188f92b71a4206d57222993848521ca5437ef5
| apache-2.0 | facebook/wangle,facebook/wangle,facebook/wangle | 4903f961a88751e684f703aaf08511cd5c486a84 |
//
// EXPDefines.h
// Expecta
//
// Created by Luke Redpath on 26/03/2012.
// Copyright (c) 2012 Peter Jihoon Kim. All rights reserved.
//
#ifndef Expecta_EXPDefines_h
#define Expecta_EXPDefines_h
typedef void (^EXPBasicBlock)(void);
typedef id (^EXPIdBlock)(void);
typedef BOOL (^EXPBoolBlock)(void);
typedef NSSt... | //
// EXPDefines.h
// Expecta
//
// Created by Luke Redpath on 26/03/2012.
// Copyright (c) 2012 Peter Jihoon Kim. All rights reserved.
//
#ifndef Expecta_EXPDefines_h
#define Expecta_EXPDefines_h
typedef void (^EXPBasicBlock)();
typedef id (^EXPIdBlock)();
typedef BOOL (^EXPBoolBlock)();
typedef NSString *(^EXPS... | ---
+++
@@ -9,9 +9,9 @@
#ifndef Expecta_EXPDefines_h
#define Expecta_EXPDefines_h
-typedef void (^EXPBasicBlock)();
-typedef id (^EXPIdBlock)();
-typedef BOOL (^EXPBoolBlock)();
-typedef NSString *(^EXPStringBlock)();
+typedef void (^EXPBasicBlock)(void);
+typedef id (^EXPIdBlock)(void);
+typedef BOOL (^EXPBoolBl... | Fix warning ‘This function declaration is not a prototype’
| mit | specta/expecta | f18cd042b17d28811ae308c0c7b9e4b20d2068e9 |
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_
#define WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_
#include "third_party/ppapi/c/pp_var.h"
#define PPB_PRIVATE_IN... | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_
#define WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_
#include "ppapi/c/pp_var.h"
#define PPB_PRIVATE_INTERFACE "PPB... | ---
+++
@@ -5,7 +5,7 @@
#ifndef WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_
#define WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_
-#include "ppapi/c/pp_var.h"
+#include "third_party/ppapi/c/pp_var.h"
#define PPB_PRIVATE_INTERFACE "PPB_Private;1"
| Add third_party/ prefix to ppapi include for checkdeps.
The only users of this ppb should be inside chrome so this should work fine.
TBR=jam@chromium.org
Review URL: http://codereview.chromium.org/3019006
git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@52766 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
| bsd-3-clause | wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser | b5583121378597058f8f083243d2299fd262e509 |
/***************************************************************************/
/* sha.h */
/* */
/* SHA-1 code header file. */
/* Taken from the public domain implementation by Peter C. Gutmann */
/* on 2 Sep 1992, modified by Carl Ellison to be SHA-1. */
/***************************... | /***************************************************************************/
/* sha.h */
/* */
/* SHA-1 code header file. */
/* Taken from the public domain implementation by Peter C. Gutmann */
/* on 2 Sep 1992, modified by Carl Ellison to be SHA-1. */
/***************************... | ---
+++
@@ -9,14 +9,16 @@
#ifndef _SHA_H_
#define _SHA_H_
+#include <stdint.h>
+
/* Define APG_LITTLE_ENDIAN if the machine is little-endian */
#define APG_LITTLE_ENDIAN
/* Useful defines/typedefs */
-typedef unsigned char BYTE ;
-typedef unsigned long LONG ;
+typedef uint8_t BYTE ;
+typedef uint3... | Use uint8_t and uint32_t in SHA-1 implementation.
| bsd-3-clause | wilx/apg,wilx/apg,rogerapras/apg,rogerapras/apg,wilx/apg,rogerapras/apg,rogerapras/apg,wilx/apg | 571d83314ae9424b23d35ef1b7c3efce6403aad3 |
//
// RocksDBCuckooTableOptions.h
// ObjectiveRocks
//
// Created by Iska on 04/01/15.
// Copyright (c) 2015 BrainCookie. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface RocksDBCuckooTableOptions : NSObject
/**
@brief
Determines the utilization of hash tables. Smaller values
result in l... | //
// RocksDBCuckooTableOptions.h
// ObjectiveRocks
//
// Created by Iska on 04/01/15.
// Copyright (c) 2015 BrainCookie. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface RocksDBCuckooTableOptions : NSObject
@property (nonatomic, assign) double hashTableRatio;
@property (nonatomic, assign) ui... | ---
+++
@@ -10,10 +10,49 @@
@interface RocksDBCuckooTableOptions : NSObject
+/**
+ @brief
+ Determines the utilization of hash tables. Smaller values
+ result in larger hash tables with fewer collisions.
+ */
@property (nonatomic, assign) double hashTableRatio;
+
+/**
+ @brief
+ A property used by builder to... | Add source code documentation for the RocksDB Cuckoo Table Options class
| mit | iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks | 9c593e10c013d0000c3b61e6a0ee97a89418eff9 |
#ifndef FIX_UNISTD_H
#define FIX_UNISTD_H
#include <unistd.h>
/*
For some reason the g++ include files on Ultrix 4.3 fail to provide
these prototypes, even though the Ultrix 4.2 versions did...
Once again, OSF1 also chokes, unless _AES_SOURCE(?) is defined JCP
*/
#if defined(ULTRIX43) || defined(OSF1)
#if def... | #ifndef FIX_UNISTD_H
#define FIX_UNISTD_H
#include <unistd.h>
/*
For some reason the g++ include files on Ultrix 4.3 fail to provide
these prototypes, even though the Ultrix 4.2 versions did...
Once again, OSF1 also chokes, unless _AES_SOURCE(?) is defined JCP
*/
#if defined(ULTRIX43) || defined(OSF1)
#if def... | ---
+++
@@ -17,7 +17,7 @@
#if defined(__STDC__) || defined(__cplusplus)
int symlink( const char *, const char * );
- char *sbrk( int );
+ void *sbrk( ssize_t );
int gethostname( char *, int );
#else
int symlink(); | Change sbrk() prototype to sensible version with void * and ssize_t.
| apache-2.0 | djw8605/condor,zhangzhehust/htcondor,mambelli/osg-bosco-marco,zhangzhehust/htcondor,bbockelm/condor-network-accounting,neurodebian/htcondor,neurodebian/htcondor,zhangzhehust/htcondor,zhangzhehust/htcondor,djw8605/condor,clalancette/condor-dcloud,djw8605/condor,djw8605/htcondor,htcondor/htcondor,htcondor/htcondor,htcond... | 855e7cd9d230f0c2dc1699bdaafc4f5ccf4e968f |
#ifndef MACDOCKICONHANDLER_H
#define MACDOCKICONHANDLER_H
#include <QtCore/QObject>
class QMenu;
class QIcon;
class QWidget;
#ifdef __OBJC__
@class DockIconClickEventHandler;
#else
class DockIconClickEventHandler;
#endif
/** Macintosh-specific dock icon handler.
*/
class MacDockIconHandler : public QObject
{
Q... | #ifndef MACDOCKICONHANDLER_H
#define MACDOCKICONHANDLER_H
#include <QtCore/QObject>
class QMenu;
class QIcon;
class QWidget;
class objc_object;
/** Macintosh-specific dock icon handler.
*/
class MacDockIconHandler : public QObject
{
Q_OBJECT
public:
~MacDockIconHandler();
QMenu *dockMenu();
void se... | ---
+++
@@ -6,7 +6,12 @@
class QMenu;
class QIcon;
class QWidget;
-class objc_object;
+
+#ifdef __OBJC__
+@class DockIconClickEventHandler;
+#else
+class DockIconClickEventHandler;
+#endif
/** Macintosh-specific dock icon handler.
*/
@@ -31,7 +36,7 @@
private:
MacDockIconHandler();
- objc_object *m... | Fix for legacy QT compatibility
| mit | koharjidan/sexcoin,lavajumper/sexcoin,lavajumper/sexcoin,koharjidan/sexcoin,sexcoin-project/sexcoin,sexcoin-project/sexcoin,lavajumper/sexcoin,koharjidan/sexcoin,lavajumper/sexcoin,sexcoin-project/sexcoin,lavajumper/sexcoin,sexcoin-project/sexcoin,sexcoin-project/sexcoin,sexcoin-project/sexcoin,koharjidan/sexcoin,lavaj... | c938d475630c08a0d695f29b863250ae0ea73b5d |
/* Copyright (C) 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C 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 Licen... | /* Copyright (C) 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C 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 Licen... | ---
+++
@@ -16,8 +16,8 @@
not, see <http://www.gnu.org/licenses/>. */
/* Value passed to 'clone' for initialization of the thread register. */
-#define TLS_VALUE (pd + 1)
-
+#define TLS_VALUE ((void *) (pd) \
+ + TLS_PRE_TCB_SIZE + TLS_INIT_TCB_SIZE)
/* Get the real implementation. */
#include <sysd... | or1k: Fix tls value passed during clone
From or1k-glibc from blueCmd, his commit "Fix TLS, removed too much in
rebase".
Signed-off-by: Stafford Horne <799c89d5f62c643afb21c1a3622a07adef444e16@gmail.com>
| lgpl-2.1 | wbx-github/uclibc-ng,wbx-github/uclibc-ng,kraj/uclibc-ng,kraj/uclibc-ng,wbx-github/uclibc-ng,kraj/uclibc-ng,kraj/uclibc-ng,wbx-github/uclibc-ng | b654d10d3289c45b1fb702378bd4b96afb11c998 |
#ifndef YGO_DATA_CARDDATA_H
#define YGO_DATA_CARDDATA_H
#include <string>
#include "CardType.h"
namespace ygo
{
namespace data
{
struct StaticCardData
{
const char* name;
CardType cardType;
// monster only
Attribute attribute;
MonsterType monsterType;
Type type;
MonsterType monsterAbilit... | #ifndef YGO_DATA_CARDDATA_H
#define YGO_DATA_CARDDATA_H
#include <string>
#include "CardType.h"
namespace ygo
{
namespace data
{
struct StaticCardData
{
std::string name;
CardType cardType;
// monster only
Attribute attribute;
MonsterType monsterType;
Type type;
MonsterType monsterAbilit... | ---
+++
@@ -12,7 +12,7 @@
struct StaticCardData
{
- std::string name;
+ const char* name;
CardType cardType;
// monster only
Attribute attribute; | Change name to const char *
Allow for trivially constructable type
| mit | DeonPoncini/ygodata | b1d45cb3b9f9ad2089d57de0ec3fa75ea1cf7fc4 |
#pragma once
#include <spotify/json.hpp>
#include <noise/noise.h>
namespace spotify
{
namespace json
{
template<>
struct default_codec_t<noise::NoiseQuality>
{
using NoiseQuality = noise::NoiseQuality;
static codec::one_of_t<
codec::enumeration_t<NoiseQuality, codec::number_t<int>>,
codec::e... | #pragma once
#include <spotify/json.hpp>
#include <noise/noise.h>
namespace spotify
{
namespace json
{
template<>
struct default_codec_t<noise::NoiseQuality>
{
using NoiseQuality = noise::NoiseQuality;
static codec::enumeration_t<NoiseQuality, codec::string_t> codec()
{
auto codec = codec::enume... | ---
+++
@@ -13,15 +13,21 @@
struct default_codec_t<noise::NoiseQuality>
{
using NoiseQuality = noise::NoiseQuality;
- static codec::enumeration_t<NoiseQuality, codec::string_t> codec()
+ static codec::one_of_t<
+ codec::enumeration_t<NoiseQuality, codec::number_t<int>>,
+ codec::enumeration... | Allow specification of NoiseQuality with an int
| mit | Wangscape/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape,serin-delaunay/Wangscape,serin-delaunay/Wangscape | 05375b10cfd6e060242c9786fb7887dcd3850ebc |
//
// UTAPIObjCAdapter-iOS.h
// UTAPIObjCAdapter-iOS
//
// Created by Mark Woollard on 15/05/2016.
// Copyright © 2016 UrbanThings. All rights reserved.
//
//! Project version number for UTAPIObjCAdapter-iOS.
FOUNDATION_EXPORT double UTAPIObjCAdapter_iOSVersionNumber;
//! Project version string for UTAPIObjCAdapt... | //
// UTAPIObjCAdapter-iOS.h
// UTAPIObjCAdapter-iOS
//
// Created by Mark Woollard on 15/05/2016.
// Copyright © 2016 UrbanThings. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for UTAPIObjCAdapter-iOS.
FOUNDATION_EXPORT double UTAPIObjCAdapter_iOSVersionNumber;
//! Project version ... | ---
+++
@@ -5,8 +5,6 @@
// Created by Mark Woollard on 15/05/2016.
// Copyright © 2016 UrbanThings. All rights reserved.
//
-
-#import <UIKit/UIKit.h>
//! Project version number for UTAPIObjCAdapter-iOS.
FOUNDATION_EXPORT double UTAPIObjCAdapter_iOSVersionNumber; | Make master header platform neutral
| apache-2.0 | urbanthings/urbanthings-sdk-apple,urbanthings/urbanthings-sdk-apple,urbanthings/urbanthings-sdk-apple,urbanthings/urbanthings-sdk-apple | 29cc413e4a179535fc7003b6e7f3cc67424cca13 |
#ifndef HALIDE_CPLUSPLUS_MANGLE_H
#define HALIDE_CPLUSPLUS_MANGLE_H
/** \file
*
* A simple function to get a C++ mangled function name for a function.
*/
#include <string>
#include "IR.h"
#include "Target.h"
namespace Halide {
namespace Internal {
/** Return the mangled C++ name for a function.
* The target par... | #ifndef HALIDE_CPLUSPLUS_MANGLE_H
#define HALIDE_CPLUSPLUS_MANGLE_H
/** \file
*
* A simple function to get a C++ mangled function name for a function.
*/
#include <string>
#include "IR.h"
#include "Target.h"
namespace Halide {
namespace Internal {
/** Return the mangled C++ name for a function.
* The target par... | ---
+++
@@ -17,11 +17,11 @@
* The target parameter is used to decide on the C++
* ABI/mangling style to use.
*/
-std::string cplusplus_function_mangled_name(const std::string &name, const std::vector<std::string> &namespaces,
- Type return_type, const std::vector<Exter... | Add some EXPORT qualifiers for msvc
Former-commit-id: d0593d880573052e6ae2790328a336a6a9865cc3 | mit | Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide | 40d6218a4da5c87723142bc7015bd6a85c52b590 |
/*
* xabicc.c - platform-agnostic root for ALien call-outs and callbacks.
*
* Support for Call-outs and Call-backs from the IA32ABI Plugin.
* The plgin is misnamed. It should be the AlienPlugin, but its history
* dictates otherwise.
*/
#if i386|i486|i586|i686
# include "ia32abicc.c"
#elif powerpc|ppc
# include ... | /*
* xabicc.c - platform-agnostic root for ALien call-outs and callbacks.
*
* Support for Call-outs and Call-backs from the IA32ABI Plugin.
* The plgin is misnamed. It should be the AlienPlugin, but its history
* dictates otherwise.
*/
#if i386|i486|i586|i686
# include "ia32abicc.c"
#elif powerpc|ppc
# include ... | ---
+++
@@ -9,6 +9,6 @@
# include "ia32abicc.c"
#elif powerpc|ppc
# include "ppcia32abicc.c"
-#elif x86_64|x64
-# include "x64ia32abicc.o"
+#elif x86_64|x64|__x86_64|__x86_64__
+# include "x64ia32abicc.c"
#endif | Make the list of x64 processor names inclusive enough to compile the Alien
plugin on 64-bit linux.
git-svn-id: http://squeakvm.org/svn/squeak/trunk@3237 fa1542d4-bde8-0310-ad64-8ed1123d492a
Former-commit-id: 600bd5e36821553d6b9391d8bbd8d75d4ad10a85 | mit | timfel/squeakvm,timfel/squeakvm,timfel/squeakvm,bencoman/pharo-vm,peteruhnak/pharo-vm,timfel/squeakvm,bencoman/pharo-vm,peteruhnak/pharo-vm,bencoman/pharo-vm,timfel/squeakvm,bencoman/pharo-vm,timfel/squeakvm,timfel/squeakvm,bencoman/pharo-vm,timfel/squeakvm,bencoman/pharo-vm,peteruhnak/pharo-vm,OpenSmalltalk/vm,OpenSma... | 1a16a79939e53044d07009bc746cfe9a08e878d4 |
#define PORTABLE_VERSION_TEXT "0.2.5-pre"
#define PORTABLE_VERSION_MAJOR 0
#define PORTABLE_VERSION_MINOR 2
#define PORTABLE_VERSION_PATCH 5
/* 1 or 0 */
#define PORTABLE_VERSION_RELEASED 0
| #define PORTABLE_VERSION_TEXT "0.2.4"
#define PORTABLE_VERSION_MAJOR 0
#define PORTABLE_VERSION_MINOR 2
#define PORTABLE_VERSION_PATCH 4
/* 1 or 0 */
#define PORTABLE_VERSION_RELEASED 1
| ---
+++
@@ -1,6 +1,6 @@
-#define PORTABLE_VERSION_TEXT "0.2.4"
+#define PORTABLE_VERSION_TEXT "0.2.5-pre"
#define PORTABLE_VERSION_MAJOR 0
#define PORTABLE_VERSION_MINOR 2
-#define PORTABLE_VERSION_PATCH 4
+#define PORTABLE_VERSION_PATCH 5
/* 1 or 0 */
-#define PORTABLE_VERSION_RELEASED 1
+#define PORTABLE_VERSION... | Update portable version to unreleased
| apache-2.0 | dvidelabs/flatcc,dvidelabs/flatcc,dvidelabs/flatcc | 262de226f343c443c29c2e83328a8be07afbc3cc |
/* 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 '?'
| mit | Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot | c75706f29ac0844cc480f6333415830f5983d6f7 |
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <termios.h>
#include <unistd.h>
struct termios orig_termios;
void disableRawMode() {
tcsetattr(STDIN_FILENO, TCSAFLUSH, &orig_termios);
}
void enableRawMode() {
tcgetattr(STDIN_FILENO, &orig_termios);
atexit(disableRawMode);
struct termios r... | #include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <termios.h>
#include <unistd.h>
struct termios orig_termios;
void disableRawMode() {
tcsetattr(STDIN_FILENO, TCSAFLUSH, &orig_termios);
}
void enableRawMode() {
tcgetattr(STDIN_FILENO, &orig_termios);
atexit(disableRawMode);
struct termios r... | ---
+++
@@ -28,9 +28,9 @@
char c;
while (read(STDIN_FILENO, &c, 1) == 1 && c!= 'q') {
if (iscntrl(c)) {
- printf("%d\n", c);
+ printf("%d\r\n", c);
} else {
- printf("%d ('%c')\n", c, c);
+ printf("%d ('%c')\r\n", c, c);
}
}
return 0; | Add a carriage return with the newline
| bsd-2-clause | kyletolle/texor | 83c3058f205532ba510dbbc5e95b96fd228f0125 |
#ifndef JAGUAR_HELPER_H_
#define JAGUAR_HELPER_H_
#include <boost/detail/endian.hpp>
#include <stdint.h>
#include "jaguar_api.h"
#ifndef __GLIBC__
# ifdef BOOST_LITTLE_ENDIAN
# define htole16(x) x
# define htole32(x) x
# define le16toh(x) x
# define le32toh(x) x
# elif BOOST_BIG_ENDIAN
# error big endian archite... | #ifndef JAGUAR_HELPER_H_
#define JAGUAR_HELPER_H_
#include <boost/detail/endian.hpp>
#include <stdint.h>
#include "jaguar_api.h"
#ifdef BOOST_LITTLE_ENDIAN
#define htole16(x) x
#define htole32(x) x
#define le16toh(x) x
#define le32toh(x) x
#elif BOOST_BIG_ENDIAN
#error big endian architectures are unsupported
#else
#... | ---
+++
@@ -5,15 +5,17 @@
#include <stdint.h>
#include "jaguar_api.h"
-#ifdef BOOST_LITTLE_ENDIAN
-#define htole16(x) x
-#define htole32(x) x
-#define le16toh(x) x
-#define le32toh(x) x
-#elif BOOST_BIG_ENDIAN
-#error big endian architectures are unsupported
-#else
-#error unknown endiannes
+#ifndef __GLIBC__
+# ... | Use provided byteorder convertions on GLIBC systems
| bsd-2-clause | mkoval/jaguar,mkoval/jaguar | e13fe9f79af4185ac245b36e9c426c7a6c3fedb2 |
#pragma once
#include <type_traits>
#include <iostream>
namespace rc {
namespace detail {
#define RC_SFINAE_TRAIT(Name, expression) \
namespace sfinae { \
template<typename T, typename = expression> \
... | #pragma once
#include <type_traits>
#include <iostream>
namespace rc {
namespace detail {
namespace sfinae {
template<typename T, typename = decltype(std::declval<T>() == std::declval<T>())>
std::true_type isEqualityComparable(const T &);
std::false_type isEqualityComparable(...);
template<typename T, typename = de... | ---
+++
@@ -5,25 +5,23 @@
namespace rc {
namespace detail {
-namespace sfinae {
-template<typename T, typename = decltype(std::declval<T>() == std::declval<T>())>
-std::true_type isEqualityComparable(const T &);
-std::false_type isEqualityComparable(...);
+#define RC_SFINAE_TRAIT(Name, expression) ... | Add macro to declare SFINAE based traits
| bsd-2-clause | unapiedra/rapidfuzz,whoshuu/rapidcheck,unapiedra/rapidfuzz,whoshuu/rapidcheck,tm604/rapidcheck,emil-e/rapidcheck,tm604/rapidcheck,whoshuu/rapidcheck,emil-e/rapidcheck,emil-e/rapidcheck,tm604/rapidcheck,unapiedra/rapidfuzz | af88a4da720094eb576f50664fa61d449eb005dd |
/*
* $Id$
*/
#include <errno.h>
#include <time.h>
#ifndef NULL
#define NULL ((void*)0)
#endif
/* from libvarnish/argv.c */
void FreeArgv(char **argv);
char **ParseArgv(const char *s, int comment);
/* from libvarnish/time.c */
void TIM_format(time_t t, char *p);
time_t TIM_parse(const char *p);
/* from libvarnish... | /*
* $Id$
*/
#include <errno.h>
#include <time.h>
/* from libvarnish/argv.c */
void FreeArgv(char **argv);
char **ParseArgv(const char *s, int comment);
/* from libvarnish/time.c */
void TIM_format(time_t t, char *p);
time_t TIM_parse(const char *p);
/* from libvarnish/version.c */
void varnish_version(const char... | ---
+++
@@ -4,6 +4,10 @@
#include <errno.h>
#include <time.h>
+
+#ifndef NULL
+#define NULL ((void*)0)
+#endif
/* from libvarnish/argv.c */
void FreeArgv(char **argv);
@@ -17,6 +21,12 @@
void varnish_version(const char *);
/* from libvarnish/assert.c */
+
+/*
+ * assert(), AN() and AZ() are static checks ... | Split assert into "static check" and "missing code" variants.
The "missing code" variants have xxx prefix
Introduce AN() (assert non-null) variant as well.
git-svn-id: 7d4b18ab7d176792635d6a7a77dd8cbbea8e8daa@911 d4fa192b-c00b-0410-8231-f00ffab90ce4
| bsd-2-clause | wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,CartoDB/Varnish-Cache,ssm/pkg-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,CartoDB/Varnish-Cache,CartoDB/Varnish-Cache,ssm/pkg-varnish,ssm/pkg-varnish | a41572918b5ca69cc925d9ce0714c03924857289 |
//
// TangramMap.h
// TangramMap
//
// Created by Matt Smollinger on 7/8/16.
// Updated by Karim Naaji on 2/28/17.
// Copyright (c) 2017 Mapzen. All rights reserved.
//
#import <UIKit/UIKit.h>
/// Project version number for TangramMap.
FOUNDATION_EXPORT double TangramMapVersionNumber;
/// Project version string... | //
// TangramMap.h
// TangramMap
//
// Created by Matt Smollinger on 7/8/16.
//
//
#import <UIKit/UIKit.h>
/// Project version number for TangramMap.
FOUNDATION_EXPORT double TangramMapVersionNumber;
/// Project version string for TangramMap.
FOUNDATION_EXPORT const unsigned char TangramMapVersionString[];
// In... | ---
+++
@@ -3,7 +3,8 @@
// TangramMap
//
// Created by Matt Smollinger on 7/8/16.
-//
+// Updated by Karim Naaji on 2/28/17.
+// Copyright (c) 2017 Mapzen. All rights reserved.
//
#import <UIKit/UIKit.h>
@@ -14,6 +15,16 @@
/// Project version string for TangramMap.
FOUNDATION_EXPORT const unsigned char T... | Update umbrella header with public interface
| mit | quitejonny/tangram-es,cleeus/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,cleeus/tangram-es,cleeus/tangram-es,cleeus/tangram-es,quitejonny/tangram-es,tangrams/tangram-es,quitejonny/tangram-es,cleeus/tangram-es,tangrams/tangram-es,tangrams/tangram-es,tangrams/tangram-es,tangrams/tangram-es,tangrams/tangram-es,... | 1eba4c3d6cbff506ed61c17b93db45bbf196b8d8 |
//
// MagicalImportFunctions.h
// Magical Record
//
// Created by Saul Mora on 3/7/12.
// Copyright (c) 2012 Magical Panda Software LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <MagicalRecord/MagicalRecordXcode7CompatibilityMacros.h>
NSDateFormatter * __MR_nonnull MR_dateFormatterWithFor... | //
// MagicalImportFunctions.h
// Magical Record
//
// Created by Saul Mora on 3/7/12.
// Copyright (c) 2012 Magical Panda Software LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <MagicalRecord/MagicalRecordXcode7CompatibilityMacros.h>
NSDateFormatter * __MR_nonnull MR_dateFormatterWithFor... | ---
+++
@@ -9,7 +9,7 @@
#import <Foundation/Foundation.h>
#import <MagicalRecord/MagicalRecordXcode7CompatibilityMacros.h>
-NSDateFormatter * __MR_nonnull MR_dateFormatterWithFormat(NSString *format);
+NSDateFormatter * __MR_nonnull MR_dateFormatterWithFormat(NSString *__MR_nonnull format);
NSDate * __MR_nonnull... | Add the missing nullability annotation
| mit | yiplee/MagicalRecord,yiplee/MagicalRecord | a6b11e049ace86d58eb016015b598c5b8ed1655c |
// standard Linux framebuffer headers
#include <linux/fb.h>
#include <linux/ioctl.h>
// specialized eink framebuffer headers
typedef unsigned int uint;
#include "include/mxcfb-kobo.h"
#include "cdecl.h"
cdecl_struct(mxcfb_rect)
cdecl_struct(mxcfb_alt_buffer_data)
cdecl_struct(mxcfb_update_data)
cdecl_const(MXCFB_SE... | // standard Linux framebuffer headers
#include <linux/fb.h>
#include <linux/ioctl.h>
// specialized eink framebuffer headers
typedef unsigned int uint;
#include "include/mxcfb-kobo.h"
#include "cdecl.h"
cdecl_struct(mxcfb_rect)
cdecl_struct(mxcfb_alt_buffer_data)
cdecl_struct(mxcfb_update_data)
cdecl_const(MXCFB_SE... | ---
+++
@@ -14,3 +14,11 @@
cdecl_const(MXCFB_SEND_UPDATE)
+/* Might come in handy one day... */
+cdecl_const(MXCFB_WAIT_FOR_UPDATE_COMPLETE)
+
+/* Aura */
+cdecl_struct(mxcfb_update_data_org)
+
+cdecl_const(MXCFB_SEND_UPDATE_ORG)
+ | Tweak the kobo mxcfb cdecl
| agpl-3.0 | frankyifei/koreader-base,apletnev/koreader-base,NiLuJe/koreader-base,Hzj-jie/koreader-base,houqp/koreader-base,houqp/koreader-base,Hzj-jie/koreader-base,NiLuJe/koreader-base,NiLuJe/koreader-base,frankyifei/koreader-base,Hzj-jie/koreader-base,Hzj-jie/koreader-base,Frenzie/koreader-base,apletnev/koreader-base,koreader/ko... | d8f546320062c3c8848c1d50bf6a7e8ab3a673b0 |
/*
* Copyright 2016 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... | /*
* Copyright 2016 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... | ---
+++
@@ -12,9 +12,6 @@
#define SDK_OBJC_BASE_RTCMACROS_H_
#define RTC_OBJC_EXPORT __attribute__((visibility("default")))
-// TODO(mbonadei): Remove RTC_EXPORT in order to be able to land
-// https://webrtc-review.googlesource.com/c/src/+/97960.
-#define RTC_EXPORT RTC_OBJC_EXPORT
#if defined(__cplusplus)
#... | Remove backwards compatible macro RTC_EXPORT from sdk/.
Symbols under sdk/ are now exported using RTC_OBJC_EXPORT, while
RTC_EXPORT is used for C++ symbols.
Bug: webrtc:9419
Change-Id: Icdf7ee0e7b3faf4d7fec33e9b33a3b13260f45b7
Reviewed-on: https://webrtc-review.googlesource.com/102461
Reviewed-by: Peter Hanspers <d02... | bsd-3-clause | TimothyGu/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc | cc628b8c1b2227cad240ed1c12d10636e91145cc |
/* GLOBAL.H - RSAREF types and constants
*/
/* PROTOTYPES should be set to one if and only if the compiler supports
function argument prototyping.
The following makes PROTOTYPES default to 0 if it has not already
been defined with C compiler flags.
*/
#ifndef PROTOTYPES
#define PROTOTYPES 0
#endif
/* POINTER de... | /* GLOBAL.H - RSAREF types and constants
*/
/* PROTOTYPES should be set to one if and only if the compiler supports
function argument prototyping.
The following makes PROTOTYPES default to 0 if it has not already
been defined with C compiler flags.
*/
#ifndef PROTOTYPES
#define PROTOTYPES 0
#endif
/* POINTER de... | ---
+++
@@ -13,11 +13,21 @@
/* POINTER defines a generic pointer type */
typedef unsigned char *POINTER;
+#if 0
/* UINT2 defines a two byte word */
typedef unsigned short int UINT2;
/* UINT4 defines a four byte word */
typedef unsigned long int UINT4;
+#else
+#include <sys/types.h>
+
+/* UINT2 defines a two... | Fix bad assumptions about types.
PR: 1649
Reviewed by: phk
Submitted by: Jason Thorpe <thorpej@nas.nasa.gov>
| 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 | 17787f4779ab490398d7ff391230dbfedfa987c5 |
#ifndef LRPARAMS_
#define LRPARAMS_
#include "np2ver.h"
#define LR_SCREENWIDTH 640
#define LR_SCREENHEIGHT 480
#define LR_SCREENASPECT 4.0 / 3.0
#define LR_SCREENFPS 56.4
#define LR_SOUNDRATE 44100.0
//#define SNDSZ 735 //44100Hz/60fps=735 (sample/flame)
#define SNDSZ 782 //44100Hz/56.4fps=781.9 (sample/flame... | #ifndef LRPARAMS_
#define LRPARAMS_
#include "np2ver.h"
#define LR_SCREENWIDTH 640
#define LR_SCREENHEIGHT 480
#define LR_SCREENASPECT 4.0 / 3.0
#define LR_SCREENFPS 56.4
#define LR_SOUNDRATE 44100.0
//#define SNDSZ 735 //44100Hz/60fps=735 (sample/flame)
#define SNDSZ 782 //44100Hz/56.4fps=781.9 (sample/flame... | ---
+++
@@ -12,7 +12,7 @@
//#define SNDSZ 735 //44100Hz/60fps=735 (sample/flame)
#define SNDSZ 782 //44100Hz/56.4fps=781.9 (sample/flame)
-#define LR_CORENAME "Neko Project II"
+#define LR_CORENAME "Neko Project II kai"
#define LR_LIBVERSION NP2VER_CORE
#define LR_VALIDFILEEXT "d88|88d|d98... | Add 'kai' to core name
| mit | AZO234/NP2kai,AZO234/NP2kai,AZO234/NP2kai,AZO234/NP2kai | e7bfdc05fa5ff3e35d8480d75d9e9061498875a1 |
#ifndef COMMAND_LINE_FLAGS_H_
#define COMMAND_LINE_FLAGS_H_
#include "kinetic/kinetic.h"
#include "gflags/gflags.h"
DEFINE_string(host, "localhost", "Kinetic Host");
DEFINE_uint64(port, 8123, "Kinetic Port");
DEFINE_uint64(timeout, 30, "Timeout");
DEFINE_uint64(user_id, 1, "Kinetic User ID");
DEFINE_string(hmac_key,... | #ifndef COMMAND_LINE_FLAGS_H_
#define COMMAND_LINE_FLAGS_H_
#include "kinetic/kinetic.h"
#include "gflags/gflags.h"
DEFINE_string(host, "localhost", "Kinetic Host");
DEFINE_uint64(port, 8123, "Kinetic Port");
DEFINE_uint64(timeout, 30, "Timeout");
void parse_flags(int *argc, char*** argv, std::unique_ptr<kinetic::C... | ---
+++
@@ -8,6 +8,8 @@
DEFINE_string(host, "localhost", "Kinetic Host");
DEFINE_uint64(port, 8123, "Kinetic Port");
DEFINE_uint64(timeout, 30, "Timeout");
+DEFINE_uint64(user_id, 1, "Kinetic User ID");
+DEFINE_string(hmac_key, "asdfasdf", "Kinetic User HMAC key");
void parse_flags(int *argc, char*** argv, std:... | Allow setting user id/hmac key via command line params for setpin
| unknown | Kinetic/kinetic-cpp-examples,Seagate/kinetic-cpp-examples,chenchongli/kinetic-cpp-examples,chenchongli/kinetic-cpp-examples,daasbank/daasbank-kinetic-c-,Seagate/kinetic-cpp-examples,Kinetic/kinetic-cpp-examples,daasbank/daasbank-kinetic-c- | 1f3121d2ba227c0d3e7987b1297f00dfb83d7871 |
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#ifndef SRC_BGP_SECURITY_GROUP_SECURITY_GROUP_H_
#define SRC_BGP_SECURITY_GROUP_SECURITY_GROUP_H_
#include <boost/array.hpp>
#include <boost/system/error_code.hpp>
#include <string>
#include "base/parse_object.h"
#include "bgp/bgp_common.h"
c... | /*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#ifndef SRC_BGP_SECURITY_GROUP_SECURITY_GROUP_H_
#define SRC_BGP_SECURITY_GROUP_SECURITY_GROUP_H_
#include <boost/array.hpp>
#include <boost/system/error_code.hpp>
#include <string>
#include "base/parse_object.h"
#include "bgp/bgp_common.h"
c... | ---
+++
@@ -16,8 +16,8 @@
class SecurityGroup {
public:
static const int kSize = 8;
- static const uint32_t kMinGlobalId = 1000000;
- static const uint32_t kMaxGlobalId = 1999999;
+ static const uint32_t kMinGlobalId = 1;
+ static const uint32_t kMaxGlobalId = 7999999;
typedef boost::array<uin... | Update min/max global SGIDs values to match Schema Transformer
Change-Id: I63d5634e9a374ce33e9e0e779caf499e8fbccdec
Closes-Bug: 1381145
| apache-2.0 | rombie/contrail-controller,eonpatapon/contrail-controller,cloudwatt/contrail-controller,cloudwatt/contrail-controller,srajag/contrail-controller,DreamLab/contrail-controller,rombie/contrail-controller,reiaaoyama/contrail-controller,vmahuli/contrail-controller,nischalsheth/contrail-controller,numansiddique/contrail-cont... | c706f245992f760afdb7d41d3f40c60b3d85ee89 |
/*
* types.h: some often used basic type definitions
* $Revision$
*/
#ifndef __TYPES_H__
#define __TYPES_H__
// Machine types
typedef unsigned char Byte; /* 8 bits */
typedef unsigned short SWord; /* 16 bits */
typedef unsigned int DWord; /* 32 bits */
typedef unsigned int dword; /* 32 bits */
typedef unsig... | // Machine types
typedef unsigned char Byte; /* 8 bits */
typedef unsigned short SWord; /* 16 bits */
typedef unsigned int DWord; /* 32 bits */
typedef unsigned int dword; /* 32 bits */
typedef unsigned int Word; /* 32 bits */
typedef unsigned int ADDRESS; /* 32-bit unsigned */
#define STD_SIZE... | ---
+++
@@ -1,17 +1,28 @@
+/*
+ * types.h: some often used basic type definitions
+ * $Revision$
+ */
+#ifndef __TYPES_H__
+#define __TYPES_H__
+
// Machine types
-typedef unsigned char Byte; /* 8 bits */
-typedef unsigned short SWord; /* 16 bits */
-typedef unsigned int DWord; /* 32 bits */
-typedef uns... | Handle the name collision (with WinSock.h) for NO_ADDRESS
| bsd-3-clause | TambourineReindeer/boomerang,nemerle/boomerang,xujun10110/boomerang,xujun10110/boomerang,nemerle/boomerang,nemerle/boomerang,TambourineReindeer/boomerang,xujun10110/boomerang,nemerle/boomerang,xujun10110/boomerang,TambourineReindeer/boomerang,TambourineReindeer/boomerang,xujun10110/boomerang,nemerle/boomerang,nemerle/b... | 48d0c9e8bcc7b2f204eff8feef3b0fe6df0cae4f |
#include <clib/dos_protos.h>
#include <inline/dos_protos.h>
#include <proto/dos.h>
#include <proto/exec.h>
#include <proto/graphics.h>
#include <exec/execbase.h>
#include <graphics/gfxbase.h>
#include "system/check.h"
bool SystemCheck() {
bool kickv40 = SysBase->LibNode.lib_Version >= 40;
bool chipaga = GfxBase->... | #include <clib/dos_protos.h>
#include <inline/dos_protos.h>
#include <proto/dos.h>
#include <proto/exec.h>
#include <proto/graphics.h>
#include <exec/execbase.h>
#include <graphics/gfxbase.h>
#include "system/check.h"
bool SystemCheck() {
bool kickv40 = (SysBase->LibNode.lib_Version >= 40) ? TRUE : FALSE;
bool ch... | ---
+++
@@ -9,10 +9,10 @@
#include "system/check.h"
bool SystemCheck() {
- bool kickv40 = (SysBase->LibNode.lib_Version >= 40) ? TRUE : FALSE;
- bool chipaga = (GfxBase->ChipRevBits0 & (GFXF_AA_ALICE|GFXF_AA_LISA)) ? TRUE : FALSE;
- bool cpu68040 = (SysBase->AttnFlags & AFF_68040) ? TRUE : FALSE;
- bool fpu68... | Remove explicit conversion to boolean value.
| artistic-2.0 | cahirwpz/demoscene,cahirwpz/demoscene,cahirwpz/demoscene,cahirwpz/demoscene | ba289c0ae2bae2199af17ebac18347fbc5026186 |
#ifndef INPUTSTATE_H
#define INPUTSTATE_H
#include <SDL2/SDL.h>
#undef main
#include <map>
class InputState
{
public:
enum KeyFunction { KF_EXIT, KF_FORWARDS, KF_BACKWARDS, KF_ROTATE_SUN };
InputState();
void readInputState();
bool getKeyState(KeyFunction f);
int getAbsoluteMouseX() { return mouse_x; };
int ge... | #ifndef INPUTSTATE_H
#define INPUTSTATE_H
#include <SDL2/SDL.h>
#undef main
#include <map>
class InputState
{
public:
enum KeyFunction { KF_EXIT, KF_FORWARDS, KF_BACKWARDS, KF_ROTATE_SUN };
InputState();
void readInputState();
bool getKeyState(KeyFunction f);
int getAbsoluteMouseX() { return mouse_x; };
int ge... | ---
+++
@@ -23,7 +23,7 @@
private:
Uint8 *keys;
- Uint8 key_function_to_keycode[3];
+ Uint8 key_function_to_keycode[4];
};
#endif | Fix InputSize symbol array size.
| mit | pstiasny/derpengine,pstiasny/derpengine | 33b703740fd3ade5192bb61492b14cf5cfcebc2c |
#include "_condor_fix_types.h"
#include "condor_fix_stdio.h"
#include <stdlib.h>
#include "condor_fix_unistd.h"
#include "condor_fix_limits.h"
#include "condor_fix_string.h"
#include <ctype.h>
#include <fcntl.h>
#include <errno.h>
| #include "_condor_fix_types.h"
#include "condor_fix_stdio.h"
#include <stdlib.h>
#include "condor_fix_unistd.h"
#include "condor_fix_limits.h"
#include <string.h>
#include <ctype.h>
#include <fcntl.h>
#include <errno.h>
| ---
+++
@@ -3,7 +3,7 @@
#include <stdlib.h>
#include "condor_fix_unistd.h"
#include "condor_fix_limits.h"
-#include <string.h>
+#include "condor_fix_string.h"
#include <ctype.h>
#include <fcntl.h>
#include <errno.h> | Include condor_fix_string.h rather than just string.h
| apache-2.0 | bbockelm/condor-network-accounting,neurodebian/htcondor,mambelli/osg-bosco-marco,bbockelm/condor-network-accounting,mambelli/osg-bosco-marco,djw8605/htcondor,htcondor/htcondor,mambelli/osg-bosco-marco,clalancette/condor-dcloud,neurodebian/htcondor,zhangzhehust/htcondor,neurodebian/htcondor,djw8605/condor,bbockelm/condo... | dbb3b7606ccb070aedf6771e8efa54a15c2e5426 |
#include "storage.h"
// External SPI flash uses standard SPI interface
STATIC const mp_soft_spi_obj_t soft_spi_bus = {
.delay_half = MICROPY_HW_SOFTSPI_MIN_DELAY,
.polarity = 0,
.phase = 0,
.sck = MICROPY_HW_SPIFLASH_SCK,
.mosi = MICROPY_HW_SPIFLASH_MOSI,
.miso = MICROPY_HW_SPIFLASH_MISO,
};
... | #include "storage.h"
// External SPI flash uses standard SPI interface
const mp_soft_spi_obj_t soft_spi_bus = {
.delay_half = MICROPY_HW_SOFTSPI_MIN_DELAY,
.polarity = 0,
.phase = 0,
.sck = MICROPY_HW_SPIFLASH_SCK,
.mosi = MICROPY_HW_SPIFLASH_MOSI,
.miso = MICROPY_HW_SPIFLASH_MISO,
};
const m... | ---
+++
@@ -2,7 +2,7 @@
// External SPI flash uses standard SPI interface
-const mp_soft_spi_obj_t soft_spi_bus = {
+STATIC const mp_soft_spi_obj_t soft_spi_bus = {
.delay_half = MICROPY_HW_SOFTSPI_MIN_DELAY,
.polarity = 0,
.phase = 0,
@@ -11,11 +11,14 @@
.miso = MICROPY_HW_SPIFLASH_MISO,
};... | stm32/boards/STM32L476DISC: Update SPI flash config for cache change.
| mit | pozetroninc/micropython,MrSurly/micropython,pramasoul/micropython,henriknelson/micropython,pfalcon/micropython,adafruit/circuitpython,bvernoux/micropython,pfalcon/micropython,MrSurly/micropython,bvernoux/micropython,pozetroninc/micropython,henriknelson/micropython,swegener/micropython,pozetroninc/micropython,tralamazza... | 335d26b27d238cca9b4447a46d187d4c6f573d3a |
#ifndef QTXXML_IXMLDESERIALIZING_H
#define QTXXML_IXMLDESERIALIZING_H
#include "xmlglobal.h"
#include <QtCore>
QTX_BEGIN_NAMESPACE
class IXmlDeserializing
{
public:
virtual ~IXmlDeserializing() {};
virtual IXmlDeserializing *deserializeXmlStartElement(XmlDeserializer * deserializer, const QStringRe... | #ifndef QTXXML_IXMLDESERIALIZING_H
#define QTXXML_IXMLDESERIALIZING_H
#include "xmlglobal.h"
#include <QtCore>
QTX_BEGIN_NAMESPACE
class IXmlDeserializing
{
public:
virtual ~IXmlDeserializing() {};
virtual IXmlDeserializing *deserializeXmlStartElement(XmlDeserializer *deserializer, const QStringRef... | ---
+++
@@ -12,10 +12,33 @@
public:
virtual ~IXmlDeserializing() {};
- virtual IXmlDeserializing *deserializeXmlStartElement(XmlDeserializer *deserializer, const QStringRef & name, const QStringRef & namespaceUri, const QXmlStreamAttributes & attributes) = 0;
- virtual void deserializeXmlEndElem... | Add default implementations of IXmlDeserializing methods.
| apache-2.0 | jaredhanson/qtxxml,jaredhanson/qtxxml | 72c4accefc3d2ac122d650f696d04b189abc43be |
//===--------------------------------------------------------------------------------*- C++ -*-===//
// _
// | |
// __| | __ ___ ___ ___
// / _` |/ _` \ \ /\ / / '_ |
// | (_| | (_| |\ V V /| | | |
// ... | //===--------------------------------------------------------------------------------*- C++ -*-===//
// _
// | |
// __| | __ ___ ___ ___
// / _` |/ _` \ \ /\ / / '_ |
// | (_| | (_| |\ V V /| | | |
// ... | ---
+++
@@ -19,7 +19,8 @@
namespace dawn {
-/// @brief Simple logger to std::cout for debugging purposes
+/// @brief Simple logger to `std::cout` for debugging purposes
+/// @ingroup unittest
class UnittestLogger : public LoggerInterface {
public:
void log(LoggingLevel level, const std::string& message, con... | Add unittest to unittest group in doxygen
| mit | twicki/dawn,twicki/dawn,twicki/dawn,MeteoSwiss-APN/dawn,MeteoSwiss-APN/dawn,twicki/dawn,MeteoSwiss-APN/dawn | 6f16758e72150da6b2d98d8fab9fff35ab0777e7 |
#ifdef __cplusplus
extern "C" {
#endif
#include "lua.h"
#ifdef __cplusplus
}
#endif
#include "lualcm_lcm.h"
#include "lualcm_hash.h"
#include "lualcm_pack.h"
int luaopen_lcm_lcm(lua_State* L) {
ll_lcm_makemetatable(L);
ll_lcm_register_new(L);
return 1;
}
int luaopen_lcm__hash(lua_State* L) {
ll_hash_makemet... | #ifdef __cplusplus
extern "C" {
#endif
#include "lua.h"
#ifdef __cplusplus
}
#endif
#include "lualcm_lcm.h"
#include "lualcm_hash.h"
#include "lualcm_pack.h"
int luaopen_lcm_lcm(lua_State* L) {
ll_lcm_makemetatable(L);
ll_lcm_register_new(L);
return 1;
}
int luaopen_lcm__hash(lua_State* L) {
ll_hash_makemet... | ---
+++
@@ -30,6 +30,11 @@
return 1;
}
+#if defined(_WIN32)
+__declspec(dllexport)
+#elif __GNUC__ >= 4 || defined(__clang__)
+__attribute__((visibility ("default")))
+#endif
int luaopen_lcm(lua_State* L) {
lua_newtable(L);
| Fix export decoration of Lua module
Add missing export decoration for Lua module entry point. This fixes the
Lua module that stopped working when ELF hidden visibility was enabled.
(I'm not sure about Windows, as I don't have Lua on Windows, but I
suspect it never worked on Windows.)
| lgpl-2.1 | lcm-proj/lcm,adeschamps/lcm,adeschamps/lcm,bluesquall/lcm,lcm-proj/lcm,adeschamps/lcm,bluesquall/lcm,lcm-proj/lcm,adeschamps/lcm,adeschamps/lcm,lcm-proj/lcm,bluesquall/lcm,adeschamps/lcm,lcm-proj/lcm,adeschamps/lcm,lcm-proj/lcm,lcm-proj/lcm,bluesquall/lcm,adeschamps/lcm,bluesquall/lcm,lcm-proj/lcm,bluesquall/lcm,bluesq... | a1ec514adc224359043f267df88bf3dc07acb6b3 |
#if defined(__APPLE__) && defined(__MACH__)
/* for OSX */
# define Assembler "as -arch i386 -g -o %s -"
# define Fprefix "_"
#else
/* Default to linux */
# define Assembler "as --32 -g -o %s -"
# define Fprefix ""
#endif
| #if defined(__APPLE__) && defined(__MACH__)
/* for OSX */
# define Fprefix "_"
#else
/* Default to linux */
# define Fprefix ""
#endif
#define Assembler "as --32 -g -o %s -"
| ---
+++
@@ -1,8 +1,9 @@
#if defined(__APPLE__) && defined(__MACH__)
/* for OSX */
+# define Assembler "as -arch i386 -g -o %s -"
# define Fprefix "_"
#else
/* Default to linux */
+# define Assembler "as --32 -g -o %s -"
# define Fprefix ""
#endif
-#define Assembler "as --32 -g -o %s -" | Use the appropriate assembler for OSX.
| mit | 8l/myrddin,oridb/mc,oridb/mc,8l/myrddin,oridb/mc,oridb/mc | a20f753e2585ef887f7242e7bd8863836df65715 |
#include <cgreen/cgreen.h>
#include <cgreen/mocks.h>
void convert_to_uppercase(char *converted_string, const char *original_string) {
mock(converted_string, original_string);
}
Ensure(setting_content_of_out_parameter) {
expect(convert_to_uppercase,
when(original_string, is_equal_to_string("upper ca... | #include <cgreen/cgreen.h>
#include <cgreen/mocks.h>
void convert_to_uppercase(char *converted_string, const char *original_string) {
mock(converted_string, original_string);
}
Ensure(setting_content_of_out_parameter) {
expect(convert_to_uppercase,
when(original_string, is_equal_to_string("upper ca... | ---
+++
@@ -8,7 +8,7 @@
Ensure(setting_content_of_out_parameter) {
expect(convert_to_uppercase,
when(original_string, is_equal_to_string("upper case")),
- will_set_content_of_parameter(&converted_string,
+ will_set_content_of_parameter(converted_string,
... | [doc][set_parameter] Fix error in example code
| isc | cgreen-devs/cgreen,cgreen-devs/cgreen,cgreen-devs/cgreen,cgreen-devs/cgreen,cgreen-devs/cgreen | a67eb4aed742365cd175540372e5f94ff82f998c |
#pragma once
#include "bpftrace.h"
#include "log.h"
#include "pass_manager.h"
#include "visitors.h"
namespace bpftrace {
namespace ast {
class NodeCounter : public Visitor
{
public:
void Visit(Node &node) override
{
count_++;
Visitor::Visit(node);
}
size_t get_count()
{
return count_;
};
pri... | #pragma once
#include "bpftrace.h"
#include "log.h"
#include "pass_manager.h"
#include "visitors.h"
namespace bpftrace {
namespace ast {
class NodeCounter : public Visitor
{
public:
void Visit(Node &node)
{
count_++;
Visitor::Visit(node);
}
size_t get_count()
{
return count_;
};
private:
s... | ---
+++
@@ -10,7 +10,7 @@
class NodeCounter : public Visitor
{
public:
- void Visit(Node &node)
+ void Visit(Node &node) override
{
count_++;
Visitor::Visit(node); | Add override keyword to overridden method
| apache-2.0 | iovisor/bpftrace,iovisor/bpftrace,iovisor/bpftrace,iovisor/bpftrace | 3ab883a6e155fb1f6a36a4fe341abb97d15994d4 |
#include <stdlib.h>
#include "stdlib_noniso.h"
extern int ets_sprintf(char*, const char*, ...);
#define sprintf ets_sprintf
long atol_internal(const char* s)
{
long result = 0;
return result;
}
float atof_internal(const char* s)
{
float result = 0;
return result;
}
char * itoa (int val, char *s, int radix... | #include <stdlib.h>
#include "stdlib_noniso.h"
long atol_internal(const char* s)
{
return 0;
}
float atof_internal(const char* s)
{
return 0;
}
char * itoa (int val, char *s, int radix)
{
*s = 0;
return s;
}
char * ltoa (long val, char *s, int radix)
{
*s = 0;
return s;
}
char * utoa (unsigned int val... | ---
+++
@@ -1,37 +1,45 @@
#include <stdlib.h>
#include "stdlib_noniso.h"
+
+extern int ets_sprintf(char*, const char*, ...);
+
+#define sprintf ets_sprintf
+
long atol_internal(const char* s)
{
- return 0;
+ long result = 0;
+ return result;
}
float atof_internal(const char* s)
{
- return 0;
+ float r... | Add stubs for itoa, ltoa
| lgpl-2.1 | gguuss/Arduino,NullMedia/Arduino,gguuss/Arduino,edog1973/Arduino,jes/Arduino,NullMedia/Arduino,Links2004/Arduino,Links2004/Arduino,me-no-dev/Arduino,gguuss/Arduino,Adam5Wu/Arduino,quertenmont/Arduino,esp8266/Arduino,KaloNK/Arduino,quertenmont/Arduino,quertenmont/Arduino,me-no-dev/Arduino,NullMedia/Arduino,NextDevBoard/... | 4dd9b0481fedd5fb2386865525e4e186cd88b10a |
#pragma once
#include <spotify/json.hpp>
#include <noise/noise.h>
#include "noise/module/Wrapper.h"
#include "noise/module/CornerCombinerBase.h"
namespace spotify
{
namespace json
{
template<>
struct default_codec_t<noise::module::Wrapper<noise::module::CornerCombinerBase>>
{
using CornerCombinerBaseWrapper = n... | #pragma once
#include <spotify/json.hpp>
#include <noise/noise.h>
#include "noise/module/Wrapper.h"
#include "noise/module/CornerCombinerBase.h"
namespace spotify
{
namespace json
{
template<>
struct default_codec_t<noise::module::Wrapper<noise::module::CornerCombinerBase>>
{
using CornerCombinerBaseWrapper = n... | ---
+++
@@ -20,7 +20,7 @@
auto codec = codec::object<CornerCombinerBaseWrapper>();
codec.required("type", codec::eq<std::string>("CornerCombinerBase"));
codec.optional("Power",
- [](CornerCombinerBase CornerCombinerBaseWrapper& mw) {return mw.module.GetPower(); },
+ ... | Fix find&replace error in CornerCombinerBase codec
| mit | Wangscape/Wangscape,serin-delaunay/Wangscape,Wangscape/Wangscape,serin-delaunay/Wangscape,Wangscape/Wangscape | d2db26f1c08242b61709d6c297ad28e02acd7abd |
#ifndef LPSLCD_VALIDATOR_H
#define LPSLCD_VALIDATOR_H
#include "generator.h"
#include <cmath>
class Validator
{
public:
static bool Validate (const Code & code)
{
// | N - k |
// | ____ |
// | \ a + a | < L
// | /___... | #ifndef LPSLCD_VALIDATOR_H
#define LPSLCD_VALIDATOR_H
#include "generator.h"
class Validator
{
public:
static bool Validate (const Code & code)
{
// | N - k |
// | ____ |
// | \ a + a | < L
// | /___ i i + k |
... | ---
+++
@@ -2,6 +2,7 @@
#define LPSLCD_VALIDATOR_H
#include "generator.h"
+#include <cmath>
@@ -20,7 +21,7 @@
// N - length of sequence.
// L - limit of sidelobe level.
- const ssize_t sideLobeLimit = code.size () < 14 ? 1 : floor (code.size () / 14.0f);
+ ... | Fix compile error on gcc 6.3.0.
| mit | Gluttton/PslRK,Gluttton/PslRK,Gluttton/PslRK | ac6241f2f5f470d14938510c5cd04d1b8f2cb4af |
/*
* driver - driver for loading mruby source code
*/
#include <stdio.h>
#include "mruby.h"
#include "mruby/compile.h"
#include "mruby/irep.h"
/* The generated mruby bytecodes are stored in this array */
extern const char app_irep[];
static int check_and_print_errors(mrb_state* mrb)
{
if (mrb->exc) {
mrb_p(... | /*
* driver - driver for loading mruby source code
*/
#include <stdio.h>
#include "mruby.h"
#include "mruby/compile.h"
#include "mruby/irep.h"
/* The generated mruby bytecodes are stored in this array */
extern const char app_irep[];
int webruby_internal_run(mrb_state* mrb)
{
mrb_load_irep(mrb, app_irep);
ret... | ---
+++
@@ -11,20 +11,29 @@
/* The generated mruby bytecodes are stored in this array */
extern const char app_irep[];
+static int check_and_print_errors(mrb_state* mrb)
+{
+ if (mrb->exc) {
+ mrb_p(mrb, mrb_obj_value(mrb->exc));
+ return 1;
+ }
+ return 0;
+}
+
int webruby_internal_run(mrb_state* mrb)
... | Print exceptions to console if exist.
| mit | sadasant/webruby,sadasant/webruby,xxuejie/webruby,xxuejie/webruby | 2137ddf9dc59273c6444330246fd1c2c34586679 |
#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 | eco/cpp-ethereum,ethers/cpp-ethereum,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,programonauta/webthree-umbrella,smartbitcoin/cpp-ethereum,xeddmc/cpp-ethereum,d-das/cpp-ethereum,anthony-cros/cpp-ethereum,d-das/cpp-ethereum,ethers/cpp-ethereum,Sorceror32/go-get--u-github.com-tools-godep,PaulGrey30/go-g... | 5bc24913bf500b2cb1ba547a12c67f7ba3064ecc |
#include<stdio.h>
#include<assert.h>
int main () {
int i,j,k;
i = k = 0; j = 7;
while (i < 10) {
i++;
j = 7;
k = 5;
}
// assert(i == 10); // UNKNOWN!
// Removed this assertion as it is specific to flat ints and fails as soon as intervals or octagons correctly determine this
assert(k); // UN... | #include<stdio.h>
#include<assert.h>
int main () {
int i,j,k;
i = k = 0; j = 7;
while (i < 10) {
i++;
j = 7;
k = 5;
}
assert(i == 10); // UNKNOWN!
assert(k); // UNKNOWN!
// k is currenlty 0 \sqcup 5, if we unfolded the loops it would be 5
assert(j==7);
return 0;
}
| ---
+++
@@ -10,7 +10,8 @@
j = 7;
k = 5;
}
- assert(i == 10); // UNKNOWN!
+ // assert(i == 10); // UNKNOWN!
+ // Removed this assertion as it is specific to flat ints and fails as soon as intervals or octagons correctly determine this
assert(k); // UNKNOWN!
// k is currenlty 0 \sqcup 5, if we un... | Remove assert specific to flat ints that will fail when using more poerful domain
| mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | 9271608c9af71eec13691a5da6458c99791e833c |
#include "QuadCopterConfig.h"
#include "mavlink.h"
#define MAV_MAX_LEN 263
struct waypoint_t mission_wp_list = {0};
int waypoint_cnt = 0;
int cur_waypoint = 0;
mavlink_message_t msg;
uint8_t buf[MAV_MAX_LEN];
void push_waypoint_node(struct waypoint_t *waypoint)
{
}
void free_waypoint_list(struct waypoint_t *waypoi... | #include "QuadCopterConfig.h"
#include "mavlink.h"
#define MAV_MAX_LEN 263
struct waypoint_t mission_wp_list = {0};
int waypoint_cnt = 0;
int cur_waypoint = 0;
mavlink_message_t msg;
uint8_t buf[MAV_MAX_LEN];
void mission_read_waypoint_list()
{
}
void mission_write_waypoint_list()
{
}
void mission_clear_waypoint(... | ---
+++
@@ -9,6 +9,14 @@
mavlink_message_t msg;
uint8_t buf[MAV_MAX_LEN];
+
+void push_waypoint_node(struct waypoint_t *waypoint)
+{
+}
+
+void free_waypoint_list(struct waypoint_t *waypoint)
+{
+}
void mission_read_waypoint_list()
{ | Create the waypoint structure operating function prototype
| mit | ming6842/firmware,ming6842/firmware-new,ming6842/firmware-new,UrsusPilot/firmware,ming6842/firmware-new,UrsusPilot/firmware,fboris/firmware,fboris/firmware,UrsusPilot/firmware,ming6842/firmware,ming6842/firmware,fboris/firmware | 4b9d0d59b5436e3fc6ffe3452147e226277a3edf |
#ifndef __WORDCOUNTS_H__
#define __WORDCOUNTS_H__
#include <string>
#include <unordered_map>
#include <Rcpp.h>
typedef std::unordered_map<std::string, int> hashmap;
class WordCounts
{
private:
hashmap map;
public:
WordCounts();
~WordCounts();
void print();
Rcpp::DataFrame as_data_frame();
... | #ifndef __WORDCOUNTS_H__
#define __WORDCOUNTS_H__
#include <string>
#include <map>
#include <Rcpp.h>
typedef std::unordered_map<std::string, int> hashmap;
class WordCounts
{
private:
hashmap map;
public:
WordCounts();
~WordCounts();
void print();
Rcpp::DataFrame as_data_frame();
void add... | ---
+++
@@ -2,7 +2,7 @@
#define __WORDCOUNTS_H__
#include <string>
-#include <map>
+#include <unordered_map>
#include <Rcpp.h>
typedef std::unordered_map<std::string, int> hashmap; | Replace include <map> with <unordered_map>
| unlicense | zbwrnz/zwc | 1c871b33812d0c7f22b0490593485f6d7d6f80d6 |
/**
* Copyright (C) 2006-2016, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | /**
* Copyright (C) 2006-2016, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | ---
+++
@@ -21,6 +21,10 @@
#define MBEDTLS_ENTROPY_HARDWARE_ALT
#endif
+#if defined(DEVICE_RTC)
+#define MBEDTLS_HAVE_TIME_DATE
+#endif
+
#if defined(MBEDTLS_CONFIG_HW_SUPPORT)
#include "mbedtls_device.h"
#endif | Integrate mbed OS RTC with mbed TLS
The integration is simply to define the macro MBEDTLS_HAVE_TIME_DATE
in the features/mbedtls/platform/inc/platform_mbed.h. The default
implementation of the mbedtls_time() function provided by mbed TLS is
sufficient to work with mbed OS because both use POSIX functions.
| apache-2.0 | c1728p9/mbed-os,mbedmicro/mbed,andcor02/mbed-os,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,andcor02/mbed-os,kjbracey-arm/mbed,betzw/mbed-os,kjbracey-arm/mbed,kjbracey-arm/mbed,c1728p9/mbed-os,betzw/mbed-os,c1728p9/mbed-os,andcor02/mbed-os,andcor02/mbed-os,betzw/mbed-os,andcor02/mbed-os,c1728p9/mbed-os,... | 5ced8e4fdfa8fd781c0a39b29597762cedcedec6 |
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
* NOTE TO FreeBSD users. Install libexecinfo from
* ports/devel/libexecinfo and add -lexecinfo to LDFLAGS
* to add backtrace support.
*/
#include "e.h"
#include <execinfo.h>
/* a tricky little devil, requires e and it's libs to be built
* with the -rdynamic... | /*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#include "e.h"
#include <execinfo.h>
/* a tricky little devil, requires e and it's libs to be built
* with the -rdynamic flag to GCC for any sort of decent output.
*/
void e_sigseg_act(int x, siginfo_t *info, void *data){
void *array[255];
size_t size... | ---
+++
@@ -1,5 +1,8 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ * NOTE TO FreeBSD users. Install libexecinfo from
+ * ports/devel/libexecinfo and add -lexecinfo to LDFLAGS
+ * to add backtrace support.
*/
#include "e.h"
#include <execinfo.h> | Add note to help FreeBSD users.
git-svn-id: 0f3f1c46c6da7ffd142db61e503a7ff63af3a195@13781 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
| bsd-2-clause | jordemort/e17,jordemort/e17,jordemort/e17 | d4c28b0d467d667632489fa8f14d597f85a90f05 |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import <U... | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import <U... | ---
+++
@@ -9,7 +9,7 @@
#import <UIKit/UIKit.h>
-#import "../../ReactKit/Base/RCTBridgeModule.h"
+#import "RCTBridgeModule.h"
@interface RCTPushNotificationManager : NSObject <RCTBridgeModule>
| Fix build - remove relative import path
| bsd-3-clause | skevy/react-native,bsansouci/react-native,steben/react-native,udnisap/react-native,garrows/react-native,Lucifer-Kim/react-native,lzbSun/react-native,dabit3/react-native,Andreyco/react-native,darrylblake/react-native,DanielMSchmidt/react-native,christer155/react-native,zhangxq5012/react-native,janicduplessis/react-nativ... | 20a0bea197188ffa3e7abaffe030305bc63bd9c4 |
/* Copyright 2015 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Memory mapping */
#define CONFIG_FLASH_SIZE (64 * 1024)
#define CONFIG_FLASH_BANK_SIZE 0x1000
#define CONFIG_FLASH_ERASE_SIZE 0x0400 /* erase ... | /* Copyright 2015 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Memory mapping */
#define CONFIG_FLASH_SIZE (64 * 1024)
#define CONFIG_FLASH_BANK_SIZE 0x1000
#define CONFIG_FLASH_ERASE_SIZE 0x0800 /* erase ... | ---
+++
@@ -6,7 +6,7 @@
/* Memory mapping */
#define CONFIG_FLASH_SIZE (64 * 1024)
#define CONFIG_FLASH_BANK_SIZE 0x1000
-#define CONFIG_FLASH_ERASE_SIZE 0x0800 /* erase bank size */
+#define CONFIG_FLASH_ERASE_SIZE 0x0400 /* erase bank size */
#define CONFIG_FLASH_WRITE_SIZE 0x0002 /* minimum write size */
... | stm32f05x: Use correct erase block size of 1kB
Change erase block size to the correct 1kB.
BUG=chrome-os-partner:41959
BRANCH=none
TEST=with following CL, test software sync to PD MCU on
glados.
Change-Id: I6252e6344e50f00249ab105a90febd15599c936f
Signed-off-by: Alec Berg <1a4429eeda29095a12e19a73405f80f5b7f37a63@ch... | bsd-3-clause | coreboot/chrome-ec,coreboot/chrome-ec,akappy7/ChromeOS_EC_LED_Diagnostics,coreboot/chrome-ec,akappy7/ChromeOS_EC_LED_Diagnostics,coreboot/chrome-ec,akappy7/ChromeOS_EC_LED_Diagnostics,coreboot/chrome-ec,akappy7/ChromeOS_EC_LED_Diagnostics,akappy7/ChromeOS_EC_LED_Diagnostics,coreboot/chrome-ec | cb3e0ca7865d920bd89997046641b48c040e2a36 |
/* encrypted keys */
static const uint32_t internal_device_number = 0;
static const uint8_t internal_dk_list[][21] = {
{ 0 },
};
static const uint8_t internal_pk_list[][16] = {
{ 0 },
};
static const uint8_t internal_hc_list[][112] = {
{ 0 },
};
/* customize this function to "hide" the keys in the binary */... |
/* encrypted keys */
static const uint32_t internal_device_number = 0;
static const uint8_t internal_dk_list[][21] = {
{
},
};
static const uint8_t internal_pk_list[][16] = {
{
},
};
static const uint8_t internal_hc_list[][112] = {
{
},
};
/* customize this function to "hide" the keys in the binary */... | ---
+++
@@ -4,18 +4,15 @@
static const uint32_t internal_device_number = 0;
static const uint8_t internal_dk_list[][21] = {
- {
- },
+ { 0 },
};
static const uint8_t internal_pk_list[][16] = {
- {
- },
+ { 0 },
};
static const uint8_t internal_hc_list[][112] = {
- {
- },
+ { 0 },
};
/* custom... | Fix MSVC error C2133 : unknown size of multi-dimensional static const arrays (despite supposed support of C99). Have not confirmed if this breaks anything yet.
| lgpl-2.1 | mwgoldsmith/aacs,mwgoldsmith/aacs | 9c1035bc14a399b6bf5d45a8cce233d0fc340c53 |
#pragma once
class VolumeTransformation {
public:
/// <summary>
/// Transforms a given volume level to a new ("virtual") level based on a
/// formula or set of rules (e.g., a volume curve transformation).
/// </summary>
virtual float Apply(float vol) = 0;
/// <summary>
/// Given a transfor... | #pragma once
class VolumeTransformation {
public:
/// <summary>
/// Transforms a given volume level to a new ("virtual") level based on a
/// formula or set of rules (e.g., a volume curve transformation).
/// </summary>
virtual float Apply(float vol) = 0;
/// <summary>
/// Given a transfor... | ---
+++
@@ -14,4 +14,31 @@
/// by the ToVirtual() function).
/// </summary>
virtual float Revert(float vol) = 0;
+
+ /// <summary>
+ /// Applies several transformations supplied as a vector to the initial
+ /// value provided. The transformations are applied in order of appearance
+ /// in... | Add methods to apply multiple transformations
| bsd-2-clause | malensek/3RVX,malensek/3RVX,malensek/3RVX | 090cf42f736ad66ecc9360cf2770d83f8ea30574 |
/* stacks.h
* Copyright: (When this is determined...it will go here)
* CVS Info
* $Id$
* Overview:
* Stack handling routines for Parrot
* Data Structure and Algorithms:
* History:
* Notes:
* References:
*/
#if !defined(PARROT_STACKS_H_GUARD)
#define PARROT_STACKS_H_GUARD
#include "parrot/parr... | /* stacks.h
* Copyright: (When this is determined...it will go here)
* CVS Info
* $Id$
* Overview:
* Stack handling routines for Parrot
* Data Structure and Algorithms:
* History:
* Notes:
* References:
*/
#if !defined(PARROT_STACKS_H_GUARD)
#define PARROT_STACKS_H_GUARD
#include "parrot/parr... | ---
+++
@@ -40,7 +40,7 @@
struct Stack_Entry *push_generic_entry(struct Perl_Interp *, void *thing, INTVAL type, void *cleanup);
void *pop_generic_entry(struct Perl_Interp *, void *where, INTVAL type);
-void toss_geleric_entry(struct Perl_Interp *, INTVAL type);
+void toss_generic_entry(struct Perl_Interp *, INTV... | Fix typo in function name
git-svn-id: 6e74a02f85675cec270f5d931b0f6998666294a3@255 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
| artistic-2.0 | FROGGS/parrot,parrot/parrot,youprofit/parrot,tewk/parrot-select,youprofit/parrot,tewk/parrot-select,tkob/parrot,gagern/parrot,FROGGS/parrot,gagern/parrot,FROGGS/parrot,tewk/parrot-select,parrot/parrot,tkob/parrot,gagern/parrot,parrot/parrot,gitster/parrot,youprofit/parrot,tkob/parrot,tkob/parrot,tkob/parrot,gagern/parr... | 12335f0514a13e146f88c7ada3416d2ab99aa5a8 |
int sum_of_even_squares(int* a, unsigned int length) {
int total = 0;
for (unsigned int i = 0; i < length; i++) {
if (a[i] % 2 == 0) {
total += a[i] * a[i];
}
}
return total;
}
#include <assert.h>
static int a[] = {7, 3, -8, 4, 1, 0, 11, 2};
int main() {
assert(sum_of_... | int sum_of_even_squares(int* a, unsigned int length) {
int total = 0;
for (unsigned int i = 0; i < length; i++) {
if (a[i] % 2 == 0) {
total += a[i] * a[i];
}
}
return total;
}
| ---
+++
@@ -7,3 +7,20 @@
}
return total;
}
+
+#include <assert.h>
+
+static int a[] = {7, 3, -8, 4, 1, 0, 11, 2};
+
+int main() {
+ assert(sum_of_even_squares(a, 0) == 0);
+ assert(sum_of_even_squares(a, 1) == 0);
+ assert(sum_of_even_squares(a, 2) == 0);
+ assert(sum_of_even_squares(a, 3) == 6... | Add asserts to C sum of even squares
| mit | rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/poly... | 0a422f6007fab2b8c41cb0c0b6d76e941b3fb913 |
// Copyright 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#pragma once
#include "Stdafx.h"
#include "include/cef_string_visitor.h"
namespace CefSharp
{
private class StringVisitor : public CefStringVi... | // Copyright 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#pragma once
#include "Stdafx.h"
#include "include/cef_string_visitor.h"
namespace CefSharp
{
private class StringVisitor : public CefStringVi... | ---
+++
@@ -11,7 +11,7 @@
{
private class StringVisitor : public CefStringVisitor
{
- private:
+ private:
gcroot<IStringVisitor^> _visitor;
public: | Fix minor indentation issue (formatting)
| bsd-3-clause | joshvera/CefSharp,windygu/CefSharp,haozhouxu/CefSharp,NumbersInternational/CefSharp,jamespearce2006/CefSharp,Livit/CefSharp,zhangjingpu/CefSharp,illfang/CefSharp,VioletLife/CefSharp,yoder/CefSharp,rlmcneary2/CefSharp,NumbersInternational/CefSharp,zhangjingpu/CefSharp,Haraguroicha/CefSharp,wangzheng888520/CefSharp,rlmcn... | 3f76bfade6c09f340aa3c5d1d53ea9bbb736761f |
/* Copyright (C) 2002 Timo Sirainen */
#include "common.h"
#include "mail-namespace.h"
#include "commands.h"
bool cmd_create(struct client_command_context *cmd)
{
struct mail_namespace *ns;
const char *mailbox, *full_mailbox;
bool directory;
size_t len;
/* <mailbox> */
if (!client_read_string_args(cmd, 1, &mai... | /* Copyright (C) 2002 Timo Sirainen */
#include "common.h"
#include "mail-namespace.h"
#include "commands.h"
bool cmd_create(struct client_command_context *cmd)
{
struct mail_namespace *ns;
const char *mailbox, *full_mailbox;
bool directory;
size_t len;
/* <mailbox> */
if (!client_read_string_args(cmd, 1, &mai... | ---
+++
@@ -28,8 +28,8 @@
informing us that it wants to create children under this
mailbox. */
directory = TRUE;
- mailbox = t_strndup(mailbox, len-1);
- full_mailbox = t_strndup(full_mailbox, strlen(full_mailbox)-1);
+ mailbox = t_strndup(mailbox, strlen(mailbox)-1);
+ full_mailbox =... | CREATE ns_prefix/box/ didn't work right when namespace prefix existed.
| mit | LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot | 08cd66d0c280fc5c89c40e13156bb298f7f3a49d |
/*
* Copyright 2014, General Dynamics C4 Systems
*
* This software may be distributed and modified according to the terms of
* the GNU General Public License version 2. Note that NO WARRANTY is provided.
* See "LICENSE_GPLv2.txt" for details.
*
* @TAG(GD_GPL)
*/
#ifndef __ARCH_TYPES_H
#define __ARCH_TYPES_H
#... | /*
* Copyright 2014, General Dynamics C4 Systems
*
* This software may be distributed and modified according to the terms of
* the GNU General Public License version 2. Note that NO WARRANTY is provided.
* See "LICENSE_GPLv2.txt" for details.
*
* @TAG(GD_GPL)
*/
#ifndef __ARCH_TYPES_H
#define __ARCH_TYPES_H
#... | ---
+++
@@ -11,10 +11,15 @@
#ifndef __ARCH_TYPES_H
#define __ARCH_TYPES_H
+#include <config.h>
#include <assert.h>
#include <stdint.h>
+#if defined(CONFIG_ARCH_IA32)
compile_assert(long_is_32bits, sizeof(unsigned long) == 4)
+#elif defined(CONFIG_ARCH_X86_64)
+compile_assert(long_is_64bits, sizeof(unsigned l... | x64: Check size of unsigned long
| bsd-2-clause | cmr/seL4,cmr/seL4,cmr/seL4 | 726f5edaf516838c22f9c8e89b7abee974a84b94 |
/*
* Copyright (c) 2016 Jan Hoffmann
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "lib/data.h"
#include "windows/main_window.h"
#include <pebble... | /*
* Copyright (c) 2016 Jan Hoffmann
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "windows/main_window.h"
#include <pebble.h>
static void init... | ---
+++
@@ -6,16 +6,56 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#include "lib/data.h"
#include "windows/main_window.h"
#include <pebble.h>
static void init(void) {
- main_window_push();
+ if (data_init_receiver()) {
+ main_window_push();
+ }
}
+# ifndef PBL_PLATFORM_AP... | Set fast sellers as app glance on supported watches
| mpl-2.0 | janh/mensa-stuttgart,janh/mensa-stuttgart,janh/mensa-stuttgart,janh/mensa-stuttgart | 39a74c1552c74910eaac60ed8574ef34e5e5ad5c |
//
// WebHereTests.h
// WebHereTests
//
// Created by Rui D Lopes on 25/03/13.
// Copyright (c) 2013 Rui D Lopes. All rights reserved.
//
#import <SenTestingKit/SenTestingKit.h>
#import <Kiwi/Kiwi.h>
#import <Nocilla/Nocilla.h>
#import <OCLogTemplate/OCLogTemplate.h>
#import <WebHere/WebHere.h>
// Fixtures
#impor... | //
// WebHereTests.h
// WebHereTests
//
// Created by Rui D Lopes on 25/03/13.
// Copyright (c) 2013 Rui D Lopes. All rights reserved.
//
#import <Kiwi/Kiwi.h>
#import <Nocilla/Nocilla.h>
#import <OCLogTemplate/OCLogTemplate.h>
#import <WebHere/WebHere.h>
// Fixtures
#import "WHPerson.h"
#import "WHAdmin.h"
#impo... | ---
+++
@@ -6,6 +6,7 @@
// Copyright (c) 2013 Rui D Lopes. All rights reserved.
//
+#import <SenTestingKit/SenTestingKit.h>
#import <Kiwi/Kiwi.h>
#import <Nocilla/Nocilla.h>
#import <OCLogTemplate/OCLogTemplate.h>
@@ -19,3 +20,8 @@
#import "WHNSObject.h"
#import "WHLoginForm.h"
+# define LOGGING_ENABLED ... | Add SenTestingKit to test targets
| mit | noughts/WebHere,noughts/WebHere,noughts/WebHere,noughts/WebHere,rdlopes/WebHere,rdlopes/WebHere,rdlopes/WebHere | fe6eb2643bf697cd752a0d24b3e278dd42f16644 |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | ---
+++
@@ -18,6 +18,12 @@
#include <fmt/compile.h>
+#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ <= 8
+// Forcefully disable compiled format strings for GCC 8 & below until fmt is
+// updated to do this automatically.
+#undef FMT_COMPILE
+#endif
+
// Fallback to runtime format string processing for... | Disable compiled format for GCC 8 & below
Summary: As per title, as fmt doesn't currently handle them well.
Reviewed By: vitaut
Differential Revision: D26004515
fbshipit-source-id: dbbd1e6550fa10c4a6fcb0fc5597887c9411ca70
| apache-2.0 | facebook/folly,facebook/folly,facebook/folly,facebook/folly,facebook/folly | bc7bad10693b5c6616a424ff64278a6eeb8925da |
/*-------------------------------------------------------------------------
*
* FILE
* pqxx/util.h
*
* DESCRIPTION
* Various utility definitions for libpqxx
*
* Copyright (c) 2001-2004, Jeroen T. Vermeulen <jtv@xs4all.nl>
*
* See COPYING for copyright license. If you did not receive a file called
*... | /*-------------------------------------------------------------------------
*
* FILE
* pqxx/util.h
*
* DESCRIPTION
* Various utility definitions for libpqxx
*
* Copyright (c) 2001-2004, Jeroen T. Vermeulen <jtv@xs4all.nl>
*
* See COPYING for copyright license. If you did not receive a file called
*... | ---
+++
@@ -17,10 +17,13 @@
#ifndef PQXX_UTIL_H
#define PQXX_UTIL_H
+#if !defined(PQXXYES_I_KNOW_DEPRECATED_HEADER)
+#define PQXXYES_I_KNOW_DEPRECATED_HEADER
#if defined(PQXX_HAVE_CPP_WARNING)
#warning "Deprecated libpqxx header included. Use headers without '.h'"
#elif defined(PQXX_HAVE_CPP_PRAGMA_MESSAGE)
... | Allow suppression of "deprecated header" warning
| bsd-3-clause | mpapierski/pqxx,mpapierski/pqxx,mpapierski/pqxx | eff847ce8d402b663bf19af3d16da2e3f5cb2bbd |
//
// MGSFragariaPrefsViewController.h
// Fragaria
//
// Created by Jonathan on 22/10/2012.
//
//
#import <Cocoa/Cocoa.h>
/**
* MGSFragariaPrefsViewController provides a base class for other Fragaria
* preferences controllers. It is not implemented directly anywhere.
* @see MGSFragariaFontsAndColoursPrefsVie... | //
// MGSFragariaPrefsViewController.h
// Fragaria
//
// Created by Jonathan on 22/10/2012.
//
//
#import <Cocoa/Cocoa.h>
/**
* MGSFragariaPrefsViewController provides a base class for other Fragaria
* preferences controllers. It is not implemented directly anywhere.
* @see MGSFragariaFontsAndColorsPrefsView... | ---
+++
@@ -11,14 +11,15 @@
/**
* MGSFragariaPrefsViewController provides a base class for other Fragaria
* preferences controllers. It is not implemented directly anywhere.
- * @see MGSFragariaFontsAndColorsPrefsViewController.h
- * @see MGSFragariaTextEditingPrefsViewController.h
+ * @see MGSFragariaFonts... | Add @param description for AppleDoc.
| apache-2.0 | shysaur/Fragaria,shysaur/Fragaria,vakoc/Fragaria,shysaur/Fragaria,shysaur/Fragaria,bitstadium/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,bitstadium/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,vakoc/Frag... | 145358e9c07bad314111000776ea0d42b97461d0 |
#if defined(__i386__)
#define NEED_I386_TAS_ASM
#endif
#if defined(__sparc__)
#define NEED_SPARC_TAS_ASM
#endif
#define HAS_TEST_AND_SET
typedef unsigned char slock_t;
/* This is marked as obsoleted in BSD/OS 4.3. */
#ifndef EAI_ADDRFAMILY
#define EAI_ADDRFAMILY 1
#endif
| #if defined(__i386__)
#define NEED_I386_TAS_ASM
#endif
#if defined(__sparc__)
#define NEED_SPARC_TAS_ASM
#endif
#define HAS_TEST_AND_SET
typedef unsigned char slock_t;
| ---
+++
@@ -8,3 +8,8 @@
#define HAS_TEST_AND_SET
typedef unsigned char slock_t;
+
+/* This is marked as obsoleted in BSD/OS 4.3. */
+#ifndef EAI_ADDRFAMILY
+#define EAI_ADDRFAMILY 1
+#endif | Add define for missing EAI_ADDRFAMILY in BSD/OS 4.3.
| agpl-3.0 | tpostgres-projects/tPostgres,yuanzhao/gpdb,chrishajas/gpdb,ahachete/gpdb,Postgres-XL/Postgres-XL,rubikloud/gpdb,lpetrov-pivotal/gpdb,yuanzhao/gpdb,greenplum-db/gpdb,foyzur/gpdb,atris/gpdb,greenplum-db/gpdb,yuanzhao/gpdb,postmind-net/postgres-xl,50wu/gpdb,rvs/gpdb,cjcjameson/gpdb,kaknikhil/gpdb,Chibin/gpdb,Quikling/gpdb... | 77645b99f438be1a0906126be8052ad36761b1cd |
// Copyright 2018 The Crashpad Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ... | // Copyright 2018 The Crashpad Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ... | ---
+++
@@ -20,8 +20,11 @@
#include <features.h>
// glibc for 64-bit ARM uses different names for these structs prior to 2.20.
+// However, Debian's glibc 2.19-8 backported the change so it's not sufficient
+// to only test the version. user_pt_regs and user_fpsimd_state are actually
+// defined in <asm/ptrace.h>... | Fix compilation issue on arm64 with Debian's glibc 2.19
Fuchsia's glibc is derived from Debian so it's causing issues on
Fuchsia.
Change-Id: I46368eb08f7cc7338783f115869e5c761f35e465
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2630288
Reviewed-by: Joshua Peraza <f5809a5e35ec7e1bd0e25cb... | apache-2.0 | chromium/crashpad,chromium/crashpad,chromium/crashpad | 37dd8f83def8e85cdf1b71528832980021078d86 |
// -*- c++ -*-
#ifndef QT_CAM_IMAGE_MODE_H
#define QT_CAM_IMAGE_MODE_H
#include "qtcammode.h"
#include <gst/pbutils/encoding-profile.h>
class QtCamDevicePrivate;
class QtCamImageModePrivate;
class QtCamImageSettings;
class QtCamImageMode : public QtCamMode {
Q_OBJECT
public:
QtCamImageMode(QtCamDevicePrivate *... | // -*- c++ -*-
#ifndef QT_CAM_IMAGE_MODE_H
#define QT_CAM_IMAGE_MODE_H
#include "qtcammode.h"
#include <gst/pbutils/encoding-profile.h>
class QtCamDevicePrivate;
class QtCamImageModePrivate;
class QtCamImageSettings;
class QtCamImageMode : public QtCamMode {
Q_OBJECT
public:
QtCamImageMode(QtCamDevicePrivate *... | ---
+++
@@ -26,9 +26,6 @@
void setProfile(GstEncodingProfile *profile);
-signals:
- void imageSaved(const QString& fileName);
-
protected:
virtual void start();
virtual void stop(); | Remove imageSaved() signal as it is old code.
| lgpl-2.1 | mlehtima/cameraplus,mer-hybris-kis3/cameraplus,mer-hybris-kis3/cameraplus,alinelena/cameraplus,mer-hybris-kis3/cameraplus,alinelena/cameraplus,mlehtima/cameraplus,alinelena/cameraplus,foolab/cameraplus,mer-hybris-kis3/cameraplus,foolab/cameraplus,foolab/cameraplus,mlehtima/cameraplus,foolab/cameraplus,mlehtima/camerapl... | 60288500c0eca5d620a81637bc4d0d7e290befd4 |
#ifndef _TILESET_H_
#define _TILESET_H_
#include <SDL.h>
typedef struct tileset
{
SDL_Surface *image;
SDL_Rect *clip;
int length;
} tileset;
int tilesetLoad(tileset *tSet, char *fileName, int width, int height, int rowLen, int length);
void tilesetUnload(tileset *tSet);
#endif /* _TILESET_H_ */
| #ifndef _TILESET_H_
#define _TILESET_H_
#include <SDL.h>
//#define TILESET_ROW_LENGTH 8
typedef struct tileset
{
SDL_Surface *image;
SDL_Rect *clip;
int length;
} tileset;
int tilesetLoad(tileset *tSet, char *fileName, int width, int height, int rowLen, int length);
void tilesetUnload(tileset *tSet);
#endif /* ... | ---
+++
@@ -2,8 +2,6 @@
#define _TILESET_H_
#include <SDL.h>
-
-//#define TILESET_ROW_LENGTH 8
typedef struct tileset
{ | Remove redundant commended out code
| mit | zear/shisen-seki,zear/shisen-seki | 87c0785d81c31a969bbf8029363ea042fdd82587 |
/* $Id$
Everything needed by the C demo programs.
Created to avoid junking up plplot.h with this stuff.
*/
#ifndef __PLCDEMOS_H__
#define __PLCDEMOS_H__
#include <math.h>
#include <string.h>
#include <ctype.h>
#include "plConfig.h"
#include "plplot.h"
/* define PI if not defined by math.h */
/* Actually M_PI se... | /* $Id$
Everything needed by the C demo programs.
Created to avoid junking up plplot.h with this stuff.
*/
#ifndef __PLCDEMOS_H__
#define __PLCDEMOS_H__
#include "plConfig.h"
#include "plplot.h"
#include <math.h>
#include <string.h>
#include <ctype.h>
/* define PI if not defined by math.h */
/* Actually M_PI see... | ---
+++
@@ -7,11 +7,12 @@
#ifndef __PLCDEMOS_H__
#define __PLCDEMOS_H__
-#include "plConfig.h"
-#include "plplot.h"
#include <math.h>
#include <string.h>
#include <ctype.h>
+
+#include "plConfig.h"
+#include "plplot.h"
/* define PI if not defined by math.h */
| Move system header files to top in order to get rid of redefine warnings for Visual C++.
svn path=/trunk/; revision=9609
| lgpl-2.1 | FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot | dd45649d55a60797d3d8b4fe665862df0cbf6a79 |
// LAF OS Library
// Copyright (C) 2022 Igara Studio S.A.
// Copyright (C) 2015-2016 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifndef OS_GL_CONTEXT_INCLUDED
#define OS_GL_CONTEXT_INCLUDED
#pragma once
namespace os {
class GLContext {
pu... | // LAF OS Library
// Copyright (C) 2022 Igara Studio S.A.
// Copyright (C) 2015-2016 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifndef OS_GL_CONTEXT_INCLUDED
#define OS_GL_CONTEXT_INCLUDED
#pragma once
namespace os {
class GLContext {
pu... | ---
+++
@@ -15,7 +15,7 @@
public:
virtual ~GLContext() { }
virtual bool isValid() { return false; }
- virtual bool createGLContext() { }
+ virtual bool createGLContext() { return false; }
virtual void destroyGLContext() { }
virtual void makeCurrent() { }
virtual void swapBuffers() { } | Fix GLContext::createGLContext() impl (must return a value)
| mit | aseprite/laf,aseprite/laf | 8f91e164d1d23a3b0dc751bc0f9185af27dcb2c7 |
#include <stdio.h>
// k&r farenheit to celcius table
int main()
{
float fahr, celsius;
int lower, upper, step;
lower = 0;
upper = 300;
step = 20;
// first print table header
printf("%s %s\n", "Fahr", "Cels");
// then calculate values and print them to table
fahr = lower;
wh... | #include <stdio.h>
// k&r farenheit to celcius table
int main()
{
int fahr, celsius;
int lower, upper, step;
lower = 0;
upper = 300;
step = 20;
fahr = lower;
while (fahr <= upper) {
celsius = 5 * (fahr - 32) / 9;
printf("%d\t%d\t\n", fahr, celsius);
fahr = fahr + ... | ---
+++
@@ -4,17 +4,21 @@
int main()
{
- int fahr, celsius;
+ float fahr, celsius;
int lower, upper, step;
lower = 0;
upper = 300;
step = 20;
+ // first print table header
+ printf("%s %s\n", "Fahr", "Cels");
+
+ // then calculate values and print them to table
fahr = ... | Use floats instead of ints, print table header
| mit | oldhill/halloween,oldhill/halloween,oldhill/halloween,oldhill/halloween | 23c59a06b001f447802f8a118203baca17ee2c5f |
/*
* Copyright IBM Corp. 2001,2008
*
* This file contains the IRQ specific code for hvc_console
*
*/
#include <linux/interrupt.h>
#include "hvc_console.h"
static irqreturn_t hvc_handle_interrupt(int irq, void *dev_instance)
{
/* if hvc_poll request a repoll, then kick the hvcd thread */
if (hvc_poll(dev_insta... | /*
* Copyright IBM Corp. 2001,2008
*
* This file contains the IRQ specific code for hvc_console
*
*/
#include <linux/interrupt.h>
#include "hvc_console.h"
static irqreturn_t hvc_handle_interrupt(int irq, void *dev_instance)
{
/* if hvc_poll request a repoll, then kick the hvcd thread */
if (hvc_poll(dev_insta... | ---
+++
@@ -37,7 +37,7 @@
void notifier_del_irq(struct hvc_struct *hp, int irq)
{
- if (!irq)
+ if (!hp->irq_requested)
return;
free_irq(irq, hp);
hp->irq_requested = 0; | hvc_console: Call free_irq() only if request_irq() was successful
Only call free_irq if we marked the request_irq has having succeeded
instead of whenever the the sub-driver identified the interrupt to use.
Signed-off-by: Milton Miller <8bd50e0fc26e21e23b28837d9acdf866b237c39d@bga.com>
Signed-off-by: Benjamin Herrens... | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_k... | c21f7a527f7757a0e246cea521a5dd3b8e1224d5 |
#ifndef THM_CONFIG_HG
#define THM_CONFIG_HG
// Block label type (must be unsigned)
// # of blocks <= MAX(thm_Blklab)
typedef uint32_t thm_Blklab;
#endif
| #ifndef THM_CONFIG_HG
#define THM_CONFIG_HG
// Vertex ID type
// # of vertices < MAX(thm_Vid)
typedef unsigned long thm_Vid;
// Arc reference type
// # of arcs in any digraph <= MAX(thm_Arcref)
typedef unsigned long thm_Arcref;
// Block label type
// # of blocks < MAX(thm_Blklab)
typedef unsigned long thm_Blklab;
#... | ---
+++
@@ -1,16 +1,8 @@
#ifndef THM_CONFIG_HG
#define THM_CONFIG_HG
-// Vertex ID type
-// # of vertices < MAX(thm_Vid)
-typedef unsigned long thm_Vid;
-
-// Arc reference type
-// # of arcs in any digraph <= MAX(thm_Arcref)
-typedef unsigned long thm_Arcref;
-
-// Block label type
-// # of blocks < MAX(thm_Blkl... | Move typedef to digraph header
| lgpl-2.1 | fsavje/scclust,fsavje/scclust,fsavje/scclust | 1faf4681396ca217899ace40a2b60b04a2a8e3c3 |
/*
* Copyright (C) 2016, Michiel Sikma <michiel@sikma.org>
* MIT License
*/
#include <stdio.h>
#include "src/game.h"
#include "src/jukebox.h"
/**
* Starts the jukebox.
*/
void start_jukebox() {
start_game();
}
| /*
* Copyright (C) 2016, Michiel Sikma <michiel@sikma.org>
* MIT License
*/
#include <stdio.h>
#include "game.h"
#include "jukebox.h"
/**
* Starts the jukebox.
*/
void start_jukebox() {
start_game();
}
| ---
+++
@@ -5,8 +5,8 @@
#include <stdio.h>
-#include "game.h"
-#include "jukebox.h"
+#include "src/game.h"
+#include "src/jukebox.h"
/**
* Starts the jukebox. | Use correct paths relative to root
| mit | msikma/ceegee,msikma/ceegee | 93a0f6dbddc577afc67be7de7ac258907f405e7d |
#include "ambient_light.h"
#include "tock.h"
typedef struct {
int intensity;
bool fired;
} ambient_light_data_t;
// internal callback for faking synchronous reads
static void ambient_light_cb(int intensity,
__attribute__ ((unused)) int unused1,
__attribute... | #include "ambient_light.h"
#include "tock.h"
typedef struct {
int intensity;
bool fired;
} ambient_light_data_t;
// callback for synchronous reads
static void ambient_light_cb(int intensity,
__attribute__ ((unused)) int unused1,
__attribute__ ((unused)) in... | ---
+++
@@ -6,7 +6,7 @@
bool fired;
} ambient_light_data_t;
-// callback for synchronous reads
+// internal callback for faking synchronous reads
static void ambient_light_cb(int intensity,
__attribute__ ((unused)) int unused1,
__attribute__ ((unused)... | Revert "Updating ambient light to 2.0 API."
This reverts commit 9a9df3a205dcebfcb358b60ef11df54698ec6dce.
| apache-2.0 | tock/libtock-c,tock/libtock-c,tock/libtock-c | 8c040708668c09654682c3133c3c16aa691f3bf9 |
#include <stdlib.h>
#include <string.h>
#include "config.h"
struct Config load_config(char *arquivo) {
}
void load_idioma(struct Idioma *idioma, char *key, char *content){
}
void clean_idioma(struct Idioma *idioma) {
free(idioma);
}
| #include <stdlib.h>
#include <string.h>
#include "config.h"
struct Config load_config(char *arquivo) {
}
struct Idioma load_idioma(char *idioma){
char *local_idioma;
int loaded;
strcpy(local_idioma, "local aqui");
strcat(local_idioma, idioma);
strcat(local_idioma, ".conf");
loaded = 1;
while(loaded) ... | ---
+++
@@ -7,36 +7,12 @@
}
-struct Idioma load_idioma(char *idioma){
- char *local_idioma;
- int loaded;
-
- strcpy(local_idioma, "local aqui");
- strcat(local_idioma, idioma);
- strcat(local_idioma, ".conf");
-
-
-
- loaded = 1;
- while(loaded) {
-
- strcpy(local_idioma, "local aqui");
- strcat(local_i... | Change functions to handle idioma
| apache-2.0 | ezefranca/LogiKiD-Allegro5-Game,ezefranca/LogiKiD-Allegro5-Game,ezefranca/LogiKiD-Allegro5-Game | 2a3828f1e477561e574fb9ee4525641832e3dcd9 |
/*
* Copyright (C) 2013-2014 Daniel Nicoletti <dantti12@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any late... | /*
* Copyright (C) 2013-2014 Daniel Nicoletti <dantti12@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any late... | ---
+++
@@ -29,9 +29,7 @@
struct uwsgi_cutelyst {
char *app;
int reload;
-};
-
-extern struct uwsgi_cutelyst options;
+} options;
#ifdef __cplusplus
} | Revert "Possibly fixed alignment warning"
This reverts commit 3111a7ae00cf12f0f8e0f357fb122b24470e4051.
| bsd-3-clause | buschmann23/cutelyst,buschmann23/cutelyst,cutelyst/cutelyst,simonaw/cutelyst,simonaw/cutelyst,cutelyst/cutelyst,buschmann23/cutelyst,cutelyst/cutelyst | ab55a43fcd48953d0d76599671efa6f5a82bee80 |
/* vim: set filetype=cpp: */
/** Header file for canonpy.
*
* Currently it merely contains the definition of the object structure of the
* classes defined in canonpy. They are put here in case a C API is intended
* to be added for canonpy.
*/
#ifndef DRUDGE_CANONPY_H
#define DRUDGE_CANONPY_H
#include <Python.h... | /* vim: set filetype=cpp: */
/** Header file for canonpy.
*
* Currently it merely contains the definition of the object structure of the
* classes defined in canonpy. They are put here in case a C API is intended
* to be added for canonpy.
*/
#ifndef DRUDGE_CANONPY_H
#define DRUDGE_CANONPY_H
#include <Python.h... | ---
+++
@@ -40,10 +40,13 @@
// ----------------------
//
+using Transv = Sims_transv<Simple_perm>;
+using Transv_ptr = std::unique_ptr<Transv>;
+
// clang-format off
typedef struct {
PyObject_HEAD
- std::unique_ptr<Sims_transv<Simple_perm>> transv;
+ Transv_ptr transv;
} Group_object;
// clang-form... | Add type aliases for Group
With these aliases, the code for permutation group manipulation can be
written more succinctly.
| mit | tschijnmo/drudge,tschijnmo/drudge,tschijnmo/drudge | 54a13d2d9754a44f26dbe5f8b4485267a13a0217 |
#ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning and copyright year
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 8
#define CLIENT_VERSION_REVISION 7
#define CLIENT_VERSION_BUILD ... | #ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning and copyright year
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 8
#define CLIENT_VERSION_REVISION 6
#define CLIENT_VERSION_BUILD ... | ---
+++
@@ -8,11 +8,11 @@
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 8
-#define CLIENT_VERSION_REVISION 6
+#define CLIENT_VERSION_REVISION 7
#define CLIENT_VERSION_BUILD 0
// Set to true... | Mark Devcoin release version 0.8.7.0.
| mit | coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin | f285f813cc3d270186ea4789da82cb8b8c9ff1f9 |
//
// main.c
// fast-xattr-test
//
// Created by David Schlachter on 2015-07-09.
// Copyright (c) 2015 David Schlachter. All rights reserved.
//
#include <stdio.h>
#include <sys/xattr.h>
#include <stdlib.h>
int main(int argc, const char * argv[]) {
const char *path;
const char *name;
void *value = mal... | //
// main.c
// fast-xattr-test
//
// Created by David Schlachter on 2015-07-09.
// Copyright (c) 2015 David Schlachter. All rights reserved.
//
#include <stdio.h>
int main(int argc, const char * argv[]) {
// insert code here...
printf("Hello, World!\n");
return 0;
}
| ---
+++
@@ -7,9 +7,25 @@
//
#include <stdio.h>
+#include <sys/xattr.h>
+#include <stdlib.h>
int main(int argc, const char * argv[]) {
- // insert code here...
- printf("Hello, World!\n");
- return 0;
+ const char *path;
+ const char *name;
+ void *value = malloc(15);
+ size_t size;
+ u_... | Set up the getxattr function
| mit | davidschlachter/fast-xattr-test | eaa2b2534e5d7115be1d5d9efcfe1ce28e0b0721 |
//===-- memory.c - String functions for the LLVM libc Library ----*- C -*-===//
//
// A lot of this code is ripped gratuitously from glibc and libiberty.
//
//===---------------------------------------------------------------------===//
#include <stdlib.h>
// If we're not being compiled with GCC, turn off attributes... | //===-- memory.c - String functions for the LLVM libc Library ----*- C -*-===//
//
// A lot of this code is ripped gratuitously from glibc and libiberty.
//
//===----------------------------------------------------------------------===//
#include <stdlib.h>
void *malloc(size_t) __attribute__((weak));
void free(void ... | ---
+++
@@ -2,14 +2,29 @@
//
// A lot of this code is ripped gratuitously from glibc and libiberty.
//
-//===----------------------------------------------------------------------===//
+//===---------------------------------------------------------------------===//
#include <stdlib.h>
-void *malloc(size_t) _... | Disable __attribute__((weak)) on Mac OS X and other lame platforms.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@10489 91177308-0d34-0410-b5e6-96231b3b80d8
| bsd-2-clause | dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie... | b49fa616d47a39193c59d610964276ddb1df732a |
/* Tuple object interface */
#ifndef Py_STRUCTSEQ_H
#define Py_STRUCTSEQ_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct PyStructSequence_Field {
char *name;
char *doc;
} PyStructSequence_Field;
typedef struct PyStructSequence_Desc {
char *name;
char *doc;
struct PyStructSequence_Field *fields;
int n_... |
/* Tuple object interface */
#ifndef Py_STRUCTSEQ_H
#define Py_STRUCTSEQ_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct PyStructSequence_Field {
char *name;
char *doc;
} PyStructSequence_Field;
typedef struct PyStructSequence_Desc {
char *name;
char *doc;
struct PyStructSequence_Field *... | ---
+++
@@ -6,7 +6,7 @@
#ifdef __cplusplus
extern "C" {
#endif
-
+
typedef struct PyStructSequence_Field {
char *name;
char *doc;
@@ -21,9 +21,9 @@
extern char* PyStructSequence_UnnamedField;
-PyAPI_FUNC(void) PyStructSequence_InitType(PyTypeObject *type,
- PyStructSequence_Desc *de... | Clean up some whitespace to be consistent with Python's C style.
| mit | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator | c8fb57c122aadfb83c8e9efa9904cc664aa4b786 |
enum FlagEnum
{
A = 1 << 0,
B = 1 << 1,
C = 1 << 2,
D = 1 << 3,
};
enum FlagEnum2
{
A1 = 1 << 0,
B1 = 3,
C1 = 1 << 2,
D1 = 1 << 4,
};
class Foo { };
void FooStart(Foo*, int);
struct TestRename
{
int lowerCaseMethod();
int lowerCaseField;
};
#define TEST_ENUM_ITEM_NAME_0 0
#define TEST_ENUM_ITEM_... | enum FlagEnum
{
A = 1 << 0,
B = 1 << 1,
C = 1 << 2,
D = 1 << 3,
};
enum FlagEnum2
{
A = 1 << 0,
B = 1 << 1,
C = 1 << 2,
D = 1 << 4,
};
class C { };
void DoSomethingC(C*, int);
struct TestRename
{
int lowerCaseMethod();
int lowerCaseField;
};
#define TEST_ENUM_ITEM_NAME_0 0
#define TEST_ENUM_ITEM... | ---
+++
@@ -8,14 +8,14 @@
enum FlagEnum2
{
- A = 1 << 0,
- B = 1 << 1,
- C = 1 << 2,
- D = 1 << 4,
+ A1 = 1 << 0,
+ B1 = 3,
+ C1 = 1 << 2,
+ D1 = 1 << 4,
};
-class C { };
-void DoSomethingC(C*, int);
+class Foo { };
+void FooStart(Foo*, int);
struct TestRename
{
@@ -26,3 +26,7 @@
#define TEST_ENUM... | Update the passes test source file.
| mit | ktopouzi/CppSharp,genuinelucifer/CppSharp,zillemarco/CppSharp,inordertotest/CppSharp,mono/CppSharp,inordertotest/CppSharp,xistoso/CppSharp,txdv/CppSharp,u255436/CppSharp,ktopouzi/CppSharp,nalkaro/CppSharp,xistoso/CppSharp,mohtamohit/CppSharp,imazen/CppSharp,KonajuGames/CppSharp,SonyaSa/CppSharp,Samana/CppSharp,ddobrev/... | 2c90cd47e03a5ae5f725d3a7d638dfaf05f7896d |
#include <stdlib.h>
#include <stdio.h>
#include <check.h>
#include "check_check.h"
int main (void)
{
int n;
SRunner *sr;
fork_setup();
setup_fixture();
sr = srunner_create (make_master_suite());
srunner_add_suite(sr, make_list_suite());
srunner_add_suite(sr, make_msg_suite());
srunner_add_suite(sr, ma... | #include <stdlib.h>
#include <stdio.h>
#include <check.h>
#include "check_check.h"
int main (void)
{
int n;
SRunner *sr;
fork_setup();
setup_fixture();
sr = srunner_create (make_master_suite());
srunner_add_suite(sr, make_list_suite());
srunner_add_suite(sr, make_msg_suite());
srunner_add_suite(sr, ma... | ---
+++
@@ -20,7 +20,7 @@
srunner_add_suite(sr, make_pack_suite());
setup();
- printf ("Ran %d tests in subordinate suite\n", sub_nfailed);
+ printf ("Ran %d tests in subordinate suite\n", sub_ntests);
srunner_run_all (sr, CK_NORMAL);
cleanup();
fork_teardown(); | Use correct variable for number of tests
| lgpl-2.1 | tarruda/check,tarruda/check,tarruda/check,tarruda/check,tarruda/check | dd059c831429f6d3706ff8e824cb3afcde383d37 |
/*-------------------------------------------------------------------------
*
* be-fsstubs.h--
*
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: be-fsstubs.h,v 1.2 1997/05/06 07:14:34 thomas Exp $
*
*-------------------------------------------------------------------------
*/
#... | /*-------------------------------------------------------------------------
*
* be-fsstubs.h--
*
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: be-fsstubs.h,v 1.1 1996/08/28 07:22:56 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
... | ---
+++
@@ -6,12 +6,20 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: be-fsstubs.h,v 1.1 1996/08/28 07:22:56 scrappy Exp $
+ * $Id: be-fsstubs.h,v 1.2 1997/05/06 07:14:34 thomas Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef BE... | Rename LOread() and LOwrite() to be lower case to allow use
in case-insensitive SQL. Define LOread() and LOwrite() as macros
to avoid having to update calls everywhere.
| mpl-2.0 | kmjungersen/PostgresXL,Quikling/gpdb,xuegang/gpdb,cjcjameson/gpdb,Chibin/gpdb,cjcjameson/gpdb,0x0FFF/gpdb,royc1/gpdb,randomtask1155/gpdb,0x0FFF/gpdb,zeroae/postgres-xl,janebeckman/gpdb,50wu/gpdb,jmcatamney/gpdb,edespino/gpdb,randomtask1155/gpdb,rvs/gpdb,royc1/gpdb,0x0FFF/gpdb,randomtask1155/gpdb,lintzc/gpdb,postmind-ne... | 94123219bfd5f9e688764a2125d36f206bf89704 |
/*
* SHA-160
* (C) 1999-2007 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#ifndef BOTAN_SHA_160_SSE2_H__
#define BOTAN_SHA_160_SSE2_H__
#include <botan/sha160.h>
namespace Botan {
/*
* SHA-160
*/
class BOTAN_DLL SHA_160_SSE2 : public SHA_160
{
public:
HashFunction* clone() const { ... | /*
* SHA-160
* (C) 1999-2007 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#ifndef BOTAN_SHA_160_SSE2_H__
#define BOTAN_SHA_160_SSE2_H__
#include <botan/sha160.h>
namespace Botan {
/*
* SHA-160
*/
class BOTAN_DLL SHA_160_SSE2 : public SHA_160
{
public:
HashFunction* clone() const { ... | ---
+++
@@ -24,8 +24,6 @@
void compress_n(const byte[], u32bit blocks);
};
-extern "C" void botan_sha1_sse2_compress(u32bit[5], const u32bit*);
-
}
#endif | Remove extern decl of no longer used/included SHA-1 SSE2 function
| bsd-2-clause | randombit/botan,randombit/botan,randombit/botan,webmaster128/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster12... | 70b855c84855aa33ab8411d24b9dd0b78ecbffcb |
#pragma once
// const float in a header file can lead to duplication of the storage
// but I don't really care in this case. Just don't do it with a header
// that is included hundreds of times.
const float kCurrentVersion = 1.49f;
// Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version
// incr... | #pragma once
// const float in a header file can lead to duplication of the storage
// but I don't really care in this case. Just don't do it with a header
// that is included hundreds of times.
const float kCurrentVersion = 1.48f;
// Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version
// incr... | ---
+++
@@ -3,7 +3,7 @@
// const float in a header file can lead to duplication of the storage
// but I don't really care in this case. Just don't do it with a header
// that is included hundreds of times.
-const float kCurrentVersion = 1.48f;
+const float kCurrentVersion = 1.49f;
// Put a "#define VERSION_SUFF... | Increment version number to 1.49
| apache-2.0 | google/UIforETW,mwinterb/UIforETW,mwinterb/UIforETW,ariccio/UIforETW,mwinterb/UIforETW,google/UIforETW,ariccio/UIforETW,ariccio/UIforETW,google/UIforETW,google/UIforETW,ariccio/UIforETW | 02768e952fd7f1789b146ebbfdc6ecdd54e3f72a |
/*
* Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
*
* 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.
*/
/**
* @addtogroup posix_sockets
*/
/**
* @{
*
* @file
* @brief ... | /*
* Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
*
* 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.
*/
/**
* @addtogroup posix_sockets
*/
/**
* @{
*
* @file
* @brief ... | ---
+++
@@ -28,12 +28,7 @@
extern "C" {
#endif
-#ifndef __MACH__
typedef size_t socklen_t; /**< socket address length */
-#else
-/* Defined for OSX with a different type */
-typedef __darwin_socklen_t socklen_t; /**< socket address length */
-#endif
#ifdef __cplusplus
} | Revert "posix/osx: fix type conflict on OSX native"
This reverts commit dcebfb11bc5a861c711e58838eec5b0131d020e2.
| lgpl-2.1 | OlegHahm/RIOT,yogo1212/RIOT,toonst/RIOT,toonst/RIOT,josephnoir/RIOT,mfrey/RIOT,rfuentess/RIOT,avmelnikoff/RIOT,BytesGalore/RIOT,x3ro/RIOT,lazytech-org/RIOT,A-Paul/RIOT,toonst/RIOT,rfuentess/RIOT,biboc/RIOT,kbumsik/RIOT,BytesGalore/RIOT,aeneby/RIOT,smlng/RIOT,yogo1212/RIOT,kbumsik/RIOT,cladmi/RIOT,smlng/RIOT,kYc0o/RIOT,... | ed4932362d20af4c06610592b0a13016df4aad16 |
#include <signal.h>
#include "sig.h"
#include "sysdeps.h"
#ifdef _SIG_MAXSIG
#define SIGMAX _SIG_MAXSIG
#else
#ifdef _NSIG
#define SIGMAX _NSIG
#else
#define SIGMAX 32
#endif
#endif
void sig_all_catch(signalfn fn)
{
int i;
for (i = 1; i < SIGMAX; i++)
if (i != SIGPROF)
sig_catch(i, fn);
}
void sig_all_... | #include <signal.h>
#include "sig.h"
#include "sysdeps.h"
#define SIGMAX _NSIG
void sig_all_catch(signalfn fn)
{
int i;
for (i = 1; i < SIGMAX; i++)
if (i != SIGPROF)
sig_catch(i, fn);
}
void sig_all_default(void)
{
int i;
for (i = 1; i < SIGMAX; i++)
if (i != SIGPROF)
sig_default(i);
}
... | ---
+++
@@ -2,7 +2,15 @@
#include "sig.h"
#include "sysdeps.h"
+#ifdef _SIG_MAXSIG
+#define SIGMAX _SIG_MAXSIG
+#else
+#ifdef _NSIG
#define SIGMAX _NSIG
+#else
+#define SIGMAX 32
+#endif
+#endif
void sig_all_catch(signalfn fn)
{ | Work on systems that don't define _NSIG
| lgpl-2.1 | bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs | fbf5b9c1da353780074ca0129f80dd5f6b43664e |
// RUN: %clang_cc1 -flto=thin -emit-llvm-bc < %s | llvm-bcanalyzer -dump | FileCheck %s
// CHECK: <GLOBALVAL_SUMMARY_BLOCK
// CHECK-NEXT: <PERMODULE
// CHECK-NEXT: <PERMODULE
// CHECK-NEXT: </GLOBALVAL_SUMMARY_BLOCK
__attribute__((noinline)) void foo() {}
int main() { foo(); }
| // RUN: %clang_cc1 -flto=thin -emit-llvm-bc < %s | llvm-bcanalyzer -dump | FileCheck %s
// CHECK: <FUNCTION_SUMMARY_BLOCK
// CHECK-NEXT: <PERMODULE_ENTRY
// CHECK-NEXT: <PERMODULE_ENTRY
// CHECK-NEXT: </FUNCTION_SUMMARY_BLOCK
__attribute__((noinline)) void foo() {}
int main() { foo(); }
| ---
+++
@@ -1,8 +1,8 @@
// RUN: %clang_cc1 -flto=thin -emit-llvm-bc < %s | llvm-bcanalyzer -dump | FileCheck %s
-// CHECK: <FUNCTION_SUMMARY_BLOCK
-// CHECK-NEXT: <PERMODULE_ENTRY
-// CHECK-NEXT: <PERMODULE_ENTRY
-// CHECK-NEXT: </FUNCTION_SUMMARY_BLOCK
+// CHECK: <GLOBALVAL_SUMMARY_BLOCK
+// CHECK-NEXT: <PERMODULE
... | Update test case for llvm summary format changes in D17592.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@263276 91177308-0d34-0410-b5e6-96231b3b80d8
| apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang | 857025b72f3496ac93bb102f9f265592401117b1 |
#define FUNC 1
#define PARAM 2
#define PTR_PARAM 3
struct token {
int tok_type;
char *val;
};
struct node {
int node_type;
char *type_name;
char *id;
int is_ptr;
int is_const;
int is_const_ptr;
int is_mapped;
int is_array;
int in_param;
int out_param;
int extract;
struct node *next;
struct ... | #define FUNC 1
#define PARAM 2
#define PTR_PARAM 3
struct token {
int tok_type;
char *val;
};
struct node {
int node_type;
char *type_name;
char *id;
int is_ptr;
int is_const;
int is_mapped;
int is_array;
int extract;
struct node *next;
struct node *prev;
};
union yystype {
struct token tok;
... | ---
+++
@@ -13,15 +13,26 @@
char *id;
int is_ptr;
int is_const;
+ int is_const_ptr;
int is_mapped;
int is_array;
+ int in_param;
+ int out_param;
int extract;
struct node *next;
struct node *prev;
};
-
+
+struct p_mode {
+ int in;
+ int out;
+};
+
+
union yystype {
- struct token tok;
- s... | Add boolean type so yacc productions can return a boolean value.
Add parameter mode type so we can tag parameters as IN, OUT, or BOTH.
| apache-2.0 | htcondor/htcondor,djw8605/condor,htcondor/htcondor,htcondor/htcondor,djw8605/condor,bbockelm/condor-network-accounting,neurodebian/htcondor,bbockelm/condor-network-accounting,mambelli/osg-bosco-marco,djw8605/condor,neurodebian/htcondor,zhangzhehust/htcondor,bbockelm/condor-network-accounting,htcondor/htcondor,bbockelm/... | b1e1910a974865a362546d7d4bee35becb69b5e2 |
#include "stack.h"
struct Stack
{
size_t size;
size_t top;
void** e;
};
Stack* Stack_Create(size_t n)
{
Stack* s = (Stack *)malloc(sizeof(Stack));
s->size = n;
s->top = 0;
s->e = (void**)malloc(sizeof(void*) * (n + 1));
return s;
}
int Stack_Empty(Stack* s)
{
if (s->top == 0)
{
return 1;
} else {
retu... | #include "stack.h"
struct Stack
{
size_t size;
size_t top;
void** e;
}
Stack* Stack_Create(size_t n)
{
Stack* s = (Stack *)malloc(sizeof(Stack));
s->size = n;
s->top = 0;
s->e = (void**)malloc(sizeof(void*) * (n + 1));
return s;
}
int Stack_Empty(Stack* s)
{
if (s->top == 0)
{
return 1;
} else {
retur... | ---
+++
@@ -5,7 +5,7 @@
size_t size;
size_t top;
void** e;
-}
+};
Stack* Stack_Create(size_t n)
{ | Fix missing ; in struct implementation
| mit | MaxLikelihood/CADT | 6f3db08828b139d50b6f91a8fd87e8b3b18fbf1f |
#ifndef INCLUDE_ALGORITHMS_QUICK_UNION_WITH_PATH_COMPRESSION_H_
#define INCLUDE_ALGORITHMS_QUICK_UNION_WITH_PATH_COMPRESSION_H_
#include "DLLDefines.h"
#include <vector>
#include <stddef.h>
/*
This algorithm "Quick Union With Path Compression" solves the dynamic connectivity problem.
Starting from an empty data struct... | #ifndef INCLUDE_ALGORITHMS_QUICK_UNION_WITH_PATH_COMPRESSION_H_
#define INCLUDE_ALGORITHMS_QUICK_UNION_WITH_PATH_COMPRESSION_H_
#include "DLLDefines.h"
#include <vector>
#include <stddef.h>
/*
This algorithm "Quick Union With Path Compression" solves the dynamic connectivity problem.
Starting from an empty data struct... | ---
+++
@@ -24,7 +24,7 @@
size_t GetRoot(size_t element);
inline bool IsIdInBounds(size_t element) {
- return element >= 0 && element < id_.size();
+ return element < id_.size();
}
private: | Remove unnecessary checking of size_t >= 0
| mit | TusharJadhav/algorithms,TusharJadhav/algorithms | ed69dd7849b8921917191d6a037d52043e44579f |
#pragma once
/*
This header file declares drawing methods that are defined in rect.c or round.c,
depending on the platform being built. Since the methods share the same function
signature, they can share the same header file, even though the implementations
of the functions themselves are different.
*/
void draw_se... | #pragma once
void draw_seconds(GContext *ctx, uint8_t seconds, Layer *layer);
void draw_minutes(GContext *ctx, uint8_t minutes, Layer *layer);
void draw_hours(GContext *ctx, uint8_t hours, Layer *layer);
| ---
+++
@@ -1,4 +1,11 @@
#pragma once
+
+/*
+This header file declares drawing methods that are defined in rect.c or round.c,
+depending on the platform being built. Since the methods share the same function
+signature, they can share the same header file, even though the implementations
+of the functions themselv... | Add comment to header file about change
| mit | NiVZ78/concentricity,pebble-examples/concentricity,NiVZ78/concentricity,pebble-examples/concentricity,pebble-examples/concentricity | 98c1fbe223dd5469e194a4e772b8e5b181b692ee |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.