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
// // MFSideMenuShadow.h // MFSideMenuDemoSearchBar // // Created by Michael Frederick on 5/13/13. // Copyright (c) 2013 Frederick Development. All rights reserved. // #import <Foundation/Foundation.h> @interface MFSideMenuShadow : NSObject @property (nonatomic, assign) BOOL enabled; @property (nonatomic, assign...
// // MFSideMenuShadow.h // MFSideMenuDemoSearchBar // // Created by Michael Frederick on 5/13/13. // Copyright (c) 2013 Frederick Development. All rights reserved. // #import <Foundation/Foundation.h> @interface MFSideMenuShadow : NSObject @property (nonatomic, assign) BOOL enabled; @property (nonatomic, assign...
--- +++ @@ -14,7 +14,7 @@ @property (nonatomic, assign) CGFloat radius; @property (nonatomic, assign) CGFloat opacity; @property (nonatomic, strong) UIColor *color; -@property (nonatomic, weak) UIView *shadowedView; +@property (nonatomic, assign) UIView *shadowedView; + (MFSideMenuShadow *)shadowWithView:(UIVie...
Change weak reference to assign for backwards compatibility
bsd-3-clause
appcom-interactive/MFSideMenu,Magnat12/MFSideMenu,mikefrederick/MFSideMenu,andrespch/MFSideMenu,AxialExchange/MFSideMenu,eleostech/MFSideMenu
d3b29d4bbec8837a655dde42f2b0cdb852b2626d
#include "e.h" #include "e_mod_main.h" #include "e_mod_config.h" #include "e_kbd_int.h" /* local variables */ static E_Kbd_Int *ki = NULL; EAPI E_Module_Api e_modapi = { E_MODULE_API_VERSION, "Illume Keyboard" }; EAPI void * e_modapi_init(E_Module *m) { if (!il_kbd_config_init(m)) return NULL; ki = e_kbd_int...
#include "e.h" #include "e_mod_main.h" #include "e_mod_config.h" #include "e_kbd_int.h" /* local variables */ static E_Kbd_Int *ki = NULL; EAPI E_Module_Api e_modapi = { E_MODULE_API_VERSION, "Illume Keyboard" }; EAPI void * e_modapi_init(E_Module *m) { if (!il_kbd_config_init(m)) return NULL; ki = e_kbd_int...
--- +++ @@ -13,7 +13,8 @@ { if (!il_kbd_config_init(m)) return NULL; - ki = e_kbd_int_new(mod_dir, mod_dir, mod_dir); + ki = e_kbd_int_new(il_kbd_cfg->mod_dir, + il_kbd_cfg->mod_dir, il_kbd_cfg->mod_dir); return m; }
Use correct module directory when making keyboard. Previous commit fixed compiler warnings also. SVN revision: 43875
bsd-2-clause
FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment,rvandegrift/e,FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment,tasn/enlightenment,rvandegrift/e,tizenorg/platform.upstream.enlightenment,tasn/enlightenment,tasn/enlightenment,rvandegrift/e,FlorentRevest/Enlightenment
8166b9fe84e0dc3c8877366b58a9286b0258172f
#ifdef USE_INSTANT_OSX #include "hitimes_interval.h" #include <mach/mach.h> #include <mach/mach_time.h> /* All this OSX code is adapted from http://developer.apple.com/library/mac/#qa/qa1398/_index.html */ /* * returns the conversion factor, this value is used to convert * the value from hitimes_get_current_instan...
#ifdef USE_INSTANT_OSX #include "hitimes_interval.h" #include <mach/mach.h> #include <mach/mach_time.h> /* All this OSX code is adapted from http://developer.apple.com/library/mac/#qa/qa1398/_index.html */ /* * returns the conversion factor, this value is used to convert * the value from hitimes_get_current_instan...
--- +++ @@ -14,6 +14,7 @@ { static mach_timebase_info_data_t s_timebase_info; static long double conversion_factor; + static uint64_t nano_conversion; /** * If this is the first time we've run, get the timebase. @@ -23,9 +24,9 @@ */ if ( s_time...
Clean up C Compiler warning about declaration of variables.
isc
copiousfreetime/hitimes,modulexcite/hitimes,modulexcite/hitimes,modulexcite/hitimes
9220eaea6f9afba4cc3bc6a0ff240f3492ff5997
#include "rbuv.h" ID id_call; VALUE mRbuv; VALUE rbuv_version(VALUE self); VALUE rbuv_version_string(VALUE self); void Init_rbuv() { id_call = rb_intern("call"); mRbuv = rb_define_module("Rbuv"); rb_define_singleton_method(mRbuv, "version", rbuv_version, 0); rb_define_singleton_method(mRbuv, "version_strin...
#include "rbuv.h" ID id_call; VALUE mRbuv; void Init_rbuv() { id_call = rb_intern("call"); mRbuv = rb_define_module("Rbuv"); Init_rbuv_error(); Init_rbuv_handle(); Init_rbuv_loop(); Init_rbuv_timer(); Init_rbuv_stream(); Init_rbuv_tcp(); Init_rbuv_signal(); }
--- +++ @@ -4,10 +4,16 @@ VALUE mRbuv; +VALUE rbuv_version(VALUE self); +VALUE rbuv_version_string(VALUE self); + void Init_rbuv() { id_call = rb_intern("call"); mRbuv = rb_define_module("Rbuv"); + rb_define_singleton_method(mRbuv, "version", rbuv_version, 0); + rb_define_singleton_method(mRbuv, "vers...
Add singleton methods to access libuv version
mit
arthurdandrea/rbuv,arthurdandrea/rbuv
ead111a8e26f98570cfdb9b3b849e5fac3ca7e7b
#include "../Interface/Thread.h" #include "../Interface/Mutex.h" class ClientMain; struct SProcess; class ServerPingThread : public IThread { public: ServerPingThread(ClientMain *client_main, const std::string& clientname, size_t status_id, bool with_eta, std::string server_token); void operator()(void...
#include "../Interface/Thread.h" #include "../Interface/Mutex.h" class ClientMain; struct SProcess; class ServerPingThread : public IThread { public: ServerPingThread(ClientMain *client_main, const std::string& clientname, size_t status_id, bool with_eta, std::string server_token); void operator()(void...
--- +++ @@ -20,7 +20,7 @@ volatile bool stop; volatile bool is_timeout; bool with_eta; - const std::string& clientname; + std::string clientname; size_t status_id; std::string server_token; };
Copy clientname instead of reference
agpl-3.0
uroni/urbackup_backend,uroni/urbackup_backend,uroni/urbackup_backend,uroni/urbackup_backend,uroni/urbackup_backend,uroni/urbackup_backend,uroni/urbackup_backend
f9f554b9710c0f5dfd758071d4a6272c2274add4
/* * Copyright © 2009 CNRS * Copyright © 2009-2010 INRIA. All rights reserved. * Copyright © 2009 Université Bordeaux 1 * Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. */ #include <private/autogen/config.h> #ifdef HWLOC_HAVE_XML #include <hwloc.h> #inclu...
/* * Copyright © 2009 CNRS * Copyright © 2009-2010 INRIA. All rights reserved. * Copyright © 2009 Université Bordeaux 1 * Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. */ #include <private/autogen/config.h> #ifdef HWLOC_HAVE_XML #include <hwloc.h> #inclu...
--- +++ @@ -20,7 +20,10 @@ if (!filename || !strcasecmp(filename, "-.xml")) filename = "-"; - hwloc_topology_export_xml(topology, filename); + if (hwloc_topology_export_xml(topology, filename) < 0) { + fprintf(stderr, "Failed to export XML to %s (%s)\n", filename, strerror(errno)); + return; + } }...
Print an error when lstopo fails to export to XML git-svn-id: 14be032f8f42541b1a281b51ae8ea69814daf20e@3691 4b44e086-7f34-40ce-a3bd-00e031736276
bsd-3-clause
BlueBrain/hwloc,BlueBrain/hwloc,BlueBrain/hwloc,BlueBrain/hwloc
c9996dfdabcc6e4639240ec90ac3a97912b686ec
/* * Copyright (c) 2012-2015 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
/* * Copyright (c) 2012-2015 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
--- +++ @@ -14,10 +14,30 @@ * limitations under the License. */ +#include <stdio.h> +#include <usbg/usbg.h> +#include "backend.h" #include "udc.h" -#include <stdlib.h> + +static int udc_func(void *data) +{ + usbg_udc *u; + const char *name; + + usbg_for_each_udc(u, backend_ctx.libusbg_state) { + name = usbg...
udc: Add gadget udc command at libusbg backend Change-Id: If1510069df2e6cd2620c89576ebba80685cb07d7 Signed-off-by: Pawel Szewczyk <1691dcf8dab804b326e5e4b9ab228a1c3b23a2f2@samsung.com>
apache-2.0
kopasiak/gt,kopasiak/gt
96430e414762391ff89b48b6c63c0983ff11365f
#ifndef GPIOLIB_H #define GPIOLIB_H #define FORWARD 1 #define BACKWARD 0 namespace GPIO { int init(); //direction is either FORWARD or BACKWARD. speed can be an integer ranging from 0 to 100. int controlLeft(int direction,int speed); int controlRight(int direction,int speed); int stopLeft(); int stopRight(); ...
#ifndef GPIOLIB_H #define GPIOLIB_H #define FORWARD 1 #define BACKWARD 0 namespace GPIO { int init(); int controlLeft(int direction,int speed); int controlRight(int direction,int speed); int stopLeft(); int stopRight(); int resetCounter(); void getCounter(int *countLeft,int *countRight); int turnTo(int an...
--- +++ @@ -8,6 +8,7 @@ { int init(); + //direction is either FORWARD or BACKWARD. speed can be an integer ranging from 0 to 100. int controlLeft(int direction,int speed); int controlRight(int direction,int speed); int stopLeft(); @@ -15,6 +16,7 @@ int resetCounter(); void getCounter(int *countLeft...
Add some comments in the header file for understanding
mit
miaoxw/EmbeddedSystemNJU2017-Demo
cefe89625e4728d349d8d3db1b9c81268178449d
#pragma once #ifndef YOU_DATASTORE_INTERNAL_OPERATION_H_ #define YOU_DATASTORE_INTERNAL_OPERATION_H_ #include <unordered_map> #include "../task_typedefs.h" namespace You { namespace DataStore { /// A pure virtual class of operations to be put into transaction stack class IOperation { public: /// Executes the operat...
#pragma once #ifndef YOU_DATASTORE_INTERNAL_OPERATION_H_ #define YOU_DATASTORE_INTERNAL_OPERATION_H_ #include <unordered_map> #include "../task_typedefs.h" namespace You { namespace DataStore { /// A pure virtual class of operations to be put into transaction stack class IOperation { public: /// The constructor //...
--- +++ @@ -11,11 +11,6 @@ /// A pure virtual class of operations to be put into transaction stack class IOperation { public: - /// The constructor - /// \param stask the serialized task the operation need to work with - explicit IOperation(SerializedTask& stask); - virtual ~IOperation(); - /// Executes the oper...
Remove ctor and dtor of IOperation to make it a pure virtual class
mit
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main
a0770fe0570e07eadb02a84fa8f14ea4399805b7
#include <cgreen/slurp.h> #include <stdlib.h> #include <stdio.h> #include <strings.h> static char *read_all(FILE *file, int gulp); char *slurp(const char *file_name, int gulp) { FILE *file = fopen(file_name, "r"); if (file == NULL) { return NULL; } char *content = read_all(file, gulp); fcl...
#include <cgreen/slurp.h> #include <stdlib.h> #include <stdio.h> static char *read_all(FILE *file, int gulp); char *slurp(const char *file_name, int gulp) { FILE *file = fopen(file_name, "r"); if (file == NULL) { return NULL; } char *content = read_all(file, gulp); fclose(file); return...
--- +++ @@ -1,6 +1,7 @@ #include <cgreen/slurp.h> #include <stdlib.h> #include <stdio.h> +#include <strings.h> static char *read_all(FILE *file, int gulp); @@ -15,14 +16,30 @@ } static char *read_all(FILE *file, int gulp) { - char *content = (char *)malloc((gulp + 1) * sizeof(char)); - char *block =...
Fix read_all and return content without segment fault
lgpl-2.1
ykaliuta/cgreen-old,ykaliuta/cgreen-old,ykaliuta/cgreen-old,ykaliuta/cgreen-old,ykaliuta/cgreen-old
c66bc667f912f6144223b6d259061942221a6469
#include <kernel/panic.h> #include <elf.h> #include <macros.h> #include <stdio.h> #include <types.h> #define MAX_STACK_FRAME 10000 /* * Walk up the stack and print the locations of each stack frame base. */ void bt(void) { u32 *ebp, *eip; unsigned int sf = 0; /* Start form the current stack base */ asm volati...
#include <kernel/panic.h> #include <macros.h> #include <stdio.h> #include <types.h> #define MAX_STACK_FRAME 10000 /* * Walk up the stack and print the locations of each stack frame base. */ void bt(void) { u32 *ebp, *eip; unsigned int sf = 0; /* Start form the current stack base */ asm volatile("mov %%ebp, %0...
--- +++ @@ -1,5 +1,6 @@ #include <kernel/panic.h> +#include <elf.h> #include <macros.h> #include <stdio.h> #include <types.h> @@ -23,7 +24,8 @@ * maximum value. */ while (ebp) { eip = ebp + 1; - printf("#%d [0x%x]\n", sf, *eip); + printf("#%d [0x%x] %s\n", + sf, *eip, symbol_from_elf(&kelf, ...
arch/x86: Print symbol names in backtrace This transforms: #0 [0x1018C7] #1 [0x101636] #2 [0x100231] into: #0 [0x1018C7] panic #1 [0x101636] k_main #2 [0x100231] start
mit
ChrisCummins/euclid,ChrisCummins/euclid,ChrisCummins/euclid
44acf7ff36b39e2af95bb8db453189b70b39d39a
// // Atomic.h // Atomic // // Created by Adlai Holler on 12/5/15. // Copyright © 2015 Adlai Holler. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for Atomic. FOUNDATION_EXPORT double AtomicVersionNumber; //! Project version string for Atomic. FOUNDATION_EXPORT const unsign...
// // Atomic.h // Atomic // // Created by Adlai Holler on 12/5/15. // Copyright © 2015 Adlai Holler. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for Atomic. FOUNDATION_EXPORT double AtomicVersionNumber; //! Project version string for Atomic. FOUNDATION_EXPORT const unsigned char At...
--- +++ @@ -6,7 +6,7 @@ // Copyright © 2015 Adlai Holler. All rights reserved. // -#import <UIKit/UIKit.h> +#import <Foundation/Foundation.h> //! Project version number for Atomic. FOUNDATION_EXPORT double AtomicVersionNumber;
Remove silly import of UIKit
mit
Adlai-Holler/Atomic,Adlai-Holler/Atomic
6446caf75a12bccdfc9b1af81586a1340b968db4
/* mbed Microcontroller Library * Copyright (c) 2017 ARM Limited * 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/li...
/* mbed Microcontroller Library * Copyright (c) 2017 ARM Limited * 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/li...
--- +++ @@ -25,13 +25,24 @@ /* SWO frequency: 1000 kHz */ -// As SWO has to be accessible everywhere, including ISRs, we can't easily -// communicate the dependency on clocks etc. to other components - so this -// function checks that things appear to be set up, and if not re-configures -// everything +#ifndef A...
Add default SWO pin number and config if not defined in Ambiq target
apache-2.0
mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed
7a108087ed96c0d91b65b967f9c524a7c64116fa
/** * An efficient c++ simulation demo * * @author Skylar Kelty <skylarkelty@gmail.com> */ #pragma once #include "src/common.h" /** * A linked list */ template <typename T> class LinkedList { friend class Engine; private: LLNode<T> *head; LLNode<T> *tail; protected: void append(LLNode<T> *node); public: ...
/** * An efficient c++ simulation demo * * @author Skylar Kelty <skylarkelty@gmail.com> */ #pragma once #include "src/common.h" /** * A linked list */ template <typename T> class LinkedList { private: LLNode<T> *head; LLNode<T> *tail; public: LinkedList(); ~LinkedList(); void append(LLNode<T> *node); ...
--- +++ @@ -13,15 +13,18 @@ */ template <typename T> class LinkedList { +friend class Engine; + private: LLNode<T> *head; LLNode<T> *tail; +protected: + void append(LLNode<T> *node); + public: LinkedList(); ~LinkedList(); - - void append(LLNode<T> *node); /** * Get the first element of the list
Enforce actor addition through Engine
apache-2.0
SkylarKelty/Simulation
6c0a304f881440303b1fe1af781b2cf1ddccc3ef
typedef struct { int cluster; /* Condor Cluster # */ int proc; /* Condor Proc # */ int job_class; /* STANDARD, VANILLA, PVM, PIPE, ... */ uid_t uid; /* Execute job under this UID */ gid_t gid; /* Execute job under this pid */ pid_t virt_pid; /* PVM virt pid of this process */ int soft_ki...
typedef struct { int cluster; /* Condor Cluster # */ int proc; /* Condor Proc # */ int job_class; /* STANDARD, VANILLA, PVM, PIPE, ... */ uid_t uid; /* Execute job under this UID */ gid_t gid; /* Execute job under this pid */ pid_t virt_pid; /* PVM virt pid of this process */ int soft_ki...
--- +++ @@ -16,3 +16,9 @@ BOOLEAN coredump_limit_exists; /* Whether user wants to limit core size */ int coredump_limit; /* Limit in bytes */ } STARTUP_INFO; + +/* +Should eliminate starter knowing the a.out name. Should go to +shadow for instructions on how to fetch the executable - e.g. local file +with na...
Add comment saying that even though the a.out file name is here, it really shouldn't be.
apache-2.0
neurodebian/htcondor,mambelli/osg-bosco-marco,bbockelm/condor-network-accounting,bbockelm/condor-network-accounting,djw8605/condor,zhangzhehust/htcondor,clalancette/condor-dcloud,neurodebian/htcondor,djw8605/htcondor,mambelli/osg-bosco-marco,mambelli/osg-bosco-marco,htcondor/htcondor,zhangzhehust/htcondor,neurodebian/h...
40732a47d7d7e570a5124a6acf64665a0566dee9
$OpenBSD: patch-Modules__ssl_c,v 1.2 2018/03/17 22:30:04 sthen Exp $ XXX maybe the second hunk can go away now we have auto-init, I'm not sure exactly what python's lock protects Index: Modules/_ssl.c --- Modules/_ssl.c.orig +++ Modules/_ssl.c @@ -99,7 +99,8 @@ struct py_ssl_library_code { /* Include generated data ...
--- Modules/_ssl.c.orig +++ Modules/_ssl.c @@ -99,7 +99,8 @@ struct py_ssl_library_code { /* Include generated data (error codes) */ #include "_ssl_data.h" -#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER) +#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && \ + (!defined(LIBRESSL_VERSION...
--- +++ @@ -1,17 +1,23 @@ +$OpenBSD: patch-Modules__ssl_c,v 1.2 2018/03/17 22:30:04 sthen Exp $ + +XXX maybe the second hunk can go away now we have auto-init, I'm not sure +exactly what python's lock protects + +Index: Modules/_ssl.c --- Modules/_ssl.c.orig +++ Modules/_ssl.c @@ -99,7 +99,8 @@ struct py_ssl_libra...
Fix libressl patch python 3.6
mit
nrosier/bunbun,nrosier/bunbun,nrosier/bunbun,nrosier/bunbun
de6438d1b0800bbc285201962356476fe816c2a1
#include "Enesim.h" int main(int argc, char **argv) { Enesim_Renderer *r; Enesim_Surface *s; Enesim_Log *error = NULL; enesim_init(); r = enesim_renderer_rectangle_new(); enesim_renderer_shape_fill_color_set(r, 0xffffffff); /* we dont set any property to force the error */ s = enesim_surface_new(ENESIM_FORMA...
#include "Enesim.h" int main(int argc, char **argv) { Enesim_Renderer *r; Enesim_Surface *s; Enesim_Log *error = NULL; enesim_init(); r = enesim_renderer_rectangle_new(); enesim_renderer_shape_fill_color_set(r, 0xffffffff); /* we dont set any property to force the error */ s = enesim_surface_new(ENESIM_FORMA...
--- +++ @@ -16,7 +16,7 @@ if (!enesim_renderer_draw(r, s, ENESIM_ROP_FILL, NULL, 0, 0, &error)) { enesim_log_dump(error); - enesim_log_delete(error); + enesim_log_unref(error); } enesim_shutdown();
Use the new log API
lgpl-2.1
turran/enesim,turran/enesim,turran/enesim,turran/enesim
4ca8b01f499f2c3a72191e6eb89a7790cf8af7ef
#define OBSCURE(X) X #define DECORATION typedef int T; void OBSCURE(func)(int x) { OBSCURE(T) DECORATION value; } #include "a.h" // RUN: c-index-test -cursor-at=%s:1:11 -I%S/Inputs %s | FileCheck -check-prefix=CHECK-1 %s // CHECK-1: macro definition=OBSCURE // RUN: c-index-test -cursor-at=%s:2:14 -I%S/Inputs %s | ...
#define OBSCURE(X) X #define DECORATION typedef int T; void OBSCURE(func)(int x) { OBSCURE(T) DECORATION value; } // RUN: c-index-test -cursor-at=%s:1:11 %s | FileCheck -check-prefix=CHECK-1 %s // CHECK-1: macro definition=OBSCURE // RUN: c-index-test -cursor-at=%s:2:14 %s | FileCheck -check-prefix=CHECK-2 %s // CH...
--- +++ @@ -6,13 +6,17 @@ OBSCURE(T) DECORATION value; } -// RUN: c-index-test -cursor-at=%s:1:11 %s | FileCheck -check-prefix=CHECK-1 %s +#include "a.h" + +// RUN: c-index-test -cursor-at=%s:1:11 -I%S/Inputs %s | FileCheck -check-prefix=CHECK-1 %s // CHECK-1: macro definition=OBSCURE -// RUN: c-index-test -cu...
Update clang_getCursor() test to check searches on include directives git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@117063 91177308-0d34-0410-b5e6-96231b3b80d8
apache-2.0
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
d93fae659ca26558c62dd654e24293be024408af
// // Use this file to import your target's public headers that you would like to expose to Swift. // #import <Parse/Parse.h> #import <Bolts/Bolts.h> #import <AWSiOSSDKv2/AWSCore.h> #import <AWSiOSSDKv2/S3.h> #import <AWSiOSSDKv2/DynamoDB.h> #import <AWSiOSSDKv2/SQS.h> #import <AWSiOSSDKv2/SNS.h>
// // Use this file to import your target's public headers that you would like to expose to Swift. //
--- +++ @@ -2,3 +2,10 @@ // Use this file to import your target's public headers that you would like to expose to Swift. // +#import <Parse/Parse.h> +#import <Bolts/Bolts.h> +#import <AWSiOSSDKv2/AWSCore.h> +#import <AWSiOSSDKv2/S3.h> +#import <AWSiOSSDKv2/DynamoDB.h> +#import <AWSiOSSDKv2/SQS.h> +#import <AWSiO...
Add imports to Bridging Header.
mit
dlrifkin/Perspective-1.0,thedanpan/Perspective
5c02865845248547ea33362877291f5b70c876c4
// project-specific definitions for otaa sensor //#define CFG_eu868 1 #define CFG_us915 1 //#define CFG_au921 1 //#define CFG_as923 1 //#define CFG_in866 1 #define CFG_sx1276_radio 1 //#define LMIC_USE_INTERRUPTS
// project-specific definitions for otaa sensor //#define CFG_eu868 1 //#define CFG_us915 1 //#define CFG_au921 1 #define CFG_as923 1 #define LMIC_COUNTRY_CODE LMIC_COUNTRY_CODE_JP //#define CFG_in866 1 #define CFG_sx1276_radio 1 //#define LMIC_USE_INTERRUPTS #define LMIC_DEBUG_LEVEL 2 #define LMIC_DEBUG_PRINTF_FN lm...
--- +++ @@ -1,11 +1,8 @@ // project-specific definitions for otaa sensor //#define CFG_eu868 1 -//#define CFG_us915 1 +#define CFG_us915 1 //#define CFG_au921 1 -#define CFG_as923 1 -#define LMIC_COUNTRY_CODE LMIC_COUNTRY_CODE_JP +//#define CFG_as923 1 //#define CFG_in866 1 #define CFG_sx1276_radio 1 //#defin...
Set project_config back to defaults
mit
mcci-catena/arduino-lmic,mcci-catena/arduino-lmic,mcci-catena/arduino-lmic
faf3bc1eabc938b3ed9fa898b08ed8a9c47fb77e
/* * Copyright © 2009 CNRS * Copyright © 2009-2010 INRIA. All rights reserved. * Copyright © 2009 Université Bordeaux 1 * Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. */ #include <private/autogen/config.h> #ifdef HWLOC_HAVE_XML #include <hwloc.h> #inclu...
/* * Copyright © 2009 CNRS * Copyright © 2009-2010 INRIA. All rights reserved. * Copyright © 2009 Université Bordeaux 1 * Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. */ #include <private/autogen/config.h> #ifdef HWLOC_HAVE_XML #include <hwloc.h> #inclu...
--- +++ @@ -20,7 +20,10 @@ if (!filename || !strcasecmp(filename, "-.xml")) filename = "-"; - hwloc_topology_export_xml(topology, filename); + if (hwloc_topology_export_xml(topology, filename) < 0) { + fprintf(stderr, "Failed to export XML to %s (%s)\n", filename, strerror(errno)); + return; + } }...
Print an error when lstopo fails to export to X... Print an error when lstopo fails to export to XML This commit was SVN r3691.
bsd-3-clause
ggouaillardet/hwloc,shekkbuilder/hwloc,shekkbuilder/hwloc,ggouaillardet/hwloc,shekkbuilder/hwloc,ggouaillardet/hwloc,ggouaillardet/hwloc,shekkbuilder/hwloc
83dd74f6a0bf69102f807cfb9a904fce2b185594
#include <string.h> #include "ruby.h" #include "rubyspec.h" #ifdef __cplusplus extern "C" { #endif #ifdef HAVE_RB_PROC_NEW VALUE concat_func(VALUE args) { int i; char buffer[500] = {0}; if (TYPE(val) != T_ARRAY) return Qnil; for(i = 0; i < RARRAY_LEN(args); ++i) { VALUE v = RARRAY_PTR(args)[i]; strca...
#include <string.h> #include "ruby.h" #include "rubyspec.h" #ifdef __cplusplus extern "C" { #endif #ifdef HAVE_RB_PROC_NEW VALUE concat_func(VALUE args) { int i; char buffer[500] = {0}; if (TYPE(args) != T_ARRAY) return Qnil; for(i = 0; i < RARRAY_LEN(args); ++i) { VALUE v = RARRAY_PTR(args)[i]; strc...
--- +++ @@ -11,7 +11,7 @@ VALUE concat_func(VALUE args) { int i; char buffer[500] = {0}; - if (TYPE(args) != T_ARRAY) return Qnil; + if (TYPE(val) != T_ARRAY) return Qnil; for(i = 0; i < RARRAY_LEN(args); ++i) { VALUE v = RARRAY_PTR(args)[i]; strcat(buffer, StringValuePtr(v));
Revert "Fix typo in the commit a5312c77." This reverts commit 401825d6045ab8e3bd1514404e7c326a045a92ae. See the following revert for an explanation.
mit
godfat/rubyspec,chesterbr/rubyspec,kachick/rubyspec,iainbeeston/rubyspec,yous/rubyspec,sferik/rubyspec,flavio/rubyspec,markburns/rubyspec,scooter-dangle/rubyspec,benlovell/rubyspec,lucaspinto/rubyspec,ruby/rubyspec,Zoxc/rubyspec,metadave/rubyspec,saturnflyer/rubyspec,eregon/rubyspec,alex/rubyspec,Aesthetikx/rubyspec,Ju...
404504635570833ffec7857cfa28e055b276b521
struct PureClangType { int x; int y; }; #ifndef SWIFT_CLASS_EXTRA # define SWIFT_CLASS_EXTRA #endif #ifndef SWIFT_CLASS # define SWIFT_CLASS(SWIFT_NAME) SWIFT_CLASS_EXTRA #endif SWIFT_CLASS("SwiftClass") __attribute__((objc_root_class)) @interface SwiftClass @end @interface SwiftClass (Category) - (void)categ...
struct PureClangType { int x; int y; }; #ifndef SWIFT_CLASS_EXTRA # define SWIFT_CLASS_EXTRA #endif #ifndef SWIFT_CLASS(SWIFT_NAME) # define SWIFT_CLASS(SWIFT_NAME) SWIFT_CLASS_EXTRA #endif SWIFT_CLASS("SwiftClass") __attribute__((objc_root_class)) @interface SwiftClass @end @interface SwiftClass (Category) -...
--- +++ @@ -7,7 +7,7 @@ # define SWIFT_CLASS_EXTRA #endif -#ifndef SWIFT_CLASS(SWIFT_NAME) +#ifndef SWIFT_CLASS # define SWIFT_CLASS(SWIFT_NAME) SWIFT_CLASS_EXTRA #endif
Remove useless tokens at the end of a preprocessor directive Swift SVN r24386
apache-2.0
austinzheng/swift,slavapestov/swift,devincoughlin/swift,khizkhiz/swift,parkera/swift,Ivacker/swift,huonw/swift,JGiola/swift,khizkhiz/swift,dduan/swift,brentdax/swift,kperryua/swift,harlanhaskins/swift,emilstahl/swift,hughbe/swift,uasys/swift,codestergit/swift,felix91gr/swift,huonw/swift,adrfer/swift,shajrawi/swift,Kris...
41de829555f2a17fddd0acae5307bb169be40897
// // Licensed under the terms in License.txt // // Copyright 2010 Allen Ding. All rights reserved. // #import <Foundation/Foundation.h> #define KW_VERSION 0.5 // Blocks being unavailable cripples the usability of Kiwi, but is supported // because they are not available on anything less than a device running 3.2. #i...
// // Licensed under the terms in License.txt // // Copyright 2010 Allen Ding. All rights reserved. // #import <Foundation/Foundation.h> #define KW_VERSION 0.5 // Blocks being unavailable cripples the usability of Kiwi, but is supported // because they are not available on anything less than a device running 3.2. #i...
--- +++ @@ -11,7 +11,9 @@ // Blocks being unavailable cripples the usability of Kiwi, but is supported // because they are not available on anything less than a device running 3.2. #if defined(__BLOCKS__) - #define KW_BLOCKS_ENABLED 1 + #ifndef KW_BLOCKS_ENABLED + #define KW_BLOCKS_ENABLED 1 + #end...
Add support for disabling blocks externally via preprocessor macro definitions at the project or target level
bsd-3-clause
LiuShulong/Kiwi,samkrishna/Kiwi,carezone/Kiwi,howandhao/Kiwi,ecaselles/Kiwi,allending/Kiwi,TaemoonCho/Kiwi,howandhao/Kiwi,indiegogo/Kiwi,PaulTaykalo/Kiwi,JoistApp/Kiwi,samkrishna/Kiwi,indiegogo/Kiwi,carezone/Kiwi,LiuShulong/Kiwi,unisontech/Kiwi,ashfurrow/Kiwi,weslindsay/Kiwi,iosRookie/Kiwi,depop/Kiwi,TaemoonCho/Kiwi,ho...
399869422abf30a0f635596263fd315ea9bde266
/* * Copyright 2011-2016 Blender Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
/* * Copyright 2011-2016 Blender Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
--- +++ @@ -22,7 +22,7 @@ CCL_NAMESPACE_BEGIN #define CYCLES_VERSION_MAJOR 1 -#define CYCLES_VERSION_MINOR 12 +#define CYCLES_VERSION_MINOR 13 #define CYCLES_VERSION_PATCH 0 #define CYCLES_MAKE_VERSION_STRING2(a, b, c) #a "." #b "." #c
Bump version to 1.13, matching blender 2.90 release cycle
apache-2.0
tangent-opensource/coreBlackbird,tangent-opensource/coreBlackbird,tangent-opensource/coreBlackbird
4720a44172fff28774ded70c15f1df66a43b8b44
// // CDZIssueSyncEngine.h // thingshub // // Created by Chris Dzombak on 1/13/14. // Copyright (c) 2014 Chris Dzombak. All rights reserved. // #import <ReactiveCocoa/ReactiveCocoa.h> @class OCTClient; @class CDZThingsHubConfiguration; @protocol CDZIssueSyncDelegate; @interface CDZIssueSyncEngine : NSObject ///...
// // CDZIssueSyncEngine.h // thingshub // // Created by Chris Dzombak on 1/13/14. // Copyright (c) 2014 Chris Dzombak. All rights reserved. // #import <ReactiveCocoa/ReactiveCocoa.h> @class OCTClient; @class CDZThingsHubConfiguration; @protocol CDZIssueSyncDelegate; @interface CDZIssueSyncEngine : NSObject ///...
--- +++ @@ -19,7 +19,8 @@ configuration:(CDZThingsHubConfiguration *)config authenticatedClient:(OCTClient *)client; -/// Returns a signal which will either complete or error after the sync operation. +/// Returns a signal which will asynchronously return strings as status updates,...
Update sync method docs in IssueSyncEngine
mit
cdzombak/thingshub,cdzombak/thingshub,cdzombak/thingshub
e0c1a00bbff90dffccc5d5aab9142b076b72a821
// // SRDebug.h // Sensorama // // Created by Wojciech Adam Koszek (h) on 09/04/2016. // Copyright © 2016 Wojciech Adam Koszek. All rights reserved. // #ifndef SRDebug_h #define SRDebug_h #define SRPROBE0() do { \ NSLog(@"%s", __func__); \ } while (0) #define SRPROBE1(x1) ...
// // SRDebug.h // Sensorama // // Created by Wojciech Adam Koszek (h) on 09/04/2016. // Copyright © 2016 Wojciech Adam Koszek. All rights reserved. // #ifndef SRDebug_h #define SRDebug_h #define SRPROBE0() do { \ NSLog(@"%s", __func__); \ } while (0) #define SRPROBE1(x1) ...
--- +++ @@ -21,6 +21,10 @@ NSLog(@"%s %s=%@ %s=%@", __func__, #x1, (x1), #x2, (x2)); \ } while (0) +#define SRPROBE3(x1, x2, x3) do { \ + NSLog(@"%s %s=%@ %s=%@ %s=%@", __func__, #x1, (x1), #x2, (x2), #x3, (x3)); \ +} while (0) + #define SRDEBUG if (1) NSLog #endi...
Add 1 more macro for debugging 3 things.
bsd-2-clause
wkoszek/sensorama-ios,wkoszek/sensorama-ios,wkoszek/sensorama-ios,wkoszek/sensorama-ios
3f274880fb1720b82e449a9b4d86ec0dab336d7c
// // HLError.h // HLSpriteKit // // Created by Karl Voskuil on 6/6/14. // Copyright (c) 2014 Hilo Games. All rights reserved. // #import <Foundation/Foundation.h> /** The error level for logging non-critical errors using `HLError()`. */ typedef NS_ENUM(NSInteger, HLErrorLevel) { /** Errors. */ HLLevelE...
// // HLError.h // HLSpriteKit // // Created by Karl Voskuil on 6/6/14. // Copyright (c) 2014 Hilo Games. All rights reserved. // #import <Foundation/Foundation.h> /** The error level for logging non-critical errors using `HLError()`. */ typedef NS_ENUM(NSInteger, HLErrorLevel) { /** Errors. */ HLLevelE...
--- +++ @@ -29,7 +29,7 @@ /** Logs a non-critical error. */ -static void +static inline void HLError(HLErrorLevel level, NSString *message) { // TODO: This is a placeholder for a better mechanism for non-critical error logging,
Fix compiler warning for unused function.
mit
hilogames/HLSpriteKit,hilogames/HLSpriteKit
668205545defd3dea025c55c57f7a5da6ce0408a
#define _XOPEN_SOURCE 700 #include <stdio.h> #include <signal.h> #include <unistd.h> #include <assert.h> #include <stdlib.h> #include <setjmp.h> jmp_buf try; void handler(int sig) { static int i = 0; printf("stack overflow %d\n", i); longjmp(try, ++i); assert(0); } unsigned recurse(unsigned x) { return...
#define _XOPEN_SOURCE 700 #include <stdio.h> #include <signal.h> #include <unistd.h> #include <assert.h> #include <stdlib.h> #include <setjmp.h> jmp_buf try; void handler(int sig) { static int i = 0; printf("stack overflow %d\n", i); longjmp(try, ++i); assert(0); } unsigned recurse(unsigned x) { return...
--- +++ @@ -35,7 +35,10 @@ sigaltstack(&ss, 0); sigfillset(&sa.sa_mask); - sigaction(SIGSEGV, &sa, 0); + sigaction(SIGALRM, &sa, 0); + + raise(SIGALRM); + return 0; if (setjmp(try) < 3) { recurse(0);
Switch to SIGLARM, to allow seamless gdb usage
apache-2.0
danluu/setjmp-longjmp-ucontext-snippets,danluu/setjmp-longjmp-ucontext-snippets
bc552606f319023f360417c596f5b6da4c91fdd2
#include <stdlib.h> #include <stdio.h> #include <string.h> void runStep(struct stack_node node, struct stack_node *top) { switch( node.data.type ) { case T_INT: push(node, top); break; case T_SBRTN: push(node, top); break; case T_char 1: switch( nonde.data.numval ) { case '+': int x =...
#include <stdlib.h> #include <stdio.h> #include <string.h> void runStep(struct stack_node node, struct stack_node *top) { switch( node.data.type ) { case 0: struct stack_node push; push.cdr = top; push.data = node.data; *top = push; break; } }
--- +++ @@ -4,11 +4,69 @@ void runStep(struct stack_node node, struct stack_node *top) { switch( node.data.type ) { - case 0: - struct stack_node push; - push.cdr = top; - push.data = node.data; - *top = push; + case T_INT: push(node, top); break; + case T_SBRTN: + push(node, top); + b...
Implement interpretation of basic arithmetic and comparatory functions.
mit
aacoppa/final,aacoppa/final
6bb6c383a5acfcd734a4453d4f7f20caa727c744
#pragma once // These numbers and strings need to be manually updated for a new version. // Do this version number update as the very last commit for the new release version. #define PROGRAM_VERSION_MAJOR 2 #define PROGRAM_VERSION_MINOR 0 #define PROGRAM_VERSION_MAINTENANCE 1 #define PROGRAM_VERSION_STRI...
#pragma once // These numbers and strings need to be manually updated for a new version. // Do this version number update as the very last commit for the new release version. #define PROGRAM_VERSION_MAJOR 2 #define PROGRAM_VERSION_MINOR 0 #define PROGRAM_VERSION_MAINTENANCE 1 #define PROGRAM_VERSION_STRI...
--- +++ @@ -5,7 +5,7 @@ #define PROGRAM_VERSION_MAJOR 2 #define PROGRAM_VERSION_MINOR 0 #define PROGRAM_VERSION_MAINTENANCE 1 -#define PROGRAM_VERSION_STRING "2.0.1a" +#define PROGRAM_VERSION_STRING "2.0.1b SDL mod by Krejza9" #define PROGRAM_BUILT_STRING __DATE__ " - " __TIME__
Update version to 2.0.1b SDL mod by Krejza9.
mit
Krejza9/EmulationStation-sdlmixer,Krejza9/EmulationStation-sdlmixer,Krejza9/EmulationStation-sdlmixer
2b7d5dd221477e233f77c8c729ee34f61600cfca
/* * m_name.c -- return a message number as a string * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ #include <limits.h> #include <h/mh.h> #define STR(s) #s #define SIZE(n) (sizeof STR(n...
/* * m_name.c -- return a message number as a string * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ #include <limits.h> #include <h/mh.h> #define STR(s) #s #define SIZE(n) (sizeof STR(n...
--- +++ @@ -21,7 +21,7 @@ if (num <= 0) return "?"; - sprintf(name, "%d", num); + snprintf(name, sizeof name, "%d", num); return name; }
Use the imperfect snprintf(3) instead of sprintf(3).
bsd-3-clause
mcr/nmh,mcr/nmh
348d46bd97e8fb2432685d931210b72827060b5d
#pragma once #include <stddef.h> // size_t definition #include <tasm/bytes.h> #include <tasm/private/execute.h> #include <tasm/private/byte_string.h> #include <tasm/private/foldable.h> #include <tasm/private/label.h> #include <tasm/private/state.h> namespace tasm { /** Convert an Asm program into machine code. *...
#pragma once #include <stddef.h> // size_t definition #include <tasm/bytes.h> #include <tasm/private/execute.h> #include <tasm/private/byte_string.h> #include <tasm/private/foldable.h> #include <tasm/private/label.h> #include <tasm/private/state.h> namespace tasm { /** Convert an Asm program into machine code. *...
--- +++ @@ -27,7 +27,7 @@ template <typename... Args> R operator()(Args... args) { - return ((R(*)(std::decay_t<Args>...))P::data)(args...); + return reinterpret_cast<R(*)(std::decay_t<Args>...)>(const_cast<char*>(P::data))(args...); } };
Fix remaining cast alignment warnings through the magic of casting
mit
mattbierner/Template-Assembly,mattbierner/Template-Assembly,izissise/Template-Assembly,izissise/Template-Assembly
64bd95f2799cdcaa44d58e2e1d3650477c2bd793
#include <stdio.h> int main() { // imprime o cabecalho do nosso jogo printf("******************************************\n"); printf("* Bem vindo ao nosso jogo de adivinhação *\n"); printf("******************************************\n"); int numerosecreto = 42; int chute; printf("Qual é o seu chute? "...
#include <stdio.h> int main() { // imprime o cabecalho do nosso jogo printf("******************************************\n"); printf("* Bem vindo ao nosso jogo de adivinhação *\n"); printf("******************************************\n"); int numerosecreto = 42; int chute; printf("Qual é o seu chute? "...
--- +++ @@ -15,16 +15,18 @@ scanf("%d", &chute); printf("Seu chute foi %d\n", chute); - if(chute == numerosecreto) { + int acertou = chute == numerosecreto; + + if(acertou) { printf("Parabéns! Você acertou!\n"); printf("Jogue de novo, você é um bom jogador!\n"); - } - else { - if(chute > num...
Update files, Alura, Introdução a C, Aula 2.3
mit
fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs
176b88ed92daa22bd561e61a53f5a7a4866ca81e
#ifdef E_TYPEDEFS #else # ifndef E_SMART_RANDR_H # define E_SMART_RANDR_H Evas_Object *e_smart_randr_add(Evas *evas); void e_smart_randr_layout_size_get(Evas_Object *obj, Evas_Coord *w, Evas_Coord *h); void e_smart_randr_current_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h); void e_smart_randr_monitors_creat...
#ifdef E_TYPEDEFS #else # ifndef E_SMART_RANDR_H # define E_SMART_RANDR_H Evas_Object *e_smart_randr_add(Evas *evas); void e_smart_randr_layout_size_get(Evas_Object *obj, Evas_Coord *w, Evas_Coord *h); void e_smart_randr_current_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h); void e_smart_randr_monitors_creat...
--- +++ @@ -11,7 +11,7 @@ void e_smart_randr_monitor_del(Evas_Object *obj, Evas_Object *mon); Eina_List *e_smart_randr_monitors_get(Evas_Object *obj); Eina_Bool e_smart_randr_changed_get(Evas_Object *obj); -void e_smart_randr_changes_apply(Evas_Object *obj, Ecore_X_Window root); +void e_smart_randr_changes_apply(E...
Remove root window as a function paramater (not used anymore). Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 81262
bsd-2-clause
FlorentRevest/Enlightenment,FlorentRevest/Enlightenment,tasn/enlightenment,tasn/enlightenment,tasn/enlightenment,FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment,rvandegrift/e,rvandegrift/e,tizenorg/platform.upstream.enlightenment,tizenorg/platform.upstream.enlightenment,rvandegrift/e
1d6ea657a965cbe59fa1b669d01422f3b8cbb193
#pragma once #ifndef YOU_DATASTORE_INTERNAL_OPERATIONS_ERASE_OPERATION_H_ #define YOU_DATASTORE_INTERNAL_OPERATIONS_ERASE_OPERATION_H_ #include "../operation.h" namespace You { namespace DataStore { namespace Internal { class EraseOperation : public IOperation { public: explicit EraseOperation(TaskId); bool run(); ...
#pragma once #ifndef YOU_DATASTORE_INTERNAL_OPERATIONS_ERASE_OPERATION_H_ #define YOU_DATASTORE_INTERNAL_OPERATIONS_ERASE_OPERATION_H_ #include "../operation.h" namespace You { namespace DataStore { namespace Internal { class EraseOperation : public IOperation { public: EraseOperation(TaskId); bool run(); }; } // ...
--- +++ @@ -9,7 +9,7 @@ namespace Internal { class EraseOperation : public IOperation { public: - EraseOperation(TaskId); + explicit EraseOperation(TaskId); bool run(); }; } // namespace Internal
Add explicit modifier to EraseOperation ctor
mit
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main
0dac68d485c739947ea064b63dd4312ffc42a96c
/* * Copyright 2008 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can * be found in the LICENSE file. */ #ifndef SERVICE_RUNTIME_NACL_SYSCALL_H__ #define SERVICE_RUNTIME_NACL_SYSCALL_H__ extern int NaClSyscallSeg(); #endif
/* * Copyright 2008 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can * be found in the LICENSE file. */ #ifndef SERVICE_RUNTIME_NACL_SYSCALL_H__ #define SERVICE_RUNTIME_NACL_SYSCALL_H__ #if !NACL_MACOSX || defined(NACL_STANDALONE) extern int Na...
--- +++ @@ -8,10 +8,6 @@ #ifndef SERVICE_RUNTIME_NACL_SYSCALL_H__ #define SERVICE_RUNTIME_NACL_SYSCALL_H__ -#if !NACL_MACOSX || defined(NACL_STANDALONE) extern int NaClSyscallSeg(); -#else -// This declaration is used only on Mac OSX for Chrome build -extern int NaClSyscallSeg() __attribute__((weak_import)); + ...
Tidy: Remove unused special case for Mac OS X The special case was dead code anyway because it tested the wrong preprocessor symbol (NACL_MACOSX instead of NACL_OSX). Review URL: http://codereview.chromium.org/1051001 git-svn-id: 721b910a23eff8a86f00c8fd261a7587cddf18f8@1792 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2
bsd-3-clause
sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client,nacl-webkit/native_client,nacl-webkit/native_client,nacl-webkit/native_client,nacl-webkit/native_client
eaea595bb0310b19f41d1b2eece7fbe4d5dbf14e
#ifdef _WIN32 #include <windows.h> #else #include <unistd.h> #include <fcntl.h> #include <sys/fcntl.h> #endif #include <stdio.h> #include <string> using namespace std; inline string copyFile(const string &filename, const string &ext) { string newname = string(tempnam(NULL, NULL)) + ext; string oldname = string("d...
#include <string> #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <sys/fcntl.h> using namespace std; inline string copyFile(const string &filename, const string &ext) { string newname = string(tempnam(NULL, NULL)) + ext; string oldname = string("data/") + filename + ext; char buffer[4096]; ...
--- +++ @@ -1,8 +1,12 @@ -#include <string> -#include <stdio.h> +#ifdef _WIN32 +#include <windows.h> +#else #include <unistd.h> #include <fcntl.h> #include <sys/fcntl.h> +#endif +#include <stdio.h> +#include <string> using namespace std; @@ -10,6 +14,10 @@ { string newname = string(tempnam(NULL, NULL)) + ...
Fix compilation fo the test runner on Windows Patch by Stephen Hewitt git-svn-id: 7928e23e4d58c5ca14aa7b47c53aeff82ee1dd0c@1078612 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
lgpl-2.1
dlz1123/taglib,black78/taglib,taglib/taglib,davispuh/taglib,pbhd/taglib,videolabs/taglib,videolabs/taglib,TsudaKageyu/taglib,taglib/taglib,MaxLeb/taglib,pbhd/taglib,Distrotech/taglib,pbhd/taglib,crystax/cosp-android-taglib,dlz1123/taglib,crystax/cosp-android-taglib,davispuh/taglib,Distrotech/taglib,dlz1123/taglib,Tsuda...
0d16255d093a3292abaf0b07e21ddebc956e7ca3
#include <sys/types.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include "iobuf.h" unsigned iobuf_bufsize = 8192; #ifndef MAP_ANONYMOUS #define MAP_ANONYMOUS MAP_ANON #endif int iobuf_init(iobuf* io, int fd, unsigned bufsize, char* buffer, unsigned flags) { memset(io, 0, sizeof *io); if (!bu...
#include <stdlib.h> #include <string.h> #include <sys/mman.h> #include "iobuf.h" unsigned iobuf_bufsize = 8192; int iobuf_init(iobuf* io, int fd, unsigned bufsize, char* buffer, unsigned flags) { memset(io, 0, sizeof *io); if (!bufsize) bufsize = iobuf_bufsize; if (!buffer) { if ((buffer = mmap(0, bufsize, ...
--- +++ @@ -1,9 +1,14 @@ +#include <sys/types.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include "iobuf.h" unsigned iobuf_bufsize = 8192; + +#ifndef MAP_ANONYMOUS +#define MAP_ANONYMOUS MAP_ANON +#endif int iobuf_init(iobuf* io, int fd, unsigned bufsize, char* buffer, unsigned flags) ...
Use MAP_ANON if MAP_ANONYMOUS is not defined.
lgpl-2.1
bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs
c804b5c55d42fcdc645dd81014d6bef253bd9f39
// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "sw/device/lib/testing/test_status.h" #include "sw/device/lib/arch/device.h" #include "sw/device/lib/base/log.h" #include "sw/device/lib/base/mmio.h" #include ...
// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "sw/device/lib/testing/test_status.h" #include "sw/device/lib/arch/device.h" #include "sw/device/lib/base/log.h" #include "sw/device/lib/base/mmio.h" #include ...
--- +++ @@ -23,12 +23,12 @@ switch (test_status) { case kTestStatusPassed: { - LOG_INFO("PASS"); + LOG_INFO("PASS!"); abort(); break; } case kTestStatusFailed: { - LOG_INFO("FAIL"); + LOG_INFO("FAIL!"); abort(); break; }
[sw] Fix PASS!, FAIL! signatures for CI Signed-off-by: Srikrishna Iyer <2803d640feace36379942447842f26c7747b4dc3@google.com>
apache-2.0
lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan
79408a202316fa24af2d6caf8c129dcd6f97f87e
#include <irq.h> #include <uart.h> void (*pl190_isr_vectors[IRQ_COUNT])(void) = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, uart0_irq_handler, 0, 0, 0 }; void irq_enable() { __asm__ __volatile__ ( "mrs r0, cpsr\n" "bic r0, r0, #0x80\n" "msr cpsr, r0\n" ); } void irq_disable() { __asm__ __volatile__ ( "mrs ...
#include <irq.h> void irq_enable() { __asm__ __volatile__ ( "mrs r0, cpsr\n" "bic r0, r0, #0x80\n" "msr cpsr, r0\n" ); } void irq_disable() { __asm__ __volatile__ ( "mrs r0, cpsr\n" "orr r0, #0xc0\n" "msr cpsr, r0\n" ); } void handler_swi() { uart0_send("In SWI!\n"); irq_enable(); } void handler_i...
--- +++ @@ -1,4 +1,13 @@ #include <irq.h> +#include <uart.h> + +void (*pl190_isr_vectors[IRQ_COUNT])(void) = +{ + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + uart0_irq_handler, + 0, 0, 0 +}; + void irq_enable() { @@ -26,21 +35,12 @@ void handler_irq() { - volatile unsigned int *reg = (unsigned int *) PIC_IRQ_STAT...
Remove conditional branch in IRQ handler
mit
waynecw/cwos,waynecw/cwos
195e54d55c0b03e68ab46914d3d5e9f985395331
// Copyright (c) 2012-2013, the scalloc Project Authors. All rights reserved. // Please see the AUTHORS file for details. Use of this source code is governed // by a BSD license that can be found in the LICENSE file. #ifndef SCALLOC_COMMON_H_ #define SCALLOC_COMMON_H_ #include <stddef.h> // size_t #include "confi...
// Copyright (c) 2012-2013, the scalloc Project Authors. All rights reserved. // Please see the AUTHORS file for details. Use of this source code is governed // by a BSD license that can be found in the LICENSE file. #ifndef SCALLOC_COMMON_H_ #define SCALLOC_COMMON_H_ #include <stddef.h> // size_t #include "confi...
--- +++ @@ -19,6 +19,12 @@ const size_t kSystemPageSize = PAGE_SIZE; +const size_t kMinAlignment = 16; + +const size_t kMaxSmallSize = 512; + +const size_t kNumClasses = kMaxSmallSize / kMinAlignment; + // Prohibit reordering of instructions by the compiler. inline void CompilerBarrier() { __asm__ __volatil...
Add some allocator constants like minimum alignment or maximum small size. Signed-off-by: Michael Lippautz <0d543840881a2c189b4f7636b15eebd6a8f60ace@gmail.com>
bsd-2-clause
cksystemsgroup/scalloc,cksystemsgroup/scalloc,cksystemsgroup/scalloc
2060f21af2c0e469250ab8c30370739b24b18e9e
#include <avr/io.h> #include <avr/interrupt.h> #include "deps/rcswitch/rcswitch.h" #include "deps/softuart/softuart.h" #include "packet.h" #define PIN_RC PB2 int main(void) { // initialize serial softuart_init(); // enable interrupts sei(); // enable the rc switch rcswitch_enable(PIN_RC); ...
#include <avr/io.h> #include <util/delay.h> #include <avr/interrupt.h> #include "deps/util.h" #include "deps/rcswitch/rcswitch.h" #define PIN_RC PB2 #include "deps/softuart/softuart.h" #include "packet.h" int main(void) { // initialize serial softuart_init(); // enable interrupts sei(); // ena...
--- +++ @@ -1,14 +1,11 @@ #include <avr/io.h> -#include <util/delay.h> #include <avr/interrupt.h> -#include "deps/util.h" #include "deps/rcswitch/rcswitch.h" +#include "deps/softuart/softuart.h" +#include "packet.h" #define PIN_RC PB2 - -#include "deps/softuart/softuart.h" -#include "packet.h" int main(voi...
Remove unused includes and move rc pin definition
agpl-3.0
jackwilsdon/lightcontrol,jackwilsdon/lightcontrol
de50503cc4ef90f8e0eaa9786303bcc287284e33
#ifndef __DEBUG_H__ #define __DEBUG_H__ // Not using extern, define your own static dbflags in each file // extern unsigned int dbflags; /* * Bit flags for DEBUG() */ #define DB_IO 0x001 #define DB_TIMER 0x002 #define DB_USER_INPUT 0x004 #define DB_TRAIN_CTRL 0x008 // #define DB_THREADS 0x010 // ...
#ifndef __DEBUG_H__ #define __DEBUG_H__ // Not using extern, define your own static dbflags in each file // extern unsigned int dbflags; /* * Bit flags for DEBUG() */ #define DB_PLIO 0x001 #define DB_TIMER 0x002 #define DB_USER_INPUT 0x004 #define DB_TRAIN_CTRL 0x008 // #define DB_THREADS 0x010 /...
--- +++ @@ -7,7 +7,7 @@ /* * Bit flags for DEBUG() */ -#define DB_PLIO 0x001 +#define DB_IO 0x001 #define DB_TIMER 0x002 #define DB_USER_INPUT 0x004 #define DB_TRAIN_CTRL 0x008
Rename DB_PLIO to DB_IO, indicate general IO Debugging
mit
gregwym/PollingTrainControlPanel,gregwym/PollingTrainControlPanel,gregwym/PollingTrainControlPanel
f8fec98ebb2a755583d53edf7c6326e55d5264ab
/* * Open Chinese Convert * * Copyright 2010 BYVoid <byvoid1@gmail.com> * * 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...
/* * Open Chinese Convert * * Copyright 2010 BYVoid <byvoid1@gmail.com> * * 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...
--- +++ @@ -23,7 +23,15 @@ #define SEGMENT_BUFF_SIZE 1048576 +#ifdef __cplusplus +extern "C" { +#endif + wchar_t * words_segmention(wchar_t * dest, const wchar_t * text); wchar_t * simp_to_trad(wchar_t * dest, const wchar_t * text); +#ifdef __cplusplus +}; +#endif + #endif /* __OPENCC_CONVERT_H_ */
Check cplusplus in header files.
apache-2.0
BYVoid/OpenCC,capturePointer/OpenCC,wisperwinter/OpenCC,BYVoid/OpenCC,mxgit1090/OpenCC,j717273419/OpenCC,BYVoid/OpenCC,Arthur2e5/OpenCC,xuecai/OpenCC,chongwf/OpenCC,mxgit1090/OpenCC,PeterCxy/OpenCC,capturePointer/OpenCC,chongwf/OpenCC,xuecai/OpenCC,chongwf/OpenCC,BYVoid/OpenCC,capturePointer/OpenCC,Arthur2e5/OpenCC,mxg...
6d58640be1e9d8bf8408864f293b75c1d48da06b
#ifndef _ASM_X86_BUG_H #define _ASM_X86_BUG_H #ifdef CONFIG_BUG #define HAVE_ARCH_BUG #ifdef CONFIG_DEBUG_BUGVERBOSE #ifdef CONFIG_X86_32 # define __BUG_C0 "2:\t.long 1b, %c0\n" #else # define __BUG_C0 "2:\t.long 1b - 2b, %c0 - 2b\n" #endif #define BUG() \ do { \ asm volatile("1:\tud2\n" \ "...
#ifndef _ASM_X86_BUG_H #define _ASM_X86_BUG_H #ifdef CONFIG_BUG #define HAVE_ARCH_BUG #ifdef CONFIG_DEBUG_BUGVERBOSE #ifdef CONFIG_X86_32 # define __BUG_C0 "2:\t.long 1b, %c0\n" #else # define __BUG_C0 "2:\t.long 1b - 2b, %c0 - 2b\n" #endif #define BUG() \ do { \ asm volatile("1:\tud2\n" \ "...
--- +++ @@ -22,14 +22,14 @@ ".popsection" \ : : "i" (__FILE__), "i" (__LINE__), \ "i" (sizeof(struct bug_entry))); \ - for (;;) ; \ + unreachable(); \ } while (0) #else #define BUG() \ do { \ asm volatile("ud2"); \ - for (;;) ; \ + unreachable(); ...
x86: Convert BUG() to use unreachable() Use the new unreachable() macro instead of for(;;);. When allyesconfig is built with a GCC-4.5 snapshot on i686 the size of the text segment is reduced by 3987 bytes (from 6827019 to 6823032). Signed-off-by: David Daney <0662de36cfb0706ed279bff52abef14720945acc@caviumnetworks....
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_k...
a5fc5eba4dfcc284e6adcd7fdcd5b43182230d2b
#ifndef SCC_SYMBOL_HEADER #define SCC_SYMBOL_HEADER #include "syntax.h" typedef struct Symbol { int level; char *name; union { // used in semantic analysis Syntax * declaration; // used in intermediate code generation char *var_name; // used in target code ge...
#ifndef SCC_SYMBOL_HEADER #define SCC_SYMBOL_HEADER #include "syntax.h" typedef struct Symbol { int level; char *name; // used in semantic analysis Syntax * declaration; // used in intermediate code generation char *var_name; } Symbol; Symbol * symbol_new(); void symbol_delete(Symbol * sym...
--- +++ @@ -8,11 +8,18 @@ int level; char *name; - // used in semantic analysis - Syntax * declaration; + union + { + // used in semantic analysis + Syntax * declaration; - // used in intermediate code generation - char *var_name; + // used in intermediate code gen...
Add a member for target code generation.
mit
RyanWangGit/scc
03e4a15a06dc49f066d3ead31abec4fb28ac4704
#pragma once // #define private public // for tests #include "common.h" // associations of units #define IVCO VCO #define IVCF VCF #define IVCA VCA #define IEG EG #define ILFO LFO #define ISlewRateLimiter SlewRateLimiter #define IVoice Voice #de...
#pragma once // #define private public // for tests #include "common.h" // associations of units #define IVCO VCO #define IVCF VCF #define IVCA VCA #define IEG EG #define ILFO LFO #define ISlewRateLimiter SlewRateLimiter #define IVoice Voice #de...
--- +++ @@ -31,7 +31,7 @@ } INLINE static void receive_midi_byte(uint8_t b) { - return ISynthCore<0>::receive_midi_byte(b); + ISynthCore<0>::receive_midi_byte(b); } INLINE static int8_t clock() {
Fix a type of return value
cc0-1.0
risgk/digital-synth-vra8-m,risgk/digital-synth-vra8-m,risgk/digital-synth-vra8-m,risgk/digital-synth-vra8-m
7f57422d19d088d4bb8d96ed202c27383ae760cb
#ifndef _CECP_FEATURES_H #define _CECP_FEATURES_H #include <stdio.h> /* Features of the Chess Engine Communication Protocol supported by this program */ const char *cecp_features[] = { "done=0", "usermove=1", "time=0", "draw=0", "sigint=0", "analyze=0", "variants=\"normal\"", "colors=0...
#ifndef _CECP_FEATURES_H #define _CECP_FEATURES_H #include <stdio.h> /* Features of the Chess Engine Communication Protocol supported by this program */ const char *cecp_features[] = { "done=0", "usermove=1", "time=0", "draw=0", "sigint=0", "analyze=0", "variants=\"\"", "name=0", "...
--- +++ @@ -12,7 +12,8 @@ "draw=0", "sigint=0", "analyze=0", - "variants=\"\"", + "variants=\"normal\"", + "colors=0", "name=0", "nps=0", "debug=1",
Support variant 'normal' and don't expect xboard to send colors
mit
gustafullberg/drosophila,gustafullberg/drosophila,gustafullberg/drosophila
166d113686fd20cd8e0bf6e5b4f2ac92e24765a4
/* * License: BSD-style license * Copyright: Radek Podgorny <radek@podgorny.cz>, * Bernd Schubert <bernd-schubert@gmx.de> */ #ifndef UNIONFS_H #define UNIONFS_H #define PATHLEN_MAX 1024 #define HIDETAG "_HIDDEN~" #define METANAME ".unionfs" #define METADIR (METANAME "/") // string concetanation! // fuse...
/* * License: BSD-style license * Copyright: Radek Podgorny <radek@podgorny.cz>, * Bernd Schubert <bernd-schubert@gmx.de> */ #ifndef UNIONFS_H #define UNIONFS_H #define PATHLEN_MAX 1024 #define HIDETAG "_HIDDEN~" #define METANAME ".unionfs-fuse" #define METADIR (METANAME "/") // string concetanation! //...
--- +++ @@ -10,7 +10,7 @@ #define PATHLEN_MAX 1024 #define HIDETAG "_HIDDEN~" -#define METANAME ".unionfs-fuse" +#define METANAME ".unionfs" #define METADIR (METANAME "/") // string concetanation! // fuse meta files, we might want to hide those
Revert to old pre-1.0 meta directory Unionfs changed its meta directory from .unionfs to .unionfs-fuse with the unionfs -> unionfs-fuse rename. The rename later got reverted everywhere but the meta directory, so now unionfs doesn't find the whiteout files from older releases. Revert back to the pre-1.0 behaviour to ...
bsd-3-clause
evnu/unionfs-fuse,evnu/unionfs-fuse,yogoloth/unionfs-fuse,yogoloth/unionfs-fuse,yogoloth/unionfs-fuse,evnu/unionfs-fuse
93c2f9bd8b058b28016e6db2421e5b38eac0606c
#include <stdio.h> /* print Fahrenheit-Celsius table for fahr = 0, 20, ..., 300 */ // int main(void) // { // float fahr, celsius; // int lower, upper, step; // lower = 0; // lower limit of temperature table // upper = 300; // upper limit // step = 20; // step size // printf("Fahrenheit-Celsiu...
#include <stdio.h> /* print Fahrenheit-Celsius table for fahr = 0, 20, ..., 300 */ int main(void) { float fahr, celsius; int lower, upper, step; lower = 0; // lower limit of temperature table upper = 300; // upper limit step = 20; // step size printf("Fahrenheit-Celsius Table\n\n"); fahr =...
--- +++ @@ -4,21 +4,29 @@ for fahr = 0, 20, ..., 300 */ +// int main(void) +// { +// float fahr, celsius; +// int lower, upper, step; + +// lower = 0; // lower limit of temperature table +// upper = 300; // upper limit +// step = 20; // step size + +// printf("Fahrenheit-Celsius Table\n\n")...
Implement temperature program with a for loop
mit
Kunal57/C_Problems,Kunal57/C_Problems
4373f87d58c5761ff0a9199741f0d8de4aa2b7a3
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
--- +++ @@ -22,11 +22,12 @@ #ifndef STDLIB_STRIDED_TYPEDEFS_H #define STDLIB_STRIDED_TYPEDEFS_H +// Note: keep in alphabetical order... +#include "strided_binary_typedefs.h" #include "strided_nullary_typedefs.h" -#include "strided_unary_typedefs.h" -#include "strided_binary_typedefs.h" -#include "strided_ternary...
Sort includes in alphabetical order
apache-2.0
stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib
02a90edb5163e2f6cc07573812b10a0c35ac9e1a
// RUN: clang-cc -Eonly %s -DOPT_O2 -O2 -verify && #ifdef OPT_O2 #ifndef __OPTIMIZE__ #error "__OPTIMIZE__ not defined" #endif #ifdef __OPTIMIZE_SIZE #error "__OPTIMIZE_SIZE__ defined" #endif #endif // RUN: clang-cc -Eonly %s -DOPT_O0 -O0 -verify && #ifdef OPT_O0 #ifdef __OPTIMIZE__ #error "__OPT...
// RUN: clang-cc -Eonly optimize.c -DOPT_O2 -O2 -verify && #ifdef OPT_O2 #ifndef __OPTIMIZE__ #error "__OPTIMIZE__ not defined" #endif #ifdef __OPTIMIZE_SIZE #error "__OPTIMIZE_SIZE__ defined" #endif #endif // RUN: clang-cc -Eonly optimize.c -DOPT_O0 -O0 -verify && #ifdef OPT_O0 #ifdef __OPTIMIZE__ ...
--- +++ @@ -1,4 +1,4 @@ -// RUN: clang-cc -Eonly optimize.c -DOPT_O2 -O2 -verify && +// RUN: clang-cc -Eonly %s -DOPT_O2 -O2 -verify && #ifdef OPT_O2 #ifndef __OPTIMIZE__ #error "__OPTIMIZE__ not defined" @@ -8,7 +8,7 @@ #endif #endif -// RUN: clang-cc -Eonly optimize.c -DOPT_O0 -O0 -verify && +// RUN:...
Use %s in test, not hard coded name. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@68521 91177308-0d34-0410-b5e6-96231b3b80d8
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
82fc0cb7883747942326d6d6ca1333b27bd647f0
/*! * @brief Template C++-header file * * This is a template C++-header file * @author <+AUTHOR+> * @date <+DATE+> * @file <+FILE+> * @version 0.1 */ #ifndef <+FILE_CAPITAL+>_H #define <+FILE_CAPITAL+>_H #include <iostream> /*! * @brief Template class */ class <+FILE_PASCAL+> { private: public: <+...
/*! * @brief Template C++-header file * * This is a template C++-header file * @author <+AUTHOR+> * @date <+DATE+> * @file <+FILE+> * @version 0.1 */ #ifndef <+FILE_CAPITAL+>_H #define <+FILE_CAPITAL+>_H /*! * @brief Template class */ class <+FILEBASE+> { private: public: <+FILEBASE+>() { <+CUR...
--- +++ @@ -10,18 +10,46 @@ #ifndef <+FILE_CAPITAL+>_H #define <+FILE_CAPITAL+>_H +#include <iostream> + /*! * @brief Template class */ -class <+FILEBASE+> +class <+FILE_PASCAL+> { private: public: <+FILEBASE+>() { <+CURSOR+> } -}; // class <+FILEBASE+> + + template<typename CharT, typename...
Enable to treat with std::cout and std::cin
mit
koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate
425aa9921544bd60bd26f2429a41deb2e156bd34
#ifndef PYLOGGER_H #define PYLOGGER_H #include "Python.h" #include <string> #include "cantera/base/logger.h" namespace Cantera { /// Logger for Python. /// @ingroup textlogs class Py_Logger : public Logger { public: Py_Logger() { PyRun_SimpleString("import sys"); } virtual ~Py_Logger() {} vi...
#ifndef PYLOGGER_H #define PYLOGGER_H #include "Python.h" #include <string> #include "cantera/base/logger.h" namespace Cantera { /// Logger for Python. /// @ingroup textlogs class Py_Logger : public Logger { public: Py_Logger() { PyRun_SimpleString("import sys"); } virtual ~Py_Logger() {} vi...
--- +++ @@ -27,8 +27,8 @@ } virtual void error(const std::string& msg) { - std::string err = "raise \""+msg+"\""; - PyRun_SimpleString((char*)err.c_str()); + std::string err = "raise Exception(\"\"\""+msg+"\"\"\")"; + PyRun_SimpleString(err.c_str()); } }; }
Fix Py_Logger to raise instances of Exception instead of strings Raising string exceptions was removed in Python 2.6
bsd-3-clause
imitrichev/cantera,Heathckliff/cantera,Heathckliff/cantera,imitrichev/cantera,imitrichev/cantera,imitrichev/cantera,imitrichev/cantera,Heathckliff/cantera,imitrichev/cantera,Heathckliff/cantera,Heathckliff/cantera,Heathckliff/cantera
0da6fb4d36a340b36f6153c66bcd432982abf1dd
#include <stdio.h> #include <assert.h> #include "api.h" #include "lib/math.c" #include "lib/test.c" static jack_state_t* state; static intptr_t jack_fib(intptr_t n) { jack_new_integer(state, n); jack_function_call(state, 1, 1); return jack_get_integer(state, -1); } int main() { state = jack_new_state(20); ...
#include <stdio.h> #include <assert.h> #include "api.h" #include "lib/math.c" #include "lib/test.c" static jack_state_t* state; static intptr_t jack_fib(intptr_t n) { jack_new_integer(state, n); jack_function_call(state, 1, 1); return jack_get_integer(state, -1); } int main() { for (int j = 0; j < 0x1; ++j)...
--- +++ @@ -14,22 +14,25 @@ } int main() { - for (int j = 0; j < 0x1; ++j) { + state = jack_new_state(20); + jack_call(state, jack_math, 0); + jack_map_get_symbol(state, -1, "fib"); + jack_new_list(state); + // 1 - fib + // 2 - list - state = jack_new_state(15); - jack_call(state, jack_math, 0); - ...
Tweak for benchmark. fib(0-91) 1987925/second
mit
creationix/jack-lang,creationix/jack-lang
637d0f278459aa1130ab96c063fcaf0611507e47
#include "queue.h" struct Queue { size_t head; size_t tail; size_t size; void** e; }; Queue* Queue_Create(size_t n) { Queue* q = (Queue *)malloc(sizeof(Queue)); q->size = n; q->head = q->tail = 1; q->e = (void **)malloc(sizeof(void*) * (n + 1)); return q; } int Queue_Empty(Queue* q) { return (q->head == q-...
#include "queue.h" struct Queue { size_t head; size_t tail; size_t size; void** e; }; Queue* Queue_Create(size_t n) { Queue* q = (Queue *)malloc(sizeof(Queue)); q->size = n; q->head = q->tail = 1; q->e = (void **)malloc(sizeof(void*) * (n + 1)); return q; } int Queue_Empty(Queue* q) { return (q->head == q-...
--- +++ @@ -21,3 +21,8 @@ { return (q->head == q->tail); } + +int Queue_Full(Queue* q) +{ + return (q->head == q->tail + 1) || (q->head == 1 && q->tail == q->size); +}
Add helper function Queue Full implementation
mit
MaxLikelihood/CADT
dbd9075781f1f83ec53841c162ea027902c3742a
#ifndef __EXGL_H__ #define __EXGL_H__ #ifdef __ANDROID__ #include <GLES2/gl2.h> #endif #ifdef __APPLE__ #include <OpenGLES/ES2/gl.h> #endif #include <JavaScriptCore/JSBase.h> #ifdef __cplusplus extern "C" { #endif // Identifies an EXGL context. No EXGL context has the id 0, so that can be // used as a 'null' valu...
#ifndef __EXGL_H__ #define __EXGL_H__ #include <OpenGLES/ES2/gl.h> #include <JavaScriptCore/JSBase.h> #ifdef __cplusplus extern "C" { #endif // Identifies an EXGL context. No EXGL context has the id 0, so that can be // used as a 'null' value. typedef unsigned int EXGLContextId; // [JS thread] Create an EXGL cont...
--- +++ @@ -2,7 +2,13 @@ #define __EXGL_H__ +#ifdef __ANDROID__ +#include <GLES2/gl2.h> +#endif +#ifdef __APPLE__ #include <OpenGLES/ES2/gl.h> +#endif + #include <JavaScriptCore/JSBase.h>
Fix Android vs. iOS GL header include fbshipit-source-id: 75ec20a
bsd-3-clause
jolicloud/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,jolicloud/exponent,exponent/exponent,jolicloud/exponent,exponentjs/exponent,jolicloud/exponent,exponent/exponent,jolicloud/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent...
f333a38b65f9d357ab6c2fc73fd014f8e266657f
/** @file Header file that supports Framework extension to UEFI/PI for DXE modules. This header file must include Framework extension definitions common to DXE modules. Copyright (c) 2007-2009, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made availab...
/** @file Header file that supports Framework extension to UEFI/PI for DXE modules. This header file must include Framework extension definitions common to DXE modules. Copyright (c) 2007, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made avai...
--- +++ @@ -4,7 +4,7 @@ This header file must include Framework extension definitions common to DXE modules. - Copyright (c) 2007, Intel Corporation + Copyright (c) 2007-2009, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the t...
Update Copyright. Delete erroneous "Module Name" line. git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@8673 6f19259b-4bc3-4df7-8a09-765794883524
bsd-2-clause
MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2
5ba364466dabf4e4d8809218197b5bd0761db881
#include <Elementary.h> #ifdef HAVE_CONFIG_H # include "elementary_config.h" #endif EAPI int elm_modapi_init(void *m __UNUSED__) { return 1; // succeed always } EAPI int elm_modapi_shutdown(void *m __UNUSED__) { return 1; // succeed always } EAPI Eina_Bool obj_hook(Evas_Object *obj __UNUSED__) { retu...
#include <Elementary.h> #ifdef HAVE_CONFIG_H # include "elementary_config.h" #endif EAPI int elm_modapi_init(void *m) { return 1; // succeed always } EAPI int elm_modapi_shutdown(void *m) { return 1; // succeed always } EAPI Eina_Bool obj_hook(Evas_Object *obj) { return EINA_TRUE; } EAPI Eina_Bool o...
--- +++ @@ -4,43 +4,43 @@ #endif EAPI int -elm_modapi_init(void *m) +elm_modapi_init(void *m __UNUSED__) { return 1; // succeed always } EAPI int -elm_modapi_shutdown(void *m) +elm_modapi_shutdown(void *m __UNUSED__) { return 1; // succeed always } EAPI Eina_Bool -obj_hook(Evas_Object *...
Add UNUSED so we get a clean compile. SVN revision: 55786
lgpl-2.1
rvandegrift/elementary,FlorentRevest/Elementary,tasn/elementary,tasn/elementary,tasn/elementary,FlorentRevest/Elementary,tasn/elementary,rvandegrift/elementary,tasn/elementary,FlorentRevest/Elementary,rvandegrift/elementary,FlorentRevest/Elementary,rvandegrift/elementary
79c31c97a5c0c1b061f18fec06d6b969d267c766
/* * Copyright 2014, NICTA * * 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(NICTA_GPL) */ #ifndef ETHIF_INTEL_H #define ETHIF_INTEL_H #include <platsupport/...
/* * Copyright 2014, NICTA * * 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(NICTA_GPL) */ #include <platsupport/io.h> /** * This function initialises the h...
--- +++ @@ -7,6 +7,9 @@ * * @TAG(NICTA_GPL) */ + +#ifndef ETHIF_INTEL_H +#define ETHIF_INTEL_H #include <platsupport/io.h> @@ -29,3 +32,5 @@ */ struct eth_driver* ethif_e82574_init(ps_io_ops_t io_ops, void *bar0); + +#endif
Add missing header file guards
bsd-2-clause
agacek/util_libs,agacek/util_libs,agacek/util_libs,agacek/util_libs
918002b7cc42d465dc80d2313e31d8fbfeef3712
/* Copyright (c) 2004 Timo Sirainen */ #include "lib.h" #include "str.h" #include "str-sanitize.h" void str_sanitize_append(string_t *dest, const char *src, size_t max_len) { const char *p; for (p = src; *p != '\0'; p++) { if (((unsigned char)*p & 0x7f) < 32) break; } str_append_n(dest, src, (size_t)(p - s...
/* Copyright (c) 2004 Timo Sirainen */ #include "lib.h" #include "str.h" #include "str-sanitize.h" void str_sanitize_append(string_t *dest, const char *src, size_t max_len) { const char *p; for (p = src; *p != '\0'; p++) { if ((unsigned char)*p < 32) break; } str_append_n(dest, src, (size_t)(p - src)); fo...
--- +++ @@ -9,13 +9,13 @@ const char *p; for (p = src; *p != '\0'; p++) { - if ((unsigned char)*p < 32) + if (((unsigned char)*p & 0x7f) < 32) break; } str_append_n(dest, src, (size_t)(p - src)); for (; *p != '\0' && max_len > 0; p++, max_len--) { - if ((unsigned char)*p < 32) + if (((unsigned c...
Convert also 0x80..0x9f characters to '?' --HG-- branch : HEAD
mit
dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot
605cce4a8b87c2e92fcdd047383997ab1df0178d
#define CGLTF_IMPLEMENTATION #include "../cgltf.h" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { cgltf_options options = {0}; cgltf_data* data = NULL; cgltf_result res = cgltf_parse(&options, Data, Size, &data); if (res == cgltf_result_success) { cgltf_validate(data); cgltf_free(data); } re...
#define CGLTF_IMPLEMENTATION #include "../cgltf.h" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { cgltf_options options = {0}; cgltf_data* data = NULL; cgltf_result res = cgltf_parse(&options, Data, Size, &data); if (res == cgltf_result_success) cgltf_free(data); return 0; }
--- +++ @@ -6,6 +6,10 @@ cgltf_options options = {0}; cgltf_data* data = NULL; cgltf_result res = cgltf_parse(&options, Data, Size, &data); - if (res == cgltf_result_success) cgltf_free(data); + if (res == cgltf_result_success) + { + cgltf_validate(data); + cgltf_free(data); + } return 0; }
Add validation to fuzz target This make sure new validation code is robust by itself.
mit
jkuhlmann/cgltf,jkuhlmann/cgltf,jkuhlmann/cgltf
b743e26e288da913ce62e96f74f73079c2f37299
/* * A solution to Exercise 1-2 in The C Programming Language (Second Edition). * * This file was written by Damien Dart, <damiendart@pobox.com>. This is free * and unencumbered software released into the public domain. For more * information, please refer to the accompanying "UNLICENCE" file. */ #include <stdio...
/* * A solution to Exercise 1-2 in The C Programming Language (Second Edition). * * This file was written by Damien Dart, <damiendart@pobox.com>. This is free * and unencumbered software released into the public domain. For more * information, please refer to the accompanying "UNLICENCE" file. */ #include <stdio...
--- +++ @@ -11,9 +11,9 @@ int main(void) { - puts("\\a produces an audible or visual alert: \a"); - puts("\\f produces a formfeed: \f"); - puts("\\r produces a carriage return: \rlololol"); - puts("\\v produces a vertical tab: \t"); + puts("An audible or visual alert: \a"); + puts("A form feed: \f"); + put...
Fix solution to Exercise 1-2.
unlicense
damiendart/knr-solutions,damiendart/knr-solutions,damiendart/knr-solutions
289440851590e50387cf1a121abad63c704b84ab
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "visitor.h" #include <vespa/vdslib/container/searchresult.h> namespace documentapi { class SearchResultMessage : public VisitorMessage, public vdslib::Se...
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/vdslib/container/searchresult.h> #include <vespa/documentapi/messagebus/messages/visitor.h> namespace documentapi { class SearchResultMessage : public VisitorMessage, ...
--- +++ @@ -1,16 +1,15 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once +#include "visitor.h" #include <vespa/vdslib/container/searchresult.h> -#include <vespa/documentapi/messagebus/messages/visitor.h> namespace documentapi { ...
Add the overrides and you are backin business.
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
98330bd7030626759102845a0467ed2c71f26c30
#ifndef RWTE_COORDS_H #define RWTE_COORDS_H struct Cell { int row = 0; int col = 0; inline bool operator==(const Cell& other) const { return row == other.row && col == other.col; } inline bool operator!=(const Cell& other) const { return row != other.row || col != other.co...
#ifndef RWTE_COORDS_H #define RWTE_COORDS_H struct Cell { int row, col; inline bool operator==(const Cell& other) const { return row == other.row && col == other.col; } inline bool operator!=(const Cell& other) const { return row != other.row || col != other.col; } in...
--- +++ @@ -3,7 +3,8 @@ struct Cell { - int row, col; + int row = 0; + int col = 0; inline bool operator==(const Cell& other) const {
Set default values for Cell members.
mit
drcforbin/rwte,drcforbin/rwte,drcforbin/rwte,drcforbin/rwte
6c93a693f3e0e4a2979fa8677278d181c5e3edb2
// RUN: %ucc -Xprint %s 2>/dev/null | grep 'typeof' | %output_check -w "/typeof\(int \*\) ip.*/" "/typeof\(int \*\) \*a1.*/" "/typeof\(int \*\) a2\[2\].*/" "/typeof\(int \*\) a3\(\).*/" "typeof(expr: identifier) (aka 'long *') abc()" "typeof(expr: identifier) (aka 'long *') xyz()" long *x; __typeof(int *) ip; __type...
// RUN: %ucc -Xprint %s 2>/dev/null | grep 'typeof' | %output_check -w "/typeof\(int \*\) ip.*/" "/typeof\(int \*\) \*a1.*/" "/typeof\(int \*\) a2\[2\].*/" "/typeof\(int \*\) a3\(\).*/" "typeof(expr: identifier) (aka 'long *') xyz()" long *x; __typeof(int *) ip; __typeof(int *) *a1; __typeof(int *) a2[2]; __typeof(i...
--- +++ @@ -1,4 +1,4 @@ -// RUN: %ucc -Xprint %s 2>/dev/null | grep 'typeof' | %output_check -w "/typeof\(int \*\) ip.*/" "/typeof\(int \*\) \*a1.*/" "/typeof\(int \*\) a2\[2\].*/" "/typeof\(int \*\) a3\(\).*/" "typeof(expr: identifier) (aka 'long *') xyz()" +// RUN: %ucc -Xprint %s 2>/dev/null | grep 'typeof' | %out...
Add trailing return type to type printing test
mit
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
78d48b4a6c7f49ee07ff9bced8df6f7379c13d6f
#ifndef SPIRALLINESGLWIDGET_H #define SPIRALLINESGLWIDGET_H #include "GLWidget.h" #include <cmath> class SpiralLinesGLWidget : public GLWidget { public: SpiralLinesGLWidget(QWidget* parent = 0); protected: void initializeGL(); void render(); }; SpiralLinesGLWidget::SpiralLinesGLWidget(QWidget* parent) : GLWidget(...
#ifndef SPIRALLINESGLWIDGET_H #define SPIRALLINESGLWIDGET_H #include "GLWidget.h" #include <cmath> class SpiralLinesGLWidget : public GLWidget { public: SpiralLinesGLWidget(QWidget* parent = 0); protected: void initializeGL(); void render(); }; SpiralLinesGLWidget::SpiralLinesGLWidget(QWidget* parent) : GLWidget(...
--- +++ @@ -29,8 +29,12 @@ static const float REVOLUTIONS = 10; static const float PI = 3.14159; + // How many vertices per revolution. + static const float SLICES = 10; + glBegin(GL_LINE_STRIP); - for (float angle = 0; angle < 2*PI*REVOLUTIONS; angle += PI / (2 * REVOLUTIONS * 10)) { + for (int i = 0; i <= ...
Use integers instead of floats in for-loop While this adds a few more lines to the program, I think it makes it more explicit where the constants come from. It also faciliates easier modification of the example. It's also safer to use an integer instead of a float as a conditional in a for-loop. This is because float...
mit
dafrito/alpha,dafrito/alpha,dafrito/alpha
3f27d22593d0d595bc4e9695d122fa16051d8990
#include <libterm_internal.h> void term_update(term_t_i *term) { if( term->dirty.exists && term->update != NULL ) { term->update(TO_H(term), term->dirty.x, term->dirty.y - (term->grid.history - term->grid.height), term->dirty.width, term->dirty.height); term->dirty.exists = false; } } void ter...
#include <libterm_internal.h> void term_update(term_t_i *term) { if( term->dirty.exists && term->update != NULL ) { term->update(TO_H(term), term->dirty.x, term->dirty.y, term->dirty.width, term->dirty.height); term->dirty.exists = false; } } void term_cursor_update(term_t_i *term) { if( t...
--- +++ @@ -3,7 +3,7 @@ void term_update(term_t_i *term) { if( term->dirty.exists && term->update != NULL ) { - term->update(TO_H(term), term->dirty.x, term->dirty.y, term->dirty.width, term->dirty.height); + term->update(TO_H(term), term->dirty.x, term->dirty.y - (term->grid.history - term->grid...
Fix update callback position to be grid-relative not scrollback-relative.
apache-2.0
absmall/libterm,absmall/libterm
c183c2b8aac1bfaefe82c9532bd16ec0f373142b
// A current_time function for use in the tests. Returns time in // milliseconds. #ifdef _WIN32 #include <Windows.h> double current_time() { LARGE_INTEGER freq, t; QueryPerformanceCounter(&t); QueryPerformanceFrequency(&freq); return (t.QuadPart * 1000.0) / freq.QuadPart; } // Gross, these come from W...
// A current_time function for use in the tests. Returns time in // milliseconds. #ifdef _WIN32 extern "C" bool QueryPerformanceCounter(uint64_t *); extern "C" bool QueryPerformanceFrequency(uint64_t *); double current_time() { uint64_t t, freq; QueryPerformanceCounter(&t); QueryPerformanceFrequency(&freq...
--- +++ @@ -2,14 +2,16 @@ // milliseconds. #ifdef _WIN32 -extern "C" bool QueryPerformanceCounter(uint64_t *); -extern "C" bool QueryPerformanceFrequency(uint64_t *); +#include <Windows.h> double current_time() { - uint64_t t, freq; + LARGE_INTEGER freq, t; QueryPerformanceCounter(&t); QueryPerfo...
Fix build of tutorials that require libpng under Visual Studio.
mit
adasworks/Halide,ronen/Halide,smxlong/Halide,rodrigob/Halide,adasworks/Halide,mcanthony/Halide,myrtleTree33/Halide,lglucin/Halide,myrtleTree33/Halide,dougkwan/Halide,damienfir/Halide,fengzhyuan/Halide,dan-tull/Halide,ronen/Halide,lglucin/Halide,adasworks/Halide,aam/Halide,adasworks/Halide,ayanazmat/Halide,myrtleTree33/...
65788a4fd0699c3ed06bdd314ad1a8d5de5a6a3c
// RUN: %clang_cc1 -fsyntax-only -verify %s typedef __typeof((int*) 0 - (int*) 0) intptr_t; static int f = 10; static int b = f; // expected-error {{initializer element is not a compile-time constant}} float r = (float) (intptr_t) &r; // expected-error {{initializer element is not a compile-time constant}} intptr_t...
// RUN: %clang_cc1 -triple i386-pc-linux-gnu -fsyntax-only -verify %s #include <stdint.h> static int f = 10; static int b = f; // expected-error {{initializer element is not a compile-time constant}} float r = (float) (intptr_t) &r; // expected-error {{initializer element is not a compile-time constant}} intptr_t s...
--- +++ @@ -1,6 +1,6 @@ -// RUN: %clang_cc1 -triple i386-pc-linux-gnu -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsyntax-only -verify %s -#include <stdint.h> +typedef __typeof((int*) 0 - (int*) 0) intptr_t; static int f = 10; static int b = f; // expected-error {{initializer element is not a compile-time con...
Fix test to not force triple, and also to not need stdint.h. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@96499 91177308-0d34-0410-b5e6-96231b3b80d8
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
56bddeda24adcb927dd5ceafd75f84ebc2eb4203
// // ASAbsoluteLayoutElement.h // AsyncDisplayKit // // Copyright (c) 2014-present, Facebook, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the ...
// // ASAbsoluteLayoutElement.h // AsyncDisplayKit // // Copyright (c) 2014-present, Facebook, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the ...
--- +++ @@ -7,6 +7,9 @@ // 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 <AsyncDisplayKit/ASBaseDefines.h> +#import <AsyncDisplayKit/ASDimension.h> NS_ASSUME_NONNULL_BEGIN
[Build] Add imports that are necessary for clang to parse header files after compilation. This allows the objc-diff tool (which creates API diffs) to run successfully.
bsd-3-clause
maicki/AsyncDisplayKit,tomizimobile/AsyncDisplayKit,rmls/AsyncDisplayKit,romyilano/AsyncDisplayKit,tomizimobile/AsyncDisplayKit,rahul-malik/AsyncDisplayKit,chrisdanford/AsyncDisplayKit,flovouin/AsyncDisplayKit,aaronschubert0/AsyncDisplayKit,harryworld/AsyncDisplayKit,tomizimobile/AsyncDisplayKit,george-gw/AsyncDisplayK...
d7ba0a9c6dad9db4a22d06c25646ae6df25ccd68
//===--- ParentMap.h - Mappings from Stmts to their Parents -----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===--- ParentMap.h - Mappings from Stmts to their Parents -----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
--- +++ @@ -23,7 +23,11 @@ ParentMap(Stmt* ASTRoot); ~ParentMap(); - Stmt* getParent(Stmt*) const; + Stmt* getParent(Stmt*) const; + + const Stmt* getParent(const Stmt* S) const { + return getParent(const_cast<Stmt*>(S)); + } bool hasParent(Stmt* S) const { return getParent(S) != 0;
Add missing header file change. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@67871 91177308-0d34-0410-b5e6-96231b3b80d8
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
ced21016cec1f189a695857bed103ecc9e3f3696
#ifndef POPULATION_H #define POPULATION_H class POPULATION { public: int **initializePopulation(int individuals, int genes, bool FILL_ZERO = false); int createRandomPopulation(int **population, int individuals, int genes); }; #endif
#ifndef POPULATION_H #define POPULATION_H class POPULATION { public: int **initializePopulation(int individuals, int genes, bool FILL_ZERO = false); int **createRandomPopulation(int **population, int individuals, int genes); }; #endif
--- +++ @@ -5,7 +5,7 @@ { public: int **initializePopulation(int individuals, int genes, bool FILL_ZERO = false); - int **createRandomPopulation(int **population, int individuals, int genes); + int createRandomPopulation(int **population, int individuals, int genes); }; #endif
Update return datatype function 'createRandomPopulation'.
mit
wkohlenberg/simple_GA
948ec1820d49c8ec2ec68eb000e088ead4c3bf37
#ifndef _LPMS_FFMPEG_H_ #define _LPMS_FFMPEG_H_ #include <libavutil/rational.h> typedef struct { char *fname; int w, h, bitrate; AVRational fps; } output_params; void lpms_init(); int lpms_rtmp2hls(char *listen, char *outf, char *ts_tmpl, char *seg_time, char *seg_start); int lpms_transcode(char *inp, output...
#include <libavutil/rational.h> typedef struct { char *fname; int w, h, bitrate; AVRational fps; } output_params; void lpms_init(); void lpms_deinit(); int lpms_rtmp2hls(char *listen, char *outf, char *ts_tmpl, char *seg_time, char *seg_start); int lpms_transcode(char *inp, output_params *params, int nb_outpu...
--- +++ @@ -1,3 +1,6 @@ +#ifndef _LPMS_FFMPEG_H_ +#define _LPMS_FFMPEG_H_ + #include <libavutil/rational.h> typedef struct { @@ -7,7 +10,7 @@ } output_params; void lpms_init(); -void lpms_deinit(); int lpms_rtmp2hls(char *listen, char *outf, char *ts_tmpl, char *seg_time, char *seg_start); int lpms_transc...
ffmpeg: Remove unused declarations from headers. Also add some include guards.
mit
livepeer/lpms,livepeer/lpms,livepeer/lpms,livepeer/lpms
8f39850a0cc1114eeb77d3e71fa2eed98f61ca87
// // WeakUniqueCollection.h // book-shelf // // Created by Artem Gladkov on 28.06.16. // Copyright © 2016 Sibext Ltd. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /** WeakUniqueCollection keeps weak references to the objects and maintains uniqueness. It's public API is ful...
// // WeakUniqueCollection.h // book-shelf // // Created by Artem Gladkov on 28.06.16. // Copyright © 2016 Sibext Ltd. All rights reserved. // #import <Foundation/Foundation.h> @interface WeakUniqueCollection<ObjectType> : NSObject @property(readonly)NSUInteger count; - (void)addObject:(ObjectType)object; - (vo...
--- +++ @@ -8,16 +8,60 @@ #import <Foundation/Foundation.h> +NS_ASSUME_NONNULL_BEGIN + +/** + WeakUniqueCollection keeps weak references to the objects and maintains uniqueness. + It's public API is fully thread safe. + + WeakUniqueCollection is not optimized for working with large amount of objects. + */ @int...
Add documentation for public API and nullability specification.
mit
sibext/WeakUniqueCollection,sibext/WeakUniqueCollection
8f1e899485677eb8accfdc999fbd1e7e12187302
#include <inttypes.h> #include <stdlib.h> #include <unistd.h> #include <stdbool.h> #include "tock.h" #pragma GCC diagnostic ignored "-Wunused-parameter" void yield_for(bool *cond) { while(!*cond) { yield(); } } void yield() { asm volatile("push {lr}\nsvc 0\npop {pc}" ::: "memory", "r0"); } int subscribe(u...
#include <inttypes.h> #include <stdlib.h> #include <unistd.h> #include <stdbool.h> #include "tock.h" #pragma GCC diagnostic ignored "-Wunused-parameter" void yield_for(bool *cond) { while(!*cond) { yield(); } } void yield() { asm volatile("push {lr}\nsvc 0\npop {pc}" ::: "memory", "r0"); } int subscribe(u...
--- +++ @@ -18,20 +18,28 @@ int subscribe(uint32_t driver, uint32_t subscribe, subscribe_cb cb, void* userdata) { - asm volatile("svc 1\nbx lr" ::: "memory", "r0"); + register int ret __asm__ ("r0"); + asm volatile("svc 1" ::: "memory", "r0"); + return ret; } int command(uint32_t driver, u...
Resolve 'control reaches end of non-void function' Following http://stackoverflow.com/questions/15927583/
apache-2.0
tock/libtock-c,tock/libtock-c,tock/libtock-c
e14f51a4248fe3c4f031a011b483947bfb2f2f5d
#ifndef _gnugol_engines #define _gnugol_engines 1 #include "nodelist.h" #ifdef DEBUG_SHAREDLIBS # define GNUGOL_SHAREDLIBDIR "../engines" #else # define GNUGOL_SHAREDLIBDIR "/var/lib/gnugol" #endif typedef struct ggengine { Node node; void *lib; const char *name; int (*setup) (QueryO...
#ifndef _gnugol_engines #define _gnugol_engines 1 #ifdef DEBUG_SHAREDLIBS # define GNUGOL_SHAREDLIBDIR "../engines" #else # define GNUGOL_SHAREDLIBDIR "/var/lib/gnugol" #endif typedef struct ggengine { Node node; void *lib; const char *name; int (*setup) (QueryOptions_t *); int ...
--- +++ @@ -1,5 +1,7 @@ #ifndef _gnugol_engines #define _gnugol_engines 1 + +#include "nodelist.h" #ifdef DEBUG_SHAREDLIBS # define GNUGOL_SHAREDLIBDIR "../engines" @@ -16,7 +18,7 @@ int (*search)(QueryOptions_t *); } *GnuGolEngine; -GnuGoldEngine gnugol_engine_load (const char *); +GnuGolEngine g...
Include nodelist here, and fix a typo.
agpl-3.0
dtaht/Gnugol,dtaht/Gnugol,dtaht/Gnugol,dtaht/Gnugol
c5f51ac16b113923162c442e1234223ab528c7d4
// // DDMathParserMacros.h // DDMathParser // // Created by Dave DeLong on 2/19/11. // Copyright 2011 __MyCompanyName__. All rights reserved. // #import <Foundation/Foundation.h> #import "DDTypes.h" #ifndef ERR_ASSERT #define ERR_ASSERT(_e) NSAssert((_e) != nil, @"NULL out error") #endif #ifndef DD_ERR #define ...
// // DDMathParserMacros.h // DDMathParser // // Created by Dave DeLong on 2/19/11. // Copyright 2011 __MyCompanyName__. All rights reserved. // #import <Foundation/Foundation.h> #import "DDTypes.h" #ifndef ERR_ASSERT #define ERR_ASSERT(_e) NSAssert((_e) != nil, @"NULL out error") #endif #ifndef ERR #define DD_...
--- +++ @@ -14,7 +14,7 @@ #define ERR_ASSERT(_e) NSAssert((_e) != nil, @"NULL out error") #endif -#ifndef ERR +#ifndef DD_ERR #define DD_ERR(_c,_f,...) [NSError errorWithDomain:DDMathParserErrorDomain code:(_c) userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:(_f), ##__VA_ARGS__]}] #endif
Correct conditional on DD_ERR macro
mit
mrackwitz/DDMathParser,carabina/DDMathParser,davedelong/DDMathParser,carabina/DDMathParser,mrackwitz/DDMathParser,davedelong/DDMathParser
61f591fe949c76b918ae3342ae8d87b2bd5ce072
// // C++ Interface: getdetailstask // // Description: // // // Author: SUSE AG <>, (C) 2004 // // Copyright: See COPYING file that comes with this distribution // // #ifndef GETDETAILSTASK_H #define GETDETAILSTASK_H #include "gwerror.h" #include "requesttask.h" /** This task fetches the details for a set of user ID...
// // C++ Interface: getdetailstask // // Description: // // // Author: SUSE AG <>, (C) 2004 // // Copyright: See COPYING file that comes with this distribution // // #ifndef GETDETAILSTASK_H #define GETDETAILSTASK_H #include "gwerror.h" #include "requesttask.h" /** This task fetches the details for a set of user ID...
--- +++ @@ -31,7 +31,7 @@ bool take( Transfer * transfer ); void userDNs( const QStringList & userDNs ); signals: - void gotContactUserDetails( const ContactDetails & ); + void gotContactUserDetails( const GroupWise::ContactDetails & ); protected: GroupWise::ContactDetails extractUserDetails( Field::MultiFiel...
Fix broken signal connection CVS_SILENT svn path=/branches/groupwise_in_anger/kdenetwork/kopete/; revision=344030
lgpl-2.1
josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete
f20b984aa6bffeaccdd9b789fc543c93f20271f9
/** * mips.h - all the aliases to MIPS ISA * @author Aleksandr Misevich * Copyright 2018 MIPT-MIPS */ #ifndef MIPS_H_ #define MIPS_H_ #include <infra/instrcache/instr_cache_memory.h> #include "mips_instr.h" struct MIPS { using FuncInstr = MIPSInstr; using Register = MIPSRegister; using Memory = Inst...
/** * mips.h - all the aliases to MIPS ISA * @author Aleksandr Misevich * Copyright 2018 MIPT-MIPS */ #ifndef MIPS_H_ #define MIPS_H_ #include <infra/instrcache/instr_cache_memory.h> #include "mips_instr.h" struct MIPS { using FuncInstr = MIPSInstr; using Register = MIPSRegister; using Memory = Inst...
--- +++ @@ -16,7 +16,7 @@ using Register = MIPSRegister; using Memory = InstrMemory<MIPSInstr>; using RegisterUInt = uint32; - using RegDstUInt = uint64; + using RegDstUInt = doubled_t<uint32>; // MIPS may produce output to 2x HI/LO register }; #endif // MIPS_H_
Use doubled_t for MIPS defines
mit
MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015
3350085ed7177cdc387d162a71073b787ba401be
#ifndef PLATFORM_HW_H__ #define PLATFORM_HW_H__ #include <stdbool.h> #include "color.h" #include "stm32f0xx_hal.h" #include "stm32f0xx_hal_gpio.h" #define LED_CHAIN_LENGTH 10 #define USER_BUTTON_PORT (GPIOA) #define USER_BUTTON_PIN (GPIO_PIN_0) #define LED_SPI_INSTANCE (SPI1) #pragma...
#ifndef PLATFORM_HW_H__ #define PLATFORM_HW_H__ #include <stdbool.h> #include "color.h" #include "stm32f0xx_hal.h" #include "stm32f0xx_hal_gpio.h" #define LED_CHAIN_LENGTH 10 #define USER_BUTTON_PORT (GPIOA) #define USER_BUTTON_PIN (GPIO_PIN_0) #define LED_SPI_INSTANCE (SPI1) #pragma...
--- +++ @@ -18,16 +18,15 @@ union platformHW_LEDRegister { uint8_t raw[4]; struct { + //3 bits always, 5 bits global brightness, 8B, 8G, 8R + //Glob = 0xE1 = min bright + uint8_t globalBrightness :5; + //header/global brightness is 0bAAABBBBB //A = 1 //B ...
Fix incorrect LED header bit order
mit
borgel/sympetrum-v2,borgel/sympetrum-v2
f7285e5f08b0b2aca0caf7fe03b897303c9981bd
/* * Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved. * Copyright 2016 Cryptography Research, Inc. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distributio...
/* * Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved. * Copyright 2016 Cryptography Research, Inc. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distributio...
--- +++ @@ -13,13 +13,11 @@ #ifndef OSSL_CRYPTO_EC_CURVE448_ARCH_64_INTRINSICS_H # define OSSL_CRYPTO_EC_CURVE448_ARCH_64_INTRINSICS_H +# include "internal/constant_time.h" + # define ARCH_WORD_BITS 64 -static ossl_inline uint64_t word_is_zero(uint64_t a) -{ - /* let's hope the compiler isn't clever enough ...
curve448: Use constant time zero check function Signed-off-by: Amitay Isaacs <amitay@ozlabs.org> Reviewed-by: Tomas Mraz <2bc6038c3dfca09b2da23c8b6da8ba884dc2dcc2@openssl.org> Reviewed-by: Matt Caswell <1fa2ef4755a9226cb9a0a4840bd89b158ac71391@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14784)
apache-2.0
openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl
f684a2d783bf2c4728e65f83e0f89ec654f40e79
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "i_hw_info.h" namespace vespalib { /* * Class describing some hardware on the machine. */ class HwInfo : public IHwInfo { bool _spinningDisk; public: HwInfo(); virtua...
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "i_hw_info.h" namespace vespalib { /* * class describing some hardware on the machine. */ class HwInfo : public IHwInfo { bool _spinningDisk; public: HwInfo(); virtua...
--- +++ @@ -7,7 +7,7 @@ namespace vespalib { /* - * class describing some hardware on the machine. + * Class describing some hardware on the machine. */ class HwInfo : public IHwInfo {
Use proper uppercase at start of comment.
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
c67c564520eecf9c8517075b286ec0ac976d07a4
#ifndef __ASM_X86_BITSPERLONG_H #define __ASM_X86_BITSPERLONG_H #if defined(__x86_64__) && !defined(__ILP32__) # define __BITS_PER_LONG 64 #else # define __BITS_PER_LONG 32 #endif #include <asm-generic/bitsperlong.h> #endif /* __ASM_X86_BITSPERLONG_H */
#ifndef __ASM_X86_BITSPERLONG_H #define __ASM_X86_BITSPERLONG_H #ifdef __x86_64__ # define __BITS_PER_LONG 64 #else # define __BITS_PER_LONG 32 #endif #include <asm-generic/bitsperlong.h> #endif /* __ASM_X86_BITSPERLONG_H */
--- +++ @@ -1,7 +1,7 @@ #ifndef __ASM_X86_BITSPERLONG_H #define __ASM_X86_BITSPERLONG_H -#ifdef __x86_64__ +#if defined(__x86_64__) && !defined(__ILP32__) # define __BITS_PER_LONG 64 #else # define __BITS_PER_LONG 32
x86/headers/uapi: Fix __BITS_PER_LONG value for x32 builds On x32, gcc predefines __x86_64__ but long is only 32-bit. Use __ILP32__ to distinguish x32. Fixes this compiler error in perf: tools/include/asm-generic/bitops/__ffs.h: In function '__ffs': tools/include/asm-generic/bitops/__ffs.h:19:8: error: right shif...
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs
f4b4aae1828855db761bf998ce37d3062b1d6446
/* Path handling. This was copied from Lua, with some minor adjustments. The biggest one is the lack of Windows support, because I don't have my Windows box setup for Lily yet (I'd rather make sure Windows works all at once). */ #define LILY_MAJOR "0" #define LILY_MINOR "13" #define LILY_VER...
/* Path handling. This was copied from Lua, with some minor adjustments. The biggest one is the lack of Windows support, because I don't have my Windows box setup for Lily yet (I'd rather make sure Windows works all at once). */ #define LILY_MAJOR "0" #define LILY_MINOR "13" #define LILY_VERSION_DIR LILY_MA...
--- +++ @@ -3,17 +3,18 @@ The biggest one is the lack of Windows support, because I don't have my Windows box setup for Lily yet (I'd rather make sure Windows works all at once). */ -#define LILY_MAJOR "0" -#define LILY_MINOR "13" -#define LILY_VERSION_DIR LILY_MAJOR "." LILY_MINOR +#define LILY_MAJOR ...
Fix up the embarassing mess of path seeding. Yikes. :(
mit
crasm/lily,crasm/lily,boardwalk/lily,crasm/lily,boardwalk/lily
5d334bbd060cb6129f8e8af6b29f897d6d4840a1
/* * Copyright (c) 2018, Intel Corporation. * SPDX-License-Identifier: BSD-3-Clause */ #include <CommandParser.h> #if defined(__LINUX__) || defined(__ESX__) #define EXE_NAME L"ipmctl" #elif defined(_MSC_VER) && defined(OS_BUILD) #define EXE_NAME L"ipmctl.exe" #else #define EXE_NAME ...
/* * Copyright (c) 2018, Intel Corporation. * SPDX-License-Identifier: BSD-3-Clause */ #include <CommandParser.h> #if defined(__LINUX__) || defined(__ESX__) #define EXE_NAME L"ipmctl" #elif defined(_MSC_VER) #define EXE_NAME L"ipmctl.exe" #else #define EXE_NAME L"ipmctl.ef...
--- +++ @@ -7,7 +7,7 @@ #if defined(__LINUX__) || defined(__ESX__) #define EXE_NAME L"ipmctl" -#elif defined(_MSC_VER) +#elif defined(_MSC_VER) && defined(OS_BUILD) #define EXE_NAME L"ipmctl.exe" #else #define EXE_NAME L"ipmctl.efi"
Fix incorrect help message for UEFI Signed-off-by: Shilpa Nanja <a1983ef2f4a2c6b4f6ff7c9741e30dce4eb007d5@intel.com>
bsd-3-clause
intel/ipmctl,intel/ipmctl,intel/ipmctl,intel/ipmctl
42e0da4a0ce867dbc186665754418f5bce98301f
#ifndef _ANDROIDOPENGLINITEVENT_H_ #define _ANDROIDOPENGLINITEVENT_H_ #include <OpenGLInitEvent.h> #include <android/native_window.h> class AndroidOpenGLInitEvent : public OpenGLInitEvent { public: AndroidOpenGLInitEvent(double _timestamp, int _opengl_es_version, ANativeWindow * _window) : OpenGLInitEvent(_timest...
#ifndef _ANDROIDOPENGLINITEVENT_H_ #define _ANDROIDOPENGLINITEVENT_H_ #include <OpenGLInitEvent.h> #include <android/native_window.h> class AndroidOpenGLInitEvent : public OpenGLInitEvent { public: AndroidOpenGLInitEvent(double _timestamp, int _opengl_es_version, ANativeWindow * _window) : OpenGLInitEvent(_timest...
--- +++ @@ -11,7 +11,7 @@ ANativeWindow * getWindow() { return window; } std::shared_ptr<EventBase> dup() const { return std::make_shared<AndroidOpenGLInitEvent>(*this); } - void dispatch(Element & element); + void dispatch(Element & element) { } private: ANativeWindow * window = 0;
Add Todo implementation to dispatch
mit
Sometrik/framework,Sometrik/framework,Sometrik/framework
b374c810d36bffa656b626855d79f19efc6dd2ef
#import "WMFArticleListDataSourceTableViewController.h" @interface WMFDisambiguationPagesViewController : WMFArticleListDataSourceTableViewController @property (nonatomic, strong, readonly) MWKArticle* article; - (instancetype)initWithArticle:(MWKArticle*)article dataStore:(MWKDataStore*)dataStore; @end
#import "WMFArticleListTableViewController.h" @interface WMFDisambiguationPagesViewController : WMFArticleListTableViewController @property (nonatomic, strong, readonly) MWKArticle* article; - (instancetype)initWithArticle:(MWKArticle*)article dataStore:(MWKDataStore*)dataStore; @end
--- +++ @@ -1,6 +1,6 @@ -#import "WMFArticleListTableViewController.h" +#import "WMFArticleListDataSourceTableViewController.h" -@interface WMFDisambiguationPagesViewController : WMFArticleListTableViewController +@interface WMFDisambiguationPagesViewController : WMFArticleListDataSourceTableViewController @prop...
Update disambiguation VC base class
mit
montehurd/apps-ios-wikipedia,josve05a/wikipedia-ios,julienbodet/wikipedia-ios,wikimedia/apps-ios-wikipedia,anirudh24seven/wikipedia-ios,josve05a/wikipedia-ios,julienbodet/wikipedia-ios,josve05a/wikipedia-ios,josve05a/wikipedia-ios,wikimedia/apps-ios-wikipedia,wikimedia/apps-ios-wikipedia,wikimedia/apps-ios-wikipedia,mo...
8d066a64a7a835e3b5b173fa637b2d66e2c3e2c2
// // GTDiffFile.h // ObjectiveGitFramework // // Created by Danny Greg on 30/11/2012. // Copyright (c) 2012 GitHub, Inc. All rights reserved. // #import "git2.h" // Flags which may be set on the file. // // See diff.h for individual documentation. typedef enum : git_diff_flag_t { GTDiffFileFlagValidOID = GIT_DI...
// // GTDiffFile.h // ObjectiveGitFramework // // Created by Danny Greg on 30/11/2012. // Copyright (c) 2012 GitHub, Inc. All rights reserved. // #import "git2.h" // Flags which may be set on the file. // // See diff.h for individual documentation. typedef enum : git_diff_file_flag_t { GTDiffFileFlagValidOID = G...
--- +++ @@ -11,14 +11,10 @@ // Flags which may be set on the file. // // See diff.h for individual documentation. -typedef enum : git_diff_file_flag_t { - GTDiffFileFlagValidOID = GIT_DIFF_FILE_VALID_OID, - GTDiffFileFlagFreePath = GIT_DIFF_FILE_FREE_PATH, - GTDiffFileFlagBinary = GIT_DIFF_FILE_BINARY, - GTDiffFil...
Remove some diff file flags
mit
libgit2/objective-git,TOMalley104/objective-git,alehed/objective-git,pietbrauer/objective-git,nerdishbynature/objective-git,c9s/objective-git,misterfifths/objective-git,dleehr/objective-git,Acidburn0zzz/objective-git,phatblat/objective-git,dleehr/objective-git,blackpixel/objective-git,slavikus/objective-git,slavikus/ob...
9d58853f5797b062e68509c2afcfe5375309d145
#ifndef __BYTESTREAM__ #define __BYTESTREAM__ #include <stdint.h> #include <unistd.h> #define BS_RO 0 #define BS_RW 1 // MAP_ANONYMOUS is MAP_ANON on OSX, so this will let us compile #ifndef MAP_ANONYMOUS #define MAP_ANONYMOUS MAP_ANON #endif typedef struct _ByteStream { char* filename; size_t size; uint8_t*...
#ifndef __BYTESTREAM__ #define __BYTESTREAM__ #include <stdint.h> #include <unistd.h> #define BS_RO 0 #define BS_RW 1 typedef struct _ByteStream { char* filename; size_t size; uint8_t* data; uint32_t offset; int exhausted; } ByteStream; ByteStream* bsalloc(unsigned int size); ByteStream* bsmap(char* fil...
--- +++ @@ -6,6 +6,11 @@ #define BS_RO 0 #define BS_RW 1 + +// MAP_ANONYMOUS is MAP_ANON on OSX, so this will let us compile +#ifndef MAP_ANONYMOUS +#define MAP_ANONYMOUS MAP_ANON +#endif typedef struct _ByteStream { char* filename;
Fix compilation on OSX MAP_ANONYMOUS is MAP_ANON on OSX, so this will let the project compile.
bsd-3-clause
strazzere/dexterity,rchiossi/dexterity,rchiossi/dexterity,rchiossi/dexterity,strazzere/dexterity,strazzere/dexterity
c13fa6ae63ef93364adc41d332eaa249f3585ec6
/* Copyright (C) 2003 Timo Sirainen */ #include "lib.h" #include "ioloop-internal.h" #ifdef IOLOOP_NOTIFY_NONE #undef io_add_notify struct io *io_add_notify(const char *path __attr_unused__, io_callback_t *callback __attr_unused__, void *context __attr_unused__) { return NULL; } void io_loop_notify_remove(...
/* Copyright (C) 2003 Timo Sirainen */ #include "lib.h" #include "ioloop-internal.h" #ifdef IOLOOP_NOTIFY_NONE struct io *io_loop_notify_add(struct ioloop *ioloop __attr_unused__, const char *path __attr_unused__, io_callback_t *callback __attr_unused__, void *context __attr_unused__) { r...
--- +++ @@ -5,10 +5,10 @@ #ifdef IOLOOP_NOTIFY_NONE -struct io *io_loop_notify_add(struct ioloop *ioloop __attr_unused__, - const char *path __attr_unused__, - io_callback_t *callback __attr_unused__, - void *context __attr_unused__) +#undef io_add_notify +struct io *io_add_notify(const c...
Fix for building without notify
mit
Distrotech/dovecot,Distrotech/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,Distrotech/dovecot,damoxc/dovecot,Distrotech/dovecot,Distrotech/dovecot
055d3f2df632ffe49a10bd83956755bb71dc1a61
/* StdAfx.h * * Copyright (C) 2013 Michael Imamura * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
/* StdAfx.h * * Copyright (C) 2013 Michael Imamura * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
--- +++ @@ -32,7 +32,9 @@ #include <list> #include <map> #include <memory> +#include <sstream> #include <string> +#include <vector> #include <utility> #include <SDL2/SDL.h>
Add more common includes to PCH.
apache-2.0
ZoogieZork/Adventures-in-SDL2,ZoogieZork/Adventures-in-SDL2
00ce45e79a3abaf31a3861001b06107f461dcc90
/* This file is part of KDE Copyright (C) 2006 Christian Ehrlicher <ch.ehrlicher@gmx.de> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation. This library is distribut...
/* This file is part of KDE Copyright (C) 2006 Christian Ehrlicher <ch.ehrlicher@gmx.de> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation. This library is distribut...
--- +++ @@ -17,8 +17,8 @@ Boston, MA 02110-1301, USA. */ -#ifndef _KDEBASE_EXPORT_H -#define _KDEBASE_EXPORT_H +#ifndef _KATE_EXPORT_H +#define _KATE_EXPORT_H #include <kdemacros.h> @@ -32,5 +32,5 @@ # endif #endif -#endif // _KDEBASE_EXPORT_H +#endif // _KATE_EXPORT_H
Replace the include guard too. svn path=/trunk/KDE/kdesdk/kate/; revision=636748
lgpl-2.1
hlamer/kate,cmacq2/kate,DickJ/kate,hlamer/kate,hlamer/kate,DickJ/kate,jfmcarreira/kate,sandsmark/kate,hlamer/kate,hlamer/kate,cmacq2/kate,hlamer/kate,hlamer/kate,hlamer/kate,DickJ/kate,jfmcarreira/kate,hlamer/kate,jfmcarreira/kate,sandsmark/kate,hlamer/kate,sandsmark/kate,DickJ/kate,cmacq2/kate,sandsmark/kate
3967214b04e7411c3ac17d17bc8f62be71193c03
#ifndef PROPOSER_H #define PROPOSER_H #include <boost/shared_ptr.hpp> #include <vector> #include <map> #include "proctor/detector.h" #include "proctor/database_entry.h" namespace pcl { namespace proctor { struct Candidate { std::string id; double votes; }; class Proposer { public:...
#ifndef PROPOSER_H #define PROPOSER_H #include <boost/shared_ptr.hpp> #include <vector> #include <map> #include "proctor/detector.h" #include "proctor/database_entry.h" namespace pcl { namespace proctor { struct Candidate { std::string id; float votes; }; class Proposer { public: ...
--- +++ @@ -15,7 +15,7 @@ struct Candidate { std::string id; - float votes; + double votes; }; class Proposer {
Change votes to use double. git-svn-id: 1af002208e930b4d920e7c2b948d1e98a012c795@4320 a9d63959-f2ad-4865-b262-bf0e56cfafb6
bsd-3-clause
psoetens/pcl-svn,psoetens/pcl-svn,psoetens/pcl-svn,psoetens/pcl-svn,psoetens/pcl-svn
6be828419968fa1f105f7362832b4eafb2157ab6
#ifndef WSGI_VERSION_H #define WSGI_VERSION_H /* ------------------------------------------------------------------------- */ /* * Copyright 2007-2021 GRAHAM DUMPLETON * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ...
#ifndef WSGI_VERSION_H #define WSGI_VERSION_H /* ------------------------------------------------------------------------- */ /* * Copyright 2007-2021 GRAHAM DUMPLETON * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ...
--- +++ @@ -25,8 +25,8 @@ #define MOD_WSGI_MAJORVERSION_NUMBER 4 #define MOD_WSGI_MINORVERSION_NUMBER 9 -#define MOD_WSGI_MICROVERSION_NUMBER 0 -#define MOD_WSGI_VERSION_STRING "4.9.0" +#define MOD_WSGI_MICROVERSION_NUMBER 1 +#define MOD_WSGI_VERSION_STRING "4.9.1.dev1" /* -------------------------------------...
Increment version to 4.9.1 for new development work.
apache-2.0
GrahamDumpleton/mod_wsgi,GrahamDumpleton/mod_wsgi,GrahamDumpleton/mod_wsgi
6ebd618ef522838e0478ebacfc60adc7ecc9d8fa
#if (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && (!defined(__IPHONE_6_0) || __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_6_0)) || \ (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && (!defined(__MAC_10_8) || __MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_8)) #define PT_DISPATCH_RETAIN_RELEASE 1 #else #define PT_DISPATCH_RETA...
#if (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && (!defined(__IPHONE_6_0) || __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_6_0)) || \ (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && (!defined(__MAC_10_8) || __MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_8)) #define PT_DISPATCH_RETAIN_RELEASE 1 #endif #if (!defined(PT_DISPA...
--- +++ @@ -1,12 +1,14 @@ #if (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && (!defined(__IPHONE_6_0) || __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_6_0)) || \ (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && (!defined(__MAC_10_8) || __MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_8)) #define PT_DISPATCH_RETAIN_RELEASE 1...
Synchronize logical grouping of defines
mit
rsms/peertalk,rsms/peertalk,rsms/peertalk
56a77a274be12217e07ca8c4b5e2dabdac3c0c2b
/** @file GUID for hardware error record variables. Copyright (c) 2007 - 2009, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the ...
/** @file GUID for hardware error record variables. Copyright (c) 2007 - 2009, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the ...
--- +++ @@ -9,8 +9,6 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - - Module Name: HardwareErrorVariable.h @par Revision Reference: GUID defined in UEFI 2.1.
Remove "Module Name:" from include file headers. git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@8895 6f19259b-4bc3-4df7-8a09-765794883524
bsd-2-clause
MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2
e412c7c88f74bd962509e1c24b1611b909b58b99
// RUN: %clang_cc1 -triple armv7-apple-darwin9 -emit-llvm -w -o - %s | FileCheck %s #include <stdint.h> #define ldrex_func(p, rl, rh) \ __asm__ __volatile__( \ "ldrexd%[_rl], %[_rh], [%[_p]]" \ : [_rl] "=&r" (rl), [_rh] "=&r" (rh) \ : [_p] "p" (p) : "memory") int64_t foo(int64_t v, volati...
// RUN: %clang_cc1 -triple armv7-apple-darwin9 -emit-llvm -w -o - %s | FileCheck %s #include <stdint.h> #define ldrex_func(p, rl, rh) \ __asm__ __volatile__( \ "ldrexd%[_rl], %[_rh], [%[_p]]" \ : [_rl] "=&r" (rl), [_rh] "=&r" (rh) \ : [_p] "p" (p) : "memory") int64_t foo(int64_t v, volati...
--- +++ @@ -20,7 +20,7 @@ : [_rl] "=&r" (rl), [_rh] "=&r" (rh) \ : [_p] "p" (p) : "memory"); - // CHECK: %0 = call %0 asm sideeffect "ldrexd$0, $1, [$2]", "={r1},={r2},r,~{memory}"(i64* %tmp) + // CHECK: %0 = call %0 asm sideeffect "ldrexd$0, $1, [$2]", "={r1},={r2},r,~{memory}"(i64* ret...
Make this test suitable for optimized builds by avoiding the name. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@133238 91177308-0d34-0410-b5e6-96231b3b80d8
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
b165ed7f282b736bb7fe9fa5e98455a437d23fa4
#ifndef INTERRUPTS_H #define INTERRUPTS_H #include "types.h" namespace interrupts { // Enable interrupts on the CPU. inline void enable() { asm volatile("sti"); } // Enable interrupts on the CPU. inline void disable() { asm volatile("cli"); } struct Registers { u32 gs, fs, es, ds; // ...
#ifndef INTERRUPTS_H #define INTERRUPTS_H #include "types.h" namespace interrupts { // Enable interrupts on the CPU. inline void enable() { asm volatile("sti"); } // Enable interrupts on the CPU. inline void disable() { asm volatile("cli"); } struct Registers { u32 gs, fs, es, ds; // ...
--- +++ @@ -26,8 +26,6 @@ void setIrqHandler(u32 irqNum, IrqHandlerFn handlerFn); void init(); -void initIsrs(); -void initIrqs(); void remapPic(); extern "C" void interruptHandler(Registers* regs);
Remove prototypes for removed functions.
isc
tsion/spideros,tsion/spideros,tsion/spideros
394d5c9d3ae0f8e3ff40ae98a3eeab43004c85e6