after
stringlengths
72
2.11k
before
stringlengths
21
1.55k
diff
stringlengths
85
2.31k
instruction
stringlengths
20
1.71k
license
stringclasses
13 values
repos
stringlengths
7
82.6k
commit
stringlengths
40
40
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */ #include "common.h" #include "commands.h" #include "imap-expunge.h" bool cmd_close(struct client_command_context *cmd) { struct client *client = cmd->client; struct mailbox *mailbox = client->mailbox; struct mail_storage *storage; if (!client_verify_open_mailbox(cmd)) return TRUE; storage = mailbox_get_storage(mailbox); client->mailbox = NULL; if (!imap_expunge(mailbox, NULL)) client_send_untagged_storage_error(client, storage); else if (mailbox_sync(mailbox, 0, 0, NULL) < 0) client_send_untagged_storage_error(client, storage); if (mailbox_close(&mailbox) < 0) client_send_untagged_storage_error(client, storage); client_update_mailbox_flags(client, NULL); client_send_tagline(cmd, "OK Close completed."); return TRUE; }
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */ #include "common.h" #include "commands.h" #include "imap-expunge.h" bool cmd_close(struct client_command_context *cmd) { struct client *client = cmd->client; struct mailbox *mailbox = client->mailbox; struct mail_storage *storage; if (!client_verify_open_mailbox(cmd)) return TRUE; storage = mailbox_get_storage(mailbox); client->mailbox = NULL; if (!imap_expunge(mailbox, NULL)) client_send_untagged_storage_error(client, storage); if (mailbox_close(&mailbox) < 0) client_send_untagged_storage_error(client, storage); client_update_mailbox_flags(client, NULL); client_send_tagline(cmd, "OK Close completed."); return TRUE; }
--- +++ @@ -18,6 +18,8 @@ if (!imap_expunge(mailbox, NULL)) client_send_untagged_storage_error(client, storage); + else if (mailbox_sync(mailbox, 0, 0, NULL) < 0) + client_send_untagged_storage_error(client, storage); if (mailbox_close(&mailbox) < 0) client_send_untagged_storage_error(client, storage);
CLOSE: Synchronize the mailbox after expunging messages to actually get them expunged. --HG-- branch : HEAD
mit
dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot
87004dbc4eab7de47be325ac4211d2ce0c43e938
/* ecp_alt.h with dummy types for MBEDTLS_ECP_ALT */ /* * Copyright The Mbed TLS Contributors * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef ECP_ALT_H #define ECP_ALT_H typedef struct mbedtls_ecp_group { const mbedtls_ecp_group_id id; const mbedtls_mpi P; const mbedtls_mpi A; const mbedtls_mpi B; const mbedtls_ecp_point G; const mbedtls_mpi N; const size_t pbits; const size_t nbits; } mbedtls_ecp_group; #endif /* ecp_alt.h */
/* ecp_alt.h with dummy types for MBEDTLS_ECP_ALT */ /* * Copyright The Mbed TLS Contributors * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef ECP_ALT_H #define ECP_ALT_H typedef struct mbedtls_ecp_group { int dummy; } mbedtls_ecp_group; #if !defined(MBEDTLS_ECP_WINDOW_SIZE) #define MBEDTLS_ECP_WINDOW_SIZE 6 #endif #if !defined(MBEDTLS_ECP_FIXED_POINT_OPTIM) #define MBEDTLS_ECP_FIXED_POINT_OPTIM 1 #endif #endif /* ecp_alt.h */
--- +++ @@ -21,19 +21,15 @@ typedef struct mbedtls_ecp_group { - int dummy; + const mbedtls_ecp_group_id id; + const mbedtls_mpi P; + const mbedtls_mpi A; + const mbedtls_mpi B; + const mbedtls_ecp_point G; + const mbedtls_mpi N; + const size_t pbits; + const size_t nbits; } mbedtls_ecp_group; -#if !defined(MBEDTLS_ECP_WINDOW_SIZE) - -#define MBEDTLS_ECP_WINDOW_SIZE 6 -#endif - -#if !defined(MBEDTLS_ECP_FIXED_POINT_OPTIM) - -#define MBEDTLS_ECP_FIXED_POINT_OPTIM 1 -#endif - - #endif /* ecp_alt.h */
Define public fields of mbedtls_ecp_group in alt test header And don't define configuration macros that only apply to the built-in implementation. Signed-off-by: Gilles Peskine <f805f64266d288fc5467baa7be6cd0ff366f477b@arm.com>
apache-2.0
Mbed-TLS/mbedtls,ARMmbed/mbedtls,NXPmicro/mbedtls,ARMmbed/mbedtls,ARMmbed/mbedtls,NXPmicro/mbedtls,Mbed-TLS/mbedtls,ARMmbed/mbedtls,NXPmicro/mbedtls,Mbed-TLS/mbedtls,Mbed-TLS/mbedtls,NXPmicro/mbedtls
ad7f53cdb35644304350b077a9ac11e5ec588036
#include <math.h> #include "gauge.h" int init_gauge(gauge_t *gauge) { gauge->count = 0; gauge->sum = 0; gauge->value = 0; return 0; } int gauge_add_sample(gauge_t *gauge, double sample, bool delta) { if (delta) { gauge->value += sample; } else { gauge->value = sample; } gauge->sum += sample; gauge->count++; return 0; } uint64_t gauge_count(gauge_t *gauge) { return gauge->count; } double gauge_mean(gauge_t *gauge) { return (gauge->count) ? gauge->sum / gauge->count : 0; } double gauge_sum(gauge_t *gauge) { return gauge->sum; } double gauge_value(gauge_t *gauge) { return gauge->value; }
#include <math.h> #include "gauge.h" /** * Initializes the gauge struct * @arg gauge The gauge struct to initialize * @return 0 on success. */ int init_gauge(gauge_t *gauge) { gauge->count = 0; gauge->sum = 0; gauge->value = 0; return 0; } /** * Adds a new sample to the struct * @arg gauge The gauge to add to * @arg sample The new sample value * @arg delta Is this a delta update? * @return 0 on success. */ int gauge_add_sample(gauge_t *gauge, double sample, bool delta) { if (delta) { gauge->value += sample; } else { gauge->value = sample; } gauge->sum += sample; gauge->count++; return 0; } /** * Returns the number of samples in the gauge * @arg gauge The gauge to query * @return The number of samples */ uint64_t gauge_count(gauge_t *gauge) { return gauge->count; } /** * Returns the mean gauge value * @arg gauge The gauge to query * @return The mean value of the gauge */ double gauge_mean(gauge_t *gauge) { return (gauge->count) ? gauge->sum / gauge->count : 0; } /** * Returns the sum of the gauge * @arg gauge The gauge to query * @return The sum of values */ double gauge_sum(gauge_t *gauge) { return gauge->sum; } /** * Returns the gauge value (for backwards compat) * @arg gauge the gauge to query * @return The gauge value */ double gauge_value(gauge_t *gauge) { return gauge->value; }
--- +++ @@ -1,11 +1,7 @@ #include <math.h> #include "gauge.h" -/** - * Initializes the gauge struct - * @arg gauge The gauge struct to initialize - * @return 0 on success. - */ + int init_gauge(gauge_t *gauge) { gauge->count = 0; gauge->sum = 0; @@ -13,13 +9,6 @@ return 0; } -/** - * Adds a new sample to the struct - * @arg gauge The gauge to add to - * @arg sample The new sample value - * @arg delta Is this a delta update? - * @return 0 on success. - */ int gauge_add_sample(gauge_t *gauge, double sample, bool delta) { if (delta) { gauge->value += sample; @@ -31,38 +20,18 @@ return 0; } -/** - * Returns the number of samples in the gauge - * @arg gauge The gauge to query - * @return The number of samples - */ uint64_t gauge_count(gauge_t *gauge) { return gauge->count; } -/** - * Returns the mean gauge value - * @arg gauge The gauge to query - * @return The mean value of the gauge - */ double gauge_mean(gauge_t *gauge) { return (gauge->count) ? gauge->sum / gauge->count : 0; } -/** - * Returns the sum of the gauge - * @arg gauge The gauge to query - * @return The sum of values - */ double gauge_sum(gauge_t *gauge) { return gauge->sum; } -/** - * Returns the gauge value (for backwards compat) - * @arg gauge the gauge to query - * @return The gauge value - */ double gauge_value(gauge_t *gauge) { return gauge->value; }
Remove duplicate comment from the c file
bsd-3-clause
drawks/statsite,theatrus/statsite,theatrus/statsite,drawks/statsite,drawks/statsite,drawks/statsite,theatrus/statsite,drawks/statsite,theatrus/statsite,theatrus/statsite,drawks/statsite
9a12c4bd62e7b23a69f8adc616f42a8f3c4c1685
#include "comm.h" static void inbox_received_handler(DictionaryIterator *iter, void *context) { #if defined(PBL_COLOR) Tuple *background_t = dict_find(iter, AppKeyColorBackground); if(background_t) { data_set_color(ColorBackground, (GColor){ .argb = background_t->value->int8 }); } Tuple *sides_t = dict_find(iter, AppKeyColorSides); if(sides_t) { data_set_color(ColorSides, (GColor){ .argb = sides_t->value->int8 }); } Tuple *face_t = dict_find(iter, AppKeyColorFace); if(face_t) { data_set_color(ColorFace, (GColor){ .argb = face_t->value->int8 }); } #endif // Other settings Tuple *anim_t = dict_find(iter, AppKeyAnimations); if(anim_t) { data_set_animations(anim_t->value->int8 == 1); } Tuple *bluetooth_t = dict_find(iter, AppKeyBluetooth); if(bluetooth_t) { data_set_bluetooth_alert(bluetooth_t->value->int8 == 1); } // Quit to be reloaded window_stack_pop_all(true); } void comm_init(int inbox, int outbox) { app_message_register_inbox_received(inbox_received_handler); app_message_open(inbox, outbox); }
#include "comm.h" static void inbox_received_handler(DictionaryIterator *iter, void *context) { #if defined(PBL_COLOR) Tuple *background_t = dict_find(iter, AppKeyColorBackground); if(background_t) { data_set_color(ColorBackground, (GColor){ .argb = background_t->value->int32 }); } Tuple *sides_t = dict_find(iter, AppKeyColorSides); if(sides_t) { data_set_color(ColorSides, (GColor){ .argb = sides_t->value->int32 }); } Tuple *face_t = dict_find(iter, AppKeyColorFace); if(face_t) { data_set_color(ColorFace, (GColor){ .argb = face_t->value->int32 }); } #endif // Other settings Tuple *anim_t = dict_find(iter, AppKeyAnimations); if(anim_t) { data_set_animations(anim_t->value->int32 == 1); } Tuple *bluetooth_t = dict_find(iter, AppKeyBluetooth); if(bluetooth_t) { data_set_bluetooth_alert(bluetooth_t->value->int32 == 1); } // Quit to be reloaded window_stack_pop_all(true); } void comm_init(int inbox, int outbox) { app_message_register_inbox_received(inbox_received_handler); app_message_open(inbox, outbox); }
--- +++ @@ -4,29 +4,29 @@ #if defined(PBL_COLOR) Tuple *background_t = dict_find(iter, AppKeyColorBackground); if(background_t) { - data_set_color(ColorBackground, (GColor){ .argb = background_t->value->int32 }); + data_set_color(ColorBackground, (GColor){ .argb = background_t->value->int8 }); } Tuple *sides_t = dict_find(iter, AppKeyColorSides); if(sides_t) { - data_set_color(ColorSides, (GColor){ .argb = sides_t->value->int32 }); + data_set_color(ColorSides, (GColor){ .argb = sides_t->value->int8 }); } Tuple *face_t = dict_find(iter, AppKeyColorFace); if(face_t) { - data_set_color(ColorFace, (GColor){ .argb = face_t->value->int32 }); + data_set_color(ColorFace, (GColor){ .argb = face_t->value->int8 }); } #endif // Other settings Tuple *anim_t = dict_find(iter, AppKeyAnimations); if(anim_t) { - data_set_animations(anim_t->value->int32 == 1); + data_set_animations(anim_t->value->int8 == 1); } Tuple *bluetooth_t = dict_find(iter, AppKeyBluetooth); if(bluetooth_t) { - data_set_bluetooth_alert(bluetooth_t->value->int32 == 1); + data_set_bluetooth_alert(bluetooth_t->value->int8 == 1); } // Quit to be reloaded
Use more reliable union value
mit
C-D-Lewis/isotime-appstore,C-D-Lewis/isotime-appstore,C-D-Lewis/isotime-appstore,C-D-Lewis/isotime-appstore
edb65bb8be45202ec4b1b0dbaeb4cbe0b50e1553
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_RENDERER_WEBVIEW_COLOR_OVERLAY_H_ #define CHROME_RENDERER_WEBVIEW_COLOR_OVERLAY_H_ #pragma once #include "base/basictypes.h" #include "base/compiler_specific.h" #include "third_party/skia/include/core/SkColor.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageOverlay.h" #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" namespace content { class RenderView; } // This class draws the given color on a PageOverlay of a WebView. class WebViewColorOverlay : public WebKit::WebPageOverlay { public: WebViewColorOverlay(content::RenderView* render_view, SkColor color); virtual ~WebViewColorOverlay(); private: // WebKit::WebPageOverlay implementation: virtual void paintPageOverlay(WebKit::WebCanvas* canvas); content::RenderView* render_view_; SkColor color_; DISALLOW_COPY_AND_ASSIGN(WebViewColorOverlay); }; #endif // CHROME_RENDERER_WEBVIEW_COLOR_OVERLAY_H_
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_RENDERER_WEBVIEW_COLOR_OVERLAY_H_ #define CHROME_RENDERER_WEBVIEW_COLOR_OVERLAY_H_ #pragma once #include "base/basictypes.h" #include "base/compiler_specific.h" #include "third_party/skia/include/core/SkColor.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageOverlay.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h" namespace content { class RenderView; } // This class draws the given color on a PageOverlay of a WebView. class WebViewColorOverlay : public WebKit::WebPageOverlay { public: WebViewColorOverlay(content::RenderView* render_view, SkColor color); virtual ~WebViewColorOverlay(); private: // WebKit::WebPageOverlay implementation: virtual void paintPageOverlay(WebKit::WebCanvas* canvas); content::RenderView* render_view_; SkColor color_; DISALLOW_COPY_AND_ASSIGN(WebViewColorOverlay); }; #endif // CHROME_RENDERER_WEBVIEW_COLOR_OVERLAY_H_
--- +++ @@ -10,7 +10,7 @@ #include "base/compiler_specific.h" #include "third_party/skia/include/core/SkColor.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageOverlay.h" -#include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h" +#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" namespace content { class RenderView;
Fix build break from the future. TBR=pfeldman Review URL: http://codereview.chromium.org/8801036 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@113098 0039d316-1c4b-4281-b951-d872f2087c98
bsd-3-clause
Fireblend/chromium-crosswalk,hujiajie/pa-chromium,anirudhSK/chromium,junmin-zhu/chromium-rivertrail,pozdnyakov/chromium-crosswalk,nacl-webkit/chrome_deps,Fireblend/chromium-crosswalk,pozdnyakov/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,anirudhSK/chromium,bright-sparks/chromium-spacewalk,bright-sparks/chromium-spacewalk,rogerwang/chromium,keishi/chromium,pozdnyakov/chromium-crosswalk,fujunwei/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,mogoweb/chromium-crosswalk,timopulkkinen/BubbleFish,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,M4sse/chromium.src,dednal/chromium.src,Chilledheart/chromium,jaruba/chromium.src,hgl888/chromium-crosswalk-efl,ondra-novak/chromium.src,junmin-zhu/chromium-rivertrail,zcbenz/cefode-chromium,junmin-zhu/chromium-rivertrail,fujunwei/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,M4sse/chromium.src,anirudhSK/chromium,junmin-zhu/chromium-rivertrail,Jonekee/chromium.src,Just-D/chromium-1,Chilledheart/chromium,robclark/chromium,TheTypoMaster/chromium-crosswalk,M4sse/chromium.src,hgl888/chromium-crosswalk,keishi/chromium,jaruba/chromium.src,M4sse/chromium.src,ChromiumWebApps/chromium,fujunwei/chromium-crosswalk,zcbenz/cefode-chromium,ltilve/chromium,krieger-od/nwjs_chromium.src,Just-D/chromium-1,dednal/chromium.src,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,Chilledheart/chromium,Pluto-tv/chromium-crosswalk,pozdnyakov/chromium-crosswalk,Fireblend/chromium-crosswalk,Just-D/chromium-1,littlstar/chromium.src,Chilledheart/chromium,mogoweb/chromium-crosswalk,anirudhSK/chromium,junmin-zhu/chromium-rivertrail,timopulkkinen/BubbleFish,rogerwang/chromium,Jonekee/chromium.src,crosswalk-project/chromium-crosswalk-efl,timopulkkinen/BubbleFish,dednal/chromium.src,patrickm/chromium.src,dushu1203/chromium.src,jaruba/chromium.src,anirudhSK/chromium,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,mogoweb/chromium-crosswalk,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,markYoungH/chromium.src,hgl888/chromium-crosswalk,axinging/chromium-crosswalk,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk-efl,chuan9/chromium-crosswalk,Just-D/chromium-1,nacl-webkit/chrome_deps,axinging/chromium-crosswalk,mogoweb/chromium-crosswalk,jaruba/chromium.src,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk,Just-D/chromium-1,axinging/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,markYoungH/chromium.src,krieger-od/nwjs_chromium.src,bright-sparks/chromium-spacewalk,ChromiumWebApps/chromium,jaruba/chromium.src,robclark/chromium,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk,dednal/chromium.src,ChromiumWebApps/chromium,littlstar/chromium.src,Chilledheart/chromium,Pluto-tv/chromium-crosswalk,littlstar/chromium.src,patrickm/chromium.src,timopulkkinen/BubbleFish,nacl-webkit/chrome_deps,Pluto-tv/chromium-crosswalk,zcbenz/cefode-chromium,mogoweb/chromium-crosswalk,mogoweb/chromium-crosswalk,axinging/chromium-crosswalk,markYoungH/chromium.src,patrickm/chromium.src,ChromiumWebApps/chromium,Pluto-tv/chromium-crosswalk,ondra-novak/chromium.src,ltilve/chromium,rogerwang/chromium,dednal/chromium.src,mogoweb/chromium-crosswalk,anirudhSK/chromium,Jonekee/chromium.src,mogoweb/chromium-crosswalk,Chilledheart/chromium,ltilve/chromium,dushu1203/chromium.src,robclark/chromium,axinging/chromium-crosswalk,ondra-novak/chromium.src,rogerwang/chromium,krieger-od/nwjs_chromium.src,Fireblend/chromium-crosswalk,jaruba/chromium.src,zcbenz/cefode-chromium,chuan9/chromium-crosswalk,M4sse/chromium.src,Chilledheart/chromium,krieger-od/nwjs_chromium.src,rogerwang/chromium,robclark/chromium,dednal/chromium.src,hujiajie/pa-chromium,jaruba/chromium.src,Chilledheart/chromium,mohamed--abdel-maksoud/chromium.src,bright-sparks/chromium-spacewalk,keishi/chromium,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,littlstar/chromium.src,nacl-webkit/chrome_deps,rogerwang/chromium,hgl888/chromium-crosswalk-efl,anirudhSK/chromium,ChromiumWebApps/chromium,krieger-od/nwjs_chromium.src,zcbenz/cefode-chromium,dushu1203/chromium.src,TheTypoMaster/chromium-crosswalk,hujiajie/pa-chromium,chuan9/chromium-crosswalk,robclark/chromium,zcbenz/cefode-chromium,Fireblend/chromium-crosswalk,Pluto-tv/chromium-crosswalk,krieger-od/nwjs_chromium.src,TheTypoMaster/chromium-crosswalk,bright-sparks/chromium-spacewalk,hgl888/chromium-crosswalk,ondra-novak/chromium.src,ondra-novak/chromium.src,ondra-novak/chromium.src,crosswalk-project/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,dednal/chromium.src,markYoungH/chromium.src,timopulkkinen/BubbleFish,littlstar/chromium.src,Pluto-tv/chromium-crosswalk,markYoungH/chromium.src,timopulkkinen/BubbleFish,anirudhSK/chromium,axinging/chromium-crosswalk,ondra-novak/chromium.src,chuan9/chromium-crosswalk,markYoungH/chromium.src,Pluto-tv/chromium-crosswalk,dednal/chromium.src,timopulkkinen/BubbleFish,markYoungH/chromium.src,TheTypoMaster/chromium-crosswalk,krieger-od/nwjs_chromium.src,keishi/chromium,bright-sparks/chromium-spacewalk,anirudhSK/chromium,mogoweb/chromium-crosswalk,keishi/chromium,hujiajie/pa-chromium,hgl888/chromium-crosswalk-efl,ChromiumWebApps/chromium,M4sse/chromium.src,timopulkkinen/BubbleFish,junmin-zhu/chromium-rivertrail,pozdnyakov/chromium-crosswalk,pozdnyakov/chromium-crosswalk,robclark/chromium,robclark/chromium,mohamed--abdel-maksoud/chromium.src,fujunwei/chromium-crosswalk,Jonekee/chromium.src,dednal/chromium.src,nacl-webkit/chrome_deps,bright-sparks/chromium-spacewalk,Fireblend/chromium-crosswalk,M4sse/chromium.src,ltilve/chromium,M4sse/chromium.src,patrickm/chromium.src,hgl888/chromium-crosswalk-efl,hgl888/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,ChromiumWebApps/chromium,dushu1203/chromium.src,zcbenz/cefode-chromium,ChromiumWebApps/chromium,timopulkkinen/BubbleFish,M4sse/chromium.src,dushu1203/chromium.src,PeterWangIntel/chromium-crosswalk,axinging/chromium-crosswalk,chuan9/chromium-crosswalk,junmin-zhu/chromium-rivertrail,hujiajie/pa-chromium,dushu1203/chromium.src,bright-sparks/chromium-spacewalk,patrickm/chromium.src,hujiajie/pa-chromium,fujunwei/chromium-crosswalk,nacl-webkit/chrome_deps,hujiajie/pa-chromium,Pluto-tv/chromium-crosswalk,krieger-od/nwjs_chromium.src,mogoweb/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,markYoungH/chromium.src,hujiajie/pa-chromium,keishi/chromium,mohamed--abdel-maksoud/chromium.src,rogerwang/chromium,PeterWangIntel/chromium-crosswalk,axinging/chromium-crosswalk,nacl-webkit/chrome_deps,Just-D/chromium-1,dushu1203/chromium.src,anirudhSK/chromium,junmin-zhu/chromium-rivertrail,dushu1203/chromium.src,littlstar/chromium.src,ondra-novak/chromium.src,hgl888/chromium-crosswalk,markYoungH/chromium.src,mohamed--abdel-maksoud/chromium.src,hujiajie/pa-chromium,keishi/chromium,ChromiumWebApps/chromium,TheTypoMaster/chromium-crosswalk,rogerwang/chromium,Jonekee/chromium.src,keishi/chromium,markYoungH/chromium.src,Chilledheart/chromium,dednal/chromium.src,fujunwei/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,rogerwang/chromium,ltilve/chromium,zcbenz/cefode-chromium,nacl-webkit/chrome_deps,jaruba/chromium.src,zcbenz/cefode-chromium,Jonekee/chromium.src,anirudhSK/chromium,hgl888/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,M4sse/chromium.src,nacl-webkit/chrome_deps,jaruba/chromium.src,jaruba/chromium.src,zcbenz/cefode-chromium,Jonekee/chromium.src,ltilve/chromium,krieger-od/nwjs_chromium.src,axinging/chromium-crosswalk,keishi/chromium,Jonekee/chromium.src,Just-D/chromium-1,robclark/chromium,jaruba/chromium.src,patrickm/chromium.src,chuan9/chromium-crosswalk,pozdnyakov/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,bright-sparks/chromium-spacewalk,axinging/chromium-crosswalk,ChromiumWebApps/chromium,ltilve/chromium,junmin-zhu/chromium-rivertrail,robclark/chromium,zcbenz/cefode-chromium,dushu1203/chromium.src,keishi/chromium,ltilve/chromium,chuan9/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,hgl888/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk-efl,M4sse/chromium.src,ChromiumWebApps/chromium,hujiajie/pa-chromium,rogerwang/chromium,robclark/chromium,Fireblend/chromium-crosswalk,keishi/chromium,markYoungH/chromium.src,timopulkkinen/BubbleFish,timopulkkinen/BubbleFish,patrickm/chromium.src,pozdnyakov/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,littlstar/chromium.src,axinging/chromium-crosswalk,Just-D/chromium-1,Jonekee/chromium.src,chuan9/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,fujunwei/chromium-crosswalk,dednal/chromium.src,hgl888/chromium-crosswalk-efl,nacl-webkit/chrome_deps,crosswalk-project/chromium-crosswalk-efl,ltilve/chromium,anirudhSK/chromium,crosswalk-project/chromium-crosswalk-efl,crosswalk-project/chromium-crosswalk-efl,patrickm/chromium.src,Jonekee/chromium.src,littlstar/chromium.src,Jonekee/chromium.src,crosswalk-project/chromium-crosswalk-efl,ondra-novak/chromium.src,ChromiumWebApps/chromium,dushu1203/chromium.src,junmin-zhu/chromium-rivertrail,mohamed--abdel-maksoud/chromium.src,pozdnyakov/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,dushu1203/chromium.src,junmin-zhu/chromium-rivertrail,patrickm/chromium.src
f768655c72cb93e263763f23b3238acd04ac2a19
#include <stdio.h> void SpinYetAgain() { volatile unsigned int count = 0; int i; for(i=0; i<1000; i++) { count++; } } void SpinSomeMore() { volatile unsigned int count = 0; int i; for(i=0; i<1000; i++) { count++; } SpinYetAgain(); } void Spin() { volatile unsigned int count = 0; int i; for(i=0; i<1000; i++) { count++; } SpinSomeMore(); } int main(int argc, char* argv[]) { while(1) { Spin(); } }
#include <stdio.h> void SpinYetAgain() { volatile unsigned int count = 0; for(int i=0; i<1000; i++) { count++; } } void SpinSomeMore() { volatile unsigned int count = 0; for(int i=0; i<1000; i++) { count++; } SpinYetAgain(); } void Spin() { volatile unsigned int count = 0; for(int i=0; i<1000; i++) { count++; } SpinSomeMore(); } int main(int argc, char* argv[]) { while(1) { Spin(); } }
--- +++ @@ -3,7 +3,8 @@ void SpinYetAgain() { volatile unsigned int count = 0; - for(int i=0; i<1000; i++) + int i; + for(i=0; i<1000; i++) { count++; } @@ -12,7 +13,8 @@ void SpinSomeMore() { volatile unsigned int count = 0; - for(int i=0; i<1000; i++) + int i; + for(i=0; i<1000; i++) { count++; } @@ -23,7 +25,8 @@ void Spin() { volatile unsigned int count = 0; - for(int i=0; i<1000; i++) + int i; + for(i=0; i<1000; i++) { count++; }
Fix C declaration errors on ARM.
mit
brianrob/coretests,brianrob/coretests
80dadf74982bc78acb1fedd5e9e65f754d6bbee8
#include_next <string.h> #ifndef LIBCRYPTOCOMPAT_STRING_H #define LIBCRYPTOCOMPAT_STRING_H #include <sys/types.h> #ifdef __sun /* Some functions historically defined in string.h were placed in strings.h by * SUS. Use the same hack as OS X and FreeBSD use to work around on Solaris. */ #include <strings.h> #endif size_t strlcpy(char *dst, const char *src, size_t siz); size_t strlcat(char *dst, const char *src, size_t siz); void explicit_bzero(void *, size_t); int timingsafe_bcmp(const void *b1, const void *b2, size_t n); int timingsafe_memcmp(const void *b1, const void *b2, size_t len); #endif
#include_next <string.h> #ifndef LIBCRYPTOCOMPAT_STRING_H #define LIBCRYPTOCOMPAT_STRING_H #include <sys/types.h> #ifdef __sun /* Some functions historically defined in string.h were placed in strings.h by * SUS. Use the same hack as OS X and FreeBSD use to work around on Solaris. */ #include <strings.h> #endif size_t strlcpy(char *dst, const char *src, size_t siz); size_t strlcat(char *dst, const char *src, size_t siz); void explicit_bzero(void *, size_t); int timingsafe_bcmp(const void *b1, const void *b2, size_t n); int timingsafe_memcmp(const void *b1, const void *b2, size_t len); #ifdef __pnacl__ inline int strncasecmp(const char *str1, const char *str2, size_t n) { size_t i = 0; for(; str1[i] == str2[i] && str1[i] != '\0' && str2[i] != '\0' && i < n; ++i) { } return (int)(str1[i] - str2[i]); } inline int strcasecmp(const char *str1, const char *str2) { size_t i = 0; for(; str1[i] == str2[i] && str1[i] != '\0' && str2[i] != '\0'; ++i) { } return (int)(str1[i] - str2[i]); } #endif /* __pnacl__ */ #endif
--- +++ @@ -22,20 +22,4 @@ int timingsafe_memcmp(const void *b1, const void *b2, size_t len); -#ifdef __pnacl__ -inline int strncasecmp(const char *str1, const char *str2, size_t n) { - size_t i = 0; - for(; str1[i] == str2[i] && - str1[i] != '\0' && str2[i] != '\0' && - i < n; ++i) { } - return (int)(str1[i] - str2[i]); -} -inline int strcasecmp(const char *str1, const char *str2) { - size_t i = 0; - for(; str1[i] == str2[i] && - str1[i] != '\0' && str2[i] != '\0'; ++i) { } - return (int)(str1[i] - str2[i]); -} -#endif /* __pnacl__ */ - #endif
Fix multiple def errors for strcasecmp && strncasecmp.
mpl-2.0
DiamondLovesYou/rust-ppapi,DiamondLovesYou/rust-ppapi,DiamondLovesYou/rust-ppapi,DiamondLovesYou/rust-ppapi
e62b57a8e9fce54fc356a8379b22a065e510450b
/* * The OpenDiamond Platform for Interactive Search * Version 4 * * Copyright (c) 2002-2005 Intel Corporation * All rights reserved. * * This software is distributed under the terms of the Eclipse Public * License, Version 1.0 which can be found in the file named LICENSE. * ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS SOFTWARE CONSTITUTES * RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT */ #ifndef _SYS_ATTR_H_ #define _SYS_ATTR_H_ /* * Names for some of the system defined attributes. */ #define OBJ_ID "_ObjectID" #define OBJ_DATA "" #define DISPLAY_NAME "Display-Name" #define DEVICE_NAME "Device-Name" #define FLTRTIME "_FIL_TIME.time" #define FLTRTIME_FN "_FIL_TIME_%s.time" #endif /* _SYS_ATTR_H_ */
/* * The OpenDiamond Platform for Interactive Search * Version 4 * * Copyright (c) 2002-2005 Intel Corporation * All rights reserved. * * This software is distributed under the terms of the Eclipse Public * License, Version 1.0 which can be found in the file named LICENSE. * ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS SOFTWARE CONSTITUTES * RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT */ #ifndef _SYS_ATTR_H_ #define _SYS_ATTR_H_ /* * Names for some of the system defined attributes. * XXX update these from the spec. */ #define SIZE "SYS_SIZE" #define UID "SYS_UID" #define GID "SYS_GID" #define BLK_SIZE "SYS_BLKSIZE" #define ATIME "SYS_ATIME" #define MTIME "SYS_MTIME" #define CTIME "SYS_CTIME" #define OBJ_ID "_ObjectID" #define OBJ_DATA "" #define DISPLAY_NAME "Display-Name" #define DEVICE_NAME "Device-Name" #define OBJ_PATH "_path.cstring" #define FLTRTIME "_FIL_TIME.time" #define FLTRTIME_FN "_FIL_TIME_%s.time" #define PERMEABILITY_FN "_FIL_STAT_%s_permeability.float" #endif /* _SYS_ATTR_H_ */
--- +++ @@ -16,16 +16,7 @@ /* * Names for some of the system defined attributes. - * XXX update these from the spec. */ - -#define SIZE "SYS_SIZE" -#define UID "SYS_UID" -#define GID "SYS_GID" -#define BLK_SIZE "SYS_BLKSIZE" -#define ATIME "SYS_ATIME" -#define MTIME "SYS_MTIME" -#define CTIME "SYS_CTIME" #define OBJ_ID "_ObjectID" #define OBJ_DATA "" @@ -33,10 +24,8 @@ #define DISPLAY_NAME "Display-Name" #define DEVICE_NAME "Device-Name" -#define OBJ_PATH "_path.cstring" #define FLTRTIME "_FIL_TIME.time" #define FLTRTIME_FN "_FIL_TIME_%s.time" -#define PERMEABILITY_FN "_FIL_STAT_%s_permeability.float" #endif /* _SYS_ATTR_H_ */
Drop definitions of unused object attributes
epl-1.0
cmusatyalab/opendiamond,cmusatyalab/opendiamond,cmusatyalab/opendiamond,cmusatyalab/opendiamond,cmusatyalab/opendiamond
ab3d51e895884d5beb0ad836fa88dfe702408c07
/* * Copyright (c) 2016, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #pragma once #include <folly/fibers/FiberManagerMap.h> #include <wangle/concurrent/IOExecutor.h> namespace wangle { /** * @class FiberIOExecutor * @brief An IOExecutor that executes funcs under mapped fiber context * * A FiberIOExecutor wraps an IOExecutor, but executes funcs on the FiberManager * mapped to the underlying IOExector's event base. */ class FiberIOExecutor : public IOExecutor { public: explicit FiberIOExecutor( const std::shared_ptr<IOExecutor>& ioExecutor) : ioExecutor_(ioExecutor) {} virtual void add(std::function<void()> f) override { auto eventBase = ioExecutor_->getEventBase(); getFiberManager(*eventBase).add(std::move(f)); } virtual EventBase* getEventBase() override { return ioExecutor_->getEventBase(); } private: std::shared_ptr<IOExecutor> ioExecutor_; }; } // namespace wangle
/* * Copyright (c) 2016, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #pragma once #include <folly/experimental/fibers/FiberManagerMap.h> #include <wangle/concurrent/IOExecutor.h> namespace wangle { /** * @class FiberIOExecutor * @brief An IOExecutor that executes funcs under mapped fiber context * * A FiberIOExecutor wraps an IOExecutor, but executes funcs on the FiberManager * mapped to the underlying IOExector's event base. */ class FiberIOExecutor : public IOExecutor { public: explicit FiberIOExecutor( const std::shared_ptr<IOExecutor>& ioExecutor) : ioExecutor_(ioExecutor) {} virtual void add(std::function<void()> f) override { auto eventBase = ioExecutor_->getEventBase(); getFiberManager(*eventBase).add(std::move(f)); } virtual EventBase* getEventBase() override { return ioExecutor_->getEventBase(); } private: std::shared_ptr<IOExecutor> ioExecutor_; }; } // namespace wangle
--- +++ @@ -10,7 +10,7 @@ #pragma once -#include <folly/experimental/fibers/FiberManagerMap.h> +#include <folly/fibers/FiberManagerMap.h> #include <wangle/concurrent/IOExecutor.h> namespace wangle {
Move fibers out of experimental Summary: folly::fibers have been used by mcrouter for more than 2 years, so not really experimental. Reviewed By: pavlo-fb Differential Revision: D3320595 fbshipit-source-id: 68188f92b71a4206d57222993848521ca5437ef5
apache-2.0
facebook/wangle,facebook/wangle,facebook/wangle
4903f961a88751e684f703aaf08511cd5c486a84
// // EXPDefines.h // Expecta // // Created by Luke Redpath on 26/03/2012. // Copyright (c) 2012 Peter Jihoon Kim. All rights reserved. // #ifndef Expecta_EXPDefines_h #define Expecta_EXPDefines_h typedef void (^EXPBasicBlock)(void); typedef id (^EXPIdBlock)(void); typedef BOOL (^EXPBoolBlock)(void); typedef NSString *(^EXPStringBlock)(void); #endif
// // EXPDefines.h // Expecta // // Created by Luke Redpath on 26/03/2012. // Copyright (c) 2012 Peter Jihoon Kim. All rights reserved. // #ifndef Expecta_EXPDefines_h #define Expecta_EXPDefines_h typedef void (^EXPBasicBlock)(); typedef id (^EXPIdBlock)(); typedef BOOL (^EXPBoolBlock)(); typedef NSString *(^EXPStringBlock)(); #endif
--- +++ @@ -9,9 +9,9 @@ #ifndef Expecta_EXPDefines_h #define Expecta_EXPDefines_h -typedef void (^EXPBasicBlock)(); -typedef id (^EXPIdBlock)(); -typedef BOOL (^EXPBoolBlock)(); -typedef NSString *(^EXPStringBlock)(); +typedef void (^EXPBasicBlock)(void); +typedef id (^EXPIdBlock)(void); +typedef BOOL (^EXPBoolBlock)(void); +typedef NSString *(^EXPStringBlock)(void); #endif
Fix warning ‘This function declaration is not a prototype’
mit
specta/expecta
f18cd042b17d28811ae308c0c7b9e4b20d2068e9
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_ #define WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_ #include "third_party/ppapi/c/pp_var.h" #define PPB_PRIVATE_INTERFACE "PPB_Private;1" typedef enum _ppb_ResourceString { PPB_RESOURCE_STRING_PDF_GET_PASSWORD = 0, } PP_ResourceString; typedef struct _ppb_Private { // Returns a localized string. PP_Var (*GetLocalizedString)(PP_ResourceString string_id); } PPB_Private; #endif // WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_ #define WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_ #include "ppapi/c/pp_var.h" #define PPB_PRIVATE_INTERFACE "PPB_Private;1" typedef enum _ppb_ResourceString { PPB_RESOURCE_STRING_PDF_GET_PASSWORD = 0, } PP_ResourceString; typedef struct _ppb_Private { // Returns a localized string. PP_Var (*GetLocalizedString)(PP_ResourceString string_id); } PPB_Private; #endif // WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_
--- +++ @@ -5,7 +5,7 @@ #ifndef WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_ #define WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_ -#include "ppapi/c/pp_var.h" +#include "third_party/ppapi/c/pp_var.h" #define PPB_PRIVATE_INTERFACE "PPB_Private;1"
Add third_party/ prefix to ppapi include for checkdeps. The only users of this ppb should be inside chrome so this should work fine. TBR=jam@chromium.org Review URL: http://codereview.chromium.org/3019006 git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@52766 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
bsd-3-clause
wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser
b5583121378597058f8f083243d2299fd262e509
/***************************************************************************/ /* sha.h */ /* */ /* SHA-1 code header file. */ /* Taken from the public domain implementation by Peter C. Gutmann */ /* on 2 Sep 1992, modified by Carl Ellison to be SHA-1. */ /***************************************************************************/ #ifndef _SHA_H_ #define _SHA_H_ #include <stdint.h> /* Define APG_LITTLE_ENDIAN if the machine is little-endian */ #define APG_LITTLE_ENDIAN /* Useful defines/typedefs */ typedef uint8_t BYTE ; typedef uint32_t LONG ; /* The SHA block size and message digest sizes, in bytes */ #define SHA_BLOCKSIZE 64 #define SHA_DIGESTSIZE 20 /* The structure for storing SHA info */ typedef struct { LONG digest[ 5 ] ; /* Message digest */ LONG countLo, countHi ; /* 64-bit bit count */ LONG data[ 16 ] ; /* SHA data buffer */ LONG slop ; /* # of bytes saved in data[] */ } apg_SHA_INFO ; void apg_shaInit( apg_SHA_INFO *shaInfo ) ; void apg_shaUpdate( apg_SHA_INFO *shaInfo, BYTE *buffer, int count ) ; void apg_shaFinal( apg_SHA_INFO *shaInfo, BYTE hash[SHA_DIGESTSIZE] ) ; #endif /* _SHA_H_ */
/***************************************************************************/ /* sha.h */ /* */ /* SHA-1 code header file. */ /* Taken from the public domain implementation by Peter C. Gutmann */ /* on 2 Sep 1992, modified by Carl Ellison to be SHA-1. */ /***************************************************************************/ #ifndef _SHA_H_ #define _SHA_H_ /* Define APG_LITTLE_ENDIAN if the machine is little-endian */ #define APG_LITTLE_ENDIAN /* Useful defines/typedefs */ typedef unsigned char BYTE ; typedef unsigned long LONG ; /* The SHA block size and message digest sizes, in bytes */ #define SHA_BLOCKSIZE 64 #define SHA_DIGESTSIZE 20 /* The structure for storing SHA info */ typedef struct { LONG digest[ 5 ] ; /* Message digest */ LONG countLo, countHi ; /* 64-bit bit count */ LONG data[ 16 ] ; /* SHA data buffer */ LONG slop ; /* # of bytes saved in data[] */ } apg_SHA_INFO ; void apg_shaInit( apg_SHA_INFO *shaInfo ) ; void apg_shaUpdate( apg_SHA_INFO *shaInfo, BYTE *buffer, int count ) ; void apg_shaFinal( apg_SHA_INFO *shaInfo, BYTE hash[SHA_DIGESTSIZE] ) ; #endif /* _SHA_H_ */
--- +++ @@ -9,14 +9,16 @@ #ifndef _SHA_H_ #define _SHA_H_ +#include <stdint.h> + /* Define APG_LITTLE_ENDIAN if the machine is little-endian */ #define APG_LITTLE_ENDIAN /* Useful defines/typedefs */ -typedef unsigned char BYTE ; -typedef unsigned long LONG ; +typedef uint8_t BYTE ; +typedef uint32_t LONG ; /* The SHA block size and message digest sizes, in bytes */
Use uint8_t and uint32_t in SHA-1 implementation.
bsd-3-clause
wilx/apg,wilx/apg,rogerapras/apg,rogerapras/apg,wilx/apg,rogerapras/apg,rogerapras/apg,wilx/apg
571d83314ae9424b23d35ef1b7c3efce6403aad3
// // RocksDBCuckooTableOptions.h // ObjectiveRocks // // Created by Iska on 04/01/15. // Copyright (c) 2015 BrainCookie. All rights reserved. // #import <Foundation/Foundation.h> @interface RocksDBCuckooTableOptions : NSObject /** @brief Determines the utilization of hash tables. Smaller values result in larger hash tables with fewer collisions. */ @property (nonatomic, assign) double hashTableRatio; /** @brief A property used by builder to determine the depth to go to to search for a path to displace elements in case of collision. Higher values result in more efficient hash tables with fewer lookups but take more time to build. */ @property (nonatomic, assign) uint32_t maxSearchDepth; /** @brief In case of collision while inserting, the builder attempts to insert in the next `cuckooBlockSize` locations before skipping over to the next Cuckoo hash function. This makes lookups more cache friendly in case of collisions. */ @property (nonatomic, assign) uint32_t cuckooBlockSize; /** @brief If this option is enabled, user key is treated as uint64_t and its value is used as hash value directly. This option changes builder's behavior. Reader ignore this option and behave according to what specified in table property. */ @property (nonatomic, assign) BOOL identityAsFirstHash; /** @brief If this option is set to true, module is used during hash calculation. This often yields better space efficiency at the cost of performance. If this optino is set to false, # of entries in table is constrained to be power of two, and bit and is used to calculate hash, which is faster in general. */ @property (nonatomic, assign) BOOL useModuleHash; @end
// // RocksDBCuckooTableOptions.h // ObjectiveRocks // // Created by Iska on 04/01/15. // Copyright (c) 2015 BrainCookie. All rights reserved. // #import <Foundation/Foundation.h> @interface RocksDBCuckooTableOptions : NSObject @property (nonatomic, assign) double hashTableRatio; @property (nonatomic, assign) uint32_t maxSearchDepth; @property (nonatomic, assign) uint32_t cuckooBlockSize; @property (nonatomic, assign) BOOL identityAsFirstHash; @property (nonatomic, assign) BOOL useModuleHash; @end
--- +++ @@ -10,10 +10,49 @@ @interface RocksDBCuckooTableOptions : NSObject +/** + @brief + Determines the utilization of hash tables. Smaller values + result in larger hash tables with fewer collisions. + */ @property (nonatomic, assign) double hashTableRatio; + +/** + @brief + A property used by builder to determine the depth to go to + to search for a path to displace elements in case of + collision. Higher values result in more efficient hash tables + with fewer lookups but take more time to build. + */ @property (nonatomic, assign) uint32_t maxSearchDepth; + +/** + @brief + In case of collision while inserting, the builder + attempts to insert in the next `cuckooBlockSize` + locations before skipping over to the next Cuckoo hash + function. This makes lookups more cache friendly in case + of collisions. + */ @property (nonatomic, assign) uint32_t cuckooBlockSize; + +/** + @brief + If this option is enabled, user key is treated as uint64_t and its value + is used as hash value directly. This option changes builder's behavior. + Reader ignore this option and behave according to what specified in table + property. + */ @property (nonatomic, assign) BOOL identityAsFirstHash; + +/** + @brief + If this option is set to true, module is used during hash calculation. + This often yields better space efficiency at the cost of performance. + If this optino is set to false, # of entries in table is constrained to be + power of two, and bit and is used to calculate hash, which is faster in + general. + */ @property (nonatomic, assign) BOOL useModuleHash; @end
Add source code documentation for the RocksDB Cuckoo Table Options class
mit
iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks
9c593e10c013d0000c3b61e6a0ee97a89418eff9
#ifndef FIX_UNISTD_H #define FIX_UNISTD_H #include <unistd.h> /* For some reason the g++ include files on Ultrix 4.3 fail to provide these prototypes, even though the Ultrix 4.2 versions did... Once again, OSF1 also chokes, unless _AES_SOURCE(?) is defined JCP */ #if defined(ULTRIX43) || defined(OSF1) #if defined(__cplusplus) extern "C" { #endif #if defined(__STDC__) || defined(__cplusplus) int symlink( const char *, const char * ); void *sbrk( ssize_t ); int gethostname( char *, int ); #else int symlink(); char *sbrk(); int gethostname(); #endif #if defined(__cplusplus) } #endif #endif /* ULTRIX43 */ #endif
#ifndef FIX_UNISTD_H #define FIX_UNISTD_H #include <unistd.h> /* For some reason the g++ include files on Ultrix 4.3 fail to provide these prototypes, even though the Ultrix 4.2 versions did... Once again, OSF1 also chokes, unless _AES_SOURCE(?) is defined JCP */ #if defined(ULTRIX43) || defined(OSF1) #if defined(__cplusplus) extern "C" { #endif #if defined(__STDC__) || defined(__cplusplus) int symlink( const char *, const char * ); char *sbrk( int ); int gethostname( char *, int ); #else int symlink(); char *sbrk(); int gethostname(); #endif #if defined(__cplusplus) } #endif #endif /* ULTRIX43 */ #endif
--- +++ @@ -17,7 +17,7 @@ #if defined(__STDC__) || defined(__cplusplus) int symlink( const char *, const char * ); - char *sbrk( int ); + void *sbrk( ssize_t ); int gethostname( char *, int ); #else int symlink();
Change sbrk() prototype to sensible version with void * and ssize_t.
apache-2.0
djw8605/condor,zhangzhehust/htcondor,mambelli/osg-bosco-marco,zhangzhehust/htcondor,bbockelm/condor-network-accounting,neurodebian/htcondor,neurodebian/htcondor,zhangzhehust/htcondor,zhangzhehust/htcondor,djw8605/condor,clalancette/condor-dcloud,djw8605/condor,djw8605/htcondor,htcondor/htcondor,htcondor/htcondor,htcondor/htcondor,bbockelm/condor-network-accounting,bbockelm/condor-network-accounting,clalancette/condor-dcloud,neurodebian/htcondor,mambelli/osg-bosco-marco,djw8605/htcondor,djw8605/condor,mambelli/osg-bosco-marco,clalancette/condor-dcloud,neurodebian/htcondor,bbockelm/condor-network-accounting,mambelli/osg-bosco-marco,clalancette/condor-dcloud,zhangzhehust/htcondor,neurodebian/htcondor,djw8605/htcondor,clalancette/condor-dcloud,djw8605/htcondor,clalancette/condor-dcloud,djw8605/htcondor,djw8605/condor,mambelli/osg-bosco-marco,htcondor/htcondor,neurodebian/htcondor,djw8605/condor,mambelli/osg-bosco-marco,zhangzhehust/htcondor,neurodebian/htcondor,htcondor/htcondor,zhangzhehust/htcondor,htcondor/htcondor,neurodebian/htcondor,bbockelm/condor-network-accounting,mambelli/osg-bosco-marco,mambelli/osg-bosco-marco,bbockelm/condor-network-accounting,djw8605/condor,djw8605/condor,clalancette/condor-dcloud,bbockelm/condor-network-accounting,bbockelm/condor-network-accounting,htcondor/htcondor,djw8605/htcondor,djw8605/htcondor,htcondor/htcondor,djw8605/htcondor,djw8605/htcondor,zhangzhehust/htcondor,neurodebian/htcondor,zhangzhehust/htcondor
855e7cd9d230f0c2dc1699bdaafc4f5ccf4e968f
#ifndef MACDOCKICONHANDLER_H #define MACDOCKICONHANDLER_H #include <QtCore/QObject> class QMenu; class QIcon; class QWidget; #ifdef __OBJC__ @class DockIconClickEventHandler; #else class DockIconClickEventHandler; #endif /** Macintosh-specific dock icon handler. */ class MacDockIconHandler : public QObject { Q_OBJECT public: ~MacDockIconHandler(); QMenu *dockMenu(); void setIcon(const QIcon &icon); static MacDockIconHandler *instance(); void handleDockIconClickEvent(); signals: void dockIconClicked(); public slots: private: MacDockIconHandler(); DockIconClickEventHandler *m_dockIconClickEventHandler; QWidget *m_dummyWidget; QMenu *m_dockMenu; }; #endif // MACDOCKICONCLICKHANDLER_H
#ifndef MACDOCKICONHANDLER_H #define MACDOCKICONHANDLER_H #include <QtCore/QObject> class QMenu; class QIcon; class QWidget; class objc_object; /** Macintosh-specific dock icon handler. */ class MacDockIconHandler : public QObject { Q_OBJECT public: ~MacDockIconHandler(); QMenu *dockMenu(); void setIcon(const QIcon &icon); static MacDockIconHandler *instance(); void handleDockIconClickEvent(); signals: void dockIconClicked(); public slots: private: MacDockIconHandler(); objc_object *m_dockIconClickEventHandler; QWidget *m_dummyWidget; QMenu *m_dockMenu; }; #endif // MACDOCKICONCLICKHANDLER_H
--- +++ @@ -6,7 +6,12 @@ class QMenu; class QIcon; class QWidget; -class objc_object; + +#ifdef __OBJC__ +@class DockIconClickEventHandler; +#else +class DockIconClickEventHandler; +#endif /** Macintosh-specific dock icon handler. */ @@ -31,7 +36,7 @@ private: MacDockIconHandler(); - objc_object *m_dockIconClickEventHandler; + DockIconClickEventHandler *m_dockIconClickEventHandler; QWidget *m_dummyWidget; QMenu *m_dockMenu; };
Fix for legacy QT compatibility
mit
koharjidan/sexcoin,lavajumper/sexcoin,lavajumper/sexcoin,koharjidan/sexcoin,sexcoin-project/sexcoin,sexcoin-project/sexcoin,lavajumper/sexcoin,koharjidan/sexcoin,lavajumper/sexcoin,sexcoin-project/sexcoin,lavajumper/sexcoin,sexcoin-project/sexcoin,sexcoin-project/sexcoin,sexcoin-project/sexcoin,koharjidan/sexcoin,lavajumper/sexcoin
c938d475630c08a0d695f29b863250ae0ea73b5d
/* Copyright (C) 2012 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; see the file COPYING.LIB. If not, see <http://www.gnu.org/licenses/>.  */ /* Value passed to 'clone' for initialization of the thread register. */ #define TLS_VALUE ((void *) (pd) \ + TLS_PRE_TCB_SIZE + TLS_INIT_TCB_SIZE) /* Get the real implementation. */ #include <sysdeps/pthread/createthread.c>
/* Copyright (C) 2012 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; see the file COPYING.LIB. If not, see <http://www.gnu.org/licenses/>.  */ /* Value passed to 'clone' for initialization of the thread register. */ #define TLS_VALUE (pd + 1) /* Get the real implementation. */ #include <sysdeps/pthread/createthread.c>
--- +++ @@ -16,8 +16,8 @@ not, see <http://www.gnu.org/licenses/>.  */ /* Value passed to 'clone' for initialization of the thread register. */ -#define TLS_VALUE (pd + 1) - +#define TLS_VALUE ((void *) (pd) \ + + TLS_PRE_TCB_SIZE + TLS_INIT_TCB_SIZE) /* Get the real implementation. */ #include <sysdeps/pthread/createthread.c>
or1k: Fix tls value passed during clone From or1k-glibc from blueCmd, his commit "Fix TLS, removed too much in rebase". Signed-off-by: Stafford Horne <799c89d5f62c643afb21c1a3622a07adef444e16@gmail.com>
lgpl-2.1
wbx-github/uclibc-ng,wbx-github/uclibc-ng,kraj/uclibc-ng,kraj/uclibc-ng,wbx-github/uclibc-ng,kraj/uclibc-ng,kraj/uclibc-ng,wbx-github/uclibc-ng
b654d10d3289c45b1fb702378bd4b96afb11c998
#ifndef YGO_DATA_CARDDATA_H #define YGO_DATA_CARDDATA_H #include <string> #include "CardType.h" namespace ygo { namespace data { struct StaticCardData { const char* name; CardType cardType; // monster only Attribute attribute; MonsterType monsterType; Type type; MonsterType monsterAbility; int level; int attack; int defense; int lpendulum; int rpendulum; // spell and trap only SpellType spellType; TrapType trapType; }; } } #endif
#ifndef YGO_DATA_CARDDATA_H #define YGO_DATA_CARDDATA_H #include <string> #include "CardType.h" namespace ygo { namespace data { struct StaticCardData { std::string name; CardType cardType; // monster only Attribute attribute; MonsterType monsterType; Type type; MonsterType monsterAbility; int level; int attack; int defense; int lpendulum; int rpendulum; // spell and trap only SpellType spellType; TrapType trapType; }; } } #endif
--- +++ @@ -12,7 +12,7 @@ struct StaticCardData { - std::string name; + const char* name; CardType cardType; // monster only Attribute attribute;
Change name to const char * Allow for trivially constructable type
mit
DeonPoncini/ygodata
b1d45cb3b9f9ad2089d57de0ec3fa75ea1cf7fc4
#pragma once #include <spotify/json.hpp> #include <noise/noise.h> namespace spotify { namespace json { template<> struct default_codec_t<noise::NoiseQuality> { using NoiseQuality = noise::NoiseQuality; static codec::one_of_t< codec::enumeration_t<NoiseQuality, codec::number_t<int>>, codec::enumeration_t<NoiseQuality, codec::string_t>> codec() { auto codec_str = codec::enumeration<NoiseQuality, std::string>({ {NoiseQuality::QUALITY_FAST, "Fast"}, {NoiseQuality::QUALITY_STD, "Standard"}, {NoiseQuality::QUALITY_BEST, "Best"} }); auto codec_int = codec::enumeration<NoiseQuality, int>({ {NoiseQuality::QUALITY_FAST, 0}, {NoiseQuality::QUALITY_STD, 1}, {NoiseQuality::QUALITY_BEST, 2} }); return codec::one_of(codec_int, codec_str); } }; } }
#pragma once #include <spotify/json.hpp> #include <noise/noise.h> namespace spotify { namespace json { template<> struct default_codec_t<noise::NoiseQuality> { using NoiseQuality = noise::NoiseQuality; static codec::enumeration_t<NoiseQuality, codec::string_t> codec() { auto codec = codec::enumeration<NoiseQuality, std::string>({ {NoiseQuality::QUALITY_FAST, "Fast"}, {NoiseQuality::QUALITY_STD, "Standard"}, {NoiseQuality::QUALITY_BEST, "Best"} }); return codec; } }; } }
--- +++ @@ -13,15 +13,21 @@ struct default_codec_t<noise::NoiseQuality> { using NoiseQuality = noise::NoiseQuality; - static codec::enumeration_t<NoiseQuality, codec::string_t> codec() + static codec::one_of_t< + codec::enumeration_t<NoiseQuality, codec::number_t<int>>, + codec::enumeration_t<NoiseQuality, codec::string_t>> codec() { - auto codec = codec::enumeration<NoiseQuality, std::string>({ + auto codec_str = codec::enumeration<NoiseQuality, std::string>({ {NoiseQuality::QUALITY_FAST, "Fast"}, {NoiseQuality::QUALITY_STD, "Standard"}, {NoiseQuality::QUALITY_BEST, "Best"} }); - - return codec; + auto codec_int = codec::enumeration<NoiseQuality, int>({ + {NoiseQuality::QUALITY_FAST, 0}, + {NoiseQuality::QUALITY_STD, 1}, + {NoiseQuality::QUALITY_BEST, 2} + }); + return codec::one_of(codec_int, codec_str); } };
Allow specification of NoiseQuality with an int
mit
Wangscape/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape,serin-delaunay/Wangscape,serin-delaunay/Wangscape
05375b10cfd6e060242c9786fb7887dcd3850ebc
// // UTAPIObjCAdapter-iOS.h // UTAPIObjCAdapter-iOS // // Created by Mark Woollard on 15/05/2016. // Copyright © 2016 UrbanThings. All rights reserved. // //! Project version number for UTAPIObjCAdapter-iOS. FOUNDATION_EXPORT double UTAPIObjCAdapter_iOSVersionNumber; //! Project version string for UTAPIObjCAdapter-iOS. FOUNDATION_EXPORT const unsigned char UTAPIObjCAdapter_iOSVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import <UTAPIObjCAdapter_iOS/PublicHeader.h>
// // UTAPIObjCAdapter-iOS.h // UTAPIObjCAdapter-iOS // // Created by Mark Woollard on 15/05/2016. // Copyright © 2016 UrbanThings. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for UTAPIObjCAdapter-iOS. FOUNDATION_EXPORT double UTAPIObjCAdapter_iOSVersionNumber; //! Project version string for UTAPIObjCAdapter-iOS. FOUNDATION_EXPORT const unsigned char UTAPIObjCAdapter_iOSVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import <UTAPIObjCAdapter_iOS/PublicHeader.h>
--- +++ @@ -5,8 +5,6 @@ // Created by Mark Woollard on 15/05/2016. // Copyright © 2016 UrbanThings. All rights reserved. // - -#import <UIKit/UIKit.h> //! Project version number for UTAPIObjCAdapter-iOS. FOUNDATION_EXPORT double UTAPIObjCAdapter_iOSVersionNumber;
Make master header platform neutral
apache-2.0
urbanthings/urbanthings-sdk-apple,urbanthings/urbanthings-sdk-apple,urbanthings/urbanthings-sdk-apple,urbanthings/urbanthings-sdk-apple
29cc413e4a179535fc7003b6e7f3cc67424cca13
#ifndef HALIDE_CPLUSPLUS_MANGLE_H #define HALIDE_CPLUSPLUS_MANGLE_H /** \file * * A simple function to get a C++ mangled function name for a function. */ #include <string> #include "IR.h" #include "Target.h" namespace Halide { namespace Internal { /** Return the mangled C++ name for a function. * The target parameter is used to decide on the C++ * ABI/mangling style to use. */ EXPORT std::string cplusplus_function_mangled_name(const std::string &name, const std::vector<std::string> &namespaces, Type return_type, const std::vector<ExternFuncArgument> &args, const Target &target); EXPORT void cplusplus_mangle_test(); } } #endif
#ifndef HALIDE_CPLUSPLUS_MANGLE_H #define HALIDE_CPLUSPLUS_MANGLE_H /** \file * * A simple function to get a C++ mangled function name for a function. */ #include <string> #include "IR.h" #include "Target.h" namespace Halide { namespace Internal { /** Return the mangled C++ name for a function. * The target parameter is used to decide on the C++ * ABI/mangling style to use. */ std::string cplusplus_function_mangled_name(const std::string &name, const std::vector<std::string> &namespaces, Type return_type, const std::vector<ExternFuncArgument> &args, const Target &target); void cplusplus_mangle_test(); } } #endif
--- +++ @@ -17,11 +17,11 @@ * The target parameter is used to decide on the C++ * ABI/mangling style to use. */ -std::string cplusplus_function_mangled_name(const std::string &name, const std::vector<std::string> &namespaces, - Type return_type, const std::vector<ExternFuncArgument> &args, - const Target &target); +EXPORT std::string cplusplus_function_mangled_name(const std::string &name, const std::vector<std::string> &namespaces, + Type return_type, const std::vector<ExternFuncArgument> &args, + const Target &target); -void cplusplus_mangle_test(); +EXPORT void cplusplus_mangle_test(); }
Add some EXPORT qualifiers for msvc Former-commit-id: d0593d880573052e6ae2790328a336a6a9865cc3
mit
Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide
40d6218a4da5c87723142bc7015bd6a85c52b590
/* * xabicc.c - platform-agnostic root for ALien call-outs and callbacks. * * Support for Call-outs and Call-backs from the IA32ABI Plugin. * The plgin is misnamed. It should be the AlienPlugin, but its history * dictates otherwise. */ #if i386|i486|i586|i686 # include "ia32abicc.c" #elif powerpc|ppc # include "ppcia32abicc.c" #elif x86_64|x64|__x86_64|__x86_64__ # include "x64ia32abicc.c" #endif
/* * xabicc.c - platform-agnostic root for ALien call-outs and callbacks. * * Support for Call-outs and Call-backs from the IA32ABI Plugin. * The plgin is misnamed. It should be the AlienPlugin, but its history * dictates otherwise. */ #if i386|i486|i586|i686 # include "ia32abicc.c" #elif powerpc|ppc # include "ppcia32abicc.c" #elif x86_64|x64 # include "x64ia32abicc.o" #endif
--- +++ @@ -9,6 +9,6 @@ # include "ia32abicc.c" #elif powerpc|ppc # include "ppcia32abicc.c" -#elif x86_64|x64 -# include "x64ia32abicc.o" +#elif x86_64|x64|__x86_64|__x86_64__ +# include "x64ia32abicc.c" #endif
Make the list of x64 processor names inclusive enough to compile the Alien plugin on 64-bit linux. git-svn-id: http://squeakvm.org/svn/squeak/trunk@3237 fa1542d4-bde8-0310-ad64-8ed1123d492a Former-commit-id: 600bd5e36821553d6b9391d8bbd8d75d4ad10a85
mit
timfel/squeakvm,timfel/squeakvm,timfel/squeakvm,bencoman/pharo-vm,peteruhnak/pharo-vm,timfel/squeakvm,bencoman/pharo-vm,peteruhnak/pharo-vm,bencoman/pharo-vm,timfel/squeakvm,bencoman/pharo-vm,timfel/squeakvm,timfel/squeakvm,bencoman/pharo-vm,timfel/squeakvm,bencoman/pharo-vm,peteruhnak/pharo-vm,OpenSmalltalk/vm,OpenSmalltalk/vm,peteruhnak/pharo-vm,OpenSmalltalk/vm,peteruhnak/pharo-vm,OpenSmalltalk/vm,bencoman/pharo-vm,bencoman/pharo-vm,OpenSmalltalk/vm,peteruhnak/pharo-vm,peteruhnak/pharo-vm,peteruhnak/pharo-vm,bencoman/pharo-vm,OpenSmalltalk/vm,OpenSmalltalk/vm,OpenSmalltalk/vm
1a16a79939e53044d07009bc746cfe9a08e878d4
#define PORTABLE_VERSION_TEXT "0.2.5-pre" #define PORTABLE_VERSION_MAJOR 0 #define PORTABLE_VERSION_MINOR 2 #define PORTABLE_VERSION_PATCH 5 /* 1 or 0 */ #define PORTABLE_VERSION_RELEASED 0
#define PORTABLE_VERSION_TEXT "0.2.4" #define PORTABLE_VERSION_MAJOR 0 #define PORTABLE_VERSION_MINOR 2 #define PORTABLE_VERSION_PATCH 4 /* 1 or 0 */ #define PORTABLE_VERSION_RELEASED 1
--- +++ @@ -1,6 +1,6 @@ -#define PORTABLE_VERSION_TEXT "0.2.4" +#define PORTABLE_VERSION_TEXT "0.2.5-pre" #define PORTABLE_VERSION_MAJOR 0 #define PORTABLE_VERSION_MINOR 2 -#define PORTABLE_VERSION_PATCH 4 +#define PORTABLE_VERSION_PATCH 5 /* 1 or 0 */ -#define PORTABLE_VERSION_RELEASED 1 +#define PORTABLE_VERSION_RELEASED 0
Update portable version to unreleased
apache-2.0
dvidelabs/flatcc,dvidelabs/flatcc,dvidelabs/flatcc
262de226f343c443c29c2e83328a8be07afbc3cc
/* Copyright (c) 2004 Timo Sirainen */ #include "lib.h" #include "str.h" #include "str-sanitize.h" void str_sanitize_append(string_t *dest, const char *src, size_t max_len) { const char *p; for (p = src; *p != '\0'; p++) { if (((unsigned char)*p & 0x7f) < 32) break; } str_append_n(dest, src, (size_t)(p - src)); for (; *p != '\0' && max_len > 0; p++, max_len--) { if (((unsigned char)*p & 0x7f) < 32) str_append_c(dest, '?'); else str_append_c(dest, *p); } if (*p != '\0') { str_truncate(dest, str_len(dest)-3); str_append(dest, "..."); } } const char *str_sanitize(const char *src, size_t max_len) { string_t *str; str = t_str_new(I_MIN(max_len, 256)); str_sanitize_append(str, src, max_len); return str_c(str); }
/* 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)); for (; *p != '\0' && max_len > 0; p++, max_len--) { if ((unsigned char)*p < 32) str_append_c(dest, '?'); else str_append_c(dest, *p); } if (*p != '\0') { str_truncate(dest, str_len(dest)-3); str_append(dest, "..."); } } const char *str_sanitize(const char *src, size_t max_len) { string_t *str; str = t_str_new(I_MIN(max_len, 256)); str_sanitize_append(str, src, max_len); return str_c(str); }
--- +++ @@ -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 char)*p & 0x7f) < 32) str_append_c(dest, '?'); else str_append_c(dest, *p);
Convert also 0x80..0x9f characters to '?'
mit
Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot
c75706f29ac0844cc480f6333415830f5983d6f7
#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <termios.h> #include <unistd.h> struct termios orig_termios; void disableRawMode() { tcsetattr(STDIN_FILENO, TCSAFLUSH, &orig_termios); } void enableRawMode() { tcgetattr(STDIN_FILENO, &orig_termios); atexit(disableRawMode); struct termios raw = orig_termios; raw.c_iflag &= ~(ICRNL | IXON); raw.c_oflag &= ~(OPOST); raw.c_lflag &= ~(ECHO | ICANON | IEXTEN | ISIG); tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw); } int main() { enableRawMode(); char c; while (read(STDIN_FILENO, &c, 1) == 1 && c!= 'q') { if (iscntrl(c)) { printf("%d\r\n", c); } else { printf("%d ('%c')\r\n", c, c); } } return 0; }
#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <termios.h> #include <unistd.h> struct termios orig_termios; void disableRawMode() { tcsetattr(STDIN_FILENO, TCSAFLUSH, &orig_termios); } void enableRawMode() { tcgetattr(STDIN_FILENO, &orig_termios); atexit(disableRawMode); struct termios raw = orig_termios; raw.c_iflag &= ~(ICRNL | IXON); raw.c_oflag &= ~(OPOST); raw.c_lflag &= ~(ECHO | ICANON | IEXTEN | ISIG); tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw); } int main() { enableRawMode(); char c; while (read(STDIN_FILENO, &c, 1) == 1 && c!= 'q') { if (iscntrl(c)) { printf("%d\n", c); } else { printf("%d ('%c')\n", c, c); } } return 0; }
--- +++ @@ -28,9 +28,9 @@ char c; while (read(STDIN_FILENO, &c, 1) == 1 && c!= 'q') { if (iscntrl(c)) { - printf("%d\n", c); + printf("%d\r\n", c); } else { - printf("%d ('%c')\n", c, c); + printf("%d ('%c')\r\n", c, c); } } return 0;
Add a carriage return with the newline
bsd-2-clause
kyletolle/texor
83c3058f205532ba510dbbc5e95b96fd228f0125
#ifndef JAGUAR_HELPER_H_ #define JAGUAR_HELPER_H_ #include <boost/detail/endian.hpp> #include <stdint.h> #include "jaguar_api.h" #ifndef __GLIBC__ # ifdef BOOST_LITTLE_ENDIAN # define htole16(x) x # define htole32(x) x # define le16toh(x) x # define le32toh(x) x # elif BOOST_BIG_ENDIAN # error big endian architectures are unsupported # else # error unknown endiannes # endif #endif namespace jaguar { int16_t double_to_s8p8(double x); uint16_t double_to_u8p8(double x); int32_t double_to_s16p16(double x); double s8p8_to_double(int16_t x); double s16p16_to_double(int32_t x); uint32_t pack_id(uint8_t num, Manufacturer::Enum man, DeviceType::Enum type, APIClass::Enum api_class, uint8_t api_index); }; #endif
#ifndef JAGUAR_HELPER_H_ #define JAGUAR_HELPER_H_ #include <boost/detail/endian.hpp> #include <stdint.h> #include "jaguar_api.h" #ifdef BOOST_LITTLE_ENDIAN #define htole16(x) x #define htole32(x) x #define le16toh(x) x #define le32toh(x) x #elif BOOST_BIG_ENDIAN #error big endian architectures are unsupported #else #error unknown endiannes #endif namespace jaguar { int16_t double_to_s8p8(double x); uint16_t double_to_u8p8(double x); int32_t double_to_s16p16(double x); double s8p8_to_double(int16_t x); double s16p16_to_double(int32_t x); uint32_t pack_id(uint8_t num, Manufacturer::Enum man, DeviceType::Enum type, APIClass::Enum api_class, uint8_t api_index); }; #endif
--- +++ @@ -5,15 +5,17 @@ #include <stdint.h> #include "jaguar_api.h" -#ifdef BOOST_LITTLE_ENDIAN -#define htole16(x) x -#define htole32(x) x -#define le16toh(x) x -#define le32toh(x) x -#elif BOOST_BIG_ENDIAN -#error big endian architectures are unsupported -#else -#error unknown endiannes +#ifndef __GLIBC__ +# ifdef BOOST_LITTLE_ENDIAN +# define htole16(x) x +# define htole32(x) x +# define le16toh(x) x +# define le32toh(x) x +# elif BOOST_BIG_ENDIAN +# error big endian architectures are unsupported +# else +# error unknown endiannes +# endif #endif namespace jaguar {
Use provided byteorder convertions on GLIBC systems
bsd-2-clause
mkoval/jaguar,mkoval/jaguar
e13fe9f79af4185ac245b36e9c426c7a6c3fedb2
#pragma once #include <type_traits> #include <iostream> namespace rc { namespace detail { #define RC_SFINAE_TRAIT(Name, expression) \ namespace sfinae { \ template<typename T, typename = expression> \ std::true_type test##Name(const T &); \ std::false_type test##Name(...); \ } \ \ template<typename T> \ using Name = decltype(sfinae::test##Name(std::declval<T>())); RC_SFINAE_TRAIT(IsEqualityComparable, decltype(std::declval<T>() == std::declval<T>())) RC_SFINAE_TRAIT(IsStreamInsertible, decltype(std::cout << std::declval<T>())) } // namespace detail } // namespace rc
#pragma once #include <type_traits> #include <iostream> namespace rc { namespace detail { namespace sfinae { template<typename T, typename = decltype(std::declval<T>() == std::declval<T>())> std::true_type isEqualityComparable(const T &); std::false_type isEqualityComparable(...); template<typename T, typename = decltype(std::cout << std::declval<T>())> std::true_type isStreamInsertible(const T &); std::false_type isStreamInsertible(...); } // namespace sfinae template<typename T> using IsEqualityComparable = decltype( sfinae::isEqualityComparable(std::declval<T>())); template<typename T> using IsStreamInsertible = decltype( sfinae::isStreamInsertible(std::declval<T>())); } // namespace detail } // namespace rc
--- +++ @@ -5,25 +5,23 @@ namespace rc { namespace detail { -namespace sfinae { -template<typename T, typename = decltype(std::declval<T>() == std::declval<T>())> -std::true_type isEqualityComparable(const T &); -std::false_type isEqualityComparable(...); +#define RC_SFINAE_TRAIT(Name, expression) \ + namespace sfinae { \ + template<typename T, typename = expression> \ + std::true_type test##Name(const T &); \ + std::false_type test##Name(...); \ + } \ + \ + template<typename T> \ + using Name = decltype(sfinae::test##Name(std::declval<T>())); -template<typename T, typename = decltype(std::cout << std::declval<T>())> -std::true_type isStreamInsertible(const T &); -std::false_type isStreamInsertible(...); -} // namespace sfinae +RC_SFINAE_TRAIT(IsEqualityComparable, + decltype(std::declval<T>() == std::declval<T>())) -template<typename T> -using IsEqualityComparable = decltype( - sfinae::isEqualityComparable(std::declval<T>())); - -template<typename T> -using IsStreamInsertible = decltype( - sfinae::isStreamInsertible(std::declval<T>())); +RC_SFINAE_TRAIT(IsStreamInsertible, + decltype(std::cout << std::declval<T>())) } // namespace detail } // namespace rc
Add macro to declare SFINAE based traits
bsd-2-clause
unapiedra/rapidfuzz,whoshuu/rapidcheck,unapiedra/rapidfuzz,whoshuu/rapidcheck,tm604/rapidcheck,emil-e/rapidcheck,tm604/rapidcheck,whoshuu/rapidcheck,emil-e/rapidcheck,emil-e/rapidcheck,tm604/rapidcheck,unapiedra/rapidfuzz
af88a4da720094eb576f50664fa61d449eb005dd
/* * $Id$ */ #include <errno.h> #include <time.h> #ifndef NULL #define NULL ((void*)0) #endif /* from libvarnish/argv.c */ void FreeArgv(char **argv); char **ParseArgv(const char *s, int comment); /* from libvarnish/time.c */ void TIM_format(time_t t, char *p); time_t TIM_parse(const char *p); /* from libvarnish/version.c */ void varnish_version(const char *); /* from libvarnish/assert.c */ /* * assert(), AN() and AZ() are static checks that should not happen. * xxxassert(), XXXAN() and XXXAZ() are markers for missing code. */ #ifdef WITHOUT_ASSERTS #define assert(e) ((void)0) #else /* WITH_ASSERTS */ #define assert(e) \ do { \ if (!(e)) \ lbv_assert(__func__, __FILE__, __LINE__, #e, errno); \ } while (0) #endif #define xxxassert(e) \ do { \ if (!(e)) \ lbv_assert("XXX:" __func__, __FILE__, __LINE__, #e, errno); \ } while (0) void lbv_assert(const char *, const char *, int, const char *, int); /* Assert zero return value */ #define AZ(foo) do { assert((foo) == 0); } while (0) #define AN(foo) do { assert((foo) != NULL); } while (0) #define XXXAZ(foo) do { xxxassert((foo) == 0); } while (0) #define XXXAN(foo) do { xxxassert((foo) != NULL); } while (0)
/* * $Id$ */ #include <errno.h> #include <time.h> /* from libvarnish/argv.c */ void FreeArgv(char **argv); char **ParseArgv(const char *s, int comment); /* from libvarnish/time.c */ void TIM_format(time_t t, char *p); time_t TIM_parse(const char *p); /* from libvarnish/version.c */ void varnish_version(const char *); /* from libvarnish/assert.c */ #ifdef WITHOUT_ASSERTS #define assert(e) ((void)0) #else /* WITH_ASSERTS */ #define assert(e) \ do { \ if (!(e)) \ lbv_assert(__func__, __FILE__, __LINE__, #e, errno); \ } while (0) #endif void lbv_assert(const char *, const char *, int, const char *, int); /* Assert zero return value */ #define AZ(foo) do { assert((foo) == 0); } while (0)
--- +++ @@ -4,6 +4,10 @@ #include <errno.h> #include <time.h> + +#ifndef NULL +#define NULL ((void*)0) +#endif /* from libvarnish/argv.c */ void FreeArgv(char **argv); @@ -17,6 +21,12 @@ void varnish_version(const char *); /* from libvarnish/assert.c */ + +/* + * assert(), AN() and AZ() are static checks that should not happen. + * xxxassert(), XXXAN() and XXXAZ() are markers for missing code. + */ + #ifdef WITHOUT_ASSERTS #define assert(e) ((void)0) #else /* WITH_ASSERTS */ @@ -27,7 +37,16 @@ } while (0) #endif +#define xxxassert(e) \ +do { \ + if (!(e)) \ + lbv_assert("XXX:" __func__, __FILE__, __LINE__, #e, errno); \ +} while (0) + void lbv_assert(const char *, const char *, int, const char *, int); /* Assert zero return value */ #define AZ(foo) do { assert((foo) == 0); } while (0) +#define AN(foo) do { assert((foo) != NULL); } while (0) +#define XXXAZ(foo) do { xxxassert((foo) == 0); } while (0) +#define XXXAN(foo) do { xxxassert((foo) != NULL); } while (0)
Split assert into "static check" and "missing code" variants. The "missing code" variants have xxx prefix Introduce AN() (assert non-null) variant as well. git-svn-id: 7d4b18ab7d176792635d6a7a77dd8cbbea8e8daa@911 d4fa192b-c00b-0410-8231-f00ffab90ce4
bsd-2-clause
wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,CartoDB/Varnish-Cache,ssm/pkg-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,CartoDB/Varnish-Cache,CartoDB/Varnish-Cache,ssm/pkg-varnish,ssm/pkg-varnish
a41572918b5ca69cc925d9ce0714c03924857289
// // TangramMap.h // TangramMap // // Created by Matt Smollinger on 7/8/16. // Updated by Karim Naaji on 2/28/17. // Copyright (c) 2017 Mapzen. All rights reserved. // #import <UIKit/UIKit.h> /// Project version number for TangramMap. FOUNDATION_EXPORT double TangramMapVersionNumber; /// Project version string for TangramMap. FOUNDATION_EXPORT const unsigned char TangramMapVersionString[]; #import <TangramMap/TGMapViewController.h> #import <TangramMap/TGMapData.h> #import <TangramMap/TGGeoPoint.h> #import <TangramMap/TGGeoPolygon.h> #import <TangramMap/TGGeoPolyline.h> #import <TangramMap/TGEaseType.h> #import <TangramMap/TGHttpHandler.h> #import <TangramMap/TGMarker.h> #import <TangramMap/TGMapData.h> #import <TangramMap/TGSceneUpdate.h> #import <TangramMap/TGMarkerPickResult.h> #import <TangramMap/TGLabelPickResult.h>
// // TangramMap.h // TangramMap // // Created by Matt Smollinger on 7/8/16. // // #import <UIKit/UIKit.h> /// Project version number for TangramMap. FOUNDATION_EXPORT double TangramMapVersionNumber; /// Project version string for TangramMap. FOUNDATION_EXPORT const unsigned char TangramMapVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import <TangramMap/PublicHeader.h> #import <TangramMap/TGMapViewController.h>
--- +++ @@ -3,7 +3,8 @@ // TangramMap // // Created by Matt Smollinger on 7/8/16. -// +// Updated by Karim Naaji on 2/28/17. +// Copyright (c) 2017 Mapzen. All rights reserved. // #import <UIKit/UIKit.h> @@ -14,6 +15,16 @@ /// Project version string for TangramMap. FOUNDATION_EXPORT const unsigned char TangramMapVersionString[]; -// In this header, you should import all the public headers of your framework using statements like #import <TangramMap/PublicHeader.h> +#import <TangramMap/TGMapViewController.h> +#import <TangramMap/TGMapData.h> +#import <TangramMap/TGGeoPoint.h> +#import <TangramMap/TGGeoPolygon.h> +#import <TangramMap/TGGeoPolyline.h> +#import <TangramMap/TGEaseType.h> +#import <TangramMap/TGHttpHandler.h> +#import <TangramMap/TGMarker.h> +#import <TangramMap/TGMapData.h> +#import <TangramMap/TGSceneUpdate.h> +#import <TangramMap/TGMarkerPickResult.h> +#import <TangramMap/TGLabelPickResult.h> -#import <TangramMap/TGMapViewController.h>
Update umbrella header with public interface
mit
quitejonny/tangram-es,cleeus/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,cleeus/tangram-es,cleeus/tangram-es,cleeus/tangram-es,quitejonny/tangram-es,tangrams/tangram-es,quitejonny/tangram-es,cleeus/tangram-es,tangrams/tangram-es,tangrams/tangram-es,tangrams/tangram-es,tangrams/tangram-es,tangrams/tangram-es,quitejonny/tangram-es,tangrams/tangram-es,cleeus/tangram-es
1eba4c3d6cbff506ed61c17b93db45bbf196b8d8
// // MagicalImportFunctions.h // Magical Record // // Created by Saul Mora on 3/7/12. // Copyright (c) 2012 Magical Panda Software LLC. All rights reserved. // #import <Foundation/Foundation.h> #import <MagicalRecord/MagicalRecordXcode7CompatibilityMacros.h> NSDateFormatter * __MR_nonnull MR_dateFormatterWithFormat(NSString *__MR_nonnull format); NSDate * __MR_nonnull MR_adjustDateForDST(NSDate *__MR_nonnull date); NSDate * __MR_nonnull MR_dateFromString(NSString *__MR_nonnull value, NSString *__MR_nonnull format); NSDate * __MR_nonnull MR_dateFromNumber(NSNumber *__MR_nonnull value, BOOL milliseconds); NSNumber * __MR_nonnull MR_numberFromString(NSString *__MR_nonnull value); NSString * __MR_nonnull MR_attributeNameFromString(NSString *__MR_nonnull value); NSString * __MR_nonnull MR_primaryKeyNameFromString(NSString *__MR_nonnull value); #if TARGET_OS_IPHONE #import <UIKit/UIKit.h> UIColor * __MR_nullable MR_colorFromString(NSString *__MR_nonnull serializedColor); #else #import <AppKit/AppKit.h> NSColor * __MR_nullable MR_colorFromString(NSString *__MR_nonnull serializedColor); #endif NSInteger * __MR_nullable MR_newColorComponentsFromString(NSString *__MR_nonnull serializedColor);
// // MagicalImportFunctions.h // Magical Record // // Created by Saul Mora on 3/7/12. // Copyright (c) 2012 Magical Panda Software LLC. All rights reserved. // #import <Foundation/Foundation.h> #import <MagicalRecord/MagicalRecordXcode7CompatibilityMacros.h> NSDateFormatter * __MR_nonnull MR_dateFormatterWithFormat(NSString *format); NSDate * __MR_nonnull MR_adjustDateForDST(NSDate *__MR_nonnull date); NSDate * __MR_nonnull MR_dateFromString(NSString *__MR_nonnull value, NSString *__MR_nonnull format); NSDate * __MR_nonnull MR_dateFromNumber(NSNumber *__MR_nonnull value, BOOL milliseconds); NSNumber * __MR_nonnull MR_numberFromString(NSString *__MR_nonnull value); NSString * __MR_nonnull MR_attributeNameFromString(NSString *__MR_nonnull value); NSString * __MR_nonnull MR_primaryKeyNameFromString(NSString *__MR_nonnull value); #if TARGET_OS_IPHONE #import <UIKit/UIKit.h> UIColor * __MR_nullable MR_colorFromString(NSString *__MR_nonnull serializedColor); #else #import <AppKit/AppKit.h> NSColor * __MR_nullable MR_colorFromString(NSString *__MR_nonnull serializedColor); #endif NSInteger * __MR_nullable MR_newColorComponentsFromString(NSString *__MR_nonnull serializedColor);
--- +++ @@ -9,7 +9,7 @@ #import <Foundation/Foundation.h> #import <MagicalRecord/MagicalRecordXcode7CompatibilityMacros.h> -NSDateFormatter * __MR_nonnull MR_dateFormatterWithFormat(NSString *format); +NSDateFormatter * __MR_nonnull MR_dateFormatterWithFormat(NSString *__MR_nonnull format); NSDate * __MR_nonnull MR_adjustDateForDST(NSDate *__MR_nonnull date); NSDate * __MR_nonnull MR_dateFromString(NSString *__MR_nonnull value, NSString *__MR_nonnull format); NSDate * __MR_nonnull MR_dateFromNumber(NSNumber *__MR_nonnull value, BOOL milliseconds);
Add the missing nullability annotation
mit
yiplee/MagicalRecord,yiplee/MagicalRecord
a6b11e049ace86d58eb016015b598c5b8ed1655c
// standard Linux framebuffer headers #include <linux/fb.h> #include <linux/ioctl.h> // specialized eink framebuffer headers typedef unsigned int uint; #include "include/mxcfb-kobo.h" #include "cdecl.h" cdecl_struct(mxcfb_rect) cdecl_struct(mxcfb_alt_buffer_data) cdecl_struct(mxcfb_update_data) cdecl_const(MXCFB_SEND_UPDATE) /* Might come in handy one day... */ cdecl_const(MXCFB_WAIT_FOR_UPDATE_COMPLETE) /* Aura */ cdecl_struct(mxcfb_update_data_org) cdecl_const(MXCFB_SEND_UPDATE_ORG)
// standard Linux framebuffer headers #include <linux/fb.h> #include <linux/ioctl.h> // specialized eink framebuffer headers typedef unsigned int uint; #include "include/mxcfb-kobo.h" #include "cdecl.h" cdecl_struct(mxcfb_rect) cdecl_struct(mxcfb_alt_buffer_data) cdecl_struct(mxcfb_update_data) cdecl_const(MXCFB_SEND_UPDATE)
--- +++ @@ -14,3 +14,11 @@ cdecl_const(MXCFB_SEND_UPDATE) +/* Might come in handy one day... */ +cdecl_const(MXCFB_WAIT_FOR_UPDATE_COMPLETE) + +/* Aura */ +cdecl_struct(mxcfb_update_data_org) + +cdecl_const(MXCFB_SEND_UPDATE_ORG) +
Tweak the kobo mxcfb cdecl
agpl-3.0
frankyifei/koreader-base,apletnev/koreader-base,NiLuJe/koreader-base,Hzj-jie/koreader-base,houqp/koreader-base,houqp/koreader-base,Hzj-jie/koreader-base,NiLuJe/koreader-base,NiLuJe/koreader-base,frankyifei/koreader-base,Hzj-jie/koreader-base,Hzj-jie/koreader-base,Frenzie/koreader-base,apletnev/koreader-base,koreader/koreader-base,houqp/koreader-base,koreader/koreader-base,houqp/koreader-base,apletnev/koreader-base,Frenzie/koreader-base,frankyifei/koreader-base,frankyifei/koreader-base,koreader/koreader-base,NiLuJe/koreader-base,Frenzie/koreader-base,koreader/koreader-base,Frenzie/koreader-base,apletnev/koreader-base
d8f546320062c3c8848c1d50bf6a7e8ab3a673b0
/* * Copyright 2016 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #ifndef SDK_OBJC_BASE_RTCMACROS_H_ #define SDK_OBJC_BASE_RTCMACROS_H_ #define RTC_OBJC_EXPORT __attribute__((visibility("default"))) #if defined(__cplusplus) #define RTC_EXTERN extern "C" RTC_OBJC_EXPORT #else #define RTC_EXTERN extern RTC_OBJC_EXPORT #endif #ifdef __OBJC__ #define RTC_FWD_DECL_OBJC_CLASS(classname) @class classname #else #define RTC_FWD_DECL_OBJC_CLASS(classname) typedef struct objc_object classname #endif #endif // SDK_OBJC_BASE_RTCMACROS_H_
/* * Copyright 2016 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #ifndef SDK_OBJC_BASE_RTCMACROS_H_ #define SDK_OBJC_BASE_RTCMACROS_H_ #define RTC_OBJC_EXPORT __attribute__((visibility("default"))) // TODO(mbonadei): Remove RTC_EXPORT in order to be able to land // https://webrtc-review.googlesource.com/c/src/+/97960. #define RTC_EXPORT RTC_OBJC_EXPORT #if defined(__cplusplus) #define RTC_EXTERN extern "C" RTC_OBJC_EXPORT #else #define RTC_EXTERN extern RTC_OBJC_EXPORT #endif #ifdef __OBJC__ #define RTC_FWD_DECL_OBJC_CLASS(classname) @class classname #else #define RTC_FWD_DECL_OBJC_CLASS(classname) typedef struct objc_object classname #endif #endif // SDK_OBJC_BASE_RTCMACROS_H_
--- +++ @@ -12,9 +12,6 @@ #define SDK_OBJC_BASE_RTCMACROS_H_ #define RTC_OBJC_EXPORT __attribute__((visibility("default"))) -// TODO(mbonadei): Remove RTC_EXPORT in order to be able to land -// https://webrtc-review.googlesource.com/c/src/+/97960. -#define RTC_EXPORT RTC_OBJC_EXPORT #if defined(__cplusplus) #define RTC_EXTERN extern "C" RTC_OBJC_EXPORT
Remove backwards compatible macro RTC_EXPORT from sdk/. Symbols under sdk/ are now exported using RTC_OBJC_EXPORT, while RTC_EXPORT is used for C++ symbols. Bug: webrtc:9419 Change-Id: Icdf7ee0e7b3faf4d7fec33e9b33a3b13260f45b7 Reviewed-on: https://webrtc-review.googlesource.com/102461 Reviewed-by: Peter Hanspers <d02e325c30aa6f5b5d3f28abcc70f6d579033e9e@webrtc.org> Commit-Queue: Mirko Bonadei <d2c43c210eae6feef04f53bae50885e8152edcca@webrtc.org> Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#24886}
bsd-3-clause
TimothyGu/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc
cc628b8c1b2227cad240ed1c12d10636e91145cc
/* GLOBAL.H - RSAREF types and constants */ /* PROTOTYPES should be set to one if and only if the compiler supports function argument prototyping. The following makes PROTOTYPES default to 0 if it has not already been defined with C compiler flags. */ #ifndef PROTOTYPES #define PROTOTYPES 0 #endif /* POINTER defines a generic pointer type */ typedef unsigned char *POINTER; #if 0 /* UINT2 defines a two byte word */ typedef unsigned short int UINT2; /* UINT4 defines a four byte word */ typedef unsigned long int UINT4; #else #include <sys/types.h> /* UINT2 defines a two byte word */ typedef u_int16_t UINT2; /* UINT4 defines a four byte word */ typedef u_int32_t UINT4; #endif /* 0 */ /* PROTO_LIST is defined depending on how PROTOTYPES is defined above. If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it returns an empty list. */ #if PROTOTYPES #define PROTO_LIST(list) list #else #define PROTO_LIST(list) () #endif
/* GLOBAL.H - RSAREF types and constants */ /* PROTOTYPES should be set to one if and only if the compiler supports function argument prototyping. The following makes PROTOTYPES default to 0 if it has not already been defined with C compiler flags. */ #ifndef PROTOTYPES #define PROTOTYPES 0 #endif /* POINTER defines a generic pointer type */ typedef unsigned char *POINTER; /* UINT2 defines a two byte word */ typedef unsigned short int UINT2; /* UINT4 defines a four byte word */ typedef unsigned long int UINT4; /* PROTO_LIST is defined depending on how PROTOTYPES is defined above. If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it returns an empty list. */ #if PROTOTYPES #define PROTO_LIST(list) list #else #define PROTO_LIST(list) () #endif
--- +++ @@ -13,11 +13,21 @@ /* POINTER defines a generic pointer type */ typedef unsigned char *POINTER; +#if 0 /* UINT2 defines a two byte word */ typedef unsigned short int UINT2; /* UINT4 defines a four byte word */ typedef unsigned long int UINT4; +#else +#include <sys/types.h> + +/* UINT2 defines a two byte word */ +typedef u_int16_t UINT2; + +/* UINT4 defines a four byte word */ +typedef u_int32_t UINT4; +#endif /* 0 */ /* PROTO_LIST is defined depending on how PROTOTYPES is defined above. If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
Fix bad assumptions about types. PR: 1649 Reviewed by: phk Submitted by: Jason Thorpe <thorpej@nas.nasa.gov>
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
17787f4779ab490398d7ff391230dbfedfa987c5
#ifndef LRPARAMS_ #define LRPARAMS_ #include "np2ver.h" #define LR_SCREENWIDTH 640 #define LR_SCREENHEIGHT 480 #define LR_SCREENASPECT 4.0 / 3.0 #define LR_SCREENFPS 56.4 #define LR_SOUNDRATE 44100.0 //#define SNDSZ 735 //44100Hz/60fps=735 (sample/flame) #define SNDSZ 782 //44100Hz/56.4fps=781.9 (sample/flame) #define LR_CORENAME "Neko Project II kai" #define LR_LIBVERSION NP2VER_CORE #define LR_VALIDFILEEXT "d88|88d|d98|98d|fdi|xdf|hdm|dup|2hd|tfd|nfd|hd4|hd5|hd9|fdd|h01|hdb|ddb|dd6|dcp|dcu|flp|bin|fim|thd|nhd|hdi|vhd|sln" #define LR_NEEDFILEPATH true #define LR_BLOCKARCEXTRACT false #define LR_REQUIRESROM false #endif
#ifndef LRPARAMS_ #define LRPARAMS_ #include "np2ver.h" #define LR_SCREENWIDTH 640 #define LR_SCREENHEIGHT 480 #define LR_SCREENASPECT 4.0 / 3.0 #define LR_SCREENFPS 56.4 #define LR_SOUNDRATE 44100.0 //#define SNDSZ 735 //44100Hz/60fps=735 (sample/flame) #define SNDSZ 782 //44100Hz/56.4fps=781.9 (sample/flame) #define LR_CORENAME "Neko Project II" #define LR_LIBVERSION NP2VER_CORE #define LR_VALIDFILEEXT "d88|88d|d98|98d|fdi|xdf|hdm|dup|2hd|tfd|nfd|hd4|hd5|hd9|fdd|h01|hdb|ddb|dd6|dcp|dcu|flp|bin|fim|thd|nhd|hdi|vhd|sln" #define LR_NEEDFILEPATH true #define LR_BLOCKARCEXTRACT false #define LR_REQUIRESROM false #endif
--- +++ @@ -12,7 +12,7 @@ //#define SNDSZ 735 //44100Hz/60fps=735 (sample/flame) #define SNDSZ 782 //44100Hz/56.4fps=781.9 (sample/flame) -#define LR_CORENAME "Neko Project II" +#define LR_CORENAME "Neko Project II kai" #define LR_LIBVERSION NP2VER_CORE #define LR_VALIDFILEEXT "d88|88d|d98|98d|fdi|xdf|hdm|dup|2hd|tfd|nfd|hd4|hd5|hd9|fdd|h01|hdb|ddb|dd6|dcp|dcu|flp|bin|fim|thd|nhd|hdi|vhd|sln" #define LR_NEEDFILEPATH true
Add 'kai' to core name
mit
AZO234/NP2kai,AZO234/NP2kai,AZO234/NP2kai,AZO234/NP2kai
e7bfdc05fa5ff3e35d8480d75d9e9061498875a1
#ifndef COMMAND_LINE_FLAGS_H_ #define COMMAND_LINE_FLAGS_H_ #include "kinetic/kinetic.h" #include "gflags/gflags.h" DEFINE_string(host, "localhost", "Kinetic Host"); DEFINE_uint64(port, 8123, "Kinetic Port"); DEFINE_uint64(timeout, 30, "Timeout"); DEFINE_uint64(user_id, 1, "Kinetic User ID"); DEFINE_string(hmac_key, "asdfasdf", "Kinetic User HMAC key"); void parse_flags(int *argc, char*** argv, std::unique_ptr<kinetic::ConnectionHandle>& connection) { google::ParseCommandLineFlags(argc, argv, true); kinetic::ConnectionOptions options; options.host = FLAGS_host; options.port = FLAGS_port; options.user_id = FLAGS_user_id; options.hmac_key = FLAGS_hmac_key; kinetic::KineticConnectionFactory kinetic_connection_factory = kinetic::NewKineticConnectionFactory(); if (!kinetic_connection_factory.NewConnection(options, FLAGS_timeout, connection).ok()) { printf("Unable to connect\n"); exit(1); } } #endif // COMMAND_LINE_FLAGS_H_
#ifndef COMMAND_LINE_FLAGS_H_ #define COMMAND_LINE_FLAGS_H_ #include "kinetic/kinetic.h" #include "gflags/gflags.h" DEFINE_string(host, "localhost", "Kinetic Host"); DEFINE_uint64(port, 8123, "Kinetic Port"); DEFINE_uint64(timeout, 30, "Timeout"); void parse_flags(int *argc, char*** argv, std::unique_ptr<kinetic::ConnectionHandle>& connection) { google::ParseCommandLineFlags(argc, argv, true); kinetic::ConnectionOptions options; options.host = FLAGS_host; options.port = FLAGS_port; options.user_id = 1; options.hmac_key = "asdfasdf"; kinetic::KineticConnectionFactory kinetic_connection_factory = kinetic::NewKineticConnectionFactory(); if (!kinetic_connection_factory.NewConnection(options, FLAGS_timeout, connection).ok()) { printf("Unable to connect\n"); exit(1); } } #endif // COMMAND_LINE_FLAGS_H_
--- +++ @@ -8,6 +8,8 @@ DEFINE_string(host, "localhost", "Kinetic Host"); DEFINE_uint64(port, 8123, "Kinetic Port"); DEFINE_uint64(timeout, 30, "Timeout"); +DEFINE_uint64(user_id, 1, "Kinetic User ID"); +DEFINE_string(hmac_key, "asdfasdf", "Kinetic User HMAC key"); void parse_flags(int *argc, char*** argv, std::unique_ptr<kinetic::ConnectionHandle>& connection) { google::ParseCommandLineFlags(argc, argv, true); @@ -15,8 +17,8 @@ kinetic::ConnectionOptions options; options.host = FLAGS_host; options.port = FLAGS_port; - options.user_id = 1; - options.hmac_key = "asdfasdf"; + options.user_id = FLAGS_user_id; + options.hmac_key = FLAGS_hmac_key; kinetic::KineticConnectionFactory kinetic_connection_factory = kinetic::NewKineticConnectionFactory();
Allow setting user id/hmac key via command line params for setpin
unknown
Kinetic/kinetic-cpp-examples,Seagate/kinetic-cpp-examples,chenchongli/kinetic-cpp-examples,chenchongli/kinetic-cpp-examples,daasbank/daasbank-kinetic-c-,Seagate/kinetic-cpp-examples,Kinetic/kinetic-cpp-examples,daasbank/daasbank-kinetic-c-
1f3121d2ba227c0d3e7987b1297f00dfb83d7871
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #ifndef SRC_BGP_SECURITY_GROUP_SECURITY_GROUP_H_ #define SRC_BGP_SECURITY_GROUP_SECURITY_GROUP_H_ #include <boost/array.hpp> #include <boost/system/error_code.hpp> #include <string> #include "base/parse_object.h" #include "bgp/bgp_common.h" class SecurityGroup { public: static const int kSize = 8; static const uint32_t kMinGlobalId = 1; static const uint32_t kMaxGlobalId = 7999999; typedef boost::array<uint8_t, kSize> bytes_type; SecurityGroup(as_t asn, uint32_t id); explicit SecurityGroup(const bytes_type &data); as_t as_number() const; uint32_t security_group_id() const; bool IsGlobal() const; const bytes_type &GetExtCommunity() const { return data_; } const uint64_t GetExtCommunityValue() const { return get_value(data_.begin(), 8); } std::string ToString(); private: bytes_type data_; }; #endif // SRC_BGP_SECURITY_GROUP_SECURITY_GROUP_H_
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #ifndef SRC_BGP_SECURITY_GROUP_SECURITY_GROUP_H_ #define SRC_BGP_SECURITY_GROUP_SECURITY_GROUP_H_ #include <boost/array.hpp> #include <boost/system/error_code.hpp> #include <string> #include "base/parse_object.h" #include "bgp/bgp_common.h" class SecurityGroup { public: static const int kSize = 8; static const uint32_t kMinGlobalId = 1000000; static const uint32_t kMaxGlobalId = 1999999; typedef boost::array<uint8_t, kSize> bytes_type; SecurityGroup(as_t asn, uint32_t id); explicit SecurityGroup(const bytes_type &data); as_t as_number() const; uint32_t security_group_id() const; bool IsGlobal() const; const bytes_type &GetExtCommunity() const { return data_; } const uint64_t GetExtCommunityValue() const { return get_value(data_.begin(), 8); } std::string ToString(); private: bytes_type data_; }; #endif // SRC_BGP_SECURITY_GROUP_SECURITY_GROUP_H_
--- +++ @@ -16,8 +16,8 @@ class SecurityGroup { public: static const int kSize = 8; - static const uint32_t kMinGlobalId = 1000000; - static const uint32_t kMaxGlobalId = 1999999; + static const uint32_t kMinGlobalId = 1; + static const uint32_t kMaxGlobalId = 7999999; typedef boost::array<uint8_t, kSize> bytes_type; SecurityGroup(as_t asn, uint32_t id);
Update min/max global SGIDs values to match Schema Transformer Change-Id: I63d5634e9a374ce33e9e0e779caf499e8fbccdec Closes-Bug: 1381145
apache-2.0
rombie/contrail-controller,eonpatapon/contrail-controller,cloudwatt/contrail-controller,cloudwatt/contrail-controller,srajag/contrail-controller,DreamLab/contrail-controller,rombie/contrail-controller,reiaaoyama/contrail-controller,vmahuli/contrail-controller,nischalsheth/contrail-controller,numansiddique/contrail-controller,srajag/contrail-controller,srajag/contrail-controller,DreamLab/contrail-controller,hthompson6/contrail-controller,srajag/contrail-controller,numansiddique/contrail-controller,nischalsheth/contrail-controller,tcpcloud/contrail-controller,rombie/contrail-controller,cloudwatt/contrail-controller,vmahuli/contrail-controller,nischalsheth/contrail-controller,sajuptpm/contrail-controller,reiaaoyama/contrail-controller,reiaaoyama/contrail-controller,vmahuli/contrail-controller,tcpcloud/contrail-controller,rombie/contrail-controller,codilime/contrail-controller,vpramo/contrail-controller,sajuptpm/contrail-controller,vpramo/contrail-controller,srajag/contrail-controller,tcpcloud/contrail-controller,eonpatapon/contrail-controller,eonpatapon/contrail-controller,nischalsheth/contrail-controller,codilime/contrail-controller,codilime/contrail-controller,codilime/contrail-controller,tcpcloud/contrail-controller,facetothefate/contrail-controller,sajuptpm/contrail-controller,rombie/contrail-controller,DreamLab/contrail-controller,vpramo/contrail-controller,eonpatapon/contrail-controller,rombie/contrail-controller,facetothefate/contrail-controller,facetothefate/contrail-controller,nischalsheth/contrail-controller,nischalsheth/contrail-controller,numansiddique/contrail-controller,eonpatapon/contrail-controller,numansiddique/contrail-controller,numansiddique/contrail-controller,reiaaoyama/contrail-controller,sajuptpm/contrail-controller,vpramo/contrail-controller,codilime/contrail-controller,tcpcloud/contrail-controller,sajuptpm/contrail-controller,sajuptpm/contrail-controller,facetothefate/contrail-controller,nischalsheth/contrail-controller,facetothefate/contrail-controller,hthompson6/contrail-controller,DreamLab/contrail-controller,hthompson6/contrail-controller,DreamLab/contrail-controller,eonpatapon/contrail-controller,codilime/contrail-controller,vmahuli/contrail-controller,hthompson6/contrail-controller,rombie/contrail-controller,eonpatapon/contrail-controller,vmahuli/contrail-controller,tcpcloud/contrail-controller,cloudwatt/contrail-controller,vpramo/contrail-controller,hthompson6/contrail-controller,nischalsheth/contrail-controller,reiaaoyama/contrail-controller,cloudwatt/contrail-controller
c706f245992f760afdb7d41d3f40c60b3d85ee89
/* * types.h: some often used basic type definitions * $Revision$ */ #ifndef __TYPES_H__ #define __TYPES_H__ // Machine types typedef unsigned char Byte; /* 8 bits */ typedef unsigned short SWord; /* 16 bits */ typedef unsigned int DWord; /* 32 bits */ typedef unsigned int dword; /* 32 bits */ typedef unsigned int Word; /* 32 bits */ typedef unsigned int ADDRESS; /* 32-bit unsigned */ #define STD_SIZE 32 // Standard size // Note: there is a known name collision with NO_ADDRESS in WinSock.h #ifdef NO_ADDRESS #undef NO_ADDRESS #endif #define NO_ADDRESS ((ADDRESS)-1) // For invalid ADDRESSes #ifndef _MSC_VER typedef long unsigned long QWord; // 64 bits #else typedef unsigned __int64 QWord; #endif #if defined(_MSC_VER) #pragma warning(disable:4390) #endif #if defined(_MSC_VER) && _MSC_VER <= 1200 // For MSVC 5 or 6: warning about debug into truncated to 255 chars #pragma warning(disable:4786) #endif #endif // #ifndef __TYPES_H__
// Machine types typedef unsigned char Byte; /* 8 bits */ typedef unsigned short SWord; /* 16 bits */ typedef unsigned int DWord; /* 32 bits */ typedef unsigned int dword; /* 32 bits */ typedef unsigned int Word; /* 32 bits */ typedef unsigned int ADDRESS; /* 32-bit unsigned */ #define STD_SIZE 32 // Standard size #define NO_ADDRESS ((ADDRESS)-1) // For invalid ADDRESSes #ifndef _MSC_VER typedef long unsigned long QWord; // 64 bits #else typedef unsigned __int64 QWord; #endif #if defined(_MSC_VER) #pragma warning(disable:4390) #endif #if defined(_MSC_VER) && _MSC_VER <= 1200 // For MSVC 5 or 6: warning about debug into truncated to 255 chars #pragma warning(disable:4786) #endif
--- +++ @@ -1,17 +1,28 @@ +/* + * types.h: some often used basic type definitions + * $Revision$ + */ +#ifndef __TYPES_H__ +#define __TYPES_H__ + // Machine types -typedef unsigned char Byte; /* 8 bits */ -typedef unsigned short SWord; /* 16 bits */ -typedef unsigned int DWord; /* 32 bits */ -typedef unsigned int dword; /* 32 bits */ -typedef unsigned int Word; /* 32 bits */ -typedef unsigned int ADDRESS; /* 32-bit unsigned */ +typedef unsigned char Byte; /* 8 bits */ +typedef unsigned short SWord; /* 16 bits */ +typedef unsigned int DWord; /* 32 bits */ +typedef unsigned int dword; /* 32 bits */ +typedef unsigned int Word; /* 32 bits */ +typedef unsigned int ADDRESS; /* 32-bit unsigned */ -#define STD_SIZE 32 // Standard size -#define NO_ADDRESS ((ADDRESS)-1) // For invalid ADDRESSes +#define STD_SIZE 32 // Standard size +// Note: there is a known name collision with NO_ADDRESS in WinSock.h +#ifdef NO_ADDRESS +#undef NO_ADDRESS +#endif +#define NO_ADDRESS ((ADDRESS)-1) // For invalid ADDRESSes #ifndef _MSC_VER -typedef long unsigned long QWord; // 64 bits +typedef long unsigned long QWord; // 64 bits #else typedef unsigned __int64 QWord; #endif @@ -24,3 +35,5 @@ // For MSVC 5 or 6: warning about debug into truncated to 255 chars #pragma warning(disable:4786) #endif + +#endif // #ifndef __TYPES_H__
Handle the name collision (with WinSock.h) for NO_ADDRESS
bsd-3-clause
TambourineReindeer/boomerang,nemerle/boomerang,xujun10110/boomerang,xujun10110/boomerang,nemerle/boomerang,nemerle/boomerang,TambourineReindeer/boomerang,xujun10110/boomerang,nemerle/boomerang,xujun10110/boomerang,TambourineReindeer/boomerang,TambourineReindeer/boomerang,xujun10110/boomerang,nemerle/boomerang,nemerle/boomerang,nemerle/boomerang,xujun10110/boomerang,xujun10110/boomerang,TambourineReindeer/boomerang,TambourineReindeer/boomerang,nemerle/boomerang,xujun10110/boomerang,TambourineReindeer/boomerang,TambourineReindeer/boomerang
48d0c9e8bcc7b2f204eff8feef3b0fe6df0cae4f
#include <clib/dos_protos.h> #include <inline/dos_protos.h> #include <proto/dos.h> #include <proto/exec.h> #include <proto/graphics.h> #include <exec/execbase.h> #include <graphics/gfxbase.h> #include "system/check.h" bool SystemCheck() { bool kickv40 = SysBase->LibNode.lib_Version >= 40; bool chipaga = GfxBase->ChipRevBits0 & (GFXF_AA_ALICE|GFXF_AA_LISA); bool cpu68040 = SysBase->AttnFlags & AFF_68040; bool fpu68882 = SysBase->AttnFlags & AFF_68882; Printf("System check:\n"); Printf(" - Kickstart v40 : %s\n", kickv40 ? "yes" : "no"); Printf(" - ChipSet AGA : %s\n", chipaga ? "yes" : "no"); Printf(" - CPU 68040 : %s\n", cpu68040 ? "yes" : "no"); Printf(" - FPU 68882 : %s\n", fpu68882 ? "yes" : "no"); return (kickv40 && cpu68040 && fpu68882 && chipaga); }
#include <clib/dos_protos.h> #include <inline/dos_protos.h> #include <proto/dos.h> #include <proto/exec.h> #include <proto/graphics.h> #include <exec/execbase.h> #include <graphics/gfxbase.h> #include "system/check.h" bool SystemCheck() { bool kickv40 = (SysBase->LibNode.lib_Version >= 40) ? TRUE : FALSE; bool chipaga = (GfxBase->ChipRevBits0 & (GFXF_AA_ALICE|GFXF_AA_LISA)) ? TRUE : FALSE; bool cpu68040 = (SysBase->AttnFlags & AFF_68040) ? TRUE : FALSE; bool fpu68882 = (SysBase->AttnFlags & AFF_68882) ? TRUE : FALSE; Printf("System check:\n"); Printf(" - Kickstart v40 : %s\n", kickv40 ? "yes" : "no"); Printf(" - ChipSet AGA : %s\n", chipaga ? "yes" : "no"); Printf(" - CPU 68040 : %s\n", cpu68040 ? "yes" : "no"); Printf(" - FPU 68882 : %s\n", fpu68882 ? "yes" : "no"); return (kickv40 && cpu68040 && fpu68882 && chipaga); }
--- +++ @@ -9,10 +9,10 @@ #include "system/check.h" bool SystemCheck() { - bool kickv40 = (SysBase->LibNode.lib_Version >= 40) ? TRUE : FALSE; - bool chipaga = (GfxBase->ChipRevBits0 & (GFXF_AA_ALICE|GFXF_AA_LISA)) ? TRUE : FALSE; - bool cpu68040 = (SysBase->AttnFlags & AFF_68040) ? TRUE : FALSE; - bool fpu68882 = (SysBase->AttnFlags & AFF_68882) ? TRUE : FALSE; + bool kickv40 = SysBase->LibNode.lib_Version >= 40; + bool chipaga = GfxBase->ChipRevBits0 & (GFXF_AA_ALICE|GFXF_AA_LISA); + bool cpu68040 = SysBase->AttnFlags & AFF_68040; + bool fpu68882 = SysBase->AttnFlags & AFF_68882; Printf("System check:\n"); Printf(" - Kickstart v40 : %s\n", kickv40 ? "yes" : "no");
Remove explicit conversion to boolean value.
artistic-2.0
cahirwpz/demoscene,cahirwpz/demoscene,cahirwpz/demoscene,cahirwpz/demoscene
ba289c0ae2bae2199af17ebac18347fbc5026186
#ifndef INPUTSTATE_H #define INPUTSTATE_H #include <SDL2/SDL.h> #undef main #include <map> class InputState { public: enum KeyFunction { KF_EXIT, KF_FORWARDS, KF_BACKWARDS, KF_ROTATE_SUN }; InputState(); void readInputState(); bool getKeyState(KeyFunction f); int getAbsoluteMouseX() { return mouse_x; }; int getAbsoluteMouseY() { return mouse_y; }; float getMouseX() { return (float)mouse_x / (float)w; }; float getMouseY() { return (float)mouse_y / (float)h; }; int w, h; int mouse_x, mouse_y; private: Uint8 *keys; Uint8 key_function_to_keycode[4]; }; #endif
#ifndef INPUTSTATE_H #define INPUTSTATE_H #include <SDL2/SDL.h> #undef main #include <map> class InputState { public: enum KeyFunction { KF_EXIT, KF_FORWARDS, KF_BACKWARDS, KF_ROTATE_SUN }; InputState(); void readInputState(); bool getKeyState(KeyFunction f); int getAbsoluteMouseX() { return mouse_x; }; int getAbsoluteMouseY() { return mouse_y; }; float getMouseX() { return (float)mouse_x / (float)w; }; float getMouseY() { return (float)mouse_y / (float)h; }; int w, h; int mouse_x, mouse_y; private: Uint8 *keys; Uint8 key_function_to_keycode[3]; }; #endif
--- +++ @@ -23,7 +23,7 @@ private: Uint8 *keys; - Uint8 key_function_to_keycode[3]; + Uint8 key_function_to_keycode[4]; }; #endif
Fix InputSize symbol array size.
mit
pstiasny/derpengine,pstiasny/derpengine
33b703740fd3ade5192bb61492b14cf5cfcebc2c
#include "_condor_fix_types.h" #include "condor_fix_stdio.h" #include <stdlib.h> #include "condor_fix_unistd.h" #include "condor_fix_limits.h" #include "condor_fix_string.h" #include <ctype.h> #include <fcntl.h> #include <errno.h>
#include "_condor_fix_types.h" #include "condor_fix_stdio.h" #include <stdlib.h> #include "condor_fix_unistd.h" #include "condor_fix_limits.h" #include <string.h> #include <ctype.h> #include <fcntl.h> #include <errno.h>
--- +++ @@ -3,7 +3,7 @@ #include <stdlib.h> #include "condor_fix_unistd.h" #include "condor_fix_limits.h" -#include <string.h> +#include "condor_fix_string.h" #include <ctype.h> #include <fcntl.h> #include <errno.h>
Include condor_fix_string.h rather than just string.h
apache-2.0
bbockelm/condor-network-accounting,neurodebian/htcondor,mambelli/osg-bosco-marco,bbockelm/condor-network-accounting,mambelli/osg-bosco-marco,djw8605/htcondor,htcondor/htcondor,mambelli/osg-bosco-marco,clalancette/condor-dcloud,neurodebian/htcondor,zhangzhehust/htcondor,neurodebian/htcondor,djw8605/condor,bbockelm/condor-network-accounting,htcondor/htcondor,neurodebian/htcondor,djw8605/condor,neurodebian/htcondor,clalancette/condor-dcloud,djw8605/condor,mambelli/osg-bosco-marco,djw8605/condor,djw8605/condor,clalancette/condor-dcloud,zhangzhehust/htcondor,djw8605/condor,bbockelm/condor-network-accounting,djw8605/htcondor,htcondor/htcondor,clalancette/condor-dcloud,zhangzhehust/htcondor,bbockelm/condor-network-accounting,bbockelm/condor-network-accounting,djw8605/htcondor,htcondor/htcondor,neurodebian/htcondor,mambelli/osg-bosco-marco,djw8605/htcondor,htcondor/htcondor,djw8605/htcondor,djw8605/condor,zhangzhehust/htcondor,bbockelm/condor-network-accounting,htcondor/htcondor,djw8605/condor,zhangzhehust/htcondor,mambelli/osg-bosco-marco,htcondor/htcondor,zhangzhehust/htcondor,mambelli/osg-bosco-marco,zhangzhehust/htcondor,bbockelm/condor-network-accounting,clalancette/condor-dcloud,djw8605/htcondor,htcondor/htcondor,djw8605/htcondor,neurodebian/htcondor,djw8605/htcondor,zhangzhehust/htcondor,mambelli/osg-bosco-marco,djw8605/htcondor,neurodebian/htcondor,zhangzhehust/htcondor,clalancette/condor-dcloud,clalancette/condor-dcloud,neurodebian/htcondor
dbb3b7606ccb070aedf6771e8efa54a15c2e5426
#include "storage.h" // External SPI flash uses standard SPI interface STATIC const mp_soft_spi_obj_t soft_spi_bus = { .delay_half = MICROPY_HW_SOFTSPI_MIN_DELAY, .polarity = 0, .phase = 0, .sck = MICROPY_HW_SPIFLASH_SCK, .mosi = MICROPY_HW_SPIFLASH_MOSI, .miso = MICROPY_HW_SPIFLASH_MISO, }; STATIC mp_spiflash_cache_t spi_bdev_cache; const mp_spiflash_config_t spiflash_config = { .bus_kind = MP_SPIFLASH_BUS_SPI, .bus.u_spi.cs = MICROPY_HW_SPIFLASH_CS, .bus.u_spi.data = (void*)&soft_spi_bus, .bus.u_spi.proto = &mp_soft_spi_proto, .cache = &spi_bdev_cache, }; spi_bdev_t spi_bdev;
#include "storage.h" // External SPI flash uses standard SPI interface const mp_soft_spi_obj_t soft_spi_bus = { .delay_half = MICROPY_HW_SOFTSPI_MIN_DELAY, .polarity = 0, .phase = 0, .sck = MICROPY_HW_SPIFLASH_SCK, .mosi = MICROPY_HW_SPIFLASH_MOSI, .miso = MICROPY_HW_SPIFLASH_MISO, }; const mp_spiflash_config_t spiflash_config = { .bus_kind = MP_SPIFLASH_BUS_SPI, .bus.u_spi.cs = MICROPY_HW_SPIFLASH_CS, .bus.u_spi.data = (void*)&soft_spi_bus, .bus.u_spi.proto = &mp_soft_spi_proto, }; spi_bdev_t spi_bdev;
--- +++ @@ -2,7 +2,7 @@ // External SPI flash uses standard SPI interface -const mp_soft_spi_obj_t soft_spi_bus = { +STATIC const mp_soft_spi_obj_t soft_spi_bus = { .delay_half = MICROPY_HW_SOFTSPI_MIN_DELAY, .polarity = 0, .phase = 0, @@ -11,11 +11,14 @@ .miso = MICROPY_HW_SPIFLASH_MISO, }; +STATIC mp_spiflash_cache_t spi_bdev_cache; + const mp_spiflash_config_t spiflash_config = { .bus_kind = MP_SPIFLASH_BUS_SPI, .bus.u_spi.cs = MICROPY_HW_SPIFLASH_CS, .bus.u_spi.data = (void*)&soft_spi_bus, .bus.u_spi.proto = &mp_soft_spi_proto, + .cache = &spi_bdev_cache, }; spi_bdev_t spi_bdev;
stm32/boards/STM32L476DISC: Update SPI flash config for cache change.
mit
pozetroninc/micropython,MrSurly/micropython,pramasoul/micropython,henriknelson/micropython,pfalcon/micropython,adafruit/circuitpython,bvernoux/micropython,pfalcon/micropython,MrSurly/micropython,bvernoux/micropython,pozetroninc/micropython,henriknelson/micropython,swegener/micropython,pozetroninc/micropython,tralamazza/micropython,henriknelson/micropython,trezor/micropython,trezor/micropython,pfalcon/micropython,pramasoul/micropython,pozetroninc/micropython,tralamazza/micropython,selste/micropython,swegener/micropython,tobbad/micropython,tralamazza/micropython,tralamazza/micropython,henriknelson/micropython,selste/micropython,MrSurly/micropython,trezor/micropython,tobbad/micropython,pfalcon/micropython,tobbad/micropython,kerneltask/micropython,selste/micropython,henriknelson/micropython,bvernoux/micropython,tobbad/micropython,pozetroninc/micropython,kerneltask/micropython,pramasoul/micropython,adafruit/micropython,trezor/micropython,kerneltask/micropython,selste/micropython,adafruit/circuitpython,adafruit/micropython,tobbad/micropython,bvernoux/micropython,MrSurly/micropython,pfalcon/micropython,adafruit/micropython,adafruit/circuitpython,pramasoul/micropython,trezor/micropython,swegener/micropython,swegener/micropython,adafruit/circuitpython,MrSurly/micropython,swegener/micropython,kerneltask/micropython,adafruit/micropython,adafruit/circuitpython,kerneltask/micropython,adafruit/circuitpython,selste/micropython,pramasoul/micropython,bvernoux/micropython,adafruit/micropython
335d26b27d238cca9b4447a46d187d4c6f573d3a
#ifndef QTXXML_IXMLDESERIALIZING_H #define QTXXML_IXMLDESERIALIZING_H #include "xmlglobal.h" #include <QtCore> QTX_BEGIN_NAMESPACE class IXmlDeserializing { public: virtual ~IXmlDeserializing() {}; virtual IXmlDeserializing *deserializeXmlStartElement(XmlDeserializer * deserializer, const QStringRef & name, const QStringRef & namespaceUri, const QXmlStreamAttributes & attributes) { Q_UNUSED(deserializer) Q_UNUSED(name) Q_UNUSED(namespaceUri) Q_UNUSED(attributes) return 0; } virtual void deserializeXmlEndElement(XmlDeserializer *deserializer, const QStringRef & name, const QStringRef & namespaceUri) { Q_UNUSED(deserializer) Q_UNUSED(name) Q_UNUSED(namespaceUri) } virtual void deserializeXmlAttributes(XmlDeserializer *deserializer, const QXmlStreamAttributes & attributes) { Q_UNUSED(deserializer) Q_UNUSED(attributes) } virtual void deserializeXmlCharacters(XmlDeserializer *deserializer, const QStringRef & text) { Q_UNUSED(deserializer) Q_UNUSED(text) } }; QTX_END_NAMESPACE #endif // QTXXML_IXMLDESERIALIZING_H
#ifndef QTXXML_IXMLDESERIALIZING_H #define QTXXML_IXMLDESERIALIZING_H #include "xmlglobal.h" #include <QtCore> QTX_BEGIN_NAMESPACE class IXmlDeserializing { public: virtual ~IXmlDeserializing() {}; virtual IXmlDeserializing *deserializeXmlStartElement(XmlDeserializer *deserializer, const QStringRef & name, const QStringRef & namespaceUri, const QXmlStreamAttributes & attributes) = 0; virtual void deserializeXmlEndElement(XmlDeserializer *deserializer, const QStringRef & name, const QStringRef & namespaceUri) = 0; virtual void deserializeXmlAttributes(XmlDeserializer *deserializer, const QXmlStreamAttributes & attributes) = 0; virtual void deserializeXmlCharacters(XmlDeserializer *deserializer, const QStringRef & text) = 0; }; QTX_END_NAMESPACE #endif // QTXXML_IXMLDESERIALIZING_H
--- +++ @@ -12,10 +12,33 @@ public: virtual ~IXmlDeserializing() {}; - virtual IXmlDeserializing *deserializeXmlStartElement(XmlDeserializer *deserializer, const QStringRef & name, const QStringRef & namespaceUri, const QXmlStreamAttributes & attributes) = 0; - virtual void deserializeXmlEndElement(XmlDeserializer *deserializer, const QStringRef & name, const QStringRef & namespaceUri) = 0; - virtual void deserializeXmlAttributes(XmlDeserializer *deserializer, const QXmlStreamAttributes & attributes) = 0; - virtual void deserializeXmlCharacters(XmlDeserializer *deserializer, const QStringRef & text) = 0; + virtual IXmlDeserializing *deserializeXmlStartElement(XmlDeserializer * deserializer, const QStringRef & name, const QStringRef & namespaceUri, const QXmlStreamAttributes & attributes) + { + Q_UNUSED(deserializer) + Q_UNUSED(name) + Q_UNUSED(namespaceUri) + Q_UNUSED(attributes) + return 0; + } + + virtual void deserializeXmlEndElement(XmlDeserializer *deserializer, const QStringRef & name, const QStringRef & namespaceUri) + { + Q_UNUSED(deserializer) + Q_UNUSED(name) + Q_UNUSED(namespaceUri) + } + + virtual void deserializeXmlAttributes(XmlDeserializer *deserializer, const QXmlStreamAttributes & attributes) + { + Q_UNUSED(deserializer) + Q_UNUSED(attributes) + } + + virtual void deserializeXmlCharacters(XmlDeserializer *deserializer, const QStringRef & text) + { + Q_UNUSED(deserializer) + Q_UNUSED(text) + } };
Add default implementations of IXmlDeserializing methods.
apache-2.0
jaredhanson/qtxxml,jaredhanson/qtxxml
72c4accefc3d2ac122d650f696d04b189abc43be
//===--------------------------------------------------------------------------------*- C++ -*-===// // _ // | | // __| | __ ___ ___ ___ // / _` |/ _` \ \ /\ / / '_ | // | (_| | (_| |\ V V /| | | | // \__,_|\__,_| \_/\_/ |_| |_| - Compiler Toolchain // // // This file is distributed under the MIT License (MIT). // See LICENSE.txt for details. // //===------------------------------------------------------------------------------------------===// #ifndef DAWN_UNITTEST_UNITTESTLOGGER_H #define DAWN_UNITTEST_UNITTESTLOGGER_H #include "dawn/Support/Logging.h" namespace dawn { /// @brief Simple logger to `std::cout` for debugging purposes /// @ingroup unittest class UnittestLogger : public LoggerInterface { public: void log(LoggingLevel level, const std::string& message, const char* file, int line) override; }; } // namespace dawn #endif
//===--------------------------------------------------------------------------------*- C++ -*-===// // _ // | | // __| | __ ___ ___ ___ // / _` |/ _` \ \ /\ / / '_ | // | (_| | (_| |\ V V /| | | | // \__,_|\__,_| \_/\_/ |_| |_| - Compiler Toolchain // // // This file is distributed under the MIT License (MIT). // See LICENSE.txt for details. // //===------------------------------------------------------------------------------------------===// #ifndef DAWN_UNITTEST_UNITTESTLOGGER_H #define DAWN_UNITTEST_UNITTESTLOGGER_H #include "dawn/Support/Logging.h" namespace dawn { /// @brief Simple logger to std::cout for debugging purposes class UnittestLogger : public LoggerInterface { public: void log(LoggingLevel level, const std::string& message, const char* file, int line) override; }; } // namespace dawn #endif
--- +++ @@ -19,7 +19,8 @@ namespace dawn { -/// @brief Simple logger to std::cout for debugging purposes +/// @brief Simple logger to `std::cout` for debugging purposes +/// @ingroup unittest class UnittestLogger : public LoggerInterface { public: void log(LoggingLevel level, const std::string& message, const char* file, int line) override;
Add unittest to unittest group in doxygen
mit
twicki/dawn,twicki/dawn,twicki/dawn,MeteoSwiss-APN/dawn,MeteoSwiss-APN/dawn,twicki/dawn,MeteoSwiss-APN/dawn
6f16758e72150da6b2d98d8fab9fff35ab0777e7
#ifdef __cplusplus extern "C" { #endif #include "lua.h" #ifdef __cplusplus } #endif #include "lualcm_lcm.h" #include "lualcm_hash.h" #include "lualcm_pack.h" int luaopen_lcm_lcm(lua_State* L) { ll_lcm_makemetatable(L); ll_lcm_register_new(L); return 1; } int luaopen_lcm__hash(lua_State* L) { ll_hash_makemetatable(L); ll_hash_register_new(L); return 1; } int luaopen_lcm__pack(lua_State* L) { ll_pack_register(L); return 1; } #if defined(_WIN32) __declspec(dllexport) #elif __GNUC__ >= 4 || defined(__clang__) __attribute__((visibility ("default"))) #endif int luaopen_lcm(lua_State* L) { lua_newtable(L); lua_pushstring(L, "lcm"); luaopen_lcm_lcm(L); lua_rawset(L, -3); lua_pushstring(L, "_hash"); luaopen_lcm__hash(L); lua_rawset(L, -3); lua_pushstring(L, "_pack"); luaopen_lcm__pack(L); lua_rawset(L, -3); return 1; }
#ifdef __cplusplus extern "C" { #endif #include "lua.h" #ifdef __cplusplus } #endif #include "lualcm_lcm.h" #include "lualcm_hash.h" #include "lualcm_pack.h" int luaopen_lcm_lcm(lua_State* L) { ll_lcm_makemetatable(L); ll_lcm_register_new(L); return 1; } int luaopen_lcm__hash(lua_State* L) { ll_hash_makemetatable(L); ll_hash_register_new(L); return 1; } int luaopen_lcm__pack(lua_State* L) { ll_pack_register(L); return 1; } int luaopen_lcm(lua_State* L) { lua_newtable(L); lua_pushstring(L, "lcm"); luaopen_lcm_lcm(L); lua_rawset(L, -3); lua_pushstring(L, "_hash"); luaopen_lcm__hash(L); lua_rawset(L, -3); lua_pushstring(L, "_pack"); luaopen_lcm__pack(L); lua_rawset(L, -3); return 1; }
--- +++ @@ -30,6 +30,11 @@ return 1; } +#if defined(_WIN32) +__declspec(dllexport) +#elif __GNUC__ >= 4 || defined(__clang__) +__attribute__((visibility ("default"))) +#endif int luaopen_lcm(lua_State* L) { lua_newtable(L);
Fix export decoration of Lua module Add missing export decoration for Lua module entry point. This fixes the Lua module that stopped working when ELF hidden visibility was enabled. (I'm not sure about Windows, as I don't have Lua on Windows, but I suspect it never worked on Windows.)
lgpl-2.1
lcm-proj/lcm,adeschamps/lcm,adeschamps/lcm,bluesquall/lcm,lcm-proj/lcm,adeschamps/lcm,bluesquall/lcm,lcm-proj/lcm,adeschamps/lcm,adeschamps/lcm,lcm-proj/lcm,bluesquall/lcm,adeschamps/lcm,lcm-proj/lcm,adeschamps/lcm,lcm-proj/lcm,lcm-proj/lcm,bluesquall/lcm,adeschamps/lcm,bluesquall/lcm,lcm-proj/lcm,bluesquall/lcm,bluesquall/lcm
a1ec514adc224359043f267df88bf3dc07acb6b3
#if defined(__APPLE__) && defined(__MACH__) /* for OSX */ # define Assembler "as -arch i386 -g -o %s -" # define Fprefix "_" #else /* Default to linux */ # define Assembler "as --32 -g -o %s -" # define Fprefix "" #endif
#if defined(__APPLE__) && defined(__MACH__) /* for OSX */ # define Fprefix "_" #else /* Default to linux */ # define Fprefix "" #endif #define Assembler "as --32 -g -o %s -"
--- +++ @@ -1,8 +1,9 @@ #if defined(__APPLE__) && defined(__MACH__) /* for OSX */ +# define Assembler "as -arch i386 -g -o %s -" # define Fprefix "_" #else /* Default to linux */ +# define Assembler "as --32 -g -o %s -" # define Fprefix "" #endif -#define Assembler "as --32 -g -o %s -"
Use the appropriate assembler for OSX.
mit
8l/myrddin,oridb/mc,oridb/mc,8l/myrddin,oridb/mc,oridb/mc
a20f753e2585ef887f7242e7bd8863836df65715
#include <cgreen/cgreen.h> #include <cgreen/mocks.h> void convert_to_uppercase(char *converted_string, const char *original_string) { mock(converted_string, original_string); } Ensure(setting_content_of_out_parameter) { expect(convert_to_uppercase, when(original_string, is_equal_to_string("upper case")), will_set_content_of_parameter(converted_string, "UPPER CASE", 11)); }
#include <cgreen/cgreen.h> #include <cgreen/mocks.h> void convert_to_uppercase(char *converted_string, const char *original_string) { mock(converted_string, original_string); } Ensure(setting_content_of_out_parameter) { expect(convert_to_uppercase, when(original_string, is_equal_to_string("upper case")), will_set_content_of_parameter(&converted_string, "UPPER CASE", 11)); }
--- +++ @@ -8,7 +8,7 @@ Ensure(setting_content_of_out_parameter) { expect(convert_to_uppercase, when(original_string, is_equal_to_string("upper case")), - will_set_content_of_parameter(&converted_string, + will_set_content_of_parameter(converted_string, "UPPER CASE", 11)); }
[doc][set_parameter] Fix error in example code
isc
cgreen-devs/cgreen,cgreen-devs/cgreen,cgreen-devs/cgreen,cgreen-devs/cgreen,cgreen-devs/cgreen
a67eb4aed742365cd175540372e5f94ff82f998c
#pragma once #include "bpftrace.h" #include "log.h" #include "pass_manager.h" #include "visitors.h" namespace bpftrace { namespace ast { class NodeCounter : public Visitor { public: void Visit(Node &node) override { count_++; Visitor::Visit(node); } size_t get_count() { return count_; }; private: size_t count_ = 0; }; Pass CreateCounterPass() { auto fn = [](Node &n, PassContext &ctx) { NodeCounter c; c.Visit(n); auto node_count = c.get_count(); auto max = ctx.b.ast_max_nodes_; if (bt_verbose) { LOG(INFO) << "node count: " << node_count; } if (node_count >= max) { LOG(ERROR) << "node count (" << node_count << ") exceeds the limit (" << max << ")"; return PassResult::Error("node count exceeded"); } return PassResult::Success(); }; return Pass("NodeCounter", fn); } } // namespace ast } // namespace bpftrace
#pragma once #include "bpftrace.h" #include "log.h" #include "pass_manager.h" #include "visitors.h" namespace bpftrace { namespace ast { class NodeCounter : public Visitor { public: void Visit(Node &node) { count_++; Visitor::Visit(node); } size_t get_count() { return count_; }; private: size_t count_ = 0; }; Pass CreateCounterPass() { auto fn = [](Node &n, PassContext &ctx) { NodeCounter c; c.Visit(n); auto node_count = c.get_count(); auto max = ctx.b.ast_max_nodes_; if (bt_verbose) { LOG(INFO) << "node count: " << node_count; } if (node_count >= max) { LOG(ERROR) << "node count (" << node_count << ") exceeds the limit (" << max << ")"; return PassResult::Error("node count exceeded"); } return PassResult::Success(); }; return Pass("NodeCounter", fn); } } // namespace ast } // namespace bpftrace
--- +++ @@ -10,7 +10,7 @@ class NodeCounter : public Visitor { public: - void Visit(Node &node) + void Visit(Node &node) override { count_++; Visitor::Visit(node);
Add override keyword to overridden method
apache-2.0
iovisor/bpftrace,iovisor/bpftrace,iovisor/bpftrace,iovisor/bpftrace
3ab883a6e155fb1f6a36a4fe341abb97d15994d4
#include <stdlib.h> #include "stdlib_noniso.h" extern int ets_sprintf(char*, const char*, ...); #define sprintf ets_sprintf long atol_internal(const char* s) { long result = 0; return result; } float atof_internal(const char* s) { float result = 0; return result; } char * itoa (int val, char *s, int radix) { // todo: radix sprintf(s, "%d", val); return s; } char * ltoa (long val, char *s, int radix) { sprintf(s, "%ld", val); return s; } char * utoa (unsigned int val, char *s, int radix) { sprintf(s, "%u", val); return s; } char * ultoa (unsigned long val, char *s, int radix) { sprintf(s, "%lu", val); return s; } char * dtostre (double __val, char *__s, unsigned char __prec, unsigned char __flags) { *__s = 0; return __s; } char * dtostrf (double __val, signed char __width, unsigned char __prec, char *__s) { *__s = 0; return __s; }
#include <stdlib.h> #include "stdlib_noniso.h" long atol_internal(const char* s) { return 0; } float atof_internal(const char* s) { return 0; } char * itoa (int val, char *s, int radix) { *s = 0; return s; } char * ltoa (long val, char *s, int radix) { *s = 0; return s; } char * utoa (unsigned int val, char *s, int radix) { *s = 0; return s; } char * ultoa (unsigned long val, char *s, int radix) { *s = 0; return s; } char * dtostre (double __val, char *__s, unsigned char __prec, unsigned char __flags) { *__s = 0; return __s; } char * dtostrf (double __val, signed char __width, unsigned char __prec, char *__s) { *__s = 0; return __s; }
--- +++ @@ -1,37 +1,45 @@ #include <stdlib.h> #include "stdlib_noniso.h" + +extern int ets_sprintf(char*, const char*, ...); + +#define sprintf ets_sprintf + long atol_internal(const char* s) { - return 0; + long result = 0; + return result; } float atof_internal(const char* s) { - return 0; + float result = 0; + return result; } char * itoa (int val, char *s, int radix) { - *s = 0; + // todo: radix + sprintf(s, "%d", val); return s; } char * ltoa (long val, char *s, int radix) { - *s = 0; + sprintf(s, "%ld", val); return s; } char * utoa (unsigned int val, char *s, int radix) { - *s = 0; + sprintf(s, "%u", val); return s; } char * ultoa (unsigned long val, char *s, int radix) { - *s = 0; + sprintf(s, "%lu", val); return s; }
Add stubs for itoa, ltoa
lgpl-2.1
gguuss/Arduino,NullMedia/Arduino,gguuss/Arduino,edog1973/Arduino,jes/Arduino,NullMedia/Arduino,Links2004/Arduino,Links2004/Arduino,me-no-dev/Arduino,gguuss/Arduino,Adam5Wu/Arduino,quertenmont/Arduino,esp8266/Arduino,KaloNK/Arduino,quertenmont/Arduino,quertenmont/Arduino,me-no-dev/Arduino,NullMedia/Arduino,NextDevBoard/Arduino,Adam5Wu/Arduino,martinayotte/ESP8266-Arduino,wemos/Arduino,martinayotte/ESP8266-Arduino,me-no-dev/Arduino,chrisfraser/Arduino,chrisfraser/Arduino,lrmoreno007/Arduino,CanTireInnovations/Arduino,sticilface/Arduino,Juppit/Arduino,NextDevBoard/Arduino,KaloNK/Arduino,Cloudino/Arduino,Adam5Wu/Arduino,toastedcode/esp8266-Arduino,lrmoreno007/Arduino,CanTireInnovations/Arduino,Cloudino/Cloudino-Arduino-IDE,Cloudino/Cloudino-Arduino-IDE,sticilface/Arduino,chrisfraser/Arduino,KaloNK/Arduino,Lan-Hekary/Arduino,CanTireInnovations/Arduino,jes/Arduino,Adam5Wu/Arduino,hallard/Arduino,me-no-dev/Arduino,Lan-Hekary/Arduino,hallard/Arduino,CanTireInnovations/Arduino,martinayotte/ESP8266-Arduino,Cloudino/Arduino,hallard/Arduino,lrmoreno007/Arduino,hallard/Arduino,Links2004/Arduino,jes/Arduino,sticilface/Arduino,Juppit/Arduino,jes/Arduino,Cloudino/Cloudino-Arduino-IDE,wemos/Arduino,NextDevBoard/Arduino,gguuss/Arduino,NextDevBoard/Arduino,Cloudino/Arduino,quertenmont/Arduino,sticilface/Arduino,jes/Arduino,NullMedia/Arduino,sticilface/Arduino,toastedcode/esp8266-Arduino,Cloudino/Cloudino-Arduino-IDE,martinayotte/ESP8266-Arduino,KaloNK/Arduino,quertenmont/Arduino,Cloudino/Cloudino-Arduino-IDE,gguuss/Arduino,edog1973/Arduino,Lan-Hekary/Arduino,CanTireInnovations/Arduino,NullMedia/Arduino,Juppit/Arduino,Cloudino/Arduino,Links2004/Arduino,martinayotte/ESP8266-Arduino,Lan-Hekary/Arduino,esp8266/Arduino,lrmoreno007/Arduino,Cloudino/Cloudino-Arduino-IDE,toastedcode/esp8266-Arduino,KaloNK/Arduino,Cloudino/Arduino,Lan-Hekary/Arduino,Juppit/Arduino,toastedcode/esp8266-Arduino,lrmoreno007/Arduino,hallard/Arduino,esp8266/Arduino,Juppit/Arduino,wemos/Arduino,toastedcode/esp8266-Arduino,CanTireInnovations/Arduino,CanTireInnovations/Arduino,wemos/Arduino,Adam5Wu/Arduino,chrisfraser/Arduino,edog1973/Arduino,chrisfraser/Arduino,edog1973/Arduino,me-no-dev/Arduino,esp8266/Arduino,wemos/Arduino,Cloudino/Arduino,Links2004/Arduino,esp8266/Arduino,NextDevBoard/Arduino,Cloudino/Cloudino-Arduino-IDE,edog1973/Arduino,Cloudino/Arduino
4dd9b0481fedd5fb2386865525e4e186cd88b10a
#pragma once #include <spotify/json.hpp> #include <noise/noise.h> #include "noise/module/Wrapper.h" #include "noise/module/CornerCombinerBase.h" namespace spotify { namespace json { template<> struct default_codec_t<noise::module::Wrapper<noise::module::CornerCombinerBase>> { using CornerCombinerBaseWrapper = noise::module::Wrapper<noise::module::CornerCombinerBase>; static codec::object_t<CornerCombinerBaseWrapper> codec() { auto codec = codec::object<CornerCombinerBaseWrapper>(); codec.required("type", codec::eq<std::string>("CornerCombinerBase")); codec.optional("Power", [](const CornerCombinerBaseWrapper& mw) {return mw.module.GetPower(); }, [](CornerCombinerBaseWrapper& mw, double power) {mw.module.SetPower(power); }); return codec; } }; } }
#pragma once #include <spotify/json.hpp> #include <noise/noise.h> #include "noise/module/Wrapper.h" #include "noise/module/CornerCombinerBase.h" namespace spotify { namespace json { template<> struct default_codec_t<noise::module::Wrapper<noise::module::CornerCombinerBase>> { using CornerCombinerBaseWrapper = noise::module::Wrapper<noise::module::CornerCombinerBase>; static codec::object_t<CornerCombinerBaseWrapper> codec() { auto codec = codec::object<CornerCombinerBaseWrapper>(); codec.required("type", codec::eq<std::string>("CornerCombinerBase")); codec.optional("Power", [](CornerCombinerBase CornerCombinerBaseWrapper& mw) {return mw.module.GetPower(); }, [](CornerCombinerBaseWrapper& mw, double power) {mw.module.SetPower(power); }); return codec; } }; } }
--- +++ @@ -20,7 +20,7 @@ auto codec = codec::object<CornerCombinerBaseWrapper>(); codec.required("type", codec::eq<std::string>("CornerCombinerBase")); codec.optional("Power", - [](CornerCombinerBase CornerCombinerBaseWrapper& mw) {return mw.module.GetPower(); }, + [](const CornerCombinerBaseWrapper& mw) {return mw.module.GetPower(); }, [](CornerCombinerBaseWrapper& mw, double power) {mw.module.SetPower(power); }); return codec; }
Fix find&replace error in CornerCombinerBase codec
mit
Wangscape/Wangscape,serin-delaunay/Wangscape,Wangscape/Wangscape,serin-delaunay/Wangscape,Wangscape/Wangscape
d2db26f1c08242b61709d6c297ad28e02acd7abd
#ifndef LPSLCD_VALIDATOR_H #define LPSLCD_VALIDATOR_H #include "generator.h" #include <cmath> class Validator { public: static bool Validate (const Code & code) { // | N - k | // | ____ | // | \ a + a | < L // | /___ i i + k | // | i = 1 | // // k - 0 < k < N; // N - length of sequence. // L - limit of sidelobe level. const ssize_t sideLobeLimit = code.size () < 14 ? 1 : std::floor (code.size () / 14.0f); for (size_t shift = 1; shift < code.size (); ++shift) { ssize_t sideLobe = 0; for (size_t i = 0; i < code.size () - shift; ++i) { sideLobe += (code [i + shift] == '+' ? 1 : -1) * (code [i ] == '+' ? 1 : -1); } if (std::abs (sideLobe) > sideLobeLimit) { return false; } } return true; }; }; #endif//LPSLCD_VALIDATOR_H
#ifndef LPSLCD_VALIDATOR_H #define LPSLCD_VALIDATOR_H #include "generator.h" class Validator { public: static bool Validate (const Code & code) { // | N - k | // | ____ | // | \ a + a | < L // | /___ i i + k | // | i = 1 | // // k - 0 < k < N; // N - length of sequence. // L - limit of sidelobe level. const ssize_t sideLobeLimit = code.size () < 14 ? 1 : floor (code.size () / 14.0f); for (size_t shift = 1; shift < code.size (); ++shift) { ssize_t sideLobe = 0; for (size_t i = 0; i < code.size () - shift; ++i) { sideLobe += (code [i + shift] == '+' ? 1 : -1) * (code [i ] == '+' ? 1 : -1); } if (std::abs (sideLobe) > sideLobeLimit) { return false; } } return true; }; }; #endif//LPSLCD_VALIDATOR_H
--- +++ @@ -2,6 +2,7 @@ #define LPSLCD_VALIDATOR_H #include "generator.h" +#include <cmath> @@ -20,7 +21,7 @@ // N - length of sequence. // L - limit of sidelobe level. - const ssize_t sideLobeLimit = code.size () < 14 ? 1 : floor (code.size () / 14.0f); + const ssize_t sideLobeLimit = code.size () < 14 ? 1 : std::floor (code.size () / 14.0f); for (size_t shift = 1; shift < code.size (); ++shift) { ssize_t sideLobe = 0;
Fix compile error on gcc 6.3.0.
mit
Gluttton/PslRK,Gluttton/PslRK,Gluttton/PslRK
ac6241f2f5f470d14938510c5cd04d1b8f2cb4af
/* * driver - driver for loading mruby source code */ #include <stdio.h> #include "mruby.h" #include "mruby/compile.h" #include "mruby/irep.h" /* The generated mruby bytecodes are stored in this array */ extern const char app_irep[]; static int check_and_print_errors(mrb_state* mrb) { if (mrb->exc) { mrb_p(mrb, mrb_obj_value(mrb->exc)); return 1; } return 0; } int webruby_internal_run(mrb_state* mrb) { mrb_load_irep(mrb, app_irep); return check_and_print_errors(mrb); } int webruby_internal_run_bytecode(mrb_state* mrb, const char *bc) { mrb_load_irep(mrb, bc); return check_and_print_errors(mrb); } int webruby_internal_run_source(mrb_state* mrb, const char *s) { mrb_load_string(mrb, s); return check_and_print_errors(mrb); }
/* * driver - driver for loading mruby source code */ #include <stdio.h> #include "mruby.h" #include "mruby/compile.h" #include "mruby/irep.h" /* The generated mruby bytecodes are stored in this array */ extern const char app_irep[]; int webruby_internal_run(mrb_state* mrb) { mrb_load_irep(mrb, app_irep); return (mrb->exc == NULL) ? (0) : (1); } int webruby_internal_run_bytecode(mrb_state* mrb, const char *bc) { mrb_load_irep(mrb, bc); return (mrb->exc == NULL) ? (0) : (1); } int webruby_internal_run_source(mrb_state* mrb, const char *s) { mrb_load_string(mrb, s); return (mrb->exc == NULL) ? (0) : (1); }
--- +++ @@ -11,20 +11,29 @@ /* The generated mruby bytecodes are stored in this array */ extern const char app_irep[]; +static int check_and_print_errors(mrb_state* mrb) +{ + if (mrb->exc) { + mrb_p(mrb, mrb_obj_value(mrb->exc)); + return 1; + } + return 0; +} + int webruby_internal_run(mrb_state* mrb) { mrb_load_irep(mrb, app_irep); - return (mrb->exc == NULL) ? (0) : (1); + return check_and_print_errors(mrb); } int webruby_internal_run_bytecode(mrb_state* mrb, const char *bc) { mrb_load_irep(mrb, bc); - return (mrb->exc == NULL) ? (0) : (1); + return check_and_print_errors(mrb); } int webruby_internal_run_source(mrb_state* mrb, const char *s) { mrb_load_string(mrb, s); - return (mrb->exc == NULL) ? (0) : (1); + return check_and_print_errors(mrb); }
Print exceptions to console if exist.
mit
sadasant/webruby,sadasant/webruby,xxuejie/webruby,xxuejie/webruby
2137ddf9dc59273c6444330246fd1c2c34586679
#pragma once #include <vector> #include <boost/multiprecision/cpp_int.hpp> namespace dev { namespace eth { namespace jit { using byte = uint8_t; using bytes = std::vector<byte>; using u256 = boost::multiprecision::uint256_t; using bigint = boost::multiprecision::cpp_int; struct NoteChannel {}; // FIXME: Use some log library? enum class ReturnCode { Stop = 0, Return = 1, Suicide = 2, BadJumpDestination = 101, OutOfGas = 102, StackTooSmall = 103, BadInstruction = 104, LLVMConfigError = 201, LLVMCompileError = 202, LLVMLinkError = 203, }; /// Representation of 256-bit value binary compatible with LLVM i256 // TODO: Replace with h256 struct i256 { uint64_t a = 0; uint64_t b = 0; uint64_t c = 0; uint64_t d = 0; }; static_assert(sizeof(i256) == 32, "Wrong i265 size"); #define UNTESTED assert(false) } } }
#pragma once #include <vector> #include <boost/multiprecision/cpp_int.hpp> namespace dev { namespace eth { namespace jit { using byte = uint8_t; using bytes = std::vector<byte>; using u256 = boost::multiprecision::uint256_t; using bigint = boost::multiprecision::cpp_int; struct NoteChannel {}; // FIXME: Use some log library? enum class ReturnCode { Stop = 0, Return = 1, Suicide = 2, BadJumpDestination = 101, OutOfGas = 102, StackTooSmall = 103, BadInstruction = 104, LLVMConfigError = 201, LLVMCompileError = 202, LLVMLinkError = 203, }; /// Representation of 256-bit value binary compatible with LLVM i256 // TODO: Replace with h256 struct i256 { uint64_t a; uint64_t b; uint64_t c; uint64_t d; }; static_assert(sizeof(i256) == 32, "Wrong i265 size"); #define UNTESTED assert(false) } } }
--- +++ @@ -37,10 +37,10 @@ // TODO: Replace with h256 struct i256 { - uint64_t a; - uint64_t b; - uint64_t c; - uint64_t d; + uint64_t a = 0; + uint64_t b = 0; + uint64_t c = 0; + uint64_t d = 0; }; static_assert(sizeof(i256) == 32, "Wrong i265 size");
Fix some GCC initialization warnings
mit
eco/cpp-ethereum,ethers/cpp-ethereum,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,programonauta/webthree-umbrella,smartbitcoin/cpp-ethereum,xeddmc/cpp-ethereum,d-das/cpp-ethereum,anthony-cros/cpp-ethereum,d-das/cpp-ethereum,ethers/cpp-ethereum,Sorceror32/go-get--u-github.com-tools-godep,PaulGrey30/go-get--u-github.com-tools-godep,ethers/cpp-ethereum,Sorceror32/.-git-clone-https-github.com-ethereum-cpp-ethereum,expanse-project/cpp-expanse,PaulGrey30/go-get--u-github.com-tools-godep,Sorceror32/go-get--u-github.com-tools-godep,LefterisJP/cpp-ethereum,gluk256/cpp-ethereum,xeddmc/cpp-ethereum,smartbitcoin/cpp-ethereum,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,expanse-org/cpp-expanse,Sorceror32/.-git-clone-https-github.com-ethereum-cpp-ethereum,joeldo/cpp-ethereum,LefterisJP/webthree-umbrella,anthony-cros/cpp-ethereum,d-das/cpp-ethereum,gluk256/cpp-ethereum,Sorceror32/go-get--u-github.com-tools-godep,eco/cpp-ethereum,Sorceror32/.-git-clone-https-github.com-ethereum-cpp-ethereum,expanse-project/cpp-expanse,LefterisJP/cpp-ethereum,PaulGrey30/go-get--u-github.com-tools-godep,ethers/cpp-ethereum,eco/cpp-ethereum,expanse-org/cpp-expanse,smartbitcoin/cpp-ethereum,subtly/cpp-ethereum-micro,eco/cpp-ethereum,vaporry/cpp-ethereum,vaporry/cpp-ethereum,vaporry/cpp-ethereum,joeldo/cpp-ethereum,vaporry/evmjit,xeddmc/cpp-ethereum,johnpeter66/ethminer,Sorceror32/go-get--u-github.com-tools-godep,Sorceror32/.-git-clone-https-github.com-ethereum-cpp-ethereum,gluk256/cpp-ethereum,vaporry/cpp-ethereum,joeldo/cpp-ethereum,karek314/cpp-ethereum,xeddmc/cpp-ethereum,programonauta/webthree-umbrella,johnpeter66/ethminer,karek314/cpp-ethereum,karek314/cpp-ethereum,vaporry/webthree-umbrella,karek314/cpp-ethereum,ethers/cpp-ethereum,yann300/cpp-ethereum,yann300/cpp-ethereum,smartbitcoin/cpp-ethereum,LefterisJP/cpp-ethereum,gluk256/cpp-ethereum,expanse-project/cpp-expanse,karek314/cpp-ethereum,eco/cpp-ethereum,expanse-org/cpp-expanse,joeldo/cpp-ethereum,Sorceror32/.-git-clone-https-github.com-ethereum-cpp-ethereum,subtly/cpp-ethereum-micro,anthony-cros/cpp-ethereum,Sorceror32/go-get--u-github.com-tools-godep,PaulGrey30/go-get--u-github.com-tools-godep,chfast/webthree-umbrella,expanse-project/cpp-expanse,vaporry/cpp-ethereum,smartbitcoin/cpp-ethereum,expanse-project/cpp-expanse,gluk256/cpp-ethereum,vaporry/cpp-ethereum,d-das/cpp-ethereum,xeddmc/cpp-ethereum,joeldo/cpp-ethereum,expanse-org/cpp-expanse,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,subtly/cpp-ethereum-micro,johnpeter66/ethminer,Sorceror32/go-get--u-github.com-tools-godep,d-das/cpp-ethereum,vaporry/evmjit,yann300/cpp-ethereum,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,subtly/cpp-ethereum-micro,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,xeddmc/cpp-ethereum,PaulGrey30/go-get--u-github.com-tools-godep,Sorceror32/.-git-clone-https-github.com-ethereum-cpp-ethereum,LefterisJP/cpp-ethereum,karek314/cpp-ethereum,LefterisJP/cpp-ethereum,anthony-cros/cpp-ethereum,expanse-org/cpp-expanse,eco/cpp-ethereum,expanse-project/cpp-expanse,anthony-cros/cpp-ethereum,PaulGrey30/go-get--u-github.com-tools-godep,smartbitcoin/cpp-ethereum,arkpar/webthree-umbrella,LefterisJP/cpp-ethereum,yann300/cpp-ethereum,joeldo/cpp-ethereum,gluk256/cpp-ethereum,subtly/cpp-ethereum-micro,LefterisJP/webthree-umbrella,subtly/cpp-ethereum-micro,ethers/cpp-ethereum,yann300/cpp-ethereum,yann300/cpp-ethereum,expanse-org/cpp-expanse,anthony-cros/cpp-ethereum,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,d-das/cpp-ethereum
5bc24913bf500b2cb1ba547a12c67f7ba3064ecc
#include<stdio.h> #include<assert.h> int main () { int i,j,k; i = k = 0; j = 7; while (i < 10) { i++; j = 7; k = 5; } // assert(i == 10); // UNKNOWN! // Removed this assertion as it is specific to flat ints and fails as soon as intervals or octagons correctly determine this assert(k); // UNKNOWN! // k is currenlty 0 \sqcup 5, if we unfolded the loops it would be 5 assert(j==7); return 0; }
#include<stdio.h> #include<assert.h> int main () { int i,j,k; i = k = 0; j = 7; while (i < 10) { i++; j = 7; k = 5; } assert(i == 10); // UNKNOWN! assert(k); // UNKNOWN! // k is currenlty 0 \sqcup 5, if we unfolded the loops it would be 5 assert(j==7); return 0; }
--- +++ @@ -10,7 +10,8 @@ j = 7; k = 5; } - assert(i == 10); // UNKNOWN! + // assert(i == 10); // UNKNOWN! + // Removed this assertion as it is specific to flat ints and fails as soon as intervals or octagons correctly determine this assert(k); // UNKNOWN! // k is currenlty 0 \sqcup 5, if we unfolded the loops it would be 5 assert(j==7);
Remove assert specific to flat ints that will fail when using more poerful domain
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
9271608c9af71eec13691a5da6458c99791e833c
#include "QuadCopterConfig.h" #include "mavlink.h" #define MAV_MAX_LEN 263 struct waypoint_t mission_wp_list = {0}; int waypoint_cnt = 0; int cur_waypoint = 0; mavlink_message_t msg; uint8_t buf[MAV_MAX_LEN]; void push_waypoint_node(struct waypoint_t *waypoint) { } void free_waypoint_list(struct waypoint_t *waypoint) { } void mission_read_waypoint_list() { } void mission_write_waypoint_list() { } void mission_clear_waypoint() { mavlink_msg_mission_ack_pack(1, 200, &msg, 255, 0, 0); send_package(buf, &msg); } void mission_set_new_current_waypoint() { }
#include "QuadCopterConfig.h" #include "mavlink.h" #define MAV_MAX_LEN 263 struct waypoint_t mission_wp_list = {0}; int waypoint_cnt = 0; int cur_waypoint = 0; mavlink_message_t msg; uint8_t buf[MAV_MAX_LEN]; void mission_read_waypoint_list() { } void mission_write_waypoint_list() { } void mission_clear_waypoint() { mavlink_msg_mission_ack_pack(1, 200, &msg, 255, 0, 0); send_package(buf, &msg); } void mission_set_new_current_waypoint() { }
--- +++ @@ -9,6 +9,14 @@ mavlink_message_t msg; uint8_t buf[MAV_MAX_LEN]; + +void push_waypoint_node(struct waypoint_t *waypoint) +{ +} + +void free_waypoint_list(struct waypoint_t *waypoint) +{ +} void mission_read_waypoint_list() {
Create the waypoint structure operating function prototype
mit
ming6842/firmware,ming6842/firmware-new,ming6842/firmware-new,UrsusPilot/firmware,ming6842/firmware-new,UrsusPilot/firmware,fboris/firmware,fboris/firmware,UrsusPilot/firmware,ming6842/firmware,ming6842/firmware,fboris/firmware
4b9d0d59b5436e3fc6ffe3452147e226277a3edf
#ifndef __WORDCOUNTS_H__ #define __WORDCOUNTS_H__ #include <string> #include <unordered_map> #include <Rcpp.h> typedef std::unordered_map<std::string, int> hashmap; class WordCounts { private: hashmap map; public: WordCounts(); ~WordCounts(); void print(); Rcpp::DataFrame as_data_frame(); void add_word(std::string); }; #endif
#ifndef __WORDCOUNTS_H__ #define __WORDCOUNTS_H__ #include <string> #include <map> #include <Rcpp.h> typedef std::unordered_map<std::string, int> hashmap; class WordCounts { private: hashmap map; public: WordCounts(); ~WordCounts(); void print(); Rcpp::DataFrame as_data_frame(); void add_word(std::string); }; #endif
--- +++ @@ -2,7 +2,7 @@ #define __WORDCOUNTS_H__ #include <string> -#include <map> +#include <unordered_map> #include <Rcpp.h> typedef std::unordered_map<std::string, int> hashmap;
Replace include <map> with <unordered_map>
unlicense
zbwrnz/zwc
1c871b33812d0c7f22b0490593485f6d7d6f80d6
/** * Copyright (C) 2006-2016, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * This file is part of mbed TLS (https://tls.mbed.org) */ #if defined(DEVICE_TRNG) #define MBEDTLS_ENTROPY_HARDWARE_ALT #endif #if defined(DEVICE_RTC) #define MBEDTLS_HAVE_TIME_DATE #endif #if defined(MBEDTLS_CONFIG_HW_SUPPORT) #include "mbedtls_device.h" #endif
/** * Copyright (C) 2006-2016, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * This file is part of mbed TLS (https://tls.mbed.org) */ #if defined(DEVICE_TRNG) #define MBEDTLS_ENTROPY_HARDWARE_ALT #endif #if defined(MBEDTLS_CONFIG_HW_SUPPORT) #include "mbedtls_device.h" #endif
--- +++ @@ -21,6 +21,10 @@ #define MBEDTLS_ENTROPY_HARDWARE_ALT #endif +#if defined(DEVICE_RTC) +#define MBEDTLS_HAVE_TIME_DATE +#endif + #if defined(MBEDTLS_CONFIG_HW_SUPPORT) #include "mbedtls_device.h" #endif
Integrate mbed OS RTC with mbed TLS The integration is simply to define the macro MBEDTLS_HAVE_TIME_DATE in the features/mbedtls/platform/inc/platform_mbed.h. The default implementation of the mbedtls_time() function provided by mbed TLS is sufficient to work with mbed OS because both use POSIX functions.
apache-2.0
c1728p9/mbed-os,mbedmicro/mbed,andcor02/mbed-os,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,andcor02/mbed-os,kjbracey-arm/mbed,betzw/mbed-os,kjbracey-arm/mbed,kjbracey-arm/mbed,c1728p9/mbed-os,betzw/mbed-os,c1728p9/mbed-os,andcor02/mbed-os,andcor02/mbed-os,betzw/mbed-os,andcor02/mbed-os,c1728p9/mbed-os,betzw/mbed-os,andcor02/mbed-os,betzw/mbed-os,kjbracey-arm/mbed,betzw/mbed-os,c1728p9/mbed-os,c1728p9/mbed-os
5ced8e4fdfa8fd781c0a39b29597762cedcedec6
/* * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 * NOTE TO FreeBSD users. Install libexecinfo from * ports/devel/libexecinfo and add -lexecinfo to LDFLAGS * to add backtrace support. */ #include "e.h" #include <execinfo.h> /* a tricky little devil, requires e and it's libs to be built * with the -rdynamic flag to GCC for any sort of decent output. */ void e_sigseg_act(int x, siginfo_t *info, void *data){ void *array[255]; size_t size; write(2, "**** SEGMENTATION FAULT ****\n", 29); write(2, "**** Printing Backtrace... *****\n\n", 34); size = backtrace(array, 255); backtrace_symbols_fd(array, size, 2); exit(-11); }
/* * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 */ #include "e.h" #include <execinfo.h> /* a tricky little devil, requires e and it's libs to be built * with the -rdynamic flag to GCC for any sort of decent output. */ void e_sigseg_act(int x, siginfo_t *info, void *data){ void *array[255]; size_t size; write(2, "**** SEGMENTATION FAULT ****\n", 29); write(2, "**** Printing Backtrace... *****\n\n", 34); size = backtrace(array, 255); backtrace_symbols_fd(array, size, 2); exit(-11); }
--- +++ @@ -1,5 +1,8 @@ /* * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 + * NOTE TO FreeBSD users. Install libexecinfo from + * ports/devel/libexecinfo and add -lexecinfo to LDFLAGS + * to add backtrace support. */ #include "e.h" #include <execinfo.h>
Add note to help FreeBSD users. git-svn-id: 0f3f1c46c6da7ffd142db61e503a7ff63af3a195@13781 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
bsd-2-clause
jordemort/e17,jordemort/e17,jordemort/e17
d4c28b0d467d667632489fa8f14d597f85a90f05
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #import <UIKit/UIKit.h> #import "RCTBridgeModule.h" @interface RCTPushNotificationManager : NSObject <RCTBridgeModule> - (instancetype)initWithInitialNotification:(NSDictionary *)initialNotification NS_DESIGNATED_INITIALIZER; + (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings; + (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)notification; + (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation; @end
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #import <UIKit/UIKit.h> #import "../../ReactKit/Base/RCTBridgeModule.h" @interface RCTPushNotificationManager : NSObject <RCTBridgeModule> - (instancetype)initWithInitialNotification:(NSDictionary *)initialNotification NS_DESIGNATED_INITIALIZER; + (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings; + (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)notification; + (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation; @end
--- +++ @@ -9,7 +9,7 @@ #import <UIKit/UIKit.h> -#import "../../ReactKit/Base/RCTBridgeModule.h" +#import "RCTBridgeModule.h" @interface RCTPushNotificationManager : NSObject <RCTBridgeModule>
Fix build - remove relative import path
bsd-3-clause
skevy/react-native,bsansouci/react-native,steben/react-native,udnisap/react-native,garrows/react-native,Lucifer-Kim/react-native,lzbSun/react-native,dabit3/react-native,Andreyco/react-native,darrylblake/react-native,DanielMSchmidt/react-native,christer155/react-native,zhangxq5012/react-native,janicduplessis/react-native,christopherdro/react-native,Livyli/react-native,alinz/react-native,yjyi/react-native,clozr/react-native,Shopify/react-native,cosmith/react-native,Bhullnatik/react-native,alpz5566/react-native,pickhardt/react-native,esauter5/react-native,leeyeh/react-native,chacbumbum/react-native,hammerandchisel/react-native,leopardpan/react-native,mqli/react-native,rodneyss/react-native,miracle2k/react-native,browniefed/react-native,htc2u/react-native,hzgnpu/react-native,peterp/react-native,Applied-Duality/react-native,jaggs6/react-native,boopathi/react-native,yelled3/react-native,chnfeeeeeef/react-native,jeffchienzabinet/react-native,chetstone/react-native,Inner89/react-native,Maxwell2022/react-native,wangjiangwen/react-native,htc2u/react-native,Maxwell2022/react-native,kassens/react-native,garrows/react-native,cosmith/react-native,nktpro/react-native,negativetwelve/react-native,nathanajah/react-native,lzbSun/react-native,yusefnapora/react-native,bright-sparks/react-native,F2EVarMan/react-native,jordanbyron/react-native,bestwpw/react-native,roth1002/react-native,Flickster42490/react-native,popovsh6/react-native,cmhsu/react-native,fw1121/react-native,appersonlabs/react-native,nickhudkins/react-native,satya164/react-native,kotdark/react-native,lee-my/react-native,Ehesp/react-native,devknoll/react-native,luqin/react-native,machard/react-native,tarkus/react-native-appletv,gegaosong/react-native,rebeccahughes/react-native,gabrielbellamy/react-native,chapinkapa/react-native,philonpang/react-native,huangsongyan/react-native,Bhullnatik/react-native,ldehai/react-native,sixtomay/react-native,stonegithubs/react-native,pallyoung/react-native,liufeigit/react-native,lprhodes/react-native,timfpark/react-native,facebook/react-native,jaredly/react-native,dralletje/react-native,lightsofapollo/react-native,ptmt/react-native,threepointone/react-native-1,harrykiselev/react-native,taydakov/react-native,FionaWong/react-native,shinate/react-native,jackeychens/react-native,kfiroo/react-native,naoufal/react-native,MetSystem/react-native,lelandrichardson/react-native,gilesvangruisen/react-native,sudhirj/react-native,corbt/react-native,zuolangguo/react-native,jasonals/react-native,monyxie/react-native,urvashi01/react-native,bowlofstew/react-native,code0100fun/react-native,devknoll/react-native,wangcan2014/react-native,alvarojoao/react-native,wangjiangwen/react-native,bestwpw/react-native,qq644531343/react-native,eduardinni/react-native,alin23/react-native,bright-sparks/react-native,thstarshine/react-native,noif/react-native,thotegowda/react-native,tadeuzagallo/react-native,ndejesus1227/react-native,lightsofapollo/react-native,Bronts/react-native,fish24k/react-native,quyixia/react-native,hydraulic/react-native,mbrock/react-native,sahrens/react-native,quuack/react-native,RGKzhanglei/react-native,wenpkpk/react-native,foghina/react-native,spyrx7/react-native,hoangpham95/react-native,garydonovan/react-native,hesling/react-native,Rowandjj/react-native,cosmith/react-native,judastree/react-native,Poplava/react-native,Iragne/react-native,ludaye123/react-native,imjerrybao/react-native,appersonlabs/react-native,marlonandrade/react-native,averted/react-native,geoffreyfloyd/react-native,lee-my/react-native,TChengZ/react-native,1988fei/react-native,CntChen/react-native,gegaosong/react-native,pletcher/react-native,MetSystem/react-native,dimoge/react-native,leopardpan/react-native,xxccll/react-native,JasonZ321/react-native,codejet/react-native,stonegithubs/react-native,ptmt/react-native-macos,narlian/react-native,NunoEdgarGub1/react-native,orenklein/react-native,threepointone/react-native-1,pjcabrera/react-native,lendup/react-native,DannyvanderJagt/react-native,NishanthShankar/react-native,hwsyy/react-native,brentvatne/react-native,yamill/react-native,salanki/react-native,chrisbutcher/react-native,pvinis/react-native-desktop,ludaye123/react-native,clozr/react-native,alpz5566/react-native,WilliamRen/react-native,lendup/react-native,kushal/react-native,gauribhoite/react-native,jasonnoahchoi/react-native,YComputer/react-native,Maxwell2022/react-native,Furzikov/react-native,mjetek/react-native,liuhong1happy/react-native,glovebx/react-native,rkumar3147/react-native,clozr/react-native,jaggs6/react-native,janicduplessis/react-native,frantic/react-native,neeraj-singh/react-native,timfpark/react-native,krock01/react-native,zhangwei001/react-native,DanielMSchmidt/react-native,ludaye123/react-native,eduvon0220/react-native,zuolangguo/react-native,vincentqiu/react-native,leeyeh/react-native,ptomasroos/react-native,gitim/react-native,gauribhoite/react-native,elliottsj/react-native,eliagrady/react-native,mcrooks88/react-native,insionng/react-native,jmhdez/react-native,dalinaum/react-native,shinate/react-native,ronak301/react-native,Guardiannw/react-native,srounce/react-native,chengky/react-native,wenpkpk/react-native,JulienThibeaut/react-native,htc2u/react-native,Maxwell2022/react-native,lprhodes/react-native,ajwhite/react-native,bistacos/react-native,naoufal/react-native,common2015/react-native,hike2008/react-native,Esdeath/react-native,srounce/react-native,hassanabidpk/react-native,CodeLinkIO/react-native,Andreyco/react-native,jibonpab/react-native,sheep902/react-native,jabinwang/react-native,zvona/react-native,ehd/react-native,F2EVarMan/react-native,rantianhua/react-native,hanxiaofei/react-native,honger05/react-native,chengky/react-native,threepointone/react-native-1,rodneyss/react-native,exponent/react-native,beni55/react-native,aaron-goshine/react-native,bradens/react-native,sdiaz/react-native,sixtomay/react-native,dikaiosune/react-native,chsj1/react-native,yangchengwork/react-native,waynett/react-native,htc2u/react-native,yushiwo/react-native,Inner89/react-native,skevy/react-native,wjb12/react-native,Swaagie/react-native,Bhullnatik/react-native,vincentqiu/react-native,tadeuzagallo/react-native,makadaw/react-native,pengleelove/react-native,simple88/react-native,Shopify/react-native,lokilandon/react-native,ehd/react-native,ChristianHersevoort/react-native,jordanbyron/react-native,Reparadocs/react-native,pj4533/react-native,lprhodes/react-native,zyvas/react-native,krock01/react-native,srounce/react-native,Emilios1995/react-native,jbaumbach/react-native,beni55/react-native,aljs/react-native,dralletje/react-native,liangmingjie/react-native,doochik/react-native,shlomiatar/react-native,rantianhua/react-native,clozr/react-native,rickbeerendonk/react-native,jackeychens/react-native,cdlewis/react-native,charmingzuo/react-native,udnisap/react-native,peterp/react-native,yimouleng/react-native,luqin/react-native,appersonlabs/react-native,gabrielbellamy/react-native,mrngoitall/react-native,brentvatne/react-native,cazacugmihai/react-native,andrewljohnson/react-native,huangsongyan/react-native,sonnylazuardi/react-native,tszajna0/react-native,kamronbatman/react-native,spicyj/react-native,mironiasty/react-native,urvashi01/react-native,Emilios1995/react-native,forcedotcom/react-native,stan229/react-native,vlrchtlt/react-native,hammerandchisel/react-native,nbcnews/react-native,nickhargreaves/react-native,CodeLinkIO/react-native,hayeah/react-native,sudhirj/react-native,nathanajah/react-native,BossKing/react-native,xiangjuntang/react-native,skatpgusskat/react-native,zdsiyan/react-native,timfpark/react-native,shinate/react-native,nevir/react-native,bogdantmm92/react-native,Heart2009/react-native,tgf229/react-native,chetstone/react-native,jacobbubu/react-native,woshili1/react-native,mihaigiurgeanu/react-native,thstarshine/react-native,dut3062796s/react-native,YinshawnRao/react-native,lwansbrough/react-native,rickbeerendonk/react-native,jmhdez/react-native,huip/react-native,xxccll/react-native,Purii/react-native,xxccll/react-native,pallyoung/react-native,milieu/react-native,satya164/react-native,brentvatne/react-native,adrie4mac/react-native,Reparadocs/react-native,johnv315/react-native,PhilippKrone/react-native,gs-akhan/react-native,evilemon/react-native,skatpgusskat/react-native,iOSTestApps/react-native,bestwpw/react-native,quyixia/react-native,JulienThibeaut/react-native,Furzikov/react-native,pjcabrera/react-native,doochik/react-native,sheep902/react-native,machard/react-native,kfiroo/react-native,iodine/react-native,bowlofstew/react-native,code0100fun/react-native,hammerandchisel/react-native,ldehai/react-native,jadbox/react-native,dfala/react-native,rainkong/react-native,lucyywang/react-native,mrspeaker/react-native,Flickster42490/react-native,bestwpw/react-native,liduanw/react-native,xiayz/react-native,foghina/react-native,strwind/react-native,skatpgusskat/react-native,imjerrybao/react-native,makadaw/react-native,zhangxq5012/react-native,quyixia/react-native,nsimmons/react-native,philikon/react-native,hesling/react-native,bright-sparks/react-native,MattFoley/react-native,ouyangwenfeng/react-native,gitim/react-native,jmstout/react-native,hanxiaofei/react-native,hassanabidpk/react-native,almost/react-native,JoeStanton/react-native,billhello/react-native,lanceharper/react-native,Flickster42490/react-native,nathanajah/react-native,futbalguy/react-native,mchinyakov/react-native,tmwoodson/react-native,qingsong-xu/react-native,rwwarren/react-native,HealthyWealthy/react-native,vagrantinoz/react-native,judastree/react-native,MattFoley/react-native,wesley1001/react-native,imDangerous/react-native,negativetwelve/react-native,bradens/react-native,imDangerous/react-native,chentsulin/react-native,rodneyss/react-native,dubert/react-native,yjyi/react-native,gre/react-native,mrngoitall/react-native,josebalius/react-native,lstNull/react-native,sospartan/react-native,pandiaraj44/react-native,Bronts/react-native,gitim/react-native,averted/react-native,tadeuzagallo/react-native,Serfenia/react-native,chirag04/react-native,evilemon/react-native,kesha-antonov/react-native,Bronts/react-native,cxfeng1/react-native,zuolangguo/react-native,cmhsu/react-native,spyrx7/react-native,jacobbubu/react-native,rebeccahughes/react-native,lwansbrough/react-native,shlomiatar/react-native,shrimpy/react-native,yjyi/react-native,yangchengwork/react-native,genome21/react-native,hzgnpu/react-native,iOSTestApps/react-native,krock01/react-native,liuhong1happy/react-native,browniefed/react-native,gilesvangruisen/react-native,wangjiangwen/react-native,mosch/react-native,j27cai/react-native,nevir/react-native,alpz5566/react-native,spyrx7/react-native,orenklein/react-native,leopardpan/react-native,DanielMSchmidt/react-native,zenlambda/react-native,ronak301/react-native,mchinyakov/react-native,strwind/react-native,donyu/react-native,pcottle/react-native,enaqx/react-native,urvashi01/react-native,krock01/react-native,rollokb/react-native,hesling/react-native,shrutic/react-native,chnfeeeeeef/react-native,mchinyakov/react-native,bistacos/react-native,almost/react-native,steben/react-native,supercocoa/react-native,Guardiannw/react-native,ajwhite/react-native,ankitsinghania94/react-native,garydonovan/react-native,devknoll/react-native,YComputer/react-native,hayeah/react-native,bradbumbalough/react-native,michaelchucoder/react-native,jonesgithub/react-native,common2015/react-native,satya164/react-native,harrykiselev/react-native,arbesfeld/react-native,genome21/react-native,yjh0502/react-native,tgriesser/react-native,donyu/react-native,yamill/react-native,Furzikov/react-native,csatf/react-native,gilesvangruisen/react-native,ptmt/react-native-macos,noif/react-native,puf/react-native,lee-my/react-native,richardgill/react-native,a2/react-native,bodefuwa/react-native,ptomasroos/react-native,adamterlson/react-native,happypancake/react-native,pglotov/react-native,Poplava/react-native,Purii/react-native,corbt/react-native,YotrolZ/react-native,irisli/react-native,zhangxq5012/react-native,huangsongyan/react-native,wangcan2014/react-native,foghina/react-native,abdelouahabb/react-native,wlrhnh-David/react-native,jekey/react-native,adamkrell/react-native,CodeLinkIO/react-native,sunblaze/react-native,PlexChat/react-native,puf/react-native,shrutic123/react-native,pitatensai/react-native,KJlmfe/react-native,apprennet/react-native,Furzikov/react-native,yutail/react-native,kotdark/react-native,lendup/react-native,browniefed/react-native,NunoEdgarGub1/react-native,rodneyss/react-native,shrutic/react-native,yamill/react-native,rushidesai/react-native,steveleec/react-native,makadaw/react-native,alinz/react-native,clozr/react-native,enaqx/react-native,popovsh6/react-native,sospartan/react-native,sonnylazuardi/react-native,lloydho/react-native,eduvon0220/react-native,liuzechen/react-native,DerayGa/react-native,jevakallio/react-native,philonpang/react-native,doochik/react-native,dylanchann/react-native,hesling/react-native,jekey/react-native,bouk/react-native,marlonandrade/react-native,cdlewis/react-native,vjeux/react-native,naoufal/react-native,zuolangguo/react-native,Lohit9/react-native,javache/react-native,yangshangde/react-native,yjyi/react-native,ptmt/react-native-macos,xxccll/react-native,shlomiatar/react-native,mway08/react-native,barakcoh/react-native,code0100fun/react-native,patoroco/react-native,hydraulic/react-native,johnv315/react-native,Emilios1995/react-native,YueRuo/react-native,abdelouahabb/react-native,ludaye123/react-native,Applied-Duality/react-native,rantianhua/react-native,miracle2k/react-native,Intellicode/react-native,philikon/react-native,androidgilbert/react-native,iodine/react-native,sjchakrav/react-native,exponent/react-native,Flickster42490/react-native,narlian/react-native,Swaagie/react-native,mjetek/react-native,sdiaz/react-native,kamronbatman/react-native,pj4533/react-native,tsjing/react-native,monyxie/react-native,jmhdez/react-native,facebook/react-native,adrie4mac/react-native,luqin/react-native,jackalchen/react-native,lstNull/react-native,elliottsj/react-native,judastree/react-native,cdlewis/react-native,doochik/react-native,leegilon/react-native,zdsiyan/react-native,DannyvanderJagt/react-native,urvashi01/react-native,formatlos/react-native,enaqx/react-native,exponent/react-native,roy0914/react-native,BossKing/react-native,abdelouahabb/react-native,hassanabidpk/react-native,jaredly/react-native,fw1121/react-native,jadbox/react-native,dralletje/react-native,mihaigiurgeanu/react-native,makadaw/react-native,dut3062796s/react-native,arbesfeld/react-native,ChiMarvine/react-native,trueblue2704/react-native,ProjectSeptemberInc/react-native,satya164/react-native,clooth/react-native,booxood/react-native,zuolangguo/react-native,cez213/react-native,facebook/react-native,Suninus/react-native,guanghuili/react-native,HSFGitHub/react-native,chenbk85/react-native,carcer/react-native,nickhudkins/react-native,Bhullnatik/react-native,cazacugmihai/react-native,chetstone/react-native,aziz-boudi4/react-native,Heart2009/react-native,philikon/react-native,Loke155/react-native,dylanchann/react-native,farazs/react-native,xiayz/react-native,Furzikov/react-native,dralletje/react-native,lstNull/react-native,mrspeaker/react-native,javache/react-native,kujohn/react-native,kassens/react-native,beni55/react-native,philonpang/react-native,eduvon0220/react-native,RGKzhanglei/react-native,nickhargreaves/react-native,bodefuwa/react-native,mukesh-kumar1905/react-native,udnisap/react-native,lee-my/react-native,lmorchard/react-native,farazs/react-native,xiayz/react-native,appersonlabs/react-native,ptmt/react-native-macos,hengcj/react-native,leegilon/react-native,kamronbatman/react-native,kushal/react-native,dimoge/react-native,simple88/react-native,liufeigit/react-native,jeffchienzabinet/react-native,vlrchtlt/react-native,Intellicode/react-native,darkrishabh/react-native,pjcabrera/react-native,Serfenia/react-native,HSFGitHub/react-native,popovsh6/react-native,pcottle/react-native,rxb/react-native,makadaw/react-native,misakuo/react-native,j27cai/react-native,dylanchann/react-native,jhen0409/react-native,wangyzyoga/react-native,Iragne/react-native,MetSystem/react-native,MonirAbuHilal/react-native,tahnok/react-native,affinityis/react-native,HealthyWealthy/react-native,lprhodes/react-native,hike2008/react-native,codejet/react-native,lstNull/react-native,fish24k/react-native,dvcrn/react-native,ramoslin02/react-native,christer155/react-native,thstarshine/react-native,emodeqidao/react-native,Swaagie/react-native,liufeigit/react-native,pjcabrera/react-native,fengshao0907/react-native,gitim/react-native,noif/react-native,common2015/react-native,jasonals/react-native,exponentjs/react-native,xiayz/react-native,jasonals/react-native,levic92/react-native,oren/react-native,huangsongyan/react-native,xinthink/react-native,common2015/react-native,udnisap/react-native,salanki/react-native,Esdeath/react-native,yangshangde/react-native,F2EVarMan/react-native,misakuo/react-native,mukesh-kumar1905/react-native,Inner89/react-native,MattFoley/react-native,gs-akhan/react-native,wjb12/react-native,farazs/react-native,21451061/react-native,jeanblanchard/react-native,Jonekee/react-native,gre/react-native,sonnylazuardi/react-native,ModusCreateOrg/react-native,christer155/react-native,MattFoley/react-native,abdelouahabb/react-native,alinz/react-native,Esdeath/react-native,onesfreedom/react-native,mihaigiurgeanu/react-native,NishanthShankar/react-native,BossKing/react-native,kassens/react-native,udnisap/react-native,heyjim89/react-native,jbaumbach/react-native,wlrhnh-David/react-native,darrylblake/react-native,supercocoa/react-native,common2015/react-native,jasonnoahchoi/react-native,ChristopherSalam/react-native,jeffchienzabinet/react-native,insionng/react-native,johnv315/react-native,codejet/react-native,hassanabidpk/react-native,cpunion/react-native,Srikanth4/react-native,ndejesus1227/react-native,Ehesp/react-native,mironiasty/react-native,apprennet/react-native,jackeychens/react-native,bistacos/react-native,leegilon/react-native,BossKing/react-native,mtford90/react-native,yzarubin/react-native,Livyli/react-native,judastree/react-native,exponent/react-native,christopherdro/react-native,sdiaz/react-native,fish24k/react-native,gitim/react-native,lucyywang/react-native,sospartan/react-native,tszajna0/react-native,kfiroo/react-native,lelandrichardson/react-native,machard/react-native,affinityis/react-native,chenbk85/react-native,rkumar3147/react-native,exponentjs/react-native,garydonovan/react-native,xinthink/react-native,urvashi01/react-native,wenpkpk/react-native,kassens/react-native,hengcj/react-native,wjb12/react-native,ProjectSeptemberInc/react-native,levic92/react-native,gilesvangruisen/react-native,affinityis/react-native,ivanph/react-native,roy0914/react-native,lelandrichardson/react-native,rkumar3147/react-native,chsj1/react-native,liangmingjie/react-native,ankitsinghania94/react-native,folist/react-native,thotegowda/react-native,mchinyakov/react-native,rxb/react-native,wlrhnh-David/react-native,darrylblake/react-native,sitexa/react-native,Poplava/react-native,almost/react-native,nanpian/react-native,dut3062796s/react-native,alin23/react-native,soxunyi/react-native,programming086/react-native,lucyywang/react-native,Intellicode/react-native,dikaiosune/react-native,yutail/react-native,beni55/react-native,facebook/react-native,bright-sparks/react-native,emodeqidao/react-native,lokilandon/react-native,madusankapremaratne/react-native,exponentjs/react-native,aljs/react-native,shadow000902/react-native,fish24k/react-native,kujohn/react-native,taydakov/react-native,mrspeaker/react-native,stan229/react-native,Loke155/react-native,billhello/react-native,mtford90/react-native,imjerrybao/react-native,dikaiosune/react-native,naoufal/react-native,bodefuwa/react-native,roth1002/react-native,javache/react-native,vincentqiu/react-native,tadeuzagallo/react-native,kamronbatman/react-native,DerayGa/react-native,sunblaze/react-native,kamronbatman/react-native,fish24k/react-native,Loke155/react-native,garrows/react-native,steben/react-native,jackalchen/react-native,mrngoitall/react-native,tgriesser/react-native,MonirAbuHilal/react-native,gabrielbellamy/react-native,edward/react-native,darkrishabh/react-native,nickhargreaves/react-native,roth1002/react-native,stan229/react-native,eddiemonge/react-native,pj4533/react-native,udnisap/react-native,Rowandjj/react-native,soulcm/react-native,clooth/react-native,elliottsj/react-native,yangchengwork/react-native,NZAOM/react-native,Maxwell2022/react-native,cosmith/react-native,sarvex/react-native,bouk/react-native,liuzechen/react-native,csatf/react-native,shrimpy/react-native,adamterlson/react-native,gabrielbellamy/react-native,rodneyss/react-native,eduardinni/react-native,ordinarybill/react-native,Applied-Duality/react-native,fengshao0907/react-native,Bhullnatik/react-native,cxfeng1/react-native,cazacugmihai/react-native,lgengsy/react-native,InterfaceInc/react-native,codejet/react-native,glovebx/react-native,cosmith/react-native,nanpian/react-native,supercocoa/react-native,chiefr/react-native,evansolomon/react-native,xiangjuntang/react-native,mihaigiurgeanu/react-native,catalinmiron/react-native,brentvatne/react-native,xiangjuntang/react-native,eliagrady/react-native,nanpian/react-native,shrimpy/react-native,hoangpham95/react-native,pallyoung/react-native,glovebx/react-native,taydakov/react-native,magnus-bergman/react-native,shadow000902/react-native,kesha-antonov/react-native,hydraulic/react-native,spyrx7/react-native,ankitsinghania94/react-native,aaron-goshine/react-native,lucyywang/react-native,lucyywang/react-native,spyrx7/react-native,corbt/react-native,skevy/react-native,formatlos/react-native,adamjmcgrath/react-native,ipmobiletech/react-native,bsansouci/react-native,pcottle/react-native,dimoge/react-native,pjcabrera/react-native,bogdantmm92/react-native,rickbeerendonk/react-native,udnisap/react-native,zenlambda/react-native,sunblaze/react-native,mironiasty/react-native,neeraj-singh/react-native,sarvex/react-native,chapinkapa/react-native,BretJohnson/react-native,ordinarybill/react-native,lmorchard/react-native,Andreyco/react-native,dvcrn/react-native,alpz5566/react-native,yangshangde/react-native,gre/react-native,hike2008/react-native,ptomasroos/react-native,rkumar3147/react-native,exponentjs/rex,mqli/react-native,mjetek/react-native,jhen0409/react-native,yangshangde/react-native,DannyvanderJagt/react-native,kushal/react-native,charlesvinette/react-native,zenlambda/react-native,liuzechen/react-native,wdxgtsh/react-native,Swaagie/react-native,myntra/react-native,jadbox/react-native,exponent/react-native,sjchakrav/react-native,corbt/react-native,rwwarren/react-native,barakcoh/react-native,common2015/react-native,javache/react-native,programming086/react-native,lee-my/react-native,MonirAbuHilal/react-native,popovsh6/react-native,catalinmiron/react-native,jadbox/react-native,sekouperry/react-native,wustxing/react-native,YComputer/react-native,HealthyWealthy/react-native,mtford90/react-native,yjh0502/react-native,mchinyakov/react-native,appersonlabs/react-native,strwind/react-native,Heart2009/react-native,mrngoitall/react-native,abdelouahabb/react-native,jhen0409/react-native,MattFoley/react-native,andrewljohnson/react-native,vincentqiu/react-native,InterfaceInc/react-native,aaron-goshine/react-native,bowlofstew/react-native,Ehesp/react-native,kassens/react-native,iOSTestApps/react-native,rollokb/react-native,quuack/react-native,tsdl2013/react-native,Lohit9/react-native,appersonlabs/react-native,21451061/react-native,programming086/react-native,BossKing/react-native,dylanchann/react-native,jackeychens/react-native,negativetwelve/react-native,tmwoodson/react-native,Swaagie/react-native,InterfaceInc/react-native,pgavazzi/react-unity,yangchengwork/react-native,lgengsy/react-native,MetSystem/react-native,Jericho25/react-native,johnv315/react-native,soxunyi/react-native,darkrishabh/react-native,bradbumbalough/react-native,josebalius/react-native,carcer/react-native,Hkmu/react-native,nsimmons/react-native,qq644531343/react-native,ouyangwenfeng/react-native,Inner89/react-native,rwwarren/react-native,zvona/react-native,formatlos/react-native,jeromjoy/react-native,sekouperry/react-native,nsimmons/react-native,magnus-bergman/react-native,jabinwang/react-native,YComputer/react-native,manhvvhtth/react-native,cazacugmihai/react-native,nathanajah/react-native,bistacos/react-native,nevir/react-native,DannyvanderJagt/react-native,lanceharper/react-native,carcer/react-native,fw1121/react-native,edward/react-native,kotdark/react-native,shrimpy/react-native,dikaiosune/react-native,luqin/react-native,jekey/react-native,lzbSun/react-native,sheep902/react-native,hoastoolshop/react-native,jmhdez/react-native,tadeuzagallo/react-native,narlian/react-native,YComputer/react-native,corbt/react-native,MattFoley/react-native,hzgnpu/react-native,wangjiangwen/react-native,tarkus/react-native-appletv,ProjectSeptemberInc/react-native,androidgilbert/react-native,pickhardt/react-native,liufeigit/react-native,pglotov/react-native,huip/react-native,pandiaraj44/react-native,foghina/react-native,bsansouci/react-native,Reparadocs/react-native,kfiroo/react-native,sitexa/react-native,csatf/react-native,nickhargreaves/react-native,Andreyco/react-native,callstack-io/react-native,prathamesh-sonpatki/react-native,steben/react-native,IveWong/react-native,martinbigio/react-native,jhen0409/react-native,CntChen/react-native,gpbl/react-native,jekey/react-native,genome21/react-native,NZAOM/react-native,pengleelove/react-native,noif/react-native,adamkrell/react-native,glovebx/react-native,doochik/react-native,wdxgtsh/react-native,satya164/react-native,clooth/react-native,BretJohnson/react-native,nevir/react-native,ide/react-native,guanghuili/react-native,ChristopherSalam/react-native,jekey/react-native,CntChen/react-native,Reparadocs/react-native,ChristopherSalam/react-native,ordinarybill/react-native,edward/react-native,bimawa/react-native,eduvon0220/react-native,exponentjs/react-native,aifeld/react-native,michaelchucoder/react-native,naoufal/react-native,mcanthony/react-native,kassens/react-native,gabrielbellamy/react-native,ericvera/react-native,exponentjs/rex,Andreyco/react-native,patoroco/react-native,arbesfeld/react-native,wdxgtsh/react-native,unknownexception/react-native,Zagorakiss/react-native,janicduplessis/react-native,farazs/react-native,liduanw/react-native,Ehesp/react-native,gs-akhan/react-native,qingfeng/react-native,woshili1/react-native,peterp/react-native,cdlewis/react-native,madusankapremaratne/react-native,pcottle/react-native,clooth/react-native,shlomiatar/react-native,adamjmcgrath/react-native,alvarojoao/react-native,MetSystem/react-native,chiefr/react-native,popovsh6/react-native,harrykiselev/react-native,thstarshine/react-native,pallyoung/react-native,wangcan2014/react-native,onesfreedom/react-native,machard/react-native,bouk/react-native,sixtomay/react-native,chnfeeeeeef/react-native,dalinaum/react-native,jabinwang/react-native,onesfreedom/react-native,garrows/react-native,bradens/react-native,Lucifer-Kim/react-native,CodeLinkIO/react-native,shrutic/react-native,Serfenia/react-native,ChiMarvine/react-native,lmorchard/react-native,Rowandjj/react-native,pengleelove/react-native,pj4533/react-native,Srikanth4/react-native,eddiemonge/react-native,chetstone/react-native,MonirAbuHilal/react-native,PhilippKrone/react-native,shlomiatar/react-native,andrewljohnson/react-native,Intellicode/react-native,callstack-io/react-native,roy0914/react-native,ankitsinghania94/react-native,fish24k/react-native,madusankapremaratne/react-native,lprhodes/react-native,chnfeeeeeef/react-native,wangyzyoga/react-native,honger05/react-native,ktoh/react-native,vlrchtlt/react-native,Emilios1995/react-native,forcedotcom/react-native,csatf/react-native,spicyj/react-native,bradbumbalough/react-native,garrows/react-native,adrie4mac/react-native,chetstone/react-native,Tredsite/react-native,magnus-bergman/react-native,tgoldenberg/react-native,wustxing/react-native,rushidesai/react-native,CodeLinkIO/react-native,goodheart/react-native,jonesgithub/react-native,hanxiaofei/react-native,liduanw/react-native,jevakallio/react-native,leegilon/react-native,mcanthony/react-native,adamjmcgrath/react-native,callstack-io/react-native,catalinmiron/react-native,dabit3/react-native,zyvas/react-native,zhangxq5012/react-native,bouk/react-native,jackalchen/react-native,DenisIzmaylov/react-native,chiefr/react-native,wdxgtsh/react-native,kushal/react-native,mtford90/react-native,pgavazzi/react-unity,ldehai/react-native,ortutay/react-native,geoffreyfloyd/react-native,ptmt/react-native,averted/react-native,Jonekee/react-native,MattFoley/react-native,Applied-Duality/react-native,browniefed/react-native,chentsulin/react-native,gitim/react-native,yjyi/react-native,ptomasroos/react-native,eliagrady/react-native,Emilios1995/react-native,dizlexik/react-native,gilesvangruisen/react-native,rebeccahughes/react-native,jevakallio/react-native,PlexChat/react-native,sahat/react-native,wangziqiang/react-native,CntChen/react-native,Guardiannw/react-native,tsdl2013/react-native,huip/react-native,sarvex/react-native,mozillo/react-native,kentaromiura/react-native,slongwang/react-native,lokilandon/react-native,oren/react-native,bistacos/react-native,CodeLinkIO/react-native,cpunion/react-native,jmhdez/react-native,pglotov/react-native,chnfeeeeeef/react-native,pletcher/react-native,liufeigit/react-native,NishanthShankar/react-native,jasonals/react-native,Heart2009/react-native,exponentjs/rex,charlesvinette/react-native,noif/react-native,manhvvhtth/react-native,tgf229/react-native,liduanw/react-native,ModusCreateOrg/react-native,Shopify/react-native,yimouleng/react-native,Andreyco/react-native,programming086/react-native,edward/react-native,madusankapremaratne/react-native,kotdark/react-native,ultralame/react-native,jaggs6/react-native,unknownexception/react-native,DannyvanderJagt/react-native,fengshao0907/react-native,orenklein/react-native,guanghuili/react-native,Heart2009/react-native,lstNull/react-native,lgengsy/react-native,vagrantinoz/react-native,eduvon0220/react-native,sospartan/react-native,ChiMarvine/react-native,averted/react-native,chapinkapa/react-native,skatpgusskat/react-native,tszajna0/react-native,chsj1/react-native,cez213/react-native,Jonekee/react-native,puf/react-native,dizlexik/react-native,jaggs6/react-native,roy0914/react-native,chirag04/react-native,marlonandrade/react-native,kesha-antonov/react-native,jordanbyron/react-native,rodneyss/react-native,ModusCreateOrg/react-native,chacbumbum/react-native,pandiaraj44/react-native,xinthink/react-native,woshili1/react-native,Guardiannw/react-native,kassens/react-native,callstack-io/react-native,quuack/react-native,tarkus/react-native-appletv,hanxiaofei/react-native,ordinarybill/react-native,enaqx/react-native,PlexChat/react-native,booxood/react-native,daveenguyen/react-native,emodeqidao/react-native,adrie4mac/react-native,dvcrn/react-native,spyrx7/react-native,Serfenia/react-native,southasia/react-native,jackalchen/react-native,srounce/react-native,shrutic123/react-native,ajwhite/react-native,jackalchen/react-native,hengcj/react-native,ChristianHersevoort/react-native,jeffchienzabinet/react-native,folist/react-native,DenisIzmaylov/react-native,pglotov/react-native,sahat/react-native,dabit3/react-native,ouyangwenfeng/react-native,thotegowda/react-native,kesha-antonov/react-native,charlesvinette/react-native,aroth/react-native,wangcan2014/react-native,darkrishabh/react-native,HSFGitHub/react-native,jmstout/react-native,christopherdro/react-native,sahat/react-native,xiayz/react-native,josebalius/react-native,jeanblanchard/react-native,wangziqiang/react-native,Tredsite/react-native,sheep902/react-native,glovebx/react-native,nsimmons/react-native,folist/react-native,mrspeaker/react-native,Ehesp/react-native,ChiMarvine/react-native,spicyj/react-native,exponent/react-native,liuzechen/react-native,farazs/react-native,bowlofstew/react-native,wlrhnh-David/react-native,woshili1/react-native,zhangwei001/react-native,imDangerous/react-native,cazacugmihai/react-native,imWildCat/react-native,steveleec/react-native,Emilios1995/react-native,tsjing/react-native,pandiaraj44/react-native,southasia/react-native,Intellicode/react-native,lokilandon/react-native,bogdantmm92/react-native,vjeux/react-native,mchinyakov/react-native,xinthink/react-native,richardgill/react-native,JackLeeMing/react-native,lmorchard/react-native,iOSTestApps/react-native,sdiaz/react-native,yangchengwork/react-native,hoangpham95/react-native,southasia/react-native,sospartan/react-native,xinthink/react-native,arbesfeld/react-native,sahat/react-native,kujohn/react-native,hengcj/react-native,Livyli/react-native,myntra/react-native,ludaye123/react-native,mozillo/react-native,ivanph/react-native,kesha-antonov/react-native,mozillo/react-native,jeanblanchard/react-native,yangchengwork/react-native,charmingzuo/react-native,ehd/react-native,affinityis/react-native,taydakov/react-native,ronak301/react-native,JulienThibeaut/react-native,Loke155/react-native,gs-akhan/react-native,magnus-bergman/react-native,DerayGa/react-native,facebook/react-native,kundanjadhav/react-native,F2EVarMan/react-native,ultralame/react-native,orenklein/react-native,MonirAbuHilal/react-native,johnv315/react-native,zuolangguo/react-native,jekey/react-native,lelandrichardson/react-native,donyu/react-native,carcer/react-native,alantrrs/react-native,levic92/react-native,ordinarybill/react-native,tadeuzagallo/react-native,ptmt/react-native-macos,InterfaceInc/react-native,almost/react-native,zhangxq5012/react-native,aaron-goshine/react-native,ndejesus1227/react-native,huip/react-native,catalinmiron/react-native,imWildCat/react-native,skevy/react-native,rainkong/react-native,dimoge/react-native,wangyzyoga/react-native,JackLeeMing/react-native,pickhardt/react-native,liuhong1happy/react-native,kotdark/react-native,nktpro/react-native,Wingie/react-native,Furzikov/react-native,rickbeerendonk/react-native,liduanw/react-native,wlrhnh-David/react-native,compulim/react-native,lendup/react-native,csatf/react-native,aroth/react-native,chsj1/react-native,nevir/react-native,dalinaum/react-native,ktoh/react-native,callstack-io/react-native,rainkong/react-native,WilliamRen/react-native,sunblaze/react-native,tszajna0/react-native,narlian/react-native,lloydho/react-native,charmingzuo/react-native,jasonnoahchoi/react-native,ouyangwenfeng/react-native,hesling/react-native,patoroco/react-native,sekouperry/react-native,misakuo/react-native,jbaumbach/react-native,yelled3/react-native,qingfeng/react-native,jonesgithub/react-native,puf/react-native,rainkong/react-native,wildKids/react-native,martinbigio/react-native,aziz-boudi4/react-native,udnisap/react-native,zhangwei001/react-native,yiminghe/react-native,geoffreyfloyd/react-native,charlesvinette/react-native,kushal/react-native,yutail/react-native,Shopify/react-native,Jericho25/react-native,bouk/react-native,hoastoolshop/react-native,dut3062796s/react-native,gabrielbellamy/react-native,wangjiangwen/react-native,wangjiangwen/react-native,mbrock/react-native,stan229/react-native,pjcabrera/react-native,kfiroo/react-native,eduvon0220/react-native,kamronbatman/react-native,wjb12/react-native,yjh0502/react-native,jadbox/react-native,daveenguyen/react-native,chengky/react-native,kfiroo/react-native,gilesvangruisen/react-native,wildKids/react-native,JulienThibeaut/react-native,happypancake/react-native,iodine/react-native,shrutic/react-native,negativetwelve/react-native,prathamesh-sonpatki/react-native,Hkmu/react-native,jmhdez/react-native,chirag04/react-native,bogdantmm92/react-native,hoangpham95/react-native,dikaiosune/react-native,lanceharper/react-native,yushiwo/react-native,martinbigio/react-native,code0100fun/react-native,jevakallio/react-native,waynett/react-native,milieu/react-native,YinshawnRao/react-native,xxccll/react-native,almost/react-native,narlian/react-native,ehd/react-native,cdlewis/react-native,formatlos/react-native,code0100fun/react-native,dvcrn/react-native,ljhsai/react-native,YinshawnRao/react-native,gabrielbellamy/react-native,aifeld/react-native,cpunion/react-native,manhvvhtth/react-native,Flickster42490/react-native,strwind/react-native,liuhong1happy/react-native,quyixia/react-native,negativetwelve/react-native,yamill/react-native,BretJohnson/react-native,lucyywang/react-native,xiaoking/react-native,folist/react-native,xiayz/react-native,ChristianHersevoort/react-native,pgavazzi/react-unity,dabit3/react-native,levic92/react-native,jmhdez/react-native,insionng/react-native,jeffchienzabinet/react-native,mozillo/react-native,chapinkapa/react-native,21451061/react-native,cez213/react-native,ndejesus1227/react-native,dralletje/react-native,steveleec/react-native,alantrrs/react-native,roy0914/react-native,tsjing/react-native,futbalguy/react-native,onesfreedom/react-native,YComputer/react-native,iodine/react-native,puf/react-native,supercocoa/react-native,mozillo/react-native,DenisIzmaylov/react-native,levic92/react-native,csatf/react-native,gre/react-native,jeanblanchard/react-native,zenlambda/react-native,eduvon0220/react-native,futbalguy/react-native,mrspeaker/react-native,roy0914/react-native,edward/react-native,popovsh6/react-native,farazs/react-native,lmorchard/react-native,abdelouahabb/react-native,popovsh6/react-native,trueblue2704/react-native,wjb12/react-native,mironiasty/react-native,elliottsj/react-native,ludaye123/react-native,soxunyi/react-native,monyxie/react-native,dut3062796s/react-native,jmhdez/react-native,simple88/react-native,ouyangwenfeng/react-native,sitexa/react-native,billhello/react-native,ProjectSeptemberInc/react-native,lelandrichardson/react-native,dikaiosune/react-native,Shopify/react-native,aifeld/react-native,yusefnapora/react-native,xxccll/react-native,zdsiyan/react-native,charmingzuo/react-native,bradbumbalough/react-native,bright-sparks/react-native,mqli/react-native,tgoldenberg/react-native,slongwang/react-native,peterp/react-native,negativetwelve/react-native,andersryanc/react-native,JoeStanton/react-native,slongwang/react-native,mway08/react-native,rodneyss/react-native,dvcrn/react-native,corbt/react-native,gs-akhan/react-native,barakcoh/react-native,Wingie/react-native,wangjiangwen/react-native,catalinmiron/react-native,javache/react-native,nanpian/react-native,mukesh-kumar1905/react-native,heyjim89/react-native,dabit3/react-native,lprhodes/react-native,jaredly/react-native,adamkrell/react-native,dubert/react-native,CntChen/react-native,cmhsu/react-native,simple88/react-native,judastree/react-native,judastree/react-native,lightsofapollo/react-native,dylanchann/react-native,javache/react-native,Lohit9/react-native,kesha-antonov/react-native,chirag04/react-native,aljs/react-native,forcedotcom/react-native,ChristianHersevoort/react-native,billhello/react-native,Wingie/react-native,pengleelove/react-native,cazacugmihai/react-native,CodeLinkIO/react-native,ivanph/react-native,noif/react-native,booxood/react-native,Guardiannw/react-native,alvarojoao/react-native,ludaye123/react-native,southasia/react-native,chacbumbum/react-native,hengcj/react-native,leegilon/react-native,Intellicode/react-native,Purii/react-native,folist/react-native,dut3062796s/react-native,bouk/react-native,xiayz/react-native,dralletje/react-native,nsimmons/react-native,fw1121/react-native,NunoEdgarGub1/react-native,tszajna0/react-native,a2/react-native,rickbeerendonk/react-native,jeffchienzabinet/react-native,maskkid/react-native,lelandrichardson/react-native,aifeld/react-native,compulim/react-native,ajwhite/react-native,eliagrady/react-native,magnus-bergman/react-native,abdelouahabb/react-native,gauribhoite/react-native,hoangpham95/react-native,vincentqiu/react-native,srounce/react-native,liubko/react-native,lee-my/react-native,rickbeerendonk/react-native,Esdeath/react-native,shadow000902/react-native,mironiasty/react-native,waynett/react-native,frantic/react-native,JulienThibeaut/react-native,lgengsy/react-native,sixtomay/react-native,forcedotcom/react-native,chengky/react-native,rantianhua/react-native,ehd/react-native,Flickster42490/react-native,Heart2009/react-native,soxunyi/react-native,adamterlson/react-native,mcanthony/react-native,Loke155/react-native,gegaosong/react-native,bowlofstew/react-native,philikon/react-native,evilemon/react-native,daveenguyen/react-native,skevy/react-native,mironiasty/react-native,hydraulic/react-native,DanielMSchmidt/react-native,wesley1001/react-native,jordanbyron/react-native,eddiemonge/react-native,dfala/react-native,yjyi/react-native,nktpro/react-native,rainkong/react-native,yushiwo/react-native,ortutay/react-native,eddiemonge/react-native,chirag04/react-native,krock01/react-native,ndejesus1227/react-native,geoffreyfloyd/react-native,hammerandchisel/react-native,csudanthi/react-native,jhen0409/react-native,philonpang/react-native,tszajna0/react-native,imWildCat/react-native,jasonnoahchoi/react-native,tsdl2013/react-native,hayeah/react-native,formatlos/react-native,bowlofstew/react-native,happypancake/react-native,dubert/react-native,sahrens/react-native,sekouperry/react-native,gegaosong/react-native,ChiMarvine/react-native,clozr/react-native,cmhsu/react-native,ChristianHersevoort/react-native,cxfeng1/react-native,puf/react-native,mqli/react-native,olivierlesnicki/react-native,genome21/react-native,spicyj/react-native,thotegowda/react-native,puf/react-native,browniefed/react-native,wenpkpk/react-native,jasonals/react-native,chentsulin/react-native,chapinkapa/react-native,nathanajah/react-native,fish24k/react-native,salanki/react-native,compulim/react-native,DannyvanderJagt/react-native,tgoldenberg/react-native,mariusbutuc/react-native,HealthyWealthy/react-native,maskkid/react-native,heyjim89/react-native,callstack-io/react-native,zyvas/react-native,zvona/react-native,gegaosong/react-native,kesha-antonov/react-native,Hkmu/react-native,spyrx7/react-native,pvinis/react-native-desktop,lokilandon/react-native,krock01/react-native,Jericho25/react-native,bimawa/react-native,adamjmcgrath/react-native,qingsong-xu/react-native,LytayTOUCH/react-native,eduardinni/react-native,pitatensai/react-native,DenisIzmaylov/react-native,sonnylazuardi/react-native,cpunion/react-native,leopardpan/react-native,rwwarren/react-native,glovebx/react-native,gitim/react-native,hydraulic/react-native,huip/react-native,jasonnoahchoi/react-native,jeanblanchard/react-native,pvinis/react-native-desktop,yjyi/react-native,liubko/react-native,FionaWong/react-native,hammerandchisel/react-native,charlesvinette/react-native,hoastoolshop/react-native,F2EVarMan/react-native,foghina/react-native,ChristianHersevoort/react-native,zenlambda/react-native,wesley1001/react-native,gre/react-native,MonirAbuHilal/react-native,xiaoking/react-native,sarvex/react-native,stan229/react-native,jevakallio/react-native,chsj1/react-native,gilesvangruisen/react-native,pandiaraj44/react-native,Maxwell2022/react-native,Bronts/react-native,hoastoolshop/react-native,hanxiaofei/react-native,ptmt/react-native-macos,zhaosichao/react-native,browniefed/react-native,cez213/react-native,yjh0502/react-native,mosch/react-native,aaron-goshine/react-native,codejet/react-native,DerayGa/react-native,Purii/react-native,iodine/react-native,honger05/react-native,foghina/react-native,alantrrs/react-native,sekouperry/react-native,sixtomay/react-native,vincentqiu/react-native,KJlmfe/react-native,billhello/react-native,negativetwelve/react-native,rxb/react-native,mway08/react-native,bestwpw/react-native,sahrens/react-native,hassanabidpk/react-native,1988fei/react-native,taydakov/react-native,genome21/react-native,ericvera/react-native,maskkid/react-native,zhangwei001/react-native,oren/react-native,Heart2009/react-native,htc2u/react-native,facebook/react-native,pitatensai/react-native,ide/react-native,rantianhua/react-native,Applied-Duality/react-native,bsansouci/react-native,Guardiannw/react-native,androidgilbert/react-native,shrutic123/react-native,noif/react-native,shadow000902/react-native,Emilios1995/react-native,csudanthi/react-native,quyixia/react-native,liduanw/react-native,Serfenia/react-native,jeffchienzabinet/react-native,boopathi/react-native,nsimmons/react-native,Bronts/react-native,enaqx/react-native,janicduplessis/react-native,adamterlson/react-native,boopathi/react-native,HealthyWealthy/react-native,thstarshine/react-native,forcedotcom/react-native,wustxing/react-native,charlesvinette/react-native,Applied-Duality/react-native,kamronbatman/react-native,brentvatne/react-native,hesling/react-native,sghiassy/react-native,ajwhite/react-native,mihaigiurgeanu/react-native,carcer/react-native,yelled3/react-native,IveWong/react-native,darrylblake/react-native,strwind/react-native,NZAOM/react-native,timfpark/react-native,darrylblake/react-native,dylanchann/react-native,facebook/react-native,KJlmfe/react-native,miracle2k/react-native,mway08/react-native,trueblue2704/react-native,pcottle/react-native,JulienThibeaut/react-native,mbrock/react-native,IveWong/react-native,judastree/react-native,BossKing/react-native,yimouleng/react-native,tarkus/react-native-appletv,MetSystem/react-native,christer155/react-native,JasonZ321/react-native,soulcm/react-native,monyxie/react-native,mironiasty/react-native,mosch/react-native,ljhsai/react-native,srounce/react-native,ramoslin02/react-native,sahat/react-native,Lucifer-Kim/react-native,leegilon/react-native,sudhirj/react-native,lgengsy/react-native,vagrantinoz/react-native,onesfreedom/react-native,ortutay/react-native,gre/react-native,sheep902/react-native,Purii/react-native,jaggs6/react-native,hike2008/react-native,Heart2009/react-native,wlrhnh-David/react-native,cpunion/react-native,ldehai/react-native,woshili1/react-native,spicyj/react-native,ajwhite/react-native,mrspeaker/react-native,donyu/react-native,madusankapremaratne/react-native,PlexChat/react-native,sheep902/react-native,gauribhoite/react-native,richardgill/react-native,shrutic123/react-native,bimawa/react-native,Jonekee/react-native,JoeStanton/react-native,chrisbutcher/react-native,eduardinni/react-native,hwsyy/react-native,shadow000902/react-native,pgavazzi/react-unity,1988fei/react-native,wdxgtsh/react-native,liubko/react-native,alin23/react-native,Andreyco/react-native,lgengsy/react-native,pairyo/react-native,sekouperry/react-native,jasonnoahchoi/react-native,wdxgtsh/react-native,kushal/react-native,garrows/react-native,prathamesh-sonpatki/react-native,LytayTOUCH/react-native,sheep902/react-native,hanxiaofei/react-native,clozr/react-native,TChengZ/react-native,ktoh/react-native,jmstout/react-native,tmwoodson/react-native,guanghuili/react-native,Swaagie/react-native,tarkus/react-native-appletv,shrutic/react-native,gpbl/react-native,liufeigit/react-native,waynett/react-native,yutail/react-native,rwwarren/react-native,strwind/react-native,soxunyi/react-native,enaqx/react-native,bestwpw/react-native,ramoslin02/react-native,Srikanth4/react-native,zhaosichao/react-native,hassanabidpk/react-native,imDangerous/react-native,lstNull/react-native,alpz5566/react-native,qq644531343/react-native,Rowandjj/react-native,mariusbutuc/react-native,salanki/react-native,FionaWong/react-native,rickbeerendonk/react-native,apprennet/react-native,Loke155/react-native,shrimpy/react-native,yjh0502/react-native,JackLeeMing/react-native,LytayTOUCH/react-native,cdlewis/react-native,facebook/react-native,ericvera/react-native,zvona/react-native,zenlambda/react-native,rxb/react-native,timfpark/react-native,andersryanc/react-native,PlexChat/react-native,donyu/react-native,skatpgusskat/react-native,imDangerous/react-native,lgengsy/react-native,garrows/react-native,christer155/react-native,trueblue2704/react-native,F2EVarMan/react-native,heyjim89/react-native,Hkmu/react-native,andersryanc/react-native,lloydho/react-native,zhaosichao/react-native,kushal/react-native,myntra/react-native,eduvon0220/react-native,alin23/react-native,elliottsj/react-native,chrisbutcher/react-native,simple88/react-native,janicduplessis/react-native,WilliamRen/react-native,qingfeng/react-native,philonpang/react-native,chiefr/react-native,nathanajah/react-native,esauter5/react-native,zdsiyan/react-native,mcanthony/react-native,levic92/react-native,jmstout/react-native,ljhsai/react-native,christer155/react-native,chapinkapa/react-native,southasia/react-native,yutail/react-native,mironiasty/react-native,Wingie/react-native,philikon/react-native,tgoldenberg/react-native,thotegowda/react-native,hoangpham95/react-native,ChristopherSalam/react-native,olivierlesnicki/react-native,johnv315/react-native,JoeStanton/react-native,ipmobiletech/react-native,nbcnews/react-native,simple88/react-native,mozillo/react-native,Ehesp/react-native,alpz5566/react-native,exponentjs/react-native,satya164/react-native,jabinwang/react-native,zhaosichao/react-native,miracle2k/react-native,FionaWong/react-native,liuhong1happy/react-native,ProjectSeptemberInc/react-native,chentsulin/react-native,21451061/react-native,htc2u/react-native,supercocoa/react-native,guanghuili/react-native,lendup/react-native,myntra/react-native,DanielMSchmidt/react-native,eliagrady/react-native,bradbumbalough/react-native,janicduplessis/react-native,forcedotcom/react-native,zvona/react-native,tgoldenberg/react-native,zvona/react-native,tgf229/react-native,kundanjadhav/react-native,yzarubin/react-native,DerayGa/react-native,patoroco/react-native,dubert/react-native,billhello/react-native,quuack/react-native,marlonandrade/react-native,rantianhua/react-native,imjerrybao/react-native,misakuo/react-native,irisli/react-native,ide/react-native,tgriesser/react-native,chrisbutcher/react-native,chenbk85/react-native,bright-sparks/react-native,charlesvinette/react-native,alin23/react-native,hayeah/react-native,ptmt/react-native,folist/react-native,jibonpab/react-native,tahnok/react-native,TChengZ/react-native,mjetek/react-native,Bhullnatik/react-native,rushidesai/react-native,jasonals/react-native,compulim/react-native,WilliamRen/react-native,onesfreedom/react-native,pandiaraj44/react-native,adamjmcgrath/react-native,common2015/react-native,JulienThibeaut/react-native,fengshao0907/react-native,JulienThibeaut/react-native,doochik/react-native,ivanph/react-native,garydonovan/react-native,doochik/react-native,philonpang/react-native,darkrishabh/react-native,common2015/react-native,andrewljohnson/react-native,ptmt/react-native-macos,qingsong-xu/react-native,skatpgusskat/react-native,pairyo/react-native,johnv315/react-native,formatlos/react-native,chirag04/react-native,leopardpan/react-native,RGKzhanglei/react-native,Emilios1995/react-native,liubko/react-native,TChengZ/react-native,onesfreedom/react-native,yutail/react-native,ivanph/react-native,ModusCreateOrg/react-native,makadaw/react-native,tadeuzagallo/react-native,adamjmcgrath/react-native,lightsofapollo/react-native,qq644531343/react-native,martinbigio/react-native,pvinis/react-native-desktop,Suninus/react-native,misakuo/react-native,HSFGitHub/react-native,wlrhnh-David/react-native,zuolangguo/react-native,imDangerous/react-native,orenklein/react-native,affinityis/react-native,Zagorakiss/react-native,dimoge/react-native,Inner89/react-native,shrimpy/react-native,chacbumbum/react-native,mukesh-kumar1905/react-native,kentaromiura/react-native,ankitsinghania94/react-native,salanki/react-native,sospartan/react-native,lmorchard/react-native,waynett/react-native,farazs/react-native,esauter5/react-native,hammerandchisel/react-native,sjchakrav/react-native,luqin/react-native,jhen0409/react-native,tgf229/react-native,madusankapremaratne/react-native,ptmt/react-native,Zagorakiss/react-native,jasonals/react-native,yiminghe/react-native,vagrantinoz/react-native,dvcrn/react-native,jaredly/react-native,JackLeeMing/react-native,mrngoitall/react-native,Srikanth4/react-native,tahnok/react-native,bouk/react-native,jeanblanchard/react-native,Tredsite/react-native,luqin/react-native,rxb/react-native,tarkus/react-native-appletv,charmingzuo/react-native,daveenguyen/react-native,peterp/react-native,Zagorakiss/react-native,chetstone/react-native,hike2008/react-native,ipmobiletech/react-native,charmingzuo/react-native,irisli/react-native,sunblaze/react-native,liuzechen/react-native,tahnok/react-native,huangsongyan/react-native,goodheart/react-native,RGKzhanglei/react-native,mcrooks88/react-native,bradbumbalough/react-native,martinbigio/react-native,wangcan2014/react-native,ramoslin02/react-native,rushidesai/react-native,imjerrybao/react-native,hassanabidpk/react-native,Purii/react-native,jabinwang/react-native,quuack/react-native,sghiassy/react-native,wlrhnh-David/react-native,jaredly/react-native,harrykiselev/react-native,DerayGa/react-native,abdelouahabb/react-native,1988fei/react-native,Serfenia/react-native,browniefed/react-native,yutail/react-native,hengcj/react-native,csudanthi/react-native,mjetek/react-native,jibonpab/react-native,rwwarren/react-native,yelled3/react-native,InterfaceInc/react-native,levic92/react-native,rodneyss/react-native,programming086/react-native,j27cai/react-native,southasia/react-native,shadow000902/react-native,ptomasroos/react-native,spicyj/react-native,thotegowda/react-native,mozillo/react-native,mjetek/react-native,lmorchard/react-native,jackeychens/react-native,oren/react-native,Lohit9/react-native,codejet/react-native,RGKzhanglei/react-native,stonegithubs/react-native,dubert/react-native,evansolomon/react-native,programming086/react-native,zhangwei001/react-native,nickhudkins/react-native,mcanthony/react-native,yimouleng/react-native,mjetek/react-native,YotrolZ/react-native,tgf229/react-native,arbesfeld/react-native,PhilippKrone/react-native,Suninus/react-native,darkrishabh/react-native,patoroco/react-native,Poplava/react-native,adamkrell/react-native,Livyli/react-native,Jonekee/react-native,pandiaraj44/react-native,orenklein/react-native,nbcnews/react-native,corbt/react-native,barakcoh/react-native,Hkmu/react-native,eduardinni/react-native,aziz-boudi4/react-native,lprhodes/react-native,Intellicode/react-native,ipmobiletech/react-native,hengcj/react-native,andrewljohnson/react-native,sekouperry/react-native,hesling/react-native,Tredsite/react-native,tarkus/react-native-appletv,lanceharper/react-native,ktoh/react-native,sudhirj/react-native,tgoldenberg/react-native,xiangjuntang/react-native,pjcabrera/react-native,wdxgtsh/react-native,marlonandrade/react-native,exponentjs/react-native,apprennet/react-native,yimouleng/react-native,imjerrybao/react-native,christopherdro/react-native,hharnisc/react-native,yamill/react-native,alin23/react-native,chapinkapa/react-native,soulcm/react-native,NishanthShankar/react-native,neeraj-singh/react-native,aljs/react-native,leegilon/react-native,lightsofapollo/react-native,insionng/react-native,alin23/react-native,Jonekee/react-native,bsansouci/react-native,mcanthony/react-native,doochik/react-native,jackalchen/react-native,lprhodes/react-native,dut3062796s/react-native,vlrchtlt/react-native,yutail/react-native,eddiemonge/react-native,gauribhoite/react-native,tsjing/react-native,pickhardt/react-native,monyxie/react-native,mbrock/react-native,eliagrady/react-native,yjh0502/react-native,philonpang/react-native,hharnisc/react-native,alinz/react-native,ehd/react-native,DenisIzmaylov/react-native,bsansouci/react-native,kundanjadhav/react-native,steben/react-native,a2/react-native,nickhargreaves/react-native,ordinarybill/react-native,a2/react-native,rebeccahughes/react-native,Swaagie/react-native,clozr/react-native,bistacos/react-native,irisli/react-native,garydonovan/react-native,soulcm/react-native,sheep902/react-native,CntChen/react-native,myntra/react-native,andrewljohnson/react-native,philonpang/react-native,FionaWong/react-native,iodine/react-native,alinz/react-native,strwind/react-native,aljs/react-native,pgavazzi/react-unity,jabinwang/react-native,huip/react-native,Ehesp/react-native,liangmingjie/react-native,cez213/react-native,alantrrs/react-native,huangsongyan/react-native,kujohn/react-native,ktoh/react-native,ldehai/react-native,pairyo/react-native,arthuralee/react-native,geoffreyfloyd/react-native,happypancake/react-native,nsimmons/react-native,soxunyi/react-native,Swaagie/react-native,YinshawnRao/react-native,lloydho/react-native,ChristianHersevoort/react-native,pengleelove/react-native,cpunion/react-native,chengky/react-native,goodheart/react-native,charmingzuo/react-native,dylanchann/react-native,adamterlson/react-native,madusankapremaratne/react-native,ericvera/react-native,gegaosong/react-native,hike2008/react-native,Srikanth4/react-native,hharnisc/react-native,philikon/react-native,shadow000902/react-native,Serfenia/react-native,dfala/react-native,NunoEdgarGub1/react-native,tahnok/react-native,MonirAbuHilal/react-native,bsansouci/react-native,shinate/react-native,jabinwang/react-native,gilesvangruisen/react-native,nickhargreaves/react-native,nickhudkins/react-native,KJlmfe/react-native,christopherdro/react-native,mway08/react-native,wjb12/react-native,lucyywang/react-native,Suninus/react-native,xiaoking/react-native,gre/react-native,cosmith/react-native,popovsh6/react-native,shadow000902/react-native,bodefuwa/react-native,hwsyy/react-native,skevy/react-native,satya164/react-native,taydakov/react-native,averted/react-native,affinityis/react-native,darkrishabh/react-native,zdsiyan/react-native,PlexChat/react-native,orenklein/react-native,qq644531343/react-native,jaggs6/react-native,vincentqiu/react-native,hwsyy/react-native,sarvex/react-native,shrutic123/react-native,alantrrs/react-native,yelled3/react-native,pglotov/react-native,beni55/react-native,fish24k/react-native,shrutic123/react-native,patoroco/react-native,21451061/react-native,martinbigio/react-native,pitatensai/react-native,mqli/react-native,mway08/react-native,lanceharper/react-native,hharnisc/react-native,garydonovan/react-native,yiminghe/react-native,woshili1/react-native,yangshangde/react-native,myntra/react-native,bradbumbalough/react-native,liuzechen/react-native,dalinaum/react-native,xiaoking/react-native,chnfeeeeeef/react-native,dut3062796s/react-native,eduardinni/react-native,wildKids/react-native,ldehai/react-native,affinityis/react-native,hengcj/react-native,androidgilbert/react-native,tgriesser/react-native,alantrrs/react-native,xxccll/react-native,beni55/react-native,mcrooks88/react-native,HealthyWealthy/react-native,yamill/react-native,tahnok/react-native,wangziqiang/react-native,quuack/react-native,arbesfeld/react-native,alin23/react-native,aziz-boudi4/react-native,richardgill/react-native,frantic/react-native,chetstone/react-native,kushal/react-native,sixtomay/react-native,chacbumbum/react-native,janicduplessis/react-native,hammerandchisel/react-native,cosmith/react-native,dralletje/react-native,zdsiyan/react-native,tszajna0/react-native,arthuralee/react-native,tmwoodson/react-native,Rowandjj/react-native,NZAOM/react-native,j27cai/react-native,brentvatne/react-native,jonesgithub/react-native,noif/react-native,fw1121/react-native,bradbumbalough/react-native,liufeigit/react-native,mcanthony/react-native,YinshawnRao/react-native,jbaumbach/react-native,YueRuo/react-native,sahat/react-native,futbalguy/react-native,salanki/react-native,jeromjoy/react-native,Intellicode/react-native,liduanw/react-native,PhilippKrone/react-native,christer155/react-native,jeromjoy/react-native,Guardiannw/react-native,pitatensai/react-native,wangziqiang/react-native,quyixia/react-native,nathanajah/react-native,liangmingjie/react-native,Furzikov/react-native,iodine/react-native,NZAOM/react-native,brentvatne/react-native,Srikanth4/react-native,lgengsy/react-native,chrisbutcher/react-native,adamterlson/react-native,negativetwelve/react-native,aifeld/react-native,yiminghe/react-native,mjetek/react-native,patoroco/react-native,ipmobiletech/react-native,esauter5/react-native,garydonovan/react-native,jadbox/react-native,imDangerous/react-native,Lohit9/react-native,rkumar3147/react-native,aroth/react-native,dfala/react-native,MetSystem/react-native,wustxing/react-native,programming086/react-native,mtford90/react-native,rickbeerendonk/react-native,appersonlabs/react-native,srounce/react-native,machard/react-native,stan229/react-native,androidgilbert/react-native,trueblue2704/react-native,mcanthony/react-native,andrewljohnson/react-native,imWildCat/react-native,liangmingjie/react-native,yzarubin/react-native,bowlofstew/react-native,Shopify/react-native,sitexa/react-native,charlesvinette/react-native,yiminghe/react-native,machard/react-native,honger05/react-native,aaron-goshine/react-native,barakcoh/react-native,YinshawnRao/react-native,luqin/react-native,exponentjs/react-native,lokilandon/react-native,barakcoh/react-native,hoastoolshop/react-native,chetstone/react-native,ProjectSeptemberInc/react-native,rxb/react-native,tsjing/react-native,myntra/react-native,shinate/react-native,wangjiangwen/react-native,facebook/react-native,formatlos/react-native,Livyli/react-native,dubert/react-native,mtford90/react-native,dikaiosune/react-native,jevakallio/react-native,imjerrybao/react-native,PhilippKrone/react-native,machard/react-native,rwwarren/react-native,liuzechen/react-native,ipmobiletech/react-native,apprennet/react-native,ptomasroos/react-native,roth1002/react-native,tadeuzagallo/react-native,nickhudkins/react-native,ouyangwenfeng/react-native,hayeah/react-native,mrngoitall/react-native,yzarubin/react-native,honger05/react-native,wangcan2014/react-native,yiminghe/react-native,jekey/react-native,lwansbrough/react-native,skevy/react-native,yzarubin/react-native,adamkrell/react-native,naoufal/react-native,sudhirj/react-native,orenklein/react-native,NunoEdgarGub1/react-native,spicyj/react-native,nanpian/react-native,threepointone/react-native-1,milieu/react-native,RGKzhanglei/react-native,rollokb/react-native,chengky/react-native,aziz-boudi4/react-native,doochik/react-native,shrutic/react-native,IveWong/react-native,irisli/react-native,gpbl/react-native,edward/react-native,wangyzyoga/react-native,michaelchucoder/react-native,ankitsinghania94/react-native,alpz5566/react-native,rkumar3147/react-native,brentvatne/react-native,ivanph/react-native,oren/react-native,mrngoitall/react-native,code0100fun/react-native,Esdeath/react-native,lwansbrough/react-native,kotdark/react-native,HealthyWealthy/react-native,thstarshine/react-native,tsjing/react-native,IveWong/react-native,jevakallio/react-native,j27cai/react-native,philikon/react-native,sudhirj/react-native,ordinarybill/react-native,androidgilbert/react-native,daveenguyen/react-native,daveenguyen/react-native,vagrantinoz/react-native,sahrens/react-native,jeromjoy/react-native,ndejesus1227/react-native,ajwhite/react-native,Wingie/react-native,tszajna0/react-native,martinbigio/react-native,miracle2k/react-native,csudanthi/react-native,devknoll/react-native,pandiaraj44/react-native,sjchakrav/react-native,eduardinni/react-native,eddiemonge/react-native,wesley1001/react-native,misakuo/react-native,sdiaz/react-native,imjerrybao/react-native,LytayTOUCH/react-native,wangcan2014/react-native,cxfeng1/react-native,neeraj-singh/react-native,tahnok/react-native,lloydho/react-native,Tredsite/react-native,sghiassy/react-native,ajwhite/react-native,pletcher/react-native,zhangxq5012/react-native,wesley1001/react-native,dizlexik/react-native,NunoEdgarGub1/react-native,urvashi01/react-native,pvinis/react-native-desktop,bimawa/react-native,liuhong1happy/react-native,charmingzuo/react-native,wesley1001/react-native,emodeqidao/react-native,andersryanc/react-native,neeraj-singh/react-native,gegaosong/react-native,ortutay/react-native,stonegithubs/react-native,andersryanc/react-native,YueRuo/react-native,liangmingjie/react-native,shrutic/react-native,heyjim89/react-native,kesha-antonov/react-native,sghiassy/react-native,quuack/react-native,lee-my/react-native,billhello/react-native,CntChen/react-native,quyixia/react-native,Jericho25/react-native,pitatensai/react-native,liangmingjie/react-native,prathamesh-sonpatki/react-native,liubko/react-native,Livyli/react-native,clooth/react-native,jackalchen/react-native,NunoEdgarGub1/react-native,glovebx/react-native,genome21/react-native,sdiaz/react-native,leeyeh/react-native,thotegowda/react-native,neeraj-singh/react-native,hwsyy/react-native,MattFoley/react-native,ultralame/react-native,hoastoolshop/react-native,jibonpab/react-native,Maxwell2022/react-native,DannyvanderJagt/react-native,timfpark/react-native,shrutic/react-native,RGKzhanglei/react-native,TChengZ/react-native,yangchengwork/react-native,daveenguyen/react-native,farazs/react-native,mihaigiurgeanu/react-native,thstarshine/react-native,edward/react-native,boopathi/react-native,Applied-Duality/react-native,YueRuo/react-native,arthuralee/react-native,chsj1/react-native,dabit3/react-native,xiaoking/react-native,lloydho/react-native,csatf/react-native,zhaosichao/react-native,dimoge/react-native,catalinmiron/react-native,roth1002/react-native,jonesgithub/react-native,mrspeaker/react-native,prathamesh-sonpatki/react-native,ptomasroos/react-native,trueblue2704/react-native,almost/react-native,hike2008/react-native,Ehesp/react-native,WilliamRen/react-native,DannyvanderJagt/react-native,NishanthShankar/react-native,negativetwelve/react-native,zhangwei001/react-native,htc2u/react-native,ptmt/react-native,exponent/react-native,yushiwo/react-native,jibonpab/react-native,Bronts/react-native,zyvas/react-native,jibonpab/react-native,ankitsinghania94/react-native,ktoh/react-native,chnfeeeeeef/react-native,alantrrs/react-native,jaggs6/react-native,qingsong-xu/react-native,YotrolZ/react-native,andersryanc/react-native,PlexChat/react-native,dfala/react-native,happypancake/react-native,Bhullnatik/react-native,guanghuili/react-native,zenlambda/react-native,evilemon/react-native,mqli/react-native,jackeychens/react-native,wildKids/react-native,catalinmiron/react-native,MonirAbuHilal/react-native,geoffreyfloyd/react-native,sghiassy/react-native,xxccll/react-native,cosmith/react-native,HSFGitHub/react-native,DanielMSchmidt/react-native,mukesh-kumar1905/react-native,makadaw/react-native,yusefnapora/react-native,jackeychens/react-native,christopherdro/react-native,exponent/react-native,adrie4mac/react-native,jevakallio/react-native,sghiassy/react-native,hwsyy/react-native,sghiassy/react-native,arthuralee/react-native,liduanw/react-native,skevy/react-native,krock01/react-native,soxunyi/react-native,christopherdro/react-native,Rowandjj/react-native,ljhsai/react-native,yangshangde/react-native,zyvas/react-native,oren/react-native,lelandrichardson/react-native,pallyoung/react-native,mtford90/react-native,hwsyy/react-native,edward/react-native,elliottsj/react-native,kesha-antonov/react-native,urvashi01/react-native,Tredsite/react-native,woshili1/react-native,wustxing/react-native,kotdark/react-native,wustxing/react-native,judastree/react-native,gs-akhan/react-native,geoffreyfloyd/react-native,miracle2k/react-native,kundanjadhav/react-native,hydraulic/react-native,ndejesus1227/react-native,ivanph/react-native,kentaromiura/react-native,trueblue2704/react-native,evansolomon/react-native,taydakov/react-native,formatlos/react-native,shrutic123/react-native,zvona/react-native,peterp/react-native,HealthyWealthy/react-native,clooth/react-native,gitim/react-native,zdsiyan/react-native,yiminghe/react-native,soxunyi/react-native,narlian/react-native,wildKids/react-native,Guardiannw/react-native,chengky/react-native,shinate/react-native,sudhirj/react-native,supercocoa/react-native,ljhsai/react-native,mbrock/react-native,pairyo/react-native,chengky/react-native,garrows/react-native,bistacos/react-native,adamterlson/react-native,kamronbatman/react-native,manhvvhtth/react-native,Wingie/react-native,nktpro/react-native,sahat/react-native,Lucifer-Kim/react-native,pickhardt/react-native,ide/react-native,mway08/react-native,ptmt/react-native-macos,aljs/react-native,nickhudkins/react-native,evansolomon/react-native,F2EVarMan/react-native,Iragne/react-native,evansolomon/react-native,genome21/react-native,forcedotcom/react-native,hwsyy/react-native,chsj1/react-native,jackeychens/react-native,YueRuo/react-native,PhilippKrone/react-native,mariusbutuc/react-native,Hkmu/react-native,peterp/react-native,lucyywang/react-native,sghiassy/react-native,myntra/react-native,jeanblanchard/react-native,dylanchann/react-native,Lucifer-Kim/react-native,imWildCat/react-native,levic92/react-native,dubert/react-native,codejet/react-native,cpunion/react-native,sospartan/react-native,gs-akhan/react-native,lstNull/react-native,a2/react-native,huangsongyan/react-native,gauribhoite/react-native,sjchakrav/react-native,ModusCreateOrg/react-native,javache/react-native,lzbSun/react-native,sixtomay/react-native,dvcrn/react-native,carcer/react-native,jasonnoahchoi/react-native,pitatensai/react-native,a2/react-native,Reparadocs/react-native,ProjectSeptemberInc/react-native,jbaumbach/react-native,cdlewis/react-native,MetSystem/react-native,jasonnoahchoi/react-native,daveenguyen/react-native,wustxing/react-native,iOSTestApps/react-native,aroth/react-native,billhello/react-native,lloydho/react-native,hanxiaofei/react-native,YComputer/react-native,csudanthi/react-native,jibonpab/react-native,NZAOM/react-native,qingfeng/react-native,rkumar3147/react-native,sonnylazuardi/react-native,j27cai/react-native,marlonandrade/react-native,geoffreyfloyd/react-native,waynett/react-native,YueRuo/react-native,zyvas/react-native,jbaumbach/react-native,ldehai/react-native,yushiwo/react-native,tsjing/react-native,corbt/react-native,alantrrs/react-native,srounce/react-native,chenbk85/react-native,myntra/react-native,rantianhua/react-native,bistacos/react-native,Andreyco/react-native,salanki/react-native,thstarshine/react-native,chnfeeeeeef/react-native,hzgnpu/react-native,Tredsite/react-native,nickhudkins/react-native,Purii/react-native,dalinaum/react-native,marlonandrade/react-native,qingfeng/react-native,BretJohnson/react-native,PlexChat/react-native,Iragne/react-native,fw1121/react-native,browniefed/react-native,CodeLinkIO/react-native,nevir/react-native,JasonZ321/react-native,barakcoh/react-native,salanki/react-native,soulcm/react-native,josebalius/react-native,wjb12/react-native,dralletje/react-native,hzgnpu/react-native,johnv315/react-native,andersryanc/react-native,chenbk85/react-native,eliagrady/react-native,adamterlson/react-native,ramoslin02/react-native,Poplava/react-native,pletcher/react-native,ktoh/react-native,tsdl2013/react-native,YinshawnRao/react-native,lelandrichardson/react-native,ericvera/react-native,olivierlesnicki/react-native,stonegithubs/react-native,shinate/react-native,Zagorakiss/react-native,Furzikov/react-native,yushiwo/react-native,supercocoa/react-native,happypancake/react-native,Shopify/react-native,tgriesser/react-native,sdiaz/react-native,vjeux/react-native,zyvas/react-native,21451061/react-native,wdxgtsh/react-native,qingsong-xu/react-native,rainkong/react-native,mukesh-kumar1905/react-native,hammerandchisel/react-native,quyixia/react-native,kfiroo/react-native,yiminghe/react-native,lokilandon/react-native,miracle2k/react-native,ortutay/react-native,nanpian/react-native,barakcoh/react-native,shrimpy/react-native,sonnylazuardi/react-native,thotegowda/react-native,hanxiaofei/react-native,harrykiselev/react-native,formatlos/react-native,dimoge/react-native,magnus-bergman/react-native,steveleec/react-native,yangshangde/react-native,a2/react-native,zhangwei001/react-native,ultralame/react-native,ronak301/react-native,josebalius/react-native,narlian/react-native,hzgnpu/react-native,JackLeeMing/react-native,yjyi/react-native,wangyzyoga/react-native,andrewljohnson/react-native,jeffchienzabinet/react-native,ultralame/react-native,DanielMSchmidt/react-native,pj4533/react-native,foghina/react-native,naoufal/react-native,simple88/react-native,YotrolZ/react-native,Hkmu/react-native,pletcher/react-native,ktoh/react-native,ChristianHersevoort/react-native,wenpkpk/react-native,imDangerous/react-native,JoeStanton/react-native,j27cai/react-native,jacobbubu/react-native,adamjmcgrath/react-native,spyrx7/react-native,mihaigiurgeanu/react-native,exponentjs/react-native,dimoge/react-native,aljs/react-native,makadaw/react-native,jacobbubu/react-native,a2/react-native,oren/react-native,booxood/react-native,vlrchtlt/react-native,esauter5/react-native,guanghuili/react-native,Poplava/react-native,aljs/react-native,supercocoa/react-native,yusefnapora/react-native,YueRuo/react-native,fw1121/react-native,pitatensai/react-native,programming086/react-native,BretJohnson/react-native,jevakallio/react-native,cmhsu/react-native,arthuralee/react-native,code0100fun/react-native,nickhargreaves/react-native,tmwoodson/react-native,michaelchucoder/react-native,vlrchtlt/react-native,chapinkapa/react-native,DanielMSchmidt/react-native,yangchengwork/react-native,sahat/react-native,mariusbutuc/react-native,misakuo/react-native,devknoll/react-native,clooth/react-native,sitexa/react-native,adamkrell/react-native,roy0914/react-native,leeyeh/react-native,WilliamRen/react-native,F2EVarMan/react-native,eddiemonge/react-native,goodheart/react-native,nathanajah/react-native,wangyzyoga/react-native,lzbSun/react-native,folist/react-native,zenlambda/react-native,jordanbyron/react-native,stan229/react-native,compulim/react-native,rushidesai/react-native,Applied-Duality/react-native,satya164/react-native,Livyli/react-native,DerayGa/react-native,insionng/react-native,chiefr/react-native,olivierlesnicki/react-native,steveleec/react-native,jonesgithub/react-native,yzarubin/react-native,Poplava/react-native,wenpkpk/react-native,arbesfeld/react-native,nanpian/react-native,aaron-goshine/react-native,DerayGa/react-native,javache/react-native,ericvera/react-native,dvcrn/react-native,skatpgusskat/react-native,Bronts/react-native,Flickster42490/react-native,kentaromiura/react-native,southasia/react-native,happypancake/react-native,jbaumbach/react-native,skatpgusskat/react-native,sonnylazuardi/react-native,jadbox/react-native,mcrooks88/react-native,NZAOM/react-native,lmorchard/react-native,naoufal/react-native,jonesgithub/react-native,hoangpham95/react-native,stan229/react-native,xinthink/react-native,unknownexception/react-native,apprennet/react-native,catalinmiron/react-native,androidgilbert/react-native,onesfreedom/react-native,pvinis/react-native-desktop,apprennet/react-native,slongwang/react-native,NunoEdgarGub1/react-native,YinshawnRao/react-native,Tredsite/react-native,yamill/react-native,bouk/react-native,hzgnpu/react-native,garydonovan/react-native,aifeld/react-native,YueRuo/react-native,tahnok/react-native,TChengZ/react-native,vlrchtlt/react-native,pglotov/react-native,nickhudkins/react-native,spicyj/react-native,adrie4mac/react-native,krock01/react-native,imWildCat/react-native,21451061/react-native,forcedotcom/react-native,marlonandrade/react-native,carcer/react-native,woshili1/react-native,genome21/react-native,ivanph/react-native,ptomasroos/react-native,alpz5566/react-native,Purii/react-native,rantianhua/react-native,xiangjuntang/react-native,sahrens/react-native,zdsiyan/react-native,sixtomay/react-native,hesling/react-native,zuolangguo/react-native,nbcnews/react-native,almost/react-native,mchinyakov/react-native,CntChen/react-native,sonnylazuardi/react-native,j27cai/react-native,bradens/react-native,peterp/react-native,mozillo/react-native,sudhirj/react-native,codejet/react-native,ehd/react-native,ide/react-native,jacobbubu/react-native,chirag04/react-native,steben/react-native,kotdark/react-native,Hkmu/react-native,olivierlesnicki/react-native,milieu/react-native,zhangxq5012/react-native,clooth/react-native,pairyo/react-native,Maxwell2022/react-native,jabinwang/react-native,mosch/react-native,hzgnpu/react-native,yzarubin/react-native,mukesh-kumar1905/react-native,Wingie/react-native,alvarojoao/react-native,wangziqiang/react-native,carcer/react-native,kujohn/react-native,mukesh-kumar1905/react-native,nevir/react-native,cazacugmihai/react-native,rickbeerendonk/react-native,hoastoolshop/react-native,liangmingjie/react-native,mqli/react-native,waynett/react-native,folist/react-native,neeraj-singh/react-native,nickhargreaves/react-native,bright-sparks/react-native,mariusbutuc/react-native,narlian/react-native,imWildCat/react-native,yusefnapora/react-native,ordinarybill/react-native,cxfeng1/react-native,nevir/react-native,mosch/react-native,Iragne/react-native,unknownexception/react-native,HSFGitHub/react-native,tsdl2013/react-native,sospartan/react-native,ehd/react-native,ronak301/react-native,jackalchen/react-native,ide/react-native,frantic/react-native,pglotov/react-native,esauter5/react-native,almost/react-native,bogdantmm92/react-native,steben/react-native,hydraulic/react-native,eduardinni/react-native,rwwarren/react-native,LytayTOUCH/react-native,bestwpw/react-native,rollokb/react-native,ouyangwenfeng/react-native,tarkus/react-native-appletv,xiayz/react-native,misakuo/react-native,cazacugmihai/react-native,liufeigit/react-native,strwind/react-native,xinthink/react-native,jeromjoy/react-native,yangshangde/react-native,southasia/react-native,machard/react-native,lwansbrough/react-native,kassens/react-native,jordanbyron/react-native,Loke155/react-native,Flickster42490/react-native,andersryanc/react-native,mrngoitall/react-native,rkumar3147/react-native,wenpkpk/react-native,martinbigio/react-native,dubert/react-native,PhilippKrone/react-native,guanghuili/react-native,happypancake/react-native,chirag04/react-native,JasonZ321/react-native,tsdl2013/react-native,makadaw/react-native,wjb12/react-native,miracle2k/react-native,adamkrell/react-native,dabit3/react-native,darkrishabh/react-native,ipmobiletech/react-native,KJlmfe/react-native,quuack/react-native,jaredly/react-native,zyvas/react-native,kfiroo/react-native,WilliamRen/react-native,nktpro/react-native,yushiwo/react-native,christopherdro/react-native,bowlofstew/react-native,jibonpab/react-native,arbesfeld/react-native,Srikanth4/react-native,ndejesus1227/react-native,Bhullnatik/react-native,ludaye123/react-native,enaqx/react-native,jekey/react-native,chsj1/react-native,patoroco/react-native,appersonlabs/react-native,Loke155/react-native,Jericho25/react-native,InterfaceInc/react-native,gabrielbellamy/react-native,PhilippKrone/react-native,elliottsj/react-native,shrutic123/react-native,taydakov/react-native,aroth/react-native,RGKzhanglei/react-native,wangyzyoga/react-native,wangcan2014/react-native,shrimpy/react-native,yjh0502/react-native,mrspeaker/react-native,mihaigiurgeanu/react-native,cdlewis/react-native,jhen0409/react-native,aaron-goshine/react-native,beni55/react-native,rollokb/react-native,alvarojoao/react-native,ide/react-native,jeanblanchard/react-native,timfpark/react-native,androidgilbert/react-native,jonesgithub/react-native,neeraj-singh/react-native,bsansouci/react-native,BretJohnson/react-native,tsdl2013/react-native,eliagrady/react-native,adamkrell/react-native,pvinis/react-native-desktop,bestwpw/react-native,liuhong1happy/react-native,zhangxq5012/react-native,fw1121/react-native,ipmobiletech/react-native,tgoldenberg/react-native,wenpkpk/react-native,nsimmons/react-native,urvashi01/react-native,rxb/react-native,magnus-bergman/react-native,pglotov/react-native,htc2u/react-native,Bronts/react-native,21451061/react-native,Serfenia/react-native,huangsongyan/react-native,lee-my/react-native,ouyangwenfeng/react-native,callstack-io/react-native,yjh0502/react-native,bodefuwa/react-native,richardgill/react-native,code0100fun/react-native,maskkid/react-native,luqin/react-native,nanpian/react-native,vjeux/react-native,ide/react-native,lloydho/react-native,janicduplessis/react-native,enaqx/react-native,rebeccahughes/react-native,frantic/react-native,waynett/react-native,dizlexik/react-native,mway08/react-native,jaredly/react-native,slongwang/react-native,lstNull/react-native,TChengZ/react-native,hydraulic/react-native,NZAOM/react-native,adamjmcgrath/react-native,bright-sparks/react-native,lokilandon/react-native,Wingie/react-native,mironiasty/react-native,madusankapremaratne/react-native,apprennet/react-native,ChristopherSalam/react-native,bradens/react-native,Rowandjj/react-native,BretJohnson/react-native,imWildCat/react-native,eddiemonge/react-native,gs-akhan/react-native,wangziqiang/react-native,csatf/react-native,jbaumbach/react-native,tsjing/react-native,zhangwei001/react-native,YComputer/react-native,wangyzyoga/react-native,rxb/react-native,jacobbubu/react-native,affinityis/react-native,yzarubin/react-native,gegaosong/react-native,gpbl/react-native,Poplava/react-native,esauter5/react-native,Rowandjj/react-native,threepointone/react-native-1,jaggs6/react-native,kentaromiura/react-native,beni55/react-native,manhvvhtth/react-native,milieu/react-native,vincentqiu/react-native,liuzechen/react-native,emodeqidao/react-native,yamill/react-native,wangziqiang/react-native,hoangpham95/react-native,InterfaceInc/react-native,trueblue2704/react-native,BretJohnson/react-native,wangziqiang/react-native,gauribhoite/react-native,farazs/react-native,gauribhoite/react-native,roy0914/react-native,booxood/react-native,ankitsinghania94/react-native,pjcabrera/react-native,liuhong1happy/react-native,philikon/react-native,Livyli/react-native,wesley1001/react-native,jaredly/react-native,leegilon/react-native,leeyeh/react-native,hharnisc/react-native,steben/react-native,kundanjadhav/react-native,dabit3/react-native,WilliamRen/react-native,zvona/react-native,Suninus/react-native,oren/react-native,callstack-io/react-native,unknownexception/react-native,cpunion/react-native,TChengZ/react-native,dikaiosune/react-native,vjeux/react-native,shinate/react-native,wesley1001/react-native,sdiaz/react-native,gpbl/react-native,iodine/react-native,brentvatne/react-native,dizlexik/react-native,Shopify/react-native,futbalguy/react-native,nbcnews/react-native,elliottsj/react-native,sekouperry/react-native,timfpark/react-native,chentsulin/react-native,jasonals/react-native,mcrooks88/react-native,wustxing/react-native,michaelchucoder/react-native,fengshao0907/react-native,jmstout/react-native,glovebx/react-native,hoastoolshop/react-native,cdlewis/react-native,bimawa/react-native,vlrchtlt/react-native,ProjectSeptemberInc/react-native,esauter5/react-native,puf/react-native,gre/react-native,huip/react-native,ldehai/react-native,InterfaceInc/react-native,Srikanth4/react-native,mqli/react-native,mchinyakov/react-native,simple88/react-native,YotrolZ/react-native,mtford90/react-native,maskkid/react-native,goodheart/react-native,christer155/react-native,yushiwo/react-native,magnus-bergman/react-native,tgoldenberg/react-native,hassanabidpk/react-native,JasonZ321/react-native,xinthink/react-native,javache/react-native,foghina/react-native,jhen0409/react-native,tsdl2013/react-native,jadbox/react-native,hike2008/react-native,boopathi/react-native,huip/react-native,evilemon/react-native,1988fei/react-native
20a0bea197188ffa3e7abaffe030305bc63bd9c4
/* Copyright 2015 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* Memory mapping */ #define CONFIG_FLASH_SIZE (64 * 1024) #define CONFIG_FLASH_BANK_SIZE 0x1000 #define CONFIG_FLASH_ERASE_SIZE 0x0400 /* erase bank size */ #define CONFIG_FLASH_WRITE_SIZE 0x0002 /* minimum write size */ /* No page mode on STM32F, so no benefit to larger write sizes */ #define CONFIG_FLASH_WRITE_IDEAL_SIZE 0x0002 #define CONFIG_RAM_BASE 0x20000000 #define CONFIG_RAM_SIZE 0x00002000 /* Number of IRQ vectors on the NVIC */ #define CONFIG_IRQ_COUNT 32 /* Reduced history because of limited RAM */ #undef CONFIG_CONSOLE_HISTORY #define CONFIG_CONSOLE_HISTORY 3
/* Copyright 2015 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* Memory mapping */ #define CONFIG_FLASH_SIZE (64 * 1024) #define CONFIG_FLASH_BANK_SIZE 0x1000 #define CONFIG_FLASH_ERASE_SIZE 0x0800 /* erase bank size */ #define CONFIG_FLASH_WRITE_SIZE 0x0002 /* minimum write size */ /* No page mode on STM32F, so no benefit to larger write sizes */ #define CONFIG_FLASH_WRITE_IDEAL_SIZE 0x0002 #define CONFIG_RAM_BASE 0x20000000 #define CONFIG_RAM_SIZE 0x00002000 /* Number of IRQ vectors on the NVIC */ #define CONFIG_IRQ_COUNT 32 /* Reduced history because of limited RAM */ #undef CONFIG_CONSOLE_HISTORY #define CONFIG_CONSOLE_HISTORY 3
--- +++ @@ -6,7 +6,7 @@ /* Memory mapping */ #define CONFIG_FLASH_SIZE (64 * 1024) #define CONFIG_FLASH_BANK_SIZE 0x1000 -#define CONFIG_FLASH_ERASE_SIZE 0x0800 /* erase bank size */ +#define CONFIG_FLASH_ERASE_SIZE 0x0400 /* erase bank size */ #define CONFIG_FLASH_WRITE_SIZE 0x0002 /* minimum write size */ /* No page mode on STM32F, so no benefit to larger write sizes */
stm32f05x: Use correct erase block size of 1kB Change erase block size to the correct 1kB. BUG=chrome-os-partner:41959 BRANCH=none TEST=with following CL, test software sync to PD MCU on glados. Change-Id: I6252e6344e50f00249ab105a90febd15599c936f Signed-off-by: Alec Berg <1a4429eeda29095a12e19a73405f80f5b7f37a63@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/307042 Reviewed-by: Vincent Palatin <70a9964ec8fd10b0b08fcc8623c2add25ddf99ac@chromium.org>
bsd-3-clause
coreboot/chrome-ec,coreboot/chrome-ec,akappy7/ChromeOS_EC_LED_Diagnostics,coreboot/chrome-ec,akappy7/ChromeOS_EC_LED_Diagnostics,coreboot/chrome-ec,akappy7/ChromeOS_EC_LED_Diagnostics,coreboot/chrome-ec,akappy7/ChromeOS_EC_LED_Diagnostics,akappy7/ChromeOS_EC_LED_Diagnostics,coreboot/chrome-ec
cb3e0ca7865d920bd89997046641b48c040e2a36
/* encrypted keys */ static const uint32_t internal_device_number = 0; static const uint8_t internal_dk_list[][21] = { { 0 }, }; static const uint8_t internal_pk_list[][16] = { { 0 }, }; static const uint8_t internal_hc_list[][112] = { { 0 }, }; /* customize this function to "hide" the keys in the binary */ static void decrypt_key(uint8_t *out, const uint8_t *in, size_t size) { memcpy(out, in, size); }
/* encrypted keys */ static const uint32_t internal_device_number = 0; static const uint8_t internal_dk_list[][21] = { { }, }; static const uint8_t internal_pk_list[][16] = { { }, }; static const uint8_t internal_hc_list[][112] = { { }, }; /* customize this function to "hide" the keys in the binary */ static void decrypt_key(uint8_t *out, const uint8_t *in, size_t size) { memcpy(out, in, size); }
--- +++ @@ -4,18 +4,15 @@ static const uint32_t internal_device_number = 0; static const uint8_t internal_dk_list[][21] = { - { - }, + { 0 }, }; static const uint8_t internal_pk_list[][16] = { - { - }, + { 0 }, }; static const uint8_t internal_hc_list[][112] = { - { - }, + { 0 }, }; /* customize this function to "hide" the keys in the binary */
Fix MSVC error C2133 : unknown size of multi-dimensional static const arrays (despite supposed support of C99). Have not confirmed if this breaks anything yet.
lgpl-2.1
mwgoldsmith/aacs,mwgoldsmith/aacs
9c1035bc14a399b6bf5d45a8cce233d0fc340c53
#pragma once class VolumeTransformation { public: /// <summary> /// Transforms a given volume level to a new ("virtual") level based on a /// formula or set of rules (e.g., a volume curve transformation). /// </summary> virtual float Apply(float vol) = 0; /// <summary> /// Given a transformed ("virtual") volume value, this function reverts it /// back to its original value (assuming the given value was produced /// by the ToVirtual() function). /// </summary> virtual float Revert(float vol) = 0; /// <summary> /// Applies several transformations supplied as a vector to the initial /// value provided. The transformations are applied in order of appearance /// in the vector. /// </summary> static float ApplyTransformations( std::vector<VolumeTransformation *> &transforms, float initialVal) { float newVal = initialVal; for (VolumeTransformation *trans : transforms) { newVal = trans->Apply(newVal); } return newVal; } /// <summary> /// Reverts several transformations, starting with a transformed ("virtual") /// value. This method reverts the transformations in reverse order. /// </summary> static float RevertTransformations( std::vector<VolumeTransformation *> &transforms, float virtVal) { float newVal = virtVal; for (auto it = transforms.rbegin(); it != transforms.rend(); ++it) { newVal = (*it)->Revert(newVal); } return newVal; } };
#pragma once class VolumeTransformation { public: /// <summary> /// Transforms a given volume level to a new ("virtual") level based on a /// formula or set of rules (e.g., a volume curve transformation). /// </summary> virtual float Apply(float vol) = 0; /// <summary> /// Given a transformed ("virtual") volume value, this function reverts it /// back to its original value (assuming the given value was produced /// by the ToVirtual() function). /// </summary> virtual float Revert(float vol) = 0; };
--- +++ @@ -14,4 +14,31 @@ /// by the ToVirtual() function). /// </summary> virtual float Revert(float vol) = 0; + + /// <summary> + /// Applies several transformations supplied as a vector to the initial + /// value provided. The transformations are applied in order of appearance + /// in the vector. + /// </summary> + static float ApplyTransformations( + std::vector<VolumeTransformation *> &transforms, float initialVal) { + float newVal = initialVal; + for (VolumeTransformation *trans : transforms) { + newVal = trans->Apply(newVal); + } + return newVal; + } + + /// <summary> + /// Reverts several transformations, starting with a transformed ("virtual") + /// value. This method reverts the transformations in reverse order. + /// </summary> + static float RevertTransformations( + std::vector<VolumeTransformation *> &transforms, float virtVal) { + float newVal = virtVal; + for (auto it = transforms.rbegin(); it != transforms.rend(); ++it) { + newVal = (*it)->Revert(newVal); + } + return newVal; + } };
Add methods to apply multiple transformations
bsd-2-clause
malensek/3RVX,malensek/3RVX,malensek/3RVX
090cf42f736ad66ecc9360cf2770d83f8ea30574
/* stacks.h * Copyright: (When this is determined...it will go here) * CVS Info * $Id$ * Overview: * Stack handling routines for Parrot * Data Structure and Algorithms: * History: * Notes: * References: */ #if !defined(PARROT_STACKS_H_GUARD) #define PARROT_STACKS_H_GUARD #include "parrot/parrot.h" #define STACK_CHUNK_DEPTH 256 struct Stack_Entry { INTVAL entry_type; INTVAL flags; void (*cleanup)(struct Stack_Entry *); union { FLOATVAL num_val; INTVAL int_val; PMC *pmc_val; STRING *string_val; void *generic_pointer; } entry; }; struct Stack { INTVAL used; INTVAL free; struct StackChunk *next; struct StackChunk *prev; struct Stack_Entry entry[STACK_CHUNK_DEPTH]; }; struct Stack_Entry *push_generic_entry(struct Perl_Interp *, void *thing, INTVAL type, void *cleanup); void *pop_generic_entry(struct Perl_Interp *, void *where, INTVAL type); void toss_generic_entry(struct Perl_Interp *, INTVAL type); #endif /* * Local variables: * c-indentation-style: bsd * c-basic-offset: 4 * indent-tabs-mode: nil * End: * * vim: expandtab shiftwidth=4: */
/* stacks.h * Copyright: (When this is determined...it will go here) * CVS Info * $Id$ * Overview: * Stack handling routines for Parrot * Data Structure and Algorithms: * History: * Notes: * References: */ #if !defined(PARROT_STACKS_H_GUARD) #define PARROT_STACKS_H_GUARD #include "parrot/parrot.h" #define STACK_CHUNK_DEPTH 256 struct Stack_Entry { INTVAL entry_type; INTVAL flags; void (*cleanup)(struct Stack_Entry *); union { FLOATVAL num_val; INTVAL int_val; PMC *pmc_val; STRING *string_val; void *generic_pointer; } entry; }; struct Stack { INTVAL used; INTVAL free; struct StackChunk *next; struct StackChunk *prev; struct Stack_Entry entry[STACK_CHUNK_DEPTH]; }; struct Stack_Entry *push_generic_entry(struct Perl_Interp *, void *thing, INTVAL type, void *cleanup); void *pop_generic_entry(struct Perl_Interp *, void *where, INTVAL type); void toss_geleric_entry(struct Perl_Interp *, INTVAL type); #endif /* * Local variables: * c-indentation-style: bsd * c-basic-offset: 4 * indent-tabs-mode: nil * End: * * vim: expandtab shiftwidth=4: */
--- +++ @@ -40,7 +40,7 @@ struct Stack_Entry *push_generic_entry(struct Perl_Interp *, void *thing, INTVAL type, void *cleanup); void *pop_generic_entry(struct Perl_Interp *, void *where, INTVAL type); -void toss_geleric_entry(struct Perl_Interp *, INTVAL type); +void toss_generic_entry(struct Perl_Interp *, INTVAL type); #endif
Fix typo in function name git-svn-id: 6e74a02f85675cec270f5d931b0f6998666294a3@255 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
artistic-2.0
FROGGS/parrot,parrot/parrot,youprofit/parrot,tewk/parrot-select,youprofit/parrot,tewk/parrot-select,tkob/parrot,gagern/parrot,FROGGS/parrot,gagern/parrot,FROGGS/parrot,tewk/parrot-select,parrot/parrot,tkob/parrot,gagern/parrot,parrot/parrot,gitster/parrot,youprofit/parrot,tkob/parrot,tkob/parrot,tkob/parrot,gagern/parrot,tewk/parrot-select,gagern/parrot,gitster/parrot,parrot/parrot,tkob/parrot,tewk/parrot-select,fernandobrito/parrot,gagern/parrot,gagern/parrot,youprofit/parrot,youprofit/parrot,FROGGS/parrot,FROGGS/parrot,FROGGS/parrot,fernandobrito/parrot,gitster/parrot,gitster/parrot,tkob/parrot,fernandobrito/parrot,tewk/parrot-select,gitster/parrot,youprofit/parrot,fernandobrito/parrot,gitster/parrot,youprofit/parrot,fernandobrito/parrot,tkob/parrot,fernandobrito/parrot,parrot/parrot,fernandobrito/parrot,gitster/parrot,FROGGS/parrot,FROGGS/parrot,tewk/parrot-select,youprofit/parrot
12335f0514a13e146f88c7ada3416d2ab99aa5a8
int sum_of_even_squares(int* a, unsigned int length) { int total = 0; for (unsigned int i = 0; i < length; i++) { if (a[i] % 2 == 0) { total += a[i] * a[i]; } } return total; } #include <assert.h> static int a[] = {7, 3, -8, 4, 1, 0, 11, 2}; int main() { assert(sum_of_even_squares(a, 0) == 0); assert(sum_of_even_squares(a, 1) == 0); assert(sum_of_even_squares(a, 2) == 0); assert(sum_of_even_squares(a, 3) == 64); assert(sum_of_even_squares(a, 4) == 80); assert(sum_of_even_squares(a, 5) == 80); assert(sum_of_even_squares(a, 6) == 80); assert(sum_of_even_squares(a, 7) == 80); assert(sum_of_even_squares(a, 8) == 84); return 0; }
int sum_of_even_squares(int* a, unsigned int length) { int total = 0; for (unsigned int i = 0; i < length; i++) { if (a[i] % 2 == 0) { total += a[i] * a[i]; } } return total; }
--- +++ @@ -7,3 +7,20 @@ } return total; } + +#include <assert.h> + +static int a[] = {7, 3, -8, 4, 1, 0, 11, 2}; + +int main() { + assert(sum_of_even_squares(a, 0) == 0); + assert(sum_of_even_squares(a, 1) == 0); + assert(sum_of_even_squares(a, 2) == 0); + assert(sum_of_even_squares(a, 3) == 64); + assert(sum_of_even_squares(a, 4) == 80); + assert(sum_of_even_squares(a, 5) == 80); + assert(sum_of_even_squares(a, 6) == 80); + assert(sum_of_even_squares(a, 7) == 80); + assert(sum_of_even_squares(a, 8) == 84); + return 0; +}
Add asserts to C sum of even squares
mit
rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple
0a422f6007fab2b8c41cb0c0b6d76e941b3fb913
// Copyright 2010-2014 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #pragma once #include "Stdafx.h" #include "include/cef_string_visitor.h" namespace CefSharp { private class StringVisitor : public CefStringVisitor { private: gcroot<IStringVisitor^> _visitor; public: StringVisitor(IStringVisitor^ visitor) : _visitor(visitor) { } ~StringVisitor() { _visitor = nullptr; } virtual void Visit(const CefString& string) OVERRIDE; IMPLEMENT_REFCOUNTING(StringVisitor); }; }
// Copyright 2010-2014 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #pragma once #include "Stdafx.h" #include "include/cef_string_visitor.h" namespace CefSharp { private class StringVisitor : public CefStringVisitor { private: gcroot<IStringVisitor^> _visitor; public: StringVisitor(IStringVisitor^ visitor) : _visitor(visitor) { } ~StringVisitor() { _visitor = nullptr; } virtual void Visit(const CefString& string) OVERRIDE; IMPLEMENT_REFCOUNTING(StringVisitor); }; }
--- +++ @@ -11,7 +11,7 @@ { private class StringVisitor : public CefStringVisitor { - private: + private: gcroot<IStringVisitor^> _visitor; public:
Fix minor indentation issue (formatting)
bsd-3-clause
joshvera/CefSharp,windygu/CefSharp,haozhouxu/CefSharp,NumbersInternational/CefSharp,jamespearce2006/CefSharp,Livit/CefSharp,zhangjingpu/CefSharp,illfang/CefSharp,VioletLife/CefSharp,yoder/CefSharp,rlmcneary2/CefSharp,NumbersInternational/CefSharp,zhangjingpu/CefSharp,Haraguroicha/CefSharp,wangzheng888520/CefSharp,rlmcneary2/CefSharp,gregmartinhtc/CefSharp,twxstar/CefSharp,illfang/CefSharp,dga711/CefSharp,ITGlobal/CefSharp,yoder/CefSharp,zhangjingpu/CefSharp,haozhouxu/CefSharp,jamespearce2006/CefSharp,rlmcneary2/CefSharp,ruisebastiao/CefSharp,zhangjingpu/CefSharp,VioletLife/CefSharp,NumbersInternational/CefSharp,gregmartinhtc/CefSharp,twxstar/CefSharp,jamespearce2006/CefSharp,battewr/CefSharp,dga711/CefSharp,Haraguroicha/CefSharp,wangzheng888520/CefSharp,yoder/CefSharp,gregmartinhtc/CefSharp,yoder/CefSharp,Octopus-ITSM/CefSharp,windygu/CefSharp,battewr/CefSharp,dga711/CefSharp,illfang/CefSharp,wangzheng888520/CefSharp,jamespearce2006/CefSharp,ruisebastiao/CefSharp,ITGlobal/CefSharp,wangzheng888520/CefSharp,Haraguroicha/CefSharp,rover886/CefSharp,joshvera/CefSharp,ITGlobal/CefSharp,rover886/CefSharp,battewr/CefSharp,haozhouxu/CefSharp,AJDev77/CefSharp,twxstar/CefSharp,rlmcneary2/CefSharp,AJDev77/CefSharp,joshvera/CefSharp,ruisebastiao/CefSharp,gregmartinhtc/CefSharp,jamespearce2006/CefSharp,Haraguroicha/CefSharp,Octopus-ITSM/CefSharp,Livit/CefSharp,battewr/CefSharp,AJDev77/CefSharp,AJDev77/CefSharp,haozhouxu/CefSharp,VioletLife/CefSharp,VioletLife/CefSharp,Haraguroicha/CefSharp,Livit/CefSharp,rover886/CefSharp,illfang/CefSharp,dga711/CefSharp,windygu/CefSharp,Octopus-ITSM/CefSharp,Octopus-ITSM/CefSharp,rover886/CefSharp,Livit/CefSharp,NumbersInternational/CefSharp,ruisebastiao/CefSharp,twxstar/CefSharp,joshvera/CefSharp,rover886/CefSharp,ITGlobal/CefSharp,windygu/CefSharp
3f76bfade6c09f340aa3c5d1d53ea9bbb736761f
/* Copyright (C) 2002 Timo Sirainen */ #include "common.h" #include "mail-namespace.h" #include "commands.h" bool cmd_create(struct client_command_context *cmd) { struct mail_namespace *ns; const char *mailbox, *full_mailbox; bool directory; size_t len; /* <mailbox> */ if (!client_read_string_args(cmd, 1, &mailbox)) return FALSE; full_mailbox = mailbox; ns = client_find_namespace(cmd, &mailbox); if (ns == NULL) return TRUE; len = strlen(full_mailbox); if (len == 0 || full_mailbox[len-1] != ns->sep) directory = FALSE; else { /* name ends with hierarchy separator - client is just informing us that it wants to create children under this mailbox. */ directory = TRUE; mailbox = t_strndup(mailbox, strlen(mailbox)-1); full_mailbox = t_strndup(full_mailbox, len-1); } if (!client_verify_mailbox_name(cmd, full_mailbox, FALSE, TRUE)) return TRUE; if (mail_storage_mailbox_create(ns->storage, mailbox, directory) < 0) client_send_storage_error(cmd, ns->storage); else client_send_tagline(cmd, "OK Create completed."); return TRUE; }
/* Copyright (C) 2002 Timo Sirainen */ #include "common.h" #include "mail-namespace.h" #include "commands.h" bool cmd_create(struct client_command_context *cmd) { struct mail_namespace *ns; const char *mailbox, *full_mailbox; bool directory; size_t len; /* <mailbox> */ if (!client_read_string_args(cmd, 1, &mailbox)) return FALSE; full_mailbox = mailbox; ns = client_find_namespace(cmd, &mailbox); if (ns == NULL) return TRUE; len = strlen(full_mailbox); if (len == 0 || full_mailbox[len-1] != ns->sep) directory = FALSE; else { /* name ends with hierarchy separator - client is just informing us that it wants to create children under this mailbox. */ directory = TRUE; mailbox = t_strndup(mailbox, len-1); full_mailbox = t_strndup(full_mailbox, strlen(full_mailbox)-1); } if (!client_verify_mailbox_name(cmd, full_mailbox, FALSE, TRUE)) return TRUE; if (mail_storage_mailbox_create(ns->storage, mailbox, directory) < 0) client_send_storage_error(cmd, ns->storage); else client_send_tagline(cmd, "OK Create completed."); return TRUE; }
--- +++ @@ -28,8 +28,8 @@ informing us that it wants to create children under this mailbox. */ directory = TRUE; - mailbox = t_strndup(mailbox, len-1); - full_mailbox = t_strndup(full_mailbox, strlen(full_mailbox)-1); + mailbox = t_strndup(mailbox, strlen(mailbox)-1); + full_mailbox = t_strndup(full_mailbox, len-1); } if (!client_verify_mailbox_name(cmd, full_mailbox, FALSE, TRUE))
CREATE ns_prefix/box/ didn't work right when namespace prefix existed.
mit
LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot
08cd66d0c280fc5c89c40e13156bb298f7f3a49d
/* * Copyright 2014, General Dynamics C4 Systems * * This software may be distributed and modified according to the terms of * the GNU General Public License version 2. Note that NO WARRANTY is provided. * See "LICENSE_GPLv2.txt" for details. * * @TAG(GD_GPL) */ #ifndef __ARCH_TYPES_H #define __ARCH_TYPES_H #include <config.h> #include <assert.h> #include <stdint.h> #if defined(CONFIG_ARCH_IA32) compile_assert(long_is_32bits, sizeof(unsigned long) == 4) #elif defined(CONFIG_ARCH_X86_64) compile_assert(long_is_64bits, sizeof(unsigned long) == 8) #endif typedef unsigned long word_t; typedef word_t vptr_t; typedef word_t paddr_t; typedef word_t pptr_t; typedef word_t cptr_t; typedef word_t dev_id_t; typedef word_t cpu_id_t; typedef word_t node_id_t; typedef word_t dom_t; /* for libsel4 headers that the kernel shares */ typedef word_t seL4_Word; typedef cptr_t seL4_CPtr; typedef uint32_t seL4_Uint32; typedef uint8_t seL4_Uint8; typedef node_id_t seL4_NodeId; typedef paddr_t seL4_PAddr; typedef dom_t seL4_Domain; #endif
/* * Copyright 2014, General Dynamics C4 Systems * * This software may be distributed and modified according to the terms of * the GNU General Public License version 2. Note that NO WARRANTY is provided. * See "LICENSE_GPLv2.txt" for details. * * @TAG(GD_GPL) */ #ifndef __ARCH_TYPES_H #define __ARCH_TYPES_H #include <assert.h> #include <stdint.h> compile_assert(long_is_32bits, sizeof(unsigned long) == 4) typedef unsigned long word_t; typedef word_t vptr_t; typedef word_t paddr_t; typedef word_t pptr_t; typedef word_t cptr_t; typedef word_t dev_id_t; typedef word_t cpu_id_t; typedef word_t node_id_t; typedef word_t dom_t; /* for libsel4 headers that the kernel shares */ typedef word_t seL4_Word; typedef cptr_t seL4_CPtr; typedef uint32_t seL4_Uint32; typedef uint8_t seL4_Uint8; typedef node_id_t seL4_NodeId; typedef paddr_t seL4_PAddr; typedef dom_t seL4_Domain; #endif
--- +++ @@ -11,10 +11,15 @@ #ifndef __ARCH_TYPES_H #define __ARCH_TYPES_H +#include <config.h> #include <assert.h> #include <stdint.h> +#if defined(CONFIG_ARCH_IA32) compile_assert(long_is_32bits, sizeof(unsigned long) == 4) +#elif defined(CONFIG_ARCH_X86_64) +compile_assert(long_is_64bits, sizeof(unsigned long) == 8) +#endif typedef unsigned long word_t; typedef word_t vptr_t;
x64: Check size of unsigned long
bsd-2-clause
cmr/seL4,cmr/seL4,cmr/seL4
726f5edaf516838c22f9c8e89b7abee974a84b94
/* * Copyright (c) 2016 Jan Hoffmann * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "lib/data.h" #include "windows/main_window.h" #include <pebble.h> static void init(void) { if (data_init_receiver()) { main_window_push(); } } # ifndef PBL_PLATFORM_APLITE static void app_glance_reload_callback(AppGlanceReloadSession *session, size_t limit, void *context) { size_t count = data_get_fast_seller_count(); if (limit < count) { count = limit; } AppGlanceSlice slice = (AppGlanceSlice) {}; slice.layout.icon = APP_GLANCE_SLICE_DEFAULT_ICON; data_fast_seller *fast_seller; for (unsigned int i = 0; i < count; i++) { fast_seller = data_get_fast_seller(i); slice.layout.subtitle_template_string = fast_seller->title; slice.expiration_time = fast_seller->date; AppGlanceResult result = app_glance_add_slice(session, slice); if (result != APP_GLANCE_RESULT_SUCCESS) { APP_LOG(APP_LOG_LEVEL_ERROR, "Failed to add app glance slice: %d", result); } } data_deinit(); } #endif static void deinit(void) { # ifndef PBL_PLATFORM_APLITE if (data_get_fast_seller_count() > 0) { app_glance_reload(app_glance_reload_callback, NULL); } else { data_deinit(); } # else data_deinit(); # endif } int main(void) { init(); app_event_loop(); deinit(); }
/* * Copyright (c) 2016 Jan Hoffmann * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "windows/main_window.h" #include <pebble.h> static void init(void) { main_window_push(); } static void deinit(void) { } int main(void) { init(); app_event_loop(); deinit(); }
--- +++ @@ -6,16 +6,56 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include "lib/data.h" #include "windows/main_window.h" #include <pebble.h> static void init(void) { - main_window_push(); + if (data_init_receiver()) { + main_window_push(); + } } +# ifndef PBL_PLATFORM_APLITE +static void app_glance_reload_callback(AppGlanceReloadSession *session, size_t limit, void *context) { + size_t count = data_get_fast_seller_count(); + if (limit < count) { + count = limit; + } + + AppGlanceSlice slice = (AppGlanceSlice) {}; + slice.layout.icon = APP_GLANCE_SLICE_DEFAULT_ICON; + + data_fast_seller *fast_seller; + + for (unsigned int i = 0; i < count; i++) { + fast_seller = data_get_fast_seller(i); + + slice.layout.subtitle_template_string = fast_seller->title; + slice.expiration_time = fast_seller->date; + + AppGlanceResult result = app_glance_add_slice(session, slice); + if (result != APP_GLANCE_RESULT_SUCCESS) { + APP_LOG(APP_LOG_LEVEL_ERROR, "Failed to add app glance slice: %d", result); + } + } + + data_deinit(); +} +#endif + static void deinit(void) { + # ifndef PBL_PLATFORM_APLITE + if (data_get_fast_seller_count() > 0) { + app_glance_reload(app_glance_reload_callback, NULL); + } else { + data_deinit(); + } + # else + data_deinit(); + # endif } int main(void) {
Set fast sellers as app glance on supported watches
mpl-2.0
janh/mensa-stuttgart,janh/mensa-stuttgart,janh/mensa-stuttgart,janh/mensa-stuttgart
39a74c1552c74910eaac60ed8574ef34e5e5ad5c
// // WebHereTests.h // WebHereTests // // Created by Rui D Lopes on 25/03/13. // Copyright (c) 2013 Rui D Lopes. All rights reserved. // #import <SenTestingKit/SenTestingKit.h> #import <Kiwi/Kiwi.h> #import <Nocilla/Nocilla.h> #import <OCLogTemplate/OCLogTemplate.h> #import <WebHere/WebHere.h> // Fixtures #import "WHPerson.h" #import "WHAdmin.h" #import "WHUnmatchedPerson.h" #import "WHPersonQueryForm.h" #import "WHNSObject.h" #import "WHLoginForm.h" # define LOGGING_ENABLED 1 # define LOGGING_LEVEL_TRACE 0 # define LOGGING_LEVEL_INFO 1 # define LOGGING_LEVEL_ERROR 1 # define LOGGING_LEVEL_DEBUG 1
// // WebHereTests.h // WebHereTests // // Created by Rui D Lopes on 25/03/13. // Copyright (c) 2013 Rui D Lopes. All rights reserved. // #import <Kiwi/Kiwi.h> #import <Nocilla/Nocilla.h> #import <OCLogTemplate/OCLogTemplate.h> #import <WebHere/WebHere.h> // Fixtures #import "WHPerson.h" #import "WHAdmin.h" #import "WHUnmatchedPerson.h" #import "WHPersonQueryForm.h" #import "WHNSObject.h" #import "WHLoginForm.h"
--- +++ @@ -6,6 +6,7 @@ // Copyright (c) 2013 Rui D Lopes. All rights reserved. // +#import <SenTestingKit/SenTestingKit.h> #import <Kiwi/Kiwi.h> #import <Nocilla/Nocilla.h> #import <OCLogTemplate/OCLogTemplate.h> @@ -19,3 +20,8 @@ #import "WHNSObject.h" #import "WHLoginForm.h" +# define LOGGING_ENABLED 1 +# define LOGGING_LEVEL_TRACE 0 +# define LOGGING_LEVEL_INFO 1 +# define LOGGING_LEVEL_ERROR 1 +# define LOGGING_LEVEL_DEBUG 1
Add SenTestingKit to test targets
mit
noughts/WebHere,noughts/WebHere,noughts/WebHere,noughts/WebHere,rdlopes/WebHere,rdlopes/WebHere,rdlopes/WebHere
fe6eb2643bf697cd752a0d24b3e278dd42f16644
/* * Copyright (c) Facebook, Inc. and its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include <fmt/compile.h> #if defined(__GNUC__) && !defined(__clang__) && __GNUC__ <= 8 // Forcefully disable compiled format strings for GCC 8 & below until fmt is // updated to do this automatically. #undef FMT_COMPILE #endif // Fallback to runtime format string processing for compatibility with fmt 6.x. #ifndef FMT_COMPILE #define FMT_COMPILE(format_str) format_str #endif
/* * Copyright (c) Facebook, Inc. and its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include <fmt/compile.h> // Fallback to runtime format string processing for compatibility with fmt 6.x. #ifndef FMT_COMPILE #define FMT_COMPILE(format_str) format_str #endif
--- +++ @@ -18,6 +18,12 @@ #include <fmt/compile.h> +#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ <= 8 +// Forcefully disable compiled format strings for GCC 8 & below until fmt is +// updated to do this automatically. +#undef FMT_COMPILE +#endif + // Fallback to runtime format string processing for compatibility with fmt 6.x. #ifndef FMT_COMPILE #define FMT_COMPILE(format_str) format_str
Disable compiled format for GCC 8 & below Summary: As per title, as fmt doesn't currently handle them well. Reviewed By: vitaut Differential Revision: D26004515 fbshipit-source-id: dbbd1e6550fa10c4a6fcb0fc5597887c9411ca70
apache-2.0
facebook/folly,facebook/folly,facebook/folly,facebook/folly,facebook/folly
bc7bad10693b5c6616a424ff64278a6eeb8925da
/*------------------------------------------------------------------------- * * FILE * pqxx/util.h * * DESCRIPTION * Various utility definitions for libpqxx * * Copyright (c) 2001-2004, Jeroen T. Vermeulen <jtv@xs4all.nl> * * See COPYING for copyright license. If you did not receive a file called * COPYING with this source code, please notify the distributor of this mistake, * or contact the author. * *------------------------------------------------------------------------- */ #ifndef PQXX_UTIL_H #define PQXX_UTIL_H #if !defined(PQXXYES_I_KNOW_DEPRECATED_HEADER) #define PQXXYES_I_KNOW_DEPRECATED_HEADER #if defined(PQXX_HAVE_CPP_WARNING) #warning "Deprecated libpqxx header included. Use headers without '.h'" #elif defined(PQXX_HAVE_CPP_PRAGMA_MESSAGE) #pragma message("Deprecated libpqxx header included. Use headers without '.h'") #endif #endif #define PQXX_DEPRECATED_HEADERS #include "pqxx/util" #endif
/*------------------------------------------------------------------------- * * FILE * pqxx/util.h * * DESCRIPTION * Various utility definitions for libpqxx * * Copyright (c) 2001-2004, Jeroen T. Vermeulen <jtv@xs4all.nl> * * See COPYING for copyright license. If you did not receive a file called * COPYING with this source code, please notify the distributor of this mistake, * or contact the author. * *------------------------------------------------------------------------- */ #ifndef PQXX_UTIL_H #define PQXX_UTIL_H #if defined(PQXX_HAVE_CPP_WARNING) #warning "Deprecated libpqxx header included. Use headers without '.h'" #elif defined(PQXX_HAVE_CPP_PRAGMA_MESSAGE) #pragma message("Deprecated libpqxx header included. Use headers without '.h'") #endif #define PQXX_DEPRECATED_HEADERS #include "pqxx/util" #endif
--- +++ @@ -17,10 +17,13 @@ #ifndef PQXX_UTIL_H #define PQXX_UTIL_H +#if !defined(PQXXYES_I_KNOW_DEPRECATED_HEADER) +#define PQXXYES_I_KNOW_DEPRECATED_HEADER #if defined(PQXX_HAVE_CPP_WARNING) #warning "Deprecated libpqxx header included. Use headers without '.h'" #elif defined(PQXX_HAVE_CPP_PRAGMA_MESSAGE) #pragma message("Deprecated libpqxx header included. Use headers without '.h'") +#endif #endif #define PQXX_DEPRECATED_HEADERS
Allow suppression of "deprecated header" warning
bsd-3-clause
mpapierski/pqxx,mpapierski/pqxx,mpapierski/pqxx
eff847ce8d402b663bf19af3d16da2e3f5cb2bbd
// // MGSFragariaPrefsViewController.h // Fragaria // // Created by Jonathan on 22/10/2012. // // #import <Cocoa/Cocoa.h> /** * MGSFragariaPrefsViewController provides a base class for other Fragaria * preferences controllers. It is not implemented directly anywhere. * @see MGSFragariaFontsAndColoursPrefsViewController * @see MGSFragariaTextEditingPrefsViewController **/ @interface MGSFragariaPrefsViewController : NSViewController <NSTabViewDelegate> /** * Commit edits, discarding changes on error. * @param discard indicates whether or not to discard current uncommitted changes. **/ - (BOOL)commitEditingAndDiscard:(BOOL)discard; @end
// // MGSFragariaPrefsViewController.h // Fragaria // // Created by Jonathan on 22/10/2012. // // #import <Cocoa/Cocoa.h> /** * MGSFragariaPrefsViewController provides a base class for other Fragaria * preferences controllers. It is not implemented directly anywhere. * @see MGSFragariaFontsAndColorsPrefsViewController.h * @see MGSFragariaTextEditingPrefsViewController.h **/ @interface MGSFragariaPrefsViewController : NSViewController <NSTabViewDelegate> /** * Commit edits, discarding changes on error. **/ - (BOOL)commitEditingAndDiscard:(BOOL)discard; @end
--- +++ @@ -11,14 +11,15 @@ /** * MGSFragariaPrefsViewController provides a base class for other Fragaria * preferences controllers. It is not implemented directly anywhere. - * @see MGSFragariaFontsAndColorsPrefsViewController.h - * @see MGSFragariaTextEditingPrefsViewController.h + * @see MGSFragariaFontsAndColoursPrefsViewController + * @see MGSFragariaTextEditingPrefsViewController **/ @interface MGSFragariaPrefsViewController : NSViewController <NSTabViewDelegate> /** * Commit edits, discarding changes on error. + * @param discard indicates whether or not to discard current uncommitted changes. **/ - (BOOL)commitEditingAndDiscard:(BOOL)discard;
Add @param description for AppleDoc.
apache-2.0
shysaur/Fragaria,shysaur/Fragaria,vakoc/Fragaria,shysaur/Fragaria,shysaur/Fragaria,bitstadium/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,bitstadium/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,vakoc/Fragaria
145358e9c07bad314111000776ea0d42b97461d0
#if defined(__i386__) #define NEED_I386_TAS_ASM #endif #if defined(__sparc__) #define NEED_SPARC_TAS_ASM #endif #define HAS_TEST_AND_SET typedef unsigned char slock_t; /* This is marked as obsoleted in BSD/OS 4.3. */ #ifndef EAI_ADDRFAMILY #define EAI_ADDRFAMILY 1 #endif
#if defined(__i386__) #define NEED_I386_TAS_ASM #endif #if defined(__sparc__) #define NEED_SPARC_TAS_ASM #endif #define HAS_TEST_AND_SET typedef unsigned char slock_t;
--- +++ @@ -8,3 +8,8 @@ #define HAS_TEST_AND_SET typedef unsigned char slock_t; + +/* This is marked as obsoleted in BSD/OS 4.3. */ +#ifndef EAI_ADDRFAMILY +#define EAI_ADDRFAMILY 1 +#endif
Add define for missing EAI_ADDRFAMILY in BSD/OS 4.3.
agpl-3.0
tpostgres-projects/tPostgres,yuanzhao/gpdb,chrishajas/gpdb,ahachete/gpdb,Postgres-XL/Postgres-XL,rubikloud/gpdb,lpetrov-pivotal/gpdb,yuanzhao/gpdb,greenplum-db/gpdb,foyzur/gpdb,atris/gpdb,greenplum-db/gpdb,yuanzhao/gpdb,postmind-net/postgres-xl,50wu/gpdb,rvs/gpdb,cjcjameson/gpdb,kaknikhil/gpdb,Chibin/gpdb,Quikling/gpdb,royc1/gpdb,janebeckman/gpdb,jmcatamney/gpdb,lisakowen/gpdb,ovr/postgres-xl,lisakowen/gpdb,lpetrov-pivotal/gpdb,jmcatamney/gpdb,ahachete/gpdb,tpostgres-projects/tPostgres,xinzweb/gpdb,jmcatamney/gpdb,zaksoup/gpdb,janebeckman/gpdb,lintzc/gpdb,0x0FFF/gpdb,oberstet/postgres-xl,edespino/gpdb,cjcjameson/gpdb,tangp3/gpdb,tpostgres-projects/tPostgres,tangp3/gpdb,xinzweb/gpdb,rvs/gpdb,atris/gpdb,chrishajas/gpdb,rvs/gpdb,atris/gpdb,ashwinstar/gpdb,kaknikhil/gpdb,lisakowen/gpdb,Postgres-XL/Postgres-XL,Chibin/gpdb,lisakowen/gpdb,edespino/gpdb,jmcatamney/gpdb,royc1/gpdb,xinzweb/gpdb,oberstet/postgres-xl,atris/gpdb,CraigHarris/gpdb,50wu/gpdb,kaknikhil/gpdb,yuanzhao/gpdb,xinzweb/gpdb,lintzc/gpdb,50wu/gpdb,lisakowen/gpdb,tangp3/gpdb,Chibin/gpdb,adam8157/gpdb,arcivanov/postgres-xl,kaknikhil/gpdb,yuanzhao/gpdb,Quikling/gpdb,techdragon/Postgres-XL,adam8157/gpdb,Chibin/gpdb,royc1/gpdb,tangp3/gpdb,ahachete/gpdb,adam8157/gpdb,zaksoup/gpdb,kmjungersen/PostgresXL,foyzur/gpdb,greenplum-db/gpdb,tangp3/gpdb,cjcjameson/gpdb,randomtask1155/gpdb,arcivanov/postgres-xl,edespino/gpdb,kaknikhil/gpdb,CraigHarris/gpdb,randomtask1155/gpdb,ovr/postgres-xl,chrishajas/gpdb,randomtask1155/gpdb,Chibin/gpdb,foyzur/gpdb,adam8157/gpdb,edespino/gpdb,cjcjameson/gpdb,adam8157/gpdb,zaksoup/gpdb,rvs/gpdb,Quikling/gpdb,ashwinstar/gpdb,arcivanov/postgres-xl,ashwinstar/gpdb,CraigHarris/gpdb,lisakowen/gpdb,CraigHarris/gpdb,0x0FFF/gpdb,kmjungersen/PostgresXL,arcivanov/postgres-xl,ashwinstar/gpdb,lpetrov-pivotal/gpdb,lpetrov-pivotal/gpdb,Quikling/gpdb,xuegang/gpdb,zeroae/postgres-xl,pavanvd/postgres-xl,ahachete/gpdb,ovr/postgres-xl,edespino/gpdb,atris/gpdb,zaksoup/gpdb,rvs/gpdb,postmind-net/postgres-xl,oberstet/postgres-xl,postmind-net/postgres-xl,lpetrov-pivotal/gpdb,adam8157/gpdb,randomtask1155/gpdb,50wu/gpdb,zeroae/postgres-xl,cjcjameson/gpdb,pavanvd/postgres-xl,zeroae/postgres-xl,foyzur/gpdb,zaksoup/gpdb,janebeckman/gpdb,kmjungersen/PostgresXL,techdragon/Postgres-XL,CraigHarris/gpdb,xinzweb/gpdb,zeroae/postgres-xl,chrishajas/gpdb,0x0FFF/gpdb,Postgres-XL/Postgres-XL,jmcatamney/gpdb,royc1/gpdb,0x0FFF/gpdb,snaga/postgres-xl,xuegang/gpdb,edespino/gpdb,ahachete/gpdb,lintzc/gpdb,yuanzhao/gpdb,edespino/gpdb,ovr/postgres-xl,ahachete/gpdb,xuegang/gpdb,tpostgres-projects/tPostgres,jmcatamney/gpdb,Quikling/gpdb,0x0FFF/gpdb,kmjungersen/PostgresXL,50wu/gpdb,kaknikhil/gpdb,rubikloud/gpdb,lintzc/gpdb,lpetrov-pivotal/gpdb,tangp3/gpdb,techdragon/Postgres-XL,lintzc/gpdb,rubikloud/gpdb,royc1/gpdb,lisakowen/gpdb,foyzur/gpdb,snaga/postgres-xl,techdragon/Postgres-XL,xinzweb/gpdb,lpetrov-pivotal/gpdb,rubikloud/gpdb,rvs/gpdb,Quikling/gpdb,ashwinstar/gpdb,lintzc/gpdb,chrishajas/gpdb,rvs/gpdb,Chibin/gpdb,rvs/gpdb,zaksoup/gpdb,cjcjameson/gpdb,yazun/postgres-xl,cjcjameson/gpdb,lpetrov-pivotal/gpdb,atris/gpdb,kaknikhil/gpdb,kaknikhil/gpdb,zaksoup/gpdb,0x0FFF/gpdb,chrishajas/gpdb,randomtask1155/gpdb,xuegang/gpdb,jmcatamney/gpdb,xuegang/gpdb,greenplum-db/gpdb,yazun/postgres-xl,tangp3/gpdb,50wu/gpdb,0x0FFF/gpdb,kmjungersen/PostgresXL,jmcatamney/gpdb,Chibin/gpdb,cjcjameson/gpdb,foyzur/gpdb,ahachete/gpdb,royc1/gpdb,cjcjameson/gpdb,atris/gpdb,janebeckman/gpdb,adam8157/gpdb,randomtask1155/gpdb,yuanzhao/gpdb,rubikloud/gpdb,Quikling/gpdb,Chibin/gpdb,xinzweb/gpdb,tpostgres-projects/tPostgres,yazun/postgres-xl,chrishajas/gpdb,edespino/gpdb,cjcjameson/gpdb,kaknikhil/gpdb,greenplum-db/gpdb,janebeckman/gpdb,yuanzhao/gpdb,oberstet/postgres-xl,zeroae/postgres-xl,arcivanov/postgres-xl,yazun/postgres-xl,rvs/gpdb,postmind-net/postgres-xl,janebeckman/gpdb,lisakowen/gpdb,snaga/postgres-xl,Quikling/gpdb,royc1/gpdb,50wu/gpdb,oberstet/postgres-xl,rubikloud/gpdb,snaga/postgres-xl,ashwinstar/gpdb,janebeckman/gpdb,lintzc/gpdb,edespino/gpdb,tangp3/gpdb,0x0FFF/gpdb,greenplum-db/gpdb,chrishajas/gpdb,CraigHarris/gpdb,CraigHarris/gpdb,janebeckman/gpdb,Postgres-XL/Postgres-XL,rvs/gpdb,Quikling/gpdb,xuegang/gpdb,snaga/postgres-xl,zaksoup/gpdb,yuanzhao/gpdb,yazun/postgres-xl,rubikloud/gpdb,CraigHarris/gpdb,kaknikhil/gpdb,pavanvd/postgres-xl,ashwinstar/gpdb,atris/gpdb,lintzc/gpdb,foyzur/gpdb,xinzweb/gpdb,royc1/gpdb,janebeckman/gpdb,pavanvd/postgres-xl,randomtask1155/gpdb,ahachete/gpdb,ovr/postgres-xl,xuegang/gpdb,xuegang/gpdb,edespino/gpdb,greenplum-db/gpdb,pavanvd/postgres-xl,Quikling/gpdb,ashwinstar/gpdb,Postgres-XL/Postgres-XL,foyzur/gpdb,xuegang/gpdb,postmind-net/postgres-xl,techdragon/Postgres-XL,greenplum-db/gpdb,yuanzhao/gpdb,randomtask1155/gpdb,Chibin/gpdb,janebeckman/gpdb,CraigHarris/gpdb,Chibin/gpdb,lintzc/gpdb,50wu/gpdb,rubikloud/gpdb,adam8157/gpdb,arcivanov/postgres-xl
77645b99f438be1a0906126be8052ad36761b1cd
// Copyright 2018 The Crashpad Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef CRASHPAD_COMPAT_LINUX_SYS_USER_H_ #define CRASHPAD_COMPAT_LINUX_SYS_USER_H_ #include_next <sys/user.h> #include <features.h> // glibc for 64-bit ARM uses different names for these structs prior to 2.20. // However, Debian's glibc 2.19-8 backported the change so it's not sufficient // to only test the version. user_pt_regs and user_fpsimd_state are actually // defined in <asm/ptrace.h> so we use the include guard here. #if defined(__aarch64__) && defined(__GLIBC__) #if !__GLIBC_PREREQ(2, 20) && defined(__ASM_PTRACE_H) using user_regs_struct = user_pt_regs; using user_fpsimd_struct = user_fpsimd_state; #endif #endif #endif // CRASHPAD_COMPAT_LINUX_SYS_USER_H_
// Copyright 2018 The Crashpad Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef CRASHPAD_COMPAT_LINUX_SYS_USER_H_ #define CRASHPAD_COMPAT_LINUX_SYS_USER_H_ #include_next <sys/user.h> #include <features.h> // glibc for 64-bit ARM uses different names for these structs prior to 2.20. #if defined(__aarch64__) && defined(__GLIBC__) #if !__GLIBC_PREREQ(2, 20) using user_regs_struct = user_pt_regs; using user_fpsimd_struct = user_fpsimd_state; #endif #endif #endif // CRASHPAD_COMPAT_LINUX_SYS_USER_H_
--- +++ @@ -20,8 +20,11 @@ #include <features.h> // glibc for 64-bit ARM uses different names for these structs prior to 2.20. +// However, Debian's glibc 2.19-8 backported the change so it's not sufficient +// to only test the version. user_pt_regs and user_fpsimd_state are actually +// defined in <asm/ptrace.h> so we use the include guard here. #if defined(__aarch64__) && defined(__GLIBC__) -#if !__GLIBC_PREREQ(2, 20) +#if !__GLIBC_PREREQ(2, 20) && defined(__ASM_PTRACE_H) using user_regs_struct = user_pt_regs; using user_fpsimd_struct = user_fpsimd_state; #endif
Fix compilation issue on arm64 with Debian's glibc 2.19 Fuchsia's glibc is derived from Debian so it's causing issues on Fuchsia. Change-Id: I46368eb08f7cc7338783f115869e5c761f35e465 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2630288 Reviewed-by: Joshua Peraza <f5809a5e35ec7e1bd0e25cb0a0b68bb433cf6f17@chromium.org> Commit-Queue: Joshua Peraza <f5809a5e35ec7e1bd0e25cb0a0b68bb433cf6f17@chromium.org>
apache-2.0
chromium/crashpad,chromium/crashpad,chromium/crashpad
37dd8f83def8e85cdf1b71528832980021078d86
// -*- c++ -*- #ifndef QT_CAM_IMAGE_MODE_H #define QT_CAM_IMAGE_MODE_H #include "qtcammode.h" #include <gst/pbutils/encoding-profile.h> class QtCamDevicePrivate; class QtCamImageModePrivate; class QtCamImageSettings; class QtCamImageMode : public QtCamMode { Q_OBJECT public: QtCamImageMode(QtCamDevicePrivate *d, QObject *parent = 0); ~QtCamImageMode(); virtual bool canCapture(); virtual void applySettings(); bool capture(const QString& fileName); bool setSettings(const QtCamImageSettings& settings); void setProfile(GstEncodingProfile *profile); protected: virtual void start(); virtual void stop(); private: QtCamImageModePrivate *d_ptr; }; #endif /* QT_CAM_IMAGE_MODE_H */
// -*- c++ -*- #ifndef QT_CAM_IMAGE_MODE_H #define QT_CAM_IMAGE_MODE_H #include "qtcammode.h" #include <gst/pbutils/encoding-profile.h> class QtCamDevicePrivate; class QtCamImageModePrivate; class QtCamImageSettings; class QtCamImageMode : public QtCamMode { Q_OBJECT public: QtCamImageMode(QtCamDevicePrivate *d, QObject *parent = 0); ~QtCamImageMode(); virtual bool canCapture(); virtual void applySettings(); bool capture(const QString& fileName); bool setSettings(const QtCamImageSettings& settings); void setProfile(GstEncodingProfile *profile); signals: void imageSaved(const QString& fileName); protected: virtual void start(); virtual void stop(); private: QtCamImageModePrivate *d_ptr; }; #endif /* QT_CAM_IMAGE_MODE_H */
--- +++ @@ -26,9 +26,6 @@ void setProfile(GstEncodingProfile *profile); -signals: - void imageSaved(const QString& fileName); - protected: virtual void start(); virtual void stop();
Remove imageSaved() signal as it is old code.
lgpl-2.1
mlehtima/cameraplus,mer-hybris-kis3/cameraplus,mer-hybris-kis3/cameraplus,alinelena/cameraplus,mer-hybris-kis3/cameraplus,alinelena/cameraplus,mlehtima/cameraplus,alinelena/cameraplus,foolab/cameraplus,mer-hybris-kis3/cameraplus,foolab/cameraplus,foolab/cameraplus,mlehtima/cameraplus,foolab/cameraplus,mlehtima/cameraplus,alinelena/cameraplus
60288500c0eca5d620a81637bc4d0d7e290befd4
#ifndef _TILESET_H_ #define _TILESET_H_ #include <SDL.h> typedef struct tileset { SDL_Surface *image; SDL_Rect *clip; int length; } tileset; int tilesetLoad(tileset *tSet, char *fileName, int width, int height, int rowLen, int length); void tilesetUnload(tileset *tSet); #endif /* _TILESET_H_ */
#ifndef _TILESET_H_ #define _TILESET_H_ #include <SDL.h> //#define TILESET_ROW_LENGTH 8 typedef struct tileset { SDL_Surface *image; SDL_Rect *clip; int length; } tileset; int tilesetLoad(tileset *tSet, char *fileName, int width, int height, int rowLen, int length); void tilesetUnload(tileset *tSet); #endif /* _TILESET_H_ */
--- +++ @@ -2,8 +2,6 @@ #define _TILESET_H_ #include <SDL.h> - -//#define TILESET_ROW_LENGTH 8 typedef struct tileset {
Remove redundant commended out code
mit
zear/shisen-seki,zear/shisen-seki
87c0785d81c31a969bbf8029363ea042fdd82587
/* $Id$ Everything needed by the C demo programs. Created to avoid junking up plplot.h with this stuff. */ #ifndef __PLCDEMOS_H__ #define __PLCDEMOS_H__ #include <math.h> #include <string.h> #include <ctype.h> #include "plConfig.h" #include "plplot.h" /* define PI if not defined by math.h */ /* Actually M_PI seems to be more widely used so we deprecate PI. */ #ifndef PI #define PI 3.1415926535897932384 #endif #ifndef M_PI #define M_PI 3.1415926535897932384 #endif /* various utility macros */ #ifndef MAX #define MAX(a,b) (((a) > (b)) ? (a) : (b)) #endif #ifndef MIN #define MIN(a,b) (((a) < (b)) ? (a) : (b)) #endif #ifndef ROUND #define ROUND(a) (PLINT)((a)<0. ? ((a)-.5) : ((a)+.5)) #endif #endif /* __PLCDEMOS_H__ */
/* $Id$ Everything needed by the C demo programs. Created to avoid junking up plplot.h with this stuff. */ #ifndef __PLCDEMOS_H__ #define __PLCDEMOS_H__ #include "plConfig.h" #include "plplot.h" #include <math.h> #include <string.h> #include <ctype.h> /* define PI if not defined by math.h */ /* Actually M_PI seems to be more widely used so we deprecate PI. */ #ifndef PI #define PI 3.1415926535897932384 #endif #ifndef M_PI #define M_PI 3.1415926535897932384 #endif /* various utility macros */ #ifndef MAX #define MAX(a,b) (((a) > (b)) ? (a) : (b)) #endif #ifndef MIN #define MIN(a,b) (((a) < (b)) ? (a) : (b)) #endif #ifndef ROUND #define ROUND(a) (PLINT)((a)<0. ? ((a)-.5) : ((a)+.5)) #endif #endif /* __PLCDEMOS_H__ */
--- +++ @@ -7,11 +7,12 @@ #ifndef __PLCDEMOS_H__ #define __PLCDEMOS_H__ -#include "plConfig.h" -#include "plplot.h" #include <math.h> #include <string.h> #include <ctype.h> + +#include "plConfig.h" +#include "plplot.h" /* define PI if not defined by math.h */
Move system header files to top in order to get rid of redefine warnings for Visual C++. svn path=/trunk/; revision=9609
lgpl-2.1
FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot
dd45649d55a60797d3d8b4fe665862df0cbf6a79
// LAF OS Library // Copyright (C) 2022 Igara Studio S.A. // Copyright (C) 2015-2016 David Capello // // This file is released under the terms of the MIT license. // Read LICENSE.txt for more information. #ifndef OS_GL_CONTEXT_INCLUDED #define OS_GL_CONTEXT_INCLUDED #pragma once namespace os { class GLContext { public: virtual ~GLContext() { } virtual bool isValid() { return false; } virtual bool createGLContext() { return false; } virtual void destroyGLContext() { } virtual void makeCurrent() { } virtual void swapBuffers() { } }; } // namespace os #endif
// LAF OS Library // Copyright (C) 2022 Igara Studio S.A. // Copyright (C) 2015-2016 David Capello // // This file is released under the terms of the MIT license. // Read LICENSE.txt for more information. #ifndef OS_GL_CONTEXT_INCLUDED #define OS_GL_CONTEXT_INCLUDED #pragma once namespace os { class GLContext { public: virtual ~GLContext() { } virtual bool isValid() { return false; } virtual bool createGLContext() { } virtual void destroyGLContext() { } virtual void makeCurrent() { } virtual void swapBuffers() { } }; } // namespace os #endif
--- +++ @@ -15,7 +15,7 @@ public: virtual ~GLContext() { } virtual bool isValid() { return false; } - virtual bool createGLContext() { } + virtual bool createGLContext() { return false; } virtual void destroyGLContext() { } virtual void makeCurrent() { } virtual void swapBuffers() { }
Fix GLContext::createGLContext() impl (must return a value)
mit
aseprite/laf,aseprite/laf
8f91e164d1d23a3b0dc751bc0f9185af27dcb2c7
#include <stdio.h> // k&r farenheit to celcius table int main() { float fahr, celsius; int lower, upper, step; lower = 0; upper = 300; step = 20; // first print table header printf("%s %s\n", "Fahr", "Cels"); // then calculate values and print them to table fahr = lower; while (fahr <= upper) { celsius = (5.0 / 9.0) * (fahr - 32); printf("%3.0f %6.1f\n", fahr, celsius); fahr = fahr + step; } return 0; }
#include <stdio.h> // k&r farenheit to celcius table int main() { int fahr, celsius; int lower, upper, step; lower = 0; upper = 300; step = 20; fahr = lower; while (fahr <= upper) { celsius = 5 * (fahr - 32) / 9; printf("%d\t%d\t\n", fahr, celsius); fahr = fahr + step; } return 0; }
--- +++ @@ -4,17 +4,21 @@ int main() { - int fahr, celsius; + float fahr, celsius; int lower, upper, step; lower = 0; upper = 300; step = 20; + // first print table header + printf("%s %s\n", "Fahr", "Cels"); + + // then calculate values and print them to table fahr = lower; while (fahr <= upper) { - celsius = 5 * (fahr - 32) / 9; - printf("%d\t%d\t\n", fahr, celsius); + celsius = (5.0 / 9.0) * (fahr - 32); + printf("%3.0f %6.1f\n", fahr, celsius); fahr = fahr + step; }
Use floats instead of ints, print table header
mit
oldhill/halloween,oldhill/halloween,oldhill/halloween,oldhill/halloween
23c59a06b001f447802f8a118203baca17ee2c5f
/* * Copyright IBM Corp. 2001,2008 * * This file contains the IRQ specific code for hvc_console * */ #include <linux/interrupt.h> #include "hvc_console.h" static irqreturn_t hvc_handle_interrupt(int irq, void *dev_instance) { /* if hvc_poll request a repoll, then kick the hvcd thread */ if (hvc_poll(dev_instance)) hvc_kick(); return IRQ_HANDLED; } /* * For IRQ based systems these callbacks can be used */ int notifier_add_irq(struct hvc_struct *hp, int irq) { int rc; if (!irq) { hp->irq_requested = 0; return 0; } rc = request_irq(irq, hvc_handle_interrupt, IRQF_DISABLED, "hvc_console", hp); if (!rc) hp->irq_requested = 1; return rc; } void notifier_del_irq(struct hvc_struct *hp, int irq) { if (!hp->irq_requested) return; free_irq(irq, hp); hp->irq_requested = 0; } void notifier_hangup_irq(struct hvc_struct *hp, int irq) { notifier_del_irq(hp, irq); }
/* * Copyright IBM Corp. 2001,2008 * * This file contains the IRQ specific code for hvc_console * */ #include <linux/interrupt.h> #include "hvc_console.h" static irqreturn_t hvc_handle_interrupt(int irq, void *dev_instance) { /* if hvc_poll request a repoll, then kick the hvcd thread */ if (hvc_poll(dev_instance)) hvc_kick(); return IRQ_HANDLED; } /* * For IRQ based systems these callbacks can be used */ int notifier_add_irq(struct hvc_struct *hp, int irq) { int rc; if (!irq) { hp->irq_requested = 0; return 0; } rc = request_irq(irq, hvc_handle_interrupt, IRQF_DISABLED, "hvc_console", hp); if (!rc) hp->irq_requested = 1; return rc; } void notifier_del_irq(struct hvc_struct *hp, int irq) { if (!irq) return; free_irq(irq, hp); hp->irq_requested = 0; } void notifier_hangup_irq(struct hvc_struct *hp, int irq) { notifier_del_irq(hp, irq); }
--- +++ @@ -37,7 +37,7 @@ void notifier_del_irq(struct hvc_struct *hp, int irq) { - if (!irq) + if (!hp->irq_requested) return; free_irq(irq, hp); hp->irq_requested = 0;
hvc_console: Call free_irq() only if request_irq() was successful Only call free_irq if we marked the request_irq has having succeeded instead of whenever the the sub-driver identified the interrupt to use. Signed-off-by: Milton Miller <8bd50e0fc26e21e23b28837d9acdf866b237c39d@bga.com> Signed-off-by: Benjamin Herrenschmidt <a7089bb6e7e92505d88aaff006cbdd60cc9120b6@kernel.crashing.org>
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs
c21f7a527f7757a0e246cea521a5dd3b8e1224d5
#ifndef THM_CONFIG_HG #define THM_CONFIG_HG // Block label type (must be unsigned) // # of blocks <= MAX(thm_Blklab) typedef uint32_t thm_Blklab; #endif
#ifndef THM_CONFIG_HG #define THM_CONFIG_HG // Vertex ID type // # of vertices < MAX(thm_Vid) typedef unsigned long thm_Vid; // Arc reference type // # of arcs in any digraph <= MAX(thm_Arcref) typedef unsigned long thm_Arcref; // Block label type // # of blocks < MAX(thm_Blklab) typedef unsigned long thm_Blklab; #endif
--- +++ @@ -1,16 +1,8 @@ #ifndef THM_CONFIG_HG #define THM_CONFIG_HG -// Vertex ID type -// # of vertices < MAX(thm_Vid) -typedef unsigned long thm_Vid; - -// Arc reference type -// # of arcs in any digraph <= MAX(thm_Arcref) -typedef unsigned long thm_Arcref; - -// Block label type -// # of blocks < MAX(thm_Blklab) -typedef unsigned long thm_Blklab; +// Block label type (must be unsigned) +// # of blocks <= MAX(thm_Blklab) +typedef uint32_t thm_Blklab; #endif
Move typedef to digraph header
lgpl-2.1
fsavje/scclust,fsavje/scclust,fsavje/scclust
1faf4681396ca217899ace40a2b60b04a2a8e3c3
/* * Copyright (C) 2016, Michiel Sikma <michiel@sikma.org> * MIT License */ #include <stdio.h> #include "src/game.h" #include "src/jukebox.h" /** * Starts the jukebox. */ void start_jukebox() { start_game(); }
/* * Copyright (C) 2016, Michiel Sikma <michiel@sikma.org> * MIT License */ #include <stdio.h> #include "game.h" #include "jukebox.h" /** * Starts the jukebox. */ void start_jukebox() { start_game(); }
--- +++ @@ -5,8 +5,8 @@ #include <stdio.h> -#include "game.h" -#include "jukebox.h" +#include "src/game.h" +#include "src/jukebox.h" /** * Starts the jukebox.
Use correct paths relative to root
mit
msikma/ceegee,msikma/ceegee
93a0f6dbddc577afc67be7de7ac258907f405e7d
#include "ambient_light.h" #include "tock.h" typedef struct { int intensity; bool fired; } ambient_light_data_t; // internal callback for faking synchronous reads static void ambient_light_cb(int intensity, __attribute__ ((unused)) int unused1, __attribute__ ((unused)) int unused2, void* ud) { ambient_light_data_t* result = (ambient_light_data_t*)ud; result->intensity = intensity; result->fired = true; } int ambient_light_read_intensity_sync(int* lux_value) { int err; ambient_light_data_t result = {0}; result.fired = false; err = ambient_light_subscribe(ambient_light_cb, (void*)(&result)); if (err < TOCK_SUCCESS) { return err; } err = ambient_light_start_intensity_reading(); if (err < TOCK_SUCCESS) { return err; } yield_for(&result.fired); *lux_value = result.intensity; return TOCK_SUCCESS; } int ambient_light_subscribe(subscribe_cb callback, void* userdata) { return subscribe(DRIVER_NUM_AMBIENT_LIGHT, 0, callback, userdata); } int ambient_light_start_intensity_reading(void) { return command(DRIVER_NUM_AMBIENT_LIGHT, 1, 0, 0); }
#include "ambient_light.h" #include "tock.h" typedef struct { int intensity; bool fired; } ambient_light_data_t; // callback for synchronous reads static void ambient_light_cb(int intensity, __attribute__ ((unused)) int unused1, __attribute__ ((unused)) int unused2, void* ud) { ambient_light_data_t* result = (ambient_light_data_t*)ud; result->intensity = intensity; result->fired = true; } int ambient_light_read_intensity_sync(int* lux_value) { int err; ambient_light_data_t result = {0}; result.fired = false; err = ambient_light_subscribe(ambient_light_cb, (void*)(&result)); if (err < TOCK_SUCCESS) { return err; } err = ambient_light_start_intensity_reading(); if (err < TOCK_SUCCESS) { return err; } yield_for(&result.fired); *lux_value = result.intensity; return TOCK_SUCCESS; } int ambient_light_subscribe(subscribe_cb callback, void* userdata) { return subscribe(DRIVER_NUM_AMBIENT_LIGHT, 0, callback, userdata); } int ambient_light_start_intensity_reading(void) { return command(DRIVER_NUM_AMBIENT_LIGHT, 1, 0, 0); }
--- +++ @@ -6,7 +6,7 @@ bool fired; } ambient_light_data_t; -// callback for synchronous reads +// internal callback for faking synchronous reads static void ambient_light_cb(int intensity, __attribute__ ((unused)) int unused1, __attribute__ ((unused)) int unused2, void* ud) {
Revert "Updating ambient light to 2.0 API." This reverts commit 9a9df3a205dcebfcb358b60ef11df54698ec6dce.
apache-2.0
tock/libtock-c,tock/libtock-c,tock/libtock-c
8c040708668c09654682c3133c3c16aa691f3bf9
#include <stdlib.h> #include <string.h> #include "config.h" struct Config load_config(char *arquivo) { } void load_idioma(struct Idioma *idioma, char *key, char *content){ } void clean_idioma(struct Idioma *idioma) { free(idioma); }
#include <stdlib.h> #include <string.h> #include "config.h" struct Config load_config(char *arquivo) { } struct Idioma load_idioma(char *idioma){ char *local_idioma; int loaded; strcpy(local_idioma, "local aqui"); strcat(local_idioma, idioma); strcat(local_idioma, ".conf"); loaded = 1; while(loaded) { strcpy(local_idioma, "local aqui"); strcat(local_idioma, idioma); strcat(local_idioma, ".conf"); //Abre idioma FILE *arquivo = fopen(local_idioma, "r"); if(file) { loaded = 0; } else { printf("Arquivo de idioma não localizado\n"); printf("Will try to load the default language\n"); } } }
--- +++ @@ -7,36 +7,12 @@ } -struct Idioma load_idioma(char *idioma){ - char *local_idioma; - int loaded; - - strcpy(local_idioma, "local aqui"); - strcat(local_idioma, idioma); - strcat(local_idioma, ".conf"); - - - - loaded = 1; - while(loaded) { - - strcpy(local_idioma, "local aqui"); - strcat(local_idioma, idioma); - strcat(local_idioma, ".conf"); - - //Abre idioma - FILE *arquivo = fopen(local_idioma, "r"); - - if(file) { - - - - loaded = 0; - } - else { - printf("Arquivo de idioma não localizado\n"); - printf("Will try to load the default language\n"); - - } - } +void load_idioma(struct Idioma *idioma, char *key, char *content){ + } + +void clean_idioma(struct Idioma *idioma) { + free(idioma); +} + +
Change functions to handle idioma
apache-2.0
ezefranca/LogiKiD-Allegro5-Game,ezefranca/LogiKiD-Allegro5-Game,ezefranca/LogiKiD-Allegro5-Game
2a3828f1e477561e574fb9ee4525641832e3dcd9
/* * Copyright (C) 2013-2014 Daniel Nicoletti <dantti12@gmail.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. */ #ifndef PLUGIN_H #define PLUGIN_H #define CUTELYST_MODIFIER1 0 #ifdef __cplusplus extern "C" { #endif struct uwsgi_cutelyst { char *app; int reload; } options; #ifdef __cplusplus } #endif #endif // PLUGIN_H
/* * Copyright (C) 2013-2014 Daniel Nicoletti <dantti12@gmail.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. */ #ifndef PLUGIN_H #define PLUGIN_H #define CUTELYST_MODIFIER1 0 #ifdef __cplusplus extern "C" { #endif struct uwsgi_cutelyst { char *app; int reload; }; extern struct uwsgi_cutelyst options; #ifdef __cplusplus } #endif #endif // PLUGIN_H
--- +++ @@ -29,9 +29,7 @@ struct uwsgi_cutelyst { char *app; int reload; -}; - -extern struct uwsgi_cutelyst options; +} options; #ifdef __cplusplus }
Revert "Possibly fixed alignment warning" This reverts commit 3111a7ae00cf12f0f8e0f357fb122b24470e4051.
bsd-3-clause
buschmann23/cutelyst,buschmann23/cutelyst,cutelyst/cutelyst,simonaw/cutelyst,simonaw/cutelyst,cutelyst/cutelyst,buschmann23/cutelyst,cutelyst/cutelyst
ab55a43fcd48953d0d76599671efa6f5a82bee80
/* vim: set filetype=cpp: */ /** Header file for canonpy. * * Currently it merely contains the definition of the object structure of the * classes defined in canonpy. They are put here in case a C API is intended * to be added for canonpy. */ #ifndef DRUDGE_CANONPY_H #define DRUDGE_CANONPY_H #include <Python.h> #include <memory> #include <libcanon/perm.h> #include <libcanon/sims.h> using libcanon::Simple_perm; using libcanon::Sims_transv; // // Permutation type // ---------------- // /** Object type for canonpy Perm objects. */ // clang-format off typedef struct { PyObject_HEAD Simple_perm perm; } Perm_object; // clang-format on // // Permutation group type // ---------------------- // using Transv = Sims_transv<Simple_perm>; using Transv_ptr = std::unique_ptr<Transv>; // clang-format off typedef struct { PyObject_HEAD Transv_ptr transv; } Group_object; // clang-format on #endif
/* vim: set filetype=cpp: */ /** Header file for canonpy. * * Currently it merely contains the definition of the object structure of the * classes defined in canonpy. They are put here in case a C API is intended * to be added for canonpy. */ #ifndef DRUDGE_CANONPY_H #define DRUDGE_CANONPY_H #include <Python.h> #include <memory> #include <libcanon/perm.h> #include <libcanon/sims.h> using libcanon::Simple_perm; using libcanon::Sims_transv; // // Permutation type // ---------------- // /** Object type for canonpy Perm objects. */ // clang-format off typedef struct { PyObject_HEAD Simple_perm perm; } Perm_object; // clang-format on // // Permutation group type // ---------------------- // // clang-format off typedef struct { PyObject_HEAD std::unique_ptr<Sims_transv<Simple_perm>> transv; } Group_object; // clang-format on #endif
--- +++ @@ -40,10 +40,13 @@ // ---------------------- // +using Transv = Sims_transv<Simple_perm>; +using Transv_ptr = std::unique_ptr<Transv>; + // clang-format off typedef struct { PyObject_HEAD - std::unique_ptr<Sims_transv<Simple_perm>> transv; + Transv_ptr transv; } Group_object; // clang-format on
Add type aliases for Group With these aliases, the code for permutation group manipulation can be written more succinctly.
mit
tschijnmo/drudge,tschijnmo/drudge,tschijnmo/drudge
54a13d2d9754a44f26dbe5f8b4485267a13a0217
#ifndef CLIENTVERSION_H #define CLIENTVERSION_H // // client versioning and copyright year // // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 0 #define CLIENT_VERSION_MINOR 8 #define CLIENT_VERSION_REVISION 7 #define CLIENT_VERSION_BUILD 0 // Set to true for release, false for prerelease or test build #define CLIENT_VERSION_IS_RELEASE true // Copyright year (2009-this) // Todo: update this when changing our copyright comments in the source #define COPYRIGHT_YEAR 2014 // Converts the parameter X to a string after macro replacement on X has been performed. // Don't merge these into one macro! #define STRINGIZE(X) DO_STRINGIZE(X) #define DO_STRINGIZE(X) #X #endif // CLIENTVERSION_H
#ifndef CLIENTVERSION_H #define CLIENTVERSION_H // // client versioning and copyright year // // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 0 #define CLIENT_VERSION_MINOR 8 #define CLIENT_VERSION_REVISION 6 #define CLIENT_VERSION_BUILD 0 // Set to true for release, false for prerelease or test build #define CLIENT_VERSION_IS_RELEASE false // Copyright year (2009-this) // Todo: update this when changing our copyright comments in the source #define COPYRIGHT_YEAR 2014 // Converts the parameter X to a string after macro replacement on X has been performed. // Don't merge these into one macro! #define STRINGIZE(X) DO_STRINGIZE(X) #define DO_STRINGIZE(X) #X #endif // CLIENTVERSION_H
--- +++ @@ -8,11 +8,11 @@ // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 0 #define CLIENT_VERSION_MINOR 8 -#define CLIENT_VERSION_REVISION 6 +#define CLIENT_VERSION_REVISION 7 #define CLIENT_VERSION_BUILD 0 // Set to true for release, false for prerelease or test build -#define CLIENT_VERSION_IS_RELEASE false +#define CLIENT_VERSION_IS_RELEASE true // Copyright year (2009-this) // Todo: update this when changing our copyright comments in the source
Mark Devcoin release version 0.8.7.0.
mit
coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin
f285f813cc3d270186ea4789da82cb8b8c9ff1f9
// // main.c // fast-xattr-test // // Created by David Schlachter on 2015-07-09. // Copyright (c) 2015 David Schlachter. All rights reserved. // #include <stdio.h> #include <sys/xattr.h> #include <stdlib.h> int main(int argc, const char * argv[]) { const char *path; const char *name; void *value = malloc(15); size_t size; u_int32_t position; int options = 0; path = argv[1]; name = argv[2]; size = 14; position = 0; if (!getxattr(path, name, value, size, position, options)) { return 0; } else { return 1; }; }
// // main.c // fast-xattr-test // // Created by David Schlachter on 2015-07-09. // Copyright (c) 2015 David Schlachter. All rights reserved. // #include <stdio.h> int main(int argc, const char * argv[]) { // insert code here... printf("Hello, World!\n"); return 0; }
--- +++ @@ -7,9 +7,25 @@ // #include <stdio.h> +#include <sys/xattr.h> +#include <stdlib.h> int main(int argc, const char * argv[]) { - // insert code here... - printf("Hello, World!\n"); - return 0; + const char *path; + const char *name; + void *value = malloc(15); + size_t size; + u_int32_t position; + int options = 0; + + path = argv[1]; + name = argv[2]; + size = 14; + position = 0; + + if (!getxattr(path, name, value, size, position, options)) { + return 0; + } else { + return 1; + }; }
Set up the getxattr function
mit
davidschlachter/fast-xattr-test
eaa2b2534e5d7115be1d5d9efcfe1ce28e0b0721
//===-- memory.c - String functions for the LLVM libc Library ----*- C -*-===// // // A lot of this code is ripped gratuitously from glibc and libiberty. // //===---------------------------------------------------------------------===// #include <stdlib.h> // If we're not being compiled with GCC, turn off attributes. Question is how // to handle overriding of memory allocation functions in that case. #ifndef __GNUC__ #define __attribute__(X) #endif // For now, turn off the weak linkage attribute on Mac OS X. #if defined(__GNUC__) && defined(__APPLE_CC__) #define __ATTRIBUTE_WEAK__ #elif defined(__GNUC__) #define __ATTRIBUTE_WEAK__ __attribute__((weak)) #else #define __ATTRIBUTE_WEAK__ #endif void *malloc(size_t) __ATTRIBUTE_WEAK__; void free(void *) __ATTRIBUTE_WEAK__; void *memset(void *, int, size_t) __ATTRIBUTE_WEAK__; void *calloc(size_t nelem, size_t elsize) __ATTRIBUTE_WEAK__; void *calloc(size_t nelem, size_t elsize) { void *Result = malloc(nelem*elsize); return memset(Result, 0, nelem*elsize); }
//===-- memory.c - String functions for the LLVM libc Library ----*- C -*-===// // // A lot of this code is ripped gratuitously from glibc and libiberty. // //===----------------------------------------------------------------------===// #include <stdlib.h> void *malloc(size_t) __attribute__((weak)); void free(void *) __attribute__((weak)); void *memset(void *, int, size_t) __attribute__((weak)); void *calloc(size_t nelem, size_t elsize) __attribute__((weak)); void *calloc(size_t nelem, size_t elsize) { void *Result = malloc(nelem*elsize); return memset(Result, 0, nelem*elsize); }
--- +++ @@ -2,14 +2,29 @@ // // A lot of this code is ripped gratuitously from glibc and libiberty. // -//===----------------------------------------------------------------------===// +//===---------------------------------------------------------------------===// #include <stdlib.h> -void *malloc(size_t) __attribute__((weak)); -void free(void *) __attribute__((weak)); -void *memset(void *, int, size_t) __attribute__((weak)); -void *calloc(size_t nelem, size_t elsize) __attribute__((weak)); +// If we're not being compiled with GCC, turn off attributes. Question is how +// to handle overriding of memory allocation functions in that case. +#ifndef __GNUC__ +#define __attribute__(X) +#endif + +// For now, turn off the weak linkage attribute on Mac OS X. +#if defined(__GNUC__) && defined(__APPLE_CC__) +#define __ATTRIBUTE_WEAK__ +#elif defined(__GNUC__) +#define __ATTRIBUTE_WEAK__ __attribute__((weak)) +#else +#define __ATTRIBUTE_WEAK__ +#endif + +void *malloc(size_t) __ATTRIBUTE_WEAK__; +void free(void *) __ATTRIBUTE_WEAK__; +void *memset(void *, int, size_t) __ATTRIBUTE_WEAK__; +void *calloc(size_t nelem, size_t elsize) __ATTRIBUTE_WEAK__; void *calloc(size_t nelem, size_t elsize) { void *Result = malloc(nelem*elsize);
Disable __attribute__((weak)) on Mac OS X and other lame platforms. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@10489 91177308-0d34-0410-b5e6-96231b3b80d8
bsd-2-clause
dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm
b49fa616d47a39193c59d610964276ddb1df732a
/* Tuple object interface */ #ifndef Py_STRUCTSEQ_H #define Py_STRUCTSEQ_H #ifdef __cplusplus extern "C" { #endif typedef struct PyStructSequence_Field { char *name; char *doc; } PyStructSequence_Field; typedef struct PyStructSequence_Desc { char *name; char *doc; struct PyStructSequence_Field *fields; int n_in_sequence; } PyStructSequence_Desc; extern char* PyStructSequence_UnnamedField; PyAPI_FUNC(void) PyStructSequence_InitType(PyTypeObject *type, PyStructSequence_Desc *desc); PyAPI_FUNC(PyObject *) PyStructSequence_New(PyTypeObject* type); typedef struct { PyObject_VAR_HEAD PyObject *ob_item[1]; } PyStructSequence; /* Macro, *only* to be used to fill in brand new objects */ #define PyStructSequence_SET_ITEM(op, i, v) \ (((PyStructSequence *)(op))->ob_item[i] = v) #ifdef __cplusplus } #endif #endif /* !Py_STRUCTSEQ_H */
/* Tuple object interface */ #ifndef Py_STRUCTSEQ_H #define Py_STRUCTSEQ_H #ifdef __cplusplus extern "C" { #endif typedef struct PyStructSequence_Field { char *name; char *doc; } PyStructSequence_Field; typedef struct PyStructSequence_Desc { char *name; char *doc; struct PyStructSequence_Field *fields; int n_in_sequence; } PyStructSequence_Desc; extern char* PyStructSequence_UnnamedField; PyAPI_FUNC(void) PyStructSequence_InitType(PyTypeObject *type, PyStructSequence_Desc *desc); PyAPI_FUNC(PyObject *) PyStructSequence_New(PyTypeObject* type); typedef struct { PyObject_VAR_HEAD PyObject *ob_item[1]; } PyStructSequence; /* Macro, *only* to be used to fill in brand new objects */ #define PyStructSequence_SET_ITEM(op, i, v) \ (((PyStructSequence *)(op))->ob_item[i] = v) #ifdef __cplusplus } #endif #endif /* !Py_STRUCTSEQ_H */
--- +++ @@ -6,7 +6,7 @@ #ifdef __cplusplus extern "C" { #endif - + typedef struct PyStructSequence_Field { char *name; char *doc; @@ -21,9 +21,9 @@ extern char* PyStructSequence_UnnamedField; -PyAPI_FUNC(void) PyStructSequence_InitType(PyTypeObject *type, - PyStructSequence_Desc *desc); - +PyAPI_FUNC(void) PyStructSequence_InitType(PyTypeObject *type, + PyStructSequence_Desc *desc); + PyAPI_FUNC(PyObject *) PyStructSequence_New(PyTypeObject* type); typedef struct {
Clean up some whitespace to be consistent with Python's C style.
mit
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
c8fb57c122aadfb83c8e9efa9904cc664aa4b786
enum FlagEnum { A = 1 << 0, B = 1 << 1, C = 1 << 2, D = 1 << 3, }; enum FlagEnum2 { A1 = 1 << 0, B1 = 3, C1 = 1 << 2, D1 = 1 << 4, }; class Foo { }; void FooStart(Foo*, int); struct TestRename { int lowerCaseMethod(); int lowerCaseField; }; #define TEST_ENUM_ITEM_NAME_0 0 #define TEST_ENUM_ITEM_NAME_1 1 #define TEST_ENUM_ITEM_NAME_2 2 // TestStructInheritance struct S1 { int F1, F2; }; struct S2 : S1 { int F3; };
enum FlagEnum { A = 1 << 0, B = 1 << 1, C = 1 << 2, D = 1 << 3, }; enum FlagEnum2 { A = 1 << 0, B = 1 << 1, C = 1 << 2, D = 1 << 4, }; class C { }; void DoSomethingC(C*, int); struct TestRename { int lowerCaseMethod(); int lowerCaseField; }; #define TEST_ENUM_ITEM_NAME_0 0 #define TEST_ENUM_ITEM_NAME_1 1 #define TEST_ENUM_ITEM_NAME_2 2
--- +++ @@ -8,14 +8,14 @@ enum FlagEnum2 { - A = 1 << 0, - B = 1 << 1, - C = 1 << 2, - D = 1 << 4, + A1 = 1 << 0, + B1 = 3, + C1 = 1 << 2, + D1 = 1 << 4, }; -class C { }; -void DoSomethingC(C*, int); +class Foo { }; +void FooStart(Foo*, int); struct TestRename { @@ -26,3 +26,7 @@ #define TEST_ENUM_ITEM_NAME_0 0 #define TEST_ENUM_ITEM_NAME_1 1 #define TEST_ENUM_ITEM_NAME_2 2 + +// TestStructInheritance +struct S1 { int F1, F2; }; +struct S2 : S1 { int F3; };
Update the passes test source file.
mit
ktopouzi/CppSharp,genuinelucifer/CppSharp,zillemarco/CppSharp,inordertotest/CppSharp,mono/CppSharp,inordertotest/CppSharp,xistoso/CppSharp,txdv/CppSharp,u255436/CppSharp,ktopouzi/CppSharp,nalkaro/CppSharp,xistoso/CppSharp,mohtamohit/CppSharp,imazen/CppSharp,KonajuGames/CppSharp,SonyaSa/CppSharp,Samana/CppSharp,ddobrev/CppSharp,ktopouzi/CppSharp,u255436/CppSharp,txdv/CppSharp,genuinelucifer/CppSharp,ddobrev/CppSharp,nalkaro/CppSharp,imazen/CppSharp,mohtamohit/CppSharp,imazen/CppSharp,mohtamohit/CppSharp,mydogisbox/CppSharp,mydogisbox/CppSharp,ddobrev/CppSharp,mono/CppSharp,u255436/CppSharp,SonyaSa/CppSharp,nalkaro/CppSharp,mohtamohit/CppSharp,mono/CppSharp,txdv/CppSharp,KonajuGames/CppSharp,genuinelucifer/CppSharp,zillemarco/CppSharp,Samana/CppSharp,KonajuGames/CppSharp,ktopouzi/CppSharp,genuinelucifer/CppSharp,Samana/CppSharp,ktopouzi/CppSharp,mydogisbox/CppSharp,KonajuGames/CppSharp,Samana/CppSharp,xistoso/CppSharp,inordertotest/CppSharp,SonyaSa/CppSharp,xistoso/CppSharp,ddobrev/CppSharp,mohtamohit/CppSharp,genuinelucifer/CppSharp,mydogisbox/CppSharp,zillemarco/CppSharp,KonajuGames/CppSharp,zillemarco/CppSharp,inordertotest/CppSharp,zillemarco/CppSharp,imazen/CppSharp,nalkaro/CppSharp,SonyaSa/CppSharp,SonyaSa/CppSharp,u255436/CppSharp,mono/CppSharp,mono/CppSharp,ddobrev/CppSharp,Samana/CppSharp,mono/CppSharp,imazen/CppSharp,nalkaro/CppSharp,txdv/CppSharp,inordertotest/CppSharp,mydogisbox/CppSharp,xistoso/CppSharp,u255436/CppSharp,txdv/CppSharp
2c90cd47e03a5ae5f725d3a7d638dfaf05f7896d
#include <stdlib.h> #include <stdio.h> #include <check.h> #include "check_check.h" int main (void) { int n; SRunner *sr; fork_setup(); setup_fixture(); sr = srunner_create (make_master_suite()); srunner_add_suite(sr, make_list_suite()); srunner_add_suite(sr, make_msg_suite()); srunner_add_suite(sr, make_log_suite()); srunner_add_suite(sr, make_limit_suite()); srunner_add_suite(sr, make_fork_suite()); srunner_add_suite(sr, make_fixture_suite()); srunner_add_suite(sr, make_pack_suite()); setup(); printf ("Ran %d tests in subordinate suite\n", sub_ntests); srunner_run_all (sr, CK_NORMAL); cleanup(); fork_teardown(); teardown_fixture(); n = srunner_ntests_failed(sr); srunner_free(sr); return (n == 0) ? EXIT_SUCCESS : EXIT_FAILURE; }
#include <stdlib.h> #include <stdio.h> #include <check.h> #include "check_check.h" int main (void) { int n; SRunner *sr; fork_setup(); setup_fixture(); sr = srunner_create (make_master_suite()); srunner_add_suite(sr, make_list_suite()); srunner_add_suite(sr, make_msg_suite()); srunner_add_suite(sr, make_log_suite()); srunner_add_suite(sr, make_limit_suite()); srunner_add_suite(sr, make_fork_suite()); srunner_add_suite(sr, make_fixture_suite()); srunner_add_suite(sr, make_pack_suite()); setup(); printf ("Ran %d tests in subordinate suite\n", sub_nfailed); srunner_run_all (sr, CK_NORMAL); cleanup(); fork_teardown(); teardown_fixture(); n = srunner_ntests_failed(sr); srunner_free(sr); return (n == 0) ? EXIT_SUCCESS : EXIT_FAILURE; }
--- +++ @@ -20,7 +20,7 @@ srunner_add_suite(sr, make_pack_suite()); setup(); - printf ("Ran %d tests in subordinate suite\n", sub_nfailed); + printf ("Ran %d tests in subordinate suite\n", sub_ntests); srunner_run_all (sr, CK_NORMAL); cleanup(); fork_teardown();
Use correct variable for number of tests
lgpl-2.1
tarruda/check,tarruda/check,tarruda/check,tarruda/check,tarruda/check
dd059c831429f6d3706ff8e824cb3afcde383d37
/*------------------------------------------------------------------------- * * be-fsstubs.h-- * * * * Copyright (c) 1994, Regents of the University of California * * $Id: be-fsstubs.h,v 1.2 1997/05/06 07:14:34 thomas Exp $ * *------------------------------------------------------------------------- */ #ifndef BE_FSSTUBS_H #define BE_FSSTUBS_H /* Redefine names LOread() and LOwrite() to be lowercase to allow calling * using the new v6.1 case-insensitive SQL parser. Define macros to allow * the existing code to stay the same. - tgl 97/05/03 */ #define LOread(f,l) loread(f,l) #define LOwrite(f,b) lowrite(f,b) extern Oid lo_import(text *filename); extern int4 lo_export(Oid lobjId, text *filename); extern Oid lo_creat(int mode); extern int lo_open(Oid lobjId, int mode); extern int lo_close(int fd); extern int lo_read(int fd, char *buf, int len); extern int lo_write(int fd, char *buf, int len); extern int lo_lseek(int fd, int offset, int whence); extern int lo_tell(int fd); extern int lo_unlink(Oid lobjId); extern struct varlena *loread(int fd, int len); extern int lowrite(int fd, struct varlena *wbuf); #endif /* BE_FSSTUBS_H */
/*------------------------------------------------------------------------- * * be-fsstubs.h-- * * * * Copyright (c) 1994, Regents of the University of California * * $Id: be-fsstubs.h,v 1.1 1996/08/28 07:22:56 scrappy Exp $ * *------------------------------------------------------------------------- */ #ifndef BE_FSSTUBS_H #define BE_FSSTUBS_H extern Oid lo_import(text *filename); extern int4 lo_export(Oid lobjId, text *filename); extern Oid lo_creat(int mode); extern int lo_open(Oid lobjId, int mode); extern int lo_close(int fd); extern int lo_read(int fd, char *buf, int len); extern int lo_write(int fd, char *buf, int len); extern int lo_lseek(int fd, int offset, int whence); extern int lo_tell(int fd); extern int lo_unlink(Oid lobjId); extern struct varlena *LOread(int fd, int len); extern int LOwrite(int fd, struct varlena *wbuf); #endif /* BE_FSSTUBS_H */
--- +++ @@ -6,12 +6,20 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: be-fsstubs.h,v 1.1 1996/08/28 07:22:56 scrappy Exp $ + * $Id: be-fsstubs.h,v 1.2 1997/05/06 07:14:34 thomas Exp $ * *------------------------------------------------------------------------- */ #ifndef BE_FSSTUBS_H #define BE_FSSTUBS_H + +/* Redefine names LOread() and LOwrite() to be lowercase to allow calling + * using the new v6.1 case-insensitive SQL parser. Define macros to allow + * the existing code to stay the same. - tgl 97/05/03 + */ + +#define LOread(f,l) loread(f,l) +#define LOwrite(f,b) lowrite(f,b) extern Oid lo_import(text *filename); extern int4 lo_export(Oid lobjId, text *filename); @@ -26,7 +34,7 @@ extern int lo_tell(int fd); extern int lo_unlink(Oid lobjId); -extern struct varlena *LOread(int fd, int len); -extern int LOwrite(int fd, struct varlena *wbuf); - +extern struct varlena *loread(int fd, int len); +extern int lowrite(int fd, struct varlena *wbuf); + #endif /* BE_FSSTUBS_H */
Rename LOread() and LOwrite() to be lower case to allow use in case-insensitive SQL. Define LOread() and LOwrite() as macros to avoid having to update calls everywhere.
mpl-2.0
kmjungersen/PostgresXL,Quikling/gpdb,xuegang/gpdb,cjcjameson/gpdb,Chibin/gpdb,cjcjameson/gpdb,0x0FFF/gpdb,royc1/gpdb,randomtask1155/gpdb,0x0FFF/gpdb,zeroae/postgres-xl,janebeckman/gpdb,50wu/gpdb,jmcatamney/gpdb,edespino/gpdb,randomtask1155/gpdb,rvs/gpdb,royc1/gpdb,0x0FFF/gpdb,randomtask1155/gpdb,lintzc/gpdb,postmind-net/postgres-xl,rvs/gpdb,zeroae/postgres-xl,xinzweb/gpdb,tpostgres-projects/tPostgres,CraigHarris/gpdb,janebeckman/gpdb,foyzur/gpdb,rubikloud/gpdb,atris/gpdb,kmjungersen/PostgresXL,zaksoup/gpdb,ashwinstar/gpdb,tangp3/gpdb,pavanvd/postgres-xl,foyzur/gpdb,tpostgres-projects/tPostgres,jmcatamney/gpdb,kaknikhil/gpdb,lisakowen/gpdb,janebeckman/gpdb,foyzur/gpdb,Chibin/gpdb,chrishajas/gpdb,jmcatamney/gpdb,rvs/gpdb,zaksoup/gpdb,royc1/gpdb,jmcatamney/gpdb,rvs/gpdb,Quikling/gpdb,jmcatamney/gpdb,ovr/postgres-xl,Quikling/gpdb,CraigHarris/gpdb,chrishajas/gpdb,yazun/postgres-xl,Postgres-XL/Postgres-XL,zeroae/postgres-xl,janebeckman/gpdb,janebeckman/gpdb,lpetrov-pivotal/gpdb,lpetrov-pivotal/gpdb,postmind-net/postgres-xl,ahachete/gpdb,atris/gpdb,rubikloud/gpdb,lintzc/gpdb,techdragon/Postgres-XL,kmjungersen/PostgresXL,randomtask1155/gpdb,yazun/postgres-xl,edespino/gpdb,kaknikhil/gpdb,xinzweb/gpdb,lpetrov-pivotal/gpdb,rvs/gpdb,Chibin/gpdb,ashwinstar/gpdb,Chibin/gpdb,kaknikhil/gpdb,kaknikhil/gpdb,zeroae/postgres-xl,lintzc/gpdb,tpostgres-projects/tPostgres,ashwinstar/gpdb,lpetrov-pivotal/gpdb,atris/gpdb,50wu/gpdb,cjcjameson/gpdb,greenplum-db/gpdb,royc1/gpdb,foyzur/gpdb,ahachete/gpdb,chrishajas/gpdb,Quikling/gpdb,rubikloud/gpdb,chrishajas/gpdb,yuanzhao/gpdb,CraigHarris/gpdb,Chibin/gpdb,edespino/gpdb,greenplum-db/gpdb,techdragon/Postgres-XL,oberstet/postgres-xl,zaksoup/gpdb,edespino/gpdb,ovr/postgres-xl,tangp3/gpdb,Quikling/gpdb,chrishajas/gpdb,tangp3/gpdb,50wu/gpdb,atris/gpdb,CraigHarris/gpdb,postmind-net/postgres-xl,chrishajas/gpdb,yazun/postgres-xl,adam8157/gpdb,yuanzhao/gpdb,tpostgres-projects/tPostgres,lintzc/gpdb,Chibin/gpdb,rvs/gpdb,zaksoup/gpdb,lisakowen/gpdb,50wu/gpdb,janebeckman/gpdb,yuanzhao/gpdb,jmcatamney/gpdb,cjcjameson/gpdb,rubikloud/gpdb,ahachete/gpdb,50wu/gpdb,royc1/gpdb,xuegang/gpdb,snaga/postgres-xl,ashwinstar/gpdb,chrishajas/gpdb,adam8157/gpdb,kmjungersen/PostgresXL,0x0FFF/gpdb,foyzur/gpdb,rvs/gpdb,pavanvd/postgres-xl,Quikling/gpdb,arcivanov/postgres-xl,ashwinstar/gpdb,edespino/gpdb,adam8157/gpdb,zeroae/postgres-xl,cjcjameson/gpdb,edespino/gpdb,lisakowen/gpdb,atris/gpdb,snaga/postgres-xl,yuanzhao/gpdb,CraigHarris/gpdb,zaksoup/gpdb,ashwinstar/gpdb,lintzc/gpdb,rvs/gpdb,kaknikhil/gpdb,cjcjameson/gpdb,atris/gpdb,kaknikhil/gpdb,techdragon/Postgres-XL,jmcatamney/gpdb,adam8157/gpdb,xuegang/gpdb,royc1/gpdb,rubikloud/gpdb,ashwinstar/gpdb,lpetrov-pivotal/gpdb,edespino/gpdb,rubikloud/gpdb,foyzur/gpdb,0x0FFF/gpdb,arcivanov/postgres-xl,atris/gpdb,xinzweb/gpdb,kaknikhil/gpdb,adam8157/gpdb,Chibin/gpdb,cjcjameson/gpdb,tpostgres-projects/tPostgres,ahachete/gpdb,greenplum-db/gpdb,yazun/postgres-xl,Quikling/gpdb,postmind-net/postgres-xl,randomtask1155/gpdb,zaksoup/gpdb,ahachete/gpdb,postmind-net/postgres-xl,pavanvd/postgres-xl,lisakowen/gpdb,foyzur/gpdb,pavanvd/postgres-xl,Chibin/gpdb,janebeckman/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,0x0FFF/gpdb,oberstet/postgres-xl,greenplum-db/gpdb,Chibin/gpdb,lisakowen/gpdb,50wu/gpdb,rvs/gpdb,randomtask1155/gpdb,chrishajas/gpdb,rvs/gpdb,edespino/gpdb,xinzweb/gpdb,cjcjameson/gpdb,ahachete/gpdb,CraigHarris/gpdb,cjcjameson/gpdb,lintzc/gpdb,snaga/postgres-xl,lintzc/gpdb,janebeckman/gpdb,cjcjameson/gpdb,techdragon/Postgres-XL,CraigHarris/gpdb,arcivanov/postgres-xl,royc1/gpdb,oberstet/postgres-xl,ahachete/gpdb,yuanzhao/gpdb,greenplum-db/gpdb,edespino/gpdb,yazun/postgres-xl,rubikloud/gpdb,oberstet/postgres-xl,yuanzhao/gpdb,adam8157/gpdb,kaknikhil/gpdb,snaga/postgres-xl,CraigHarris/gpdb,edespino/gpdb,atris/gpdb,lisakowen/gpdb,0x0FFF/gpdb,Quikling/gpdb,ashwinstar/gpdb,lpetrov-pivotal/gpdb,xinzweb/gpdb,Quikling/gpdb,randomtask1155/gpdb,lintzc/gpdb,yuanzhao/gpdb,kaknikhil/gpdb,ovr/postgres-xl,xuegang/gpdb,janebeckman/gpdb,lpetrov-pivotal/gpdb,tangp3/gpdb,ahachete/gpdb,kaknikhil/gpdb,Chibin/gpdb,lpetrov-pivotal/gpdb,rubikloud/gpdb,Postgres-XL/Postgres-XL,yuanzhao/gpdb,xinzweb/gpdb,ovr/postgres-xl,pavanvd/postgres-xl,adam8157/gpdb,yuanzhao/gpdb,ovr/postgres-xl,oberstet/postgres-xl,xuegang/gpdb,arcivanov/postgres-xl,snaga/postgres-xl,xinzweb/gpdb,lintzc/gpdb,arcivanov/postgres-xl,arcivanov/postgres-xl,jmcatamney/gpdb,xuegang/gpdb,Postgres-XL/Postgres-XL,randomtask1155/gpdb,50wu/gpdb,zaksoup/gpdb,zaksoup/gpdb,Quikling/gpdb,Postgres-XL/Postgres-XL,xuegang/gpdb,50wu/gpdb,tangp3/gpdb,techdragon/Postgres-XL,xuegang/gpdb,xuegang/gpdb,foyzur/gpdb,lisakowen/gpdb,tangp3/gpdb,tangp3/gpdb,kmjungersen/PostgresXL,royc1/gpdb,CraigHarris/gpdb,0x0FFF/gpdb,adam8157/gpdb,Postgres-XL/Postgres-XL,xinzweb/gpdb,janebeckman/gpdb,lisakowen/gpdb,greenplum-db/gpdb,yuanzhao/gpdb,tangp3/gpdb
94123219bfd5f9e688764a2125d36f206bf89704
/* * SHA-160 * (C) 1999-2007 Jack Lloyd * * Distributed under the terms of the Botan license */ #ifndef BOTAN_SHA_160_SSE2_H__ #define BOTAN_SHA_160_SSE2_H__ #include <botan/sha160.h> namespace Botan { /* * SHA-160 */ class BOTAN_DLL SHA_160_SSE2 : public SHA_160 { public: HashFunction* clone() const { return new SHA_160_SSE2; } SHA_160_SSE2() : SHA_160(0) {} // no W needed private: void compress_n(const byte[], u32bit blocks); }; } #endif
/* * SHA-160 * (C) 1999-2007 Jack Lloyd * * Distributed under the terms of the Botan license */ #ifndef BOTAN_SHA_160_SSE2_H__ #define BOTAN_SHA_160_SSE2_H__ #include <botan/sha160.h> namespace Botan { /* * SHA-160 */ class BOTAN_DLL SHA_160_SSE2 : public SHA_160 { public: HashFunction* clone() const { return new SHA_160_SSE2; } SHA_160_SSE2() : SHA_160(0) {} // no W needed private: void compress_n(const byte[], u32bit blocks); }; extern "C" void botan_sha1_sse2_compress(u32bit[5], const u32bit*); } #endif
--- +++ @@ -24,8 +24,6 @@ void compress_n(const byte[], u32bit blocks); }; -extern "C" void botan_sha1_sse2_compress(u32bit[5], const u32bit*); - } #endif
Remove extern decl of no longer used/included SHA-1 SSE2 function
bsd-2-clause
randombit/botan,randombit/botan,randombit/botan,webmaster128/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,webmaster128/botan,randombit/botan,randombit/botan
70b855c84855aa33ab8411d24b9dd0b78ecbffcb
#pragma once // const float in a header file can lead to duplication of the storage // but I don't really care in this case. Just don't do it with a header // that is included hundreds of times. const float kCurrentVersion = 1.49f; // Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version // increment that won't trigger the new-version checks, handy for minor // releases that I don't want to bother users about. //#define VERSION_SUFFIX 'b'
#pragma once // const float in a header file can lead to duplication of the storage // but I don't really care in this case. Just don't do it with a header // that is included hundreds of times. const float kCurrentVersion = 1.48f; // Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version // increment that won't trigger the new-version checks, handy for minor // releases that I don't want to bother users about. //#define VERSION_SUFFIX 'b'
--- +++ @@ -3,7 +3,7 @@ // const float in a header file can lead to duplication of the storage // but I don't really care in this case. Just don't do it with a header // that is included hundreds of times. -const float kCurrentVersion = 1.48f; +const float kCurrentVersion = 1.49f; // Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version // increment that won't trigger the new-version checks, handy for minor
Increment version number to 1.49
apache-2.0
google/UIforETW,mwinterb/UIforETW,mwinterb/UIforETW,ariccio/UIforETW,mwinterb/UIforETW,google/UIforETW,ariccio/UIforETW,ariccio/UIforETW,google/UIforETW,google/UIforETW,ariccio/UIforETW
02768e952fd7f1789b146ebbfdc6ecdd54e3f72a
/* * Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de> * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @addtogroup posix_sockets */ /** * @{ * * @file * @brief System-internal byte operations. * * @author Martine Lenders <mlenders@inf.fu-berlin.de> */ #ifndef SYS_BYTES_H #define SYS_BYTES_H #include <stddef.h> #include "byteorder.h" #ifdef __cplusplus extern "C" { #endif typedef size_t socklen_t; /**< socket address length */ #ifdef __cplusplus } #endif #endif /* SYS_BYTES_H */ /** @} */
/* * Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de> * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @addtogroup posix_sockets */ /** * @{ * * @file * @brief System-internal byte operations. * * @author Martine Lenders <mlenders@inf.fu-berlin.de> */ #ifndef SYS_BYTES_H #define SYS_BYTES_H #include <stddef.h> #include "byteorder.h" #ifdef __cplusplus extern "C" { #endif #ifndef __MACH__ typedef size_t socklen_t; /**< socket address length */ #else /* Defined for OSX with a different type */ typedef __darwin_socklen_t socklen_t; /**< socket address length */ #endif #ifdef __cplusplus } #endif #endif /* SYS_BYTES_H */ /** @} */
--- +++ @@ -28,12 +28,7 @@ extern "C" { #endif -#ifndef __MACH__ typedef size_t socklen_t; /**< socket address length */ -#else -/* Defined for OSX with a different type */ -typedef __darwin_socklen_t socklen_t; /**< socket address length */ -#endif #ifdef __cplusplus }
Revert "posix/osx: fix type conflict on OSX native" This reverts commit dcebfb11bc5a861c711e58838eec5b0131d020e2.
lgpl-2.1
OlegHahm/RIOT,yogo1212/RIOT,toonst/RIOT,toonst/RIOT,josephnoir/RIOT,mfrey/RIOT,rfuentess/RIOT,avmelnikoff/RIOT,BytesGalore/RIOT,x3ro/RIOT,lazytech-org/RIOT,A-Paul/RIOT,toonst/RIOT,rfuentess/RIOT,biboc/RIOT,kbumsik/RIOT,BytesGalore/RIOT,aeneby/RIOT,smlng/RIOT,yogo1212/RIOT,kbumsik/RIOT,cladmi/RIOT,smlng/RIOT,kYc0o/RIOT,lazytech-org/RIOT,OlegHahm/RIOT,neiljay/RIOT,miri64/RIOT,RIOT-OS/RIOT,aeneby/RIOT,BytesGalore/RIOT,RIOT-OS/RIOT,kaspar030/RIOT,authmillenon/RIOT,neiljay/RIOT,biboc/RIOT,gebart/RIOT,avmelnikoff/RIOT,basilfx/RIOT,x3ro/RIOT,kYc0o/RIOT,cladmi/RIOT,mfrey/RIOT,A-Paul/RIOT,kYc0o/RIOT,smlng/RIOT,authmillenon/RIOT,cladmi/RIOT,ant9000/RIOT,ant9000/RIOT,kaspar030/RIOT,ant9000/RIOT,mtausig/RIOT,kaspar030/RIOT,jasonatran/RIOT,OlegHahm/RIOT,BytesGalore/RIOT,cladmi/RIOT,RIOT-OS/RIOT,mfrey/RIOT,OTAkeys/RIOT,yogo1212/RIOT,toonst/RIOT,miri64/RIOT,RIOT-OS/RIOT,josephnoir/RIOT,gebart/RIOT,authmillenon/RIOT,avmelnikoff/RIOT,aeneby/RIOT,rfuentess/RIOT,gebart/RIOT,x3ro/RIOT,avmelnikoff/RIOT,A-Paul/RIOT,rfuentess/RIOT,gebart/RIOT,BytesGalore/RIOT,x3ro/RIOT,authmillenon/RIOT,neiljay/RIOT,yogo1212/RIOT,kbumsik/RIOT,OTAkeys/RIOT,basilfx/RIOT,OTAkeys/RIOT,kYc0o/RIOT,lazytech-org/RIOT,josephnoir/RIOT,kbumsik/RIOT,neiljay/RIOT,ant9000/RIOT,neiljay/RIOT,lazytech-org/RIOT,jasonatran/RIOT,rfuentess/RIOT,biboc/RIOT,josephnoir/RIOT,mfrey/RIOT,mtausig/RIOT,basilfx/RIOT,A-Paul/RIOT,basilfx/RIOT,aeneby/RIOT,kYc0o/RIOT,kaspar030/RIOT,OTAkeys/RIOT,toonst/RIOT,authmillenon/RIOT,miri64/RIOT,mfrey/RIOT,ant9000/RIOT,OlegHahm/RIOT,biboc/RIOT,aeneby/RIOT,x3ro/RIOT,miri64/RIOT,kaspar030/RIOT,yogo1212/RIOT,josephnoir/RIOT,jasonatran/RIOT,smlng/RIOT,biboc/RIOT,smlng/RIOT,kbumsik/RIOT,yogo1212/RIOT,cladmi/RIOT,mtausig/RIOT,jasonatran/RIOT,A-Paul/RIOT,mtausig/RIOT,RIOT-OS/RIOT,avmelnikoff/RIOT,authmillenon/RIOT,OTAkeys/RIOT,basilfx/RIOT,gebart/RIOT,OlegHahm/RIOT,jasonatran/RIOT,miri64/RIOT,mtausig/RIOT,lazytech-org/RIOT
ed4932362d20af4c06610592b0a13016df4aad16
#include <signal.h> #include "sig.h" #include "sysdeps.h" #ifdef _SIG_MAXSIG #define SIGMAX _SIG_MAXSIG #else #ifdef _NSIG #define SIGMAX _NSIG #else #define SIGMAX 32 #endif #endif void sig_all_catch(signalfn fn) { int i; for (i = 1; i < SIGMAX; i++) if (i != SIGPROF) sig_catch(i, fn); } void sig_all_default(void) { int i; for (i = 1; i < SIGMAX; i++) if (i != SIGPROF) sig_default(i); } void sig_all_block(void) { int i; #ifdef HASSIGPROCMASK sigset_t set; sigemptyset(&set); for (i = 1; i < SIGMAX; i++) if (i != SIGPROF) sigaddset(&set, i); sigprocmask(SIG_BLOCK, &set, 0); #else sigblock(~(1 << (SIGPROF-1))); #endif } void sig_all_unblock(void) { #ifdef HASSIGPROCMASK sigset_t set; sigemptyset(&set); sigprocmask(SIG_UNBLOCK, &set, 0); #else sigsetmask(0); #endif }
#include <signal.h> #include "sig.h" #include "sysdeps.h" #define SIGMAX _NSIG void sig_all_catch(signalfn fn) { int i; for (i = 1; i < SIGMAX; i++) if (i != SIGPROF) sig_catch(i, fn); } void sig_all_default(void) { int i; for (i = 1; i < SIGMAX; i++) if (i != SIGPROF) sig_default(i); } void sig_all_block(void) { int i; #ifdef HASSIGPROCMASK sigset_t set; sigemptyset(&set); for (i = 1; i < SIGMAX; i++) if (i != SIGPROF) sigaddset(&set, i); sigprocmask(SIG_BLOCK, &set, 0); #else sigblock(~(1 << (SIGPROF-1))); #endif } void sig_all_unblock(void) { #ifdef HASSIGPROCMASK sigset_t set; sigemptyset(&set); sigprocmask(SIG_UNBLOCK, &set, 0); #else sigsetmask(0); #endif }
--- +++ @@ -2,7 +2,15 @@ #include "sig.h" #include "sysdeps.h" +#ifdef _SIG_MAXSIG +#define SIGMAX _SIG_MAXSIG +#else +#ifdef _NSIG #define SIGMAX _NSIG +#else +#define SIGMAX 32 +#endif +#endif void sig_all_catch(signalfn fn) {
Work on systems that don't define _NSIG
lgpl-2.1
bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs
fbf5b9c1da353780074ca0129f80dd5f6b43664e
// RUN: %clang_cc1 -flto=thin -emit-llvm-bc < %s | llvm-bcanalyzer -dump | FileCheck %s // CHECK: <GLOBALVAL_SUMMARY_BLOCK // CHECK-NEXT: <PERMODULE // CHECK-NEXT: <PERMODULE // CHECK-NEXT: </GLOBALVAL_SUMMARY_BLOCK __attribute__((noinline)) void foo() {} int main() { foo(); }
// RUN: %clang_cc1 -flto=thin -emit-llvm-bc < %s | llvm-bcanalyzer -dump | FileCheck %s // CHECK: <FUNCTION_SUMMARY_BLOCK // CHECK-NEXT: <PERMODULE_ENTRY // CHECK-NEXT: <PERMODULE_ENTRY // CHECK-NEXT: </FUNCTION_SUMMARY_BLOCK __attribute__((noinline)) void foo() {} int main() { foo(); }
--- +++ @@ -1,8 +1,8 @@ // RUN: %clang_cc1 -flto=thin -emit-llvm-bc < %s | llvm-bcanalyzer -dump | FileCheck %s -// CHECK: <FUNCTION_SUMMARY_BLOCK -// CHECK-NEXT: <PERMODULE_ENTRY -// CHECK-NEXT: <PERMODULE_ENTRY -// CHECK-NEXT: </FUNCTION_SUMMARY_BLOCK +// CHECK: <GLOBALVAL_SUMMARY_BLOCK +// CHECK-NEXT: <PERMODULE +// CHECK-NEXT: <PERMODULE +// CHECK-NEXT: </GLOBALVAL_SUMMARY_BLOCK __attribute__((noinline)) void foo() {}
Update test case for llvm summary format changes in D17592. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@263276 91177308-0d34-0410-b5e6-96231b3b80d8
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang
857025b72f3496ac93bb102f9f265592401117b1
#define FUNC 1 #define PARAM 2 #define PTR_PARAM 3 struct token { int tok_type; char *val; }; struct node { int node_type; char *type_name; char *id; int is_ptr; int is_const; int is_const_ptr; int is_mapped; int is_array; int in_param; int out_param; int extract; struct node *next; struct node *prev; }; struct p_mode { int in; int out; }; union yystype { struct token tok; struct node *node; struct p_mode param_mode; int bool; }; #define YYSTYPE union yystype
#define FUNC 1 #define PARAM 2 #define PTR_PARAM 3 struct token { int tok_type; char *val; }; struct node { int node_type; char *type_name; char *id; int is_ptr; int is_const; int is_mapped; int is_array; int extract; struct node *next; struct node *prev; }; union yystype { struct token tok; struct node *node; }; #define YYSTYPE union yystype
--- +++ @@ -13,15 +13,26 @@ char *id; int is_ptr; int is_const; + int is_const_ptr; int is_mapped; int is_array; + int in_param; + int out_param; int extract; struct node *next; struct node *prev; }; - + +struct p_mode { + int in; + int out; +}; + + union yystype { - struct token tok; - struct node *node; + struct token tok; + struct node *node; + struct p_mode param_mode; + int bool; }; #define YYSTYPE union yystype
Add boolean type so yacc productions can return a boolean value. Add parameter mode type so we can tag parameters as IN, OUT, or BOTH.
apache-2.0
htcondor/htcondor,djw8605/condor,htcondor/htcondor,htcondor/htcondor,djw8605/condor,bbockelm/condor-network-accounting,neurodebian/htcondor,bbockelm/condor-network-accounting,mambelli/osg-bosco-marco,djw8605/condor,neurodebian/htcondor,zhangzhehust/htcondor,bbockelm/condor-network-accounting,htcondor/htcondor,bbockelm/condor-network-accounting,clalancette/condor-dcloud,clalancette/condor-dcloud,djw8605/condor,djw8605/condor,bbockelm/condor-network-accounting,djw8605/htcondor,djw8605/htcondor,bbockelm/condor-network-accounting,htcondor/htcondor,zhangzhehust/htcondor,djw8605/condor,djw8605/htcondor,neurodebian/htcondor,neurodebian/htcondor,zhangzhehust/htcondor,djw8605/htcondor,djw8605/htcondor,zhangzhehust/htcondor,mambelli/osg-bosco-marco,zhangzhehust/htcondor,clalancette/condor-dcloud,neurodebian/htcondor,mambelli/osg-bosco-marco,zhangzhehust/htcondor,mambelli/osg-bosco-marco,djw8605/htcondor,mambelli/osg-bosco-marco,htcondor/htcondor,bbockelm/condor-network-accounting,clalancette/condor-dcloud,djw8605/htcondor,djw8605/htcondor,htcondor/htcondor,neurodebian/htcondor,djw8605/htcondor,clalancette/condor-dcloud,zhangzhehust/htcondor,djw8605/condor,zhangzhehust/htcondor,mambelli/osg-bosco-marco,mambelli/osg-bosco-marco,bbockelm/condor-network-accounting,zhangzhehust/htcondor,htcondor/htcondor,clalancette/condor-dcloud,mambelli/osg-bosco-marco,neurodebian/htcondor,djw8605/condor,neurodebian/htcondor,neurodebian/htcondor,clalancette/condor-dcloud
b1e1910a974865a362546d7d4bee35becb69b5e2
#include "stack.h" struct Stack { size_t size; size_t top; void** e; }; Stack* Stack_Create(size_t n) { Stack* s = (Stack *)malloc(sizeof(Stack)); s->size = n; s->top = 0; s->e = (void**)malloc(sizeof(void*) * (n + 1)); return s; } int Stack_Empty(Stack* s) { if (s->top == 0) { return 1; } else { return 0; } } void Stack_Push(Stack* s, void* e) { if (s == NULL) return; if (s->top == s->size) return; s->top = s->top + 1; s->e[s->top] = e; } void* Stack_Pop(Stack* s) { if (Stack_Empty(s)) return; s->top = s->top - 1; return s->e[s->top+1]; } void Stack_Destroy(Stack* s) { if (s == NULL) return; free(s->e); free(s); }
#include "stack.h" struct Stack { size_t size; size_t top; void** e; } Stack* Stack_Create(size_t n) { Stack* s = (Stack *)malloc(sizeof(Stack)); s->size = n; s->top = 0; s->e = (void**)malloc(sizeof(void*) * (n + 1)); return s; } int Stack_Empty(Stack* s) { if (s->top == 0) { return 1; } else { return 0; } } void Stack_Push(Stack* s, void* e) { if (s == NULL) return; if (s->top == s->size) return; s->top = s->top + 1; s->e[s->top] = e; } void* Stack_Pop(Stack* s) { if (Stack_Empty(s)) return; s->top = s->top - 1; return s->e[s->top+1]; } void Stack_Destroy(Stack* s) { if (s == NULL) return; free(s->e); free(s); }
--- +++ @@ -5,7 +5,7 @@ size_t size; size_t top; void** e; -} +}; Stack* Stack_Create(size_t n) {
Fix missing ; in struct implementation
mit
MaxLikelihood/CADT
6f3db08828b139d50b6f91a8fd87e8b3b18fbf1f
#ifndef INCLUDE_ALGORITHMS_QUICK_UNION_WITH_PATH_COMPRESSION_H_ #define INCLUDE_ALGORITHMS_QUICK_UNION_WITH_PATH_COMPRESSION_H_ #include "DLLDefines.h" #include <vector> #include <stddef.h> /* This algorithm "Quick Union With Path Compression" solves the dynamic connectivity problem. Starting from an empty data structure, any sequence of M union-find ops on N objects makes ≤ c ( N + M lg* N ) array accesses. In reality log * function can be considered to be at the most 5. Thus in theory, this algorithm is not quite linear but in practice it is. */ namespace algorithms { class QuickUnionWithPathCompression { public: MYLIB_EXPORT QuickUnionWithPathCompression(size_t no_of_elements); MYLIB_EXPORT ~QuickUnionWithPathCompression() = default; MYLIB_EXPORT void Union(size_t elementA, size_t elementB); MYLIB_EXPORT bool Connected(size_t elementA, size_t elementB); private: size_t GetRoot(size_t element); inline bool IsIdInBounds(size_t element) { return element < id_.size(); } private: std::vector<size_t> id_; std::vector<size_t> size_; }; } #endif //INCLUDE_ALGORITHMS_QUICK_UNION_WITH_PATH_COMPRESSION_H_
#ifndef INCLUDE_ALGORITHMS_QUICK_UNION_WITH_PATH_COMPRESSION_H_ #define INCLUDE_ALGORITHMS_QUICK_UNION_WITH_PATH_COMPRESSION_H_ #include "DLLDefines.h" #include <vector> #include <stddef.h> /* This algorithm "Quick Union With Path Compression" solves the dynamic connectivity problem. Starting from an empty data structure, any sequence of M union-find ops on N objects makes ≤ c ( N + M lg* N ) array accesses. In reality log * function can be considered to be at the most 5. Thus in theory, this algorithm is not quite linear but in practice it is. */ namespace algorithms { class QuickUnionWithPathCompression { public: MYLIB_EXPORT QuickUnionWithPathCompression(size_t no_of_elements); MYLIB_EXPORT ~QuickUnionWithPathCompression() = default; MYLIB_EXPORT void Union(size_t elementA, size_t elementB); MYLIB_EXPORT bool Connected(size_t elementA, size_t elementB); private: size_t GetRoot(size_t element); inline bool IsIdInBounds(size_t element) { return element >= 0 && element < id_.size(); } private: std::vector<size_t> id_; std::vector<size_t> size_; }; } #endif //INCLUDE_ALGORITHMS_QUICK_UNION_WITH_PATH_COMPRESSION_H_
--- +++ @@ -24,7 +24,7 @@ size_t GetRoot(size_t element); inline bool IsIdInBounds(size_t element) { - return element >= 0 && element < id_.size(); + return element < id_.size(); } private:
Remove unnecessary checking of size_t >= 0
mit
TusharJadhav/algorithms,TusharJadhav/algorithms
ed69dd7849b8921917191d6a037d52043e44579f
#pragma once /* This header file declares drawing methods that are defined in rect.c or round.c, depending on the platform being built. Since the methods share the same function signature, they can share the same header file, even though the implementations of the functions themselves are different. */ void draw_seconds(GContext *ctx, uint8_t seconds, Layer *layer); void draw_minutes(GContext *ctx, uint8_t minutes, Layer *layer); void draw_hours(GContext *ctx, uint8_t hours, Layer *layer);
#pragma once void draw_seconds(GContext *ctx, uint8_t seconds, Layer *layer); void draw_minutes(GContext *ctx, uint8_t minutes, Layer *layer); void draw_hours(GContext *ctx, uint8_t hours, Layer *layer);
--- +++ @@ -1,4 +1,11 @@ #pragma once + +/* +This header file declares drawing methods that are defined in rect.c or round.c, +depending on the platform being built. Since the methods share the same function +signature, they can share the same header file, even though the implementations +of the functions themselves are different. +*/ void draw_seconds(GContext *ctx, uint8_t seconds, Layer *layer); void draw_minutes(GContext *ctx, uint8_t minutes, Layer *layer);
Add comment to header file about change
mit
NiVZ78/concentricity,pebble-examples/concentricity,NiVZ78/concentricity,pebble-examples/concentricity,pebble-examples/concentricity
98c1fbe223dd5469e194a4e772b8e5b181b692ee