commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
1
4.87k
subject
stringlengths
15
778
message
stringlengths
15
8.75k
lang
stringclasses
266 values
license
stringclasses
13 values
repos
stringlengths
5
127k
acadbfb90a54673d6c8b05aa4e93218433890411
arch/alpha/include/asm/bug.h
arch/alpha/include/asm/bug.h
#ifndef _ALPHA_BUG_H #define _ALPHA_BUG_H #include <linux/linkage.h> #ifdef CONFIG_BUG #include <asm/pal.h> /* ??? Would be nice to use .gprel32 here, but we can't be sure that the function loaded the GP, so this could fail in modules. */ #define BUG() do { \ __asm__ __volatile__( \ "call_pal %0 # bugchk\n\t" \ ".long %1\n\t.8byte %2" \ : : "i"(PAL_bugchk), "i"(__LINE__), "i"(__FILE__)); \ for ( ; ; ); } while (0) #define HAVE_ARCH_BUG #endif #include <asm-generic/bug.h> #endif
#ifndef _ALPHA_BUG_H #define _ALPHA_BUG_H #include <linux/linkage.h> #ifdef CONFIG_BUG #include <asm/pal.h> /* ??? Would be nice to use .gprel32 here, but we can't be sure that the function loaded the GP, so this could fail in modules. */ #define BUG() do { \ __asm__ __volatile__( \ "call_pal %0 # bugchk\n\t" \ ".long %1\n\t.8byte %2" \ : : "i"(PAL_bugchk), "i"(__LINE__), "i"(__FILE__)); \ unreachable(); \ } while (0) #define HAVE_ARCH_BUG #endif #include <asm-generic/bug.h> #endif
Convert BUG() to use unreachable()
alpha: Convert BUG() to use unreachable() Use the new unreachable() macro instead of for(;;); Signed-off-by: David Daney <0662de36cfb0706ed279bff52abef14720945acc@caviumnetworks.com> CC: Richard Henderson <aea4fd857e97ee7d33f60175ba9388a955b9d916@twiddle.net> CC: Ivan Kokshaysky <ec437ab60af367f0fec0f6a3cd47f9cbad7b487f@jurassic.park.msu.ru> CC: 92b16e4f8d3bce14a77cfee1aa13cdb592ef5039@vger.kernel.org Signed-off-by: Matt Turner <789b315743a28dd066a4ba1459c35951c291d8a6@gmail.com>
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas
2536840398104b0270ba1156b1ff63cb4ae2a2ef
AsynchFilePlugin/AsynchFilePlugin.h
AsynchFilePlugin/AsynchFilePlugin.h
/* Header file for AsynchFile plugin */ /* module initialization/shutdown */ int asyncFileInit(void); int asyncFileShutdown(void); /*** Experimental Asynchronous File I/O ***/ typedef struct { int sessionID; void *state; } AsyncFile; int asyncFileClose(AsyncFile *f); int asyncFileOpen(AsyncFile *f, long fileNamePtr, int fileNameSize, int writeFlag, int semaIndex); int asyncFileRecordSize(); int asyncFileReadResult(AsyncFile *f, long bufferPtr, int bufferSize); int asyncFileReadStart(AsyncFile *f, int fPosition, int count); int asyncFileWriteResult(AsyncFile *f); int asyncFileWriteStart(AsyncFile *f, int fPosition, long bufferPtr, int bufferSize);
/* Header file for AsynchFile plugin */ /* module initialization/shutdown */ int asyncFileInit(void); int asyncFileShutdown(void); /*** Experimental Asynchronous File I/O ***/ typedef struct { int sessionID; void *state; } AsyncFile; int asyncFileClose(AsyncFile *f); int asyncFileOpen(AsyncFile *f, char *fileNamePtr, int fileNameSize, int writeFlag, int semaIndex); int asyncFileRecordSize(); int asyncFileReadResult(AsyncFile *f, void *bufferPtr, int bufferSize); int asyncFileReadStart(AsyncFile *f, int fPosition, int count); int asyncFileWriteResult(AsyncFile *f); int asyncFileWriteStart(AsyncFile *f, int fPosition, void *bufferPtr, int bufferSize);
Update platforms/* with Eliot's fixes for 64-bit clean AsyncPlugin.
Update platforms/* with Eliot's fixes for 64-bit clean AsyncPlugin. The platforms/unix changes are tested. The win32 and Mac OS changes are not tested but I believe them to be correct. Not applicable to RiscOS. Updates not applied to iOS. @eliot - I changed the declarations in Cross to (void *) rather than long to reduce type casts in platforms/[unix|win32|Mac OS]. @esteban - I did not update platforms/iOS in SVN trunk. Please update declarations as needed. @tim - no change required for RiscOS. git-svn-id: http://squeakvm.org/svn/squeak/trunk@3178 fa1542d4-bde8-0310-ad64-8ed1123d492a Former-commit-id: 55982481b07c41df485b88dff5a63920f92525d0
C
mit
bencoman/pharo-vm,peteruhnak/pharo-vm,peteruhnak/pharo-vm,OpenSmalltalk/vm,timfel/squeakvm,OpenSmalltalk/vm,bencoman/pharo-vm,bencoman/pharo-vm,bencoman/pharo-vm,timfel/squeakvm,timfel/squeakvm,bencoman/pharo-vm,bencoman/pharo-vm,peteruhnak/pharo-vm,timfel/squeakvm,peteruhnak/pharo-vm,OpenSmalltalk/vm,bencoman/pharo-vm,OpenSmalltalk/vm,timfel/squeakvm,peteruhnak/pharo-vm,timfel/squeakvm,bencoman/pharo-vm,peteruhnak/pharo-vm,bencoman/pharo-vm,OpenSmalltalk/vm,peteruhnak/pharo-vm,peteruhnak/pharo-vm,timfel/squeakvm,timfel/squeakvm,OpenSmalltalk/vm,OpenSmalltalk/vm,OpenSmalltalk/vm
d7f2d994baaa83db932dbb1a0b8a31a717af1103
src/badgewars.c
src/badgewars.c
#include <badgewars.h> #include <stdio.h> /* Initialize the BadgeWars world */ void bw_init(struct bw_world *world) { puts("bw_init requested"); } /* Run the BadgeWars world for a single instruction */ int bw_run(struct bw_world *world) { puts("bw_run requested"); return 0; } /* Receive a BadgeWars command from the outside world */ void bw_receive(struct bw_world *world, OPCODE command, void *addr, void(*send_response)(int, void *)) { printf("bw_receive got op: %d\n", command.op); } /* Peek into the core state */ CELL bw_peek(struct bw_world *world, CELLPTR addr) { printf("bw_peek(%d) called\n", addr); return 0; }
#include <badgewars.h> #include <string.h> /* Initialize the BadgeWars world */ void bw_init(struct bw_world *world) { memset(&world->core, 0, sizeof(world->core)); world->queue_head = world->queue_tail = 0; } /* Run the BadgeWars world for a single instruction */ int bw_run(struct bw_world *world) { return 0; } /* Receive a BadgeWars command from the outside world */ void bw_receive(struct bw_world *world, OPCODE command, void *addr, void(*send_response)(int, void *)) { } /* Peek into the core state */ CELL bw_peek(struct bw_world *world, CELLPTR addr) { return world->core[addr]; }
Initialize the world state to zero
Initialize the world state to zero
C
mit
tarcieri/BadgeWars,tarcieri/BadgeWars
822b9fd29f6ce8b69dc2705f04cae44fbb3e78f7
webkit/glue/plugins/ppb_private.h
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_
// 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_
Add third_party/ prefix to ppapi include for checkdeps.
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: http://src.chromium.org/svn/trunk/src@52766 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: b5583121378597058f8f083243d2299fd262e509
C
bsd-3-clause
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser
e2a6ce53ab445fd8976923171e78bd0e46db2407
src/mapraised.c
src/mapraised.c
/* Copyright (c) 2013 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. * * Maps and raises the specified window id (integer). */ #include <X11/Xlib.h> #include <stdlib.h> int main(int argc, char** argv) { if (argc != 2) return 2; Display* display = XOpenDisplay(NULL); if (!display) return 1; XMapRaised(display, atoi(argv[1])); XCloseDisplay(display); return 0; }
/* Copyright (c) 2013 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. * * Maps and raises the specified window id (integer). */ /* TODO: use XResizeWindow to do the +1 width ratpoison hack. * And at this point, we might as well use XMoveResizeWindow, rename this to * wmtool and unmap the previously-mapped window, and perhaps call the * equivalent of XRefresh, eliminating the need for ratpoison entirely (!!). */ #include <X11/Xlib.h> #include <stdlib.h> int main(int argc, char** argv) { if (argc != 2) return 2; Display* display = XOpenDisplay(NULL); if (!display) return 1; XMapRaised(display, atoi(argv[1])); XCloseDisplay(display); return 0; }
Add TODO to replace ratpoison.
Add TODO to replace ratpoison.
C
bsd-3-clause
nromsdahl/crouton,twmccart/crouton,VandeurenGlenn/crouton,Timvrakas/crouton,stephen-soltesz/crouton,fxcebx/crouton,arbuztw/crouton,StrawnPoint04/crouton,Timvrakas/crouton,ikaritw/crouton,tonyxue/cruise,rperce/chroagh,armgong/chroagh,JDGBOLT/chroagh,arbuztw/crouton,Timvrakas/crouton,jamgregory/crouton,taterbase/crouton,arbuztw/crouton,StrawnPoint04/crouton,mkasick/crouton,DanDanBu/crouton,ikaritw/crouton,marriop/newCrouton,dragon788/chroagh,VandeurenGlenn/crouton,rperce/chroagh,mkasick/crouton,elkangaroo/chroagh,armgong/chroagh,rperce/chroagh,zofuthan/crouton,marriop/newCrouton,jamgregory/crouton,VandeurenGlenn/crouton,DanDanBu/crouton,StrawnPoint04/crouton,twmccart/crouton,jamgregory/crouton,tonyxue/cruise,dragon788/chroagh,armgong/chroagh,nromsdahl/crouton,nromsdahl/crouton,nromsdahl/crouton,elkangaroo/chroagh,tonyxue/cruise,twmccart/crouton,ikaritw/crouton,brayniac/crouton,VandeurenGlenn/crouton,armgong/chroagh,fxcebx/crouton,ikaritw/crouton,arbuztw/crouton,elkangaroo/chroagh,stephen-soltesz/crouton,VandeurenGlenn/crouton,tedm/crouton,jamgregory/crouton,dragon788/chroagh,tedm/crouton,zofuthan/crouton,armgong/chroagh,JDGBOLT/chroagh,jamgregory/crouton,StrawnPoint04/crouton,taterbase/crouton,ikaritw/crouton,brayniac/crouton,tedm/crouton,arbuztw/crouton,djmrr/crouton,mkasick/crouton,DanDanBu/crouton,brayniac/crouton,stephen-soltesz/crouton,mkasick/crouton,fxcebx/crouton,StrawnPoint04/crouton,elkangaroo/chroagh,stephen-soltesz/crouton,armgong/chroagh,taterbase/crouton,dnschneid/crouton,arbuztw/crouton,rperce/chroagh,VandeurenGlenn/crouton,Timvrakas/crouton,tonyxue/cruise,twmccart/crouton,dnschneid/crouton,dnschneid/crouton,tedm/crouton,dnschneid/crouton,mkasick/crouton,taterbase/crouton,ikaritw/crouton,taterbase/crouton,taterbase/crouton,rperce/chroagh,tonyxue/cruise,zofuthan/crouton,nromsdahl/crouton,dragon788/chroagh,JDGBOLT/chroagh,djmrr/crouton,djmrr/crouton,nromsdahl/crouton,djmrr/crouton,JDGBOLT/chroagh,fxcebx/crouton,tonyxue/cruise,brayniac/crouton,Timvrakas/crouton,mkasick/crouton,DanDanBu/crouton,fxcebx/crouton,marriop/newCrouton,zofuthan/crouton,zofuthan/crouton,twmccart/crouton,elkangaroo/chroagh,JDGBOLT/chroagh,twmccart/crouton,Timvrakas/crouton,djmrr/crouton,JDGBOLT/chroagh,zofuthan/crouton,DanDanBu/crouton,stephen-soltesz/crouton,elkangaroo/chroagh,rperce/chroagh,dragon788/chroagh,dragon788/chroagh,dnschneid/crouton,brayniac/crouton,brayniac/crouton,stephen-soltesz/crouton,DanDanBu/crouton,fxcebx/crouton,tedm/crouton,tedm/crouton,jamgregory/crouton,dnschneid/crouton,StrawnPoint04/crouton,djmrr/crouton
40373bf93e90ab4d372d149aad334dfe238c1eed
src/arch/zephyr/csp_zephyr_init.c
src/arch/zephyr/csp_zephyr_init.c
#include <zephyr.h> #include <init.h> #include <posix/time.h> #include <csp/csp_debug.h> #include <logging/log.h> LOG_MODULE_REGISTER(libcsp); static void hook_func(csp_debug_level_t level, const char * format, va_list args) { uint32_t args_num = log_count_args(format); switch (level) { case CSP_ERROR: Z_LOG_VA(LOG_LEVEL_ERR, format, args, args_num, LOG_STRDUP_EXEC); break; case CSP_WARN: Z_LOG_VA(LOG_LEVEL_WRN, format, args, args_num, LOG_STRDUP_EXEC); break; default: Z_LOG_VA(LOG_LEVEL_INF, format, args, args_num, LOG_STRDUP_EXEC); break; } } static int libcsp_zephyr_init(const struct device * unused) { csp_debug_hook_set(hook_func); struct timespec ts = { .tv_sec = 946652400, .tv_nsec = 0, }; clock_settime(CLOCK_REALTIME, &ts); return 0; } SYS_INIT(libcsp_zephyr_init, APPLICATION, CONFIG_APPLICATION_INIT_PRIORITY);
#include <zephyr.h> #include <init.h> #include <posix/time.h> #include <csp/csp_debug.h> #include <logging/log.h> LOG_MODULE_REGISTER(libcsp); } static int libcsp_zephyr_init(const struct device * unused) { struct timespec ts = { .tv_sec = 946652400, .tv_nsec = 0, }; clock_settime(CLOCK_REALTIME, &ts); return 0; } SYS_INIT(libcsp_zephyr_init, APPLICATION, CONFIG_APPLICATION_INIT_PRIORITY);
Remove debug print hook function
zephyr: Remove debug print hook function Debug print facility has been removed by the commit 39d6478; csp_debug_hook_set(), csp_debug_level_t, CSP_ERROR and its friends are gone. Remove it from Zephyr as well. Signed-off-by: Yasushi SHOJI <afa9ca3be149447780c2f7b524d61ed3d3db63f9@spacecubics.com>
C
mit
libcsp/libcsp,libcsp/libcsp
ea2b22d62983758013ca528ef1325d6c191420b2
CoreNetworking/AFNetworkSchedule.h
CoreNetworking/AFNetworkSchedule.h
// // AFNetworkEnvironment.h // CoreNetworking // // Created by Keith Duncan on 05/01/2013. // Copyright (c) 2013 Keith Duncan. All rights reserved. // #import <Foundation/Foundation.h> #import "CoreNetworking/AFNetwork-Macros.h" /*! \brief Schedule environment for run loop and dispatch */ @interface AFNetworkSchedule : NSObject { @package NSRunLoop *_runLoop; NSString *_runLoopMode; void *_dispatchQueue; } - (void)scheduleInRunLoop:(NSRunLoop *)runLoop forMode:(NSString *)mode; - (void)scheduleInQueue:(dispatch_queue_t)queue; @end
// // AFNetworkEnvironment.h // CoreNetworking // // Created by Keith Duncan on 05/01/2013. // Copyright (c) 2013 Keith Duncan. All rights reserved. // #import <Foundation/Foundation.h> #import "CoreNetworking/AFNetwork-Macros.h" /*! \brief Schedule environment for run loop and dispatch */ @interface AFNetworkSchedule : NSObject { @public NSRunLoop *_runLoop; NSString *_runLoopMode; void *_dispatchQueue; } - (void)scheduleInRunLoop:(NSRunLoop *)runLoop forMode:(NSString *)mode; - (void)scheduleInQueue:(dispatch_queue_t)queue; @end
Make the run loop and queue @public until we enhance the scheduler API
Make the run loop and queue @public until we enhance the scheduler API
C
bsd-3-clause
ddeville/CoreNetworking
1009adc8cf7154d19c7ffebc2e35d70722076ea8
native-unpacker/definitions.h
native-unpacker/definitions.h
/* * Header file for the definitions of packers/protectors * * Tim "diff" Strazzere <strazz@gmail.com> */ typedef struct { char* name; char* description; char* filter; char* marker; } packer; static packer packers[] = { // APKProtect { "APKProtect v1->5", "APKProtect generialized detection", // This is actually the filter APKProtect uses itself for finding it's own odex to modify ".apk@", "/libAPKProtect" }, // LIAPP { "LIAPP 'Egg' (v1->?)", "LockIn APP (lockincomp.com)", "LIAPPEgg.dex", "/LIAPPEgg" }, // Qihoo 'Monster' { "Qihoo 'Monster' (v1->?)", "Qihoo unknown version, code named 'monster'", "monster.dex", "/libprotectClass" } };
/* * Header file for the definitions of packers/protectors * * Tim "diff" Strazzere <strazz@gmail.com> */ typedef struct { char* name; char* description; char* filter; char* marker; } packer; static packer packers[] = { // APKProtect { "APKProtect v1->5", "APKProtect generialized detection", // This is actually the filter APKProtect uses itself for finding it's own odex to modify ".apk@", "/libAPKProtect" }, // Bangcle (??) or something equally silly { "Bangcle (??) silly version", "Something silly used by malware", "classes.dex", "/app_lib/" }, // LIAPP { "LIAPP 'Egg' (v1->?)", "LockIn APP (lockincomp.com)", "LIAPPEgg.dex", "/LIAPPEgg" }, // Qihoo 'Monster' { "Qihoo 'Monster' (v1->?)", "Qihoo unknown version, code named 'monster'", "monster.dex", "/libprotectClass" } };
Add detection for whatever silly protector new malware was using.
Add detection for whatever silly protector new malware was using. Closes issue #22
C
apache-2.0
strazzere/android-unpacker,strazzere/android-unpacker
b672df825ad9d6b4b16ddadb73c9b012c04ded05
include/llvm/DebugInfo/CodeView/GUID.h
include/llvm/DebugInfo/CodeView/GUID.h
//===- GUID.h ---------------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_CODEVIEW_GUID_H #define LLVM_DEBUGINFO_CODEVIEW_GUID_H #include <cstdint> #include <cstring> namespace llvm { class raw_ostream; namespace codeview { /// This represents the 'GUID' type from windows.h. struct GUID { uint8_t Guid[16]; }; inline bool operator==(const GUID &LHS, const GUID &RHS) { return 0 == ::memcmp(LHS.Guid, RHS.Guid, sizeof(LHS.Guid)); } raw_ostream &operator<<(raw_ostream &OS, const GUID &Guid); } // namespace codeview } // namespace llvm #endif
//===- GUID.h ---------------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_CODEVIEW_GUID_H #define LLVM_DEBUGINFO_CODEVIEW_GUID_H #include <cstdint> #include <cstring> namespace llvm { class raw_ostream; namespace codeview { /// This represents the 'GUID' type from windows.h. struct GUID { uint8_t Guid[16]; }; inline bool operator==(const GUID &LHS, const GUID &RHS) { return 0 == ::memcmp(LHS.Guid, RHS.Guid, sizeof(LHS.Guid)); } inline bool operator<(const GUID &LHS, const GUID &RHS) { return ::memcmp(LHS.Guid, RHS.Guid, sizeof(LHS.Guid)) < 0; } inline bool operator<=(const GUID &LHS, const GUID &RHS) { return ::memcmp(LHS.Guid, RHS.Guid, sizeof(LHS.Guid)) <= 0; } inline bool operator>(const GUID &LHS, const GUID &RHS) { return !(LHS <= RHS); } inline bool operator>=(const GUID &LHS, const GUID &RHS) { return !(LHS < RHS); } inline bool operator!=(const GUID &LHS, const GUID &RHS) { return !(LHS == RHS); } raw_ostream &operator<<(raw_ostream &OS, const GUID &Guid); } // namespace codeview } // namespace llvm #endif
Merge in types and items from type servers (/Zi)
[PDB] Merge in types and items from type servers (/Zi) Summary: Object files compiled with /Zi emit type information into a type server PDB. The .debug$S section will contain a single TypeServer2Record with the absolute path and GUID of the type server. LLD needs to load the type server PDB and merge all types and items it finds in it into the destination PDB. Depends on D35495 Reviewers: ruiu, inglorion Subscribers: zturner, llvm-commits Differential Revision: https://reviews.llvm.org/D35504 git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@308235 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm
4cb0950cfe4055ca54d08b9639ee4e462cb009a3
src/include/storage/relfilenode.h
src/include/storage/relfilenode.h
#ifndef RELFILENODE_H #define RELFILENODE_H /* * This is all what we need to know to find relation file. * tblNode is identificator of tablespace and because of * currently our tablespaces are equal to databases this is * database OID. relNode is currently relation OID on creation * but may be changed later if required. relNode is stored in * pg_class.relfilenode. */ typedef struct RelFileNode { Oid tblNode; /* tablespace */ Oid relNode; /* relation */ } RelFileNode; #define RelFileNodeEquals(node1, node2) \ ((node1).relNode == (node2).relNode && \ (node2).tblNode == (node2).tblNode) #endif /* RELFILENODE_H */
#ifndef RELFILENODE_H #define RELFILENODE_H /* * This is all what we need to know to find relation file. * tblNode is identificator of tablespace and because of * currently our tablespaces are equal to databases this is * database OID. relNode is currently relation OID on creation * but may be changed later if required. relNode is stored in * pg_class.relfilenode. */ typedef struct RelFileNode { Oid tblNode; /* tablespace */ Oid relNode; /* relation */ } RelFileNode; #define RelFileNodeEquals(node1, node2) \ ((node1).relNode == (node2).relNode && \ (node1).tblNode == (node2).tblNode) #endif /* RELFILENODE_H */
Fix small but critical typo ...
Fix small but critical typo ...
C
apache-2.0
xuegang/gpdb,jmcatamney/gpdb,cjcjameson/gpdb,chrishajas/gpdb,adam8157/gpdb,zeroae/postgres-xl,cjcjameson/gpdb,atris/gpdb,kaknikhil/gpdb,techdragon/Postgres-XL,janebeckman/gpdb,50wu/gpdb,0x0FFF/gpdb,ahachete/gpdb,rvs/gpdb,yuanzhao/gpdb,yuanzhao/gpdb,kmjungersen/PostgresXL,rubikloud/gpdb,atris/gpdb,ashwinstar/gpdb,janebeckman/gpdb,yazun/postgres-xl,kaknikhil/gpdb,techdragon/Postgres-XL,oberstet/postgres-xl,pavanvd/postgres-xl,adam8157/gpdb,Postgres-XL/Postgres-XL,zaksoup/gpdb,adam8157/gpdb,xuegang/gpdb,kaknikhil/gpdb,snaga/postgres-xl,pavanvd/postgres-xl,ahachete/gpdb,royc1/gpdb,Chibin/gpdb,foyzur/gpdb,xuegang/gpdb,postmind-net/postgres-xl,greenplum-db/gpdb,CraigHarris/gpdb,lintzc/gpdb,Quikling/gpdb,foyzur/gpdb,ahachete/gpdb,atris/gpdb,yuanzhao/gpdb,techdragon/Postgres-XL,zeroae/postgres-xl,CraigHarris/gpdb,foyzur/gpdb,adam8157/gpdb,chrishajas/gpdb,xinzweb/gpdb,CraigHarris/gpdb,lintzc/gpdb,yuanzhao/gpdb,Postgres-XL/Postgres-XL,yazun/postgres-xl,50wu/gpdb,ovr/postgres-xl,50wu/gpdb,lintzc/gpdb,Quikling/gpdb,royc1/gpdb,kaknikhil/gpdb,jmcatamney/gpdb,CraigHarris/gpdb,lpetrov-pivotal/gpdb,postmind-net/postgres-xl,jmcatamney/gpdb,kmjungersen/PostgresXL,xinzweb/gpdb,edespino/gpdb,edespino/gpdb,Quikling/gpdb,Chibin/gpdb,ovr/postgres-xl,edespino/gpdb,lisakowen/gpdb,randomtask1155/gpdb,xinzweb/gpdb,edespino/gpdb,tpostgres-projects/tPostgres,ashwinstar/gpdb,techdragon/Postgres-XL,zaksoup/gpdb,zaksoup/gpdb,janebeckman/gpdb,oberstet/postgres-xl,royc1/gpdb,tangp3/gpdb,janebeckman/gpdb,kaknikhil/gpdb,rvs/gpdb,Chibin/gpdb,royc1/gpdb,atris/gpdb,arcivanov/postgres-xl,atris/gpdb,lisakowen/gpdb,Quikling/gpdb,arcivanov/postgres-xl,randomtask1155/gpdb,50wu/gpdb,edespino/gpdb,Quikling/gpdb,rvs/gpdb,atris/gpdb,chrishajas/gpdb,cjcjameson/gpdb,royc1/gpdb,xuegang/gpdb,postmind-net/postgres-xl,ahachete/gpdb,0x0FFF/gpdb,tangp3/gpdb,zeroae/postgres-xl,rubikloud/gpdb,greenplum-db/gpdb,zaksoup/gpdb,arcivanov/postgres-xl,greenplum-db/gpdb,Quikling/gpdb,rvs/gpdb,arcivanov/postgres-xl,kaknikhil/gpdb,edespino/gpdb,adam8157/gpdb,ovr/postgres-xl,xinzweb/gpdb,rubikloud/gpdb,kaknikhil/gpdb,snaga/postgres-xl,adam8157/gpdb,Quikling/gpdb,chrishajas/gpdb,CraigHarris/gpdb,randomtask1155/gpdb,edespino/gpdb,chrishajas/gpdb,tangp3/gpdb,greenplum-db/gpdb,oberstet/postgres-xl,yuanzhao/gpdb,lpetrov-pivotal/gpdb,tpostgres-projects/tPostgres,jmcatamney/gpdb,randomtask1155/gpdb,lisakowen/gpdb,tpostgres-projects/tPostgres,0x0FFF/gpdb,xinzweb/gpdb,janebeckman/gpdb,lisakowen/gpdb,50wu/gpdb,rvs/gpdb,lisakowen/gpdb,chrishajas/gpdb,rvs/gpdb,cjcjameson/gpdb,pavanvd/postgres-xl,pavanvd/postgres-xl,kmjungersen/PostgresXL,ovr/postgres-xl,greenplum-db/gpdb,cjcjameson/gpdb,0x0FFF/gpdb,Chibin/gpdb,xinzweb/gpdb,ahachete/gpdb,CraigHarris/gpdb,tangp3/gpdb,royc1/gpdb,0x0FFF/gpdb,yuanzhao/gpdb,zeroae/postgres-xl,randomtask1155/gpdb,arcivanov/postgres-xl,jmcatamney/gpdb,jmcatamney/gpdb,0x0FFF/gpdb,lintzc/gpdb,CraigHarris/gpdb,yazun/postgres-xl,royc1/gpdb,ashwinstar/gpdb,lpetrov-pivotal/gpdb,ashwinstar/gpdb,atris/gpdb,oberstet/postgres-xl,lintzc/gpdb,tangp3/gpdb,jmcatamney/gpdb,rvs/gpdb,Postgres-XL/Postgres-XL,snaga/postgres-xl,ashwinstar/gpdb,ashwinstar/gpdb,Chibin/gpdb,postmind-net/postgres-xl,janebeckman/gpdb,greenplum-db/gpdb,rubikloud/gpdb,tpostgres-projects/tPostgres,yazun/postgres-xl,foyzur/gpdb,rvs/gpdb,xinzweb/gpdb,kaknikhil/gpdb,ahachete/gpdb,ashwinstar/gpdb,yuanzhao/gpdb,rvs/gpdb,foyzur/gpdb,Chibin/gpdb,rubikloud/gpdb,lpetrov-pivotal/gpdb,janebeckman/gpdb,randomtask1155/gpdb,jmcatamney/gpdb,lpetrov-pivotal/gpdb,royc1/gpdb,50wu/gpdb,rubikloud/gpdb,xuegang/gpdb,janebeckman/gpdb,xuegang/gpdb,zaksoup/gpdb,cjcjameson/gpdb,janebeckman/gpdb,Chibin/gpdb,yuanzhao/gpdb,lintzc/gpdb,kmjungersen/PostgresXL,cjcjameson/gpdb,oberstet/postgres-xl,yazun/postgres-xl,CraigHarris/gpdb,xuegang/gpdb,Chibin/gpdb,CraigHarris/gpdb,janebeckman/gpdb,0x0FFF/gpdb,postmind-net/postgres-xl,cjcjameson/gpdb,xuegang/gpdb,ahachete/gpdb,foyzur/gpdb,50wu/gpdb,snaga/postgres-xl,randomtask1155/gpdb,yuanzhao/gpdb,lintzc/gpdb,ovr/postgres-xl,Quikling/gpdb,zaksoup/gpdb,tangp3/gpdb,foyzur/gpdb,lpetrov-pivotal/gpdb,Chibin/gpdb,chrishajas/gpdb,lintzc/gpdb,50wu/gpdb,Chibin/gpdb,zaksoup/gpdb,techdragon/Postgres-XL,edespino/gpdb,adam8157/gpdb,ashwinstar/gpdb,xinzweb/gpdb,Quikling/gpdb,0x0FFF/gpdb,lisakowen/gpdb,yuanzhao/gpdb,lisakowen/gpdb,adam8157/gpdb,foyzur/gpdb,pavanvd/postgres-xl,rubikloud/gpdb,edespino/gpdb,tpostgres-projects/tPostgres,cjcjameson/gpdb,chrishajas/gpdb,cjcjameson/gpdb,rubikloud/gpdb,lpetrov-pivotal/gpdb,tangp3/gpdb,kmjungersen/PostgresXL,Postgres-XL/Postgres-XL,lintzc/gpdb,ahachete/gpdb,xuegang/gpdb,kaknikhil/gpdb,rvs/gpdb,zeroae/postgres-xl,snaga/postgres-xl,Postgres-XL/Postgres-XL,randomtask1155/gpdb,tangp3/gpdb,lpetrov-pivotal/gpdb,lisakowen/gpdb,Quikling/gpdb,atris/gpdb,kaknikhil/gpdb,zaksoup/gpdb,edespino/gpdb,arcivanov/postgres-xl,greenplum-db/gpdb,greenplum-db/gpdb
9b86f2f27bdc1116be1b388e0e66c34b10006ba6
Plugins/org.mitk.gui.qt.multilabelsegmentation/src/internal/QmitkCreateMultiLabelSegmentationAction.h
Plugins/org.mitk.gui.qt.multilabelsegmentation/src/internal/QmitkCreateMultiLabelSegmentationAction.h
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE.txt or http://www.mitk.org for details. ===================================================================*/ #ifndef QMITK_CreateMultiLabelSegmentation_H #define QMITK_CreateMultiLabelSegmentation_H #include "mitkIContextMenuAction.h" #include "org_mitk_gui_qt_multilabelsegmentation_Export.h" #include "vector" #include "mitkDataNode.h" class MITK_QT_SEGMENTATION QmitkCreateMultiLabelSegmentationAction : public QObject, public mitk::IContextMenuAction { Q_OBJECT Q_INTERFACES(mitk::IContextMenuAction) public: QmitkCreateMultiLabelSegmentationAction(); virtual ~QmitkCreateMultiLabelSegmentationAction(); //interface methods virtual void Run( const QList<mitk::DataNode::Pointer>& selectedNodes ); virtual void SetDataStorage(mitk::DataStorage* dataStorage); virtual void SetFunctionality(berry::QtViewPart* functionality); virtual void SetSmoothed(bool smoothed); virtual void SetDecimated(bool decimated); private: typedef QList<mitk::DataNode::Pointer> NodeList; mitk::DataStorage::Pointer m_DataStorage; }; #endif // QMITK_CreateMultiLabelSegmentation_H
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE.txt or http://www.mitk.org for details. ===================================================================*/ #ifndef QMITK_CreateMultiLabelSegmentation_H #define QMITK_CreateMultiLabelSegmentation_H #include "mitkIContextMenuAction.h" #include "org_mitk_gui_qt_multilabelsegmentation_Export.h" #include "vector" #include "mitkDataNode.h" class MITK_QT_SEGMENTATION QmitkCreateMultiLabelSegmentationAction : public QObject, public mitk::IContextMenuAction { Q_OBJECT Q_INTERFACES(mitk::IContextMenuAction) public: QmitkCreateMultiLabelSegmentationAction(); virtual ~QmitkCreateMultiLabelSegmentationAction(); //interface methods virtual void Run( const QList<mitk::DataNode::Pointer>& selectedNodes ) override; virtual void SetDataStorage(mitk::DataStorage* dataStorage) override; virtual void SetFunctionality(berry::QtViewPart* functionality) override; virtual void SetSmoothed(bool smoothed) override; virtual void SetDecimated(bool decimated) override; private: typedef QList<mitk::DataNode::Pointer> NodeList; mitk::DataStorage::Pointer m_DataStorage; }; #endif // QMITK_CreateMultiLabelSegmentation_H
Add override keyword to overridden methods.
Add override keyword to overridden methods.
C
bsd-3-clause
iwegner/MITK,iwegner/MITK,fmilano/mitk,RabadanLab/MITKats,RabadanLab/MITKats,MITK/MITK,MITK/MITK,MITK/MITK,RabadanLab/MITKats,RabadanLab/MITKats,RabadanLab/MITKats,iwegner/MITK,fmilano/mitk,RabadanLab/MITKats,fmilano/mitk,fmilano/mitk,MITK/MITK,MITK/MITK,iwegner/MITK,iwegner/MITK,fmilano/mitk,fmilano/mitk,MITK/MITK,fmilano/mitk,iwegner/MITK
0c55d02164a8fcc6682791603e53d7c099f59699
include/matrix_access_impl.h
include/matrix_access_impl.h
//----------------------------------------------------------------------------- // Element Access //----------------------------------------------------------------------------- template<class T> T& matrix<T>::at( std::size_t row, std::size_t col ){ // TODO throw if out of bounds return data_.at(row*cols_+col); } template<class T> const T& matrix<T>::at( std::size_t row, std::size_t col ) const{ // TODO throw if out of bounds return data_.at(row*cols_+col); } template<class T> typename matrix<T>::matrix_row matrix<T>::operator[]( std::size_t row ){ return 0; } template<class T> const typename matrix<T>::matrix_row matrix<T>::operator[]( std::size_t row ) const{ return 0; }
//----------------------------------------------------------------------------- // Element Access //----------------------------------------------------------------------------- template<class T> T& matrix<T>::at( std::size_t row, std::size_t col ){ // TODO throw if out of bounds return data_.at(row*cols_+col); } template<class T> const T& matrix<T>::at( std::size_t row, std::size_t col ) const{ // TODO throw if out of bounds return data_.at(row*cols_+col); } template<class T> typename matrix<T>::matrix_row matrix<T>::operator[]( std::size_t row ){ return matrix_row(this,row); } template<class T> const typename matrix<T>::matrix_row matrix<T>::operator[]( std::size_t row ) const{ return matrix_row(this,row); } //----------------------------------------------------------------------------- // Row class element Access //----------------------------------------------------------------------------- template<class T> T& matrix<T>::matrix_row::operator[](std::size_t col){ return matrix_->data_[row_*matrix_->cols_+col]; } template<class T> const T& matrix<T>::matrix_row::operator[](std::size_t col) const{ return matrix_->data_[row_*matrix_->cols_+col]; }
Add square bracket opertator access.
Add square bracket opertator access.
C
mit
actinium/cppMatrix,actinium/cppMatrix
c2b721b570a6919d4e20d86dd380677714d37a61
SSPSolution/SSPSolution/StaticEntity.h
SSPSolution/SSPSolution/StaticEntity.h
#ifndef SSPAPPLICATION_ENTITIES_STATICENTITY_H #define SSPAPPLICATION_ENTITIES_STATICENTITY_H #include "Entity.h" class StaticEntity : public Entity { private: //Variables public: StaticEntity(); ~StaticEntity(); int Initialize(int entityID, PhysicsComponent* pComp, GraphicsComponent* gComp, AIComponent* aiComp); int Update(float dT, InputHandler* inputHandler); int React(int entityID, EVENT reactEvent); private: //Functions }; #endif
#ifndef SSPAPPLICATION_ENTITIES_STATICENTITY_H #define SSPAPPLICATION_ENTITIES_STATICENTITY_H #include "Entity.h" class StaticEntity : public Entity { private: //Variables public: StaticEntity(); ~StaticEntity(); int Initialize(int entityID, PhysicsComponent* pComp, GraphicsComponent* gComp, AIComponent* aiComp = nullptr); int Update(float dT, InputHandler* inputHandler); int React(int entityID, EVENT reactEvent); private: //Functions }; #endif
FIX Interface parameter for Entities
FIX Interface parameter for Entities
C
apache-2.0
Chringo/SSP,Chringo/SSP
c1edd1358355fd02d8687f679cb4486ad43a6cce
src/util.h
src/util.h
#ifndef UTIL_H #define UTIL_H /*** Utility functions ***/ #define ALLOC(type) ((type*) xmalloc(sizeof(type))) void *xmalloc(size_t); #define STARTS_WITH(x, y) (strncmp((x), (y), sizeof(y) - 1) == 0) #endif /* UTIL_H */
#ifndef UTIL_H #define UTIL_H /*** Utility functions ***/ #define ALLOC(type) ((type*) xmalloc(sizeof(type))) void *xmalloc(size_t); #define STARTS_WITH(x, y) (strncmp((x), (y), strlen(y)) == 0) #endif /* UTIL_H */
Fix STARTS_WITH macro comparing 1 less character than needed
Fix STARTS_WITH macro comparing 1 less character than needed
C
apache-2.0
mopidy/libmockspotify,mopidy/libmockspotify,mopidy/libmockspotify
bc33362a093bc50a2b0c6edad3242b5abf688482
ObjectiveRocks/RocksDBComparator.h
ObjectiveRocks/RocksDBComparator.h
// // RocksDBComparator.h // ObjectiveRocks // // Created by Iska on 22/11/14. // Copyright (c) 2014 BrainCookie. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSUInteger, RocksDBComparatorType) { RocksDBComparatorBytewiseAscending, RocksDBComparatorBytewiseDescending, RocksDBComparatorStringCompareAscending, RocksDBComparatorStringCompareDescending, RocksDBComparatorNumberAscending, RocksDBComparatorNumberDescending }; @interface RocksDBComparator : NSObject + (instancetype)comaparatorWithType:(RocksDBComparatorType)type; - (instancetype)initWithName:(NSString *)name andBlock:(int (^)(id key1, id key2))block; @end
// // RocksDBComparator.h // ObjectiveRocks // // Created by Iska on 22/11/14. // Copyright (c) 2014 BrainCookie. All rights reserved. // #import <Foundation/Foundation.h> /** An enum defining the built-in Comparators. */ typedef NS_ENUM(NSUInteger, RocksDBComparatorType) { /** @brief Orders the keys lexicographically in ascending order. */ RocksDBComparatorBytewiseAscending, /** @brief Orders the keys lexicographically in descending order. */ RocksDBComparatorBytewiseDescending, /** @brief Orders NSString keys in ascending order via the compare selector. */ RocksDBComparatorStringCompareAscending, /** @brief Orders NSString keys in descending order via the compare selector. */ RocksDBComparatorStringCompareDescending, /** @brief Orders NSNumber keys in ascending order via the compare selector.*/ RocksDBComparatorNumberAscending, /** @brief Orders NSNumber keys in descending order via the compare selector. */ RocksDBComparatorNumberDescending }; /** The keys are ordered within the key-value store according to a specified comparator function. The default ordering function for keys orders the bytes lexicographically. This behavior can be changed by supplying a custom Comparator when opening a database using the `RocksDBComparator`. */ @interface RocksDBComparator : NSObject /** Intializes a new Comparator instance for the given built-in type. @param type The comparator type. @return a newly-initialized instance of a keys comparator. */ + (instancetype)comaparatorWithType:(RocksDBComparatorType)type; /** Intializes a new Comparator instance with the given name and comparison block. @param name The name of the comparator. @param block The comparator block to apply on the keys in order to specify their order. @return a newly-initialized instance of a keys comparator. */ - (instancetype)initWithName:(NSString *)name andBlock:(int (^)(id key1, id key2))block; @end
Add source code documentation for the Comparator class
Add source code documentation for the Comparator class
C
mit
iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks
13d6f51d99675d5c31d4fb6c6fc18dcb1acb9ba0
spellutil.h
spellutil.h
#ifndef SPELLUTIL_H #define SPELLUTIL_H typedef struct spell_list_node { struct spell_list_node *next; void *data; } spell_list_node; spell_list_node *spell_list_init(void *); int spell_list_add(spell_list_node **, void *); void spell_list_free(spell_list_node **, void (*) (void *)); #endif
#ifndef SPELLUTIL_H #define SPELLUTIL_H typedef struct spell_list_node { struct spell_list_node *next; void *data; } spell_list_node; typedef struct spell_hashtable { char *key; spell_list_node *val; } spell_hashtable; spell_list_node *spell_list_init(void *); int spell_list_add(spell_list_node **, void *); void spell_list_remove(spell_list_node **, spell_list_node *); void spell_list_free(spell_list_node **, void (*) (void *)); spell_hashtable *spell_hashtable_init(size_t); void spell_hashtable_add(spell_hashtable *, char *, void *); void spell_hashtable_remove(spell_hashtable *, char *); void spell_hashtable_get(spell_hashtable *, char *); void spell_hashtable_free(spell_hashtable *, void (*) (void *)); #endif
Add interface for a hash table implementation required for the next stages of the spell checker implementation.
Add interface for a hash table implementation required for the next stages of the spell checker implementation.
C
bsd-2-clause
abhinav-upadhyay/spell,abhinav-upadhyay/spell
fdd0878001f328e622c1f3997ce803a2ef14a311
src/flags.c
src/flags.c
#include "flags.h" #include <stdio.h> #include "laco.h" #include "util.h" static const char* version_matches[] = {"-v", "--version", NULL}; static const char* help_matches[] = {"-h", "-?", "--help", NULL}; /* Print off the current version of laco */ static void handle_version(LacoState* laco, const char** arguments) { const char* version = laco_get_laco_version(laco); printf("laco version %s\n", version); laco_kill(laco, 0, NULL); } /* Print off the help screen */ static void handle_help(LacoState* laco, const char** arguments) { puts("A better REPL for Lua.\n"); puts("Usage: laco [options]\n"); puts("-h | -? | --help \tPrint this help screen"); puts("-v | --version \tPrint current version"); laco_kill(laco, 0, NULL); } static const LacoCommand flag_commands[] = { { version_matches, handle_version }, { help_matches, handle_help }, { NULL, NULL } }; /* External API */ void laco_handle_flag(LacoState* laco) { const char* command = laco_get_laco_args(laco)[1]; laco_dispatch(flag_commands, laco, command, NULL); }
#include "flags.h" #include <stdio.h> #include "laco.h" #include "util.h" static const char* version_matches[] = {"-v", "--version", NULL}; static const char* help_matches[] = {"-h", "--help", NULL}; /* Print off the current version of laco */ static void handle_version(LacoState* laco, const char** arguments) { const char* version = laco_get_laco_version(laco); printf("laco version %s\n", version); laco_kill(laco, 0, NULL); } /* Print off the help screen */ static void handle_help(LacoState* laco, const char** arguments) { puts("A better REPL for Lua.\n"); puts("Usage: laco [options]\n"); puts("-h | --help \tPrint this help screen"); puts("-v | --version \tPrint current version"); laco_kill(laco, 0, NULL); } static const LacoCommand flag_commands[] = { { version_matches, handle_version }, { help_matches, handle_help }, { NULL, NULL } }; /* External API */ void laco_handle_flag(LacoState* laco) { const char* command = laco_get_laco_args(laco)[1]; laco_dispatch(flag_commands, laco, command, NULL); }
Remove `-?` to display help
Remove `-?` to display help It seems like `--help` and `-h` is good enough alternatives for getting the help display.
C
bsd-2-clause
sourrust/laco
e4d969299a627124fde388be9b057781a3a57fe4
src/libreset/ht.c
src/libreset/ht.c
#include <stdlib.h> #include "ht.h" #include "util/macros.h" struct ht* ht_init( struct ht* ht, size_t n ) { if (ht) { ht->buckets = calloc(n, sizeof(*ht->buckets)); ht->nbuckets = n; } return ht; } void ht_destroy( struct ht* ht ) { if (ht) { for (; ht->nbuckets > 0; ht->nbuckets--) { avl_destroy(&ht->buckets[ht->nbuckets - 1].avl); } free(ht->buckets); free(ht); } } struct ht_bucket* ht_find( struct ht* ht, rs_hash hash ) { if (!ht) { return NULL; } return &ht->buckets[hash % (CONSTPOW_TWO(BITCOUNT(hash)) / ht->nbuckets)]; }
#include <stdlib.h> #include "ht.h" #include "util/macros.h" struct ht* ht_init( struct ht* ht, size_t n ) { if (ht) { ht->buckets = calloc(n, sizeof(*ht->buckets)); ht->nbuckets = n; } return ht; } void ht_destroy( struct ht* ht ) { if (ht) { for (; ht->nbuckets > 0; ht->nbuckets--) { avl_destroy(&ht->buckets[ht->nbuckets - 1].avl); } free(ht->buckets); free(ht); } } struct ht_bucket* ht_find( struct ht* ht, rs_hash hash ) { if (!ht) { return NULL; } return &ht->buckets[hash / ((CONSTPOW_TWO(BITCOUNT(hash)) / ht->nbuckets))]; }
Use division here, not modulo
Fixup: Use division here, not modulo
C
lgpl-2.1
waysome/libreset,waysome/libreset
f350f1048b136bcf5adf21769af3379abc094d68
zuzeelik.c
zuzeelik.c
#include <stdio.h> #include <stdlib.h> #include <editline/readline.h> #include <editline/history.h> int main(int argc, char** argv) { puts("zuzeelik [version: v0.0.0-0.0.2]"); puts("Press Ctrl+C to Exit \n"); /* Starting REPL */ while(1){ /* output from the prompt*/ char* input = readline("zuzeelik> "); /*Add input to history */ add_history(input); /* Echo the input back to the user */ printf("Got Input: %s \n", input); free(input); } return 0; }
#include <stdio.h> #include <stdlib.h> /* if compiling in windows, compiling with this functions */ #ifdef _WIN32 #include <string.h> static char buffer[2048]; /* fake readline functions */ char* readline(char* prompt) { fputs(prompt, stdout); fputs(buffer, 2048, stdin); fgets(buffer, 2048, stdin); char* copy = malloc(strlen(buffer)+1); strcpy(copy, buffer); copy[strlen(copy) - 1] = '\0'; return copy; } /* fake add_history function */ void add_history(char* not_used) {} /* or include thesse editline header */ #else #include <editline/readline.h> #include <editline/history.h> #endif int main(int argc, char** argv) { puts("zuzeelik [version: v0.0.0-0.0.3]"); puts("Press Ctrl+C to Exit \n"); /* Starting REPL */ while(1){ /* output from the prompt*/ char* input = readline("zuzeelik> "); /*Add input to history */ add_history(input); /* Echo the input back to the user */ printf("Got Input: %s \n", input); /*free retrieved input */ free(input); } return 0; }
Add portability for windows OS
Add portability for windows OS Added protibility for windows OS,using preprocessor directives and made fake functions for windows.
C
bsd-3-clause
Mr-Kumar-Abhishek/zuzeelik,shadow-stranger/zuzeelik
aeb2aad80dfff4276c3e64347dd506bc2d73bc41
pkg/fizhi/fizhi_ocean_coms.h
pkg/fizhi/fizhi_ocean_coms.h
C $Header$ C $Name$ c Ocean Exports c ------------------- common /ocean_exports/ sst, sice, ksst, kice _RL sst(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nsx,Nsy) _RL sice(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nsx,Nsy) integer ksst, kice
C $Header$ C $Name$ c Ocean Parameters c ------------------- common /ocean_params/sstclim,sstfreq,siceclim,sicefreq,ksst,kice logical sstclim,sstfreq,siceclim,sicefreq integer ksst, kice c Ocean Exports c ------------------- common /ocean_exports/ sst, sice _RL sst(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nsx,Nsy) _RL sice(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nsx,Nsy)
Add options for yearly sst data, move some other stuff around a bit
Add options for yearly sst data, move some other stuff around a bit
C
mit
altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h
446fbd56fc8ab90ea108f30376fb3f8706eabe75
src/sigen.h
src/sigen.h
// // sigen.h: global header file for user includes // ----------------------------------- #pragma once #include <sigen/types.h> #include <sigen/dvb_defs.h> #include <sigen/version.h> #include <sigen/tstream.h> #include <sigen/packetizer.h> #include <sigen/utc.h> #include <sigen/util.h> #include <sigen/dump.h> #include <sigen/table.h> #include <sigen/nit.h> #include <sigen/bat.h> #include <sigen/sdt.h> #include <sigen/pat.h> #include <sigen/pmt.h> #include <sigen/cat.h> #include <sigen/eit.h> #include <sigen/tdt.h> #include <sigen/tot.h> #include <sigen/other_tables.h> #include <sigen/descriptor.h> #include <sigen/dvb_desc.h> #include <sigen/stream_desc.h> #include <sigen/nit_desc.h> #include <sigen/linkage_desc.h> #include <sigen/sdt_desc.h> #include <sigen/pmt_desc.h> #include <sigen/ssu_desc.h> #include <sigen/eit_desc.h>
// // sigen.h: global header file for user includes // ----------------------------------- #pragma once #include "types.h" #include "dvb_defs.h" #include "version.h" #include "tstream.h" #include "packetizer.h" #include "utc.h" #include "util.h" #include "dump.h" #include "table.h" #include "nit.h" #include "bat.h" #include "sdt.h" #include "pat.h" #include "pmt.h" #include "cat.h" #include "eit.h" #include "tdt.h" #include "tot.h" #include "other_tables.h" #include "descriptor.h" #include "dvb_desc.h" #include "stream_desc.h" #include "nit_desc.h" #include "linkage_desc.h" #include "sdt_desc.h" #include "pmt_desc.h" #include "ssu_desc.h" #include "eit_desc.h"
Fix header includes to use local paths.
Fix header includes to use local paths.
C
mit
edporras/sigen,edporras/sigen,edporras/sigen,edporras/sigen
9e6bff980dd07d5cd9fcda8f882541fb2124366f
test/expression_command/timeout/wait-a-while.c
test/expression_command/timeout/wait-a-while.c
#include <stdio.h> #include <unistd.h> #include <sys/time.h> #include <stdint.h> int wait_a_while (useconds_t interval) { int num_times = 0; int return_value = 1; struct timeval start_time; gettimeofday(&start_time, NULL); uint64_t target = start_time.tv_sec * 1000000 + start_time.tv_usec + interval; while (1) { num_times++; return_value = usleep (interval); if (return_value != 0) { struct timeval now; gettimeofday(&now, NULL); interval = target - now.tv_sec * 1000000 + now.tv_usec; } else break; } return num_times; } int main (int argc, char **argv) { printf ("stop here in main.\n"); int num_times = wait_a_while (argc * 1000); printf ("Done, took %d times.\n", num_times); return 0; }
#include <stdio.h> #include <unistd.h> #include <sys/time.h> #include <stdint.h> int wait_a_while (useconds_t interval) { int num_times = 0; int return_value = 1; struct timeval start_time; gettimeofday(&start_time, NULL); uint64_t target = start_time.tv_sec * 1000000 + start_time.tv_usec + interval; while (1) { num_times++; return_value = usleep (interval); if (return_value != 0) { struct timeval now; gettimeofday(&now, NULL); interval = target - (now.tv_sec * 1000000 + now.tv_usec); } else break; } return num_times; } int main (int argc, char **argv) { printf ("stop here in main.\n"); int num_times = wait_a_while (argc * 1000); printf ("Done, took %d times.\n", num_times); return 0; }
Fix interval recalculation in the event that usleep is interrupted
Fix interval recalculation in the event that usleep is interrupted git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@207566 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb
42352805016e94ea2d1b1f13bc8d6cde63c57022
src/commands/debugger.c
src/commands/debugger.c
#include "debugger.h" #include <stdio.h> #include <lua.h> #include "laco.h" void laco_print_debug_info(struct LacoState* laco, const char* function_name) { lua_State* L = laco_get_laco_lua_state(laco); lua_Debug debug_info = {0}; lua_getfield(L, LUA_GLOBALSINDEX, function_name); lua_getinfo(L, ">Sl", &debug_info); printf( "What: \t%s\n" "Source file: \t%s\n" "Line defined on: \t%d\n" "Current line: \t%d\n", debug_info.what, debug_info.source, debug_info.linedefined, debug_info.currentline); }
#include "debugger.h" #include <lua.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "laco.h" #include "util.h" void laco_print_debug_info(struct LacoState* laco, const char* function_name) { int i; char* namespace; lua_State* L = laco_get_laco_lua_state(laco); size_t index = LUA_GLOBALSINDEX; lua_Debug debug_info = {0}; char* name = strdup(function_name); char** namespaces = laco_split_by(".", name, 0); /* Walk down the namespace if there is something to go down */ for(i = 0; (namespace = namespaces[i]); i++) { lua_getfield(L, index, namespace); index = lua_gettop(L); } lua_getinfo(L, ">Sl", &debug_info); printf( "What: \t%s\n" "Source file: \t%s\n" "Line defined on: \t%d\n" "Current line: \t%d\n", debug_info.what, debug_info.source, debug_info.linedefined, debug_info.currentline); /* Pop off the extra fields from the top of the stack */ if(i > 1) { lua_pop(L, i - 1); } free(name); free(namespaces); }
Add ablity to look through named tables
Add ablity to look through named tables
C
bsd-2-clause
sourrust/laco
eeef499339106928c39e22d9b5e0edfcaf3bc85c
src/fuzzing/mutator.h
src/fuzzing/mutator.h
// Copyright 2020 Google LLC // // 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 MUTATOR_H_ #define MUTATOR_H_ #include <vector> namespace fido2_tests { // Mutates the given data by applying combined basic mutation operations. class Mutator { public: enum MutationOperation { kEraseByte, kInsertByte, kShuffleBytes, }; Mutator(int max_mutation_degree = 10, int seed = time(NULL)); bool EraseByte(std::vector<uint8_t> &data, size_t max_size); bool InsertByte(std::vector<uint8_t> &data, size_t max_size); bool ShuffleBytes(std::vector<uint8_t> &data, size_t max_size); bool Mutate(std::vector<uint8_t> &data, size_t max_size); private: int max_mutation_degree_; }; } // namespace fido2_tests #endif // MUTATOR_H_
// Copyright 2020 Google LLC // // 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 MUTATOR_H_ #define MUTATOR_H_ #include <stdint.h> #include <ctime> #include <vector> namespace fido2_tests { // Mutates the given data by applying combined basic mutation operations. class Mutator { public: enum MutationOperation { kEraseByte, kInsertByte, kShuffleBytes, }; Mutator(int max_mutation_degree = 10, int seed = time(NULL)); bool EraseByte(std::vector<uint8_t> &data, size_t max_size); bool InsertByte(std::vector<uint8_t> &data, size_t max_size); bool ShuffleBytes(std::vector<uint8_t> &data, size_t max_size); bool Mutate(std::vector<uint8_t> &data, size_t max_size); private: int max_mutation_degree_; }; } // namespace fido2_tests #endif // MUTATOR_H_
Add library for github workflow
Add library for github workflow
C
apache-2.0
google/CTAP2-test-tool,google/CTAP2-test-tool,google/CTAP2-test-tool
7d47b8f080e71139662b682d8f395f4a3f4789f2
firmware/greatfet_usb/usb_api_dac.c
firmware/greatfet_usb/usb_api_dac.c
/* * This file is part of GreatFET */ #include "usb_api_dac.h" #include "usb.h" #include "usb_queue.h" #include "usb_endpoint.h" #include <stddef.h> #include <greatfet_core.h> #include <dac.h> #include <pins.h> usb_request_status_t usb_vendor_request_dac_set( usb_endpoint_t* const endpoint, const usb_transfer_stage_t stage) { usb_endpoint_init(&usb0_endpoint_bulk_in); if (stage == USB_TRANSFER_STAGE_SETUP) { // set J2_P5 up as a DAC pin scu_pinmux(SCU_PINMUX_GPIO2_3, SCU_GPIO_FAST | SCU_GPIO_PUP | SCU_CONF_FUNCTION0); static struct gpio_t dac_pin = GPIO(2, 3); gpio_input(&dac_pin); DAC_CR = DAC_CR_VALUE(endpoint->setup.value) && DAC_CR_VALUE_MASK; DAC_CTRL = DAC_CTRL_DMA_ENA; usb_transfer_schedule_ack(endpoint->in); } return USB_REQUEST_STATUS_OK; }
/* * This file is part of GreatFET */ #include "usb_api_dac.h" #include "usb.h" #include "usb_queue.h" #include "usb_endpoint.h" #include <stddef.h> #include <greatfet_core.h> #include <dac.h> #include <pins.h> usb_request_status_t usb_vendor_request_dac_set( usb_endpoint_t* const endpoint, const usb_transfer_stage_t stage) { usb_endpoint_init(&usb0_endpoint_bulk_in); if (stage == USB_TRANSFER_STAGE_SETUP) { // set J2_P5 up as a DAC pin scu_pinmux(SCU_PINMUX_GPIO2_3, SCU_GPIO_FAST | SCU_GPIO_PUP | SCU_CONF_FUNCTION0); static struct gpio_t dac_pin = GPIO(2, 3); gpio_input(&dac_pin); DAC_CR = DAC_CR_VALUE(endpoint->setup.value) & DAC_CR_VALUE_MASK; DAC_CTRL = DAC_CTRL_DMA_ENA; usb_transfer_schedule_ack(endpoint->in); } return USB_REQUEST_STATUS_OK; }
Fix typo which used a mask for a logical-and
Fix typo which used a mask for a logical-and The DAC conversion register value mask was logical-and'ed instead of bitwise-and'ed when setting the DAC value via USB vendor request.
C
bsd-3-clause
greatscottgadgets/greatfet,dominicgs/GreatFET-experimental,greatscottgadgets/greatfet,greatscottgadgets/greatfet,dominicgs/GreatFET-experimental,dominicgs/GreatFET-experimental,greatscottgadgets/greatfet
452d4b6c823d793770676dc5e2f3fc32c6c15e6d
src/condor_includes/condor_constants.h
src/condor_includes/condor_constants.h
#ifndef CONSTANTS_H #define CONSTANTS_H #if !defined(__STDC__) && !defined(__cplusplus) #define const #endif /* Set up a boolean variable type. Since this definition could conflict with other reasonable definition of BOOLEAN, i.e. using an enumeration, it is conditional. */ #ifndef BOOLEAN_TYPE_DEFINED typedef int BOOLEAN; typedef int BOOL_T; #endif #if defined(TRUE) # undef TRUE # undef FALSE #endif static const int TRUE = 1; static const int FALSE = 0; /* Useful constants for turning seconds into larger units of time. Since these constants may have already been defined elsewhere, they are conditional. */ #ifndef TIME_CONSTANTS_DEFINED static const int MINUTE = 60; static const int HOUR = 60 * 60; static const int DAY = 24 * 60 * 60; #endif /* This is for use with strcmp() and related functions which will return 0 upon a match. */ #ifndef MATCH static const int MATCH = 0; #endif /* These are the well known file descriptors used for remote system call and logging functions. */ #ifndef CLIENT_LOG static const int CLIENT_LOG = 18; static const int RSC_SOCK = 17; #endif static const int REQ_SOCK = 16; static const int RPL_SOCK = 17; #endif
#ifndef CONSTANTS_H #define CONSTANTS_H #if !defined(__STDC__) && !defined(__cplusplus) #define const #endif /* Set up a boolean variable type. Since this definition could conflict with other reasonable definition of BOOLEAN, i.e. using an enumeration, it is conditional. */ #ifndef BOOLEAN_TYPE_DEFINED typedef int BOOLEAN; typedef int BOOL_T; #define BOOLAN_TYPE_DEFINED #endif #if defined(TRUE) # undef TRUE # undef FALSE #endif static const int TRUE = 1; static const int FALSE = 0; /* Useful constants for turning seconds into larger units of time. Since these constants may have already been defined elsewhere, they are conditional. */ #ifndef TIME_CONSTANTS_DEFINED static const int MINUTE = 60; static const int HOUR = 60 * 60; static const int DAY = 24 * 60 * 60; #endif /* This is for use with strcmp() and related functions which will return 0 upon a match. */ #ifndef MATCH static const int MATCH = 0; #endif /* These are the well known file descriptors used for remote system call and logging functions. */ #ifndef CLIENT_LOG static const int CLIENT_LOG = 18; static const int RSC_SOCK = 17; #endif static const int REQ_SOCK = 16; static const int RPL_SOCK = 17; #endif
Define CPP macro BOOLAN_TYPE_DEFINED when we define types BOOLEAN and BOOL_T, to avoid doing it twice.
Define CPP macro BOOLAN_TYPE_DEFINED when we define types BOOLEAN and BOOL_T, to avoid doing it twice.
C
apache-2.0
htcondor/htcondor,bbockelm/condor-network-accounting,neurodebian/htcondor,mambelli/osg-bosco-marco,clalancette/condor-dcloud,zhangzhehust/htcondor,neurodebian/htcondor,djw8605/htcondor,htcondor/htcondor,neurodebian/htcondor,djw8605/condor,neurodebian/htcondor,djw8605/condor,clalancette/condor-dcloud,djw8605/condor,bbockelm/condor-network-accounting,djw8605/htcondor,mambelli/osg-bosco-marco,htcondor/htcondor,mambelli/osg-bosco-marco,bbockelm/condor-network-accounting,neurodebian/htcondor,djw8605/htcondor,neurodebian/htcondor,zhangzhehust/htcondor,bbockelm/condor-network-accounting,clalancette/condor-dcloud,bbockelm/condor-network-accounting,djw8605/htcondor,mambelli/osg-bosco-marco,mambelli/osg-bosco-marco,djw8605/htcondor,djw8605/htcondor,djw8605/htcondor,htcondor/htcondor,djw8605/condor,zhangzhehust/htcondor,djw8605/condor,djw8605/condor,mambelli/osg-bosco-marco,zhangzhehust/htcondor,bbockelm/condor-network-accounting,zhangzhehust/htcondor,htcondor/htcondor,zhangzhehust/htcondor,bbockelm/condor-network-accounting,clalancette/condor-dcloud,neurodebian/htcondor,htcondor/htcondor,djw8605/condor,djw8605/condor,htcondor/htcondor,htcondor/htcondor,mambelli/osg-bosco-marco,clalancette/condor-dcloud,bbockelm/condor-network-accounting,clalancette/condor-dcloud,clalancette/condor-dcloud,zhangzhehust/htcondor,zhangzhehust/htcondor,djw8605/htcondor,mambelli/osg-bosco-marco,neurodebian/htcondor,neurodebian/htcondor,zhangzhehust/htcondor,djw8605/htcondor
c033df3aeef588c2faf3cce3066b091980be0083
src/include/xmmsc/xmmsc_sockets.h
src/include/xmmsc/xmmsc_sockets.h
#ifndef XMMSC_SOCKETS_H #define XMMSC_SOCKETS_H #include <xmmsc/xmmsc_stdbool.h> /* Windows */ #ifdef _MSC_VER #include <Winsock2.h> #include <Ws2tcpip.h> typedef SOCKET xmms_socket_t; typedef int socklen_t; #define XMMS_EINTR WSAEINTR #define XMMS_EAGAIN WSAEWOULDBLOCK /* UNIX */ #else #define SOCKET_ERROR (-1) #define XMMS_EINTR EINTR #define XMMS_EAGAIN EWOULDBLOCK #include <sys/socket.h> #include <sys/select.h> #include <sys/types.h> #include <netinet/in.h> #include <netinet/tcp.h> #include <arpa/inet.h> #include <netdb.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> typedef int xmms_socket_t; #endif int xmms_sockets_initialize(); int xmms_socket_set_nonblock(xmms_socket_t socket); int xmms_socket_valid(xmms_socket_t socket); void xmms_socket_close(xmms_socket_t socket); int xmms_socket_errno(); bool xmms_socket_error_recoverable(); #endif
#ifndef XMMSC_SOCKETS_H #define XMMSC_SOCKETS_H #include <xmmsc/xmmsc_stdbool.h> /* Windows */ #ifdef _MSC_VER #include <Winsock2.h> #include <Ws2tcpip.h> typedef SOCKET xmms_socket_t; typedef int socklen_t; #define XMMS_EINTR WSAEINTR #define XMMS_EAGAIN WSAEWOULDBLOCK /* UNIX */ #else #define SOCKET_ERROR (-1) #define XMMS_EINTR EINTR #define XMMS_EAGAIN EWOULDBLOCK #include <sys/types.h> #include <sys/socket.h> #include <sys/select.h> #include <netinet/in.h> #include <netinet/tcp.h> #include <arpa/inet.h> #include <netdb.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> typedef int xmms_socket_t; #endif int xmms_sockets_initialize(); int xmms_socket_set_nonblock(xmms_socket_t socket); int xmms_socket_valid(xmms_socket_t socket); void xmms_socket_close(xmms_socket_t socket); int xmms_socket_errno(); bool xmms_socket_error_recoverable(); #endif
Fix compilation on OpenBSD (from Bernhard Leiner)
BUG(501): Fix compilation on OpenBSD (from Bernhard Leiner)
C
lgpl-2.1
theefer/xmms2,oneman/xmms2-oneman-old,theeternalsw0rd/xmms2,oneman/xmms2-oneman-old,mantaraya36/xmms2-mantaraya36,krad-radio/xmms2-krad,theefer/xmms2,krad-radio/xmms2-krad,dreamerc/xmms2,chrippa/xmms2,mantaraya36/xmms2-mantaraya36,chrippa/xmms2,theefer/xmms2,oneman/xmms2-oneman-old,six600110/xmms2,six600110/xmms2,oneman/xmms2-oneman-old,chrippa/xmms2,chrippa/xmms2,oneman/xmms2-oneman-old,krad-radio/xmms2-krad,xmms2/xmms2-stable,theeternalsw0rd/xmms2,six600110/xmms2,dreamerc/xmms2,oneman/xmms2-oneman,mantaraya36/xmms2-mantaraya36,mantaraya36/xmms2-mantaraya36,chrippa/xmms2,theefer/xmms2,oneman/xmms2-oneman,mantaraya36/xmms2-mantaraya36,oneman/xmms2-oneman,theeternalsw0rd/xmms2,six600110/xmms2,mantaraya36/xmms2-mantaraya36,theeternalsw0rd/xmms2,oneman/xmms2-oneman,dreamerc/xmms2,oneman/xmms2-oneman,dreamerc/xmms2,mantaraya36/xmms2-mantaraya36,oneman/xmms2-oneman,xmms2/xmms2-stable,dreamerc/xmms2,theefer/xmms2,xmms2/xmms2-stable,krad-radio/xmms2-krad,oneman/xmms2-oneman,xmms2/xmms2-stable,theeternalsw0rd/xmms2,six600110/xmms2,theefer/xmms2,krad-radio/xmms2-krad,chrippa/xmms2,six600110/xmms2,xmms2/xmms2-stable,theefer/xmms2,xmms2/xmms2-stable,krad-radio/xmms2-krad,theeternalsw0rd/xmms2
2c90cd47e03a5ae5f725d3a7d638dfaf05f7896d
tests/Native/Passes.h
tests/Native/Passes.h
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
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; };
Update the passes test source file.
Update the passes test source file.
C
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
c0a4377575c734ce8872d804229f852240d5b661
include/probes_mysql.h
include/probes_mysql.h
/* Copyright (c) 2008 Sun Microsystems, Inc. Use is subject to license terms. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef PROBES_MYSQL_H #define PROBES_MYSQL_H #include <my_global.h> #if defined(HAVE_DTRACE) && !defined(DISABLE_DTRACE) #include "probes_mysql_dtrace.h" #else #include "probes_mysql_nodtrace.h" #endif #endif /* PROBES_MYSQL_H */
/* Copyright (c) 2008 Sun Microsystems, Inc. Use is subject to license terms. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef PROBES_MYSQL_H #define PROBES_MYSQL_H #if defined(HAVE_DTRACE) && !defined(DISABLE_DTRACE) #ifdef __linux__ /* On Linux, generated probes header may include C++ header <limits> which conflicts with min and max macros from my_global.h . To fix, temporarily undefine the macros. */ #pragma push_macro("min") #pragma push_macro("max") #undef min #undef max #endif #include "probes_mysql_dtrace.h" #ifdef __linux__ #pragma pop_macro("min") #pragma pop_macro("max") #endif #else /* no dtrace */ #include "probes_mysql_nodtrace.h" #endif #endif /* PROBES_MYSQL_H */
Fix build error on Ubuntu 11.10, if systemtap is installed.
Fix build error on Ubuntu 11.10, if systemtap is installed. The error is due to conflict between min/max macros in my_global.h and system header < limits>, indirectly included via generated probes_mysql_dtrace.h Temporarily undefined min/max for the inclusion of the probes_mysq_dtrace.h
C
lgpl-2.1
ollie314/server,natsys/mariadb_10.2,davidl-zend/zenddbi,ollie314/server,davidl-zend/zenddbi,davidl-zend/zenddbi,ollie314/server,natsys/mariadb_10.2,ollie314/server,natsys/mariadb_10.2,natsys/mariadb_10.2,natsys/mariadb_10.2,davidl-zend/zenddbi,flynn1973/mariadb-aix,ollie314/server,natsys/mariadb_10.2,flynn1973/mariadb-aix,flynn1973/mariadb-aix,ollie314/server,davidl-zend/zenddbi,davidl-zend/zenddbi,natsys/mariadb_10.2,natsys/mariadb_10.2,ollie314/server,flynn1973/mariadb-aix,flynn1973/mariadb-aix,ollie314/server,flynn1973/mariadb-aix,davidl-zend/zenddbi,flynn1973/mariadb-aix,ollie314/server,ollie314/server,davidl-zend/zenddbi,natsys/mariadb_10.2,flynn1973/mariadb-aix,davidl-zend/zenddbi,davidl-zend/zenddbi,natsys/mariadb_10.2,ollie314/server,slanterns/server,davidl-zend/zenddbi,flynn1973/mariadb-aix,natsys/mariadb_10.2,flynn1973/mariadb-aix,flynn1973/mariadb-aix
6bdd0fda6908cd99fb4186d45faa80b34ccfdc83
include/xaptum-ecdaa.h
include/xaptum-ecdaa.h
/****************************************************************************** * * Copyright 2017 Xaptum, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * 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 XAPTUM_ECDAA_XAPTUM_ECDAA_H #define XAPTUM_ECDAA_XAPTUM_ECDAA_H #pragma once #include "xaptum-ecdaa/sign.h" #include "xaptum-ecdaa/join_member.h" #include "xaptum-ecdaa/context.h" #endif
/****************************************************************************** * * Copyright 2017 Xaptum, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * 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 XAPTUM_ECDAA_XAPTUM_ECDAA_H #define XAPTUM_ECDAA_XAPTUM_ECDAA_H #pragma once #include "xaptum-ecdaa/sign.h" #include "xaptum-ecdaa/join_member.h" #include "xaptum-ecdaa/context.h" #include "xaptum-ecdaa/verify.h" #endif
Add verify.h to top-level include-all header.
FIX: Add verify.h to top-level include-all header.
C
apache-2.0
xaptum/ecdaa,xaptum/ecdaa,xaptum/ecdaa
60323734541afb648b0805abf04a3cb043494bfa
libgnome/gnome-popt.h
libgnome/gnome-popt.h
#ifndef __GNOME_POPT_H__ #define __GNOME_POPT_H__ 1 #include "gnome-defs.h" BEGIN_GNOME_DECLS /* This is here because it does not have its own #ifdef __cplusplus */ #include <popt-gnome.h> void gnomelib_register_popt_table(const struct poptOption *options, const char *description); poptContext gnomelib_parse_args(int argc, char *argv[], int popt_flags); /* Some systems, like Red Hat 4.0, define these but don't declare them. Hopefully it is safe to always declare them here. */ extern char *program_invocation_short_name; extern char *program_invocation_name; END_GNOME_DECLS #endif /* __GNOME_HELP_H__ */
#ifndef __GNOME_POPT_H__ #define __GNOME_POPT_H__ 1 #include "gnome-defs.h" BEGIN_GNOME_DECLS /* This is here because it does not have its own #ifdef __cplusplus */ #include <popt.h> void gnomelib_register_popt_table(const struct poptOption *options, const char *description); poptContext gnomelib_parse_args(int argc, char *argv[], int popt_flags); /* Some systems, like Red Hat 4.0, define these but don't declare them. Hopefully it is safe to always declare them here. */ extern char *program_invocation_short_name; extern char *program_invocation_name; END_GNOME_DECLS #endif /* __GNOME_HELP_H__ */
Check for newer popt, and include it in the needed libs. Give correct
Check for newer popt, and include it in the needed libs. Give correct * configure.in: Check for newer popt, and include it in the needed libs. * gnome-compat-1.0.h: Give correct paths to compat headers. * gnome-config.in: Fixes to make help output correct. * gnome.m4: Reorg so it doesn't do any path searching itself, just uses gnome-config. * libgnome/gnome-popt.h: Include popt.h not popt-gnome.h * support/Makefile.am: No popt built-in.
C
lgpl-2.1
Distrotech/libgnome,Distrotech/libgnome,Distrotech/libgnome
aea6ee736f73e503c0fcc2513ffd51bd74d17071
net/proxy/proxy_resolver_mac.h
net/proxy/proxy_resolver_mac.h
// Copyright (c) 2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_PROXY_PROXY_RESOLVER_MAC_H_ #define NET_PROXY_PROXY_RESOLVER_MAC_H_ #pragma once #include <string> #include "googleurl/src/gurl.h" #include "net/base/net_errors.h" #include "net/proxy/proxy_resolver.h" namespace net { // Implementation of ProxyResolver that uses the Mac CFProxySupport to implement // proxies. class ProxyResolverMac : public ProxyResolver { public: ProxyResolverMac() : ProxyResolver(false /*expects_pac_bytes*/) {} // ProxyResolver methods: virtual int GetProxyForURL(const GURL& url, ProxyInfo* results, CompletionCallback* callback, RequestHandle* request, const BoundNetLog& net_log); virtual void CancelRequest(RequestHandle request) { NOTREACHED(); } virtual int SetPacScript( const scoped_refptr<ProxyResolverScriptData>& script_data, CompletionCallback* /*callback*/) { script_data_ = script_data_; return OK; } private: scoped_refptr<ProxyResolverScriptData> script_data_; }; } // namespace net #endif // NET_PROXY_PROXY_RESOLVER_MAC_H_
// Copyright (c) 2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_PROXY_PROXY_RESOLVER_MAC_H_ #define NET_PROXY_PROXY_RESOLVER_MAC_H_ #pragma once #include <string> #include "googleurl/src/gurl.h" #include "net/base/net_errors.h" #include "net/proxy/proxy_resolver.h" namespace net { // Implementation of ProxyResolver that uses the Mac CFProxySupport to implement // proxies. class ProxyResolverMac : public ProxyResolver { public: ProxyResolverMac() : ProxyResolver(false /*expects_pac_bytes*/) {} // ProxyResolver methods: virtual int GetProxyForURL(const GURL& url, ProxyInfo* results, CompletionCallback* callback, RequestHandle* request, const BoundNetLog& net_log); virtual void CancelRequest(RequestHandle request) { NOTREACHED(); } virtual int SetPacScript( const scoped_refptr<ProxyResolverScriptData>& script_data, CompletionCallback* /*callback*/) { script_data_ = script_data; return OK; } private: scoped_refptr<ProxyResolverScriptData> script_data_; }; } // namespace net #endif // NET_PROXY_PROXY_RESOLVER_MAC_H_
Fix a typo, that could cause a crash on mac.
Fix a typo, that could cause a crash on mac. BUG=50717 TBR=rvargas TEST=Set system proxy settings to use a custom PAC script, then launch TestShell.app -- should not crash. Review URL: http://codereview.chromium.org/3023030 git-svn-id: http://src.chromium.org/svn/trunk/src@54279 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: 1f1e880a7ff7fc1dcb3dbba5910ff6e5a65603c6
C
bsd-3-clause
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser
505e4531b7e52daf6caa9eac9904d9a014e0d14f
tests/online/badssl.c
tests/online/badssl.c
#include "clar_libgit2.h" #include "git2/clone.h" static git_repository *g_repo; #if defined(GIT_OPENSSL) || defined(GIT_WINHTTP) || defined(GIT_SECURE_TRANSPORT) void test_online_badssl__expired(void) { cl_git_fail_with(GIT_ECERTIFICATE, git_clone(&g_repo, "https://expired.badssl.com/fake.git", "./fake", NULL)); } void test_online_badssl__wrong_host(void) { cl_git_fail_with(GIT_ECERTIFICATE, git_clone(&g_repo, "https://wrong.host.badssl.com/fake.git", "./fake", NULL)); } void test_online_badssl__self_signed(void) { cl_git_fail_with(GIT_ECERTIFICATE, git_clone(&g_repo, "https://self-signed.badssl.com/fake.git", "./fake", NULL)); } #endif
#include "clar_libgit2.h" #include "git2/clone.h" static git_repository *g_repo; #if defined(GIT_OPENSSL) || defined(GIT_WINHTTP) || defined(GIT_SECURE_TRANSPORT) static bool g_has_ssl = true; #else static bool g_has_ssl = false; #endif void test_online_badssl__expired(void) { if (!g_has_ssl) cl_skip(); cl_git_fail_with(GIT_ECERTIFICATE, git_clone(&g_repo, "https://expired.badssl.com/fake.git", "./fake", NULL)); } void test_online_badssl__wrong_host(void) { if (!g_has_ssl) cl_skip(); cl_git_fail_with(GIT_ECERTIFICATE, git_clone(&g_repo, "https://wrong.host.badssl.com/fake.git", "./fake", NULL)); } void test_online_badssl__self_signed(void) { if (!g_has_ssl) cl_skip(); cl_git_fail_with(GIT_ECERTIFICATE, git_clone(&g_repo, "https://self-signed.badssl.com/fake.git", "./fake", NULL)); }
Fix build for unit test
Fix build for unit test If none of GIT_OPENSSL, GIT_WINHTTP or GIT_SECURE_TRANSPORT is defined we should also be able to build the unit test.
C
lgpl-2.1
stewid/libgit2,magnus98/TEST,leoyanggit/libgit2,Tousiph/Demo1,yongthecoder/libgit2,jeffhostetler/public_libgit2,KTXSoftware/libgit2,KTXSoftware/libgit2,saurabhsuniljain/libgit2,magnus98/TEST,yongthecoder/libgit2,KTXSoftware/libgit2,magnus98/TEST,yongthecoder/libgit2,Tousiph/Demo1,Tousiph/Demo1,Corillian/libgit2,saurabhsuniljain/libgit2,joshtriplett/libgit2,saurabhsuniljain/libgit2,yongthecoder/libgit2,Corillian/libgit2,leoyanggit/libgit2,KTXSoftware/libgit2,magnus98/TEST,jeffhostetler/public_libgit2,Corillian/libgit2,stewid/libgit2,stewid/libgit2,saurabhsuniljain/libgit2,joshtriplett/libgit2,Tousiph/Demo1,jeffhostetler/public_libgit2,Corillian/libgit2,KTXSoftware/libgit2,magnus98/TEST,leoyanggit/libgit2,saurabhsuniljain/libgit2,stewid/libgit2,yongthecoder/libgit2,yongthecoder/libgit2,leoyanggit/libgit2,jeffhostetler/public_libgit2,stewid/libgit2,Corillian/libgit2,magnus98/TEST,joshtriplett/libgit2,stewid/libgit2,jeffhostetler/public_libgit2,saurabhsuniljain/libgit2,joshtriplett/libgit2,leoyanggit/libgit2,joshtriplett/libgit2,Tousiph/Demo1,joshtriplett/libgit2,jeffhostetler/public_libgit2,Tousiph/Demo1,leoyanggit/libgit2,KTXSoftware/libgit2,Corillian/libgit2
a014bcdc929147cd6c5c2b0dea1d32b1339625b4
ogles_gpgpu/common/macros.h
ogles_gpgpu/common/macros.h
// // ogles_gpgpu project - GPGPU for mobile devices and embedded systems using OpenGL ES 2.0 // // Author: Markus Konrad <post@mkonrad.net>, Winter 2014/2015 // http://www.mkonrad.net // // See LICENSE file in project repository root for the license. // #ifndef OGLES_GPGPU_COMMON_MACROS #define OGLES_GPGPU_COMMON_MACROS #define OG_TO_STR_(x) #x #define OG_TO_STR(x) OG_TO_STR_(x) #ifdef DEBUG #define OG_LOGINF(class, args...) fprintf(stdout, "ogles_gpgpu::%s - %s - ", class, __FUNCTION__); fprintf(stdout, args); fprintf(stdout, "\n") #else #define OG_LOGINF(class, args...) #endif #define OG_LOGERR(class, args...) fprintf(stderr, "ogles_gpgpu::%s - %s - ", class, __FUNCTION__); fprintf(stderr, args); fprintf(stderr, "\n") #endif
// // ogles_gpgpu project - GPGPU for mobile devices and embedded systems using OpenGL ES 2.0 // // Author: Markus Konrad <post@mkonrad.net>, Winter 2014/2015 // http://www.mkonrad.net // // See LICENSE file in project repository root for the license. // #ifndef OGLES_GPGPU_COMMON_MACROS #define OGLES_GPGPU_COMMON_MACROS #define OG_TO_STR_(x) #x #define OG_TO_STR(x) OG_TO_STR_(x) #if !defined(NDEBUG) #define OG_LOGINF(class, args...) fprintf(stdout, "ogles_gpgpu::%s - %s - ", class, __FUNCTION__); fprintf(stdout, args); fprintf(stdout, "\n") #else #define OG_LOGINF(class, args...) #endif #define OG_LOGERR(class, args...) fprintf(stderr, "ogles_gpgpu::%s - %s - ", class, __FUNCTION__); fprintf(stderr, args); fprintf(stderr, "\n") #endif
Use !NDEBUG to detect Debug variant of build
Use !NDEBUG to detect Debug variant of build
C
apache-2.0
headupinclouds/ogles_gpgpu,headupinclouds/ogles_gpgpu,hunter-packages/ogles_gpgpu,hunter-packages/ogles_gpgpu,hunter-packages/ogles_gpgpu,headupinclouds/ogles_gpgpu,hunter-packages/ogles_gpgpu,headupinclouds/ogles_gpgpu
ed69dd7849b8921917191d6a037d52043e44579f
algorithms/include/algorithms/quick_union_with_path_compression.h
algorithms/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_
#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_
Remove unnecessary checking of size_t >= 0
Remove unnecessary checking of size_t >= 0
C
mit
TusharJadhav/algorithms,TusharJadhav/algorithms
e5171648164a72ea9ae83e5f2bb47dcb5b498fa6
eg/inc/Hepevt.h
eg/inc/Hepevt.h
/* @(#)root/eg:$Name$:$Id$ */ /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifndef ROOT_HepEvt #define ROOT_HepEvt extern "C" { #ifndef __CFORTRAN_LOADED #include "cfortran.h" #endif typedef struct { Int_t nevhep; Int_t nhep; Int_t isthep[2000]; Int_t idhep[2000]; Int_t jmohep[2000][2]; Int_t jdahep[2000][2]; Double_t phep[2000][5]; Double_t vhep[2000][4]; } HEPEVT_DEF; #define HEPEVT COMMON_BLOCK(HEPEVT,hepevt) COMMON_BLOCK_DEF(HEPEVT_DEF,HEPEVT); HEPEVT_DEF HEPEVT; } #endif
/* @(#)root/eg:$Name: $:$Id: Hepevt.h,v 1.1.1.1 2000/05/16 17:00:47 rdm Exp $ */ /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifndef ROOT_HepEvt #define ROOT_HepEvt extern "C" { #ifndef __CFORTRAN_LOADED #include "cfortran.h" #endif typedef struct { Int_t nevhep; Int_t nhep; Int_t isthep[4000]; Int_t idhep[4000]; Int_t jmohep[4000][2]; Int_t jdahep[4000][2]; Double_t phep[4000][5]; Double_t vhep[4000][4]; } HEPEVT_DEF; #define HEPEVT COMMON_BLOCK(HEPEVT,hepevt) COMMON_BLOCK_DEF(HEPEVT_DEF,HEPEVT); HEPEVT_DEF HEPEVT; } #endif
Change maximum dimension of hepevt from 2000 to 4000 to be consistent between Pythia5 and 6. Note that this change implies a recompilation of jetset.f
Change maximum dimension of hepevt from 2000 to 4000 to be consistent between Pythia5 and 6. Note that this change implies a recompilation of jetset.f git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@5072 27541ba8-7e3a-0410-8455-c3a389f83636
C
lgpl-2.1
sbinet/cxx-root,krafczyk/root,beniz/root,karies/root,agarciamontoro/root,sbinet/cxx-root,simonpf/root,nilqed/root,Dr15Jones/root,vukasinmilosevic/root,gbitzes/root,omazapa/root,zzxuanyuan/root,buuck/root,lgiommi/root,satyarth934/root,0x0all/ROOT,jrtomps/root,agarciamontoro/root,krafczyk/root,perovic/root,sbinet/cxx-root,cxx-hep/root-cern,thomaskeck/root,georgtroska/root,abhinavmoudgil95/root,gbitzes/root,karies/root,Y--/root,omazapa/root-old,dfunke/root,perovic/root,sawenzel/root,sawenzel/root,agarciamontoro/root,mhuwiler/rootauto,cxx-hep/root-cern,zzxuanyuan/root-compressor-dummy,simonpf/root,sirinath/root,Duraznos/root,krafczyk/root,olifre/root,beniz/root,sirinath/root,simonpf/root,strykejern/TTreeReader,davidlt/root,ffurano/root5,karies/root,simonpf/root,davidlt/root,Duraznos/root,dfunke/root,dfunke/root,evgeny-boger/root,mkret2/root,sirinath/root,jrtomps/root,esakellari/root,esakellari/my_root_for_test,olifre/root,Y--/root,0x0all/ROOT,abhinavmoudgil95/root,satyarth934/root,sawenzel/root,esakellari/my_root_for_test,zzxuanyuan/root-compressor-dummy,davidlt/root,vukasinmilosevic/root,perovic/root,buuck/root,pspe/root,evgeny-boger/root,veprbl/root,nilqed/root,Y--/root,zzxuanyuan/root-compressor-dummy,kirbyherm/root-r-tools,omazapa/root,CristinaCristescu/root,dfunke/root,root-mirror/root,pspe/root,ffurano/root5,esakellari/root,mkret2/root,beniz/root,smarinac/root,simonpf/root,sirinath/root,krafczyk/root,lgiommi/root,abhinavmoudgil95/root,esakellari/my_root_for_test,Y--/root,simonpf/root,root-mirror/root,gganis/root,0x0all/ROOT,thomaskeck/root,karies/root,nilqed/root,zzxuanyuan/root,nilqed/root,strykejern/TTreeReader,mhuwiler/rootauto,jrtomps/root,abhinavmoudgil95/root,gganis/root,BerserkerTroll/root,satyarth934/root,omazapa/root,alexschlueter/cern-root,Duraznos/root,karies/root,perovic/root,Duraznos/root,0x0all/ROOT,sawenzel/root,esakellari/my_root_for_test,mkret2/root,beniz/root,jrtomps/root,georgtroska/root,vukasinmilosevic/root,buuck/root,CristinaCristescu/root,nilqed/root,beniz/root,pspe/root,buuck/root,evgeny-boger/root,root-mirror/root,sirinath/root,alexschlueter/cern-root,CristinaCristescu/root,sirinath/root,mattkretz/root,arch1tect0r/root,Duraznos/root,esakellari/root,davidlt/root,arch1tect0r/root,veprbl/root,arch1tect0r/root,olifre/root,root-mirror/root,tc3t/qoot,Duraznos/root,tc3t/qoot,pspe/root,omazapa/root-old,Dr15Jones/root,perovic/root,Y--/root,CristinaCristescu/root,dfunke/root,jrtomps/root,tc3t/qoot,omazapa/root,georgtroska/root,jrtomps/root,smarinac/root,sirinath/root,Duraznos/root,lgiommi/root,kirbyherm/root-r-tools,esakellari/root,karies/root,CristinaCristescu/root,strykejern/TTreeReader,cxx-hep/root-cern,arch1tect0r/root,veprbl/root,kirbyherm/root-r-tools,zzxuanyuan/root,lgiommi/root,BerserkerTroll/root,CristinaCristescu/root,nilqed/root,gganis/root,evgeny-boger/root,Dr15Jones/root,karies/root,gganis/root,nilqed/root,lgiommi/root,gganis/root,bbockelm/root,lgiommi/root,buuck/root,zzxuanyuan/root-compressor-dummy,vukasinmilosevic/root,root-mirror/root,Dr15Jones/root,mhuwiler/rootauto,nilqed/root,davidlt/root,veprbl/root,pspe/root,gbitzes/root,sirinath/root,esakellari/my_root_for_test,root-mirror/root,veprbl/root,lgiommi/root,agarciamontoro/root,sawenzel/root,0x0all/ROOT,CristinaCristescu/root,zzxuanyuan/root-compressor-dummy,perovic/root,mhuwiler/rootauto,Y--/root,sirinath/root,karies/root,krafczyk/root,mattkretz/root,thomaskeck/root,evgeny-boger/root,davidlt/root,jrtomps/root,vukasinmilosevic/root,krafczyk/root,esakellari/my_root_for_test,perovic/root,gbitzes/root,olifre/root,Dr15Jones/root,alexschlueter/cern-root,esakellari/my_root_for_test,beniz/root,mattkretz/root,karies/root,arch1tect0r/root,CristinaCristescu/root,simonpf/root,pspe/root,jrtomps/root,zzxuanyuan/root-compressor-dummy,mhuwiler/rootauto,alexschlueter/cern-root,vukasinmilosevic/root,bbockelm/root,mattkretz/root,omazapa/root-old,buuck/root,agarciamontoro/root,pspe/root,lgiommi/root,cxx-hep/root-cern,kirbyherm/root-r-tools,Y--/root,omazapa/root,gbitzes/root,jrtomps/root,mattkretz/root,gganis/root,arch1tect0r/root,dfunke/root,gbitzes/root,agarciamontoro/root,gbitzes/root,vukasinmilosevic/root,BerserkerTroll/root,cxx-hep/root-cern,beniz/root,Y--/root,jrtomps/root,gbitzes/root,zzxuanyuan/root,gbitzes/root,georgtroska/root,smarinac/root,CristinaCristescu/root,vukasinmilosevic/root,nilqed/root,sbinet/cxx-root,zzxuanyuan/root-compressor-dummy,vukasinmilosevic/root,mhuwiler/rootauto,bbockelm/root,tc3t/qoot,Y--/root,sbinet/cxx-root,alexschlueter/cern-root,omazapa/root,alexschlueter/cern-root,ffurano/root5,zzxuanyuan/root,thomaskeck/root,kirbyherm/root-r-tools,smarinac/root,sbinet/cxx-root,olifre/root,mkret2/root,omazapa/root-old,kirbyherm/root-r-tools,0x0all/ROOT,arch1tect0r/root,Duraznos/root,agarciamontoro/root,esakellari/my_root_for_test,esakellari/root,thomaskeck/root,omazapa/root-old,mhuwiler/rootauto,Y--/root,Duraznos/root,sawenzel/root,BerserkerTroll/root,abhinavmoudgil95/root,sawenzel/root,zzxuanyuan/root,zzxuanyuan/root-compressor-dummy,omazapa/root,omazapa/root,perovic/root,mkret2/root,root-mirror/root,satyarth934/root,sirinath/root,satyarth934/root,smarinac/root,buuck/root,sbinet/cxx-root,evgeny-boger/root,buuck/root,kirbyherm/root-r-tools,lgiommi/root,omazapa/root-old,tc3t/qoot,veprbl/root,cxx-hep/root-cern,root-mirror/root,georgtroska/root,CristinaCristescu/root,lgiommi/root,arch1tect0r/root,veprbl/root,smarinac/root,ffurano/root5,arch1tect0r/root,zzxuanyuan/root,Y--/root,simonpf/root,sbinet/cxx-root,simonpf/root,pspe/root,omazapa/root,mattkretz/root,ffurano/root5,davidlt/root,zzxuanyuan/root,olifre/root,sbinet/cxx-root,omazapa/root-old,abhinavmoudgil95/root,evgeny-boger/root,tc3t/qoot,mkret2/root,abhinavmoudgil95/root,beniz/root,0x0all/ROOT,georgtroska/root,veprbl/root,thomaskeck/root,buuck/root,BerserkerTroll/root,CristinaCristescu/root,BerserkerTroll/root,sawenzel/root,thomaskeck/root,sawenzel/root,arch1tect0r/root,zzxuanyuan/root-compressor-dummy,esakellari/my_root_for_test,thomaskeck/root,thomaskeck/root,buuck/root,sirinath/root,abhinavmoudgil95/root,vukasinmilosevic/root,BerserkerTroll/root,veprbl/root,bbockelm/root,georgtroska/root,agarciamontoro/root,olifre/root,gganis/root,bbockelm/root,omazapa/root-old,omazapa/root-old,esakellari/root,olifre/root,tc3t/qoot,esakellari/root,thomaskeck/root,0x0all/ROOT,abhinavmoudgil95/root,gganis/root,mkret2/root,Duraznos/root,perovic/root,krafczyk/root,ffurano/root5,simonpf/root,georgtroska/root,mhuwiler/rootauto,sbinet/cxx-root,root-mirror/root,georgtroska/root,perovic/root,davidlt/root,beniz/root,smarinac/root,beniz/root,esakellari/root,jrtomps/root,krafczyk/root,tc3t/qoot,karies/root,tc3t/qoot,dfunke/root,krafczyk/root,omazapa/root-old,mattkretz/root,agarciamontoro/root,agarciamontoro/root,beniz/root,zzxuanyuan/root-compressor-dummy,satyarth934/root,BerserkerTroll/root,0x0all/ROOT,mkret2/root,gbitzes/root,smarinac/root,simonpf/root,omazapa/root,gbitzes/root,mhuwiler/rootauto,smarinac/root,bbockelm/root,arch1tect0r/root,strykejern/TTreeReader,dfunke/root,abhinavmoudgil95/root,sawenzel/root,sawenzel/root,Dr15Jones/root,perovic/root,davidlt/root,dfunke/root,pspe/root,BerserkerTroll/root,gganis/root,georgtroska/root,gganis/root,mattkretz/root,BerserkerTroll/root,satyarth934/root,nilqed/root,olifre/root,esakellari/root,olifre/root,evgeny-boger/root,vukasinmilosevic/root,BerserkerTroll/root,krafczyk/root,esakellari/root,bbockelm/root,strykejern/TTreeReader,zzxuanyuan/root,sbinet/cxx-root,mattkretz/root,satyarth934/root,gganis/root,Dr15Jones/root,davidlt/root,satyarth934/root,mkret2/root,zzxuanyuan/root,omazapa/root-old,evgeny-boger/root,evgeny-boger/root,esakellari/my_root_for_test,evgeny-boger/root,zzxuanyuan/root,nilqed/root,zzxuanyuan/root-compressor-dummy,dfunke/root,satyarth934/root,mattkretz/root,dfunke/root,alexschlueter/cern-root,mattkretz/root,karies/root,strykejern/TTreeReader,krafczyk/root,mhuwiler/rootauto,veprbl/root,zzxuanyuan/root,olifre/root,bbockelm/root,tc3t/qoot,omazapa/root,mhuwiler/rootauto,root-mirror/root,smarinac/root,ffurano/root5,georgtroska/root,abhinavmoudgil95/root,bbockelm/root,strykejern/TTreeReader,pspe/root,esakellari/root,agarciamontoro/root,bbockelm/root,Duraznos/root,lgiommi/root,pspe/root,bbockelm/root,cxx-hep/root-cern,cxx-hep/root-cern,root-mirror/root,buuck/root,veprbl/root,mkret2/root,satyarth934/root,davidlt/root,mkret2/root
6cbb0e446c5e939612b8e3dfa3771165ca255074
list.h
list.h
#include <stdlib.h> #ifndef __LIST_H__ #define __LIST_H__ struct ListNode; struct List; typedef struct ListNode ListNode; typedef struct List List; List* List_Create(void); void List_Destroy(List* l); ListNode* ListNode_Create(void *); void ListNode_Destroy(ListNode* n); ListNode* List_Search(List* l, void* k, int (f)(void*, void*)); #endif
#include <stdlib.h> #ifndef __LIST_H__ #define __LIST_H__ struct ListNode; struct List; typedef struct ListNode ListNode; typedef struct List List; List* List_Create(void); void List_Destroy(List* l); ListNode* ListNode_Create(void *); void ListNode_Destroy(ListNode* n); ListNode* List_Search(List* l, void* k, int (f)(void*, void*)); void List_Insert(List* l, ListNode* n); #endif
Add List Insert function declaration
Add List Insert function declaration
C
mit
MaxLikelihood/CADT
e849a32bb0b490d77b7c42ccbd9d7508e16a0f00
include/fmrcxx/fmrcxx.h
include/fmrcxx/fmrcxx.h
#ifndef FMRCXX_FMRCXX_H_ #define FMRCXX_FMRCXX_H_ #include <fmrcxx/Iterator.h> #include <fmrcxx/Range.h> #include <fmrcxx/internal/StdMapIterator.h> #include <fmrcxx/internal/StdContainerIterator.h> namespace fmrcxx { template <typename T, template <typename...> class Container, typename... TTs> StdContainerIterator<T, typename Container<T, TTs...>::iterator> iterateOver(Container<T, TTs...>& container); template <typename T, template <typename... Others> class Container, typename... TTs> StdContainerIterator<T, typename Container<T>::iterator> reverseIterateOver(Container<T>& container); template <typename Key, typename Value, template <typename...> class MapContainer, typename... TTs> StdMapIterator<Key, Value, typename MapContainer<Key, Value, TTs...>::iterator> iterateOverMap(MapContainer<Key, Value, TTs...>& container); template <typename Key, typename Value, template <typename...> class MapContainer, typename... TTs> StdMapIterator<Key, Value, typename MapContainer<Key, Value, TTs...>::iterator> reverseIterateOverMap(MapContainer<Key, Value, TTs...>& container); } #include <fmrcxx/impl/fmrcxx.hpp> #endif
#ifndef FMRCXX_FMRCXX_H_ #define FMRCXX_FMRCXX_H_ #include <fmrcxx/Iterator.h> #include <fmrcxx/Range.h> #include <fmrcxx/Random.h> #include <fmrcxx/internal/StdMapIterator.h> #include <fmrcxx/internal/StdContainerIterator.h> namespace fmrcxx { template <typename T, template <typename...> class Container, typename... TTs> StdContainerIterator<T, typename Container<T, TTs...>::iterator> iterateOver(Container<T, TTs...>& container); template <typename T, template <typename... Others> class Container, typename... TTs> StdContainerIterator<T, typename Container<T>::iterator> reverseIterateOver(Container<T>& container); template <typename Key, typename Value, template <typename...> class MapContainer, typename... TTs> StdMapIterator<Key, Value, typename MapContainer<Key, Value, TTs...>::iterator> iterateOverMap(MapContainer<Key, Value, TTs...>& container); template <typename Key, typename Value, template <typename...> class MapContainer, typename... TTs> StdMapIterator<Key, Value, typename MapContainer<Key, Value, TTs...>::iterator> reverseIterateOverMap(MapContainer<Key, Value, TTs...>& container); } #include <fmrcxx/impl/fmrcxx.hpp> #endif
Add Random to general header
Add Random to general header
C
apache-2.0
cyr62110/fmrcxx
dbb3b7606ccb070aedf6771e8efa54a15c2e5426
src/condor_includes/condor_common.h
src/condor_includes/condor_common.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>
#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_string.h rather than just string.h
Include condor_fix_string.h rather than just string.h
C
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
c805263f16973c011d9d8bf89da77024fc549d42
include/core/SkMilestone.h
include/core/SkMilestone.h
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 106 #endif
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 107 #endif
Update Skia milestone to 107
Update Skia milestone to 107 Change-Id: I2e2b4917adaea52c9cabd92bce092d279210cb82 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/571236 Auto-Submit: Rakshit Sharma <e91e6cdce3825eaad0fa11b55195605cfed87fab@google.com> Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com> Commit-Queue: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com> Reviewed-by: Rakshit Sharma <e91e6cdce3825eaad0fa11b55195605cfed87fab@google.com>
C
bsd-3-clause
google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia
5f55407acaccc0e20efaa71ee3cbd247707397b0
src/robobo.h
src/robobo.h
#ifndef ROBOBO_H #define ROBOBO_H #include "main.h" #include <string.h> // C strings to handle args #include <sstream> #endif
#ifndef ROBOBO_H #define ROBOBO_H #include "main.h" #include "base.h" #include <string.h> // C strings to handle args #include <sstream> #endif
Include unincluded necessary header file.
Include unincluded necessary header file.
C
mit
ElementalAlchemist/RoBoBo,ElementalAlchemist/RoBoBo
7326541875f1df288b485711dda342fe09297e4e
PHPHub/Constants/APIConstant.h
PHPHub/Constants/APIConstant.h
// // APIConstant.h // PHPHub // // Created by Aufree on 9/30/15. // Copyright (c) 2015 ESTGroup. All rights reserved. // #define APIAccessTokenURL [NSString stringWithFormat:@"%@%@", APIBaseURL, @"/oauth/access_token"] #define QiniuUploadTokenIdentifier @"QiniuUploadTokenIdentifier" #if DEBUG #define APIBaseURL @"https://staging_api.phphub.org/v1" #else #define APIBaseURL @"https://api.phphub.org/v1" #endif #define PHPHubHost @"phphub.org" #define PHPHubUrl @"https://phphub.org/" #define GitHubURL @"https://github.com/" #define TwitterURL @"https://twitter.com/" #define ProjectURL @"https://github.com/aufree/phphub-ios" #define AboutPageURL @"https://phphub.org/about" #define ESTGroupURL @"http://est-group.org" #define AboutTheAuthorURL @"weibo.com/jinfali" #define PHPHubGuide @"http://7xnqwn.com1.z0.glb.clouddn.com/index.html" #define PHPHubTopicURL @"https://phphub.org/topics/" #define SinaRedirectURL @"http://sns.whalecloud.com/sina2/callback" #define UpdateNoticeCount @"UpdateNoticeCount"
// // APIConstant.h // PHPHub // // Created by Aufree on 9/30/15. // Copyright (c) 2015 ESTGroup. All rights reserved. // #define APIAccessTokenURL [NSString stringWithFormat:@"%@%@", APIBaseURL, @"/oauth/access_token"] #define QiniuUploadTokenIdentifier @"QiniuUploadTokenIdentifier" #if DEBUG #define APIBaseURL @"https://staging_api.phphub.org/v1" #else #define APIBaseURL @"https://api.phphub.org/v1" #endif #define PHPHubHost @"phphub.org" #define PHPHubUrl @"https://phphub.org/" #define GitHubURL @"https://github.com/" #define TwitterURL @"https://twitter.com/" #define ProjectURL @"https://github.com/aufree/phphub-ios" #define AboutPageURL @"https://phphub.org/about" #define ESTGroupURL @"http://est-group.org" #define AboutTheAuthorURL @"https://github.com/aufree" #define PHPHubGuide @"http://7xnqwn.com1.z0.glb.clouddn.com/index.html" #define PHPHubTopicURL @"https://phphub.org/topics/" #define SinaRedirectURL @"http://sns.whalecloud.com/sina2/callback" #define UpdateNoticeCount @"UpdateNoticeCount"
Change about the author url
Change about the author url
C
mit
Aufree/phphub-ios
a5f90d80a27a575b3fc428e38d2d179dad1c877b
Pod/Classes/Core/CLPUIObject.h
Pod/Classes/Core/CLPUIObject.h
#import "CLPBaseObject.h" @interface CLPUIObject : CLPBaseObject @property (nonatomic, readwrite) IBOutlet UIView *view; - (instancetype)remove; @end
#import "CLPBaseObject.h" @interface CLPUIObject : CLPBaseObject @property (nonatomic, strong, readwrite) IBOutlet UIView *view; - (instancetype)remove; @end
Set view property to strong for UIObjects.
Set view property to strong for UIObjects.
C
bsd-3-clause
barbosa/clappr-ios,clappr/clappr-ios,clappr/clappr-ios,clappr/clappr-ios,barbosa/clappr-ios
62f828c9bd51124a9a24362fbf6d2bc4a7971e75
src/domain/noterepository.h
src/domain/noterepository.h
/* This file is part of Zanshin Copyright 2014 Kevin Ottens <ervin@kde.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License or (at your option) version 3 or any later version accepted by the membership of KDE e.V. (or its successor approved by the membership of KDE e.V.), which shall act as a proxy defined in Section 14 of version 3 of the license. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef DOMAIN_NOTEREPOSITORY_H #define DOMAIN_NOTEREPOSITORY_H #include "note.h" class KJob; namespace Domain { class NoteRepository { public: NoteRepository(); virtual ~NoteRepository(); virtual KJob *save(Note::Ptr note) = 0; virtual KJob *remove(Note::Ptr note) = 0; }; } #endif // DOMAIN_NOTEREPOSITORY_H
/* This file is part of Zanshin Copyright 2014 Kevin Ottens <ervin@kde.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License or (at your option) version 3 or any later version accepted by the membership of KDE e.V. (or its successor approved by the membership of KDE e.V.), which shall act as a proxy defined in Section 14 of version 3 of the license. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef DOMAIN_NOTEREPOSITORY_H #define DOMAIN_NOTEREPOSITORY_H #include "datasource.h" #include "note.h" class KJob; namespace Domain { class NoteRepository { public: NoteRepository(); virtual ~NoteRepository(); virtual bool isDefaultSource(DataSource::Ptr source) const = 0; virtual void setDefaultSource(DataSource::Ptr source) = 0; virtual KJob *save(Note::Ptr note) = 0; virtual KJob *remove(Note::Ptr note) = 0; }; } #endif // DOMAIN_NOTEREPOSITORY_H
Add the default source concept to NoteRepository
Add the default source concept to NoteRepository
C
lgpl-2.1
sandsmark/zanshin,kolab-groupware/zanshin,sandsmark/zanshin,sandsmark/zanshin,kolab-groupware/zanshin,kolab-groupware/zanshin
b202cb277a68a78e431bdf0cdbf1dd5215a7055e
experiments.h
experiments.h
/* * Copyright (c) 2013 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 WEBRTC_EXPERIMENTS_H_ #define WEBRTC_EXPERIMENTS_H_ #include "webrtc/typedefs.h" namespace webrtc { struct RemoteBitrateEstimatorMinRate { RemoteBitrateEstimatorMinRate() : min_rate(30000) {} RemoteBitrateEstimatorMinRate(uint32_t min_rate) : min_rate(min_rate) {} uint32_t min_rate; }; struct SkipEncodingUnusedStreams { SkipEncodingUnusedStreams() : enabled(false) {} explicit SkipEncodingUnusedStreams(bool set_enabled) : enabled(set_enabled) {} virtual ~SkipEncodingUnusedStreams() {} const bool enabled; }; struct AimdRemoteRateControl { AimdRemoteRateControl() : enabled(false) {} explicit AimdRemoteRateControl(bool set_enabled) : enabled(set_enabled) {} virtual ~AimdRemoteRateControl() {} const bool enabled; }; } // namespace webrtc #endif // WEBRTC_EXPERIMENTS_H_
/* * Copyright (c) 2013 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 WEBRTC_EXPERIMENTS_H_ #define WEBRTC_EXPERIMENTS_H_ #include "webrtc/typedefs.h" namespace webrtc { struct RemoteBitrateEstimatorMinRate { RemoteBitrateEstimatorMinRate() : min_rate(30000) {} RemoteBitrateEstimatorMinRate(uint32_t min_rate) : min_rate(min_rate) {} uint32_t min_rate; }; struct AimdRemoteRateControl { AimdRemoteRateControl() : enabled(false) {} explicit AimdRemoteRateControl(bool set_enabled) : enabled(set_enabled) {} virtual ~AimdRemoteRateControl() {} const bool enabled; }; } // namespace webrtc #endif // WEBRTC_EXPERIMENTS_H_
Remove no longer used SkipEncodingUnusedStreams.
Remove no longer used SkipEncodingUnusedStreams. R=andrew@webrtc.org Review URL: https://webrtc-codereview.appspot.com/18829004 git-svn-id: 03ae4fbe531b1eefc9d815f31e49022782c42458@6753 4adac7df-926f-26a2-2b94-8c16560cd09d
C
bsd-3-clause
jgcaaprom/android_external_chromium_org_third_party_webrtc,android-ia/platform_external_chromium_org_third_party_webrtc,android-ia/platform_external_chromium_org_third_party_webrtc,jgcaaprom/android_external_chromium_org_third_party_webrtc,MIPS/external-chromium_org-third_party-webrtc,geekboxzone/lollipop_external_chromium_org_third_party_webrtc,MIPS/external-chromium_org-third_party-webrtc,android-ia/platform_external_chromium_org_third_party_webrtc,geekboxzone/lollipop_external_chromium_org_third_party_webrtc,Omegaphora/external_chromium_org_third_party_webrtc,Omegaphora/external_chromium_org_third_party_webrtc,jgcaaprom/android_external_chromium_org_third_party_webrtc,geekboxzone/lollipop_external_chromium_org_third_party_webrtc,geekboxzone/lollipop_external_chromium_org_third_party_webrtc,geekboxzone/lollipop_external_chromium_org_third_party_webrtc,Omegaphora/external_chromium_org_third_party_webrtc,Omegaphora/external_chromium_org_third_party_webrtc,Omegaphora/external_chromium_org_third_party_webrtc,geekboxzone/lollipop_external_chromium_org_third_party_webrtc,Omegaphora/external_chromium_org_third_party_webrtc,geekboxzone/lollipop_external_chromium_org_third_party_webrtc,Omegaphora/external_chromium_org_third_party_webrtc,MIPS/external-chromium_org-third_party-webrtc,geekboxzone/lollipop_external_chromium_org_third_party_webrtc,jgcaaprom/android_external_chromium_org_third_party_webrtc,jgcaaprom/android_external_chromium_org_third_party_webrtc,MIPS/external-chromium_org-third_party-webrtc,android-ia/platform_external_chromium_org_third_party_webrtc,android-ia/platform_external_chromium_org_third_party_webrtc,MIPS/external-chromium_org-third_party-webrtc,jgcaaprom/android_external_chromium_org_third_party_webrtc,Omegaphora/external_chromium_org_third_party_webrtc,android-ia/platform_external_chromium_org_third_party_webrtc,MIPS/external-chromium_org-third_party-webrtc,MIPS/external-chromium_org-third_party-webrtc,android-ia/platform_external_chromium_org_third_party_webrtc,MIPS/external-chromium_org-third_party-webrtc,android-ia/platform_external_chromium_org_third_party_webrtc,jgcaaprom/android_external_chromium_org_third_party_webrtc,jgcaaprom/android_external_chromium_org_third_party_webrtc
452dbb09e2fd05a8f9fcfa300dd12ceefe9bf8ab
src/Update.h
src/Update.h
// Copyright (c) 2016-2020 The Karbowanec developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef UPDATE_H #define UPDATE_H #include <QObject> #include <QNetworkAccessManager> #include <QNetworkRequest> #include <QNetworkReply> #include <QUrl> const static QString KARBO_UPDATE_URL = "https://api.github.com/repos/Karbovanets/karbowanecwallet/tags"; const static QString KARBO_DOWNLOAD_URL = "https://github.com/Karbovanets/karbowanecwallet/releases/"; class Updater : public QObject { Q_OBJECT public: explicit Updater(QObject *parent = 0); ~Updater() { delete manager; } void checkForUpdate(); signals: public slots: void replyFinished (QNetworkReply *reply); private: QNetworkAccessManager *manager; }; #endif // UPDATE_H
// Copyright (c) 2016-2020 The Karbowanec developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef UPDATE_H #define UPDATE_H #include <QObject> #include <QNetworkAccessManager> #include <QNetworkRequest> #include <QNetworkReply> #include <QUrl> const static QString KARBO_UPDATE_URL = "https://api.github.com/repos/seredat/karbowanecwallet/tags"; const static QString KARBO_DOWNLOAD_URL = "https://github.com/seredat/karbowanecwallet/releases/"; class Updater : public QObject { Q_OBJECT public: explicit Updater(QObject *parent = 0); ~Updater() { delete manager; } void checkForUpdate(); signals: public slots: void replyFinished (QNetworkReply *reply); private: QNetworkAccessManager *manager; }; #endif // UPDATE_H
Change repository urls to proper for this version
Change repository urls to proper for this version
C
mit
seredat/karbowanecwallet,seredat/karbowanecwallet,seredat/karbowanecwallet
465934742bafb175501c12cc2b8ebfe9bd732e3b
src/common.c
src/common.c
#define BASE_SPEED_FULL 127 void base_set(int fr, int br, int bl, int fl); void base_set(int power); void dump_set(int x); void lift_set(int x); #define LCD_BUTTON_LEFT 1 #define LCD_BUTTON_CENTER 2 #define LCD_BUTTON_RIGHT 4 #define LCD_BUTTON_NONE 0 #define LCD_LINE_TOP 0 #define LCD_LINE_BOTTOM 1 void lcd_voltage(void); void lcd_clear(void);
#define BASE_SPEED_FULL 127 void base_set(int fr, int br, int bl, int fl); void base_set(int power); void dump_set(int x); void lift_set(int x); #define LCD_BUTTON_LEFT 1 #define LCD_BUTTON_CENTER 2 #define LCD_BUTTON_RIGHT 4 #define LCD_BUTTON_NONE 0 #define LCD_LINE_TOP 0 #define LCD_LINE_BOTTOM 1 void lcd_voltage(void); void lcd_clear(void); // Get rid of annoying "unreferenced function" warnings static void DO_NOT_CALL_THIS_FUNCTION(void) { DO_NOT_CALL_THIS_FUNCTION(); UserControlCodePlaceholderForTesting(); AutonomousCodePlaceholderForTesting(); }
Remove annoying "unreferenced function" warnings
Remove annoying "unreferenced function" warnings
C
mit
qsctr/vex-4194b-2016
8c79cb12cffdb76543fa79455083ad1daef89194
shaderDefines.h
shaderDefines.h
#define ATTR_POS 0 #define ATTR_UV 1 #define ATTR_COLOR 2 #define TEXUNIT_TEMP 0 #define TEXUNIT_COLOR 1 #define TEXUNIT_AREATEX 2 #define TEXUNIT_SEARCHTEX 3 #define TEXUNIT_EDGES 4 #define TEXUNIT_BLEND 5 #ifdef __cplusplus struct Globals #else // __cplusplus layout(binding = 0, std140) uniform Globals #endif // __cplusplus { vec4 screenSize; mat4 viewProj; mat4 guiOrtho; }; struct Cube { vec4 rotation; vec3 position; unsigned int color; };
#define ATTR_POS 0 #define ATTR_UV 1 #define ATTR_COLOR 2 #define TEXUNIT_TEMP 0 #define TEXUNIT_COLOR 1 #define TEXUNIT_AREATEX 2 #define TEXUNIT_SEARCHTEX 3 #define TEXUNIT_EDGES 4 #define TEXUNIT_BLEND 5 #ifdef __cplusplus struct Globals #else // __cplusplus layout(binding = 0, std140) uniform Globals #endif // __cplusplus { vec4 screenSize; mat4 viewProj; mat4 guiOrtho; }; struct Cube { vec4 rotation; vec3 position; uint color; };
Change "unsigned int" -> "uint" for better GLSL compatibility
Change "unsigned int" -> "uint" for better GLSL compatibility
C
mit
turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo
655f3d4c389dbcb1e23c2ba425ccfd85234f6fce
include/rng.h
include/rng.h
/************************************************* * RandomNumberGenerator Header File * * (C) 1999-2008 Jack Lloyd * *************************************************/ #ifndef BOTAN_RANDOM_NUMBER_GENERATOR__ #define BOTAN_RANDOM_NUMBER_GENERATOR__ #include <botan/exceptn.h> namespace Botan { /************************************************* * Entropy Source * *************************************************/ class BOTAN_DLL EntropySource { public: virtual u32bit slow_poll(byte[], u32bit) = 0; virtual u32bit fast_poll(byte[], u32bit); virtual ~EntropySource() {} }; /************************************************* * Random Number Generator * *************************************************/ class BOTAN_DLL RandomNumberGenerator { public: virtual void randomize(byte[], u32bit) throw(PRNG_Unseeded) = 0; virtual bool is_seeded() const = 0; virtual void clear() throw() {}; byte next_byte(); void add_entropy(const byte[], u32bit); u32bit add_entropy(EntropySource&, bool = true); virtual ~RandomNumberGenerator() {} private: virtual void add_randomness(const byte[], u32bit) = 0; }; } #endif
/************************************************* * RandomNumberGenerator Header File * * (C) 1999-2008 Jack Lloyd * *************************************************/ #ifndef BOTAN_RANDOM_NUMBER_GENERATOR__ #define BOTAN_RANDOM_NUMBER_GENERATOR__ #include <botan/exceptn.h> namespace Botan { /************************************************* * Entropy Source * *************************************************/ class BOTAN_DLL EntropySource { public: virtual u32bit slow_poll(byte[], u32bit) = 0; virtual u32bit fast_poll(byte[], u32bit); virtual ~EntropySource() {} }; /************************************************* * Random Number Generator * *************************************************/ class BOTAN_DLL RandomNumberGenerator { public: virtual void randomize(byte[], u32bit) = 0; virtual bool is_seeded() const = 0; virtual void clear() throw() {}; byte next_byte(); void add_entropy(const byte[], u32bit); u32bit add_entropy(EntropySource&, bool = true); virtual ~RandomNumberGenerator() {} private: virtual void add_randomness(const byte[], u32bit) = 0; }; } #endif
Remove exception specifier from RandomNumberGenerator::randomize
Remove exception specifier from RandomNumberGenerator::randomize
C
bsd-2-clause
Rohde-Schwarz-Cybersecurity/botan,randombit/botan,randombit/botan,webmaster128/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,webmaster128/botan,webmaster128/botan,webmaster128/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan
743a89c5c27c3c17b87af5df8c381d95b00f2f42
pg_query.c
pg_query.c
#include "pg_query.h" #include "pg_query_internal.h" const char* progname = "pg_query"; void pg_query_init(void) { MemoryContextInit(); }
#include "pg_query.h" #include "pg_query_internal.h" #include <mb/pg_wchar.h> const char* progname = "pg_query"; void pg_query_init(void) { MemoryContextInit(); SetDatabaseEncoding(PG_UTF8); }
Set database encoding to UTF8.
Set database encoding to UTF8. Fixes error when parsing this statement: SELECT U&'\0441\043B\043E\043D' The error is: Unicode escape values cannot be used for code point values above 007F when the server encoding is not UTF8. Perhapes there could be an API to set the encoding used by the parser. But I think it makes sense to use UTF8 by default.
C
bsd-3-clause
lfittl/libpg_query,ranxian/peloton-frontend,lfittl/libpg_query,lfittl/libpg_query,ranxian/peloton-frontend,ranxian/peloton-frontend,ranxian/peloton-frontend,ranxian/peloton-frontend
a83e22d75dfffd2003fa7ebdeb35a9ca3a6731ec
src/lib/llist.h
src/lib/llist.h
#ifndef LLIST_H #define LLIST_H /* Doubly linked list */ #define DLLIST_PREPEND(list, item) STMT_START { \ (item)->prev = NULL; \ (item)->next = *(list); \ if (*(list) != NULL) (*(list))->prev = (item); \ *(list) = (item); \ } STMT_END #define DLLIST_REMOVE(list, item) STMT_START { \ if ((item)->prev == NULL) \ *(list) = (item)->next; \ else \ (item)->prev->next = (item)->next; \ if ((item)->next != NULL) \ (item)->next->prev = (item)->prev; \ } STMT_END #endif
#ifndef LLIST_H #define LLIST_H /* Doubly linked list */ #define DLLIST_PREPEND(list, item) STMT_START { \ (item)->prev = NULL; \ (item)->next = *(list); \ if (*(list) != NULL) (*(list))->prev = (item); \ *(list) = (item); \ } STMT_END #define DLLIST_REMOVE(list, item) STMT_START { \ if ((item)->prev == NULL) \ *(list) = (item)->next; \ else \ (item)->prev->next = (item)->next; \ if ((item)->next != NULL) { \ (item)->next->prev = (item)->prev; \ (item)->next = NULL; \ } \ (item)->prev = NULL; \ } STMT_END #endif
Set removed item's prev/next pointers to NULL.
DLLIST_REMOVE(): Set removed item's prev/next pointers to NULL.
C
mit
LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot
33de317e5a27d5dfc368cc0488c12b42236183e8
tensorflow/core/lib/core/threadpool_interface.h
tensorflow/core/lib/core/threadpool_interface.h
/* Copyright 2019 The TensorFlow 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 TENSORFLOW_CORE_LIB_CORE_THREADPOOL_INTERFACE_H_ #define TENSORFLOW_CORE_LIB_CORE_THREADPOOL_INTERFACE_H_ #define EIGEN_USE_THREADS #include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor" namespace tensorflow { namespace thread { class ThreadPoolInterface : public Eigen::ThreadPoolInterface {}; } // namespace thread } // namespace tensorflow #endif // TENSORFLOW_CORE_LIB_CORE_THREADPOOL_INTERFACE_H_
/* Copyright 2019 The TensorFlow 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 TENSORFLOW_CORE_LIB_CORE_THREADPOOL_INTERFACE_H_ #define TENSORFLOW_CORE_LIB_CORE_THREADPOOL_INTERFACE_H_ #ifndef EIGEN_USE_THREADS #define EIGEN_USE_THREADS #endif #include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor" namespace tensorflow { namespace thread { class ThreadPoolInterface : public Eigen::ThreadPoolInterface {}; } // namespace thread } // namespace tensorflow #endif // TENSORFLOW_CORE_LIB_CORE_THREADPOOL_INTERFACE_H_
Define EIGEN_USE_THREADS only if it is not defined yet
Define EIGEN_USE_THREADS only if it is not defined yet PiperOrigin-RevId: 253269616
C
apache-2.0
renyi533/tensorflow,xzturn/tensorflow,petewarden/tensorflow,DavidNorman/tensorflow,davidzchen/tensorflow,aldian/tensorflow,jhseu/tensorflow,cxxgtxy/tensorflow,renyi533/tensorflow,karllessard/tensorflow,frreiss/tensorflow-fred,freedomtan/tensorflow,ppwwyyxx/tensorflow,freedomtan/tensorflow,alsrgv/tensorflow,gautam1858/tensorflow,yongtang/tensorflow,yongtang/tensorflow,petewarden/tensorflow,gunan/tensorflow,frreiss/tensorflow-fred,ppwwyyxx/tensorflow,adit-chandra/tensorflow,karllessard/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,adit-chandra/tensorflow,chemelnucfin/tensorflow,karllessard/tensorflow,adit-chandra/tensorflow,yongtang/tensorflow,davidzchen/tensorflow,annarev/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow,aldian/tensorflow,aam-at/tensorflow,petewarden/tensorflow,arborh/tensorflow,ppwwyyxx/tensorflow,chemelnucfin/tensorflow,arborh/tensorflow,tensorflow/tensorflow-pywrap_saved_model,yongtang/tensorflow,tensorflow/tensorflow-pywrap_saved_model,frreiss/tensorflow-fred,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gunan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-Corporation/tensorflow,karllessard/tensorflow,gunan/tensorflow,adit-chandra/tensorflow,Intel-tensorflow/tensorflow,jhseu/tensorflow,arborh/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,annarev/tensorflow,xzturn/tensorflow,tensorflow/tensorflow,chemelnucfin/tensorflow,sarvex/tensorflow,DavidNorman/tensorflow,petewarden/tensorflow,aam-at/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jhseu/tensorflow,ppwwyyxx/tensorflow,petewarden/tensorflow,karllessard/tensorflow,alsrgv/tensorflow,arborh/tensorflow,alsrgv/tensorflow,gautam1858/tensorflow,davidzchen/tensorflow,sarvex/tensorflow,Intel-Corporation/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,gunan/tensorflow,adit-chandra/tensorflow,aam-at/tensorflow,chemelnucfin/tensorflow,freedomtan/tensorflow,chemelnucfin/tensorflow,annarev/tensorflow,alsrgv/tensorflow,ppwwyyxx/tensorflow,karllessard/tensorflow,chemelnucfin/tensorflow,DavidNorman/tensorflow,gautam1858/tensorflow,karllessard/tensorflow,petewarden/tensorflow,frreiss/tensorflow-fred,adit-chandra/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,annarev/tensorflow,jhseu/tensorflow,karllessard/tensorflow,tensorflow/tensorflow,alsrgv/tensorflow,arborh/tensorflow,sarvex/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow,xzturn/tensorflow,petewarden/tensorflow,xzturn/tensorflow,alsrgv/tensorflow,jhseu/tensorflow,gautam1858/tensorflow,cxxgtxy/tensorflow,alsrgv/tensorflow,renyi533/tensorflow,Intel-tensorflow/tensorflow,annarev/tensorflow,gautam1858/tensorflow,aam-at/tensorflow,davidzchen/tensorflow,paolodedios/tensorflow,Intel-Corporation/tensorflow,aldian/tensorflow,arborh/tensorflow,tensorflow/tensorflow-pywrap_saved_model,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gautam1858/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,DavidNorman/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,renyi533/tensorflow,ppwwyyxx/tensorflow,alsrgv/tensorflow,alsrgv/tensorflow,gunan/tensorflow,xzturn/tensorflow,frreiss/tensorflow-fred,alsrgv/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,tensorflow/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-experimental_link_static_libraries_once,cxxgtxy/tensorflow,paolodedios/tensorflow,freedomtan/tensorflow,davidzchen/tensorflow,gautam1858/tensorflow,DavidNorman/tensorflow,aldian/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,gautam1858/tensorflow,adit-chandra/tensorflow,yongtang/tensorflow,jhseu/tensorflow,xzturn/tensorflow,alsrgv/tensorflow,jhseu/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-Corporation/tensorflow,ppwwyyxx/tensorflow,Intel-tensorflow/tensorflow,gautam1858/tensorflow,yongtang/tensorflow,cxxgtxy/tensorflow,adit-chandra/tensorflow,xzturn/tensorflow,cxxgtxy/tensorflow,yongtang/tensorflow,arborh/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,davidzchen/tensorflow,paolodedios/tensorflow,paolodedios/tensorflow,ppwwyyxx/tensorflow,jhseu/tensorflow,adit-chandra/tensorflow,tensorflow/tensorflow-pywrap_saved_model,davidzchen/tensorflow,paolodedios/tensorflow,aldian/tensorflow,annarev/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aam-at/tensorflow,annarev/tensorflow,aam-at/tensorflow,Intel-tensorflow/tensorflow,renyi533/tensorflow,frreiss/tensorflow-fred,frreiss/tensorflow-fred,freedomtan/tensorflow,yongtang/tensorflow,alsrgv/tensorflow,jhseu/tensorflow,freedomtan/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow,frreiss/tensorflow-fred,ppwwyyxx/tensorflow,chemelnucfin/tensorflow,renyi533/tensorflow,Intel-tensorflow/tensorflow,freedomtan/tensorflow,arborh/tensorflow,Intel-tensorflow/tensorflow,renyi533/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_tf_optimizer,cxxgtxy/tensorflow,cxxgtxy/tensorflow,aam-at/tensorflow,adit-chandra/tensorflow,aldian/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gautam1858/tensorflow,Intel-Corporation/tensorflow,frreiss/tensorflow-fred,arborh/tensorflow,sarvex/tensorflow,aam-at/tensorflow,aam-at/tensorflow,DavidNorman/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,DavidNorman/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,xzturn/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,annarev/tensorflow,gunan/tensorflow,arborh/tensorflow,ppwwyyxx/tensorflow,gunan/tensorflow,davidzchen/tensorflow,paolodedios/tensorflow,sarvex/tensorflow,aam-at/tensorflow,annarev/tensorflow,davidzchen/tensorflow,renyi533/tensorflow,Intel-tensorflow/tensorflow,chemelnucfin/tensorflow,annarev/tensorflow,gunan/tensorflow,Intel-tensorflow/tensorflow,yongtang/tensorflow,Intel-Corporation/tensorflow,renyi533/tensorflow,Intel-Corporation/tensorflow,petewarden/tensorflow,adit-chandra/tensorflow,petewarden/tensorflow,davidzchen/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,sarvex/tensorflow,xzturn/tensorflow,tensorflow/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,aldian/tensorflow,aam-at/tensorflow,arborh/tensorflow,jhseu/tensorflow,xzturn/tensorflow,renyi533/tensorflow,tensorflow/tensorflow,yongtang/tensorflow,gunan/tensorflow,paolodedios/tensorflow,renyi533/tensorflow,ppwwyyxx/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,davidzchen/tensorflow,DavidNorman/tensorflow,DavidNorman/tensorflow,DavidNorman/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,arborh/tensorflow,freedomtan/tensorflow,petewarden/tensorflow,cxxgtxy/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow,renyi533/tensorflow,aldian/tensorflow,paolodedios/tensorflow,DavidNorman/tensorflow,gunan/tensorflow,chemelnucfin/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,karllessard/tensorflow,annarev/tensorflow,frreiss/tensorflow-fred,adit-chandra/tensorflow,karllessard/tensorflow,ppwwyyxx/tensorflow,yongtang/tensorflow,gautam1858/tensorflow,xzturn/tensorflow,xzturn/tensorflow
73d73eeaa0fdd21bfb1592e2f7066590ef7ee920
uranus_dp/include/uranus_dp/control_mode_enum.h
uranus_dp/include/uranus_dp/control_mode_enum.h
#ifndef CONTROL_MODE_ENUM_H #define CONTROL_MODE_ENUM_H namespace ControlModes { enum ControlMode { OPEN_LOOP = 0, SIXDOF = 1, RPY_DEPTH = 2 }; } typedef ControlModes::ControlMode ControlMode; #endif
#ifndef CONTROL_MODE_ENUM_H #define CONTROL_MODE_ENUM_H namespace ControlModes { enum ControlMode { OPEN_LOOP = 0, SIXDOF = 1, RPY_DEPTH = 2, DEPTH_HOLD = 3 }; } typedef ControlModes::ControlMode ControlMode; #endif
Add depth hold mode to enum
Add depth hold mode to enum
C
mit
vortexntnu/rov-control,vortexntnu/rov-control,vortexntnu/rov-control
eff9494ed346005f825ccdd6fcdd3fa425041023
include/bignum-conf.h
include/bignum-conf.h
/* Configuration for the mruby-bignum gem */ #ifndef MRB_BIGNUM_CONF_H #define MRB_BIGNUM_CONF_H /* Size of a Bignum digit: 16, 32 or 64 */ /* If not defined, this is the same size as a Fixnum */ /* To use MRB_BIGNUM_BIT == 64, the compiler must support unsigned __int128 */ #define MRB_BIGNUM_BIT 64 /* Define to enable recursive algorithms for multiplication, division, squaring, and conversion to and from strings */ #define MRB_BIGNUM_ENABLE_RECURSION /* Cutoffs for recursive multiplication, squaring and division */ #define MRB_BIGNUM_MUL_RECURSION_CUTOFF 32 #define MRB_BIGNUM_SQR_RECURSION_CUTOFF 64 #define MRB_BIGNUM_DIV_RECURSION_CUTOFF 32 #endif
/* Configuration for the mruby-bignum gem */ #ifndef MRB_BIGNUM_CONF_H #define MRB_BIGNUM_CONF_H /* Size of a Bignum digit: 16, 32 or 64 */ /* If not defined, this is the same size as a Fixnum */ /* To use MRB_BIGNUM_BIT == 64, the compiler must support unsigned __int128 */ #define MRB_BIGNUM_BIT 32 /* Define to enable recursive algorithms for multiplication, division, squaring, and conversion to and from strings */ #define MRB_BIGNUM_ENABLE_RECURSION /* Cutoffs for recursive multiplication, squaring and division */ #define MRB_BIGNUM_MUL_RECURSION_CUTOFF 32 #define MRB_BIGNUM_SQR_RECURSION_CUTOFF 64 #define MRB_BIGNUM_DIV_RECURSION_CUTOFF 32 #endif
Set the default bit width to 32.
Set the default bit width to 32. 32 bit Bignums don't need any non-C99 features.
C
mit
chasonr/mruby-bignum,chasonr/mruby-bignum
42150430ce7cbcee73173c7b8302c24f2efbae76
testsuite/abi.c
testsuite/abi.c
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include <orc/orc.h> #include <stdio.h> int main (int argc, char *argv[]) { int offset; int expected_offset; int error = 0; offset = ((int) ((unsigned char *) &((OrcProgram*) 0)->code_exec)); if (sizeof(void *) == 4) { expected_offset = 8360; } else { expected_offset = 9688; } if (offset != expected_offset) { printf("ABI bug: OrcProgram->code_exec should be at offset %d instead of %d\n", offset, expected_offset); error = 1; } return error; }
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include <orc/orc.h> #include <stdio.h> int main (int argc, char *argv[]) { long offset; int expected_offset; int error = 0; offset = ((long) ((unsigned char *) &((OrcProgram*) 0)->code_exec)); if (sizeof(void *) == 4) { expected_offset = 8360; } else { expected_offset = 9688; } if (offset != expected_offset) { printf("ABI bug: OrcProgram->code_exec should be at offset %ld instead of %d\n", offset, expected_offset); error = 1; } return error; }
Fix compilation of the ABI test on 64 bit architectures
tests: Fix compilation of the ABI test on 64 bit architectures Casting a pointer to a plain int will cause a compiler error, use long instead.
C
bsd-3-clause
MOXfiles/orc,Distrotech/orc,ahmedammar/platform_external_gst_liborc,jpakkane/orc,jpakkane/orc,ahmedammar/platform_external_gst_liborc,MOXfiles/orc,ijsf/OpenWebRTC-orc,okuoku/nmosh-orc,MOXfiles/orc,Distrotech/orc,okuoku/nmosh-orc,mojaves/orc,Distrotech/orc,ijsf/OpenWebRTC-orc,mojaves/orc,ijsf/OpenWebRTC-orc,jpakkane/orc,mojaves/orc,okuoku/nmosh-orc
27575f2a32ef4fd1f6bd6987b86473791ff394f7
test/arduino_compat.h
test/arduino_compat.h
#ifndef _ARDUINO_COMPAT_H #define _ARDUINO_COMPAT_H #include <stdio.h> #include <stdlib.h> //#include <sys/types.h> //#include <sys/stat.h> #include <fcntl.h> #include <ctype.h> #include <string.h> typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned long uint32_t; typedef bool boolean; //#define uint8_t unsigned char #define FILE_READ O_RDONLY #define FILE_WRITE (O_RDWR | O_CREAT) #endif
#ifndef _ARDUINO_COMPAT_H #define _ARDUINO_COMPAT_H #include <stdio.h> #include <stdlib.h> #include <stdint.h> //#include <sys/types.h> //#include <sys/stat.h> #include <fcntl.h> #include <ctype.h> #include <string.h> typedef bool boolean; //#define uint8_t unsigned char #define FILE_READ O_RDONLY #define FILE_WRITE (O_RDWR | O_CREAT) #endif
Use stdint.h for unsigned integer typedefs
Use stdint.h for unsigned integer typedefs Fixes problem compiling regression tests on 64 bit OS.
C
lgpl-2.1
stevemarple/IniFile,stevemarple/IniFile
a7deb40634762debd15fe2e3f13c869aef9608d8
source/SoAd.h
source/SoAd.h
/* Copyright (C) 2015 Joakim Plate * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed 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 this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef SOAD_H_ #define SOAD_H_ #include "TcpIp.h" typedef struct { uint8 dummy; } SoAd_SocketConnection; typedef struct { uint32 headerid; } SoAd_SocketRoute; typedef struct { uint8 dummy; } SoAd_ConfigType; void SoAd_Init(const SoAd_ConfigType* config); void SoAd_MainFunction(void); #endif
/* Copyright (C) 2015 Joakim Plate * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed 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 this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef SOAD_H_ #define SOAD_H_ #include "TcpIp.h" #define SOAD_MODULEID 56u #define SOAD_INSTANCEID 0u typedef struct { uint8 dummy; } SoAd_SocketConnection; typedef struct { uint32 headerid; } SoAd_SocketRoute; typedef struct { uint8 dummy; } SoAd_ConfigType; void SoAd_Init(const SoAd_ConfigType* config); void SoAd_MainFunction(void); #endif
Add moduleid and instance id
Add moduleid and instance id
C
lgpl-2.1
elupus/autosar-soad,elupus/autosar-soad
614310c7aedf3273523352b1ee16660e7bbf9601
test/Analysis/security-syntax-checks.c
test/Analysis/security-syntax-checks.c
// RUN: %clang_analyze_cc1 %s -verify \ // RUN: -analyzer-checker=security.insecureAPI void builtin_function_call_crash_fixes(char *c) { __builtin_strncpy(c, "", 6); // expected-warning{{Call to function 'strncpy' is insecure as it does not provide security checks introduced in the C11 standard.}} __builtin_memset(c, '\0', (0)); // expected-warning{{Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard.}} __builtin_memcpy(c, c, 0); // expected-warning{{Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard.}} }
// RUN: %clang_analyze_cc1 %s -verify \ // RUN: -analyzer-checker=security.insecureAPI // RUN: %clang_analyze_cc1 %s -verify -std=gnu11 \ // RUN: -analyzer-checker=security.insecureAPI // RUN: %clang_analyze_cc1 %s -verify -std=gnu99 \ // RUN: -analyzer-checker=security.insecureAPI void builtin_function_call_crash_fixes(char *c) { __builtin_strncpy(c, "", 6); __builtin_memset(c, '\0', (0)); __builtin_memcpy(c, c, 0); #if __STDC_VERSION__ > 199901 // expected-warning@-5{{Call to function 'strncpy' is insecure as it does not provide security checks introduced in the C11 standard.}} // expected-warning@-5{{Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard.}} // expected-warning@-5{{Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard.}} #else // expected-no-diagnostics #endif }
Fix test on PS4 which defaults to gnu99 which does not emit the expected warnings.
Fix test on PS4 which defaults to gnu99 which does not emit the expected warnings. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@358626 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang
21ebc95f83d4a857ffbbd13d1332d919f4752614
check_tests/eas_main_tests.c
check_tests/eas_main_tests.c
#include <stdlib.h> #include <check.h> Suite* eas_daemon_suite (void); Suite* eas_autodiscover_suite (void); Suite* eas_libeasmail_suite (void); Suite* eas_libeascal_suite (void); Suite* eas_libeassync_suite (void); Suite* eas_libeascon_suite (void); Suite* eas_folderhierarchy_suite (void); int main (void) { int number_failed; SRunner* sr = srunner_create (eas_daemon_suite()); // Only to be used manually, updating the sync key to see manual // changes on the server reflected to the client // srunner_add_suite (sr, eas_folderhierarchy_suite()); srunner_add_suite (sr, eas_autodiscover_suite()); srunner_add_suite (sr, eas_libeasmail_suite()); srunner_add_suite (sr, eas_libeascal_suite()); // srunner_add_suite (sr, eas_libeassync_suite()); srunner_add_suite (sr, eas_libeascon_suite()); srunner_set_xml (sr, "eas-daemon_test.xml"); srunner_set_log (sr, "eas-daemon_test.log"); srunner_run_all (sr, CK_NORMAL); number_failed = srunner_ntests_failed (sr); srunner_free (sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; }
#include <stdlib.h> #include <check.h> Suite* eas_daemon_suite (void); Suite* eas_autodiscover_suite (void); Suite* eas_libeasmail_suite (void); Suite* eas_libeascal_suite (void); Suite* eas_libeassync_suite (void); Suite* eas_libeascon_suite (void); Suite* eas_folderhierarchy_suite (void); int main (void) { int number_failed; SRunner* sr = srunner_create (eas_daemon_suite()); /** Only to be used manually, updating the sync key to see manual * changes on the server reflected to the client */ // srunner_add_suite (sr, eas_folderhierarchy_suite()); srunner_add_suite (sr, eas_autodiscover_suite()); srunner_add_suite (sr, eas_libeasmail_suite()); srunner_add_suite (sr, eas_libeascal_suite()); srunner_add_suite (sr, eas_libeassync_suite()); srunner_add_suite (sr, eas_libeascon_suite()); srunner_set_xml (sr, "eas-daemon_test.xml"); srunner_set_log (sr, "eas-daemon_test.log"); srunner_run_all (sr, CK_NORMAL); number_failed = srunner_ntests_failed (sr); srunner_free (sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; }
Enable all test suites except the manual folder hierarchy one
Enable all test suites except the manual folder hierarchy one
C
lgpl-2.1
simo5/evolution-activesync,simo5/evolution-activesync,simo5/evolution-activesync
8bc6d9116a731dd70366b9fcc3fba4f182df91f2
c/selective.h
c/selective.h
#ifndef _SELECTIVE_H #define _SELECTIVE_H #include "psyco.h" #include "codemanager.h" #define FUN_BOUND -1 #define MAX_RECURSION 1 EXTERNVAR PyObject* funcs; EXTERNVAR int ticks; EXTERNFN int do_selective(void *, PyFrameObject *, int, PyObject *); #endif
#ifndef _SELECTIVE_H #define _SELECTIVE_H #include "psyco.h" #include "codemanager.h" #define FUN_BOUND -1 #define MAX_RECURSION 99 EXTERNVAR PyObject* funcs; EXTERNVAR int ticks; EXTERNFN int do_selective(void *, PyFrameObject *, int, PyObject *); #endif
Set the MAX_RECURSION macro to 99 instead of 1
Set the MAX_RECURSION macro to 99 instead of 1
C
mit
tonysimpson/Ni,tonysimpson/Ni,tonysimpson/Ni,tonysimpson/Ni,tonysimpson/Ni
76fea900b9aedf4f8063f36b4f45a0616cdee5bb
odroid/energymon-odroid-ioctl.h
odroid/energymon-odroid-ioctl.h
/** * Energy reading for an ODROID with INA231 power sensors, using ioctl on * device files instead of sysfs. * * @author Connor Imes * @date 2015-10-14 */ #ifndef _ENERGYMON_ODROID_IOCTL_H_ #define _ENERGYMON_ODROID_IOCTL_H_ #ifdef __cplusplus extern "C" { #endif #include <stddef.h> #include "energymon.h" int energymon_init_odroid_ioctl(energymon* em); uint64_t energymon_read_total_odroid_ioctl(const energymon* em); int energymon_finish_odroid_ioctl(energymon* em); char* energymon_get_source_odroid_ioctl(char* buffer, size_t n); uint64_t energymon_get_interval_odroid_ioctl(const energymon* em); uint64_t energymon_get_precision_odroid_ioctl(const energymon* em); int energymon_is_exclusive_odroid_ioctl(); int energymon_get_odroid_ioctl(energymon* em); #ifdef __cplusplus } #endif #endif
/** * Energy reading for an ODROID with INA231 power sensors, using ioctl on * device files instead of sysfs. * * @author Connor Imes * @date 2015-10-14 */ #ifndef _ENERGYMON_ODROID_IOCTL_H_ #define _ENERGYMON_ODROID_IOCTL_H_ #ifdef __cplusplus extern "C" { #endif #include <inttypes.h> #include <stddef.h> #include "energymon.h" int energymon_init_odroid_ioctl(energymon* em); uint64_t energymon_read_total_odroid_ioctl(const energymon* em); int energymon_finish_odroid_ioctl(energymon* em); char* energymon_get_source_odroid_ioctl(char* buffer, size_t n); uint64_t energymon_get_interval_odroid_ioctl(const energymon* em); uint64_t energymon_get_precision_odroid_ioctl(const energymon* em); int energymon_is_exclusive_odroid_ioctl(); int energymon_get_odroid_ioctl(energymon* em); #ifdef __cplusplus } #endif #endif
Add missing include (mostly for good practice as it's currently included transitively anyway)
Add missing include (mostly for good practice as it's currently included transitively anyway)
C
apache-2.0
energymon/energymon
966a2dd4410d9aa4a15f7560a52b97626e787a91
ghighlighter/gh-about-dialog.c
ghighlighter/gh-about-dialog.c
#include <gtk/gtk.h> GtkWidget * gh_about_dialog_create () { GtkWidget *dialog; dialog = gtk_about_dialog_new (); return dialog; }
#include <gtk/gtk.h> GtkWidget * gh_about_dialog_create () { GtkWidget *dialog; dialog = gtk_about_dialog_new (); static gchar const *title = "About ghighlighter"; gtk_window_set_title (GTK_WINDOW (dialog), title); return dialog; }
Set about dialog title through static const variable
Set about dialog title through static const variable
C
mit
chdorner/ghighlighter-c
9fac183df59fc6aa4bb6c244cce394b9fa9993c1
src/core/src/NIOperations+Subclassing.h
src/core/src/NIOperations+Subclassing.h
// // Copyright 2011-2014 NimbusKit // // 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. // @interface NIOperation() @property (strong) NSError* lastError; @end
// // Copyright 2011-2014 NimbusKit // // 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. // #import "NIOperations.h" @interface NIOperation() @property (strong) NSError* lastError; @end
Add proper import for NIOperations
Add proper import for NIOperations
C
apache-2.0
bangquangvn/nimbus,zilaiyedaren/nimbus,zilaiyedaren/nimbus,panume/nimbus,panume/nimbus,bangquangvn/nimbus,WeeTom/nimbus,bogardon/nimbus,quyixia/nimbus,kisekied/nimbus,chanffdavid/nimbus,bogardon/nimbus,quyixia/nimbus,JyHu/nimbus,Arcank/nimbus,dmishe/nimbus,chanffdavid/nimbus,kisekied/nimbus,marcobgoogle/nimbus,Arcank/nimbus,compositeprimes/nimbus,chanffdavid/nimbus,dachaoisme/nimbus,kisekied/nimbus,michaelShab/nimbus,kisekied/nimbus,compositeprimes/nimbus,kisekied/nimbus,bogardon/nimbus,panume/nimbus,JyHu/nimbus,bangquangvn/nimbus,WeeTom/nimbus,WeeTom/nimbus,JyHu/nimbus,chanffdavid/nimbus,quyixia/nimbus,marcobgoogle/nimbus,jverkoey/nimbus,bangquangvn/nimbus,dmishe/nimbus,quyixia/nimbus,marcobgoogle/nimbus,michaelShab/nimbus,michaelShab/nimbus,jverkoey/nimbus,jverkoey/nimbus,zilaiyedaren/nimbus,michaelShab/nimbus,dmishe/nimbus,compositeprimes/nimbus,dachaoisme/nimbus,chanffdavid/nimbus,quyixia/nimbus,dachaoisme/nimbus,quyixia/nimbus,Arcank/nimbus,panume/nimbus,compositeprimes/nimbus,bogardon/nimbus,WeeTom/nimbus,WeeTom/nimbus,jverkoey/nimbus,zilaiyedaren/nimbus,Arcank/nimbus,chanffdavid/nimbus,bangquangvn/nimbus,panume/nimbus,michaelShab/nimbus,quyixia/nimbus,bogardon/nimbus,marcobgoogle/nimbus,jverkoey/nimbus,compositeprimes/nimbus,WeeTom/nimbus,JyHu/nimbus,michaelShab/nimbus,bogardon/nimbus,dmishe/nimbus,bogardon/nimbus,dmishe/nimbus,marcobgoogle/nimbus,compositeprimes/nimbus,Arcank/nimbus,bangquangvn/nimbus,panume/nimbus,marcobgoogle/nimbus,kisekied/nimbus,jverkoey/nimbus,Arcank/nimbus,jverkoey/nimbus,dachaoisme/nimbus,zilaiyedaren/nimbus,dmishe/nimbus,marcobgoogle/nimbus,dachaoisme/nimbus,JyHu/nimbus,Arcank/nimbus,JyHu/nimbus,dachaoisme/nimbus,zilaiyedaren/nimbus,JyHu/nimbus,compositeprimes/nimbus
4868db0afaf583dc008e842b35c1701df732333b
kernel/init/kmain.c
kernel/init/kmain.c
#include <logging.h> #include <cedille/pmm.h> #include <cedille/heap.h> extern uint32_t _kernel_start,_kernel_end; void vmm_init(); void kprocess_init(); void timing_system_engine_reportstatustoconsole(); void kernel_doperiodic(int force, int tick); int kernel_idle_process() { int i = 0; for(;;) { // Attempt to reschedule other processes unless things need to be done // So, check if theres anything that needs to be done (like kernel state verification) // Execute that, make sure everything is preemptable // Then, attempt to reschedule processes if there isn't anything. // Otherwise cpu time is wasted. if(i != 500) { printf("test%d\n",i++); } } return 0; } int kmain() { low_printname(); init_early_malloc(&_kernel_end); init_pmm(); vmm_init(); heap_init(); timing_system_engine_reportstatustoconsole(); kernel_doperiodic(1,0); // Force stuff to happen once at the end of initialisation kernel_idle_process(); return 0; }
#include <logging.h> #include <cedille/pmm.h> #include <cedille/heap.h> extern uint32_t _kernel_start,_kernel_end; void vmm_init(); void kprocess_init(); void timing_system_engine_reportstatustoconsole(); void kernel_doperiodic(int force, int tick); int kernel_idle_process() { for(;;) { // Attempt to reschedule other processes unless things need to be done // So, check if theres anything that needs to be done (like kernel state verification) // Execute that, make sure everything is preemptable // Then, attempt to reschedule processes if there isn't anything. // Otherwise cpu time is wasted. } return 0; } int kmain() { low_printname(); init_early_malloc(&_kernel_end); init_pmm(); vmm_init(); heap_init(); timing_system_engine_reportstatustoconsole(); kernel_doperiodic(1,0); // Force stuff to happen once at the end of initialisation kernel_idle_process(); return 0; }
Remove test scrolling code from idle_process
Remove test scrolling code from idle_process
C
mit
Lionel07/Cedille,Lionel07/Cedille,Lionel07/Cedille
cdb6e95182e874765dd7a51155534111d186d631
src/roman_convert_to_int.c
src/roman_convert_to_int.c
#include <string.h> #include "roman_convert_to_int.h" int roman_convert_to_int(const char *numeral) { if (!numeral) { return -1; } const char first_letter = *numeral; switch (first_letter) { case 'I': return 1; case 'V': return 5; case 'X': return 10; case 'L': return 50; case 'C': return 100; case 'D': return 500; case 'M': return 1000; default: return -1; } }
#include <string.h> #include "roman_convert_to_int.h" int roman_convert_to_int(const char *numeral) { const char first_letter = numeral ? *numeral : '?'; switch (first_letter) { case 'I': return 1; case 'V': return 5; case 'X': return 10; case 'L': return 50; case 'C': return 100; case 'D': return 500; case 'M': return 1000; default: return -1; } }
Simplify error handling for missing/unknown numerals
Simplify error handling for missing/unknown numerals
C
mit
greghaskins/roman-calculator.c
05489fc77e7bd485bf3333a7a5579e257e150fac
src/imap/cmd-create.c
src/imap/cmd-create.c
/* 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; }
/* 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; }
CREATE ns_prefix/box/ didn't work right when namespace prefix existed.
CREATE ns_prefix/box/ didn't work right when namespace prefix existed.
C
mit
damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot
64e8feb20086dea45debf19dacdf10bcc8587d6a
userspace/engine/falco_engine_version.h
userspace/engine/falco_engine_version.h
/* Copyright (C) 2021 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or 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. */ // The version of rules/filter fields/etc supported by this Falco // engine. #define FALCO_ENGINE_VERSION (11) // This is the result of running "falco --list -N | sha256sum" and // represents the fields supported by this version of Falco. It's used // at build time to detect a changed set of fields. #define FALCO_FIELDS_CHECKSUM "9822482ceda8c4ee3475e698ba35a74c5e7abf971deb4e989e26415434bbd89b"
/* Copyright (C) 2021 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or 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. */ // The version of rules/filter fields/etc supported by this Falco // engine. #define FALCO_ENGINE_VERSION (11) // This is the result of running "falco --list -N | sha256sum" and // represents the fields supported by this version of Falco. It's used // at build time to detect a changed set of fields. #define FALCO_FIELDS_CHECKSUM "4de812495f8529ac20bda2b9774462b15911a51df293d59fe9ccb6b922fdeb9d"
Update fields checksum (no changes, order only)
Update fields checksum (no changes, order only) With the new implementation of list_fields(), the order of fields changed slightly. So update the checksum. Signed-off-by: Mark Stemm <1b6cbc2e568a933a16c6fa30b73e50cd507debf7@gmail.com>
C
apache-2.0
draios/falco,draios/falco,draios/falco,draios/falco,draios/falco,draios/falco,draios/falco,draios/falco
c33a24ad0fc8900b1e1a4ddb1c81194a9b8feaf6
src/Sched.h
src/Sched.h
#ifndef SCHED_H #define SCHED_H #include <Input.h> #include <Watch.h> #include <Display.h> #include <unistd.h> // for sleep() class Sched { public: Sched(Input* input, Watch* watch, Display* display) : input_(input) , watch_(watch) , display_(display) {} public: void run() { while(!shouldStop()) { sleep(1); input_->frame(); // watch_->frame(); // display_->frame(); } } bool shouldStop() const { return input_->shouldStop(); } private: Input* input_; Watch* watch_; Display* display_; }; #endif
#ifndef SCHED_H #define SCHED_H #include <Input.h> #include <Watch.h> #include <Display.h> #include <unistd.h> // for sleep() #include <iostream> class Sched { public: Sched(Input* input, Watch* watch, Display* display) : input_(input) , watch_(watch) , display_(display) {} public: void run() { while(!shouldStop()) { sleep(1); // clear screen, normally this should be done in Display // but we want to fsm debug output to be shown (and not wiped away by this // clear screen) std::cout << "\x1B[2J\x1B[H"; input_->frame(); // watch_->frame(); // display_->frame(); } } bool shouldStop() const { return input_->shouldStop(); } private: Input* input_; Watch* watch_; Display* display_; }; #endif
Clear screen before each cycle
Clear screen before each cycle
C
mit
dkrikun/casio-fsm,dkrikun/casio-fsm,dkrikun/casio-fsm,dkrikun/casio-fsm,dkrikun/casio-fsm,dkrikun/casio-fsm,dkrikun/casio-fsm,dkrikun/casio-fsm,dkrikun/casio-fsm,dkrikun/casio-fsm
073a4cfe77ec0117663b30156b2eade8ca751fe9
src/libcsg/modules/io/lammpsdumpwriter.h
src/libcsg/modules/io/lammpsdumpwriter.h
/* * Copyright 2009-2019 The VOTCA Development Team (http://www.votca.org) * * 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 __VOTCA_CSG_LAMMPSDUMPWRITER_H #define __VOTCA_CSG_LAMMPSDUMPWRITER_H #include <stdio.h> #include <votca/csg/topology.h> #include <votca/csg/trajectorywriter.h> namespace votca { namespace csg { class LAMMPSDumpWriter : public TrajectoryWriter { public: void Open(std::string file, bool bAppend = false) override; void Close() override; void Write(Topology *conf) override; private: FILE *_out; }; } // namespace csg } // namespace votca #endif // __VOTCA_CSG_LAMMPSDUMPWRITER_H
/* * Copyright 2009-2019 The VOTCA Development Team (http://www.votca.org) * * 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 __VOTCA_CSG_LAMMPSDUMPWRITER_H #define __VOTCA_CSG_LAMMPSDUMPWRITER_H #include <stdio.h> #include <votca/csg/topology.h> #include <votca/csg/trajectorywriter.h> #include <votca/tools/unitconverter.h> namespace votca { namespace csg { class LAMMPSDumpWriter : public TrajectoryWriter { public: void Open(std::string file, bool bAppend = false) override; void Close() override; void Write(Topology *conf) override; private: FILE *_out; }; } // namespace csg } // namespace votca #endif // __VOTCA_CSG_LAMMPSDUMPWRITER_H
Add unit converter include to lammps dump writer
Add unit converter include to lammps dump writer
C
apache-2.0
votca/csg,votca/csg,MrTheodor/csg,MrTheodor/csg,MrTheodor/csg,votca/csg,MrTheodor/csg,MrTheodor/csg,votca/csg
f980d4b926ede4fefa5bb5dae6fba6bf843bf6e9
src/libguac/guacamole/parser-constants.h
src/libguac/guacamole/parser-constants.h
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you 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 _GUAC_PARSER_CONSTANTS_H #define _GUAC_PARSER_CONSTANTS_H /** * Constants related to the Guacamole protocol parser. * * @file parser-constants.h */ /** * The maximum number of characters per instruction. */ #define GUAC_INSTRUCTION_MAX_LENGTH 8192 /** * The maximum number of digits to allow per length prefix. */ #define GUAC_INSTRUCTION_MAX_DIGITS 5 /** * The maximum number of elements per instruction, including the opcode. */ #define GUAC_INSTRUCTION_MAX_ELEMENTS 64 #endif
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you 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 _GUAC_PARSER_CONSTANTS_H #define _GUAC_PARSER_CONSTANTS_H /** * Constants related to the Guacamole protocol parser. * * @file parser-constants.h */ /** * The maximum number of characters per instruction. */ #define GUAC_INSTRUCTION_MAX_LENGTH 8192 /** * The maximum number of digits to allow per length prefix. */ #define GUAC_INSTRUCTION_MAX_DIGITS 5 /** * The maximum number of elements per instruction, including the opcode. */ #define GUAC_INSTRUCTION_MAX_ELEMENTS 128 #endif
Merge changes allowing up to 128 elements per Guacamole instruction.
GUACAMOLE-587: Merge changes allowing up to 128 elements per Guacamole instruction.
C
apache-2.0
apache/guacamole-server,apache/guacamole-server,glyptodon/guacamole-server,glyptodon/guacamole-server,mike-jumper/incubator-guacamole-server,mike-jumper/incubator-guacamole-server,glyptodon/guacamole-server,mike-jumper/incubator-guacamole-server,mike-jumper/incubator-guacamole-server,apache/guacamole-server
30909be64f02c27b012e9067c6af7f7e93e41008
inc/WikiWalker.h
inc/WikiWalker.h
//! \file WikiWalker.h #ifndef WIKIWALKER_H #define WIKIWALKER_H #include <string> #include "CurlWikiGrabber.h" #include "Walker.h" namespace WikiWalker { //! main "app" class class WikiWalker : public Walker { public: /*! given an URL, start collecting links * \param url start point for analysis */ void startWalking(const std::string& url); /*! fetch not only requested article, but also linked ones. * \param depth whether to fetch linked articles as well */ void setDeep(bool depth) { fetchGenerator = depth; } /*! Read data from cache file. * Used for initialization. * \param cacheFile file name of the cache. */ void readCache(const std::string& cacheFile); /*! Write data to cache file. * \param cacheFile file name of the cache. */ void writeCache(const std::string& cacheFile); private: CurlWikiGrabber grabber; bool fetchGenerator; }; } // namespace WikiWalker #endif // WIKIWALKER_H
//! \file WikiWalker.h #ifndef WIKIWALKER_H #define WIKIWALKER_H #include <string> #include "CurlWikiGrabber.h" #include "Walker.h" namespace WikiWalker { //! main "app" class class WikiWalker : public Walker { public: //! Creates a new instance WikiWalker() : Walker(), fetchGenerator(false), grabber() { } /*! given an URL, start collecting links * \param url start point for analysis */ void startWalking(const std::string& url); /*! fetch not only requested article, but also linked ones. * \param depth whether to fetch linked articles as well */ void setDeep(bool depth) { fetchGenerator = depth; } /*! Read data from cache file. * Used for initialization. * \param cacheFile file name of the cache. */ void readCache(const std::string& cacheFile); /*! Write data to cache file. * \param cacheFile file name of the cache. */ void writeCache(const std::string& cacheFile); private: CurlWikiGrabber grabber; bool fetchGenerator; }; } // namespace WikiWalker #endif // WIKIWALKER_H
Add contructor to initialize fetchGenerator correctly
Add contructor to initialize fetchGenerator correctly
C
mit
dueringa/WikiWalker
a9afc0a1eb8cd6e5b0ea0f766f6a3a4012770679
media/rx/video-rx.h
media/rx/video-rx.h
#ifndef __VIDEO_RX_H__ #define __VIDEO_RX_H__ #include "libavformat/avformat.h" typedef struct DecodedFrame { AVFrame* pFrameRGB; uint8_t *buffer; } DecodedFrame; typedef struct FrameManager { enum PixelFormat pix_fmt; void (*put_video_frame_rx)(uint8_t *data, int width, int height, int nframe); DecodedFrame* (*get_decoded_frame_buffer)(int width, int height); void (*release_decoded_frame_buffer)(void); } FrameManager; int start_video_rx(const char* sdp, int maxDelay, FrameManager *frame_manager); int stop_video_rx(); #endif /* __VIDEO_RX_H__ */
#ifndef __VIDEO_RX_H__ #define __VIDEO_RX_H__ #include "libavformat/avformat.h" typedef struct DecodedFrame { AVFrame* pFrameRGB; uint8_t *buffer; void *priv_data; /* User private data */ } DecodedFrame; typedef struct FrameManager { enum PixelFormat pix_fmt; void (*put_video_frame_rx)(uint8_t *data, int width, int height, int nframe); DecodedFrame* (*get_decoded_frame_buffer)(int width, int height); void (*release_decoded_frame_buffer)(void); } FrameManager; int start_video_rx(const char* sdp, int maxDelay, FrameManager *frame_manager); int stop_video_rx(); #endif /* __VIDEO_RX_H__ */
Add priv_data field in DecodedFrame struct.
Add priv_data field in DecodedFrame struct.
C
lgpl-2.1
Kurento/kc-media-native,Kurento/kc-media-native,shelsonjava/kc-media-native,shelsonjava/kc-media-native
0fa14ec3cba7347d58bc4e1ec10273c129b87b29
src/imap/cmd-create.c
src/imap/cmd-create.c
/* 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; }
/* 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; }
CREATE ns_prefix/box/ didn't work right when namespace prefix existed.
CREATE ns_prefix/box/ didn't work right when namespace prefix existed.
C
mit
Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot
018638ec7f304a4acd11b881be3d02bd6af966b4
BindingShort.h
BindingShort.h
// This file is part of nbind, copyright (C) 2014-2015 BusFaster Ltd. // Released under the MIT license, see LICENSE. #pragma once #ifdef BUILDING_NODE_EXTENSION #include "Binding.h" #define NBIND_ERR(message) nbind::Bindings::setError(message) #define NBIND_CLASS(Name) \ template<class Bound> struct BindInvoker { \ BindInvoker(); \ nbind::BindClass<Name> linkage; \ nbind::BindDefiner<Name> definer; \ }; \ static struct BindInvoker<Name> bindInvoker##Name; \ template<class Bound> BindInvoker<Bound>::BindInvoker():definer(#Name) #define method(name) definer.function(#name, &Bound::name) #define constructor definer.constructor #define NBIND_INIT(moduleName) NODE_MODULE(moduleName, nbind::Bindings::initModule) #else #define NBIND_ERR(message) #endif
// This file is part of nbind, copyright (C) 2014-2015 BusFaster Ltd. // Released under the MIT license, see LICENSE. #pragma once #ifdef BUILDING_NODE_EXTENSION #include "Binding.h" #define NBIND_ERR(message) nbind::Bindings::setError(message) #define NBIND_CLASS(Name) \ template<class Bound> struct BindInvoker { \ BindInvoker(); \ nbind::BindClass<Name> linkage; \ nbind::BindDefiner<Name> definer; \ }; \ static struct BindInvoker<Name> bindInvoker##Name; \ template<class Bound> BindInvoker<Bound>::BindInvoker():definer(#Name) #define method(name) definer.function(#name, &Bound::name) #define construct definer.constructor #define NBIND_INIT(moduleName) NODE_MODULE(moduleName, nbind::Bindings::initModule) #else #define NBIND_ERR(message) #endif
Fix GCC keyword conflict with simpler API.
Fix GCC keyword conflict with simpler API.
C
mit
charto/nbind,charto/nbind,charto/nbind,charto/nbind,charto/nbind,charto/nbind
c2d80c25893d00dfb8172caa05ac39b4eecaede1
include/swift/Runtime/Once.h
include/swift/Runtime/Once.h
//===--- Once.h - Runtime support for lazy initialization ------*- C++ -*--===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LICENSE.txt for license information // See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// // // Swift runtime functions in support of lazy initialization. // //===----------------------------------------------------------------------===// #ifndef SWIFT_RUNTIME_ONCE_H #define SWIFT_RUNTIME_ONCE_H #include "swift/Runtime/HeapObject.h" namespace swift { #ifdef __APPLE__ // On OS X and iOS, swift_once_t matches dispatch_once_t. typedef long swift_once_t; #else // On other platforms swift_once_t is pointer-sized. typedef int swift_once_t; #endif /// Runs the given function with the given context argument exactly once. /// The predicate argument must point to a global or static variable of static /// extent of type swift_once_t. extern "C" void swift_once(swift_once_t *predicate, void (*fn)(HeapObject *ctx), HeapObject *ctx); } #endif
//===--- Once.h - Runtime support for lazy initialization ------*- C++ -*--===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LICENSE.txt for license information // See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// // // Swift runtime functions in support of lazy initialization. // //===----------------------------------------------------------------------===// #ifndef SWIFT_RUNTIME_ONCE_H #define SWIFT_RUNTIME_ONCE_H #include "swift/Runtime/HeapObject.h" namespace swift { #ifdef __APPLE__ // On OS X and iOS, swift_once_t matches dispatch_once_t. typedef long swift_once_t; #else // On other platforms swift_once_t is pointer-sized. typedef void *swift_once_t; #endif /// Runs the given function with the given context argument exactly once. /// The predicate argument must point to a global or static variable of static /// extent of type swift_once_t. extern "C" void swift_once(swift_once_t *predicate, void (*fn)(HeapObject *ctx), HeapObject *ctx); } #endif
Change swift_once_t to be actually pointer-sized on non-Darwin
Change swift_once_t to be actually pointer-sized on non-Darwin Swift SVN r22384
C
apache-2.0
nathawes/swift,danielmartin/swift,ben-ng/swift,jtbandes/swift,ken0nek/swift,gregomni/swift,Ivacker/swift,gottesmm/swift,LeoShimonaka/swift,gregomni/swift,tardieu/swift,swiftix/swift,adrfer/swift,xedin/swift,KrishMunot/swift,tardieu/swift,kentya6/swift,djwbrown/swift,swiftix/swift.old,devincoughlin/swift,zisko/swift,SwiftAndroid/swift,parkera/swift,gmilos/swift,roambotics/swift,OscarSwanros/swift,jtbandes/swift,karwa/swift,ahoppen/swift,russbishop/swift,practicalswift/swift,kusl/swift,mightydeveloper/swift,MukeshKumarS/Swift,calebd/swift,kperryua/swift,felix91gr/swift,atrick/swift,practicalswift/swift,frootloops/swift,felix91gr/swift,swiftix/swift,JGiola/swift,devincoughlin/swift,austinzheng/swift,practicalswift/swift,slavapestov/swift,hooman/swift,kentya6/swift,glessard/swift,jmgc/swift,sdulal/swift,huonw/swift,hughbe/swift,felix91gr/swift,OscarSwanros/swift,sschiau/swift,jmgc/swift,MukeshKumarS/Swift,therealbnut/swift,frootloops/swift,codestergit/swift,tjw/swift,mightydeveloper/swift,xwu/swift,sschiau/swift,nathawes/swift,modocache/swift,Ivacker/swift,uasys/swift,CodaFi/swift,roambotics/swift,uasys/swift,tinysun212/swift-windows,roambotics/swift,gregomni/swift,devincoughlin/swift,khizkhiz/swift,felix91gr/swift,kstaring/swift,xedin/swift,kentya6/swift,mightydeveloper/swift,parkera/swift,brentdax/swift,ben-ng/swift,hughbe/swift,tinysun212/swift-windows,lorentey/swift,Jnosh/swift,Ivacker/swift,khizkhiz/swift,xedin/swift,rudkx/swift,gottesmm/swift,ahoppen/swift,lorentey/swift,roambotics/swift,calebd/swift,austinzheng/swift,modocache/swift,sdulal/swift,benlangmuir/swift,stephentyrone/swift,austinzheng/swift,xwu/swift,uasys/swift,devincoughlin/swift,sdulal/swift,danielmartin/swift,LeoShimonaka/swift,kentya6/swift,tkremenek/swift,austinzheng/swift,stephentyrone/swift,arvedviehweger/swift,hooman/swift,JaSpa/swift,dduan/swift,KrishMunot/swift,IngmarStein/swift,felix91gr/swift,glessard/swift,nathawes/swift,slavapestov/swift,ben-ng/swift,russbishop/swift,Jnosh/swift,djwbrown/swift,therealbnut/swift,kusl/swift,codestergit/swift,OscarSwanros/swift,austinzheng/swift,kperryua/swift,milseman/swift,airspeedswift/swift,alblue/swift,JGiola/swift,manavgabhawala/swift,cbrentharris/swift,cbrentharris/swift,roambotics/swift,jopamer/swift,gmilos/swift,gribozavr/swift,arvedviehweger/swift,uasys/swift,zisko/swift,amraboelela/swift,manavgabhawala/swift,CodaFi/swift,ben-ng/swift,OscarSwanros/swift,gribozavr/swift,jopamer/swift,huonw/swift,milseman/swift,brentdax/swift,aschwaighofer/swift,shahmishal/swift,jmgc/swift,swiftix/swift.old,emilstahl/swift,adrfer/swift,CodaFi/swift,CodaFi/swift,shahmishal/swift,zisko/swift,manavgabhawala/swift,amraboelela/swift,cbrentharris/swift,uasys/swift,frootloops/swift,nathawes/swift,zisko/swift,deyton/swift,jopamer/swift,kstaring/swift,cbrentharris/swift,mightydeveloper/swift,swiftix/swift.old,stephentyrone/swift,rudkx/swift,khizkhiz/swift,lorentey/swift,harlanhaskins/swift,kperryua/swift,dduan/swift,kperryua/swift,MukeshKumarS/Swift,gmilos/swift,practicalswift/swift,gmilos/swift,LeoShimonaka/swift,tkremenek/swift,aschwaighofer/swift,jckarter/swift,return/swift,kusl/swift,codestergit/swift,CodaFi/swift,allevato/swift,tinysun212/swift-windows,codestergit/swift,practicalswift/swift,gribozavr/swift,milseman/swift,airspeedswift/swift,khizkhiz/swift,rudkx/swift,lorentey/swift,dduan/swift,karwa/swift,modocache/swift,kentya6/swift,shajrawi/swift,jckarter/swift,jtbandes/swift,practicalswift/swift,devincoughlin/swift,bitjammer/swift,Ivacker/swift,johnno1962d/swift,return/swift,tinysun212/swift-windows,deyton/swift,ken0nek/swift,shahmishal/swift,sschiau/swift,JGiola/swift,dreamsxin/swift,slavapestov/swift,dduan/swift,bitjammer/swift,manavgabhawala/swift,arvedviehweger/swift,JaSpa/swift,ken0nek/swift,jckarter/swift,shajrawi/swift,kusl/swift,gregomni/swift,deyton/swift,tjw/swift,johnno1962d/swift,johnno1962d/swift,hughbe/swift,IngmarStein/swift,parkera/swift,SwiftAndroid/swift,stephentyrone/swift,xedin/swift,modocache/swift,return/swift,bitjammer/swift,swiftix/swift.old,LeoShimonaka/swift,therealbnut/swift,devincoughlin/swift,swiftix/swift,sschiau/swift,sdulal/swift,danielmartin/swift,dduan/swift,cbrentharris/swift,xedin/swift,allevato/swift,russbishop/swift,sschiau/swift,brentdax/swift,apple/swift,harlanhaskins/swift,allevato/swift,kperryua/swift,sschiau/swift,austinzheng/swift,adrfer/swift,xwu/swift,aschwaighofer/swift,alblue/swift,natecook1000/swift,gribozavr/swift,gmilos/swift,tkremenek/swift,mightydeveloper/swift,calebd/swift,tinysun212/swift-windows,sdulal/swift,adrfer/swift,milseman/swift,swiftix/swift,mightydeveloper/swift,KrishMunot/swift,airspeedswift/swift,allevato/swift,apple/swift,amraboelela/swift,stephentyrone/swift,therealbnut/swift,harlanhaskins/swift,lorentey/swift,tjw/swift,arvedviehweger/swift,tardieu/swift,swiftix/swift,MukeshKumarS/Swift,xwu/swift,apple/swift,jmgc/swift,benlangmuir/swift,arvedviehweger/swift,CodaFi/swift,bitjammer/swift,nathawes/swift,shajrawi/swift,brentdax/swift,adrfer/swift,lorentey/swift,modocache/swift,tardieu/swift,shahmishal/swift,JaSpa/swift,tinysun212/swift-windows,LeoShimonaka/swift,brentdax/swift,return/swift,zisko/swift,kperryua/swift,tkremenek/swift,IngmarStein/swift,harlanhaskins/swift,allevato/swift,gottesmm/swift,benlangmuir/swift,natecook1000/swift,atrick/swift,roambotics/swift,OscarSwanros/swift,uasys/swift,johnno1962d/swift,tardieu/swift,kperryua/swift,bitjammer/swift,ahoppen/swift,cbrentharris/swift,jmgc/swift,emilstahl/swift,shajrawi/swift,ben-ng/swift,lorentey/swift,xwu/swift,Ivacker/swift,calebd/swift,kstaring/swift,glessard/swift,natecook1000/swift,slavapestov/swift,rudkx/swift,hooman/swift,atrick/swift,gottesmm/swift,codestergit/swift,codestergit/swift,Jnosh/swift,brentdax/swift,parkera/swift,stephentyrone/swift,swiftix/swift.old,xwu/swift,emilstahl/swift,gribozavr/swift,slavapestov/swift,atrick/swift,tjw/swift,LeoShimonaka/swift,frootloops/swift,hughbe/swift,manavgabhawala/swift,karwa/swift,arvedviehweger/swift,JaSpa/swift,MukeshKumarS/Swift,adrfer/swift,jopamer/swift,deyton/swift,xedin/swift,kentya6/swift,gottesmm/swift,dduan/swift,jmgc/swift,xedin/swift,parkera/swift,zisko/swift,manavgabhawala/swift,LeoShimonaka/swift,rudkx/swift,devincoughlin/swift,arvedviehweger/swift,karwa/swift,therealbnut/swift,kstaring/swift,JaSpa/swift,tkremenek/swift,alblue/swift,zisko/swift,russbishop/swift,ben-ng/swift,kstaring/swift,jopamer/swift,tjw/swift,karwa/swift,djwbrown/swift,jckarter/swift,gribozavr/swift,Jnosh/swift,xwu/swift,gmilos/swift,ahoppen/swift,gregomni/swift,milseman/swift,jckarter/swift,aschwaighofer/swift,airspeedswift/swift,SwiftAndroid/swift,atrick/swift,dduan/swift,danielmartin/swift,slavapestov/swift,ahoppen/swift,sdulal/swift,karwa/swift,slavapestov/swift,amraboelela/swift,johnno1962d/swift,return/swift,hooman/swift,Jnosh/swift,rudkx/swift,SwiftAndroid/swift,huonw/swift,swiftix/swift.old,russbishop/swift,uasys/swift,IngmarStein/swift,huonw/swift,kusl/swift,harlanhaskins/swift,tardieu/swift,modocache/swift,dreamsxin/swift,swiftix/swift,JGiola/swift,gribozavr/swift,glessard/swift,Jnosh/swift,harlanhaskins/swift,practicalswift/swift,jopamer/swift,SwiftAndroid/swift,alblue/swift,Ivacker/swift,swiftix/swift.old,OscarSwanros/swift,hughbe/swift,shahmishal/swift,khizkhiz/swift,jmgc/swift,JaSpa/swift,khizkhiz/swift,kusl/swift,alblue/swift,jtbandes/swift,tkremenek/swift,allevato/swift,ahoppen/swift,gottesmm/swift,shajrawi/swift,johnno1962d/swift,danielmartin/swift,KrishMunot/swift,hooman/swift,tardieu/swift,gmilos/swift,emilstahl/swift,airspeedswift/swift,karwa/swift,gottesmm/swift,nathawes/swift,stephentyrone/swift,codestergit/swift,parkera/swift,frootloops/swift,tjw/swift,kstaring/swift,IngmarStein/swift,deyton/swift,calebd/swift,swiftix/swift.old,ken0nek/swift,felix91gr/swift,airspeedswift/swift,parkera/swift,danielmartin/swift,austinzheng/swift,hughbe/swift,therealbnut/swift,glessard/swift,russbishop/swift,amraboelela/swift,sdulal/swift,IngmarStein/swift,djwbrown/swift,apple/swift,KrishMunot/swift,parkera/swift,manavgabhawala/swift,modocache/swift,shahmishal/swift,ken0nek/swift,apple/swift,kstaring/swift,IngmarStein/swift,adrfer/swift,benlangmuir/swift,milseman/swift,SwiftAndroid/swift,mightydeveloper/swift,MukeshKumarS/Swift,natecook1000/swift,jckarter/swift,natecook1000/swift,ken0nek/swift,JGiola/swift,danielmartin/swift,cbrentharris/swift,calebd/swift,amraboelela/swift,deyton/swift,Ivacker/swift,JaSpa/swift,JGiola/swift,SwiftAndroid/swift,jckarter/swift,jtbandes/swift,kusl/swift,gribozavr/swift,gregomni/swift,deyton/swift,emilstahl/swift,aschwaighofer/swift,bitjammer/swift,airspeedswift/swift,OscarSwanros/swift,emilstahl/swift,calebd/swift,natecook1000/swift,khizkhiz/swift,aschwaighofer/swift,amraboelela/swift,LeoShimonaka/swift,huonw/swift,tkremenek/swift,sdulal/swift,emilstahl/swift,jopamer/swift,Ivacker/swift,shahmishal/swift,sschiau/swift,CodaFi/swift,kusl/swift,glessard/swift,kentya6/swift,MukeshKumarS/Swift,bitjammer/swift,ben-ng/swift,felix91gr/swift,therealbnut/swift,sschiau/swift,cbrentharris/swift,atrick/swift,johnno1962d/swift,lorentey/swift,tinysun212/swift-windows,KrishMunot/swift,benlangmuir/swift,KrishMunot/swift,Jnosh/swift,kentya6/swift,mightydeveloper/swift,natecook1000/swift,harlanhaskins/swift,shajrawi/swift,huonw/swift,frootloops/swift,brentdax/swift,hooman/swift,devincoughlin/swift,nathawes/swift,hooman/swift,djwbrown/swift,huonw/swift,xedin/swift,swiftix/swift,tjw/swift,return/swift,alblue/swift,jtbandes/swift,shajrawi/swift,allevato/swift,djwbrown/swift,apple/swift,jtbandes/swift,hughbe/swift,aschwaighofer/swift,djwbrown/swift,frootloops/swift,emilstahl/swift,return/swift,benlangmuir/swift,russbishop/swift,karwa/swift,ken0nek/swift,milseman/swift,practicalswift/swift,shahmishal/swift,shajrawi/swift,alblue/swift
b165ed7f282b736bb7fe9fa5e98455a437d23fa4
test/CodeGen/arm-asm-variable.c
test/CodeGen/arm-asm-variable.c
// RUN: %clang_cc1 -triple armv7-apple-darwin9 -emit-llvm -w -o - %s | FileCheck %s #include <stdint.h> #define ldrex_func(p, rl, rh) \ __asm__ __volatile__( \ "ldrexd%[_rl], %[_rh], [%[_p]]" \ : [_rl] "=&r" (rl), [_rh] "=&r" (rh) \ : [_p] "p" (p) : "memory") int64_t foo(int64_t v, volatile int64_t *p) { register uint32_t rl asm("r1"); register uint32_t rh asm("r2"); int64_t r; uint32_t t; __asm__ __volatile__( \ "ldrexd%[_rl], %[_rh], [%[_p]]" \ : [_rl] "=&r" (rl), [_rh] "=&r" (rh) \ : [_p] "p" (p) : "memory"); // CHECK: %0 = call %0 asm sideeffect "ldrexd$0, $1, [$2]", "={r1},={r2},r,~{memory}"(i64* %tmp) return r; }
// RUN: %clang_cc1 -triple armv7-apple-darwin9 -emit-llvm -w -o - %s | FileCheck %s #include <stdint.h> #define ldrex_func(p, rl, rh) \ __asm__ __volatile__( \ "ldrexd%[_rl], %[_rh], [%[_p]]" \ : [_rl] "=&r" (rl), [_rh] "=&r" (rh) \ : [_p] "p" (p) : "memory") int64_t foo(int64_t v, volatile int64_t *p) { register uint32_t rl asm("r1"); register uint32_t rh asm("r2"); int64_t r; uint32_t t; __asm__ __volatile__( \ "ldrexd%[_rl], %[_rh], [%[_p]]" \ : [_rl] "=&r" (rl), [_rh] "=&r" (rh) \ : [_p] "p" (p) : "memory"); // CHECK: %0 = call %0 asm sideeffect "ldrexd$0, $1, [$2]", "={r1},={r2},r,~{memory}"(i64* return r; }
Make this test suitable for optimized builds by avoiding the name.
Make this test suitable for optimized builds by avoiding the name. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@133238 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang
cf6afff7e568d87b92f9bbdae6e3c6608a981e6a
Classes/KRCloudSyncBlocks.h
Classes/KRCloudSyncBlocks.h
// // KRCloudSyncBlocks.h // CloudSync // // Created by allting on 12. 10. 19.. // Copyright (c) 2012년 allting. All rights reserved. // #ifndef CloudSync_KRCloudSyncBlocks_h #define CloudSync_KRCloudSyncBlocks_h @class KRSyncItem; typedef void (^KRCloudSyncStartBlock)(NSArray* syncItems); typedef void (^KRCloudSyncProgressBlock)(KRSyncItem* synItem, float progress); typedef void (^KRCloudSyncCompletedBlock)(NSArray* syncItems, NSError* error); typedef void (^KRCloudSyncResultBlock)(BOOL succeeded, NSError* error); typedef void (^KRCloudSyncPublishingURLBlock)(NSURL* url, BOOL succeeded, NSError* error); typedef void (^KRResourcesCompletedBlock)(NSArray* resources, NSError* error); typedef void (^KRServiceAvailableBlock)(BOOL available); typedef void (^KRiCloudRemoveFileBlock)(BOOL succeeded, NSError* error); #endif
// // KRCloudSyncBlocks.h // CloudSync // // Created by allting on 12. 10. 19.. // Copyright (c) 2012년 allting. All rights reserved. // #ifndef CloudSync_KRCloudSyncBlocks_h #define CloudSync_KRCloudSyncBlocks_h @class KRSyncItem; typedef void (^KRCloudSyncStartBlock)(NSArray* syncItems); typedef void (^KRCloudSyncProgressBlock)(KRSyncItem* synItem, CGFloat progress); typedef void (^KRCloudSyncCompletedBlock)(NSArray* syncItems, NSError* error); typedef void (^KRCloudSyncResultBlock)(BOOL succeeded, NSError* error); typedef void (^KRCloudSyncPublishingURLBlock)(NSURL* url, BOOL succeeded, NSError* error); typedef void (^KRResourcesCompletedBlock)(NSArray* resources, NSError* error); typedef void (^KRServiceAvailableBlock)(BOOL available); typedef void (^KRiCloudRemoveFileBlock)(BOOL succeeded, NSError* error); #endif
Support amd64. Release 2.3.5. Replace crittercism sdk.(ver 4.3.7)
Support amd64. Release 2.3.5. Replace crittercism sdk.(ver 4.3.7)
C
mit
MindPreview/KRCloudSync,MindPreview/KRCloudSync
2e1f71bdc24f162a88b0262350743d641b67bc4d
src/os/Win32/plugin.h
src/os/Win32/plugin.h
#ifndef PLUGIN_H_ #define PLUGIN_H_ #include <windows.h> #define EXPORT_CALLING __stdcall #define EXPORT __declspec(dllexport) EXPORT_CALLING #include "common.h" // just defined to make compilation work ; ignored #define RTLD_DEFAULT NULL #define RTLD_LOCAL -1 #define RTLD_LAZY -1 static inline void *dlopen(const char *name, int flags) { // TODO use LoadLibraryEx() and flags ? return LoadLibrary(name); } static inline void *dlsym(void *handle, const char *name) { FARPROC g = GetProcAddress(handle, name); void *h; *(FARPROC*)&h = g; return h; } static inline char *dlerror(void) { static __thread char buf[1024]; FormatMessage( FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_MAX_WIDTH_MASK, NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR)&buf, sizeof buf, NULL); return buf; } static inline int dlclose(void *handle) { return !FreeLibrary(handle); } #endif
#ifndef PLUGIN_H_ #define PLUGIN_H_ #include <windows.h> // TODO use __stdcall #define EXPORT_CALLING __cdecl #define EXPORT __declspec(dllexport) EXPORT_CALLING #include "common.h" // just defined to make compilation work ; ignored #define RTLD_DEFAULT NULL #define RTLD_LOCAL -1 #define RTLD_LAZY -1 static inline void *dlopen(const char *name, int flags) { // TODO use LoadLibraryEx() and flags ? return LoadLibrary(name); } static inline void *dlsym(void *handle, const char *name) { FARPROC g = GetProcAddress(handle, name); void *h; *(FARPROC*)&h = g; return h; } static inline char *dlerror(void) { static __thread char buf[1024]; FormatMessage( FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_MAX_WIDTH_MASK, NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR)&buf, sizeof buf, NULL); return buf; } static inline int dlclose(void *handle) { return !FreeLibrary(handle); } #endif
Switch to __cdecl till we get --kill-at to work
Switch to __cdecl till we get --kill-at to work With this build, 32-bit windows DLL loads and checks out, but we really want to use __stdcall for the DLL entry points.
C
mit
kulp/tenyr,kulp/tenyr,kulp/tenyr
7752089ccdc6fd6c25c0af25275752cf2317eb0b
common.h
common.h
#ifndef _COMMON_H #define _COMMON_H #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #ifdef _LINUX #include <bsd/string.h> #endif #include <libxml/parser.h> #include <libxml/tree.h> #include <libxml/xmlsave.h> #include <libxml/encoding.h> #include <libxml/xmlstring.h> #include <openssl/bio.h> #include <openssl/evp.h> #ifndef _READLINE #include <histedit.h> #else #include <readline/readline.h> #include <readline/history.h> #endif #define NAME "kc" #define VERSION "2.2.0" #define USAGE "[-k database file] [-r] [-p password file] [-m cipher mode] [-b] [-v] [-h]" #define PASSWORD_MAXLEN 64 enum { KC_GENERATE_IV = 1, KC_GENERATE_SALT = 1 << 1, KC_GENERATE_KEY = 1 << 2 }; #ifndef _READLINE const char *el_prompt_null(void); #endif const char *prompt_str(void); int malloc_check(void *); void version(void); void quit(int); #endif
#ifndef _COMMON_H #define _COMMON_H #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #ifdef _LINUX #include <bsd/string.h> #endif #include <libxml/parser.h> #include <libxml/tree.h> #include <libxml/xmlsave.h> #include <libxml/encoding.h> #include <libxml/xmlstring.h> #include <openssl/bio.h> #include <openssl/evp.h> #ifndef _READLINE #include <histedit.h> #else #include <readline/readline.h> #include <readline/history.h> #endif #define NAME "kc" #define VERSION "2.2.0rc2" #define USAGE "[-k database file] [-r] [-p password file] [-m cipher mode] [-b] [-v] [-h]" #define PASSWORD_MAXLEN 64 enum { KC_GENERATE_IV = 1, KC_GENERATE_SALT = 1 << 1, KC_GENERATE_KEY = 1 << 2 }; #ifndef _READLINE const char *el_prompt_null(void); #endif const char *prompt_str(void); int malloc_check(void *); void version(void); void quit(int); #endif
Call this version what it is. Missed in earlier.
Call this version what it is. Missed in earlier.
C
bsd-2-clause
levaidaniel/kc,levaidaniel/kc,levaidaniel/kc
c3767e9e67b7cf8d3b1c562ba5d260a42baabf1d
config.h
config.h
#ifndef PICAM_CONFIG_H #define PICAM_CONFIG_H #if defined(__cplusplus) extern "C" { #endif // Even if we specify 30 FPS, Raspberry Pi Camera provides slighly lower FPS. #define TARGET_FPS 30 #define GOP_SIZE TARGET_FPS #define H264_BIT_RATE 3000 * 1000 // 3 Mbps // 1600x900 is the upper limit if you don't use tunnel from camera to video_encode. // 720p (1280x720) is good enough for most cases. #define WIDTH 1280 #define HEIGHT 720 // Choose the value that results in non-repeating decimal when divided by 90000. // e.g. 48000 and 32000 are fine, but 44100 and 22050 are bad. #define AUDIO_SAMPLE_RATE 48000 #define AAC_BIT_RATE 40000 // 40 kbps // Set this value to 1 if you want to produce audio-only stream for debugging. #define AUDIO_ONLY 0 #if defined(__cplusplus) } #endif #endif
#ifndef PICAM_CONFIG_H #define PICAM_CONFIG_H #if defined(__cplusplus) extern "C" { #endif // 1600x900 is the upper limit if you don't use tunnel from camera to video_encode. // 720p (1280x720) is good enough for most cases. #define WIDTH 1280 #define HEIGHT 720 // Even if we specify 30 FPS, Raspberry Pi Camera provides slighly lower FPS. #define TARGET_FPS 30 // Distance between two key frames #define GOP_SIZE TARGET_FPS #define H264_BIT_RATE 2000 * 1000 // 2 Mbps // Choose the value that results in non-repeating decimal when divided by 90000. // e.g. 48000 and 32000 are fine, but 44100 and 22050 are bad. #define AUDIO_SAMPLE_RATE 48000 #define AAC_BIT_RATE 40000 // 40 Kbps // Set this value to 1 if you want to produce audio-only stream for debugging. #define AUDIO_ONLY 0 #if defined(__cplusplus) } #endif #endif
Change video bitrate to 2 Mbps
Change video bitrate to 2 Mbps
C
lgpl-2.1
iizukanao/picam,Rutong/picam,thagenbeek/picam,thagenbeek/picam,iizukanao/picam,iizukanao/picam,thagenbeek/picam,Rutong/picam
a07ddde4fa630539f5bd13d22485dd4715b067e1
argv.h
argv.h
/* * Copyright (c) 2014, 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 <stddef.h> size_t argv_count(const char* const* argv); const char** argv_concat(const char* const* argv1, ...); const char** argv_concat_deepcopy(const char* const* argv1, ...); extern const char* const empty_argv[];
/* * Copyright (c) 2014, 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 <stddef.h> size_t argv_count(const char* const* argv); const char** argv_concat(const char* const* argv1, ...); const char** argv_concat_deepcopy(const char* const* argv1, ...); extern const char* const empty_argv[]; #define ARGV(...) ((const char*[]){__VA_ARGS__ , NULL}) #define ARGV_CONCAT(...) argv_concat(__VA_ARGS__ , NULL)
Add ARGV and ARGV_CONCAT macros
Add ARGV and ARGV_CONCAT macros
C
bsd-3-clause
JuudeDemos/fb-adb,JuudeDemos/fb-adb,tcmulcahy/fb-adb,JuudeDemos/fb-adb,0359xiaodong/fb-adb,tcmulcahy/fb-adb,biddyweb/fb-adb,biddyweb/fb-adb,tcmulcahy/fb-adb,biddyweb/fb-adb,0359xiaodong/fb-adb,0359xiaodong/fb-adb
6ffac22050217acb02c85c9f199c2bb18131b484
main.c
main.c
// Copyright 2016, Jeffrey E. Bedard #include "xstatus.h" #include "config.h" #include <stdio.h> #include <stdlib.h> #include <unistd.h> static const char * helptext = "DESCRIPTION: Simple X toolbar for minimalistic" " window managers.\n" "USAGE: xstatus [-d DELAY][-f FILE][-h]\n" "\t-d DELAY Set delay between status updates," " in seconds.\n" "\t-f FILE Set FILE to be continuously polled and" " displayed.\n" "\t-h Print this usage information. \n" "Copyright 2016, Jeffrey E. Bedard <jefbed@gmail.com>\n" "Project page: https://github.com/jefbed/xstatus\n"; int main(int argc, char ** argv) { char *filename=DEFAULTF; uint8_t delay=1; int opt; while((opt = getopt(argc, argv, "d:f:h")) != -1) { switch(opt) { case 'd': delay=atoi(optarg); break; case 'f': filename=optarg; break; case 'h': default: fprintf(stdout, "%s", helptext); exit(0); } } run_xstatus(filename, delay); }
// Copyright 2016, Jeffrey E. Bedard #include "xstatus.h" #include "config.h" #include <stdio.h> #include <stdlib.h> #include <unistd.h> static const char helptext[] = "DESCRIPTION: Simple X toolbar for minimalistic" " window managers.\n" "USAGE: xstatus [-d DELAY][-f FILE][-h]\n" "\t-d DELAY Set delay between status updates," " in seconds.\n" "\t-f FILE Set FILE to be continuously polled and" " displayed.\n" "\t-h Print this usage information. \n" "Copyright 2016, Jeffrey E. Bedard <jefbed@gmail.com>\n" "Project page: https://github.com/jefbed/xstatus\n"; int main(int argc, char ** argv) { char *filename=DEFAULTF; uint8_t delay=1; int opt; while((opt = getopt(argc, argv, "d:f:h")) != -1) { switch(opt) { case 'd': delay=atoi(optarg); break; case 'f': filename=optarg; break; case 'h': default: write(2, helptext, sizeof(helptext)); exit(0); } } run_xstatus(filename, delay); }
Use write(2) to display helptext.
Use write(2) to display helptext.
C
mit
jefbed/xstatus,jefbed/xstatus,jefbed/xstatus,jefbed/xstatus
f9e0b90cd8c66238a9e267fd78b95d0146b89064
SmartDeviceLink/SDLMacros.h
SmartDeviceLink/SDLMacros.h
// // SDLMacros.h // SmartDeviceLink-iOS // // Created by Muller, Alexander (A.) on 10/17/16. // Copyright © 2016 smartdevicelink. All rights reserved. // #ifndef SDLMacros_h #define SDLMacros_h // Resolves issue of pre-xcode 8 versions due to NS_STRING_ENUM unavailability. #ifndef SDL_SWIFT_ENUM #if __has_attribute(NS_STRING_ENUM) #define SDL_SWIFT_ENUM NS_STRING_ENUM #else #define SDL_SWIFT_ENUM #endif #endif #endif /* SDLMacros_h */
// // SDLMacros.h // SmartDeviceLink-iOS // // Created by Muller, Alexander (A.) on 10/17/16. // Copyright © 2016 smartdevicelink. All rights reserved. // #ifndef SDLMacros_h #define SDLMacros_h // Resolves issue of pre-xcode 8 versions due to NS_STRING_ENUM unavailability. #ifndef SDL_SWIFT_ENUM #if __has_attribute(swift_wrapper) #define SDL_SWIFT_ENUM NS_STRING_ENUM #else #define SDL_SWIFT_ENUM #endif #endif #endif /* SDLMacros_h */
Revert "Changed macro to look specifically for NS_STRING_ENUM"
Revert "Changed macro to look specifically for NS_STRING_ENUM" This reverts commit de01a9f7b3ed63f683604d3595568bacf5f54a5e.
C
bsd-3-clause
FordDev/sdl_ios,FordDev/sdl_ios,kshala-ford/sdl_ios,smartdevicelink/sdl_ios,smartdevicelink/sdl_ios,APCVSRepo/sdl_ios,kshala-ford/sdl_ios,smartdevicelink/sdl_ios,APCVSRepo/sdl_ios,kshala-ford/sdl_ios,smartdevicelink/sdl_ios,kshala-ford/sdl_ios,APCVSRepo/sdl_ios,APCVSRepo/sdl_ios,smartdevicelink/sdl_ios,FordDev/sdl_ios,FordDev/sdl_ios,kshala-ford/sdl_ios,APCVSRepo/sdl_ios,FordDev/sdl_ios
d4aa975d6504cf9c0653775cb9bee4976db48f36
src/mmu.h
src/mmu.h
#pragma once #include "address.h" #include "options.h" #include "cartridge/cartridge.h" #include <vector> #include <memory> class Video; class CPU; class Serial; class Input; class Timer; class MMU { public: MMU(std::shared_ptr<Cartridge> inCartridge, CPU& inCPU, Video& inVideo, Input& input, Serial& serial, Timer& timer, Options& options); auto read(const Address& address) const -> u8; void write(const Address& address, u8 byte); private: auto boot_rom_active() const -> bool; auto read_io(const Address& address) const -> u8; void write_io(const Address& address, u8 byte); auto memory_read(const Address& address) const -> u8; void memory_write(const Address& address, u8 byte); void dma_transfer(const u8 byte); std::shared_ptr<Cartridge> cartridge; CPU& cpu; Video& video; Input& input; Serial& serial; Timer& timer; Options& options; std::vector<u8> memory; friend class Debugger; };
#pragma once #include "address.h" #include "options.h" #include "cartridge/cartridge.h" #include <vector> #include <memory> class Video; class CPU; class Serial; class Input; class Timer; class MMU { public: MMU(std::shared_ptr<Cartridge> inCartridge, CPU& inCPU, Video& inVideo, Input& input, Serial& serial, Timer& timer, Options& options); auto read(const Address& address) const -> u8; void write(const Address& address, u8 byte); private: auto boot_rom_active() const -> bool; auto read_io(const Address& address) const -> u8; void write_io(const Address& address, u8 byte); auto memory_read(const Address& address) const -> u8; void memory_write(const Address& address, u8 byte); void dma_transfer(u8 byte); std::shared_ptr<Cartridge> cartridge; CPU& cpu; Video& video; Input& input; Serial& serial; Timer& timer; Options& options; std::vector<u8> memory; friend class Debugger; };
Remove unnecessary const qualifier in function declaration
Remove unnecessary const qualifier in function declaration
C
bsd-3-clause
jgilchrist/emulator,jgilchrist/emulator,jgilchrist/emulator
3225819105d4aeea7f374963cfb9d001e3add21b
include/inform/inform.h
include/inform/inform.h
// Copyright 2016 ELIFE. All rights reserved. // Use of this source code is governed by a MIT // license that can be found in the LICENSE file. #pragma once #include <inform/dist.h> #include <inform/entropy.h> #include <inform/state_encoding.h> #include <inform/active_info.h> #include <inform/entropy_rate.h> #include <inform/transfer_entropy.h>
// Copyright 2016 ELIFE. All rights reserved. // Use of this source code is governed by a MIT // license that can be found in the LICENSE file. #pragma once #include <inform/dist.h> #include <inform/shannon.h> #include <inform/state_encoding.h> #include <inform/active_info.h> #include <inform/entropy_rate.h> #include <inform/transfer_entropy.h>
Include shannon.h instead of entropy.h
Include shannon.h instead of entropy.h
C
mit
dglmoore/Inform,ELIFE-ASU/Inform,ELIFE-ASU/Inform,dglmoore/Inform
cdf007579b40a6de97eed519fae989398f9dcf26
src/lib/RandomnessDelegate.h
src/lib/RandomnessDelegate.h
// // RandomnessDelegate.h // jdemon // // Created by Mark Larus on 3/19/13. // Copyright (c) 2013 Kenyon College. All rights reserved. // #ifndef __jdemon__RandomnessDelegate__ #define __jdemon__RandomnessDelegate__ #include <gsl/gsl_rng.h> #include <stdexcept> namespace Randomness { class Delegate { protected: Delegate() {} public: virtual bool binaryEventWithProbability(double probabilityOfHappening) = 0; virtual int randomIntegerFromInclusiveRange(int begin, int end) = 0; }; class GSLDelegate : public Delegate { gsl_rng *RNG; public: bool binaryEventWithProbability( double probabilityOfHappening ) { return gsl_rng_get(RNG) < probabilityOfHappening ? 1 : 0; }; int randomIntegerFromInclusiveRange(int begin, int end) { if (end<begin) { throw std::runtime_error("Invalid RNG range. 'begin' must be less than 'end'"); } return (int)gsl_rng_uniform_int(RNG, end-begin) + begin; } GSLDelegate(gsl_rng *r) : RNG(r) {} }; } #endif /* defined(__jdemon__RandomnessDelegate__) */
// // RandomnessDelegate.h // jdemon // // Created by Mark Larus on 3/19/13. // Copyright (c) 2013 Kenyon College. All rights reserved. // #ifndef __jdemon__RandomnessDelegate__ #define __jdemon__RandomnessDelegate__ #include <gsl/gsl_rng.h> #include <stdexcept> namespace Randomness { class Delegate { protected: Delegate() {} public: virtual bool binaryEventWithProbability(double probabilityOfHappening) = 0; virtual int randomIntegerFromInclusiveRange(int begin, int end) = 0; }; class GSLDelegate : public Delegate { gsl_rng *RNG; public: bool binaryEventWithProbability( double probabilityOfHappening ) { return gsl_rng_uniform(RNG) < probabilityOfHappening ? 1 : 0; }; int randomIntegerFromInclusiveRange(int begin, int end) { if (end<begin) { throw std::runtime_error("Invalid RNG range. 'begin' must be less than 'end'"); } return (int)gsl_rng_uniform_int(RNG, end-begin) + begin; } GSLDelegate(gsl_rng *r) : RNG(r) {} }; } #endif /* defined(__jdemon__RandomnessDelegate__) */
Use gsl_rng_uniform instead of gsl_rng_get
Use gsl_rng_uniform instead of gsl_rng_get
C
mit
marblar/demon,marblar/demon,marblar/demon,marblar/demon
ad59ece0e473ce0278ab3516e9d0a757955a5da1
test/cfi/icall/external-call.c
test/cfi/icall/external-call.c
// RUN: %clang_cfi -lm -o %t1 %s // RUN: %t1 c 1 2>&1 | FileCheck --check-prefix=CFI %s // RUN: %t1 s 2 2>&1 | FileCheck --check-prefix=CFI %s // This test uses jump tables containing PC-relative references to external // symbols, which the Mach-O object writer does not currently support. // XFAIL: darwin #include <stdlib.h> #include <stdio.h> #include <math.h> int main(int argc, char **argv) { // CFI: 1 fprintf(stderr, "1\n"); double (*fn)(double); if (argv[1][0] == 's') fn = sin; else fn = cos; fn(atof(argv[2])); // CFI: 2 fprintf(stderr, "2\n"); }
// RUN: %clang_cfi -lm -o %t1 %s // RUN: %t1 c 1 2>&1 | FileCheck --check-prefix=CFI %s // RUN: %t1 s 2 2>&1 | FileCheck --check-prefix=CFI %s // This test uses jump tables containing PC-relative references to external // symbols, which the Mach-O object writer does not currently support. // The test passes on i386 Darwin and fails on x86_64, hence unsupported instead of xfail. // UNSUPPORTED: darwin #include <stdlib.h> #include <stdio.h> #include <math.h> int main(int argc, char **argv) { // CFI: 1 fprintf(stderr, "1\n"); double (*fn)(double); if (argv[1][0] == 's') fn = sin; else fn = cos; fn(atof(argv[2])); // CFI: 2 fprintf(stderr, "2\n"); }
Mark a test as unsupported on darwin.
[cfi] Mark a test as unsupported on darwin. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@315007 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
098c879ed8c055047261c5cce0567b81fecbf197
include/config/SkUserConfigManual.h
include/config/SkUserConfigManual.h
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkUserConfigManual_DEFINED #define SkUserConfigManual_DEFINED #define GR_TEST_UTILS 1 #define SK_BUILD_FOR_ANDROID_FRAMEWORK #define SK_DEFAULT_FONT_CACHE_LIMIT (768 * 1024) #define SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE (512 * 1024) #define SK_USE_FREETYPE_EMBOLDEN // Disable these Ganesh features #define SK_DISABLE_REDUCE_OPLIST_SPLITTING // Check error is expensive. HWUI historically also doesn't check its allocations #define GR_GL_CHECK_ALLOC_WITH_GET_ERROR 0 // Legacy flags #define SK_SUPPORT_DEPRECATED_CLIPOPS // Staging flags #define SK_LEGACY_PATH_ARCTO_ENDPOINT // Needed until we fix https://bug.skia.org/2440 #define SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG #define SK_SUPPORT_LEGACY_EMBOSSMASKFILTER #define SK_SUPPORT_LEGACY_AA_CHOICE #define SK_SUPPORT_LEGACY_AAA_CHOICE #define SK_DISABLE_DAA // skbug.com/6886 #endif // SkUserConfigManual_DEFINED
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkUserConfigManual_DEFINED #define SkUserConfigManual_DEFINED #define GR_TEST_UTILS 1 #define SK_BUILD_FOR_ANDROID_FRAMEWORK #define SK_DEFAULT_FONT_CACHE_LIMIT (768 * 1024) #define SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE (512 * 1024) #define SK_USE_FREETYPE_EMBOLDEN // Disable these Ganesh features #define SK_DISABLE_REDUCE_OPLIST_SPLITTING // Check error is expensive. HWUI historically also doesn't check its allocations #define GR_GL_CHECK_ALLOC_WITH_GET_ERROR 0 // Legacy flags #define SK_SUPPORT_DEPRECATED_CLIPOPS // Staging flags #define SK_LEGACY_PATH_ARCTO_ENDPOINT // Needed until we fix https://bug.skia.org/2440 #define SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG #define SK_SUPPORT_LEGACY_EMBOSSMASKFILTER #define SK_SUPPORT_LEGACY_AA_CHOICE #define SK_SUPPORT_LEGACY_AAA_CHOICE #define SK_SUPPORT_LEGACY_GETBLENDMODE #define SK_SUPPORT_LEGACY_SETFILTERQUALITY #define SK_DISABLE_DAA // skbug.com/6886 #endif // SkUserConfigManual_DEFINED
Add flags to stage Skia API changes
Add flags to stage Skia API changes Test: make Bug: 178700363 Change-Id: I5d214f8fd69f7419f8b98f61a6e2f26f08587ff7
C
bsd-3-clause
aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia
a55236affb0c47b07533db1a13b094b0b567606c
include/config/SkUserConfigManual.h
include/config/SkUserConfigManual.h
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkUserConfigManual_DEFINED #define SkUserConfigManual_DEFINED #define GR_TEST_UTILS 1 #define SK_BUILD_FOR_ANDROID_FRAMEWORK #define SK_DEFAULT_FONT_CACHE_LIMIT (768 * 1024) #define SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE (512 * 1024) #define SK_USE_FREETYPE_EMBOLDEN // Disable these Ganesh features #define SK_DISABLE_REDUCE_OPLIST_SPLITTING // Check error is expensive. HWUI historically also doesn't check its allocations #define GR_GL_CHECK_ALLOC_WITH_GET_ERROR 0 // Legacy flags #define SK_IGNORE_GPU_DITHER #define SK_SUPPORT_DEPRECATED_CLIPOPS // Staging flags #define SK_LEGACY_PATH_ARCTO_ENDPOINT // Needed until we fix https://bug.skia.org/2440 #define SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG #define SK_SUPPORT_LEGACY_EMBOSSMASKFILTER #define SK_SUPPORT_LEGACY_AA_CHOICE #define SK_SUPPORT_LEGACY_AAA_CHOICE #define SK_DISABLE_DAA // skbug.com/6886 #endif // SkUserConfigManual_DEFINED
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkUserConfigManual_DEFINED #define SkUserConfigManual_DEFINED #define GR_TEST_UTILS 1 #define SK_BUILD_FOR_ANDROID_FRAMEWORK #define SK_DEFAULT_FONT_CACHE_LIMIT (768 * 1024) #define SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE (512 * 1024) #define SK_USE_FREETYPE_EMBOLDEN // Disable these Ganesh features #define SK_DISABLE_REDUCE_OPLIST_SPLITTING // Check error is expensive. HWUI historically also doesn't check its allocations #define GR_GL_CHECK_ALLOC_WITH_GET_ERROR 0 // Legacy flags #define SK_IGNORE_GPU_DITHER #define SK_SUPPORT_DEPRECATED_CLIPOPS // Staging flags #define SK_LEGACY_PATH_ARCTO_ENDPOINT #define SK_SUPPORT_LEGACY_PAINT_QUALITY_APIS // Needed until we fix https://bug.skia.org/2440 #define SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG #define SK_SUPPORT_LEGACY_EMBOSSMASKFILTER #define SK_SUPPORT_LEGACY_AA_CHOICE #define SK_SUPPORT_LEGACY_AAA_CHOICE #define SK_DISABLE_DAA // skbug.com/6886 #endif // SkUserConfigManual_DEFINED
Add flag to stage api change
Add flag to stage api change Related skia cl: https://skia-review.googlesource.com/c/skia/+/358736 Test: make Change-Id: Ic02219b27117280addfd083481a1ae2440584d65
C
bsd-3-clause
aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia
20abb0f77e5ddbf3481d9bd4e9335d7a32fcfc40
lib/GPIOlib.h
lib/GPIOlib.h
#ifndef GPIOLIB_H #define GPIOLIB_H #define FORWARD 1 #define BACKWARD 0 namespace GPIO { int init(); //direction is either FORWARD or BACKWARD. speed can be an integer ranging from 0 to 100. int controlLeft(int direction,int speed); int controlRight(int direction,int speed); int stopLeft(); int stopRight(); int resetCounter(); void getCounter(int *countLeft,int *countRight); //angle is available in the range of -90 to 90. int turnTo(int angle); void delay(int milliseconds); } #endif
#ifndef GPIOLIB_H #define GPIOLIB_H #define FORWARD 1 #define BACKWARD 0 namespace GPIO { int init(); int controlLeft(int direction,int speed); int controlRight(int direction,int speed); int stopLeft(); int stopRight(); int resetCounter(); void getCounter(int *countLeft,int *countRight); int turnTo(int angle); void delay(int milliseconds); } #endif
Remove texts for unserstanding to Wiki pages
Remove texts for unserstanding to Wiki pages
C
mit
miaoxw/EmbeddedSystemNJU2017-Demo
bcb8a9fa53da3a99f9ee035e7c5407dd61853d6f
common/c_cpp/src/c/windows/wombat/wUuid.h
common/c_cpp/src/c/windows/wombat/wUuid.h
/* $Id: wUuid.h,v 1.1.2.2 2012/03/20 11:15:17 emmapollock Exp $ * * OpenMAMA: The open middleware agnostic messaging API * Copyright (C) 2011 NYSE Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed 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 this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301 USA */ #ifndef WUUID_H__ #define WUUID_H__ #include "wombat/port.h" typedef int wUuid; COMMONExpDLL void wUuid_generate_time (wUuid myUuid); COMMONExpDLL void wUuid_unparse (wUuid myUuid, char* out); #endif /* WUUID_H__ */
/* $Id: wUuid.h,v 1.1.2.2 2012/03/20 11:15:17 emmapollock Exp $ * * OpenMAMA: The open middleware agnostic messaging API * Copyright (C) 2011 NYSE Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed 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 this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301 USA */ #ifndef WUUID_H__ #define WUUID_H__ #include "wombat/port.h" typedef char* wUuid; COMMONExpDLL void wUuid_generate_time (wUuid myUuid); COMMONExpDLL void wUuid_unparse (wUuid myUuid, char* out); #endif /* WUUID_H__ */
Change uuid to char* from int for Windows
[common] Change uuid to char* from int for Windows
C
lgpl-2.1
MattMulhern/OpenMAMA,cloudsmith-io/openmama,dmaguire/OpenMAMA,dmaguire/OpenMAMA,dmaguire/OpenMAMA,vulcanft/openmama,fquinner/OpenMAMA,fquinner/OpenMAMA,jacobraj/MAMA,dpauls/OpenMAMA,dmaguire/OpenMAMA,philippreston/OpenMAMA,dmaguire/OpenMAMA,philippreston/OpenMAMA,philippreston/OpenMAMA,jacobraj/MAMA,cloudsmith-io/openmama,cloudsmith-io/openmama,fquinner/OpenMAMA,jacobraj/MAMA,MattMulhern/OpenMAMA,dmagOM/OpenMAMA-dynamic,kuangtu/OpenMAMA,MattMulhern/OpenMamaCassandra,MattMulhern/OpenMamaCassandra,dpauls/OpenMAMA,dmaguire/OpenMAMA,philippreston/OpenMAMA,dmagOM/OpenMAMA-dynamic,MattMulhern/OpenMAMA,dpauls/OpenMAMA,dmaguire/OpenMAMA,vulcanft/openmama,MattMulhern/OpenMAMA,kuangtu/OpenMAMA,kuangtu/OpenMAMA,MattMulhern/OpenMamaCassandra,dpauls/OpenMAMA,cloudsmith-io/openmama,vulcanft/openmama,philippreston/OpenMAMA,MattMulhern/OpenMAMA,cloudsmith-io/openmama,vulcanft/openmama,MattMulhern/OpenMamaCassandra,kuangtu/OpenMAMA,dpauls/OpenMAMA,dmagOM/OpenMAMA-dynamic,dmagOM/OpenMAMA-dynamic,dmagOM/OpenMAMA-dynamic,kuangtu/OpenMAMA,fquinner/OpenMAMA,cloudsmith-io/openmama,vulcanft/openmama,fquinner/OpenMAMA,dmagOM/OpenMAMA-dynamic,MattMulhern/OpenMamaCassandra,fquinner/OpenMAMA,MattMulhern/OpenMAMA,vulcanft/openmama,dpauls/OpenMAMA,fquinner/OpenMAMA,jacobraj/MAMA,jacobraj/MAMA,jacobraj/MAMA,vulcanft/openmama,cloudsmith-io/openmama,MattMulhern/OpenMAMA,MattMulhern/OpenMamaCassandra,kuangtu/OpenMAMA,kuangtu/OpenMAMA,dpauls/OpenMAMA,philippreston/OpenMAMA,philippreston/OpenMAMA
c33df657a16fbc23df2b6ec1c38060060cd3608a
include/config/SkUserConfigManual.h
include/config/SkUserConfigManual.h
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkUserConfigManual_DEFINED #define SkUserConfigManual_DEFINED #define GR_TEST_UTILS 1 #define SK_BUILD_FOR_ANDROID_FRAMEWORK #define SK_DEFAULT_FONT_CACHE_LIMIT (768 * 1024) #define SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE (512 * 1024) #define SK_USE_FREETYPE_EMBOLDEN // Disable these Ganesh features #define SK_DISABLE_REDUCE_OPLIST_SPLITTING // Check error is expensive. HWUI historically also doesn't check its allocations #define GR_GL_CHECK_ALLOC_WITH_GET_ERROR 0 // Legacy flags #define SK_IGNORE_GPU_DITHER #define SK_SUPPORT_DEPRECATED_CLIPOPS // Needed until we fix https://bug.skia.org/2440 #define SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG #define SK_SUPPORT_LEGACY_EMBOSSMASKFILTER #define SK_SUPPORT_LEGACY_AA_CHOICE #define SK_SUPPORT_LEGACY_AAA_CHOICE #define SK_DISABLE_DAA // skbug.com/6886 #endif // SkUserConfigManual_DEFINED
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkUserConfigManual_DEFINED #define SkUserConfigManual_DEFINED #define GR_TEST_UTILS 1 #define SK_BUILD_FOR_ANDROID_FRAMEWORK #define SK_DEFAULT_FONT_CACHE_LIMIT (768 * 1024) #define SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE (512 * 1024) #define SK_USE_FREETYPE_EMBOLDEN // Disable these Ganesh features #define SK_DISABLE_REDUCE_OPLIST_SPLITTING // Check error is expensive. HWUI historically also doesn't check its allocations #define GR_GL_CHECK_ALLOC_WITH_GET_ERROR 0 // Legacy flags #define SK_IGNORE_GPU_DITHER #define SK_SUPPORT_DEPRECATED_CLIPOPS // Needed until we fix https://bug.skia.org/2440 #define SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG #define SK_SUPPORT_LEGACY_EMBOSSMASKFILTER #define SK_SUPPORT_LEGACY_AA_CHOICE #define SK_SUPPORT_LEGACY_AAA_CHOICE #define SK_DISABLE_DAA // skbug.com/6886 // b/145995037 #define SK_LEGACY_WEBP_LOOP_COUNT #endif // SkUserConfigManual_DEFINED
Maintain the legacy behavior for WebP loop count
Maintain the legacy behavior for WebP loop count Bug: 145995037 Test: No change in behavior; no new tests https://skia-review.googlesource.com/c/skia/+/259161 updates Skia to report the proper number of repetitions for a WebP file. This build flag ensures that we stick with the existing behavior until we're ready to switch. Change-Id: Ib70615e9d7655264badcd5c63a54d2813c86bc32
C
bsd-3-clause
aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia
24ccdf6f2a0802a286416133d31364d42d18d720
slave/sregisters.h
slave/sregisters.h
#define _SLAVEREGISTERS #include <inttypes.h> //Functions needed from other modules extern void MODBUSBuildException( uint8_t, uint8_t ); //Functions for parsing requests extern void MODBUSParseRequest03( union MODBUSParser *Parser ); extern void MODBUSParseRequest06( union MODBUSParser *Parser ); extern void MODBUSParseRequest16( union MODBUSParser *Parser );
#define _SLAVEREGISTERS #include <inttypes.h> //Functions needed from other modules extern void MODBUSBuildException( uint8_t, uint8_t ); //Functions for parsing requests extern void MODBUSParseRequest03( union MODBUSParser *Parser ); extern void MODBUSParseRequest06( union MODBUSParser *Parser ); extern void MODBUSParseRequest16( union MODBUSParser *Parser ); //Functions for building responses extern void MODBUSBuildResponse03( union MODBUSParser *Parser ); extern void MODBUSBuildResponse06( union MODBUSParser *Parser ); extern void MODBUSBuildResponse16( union MODBUSParser *Parser );
Add prototypes of response-building functions
Add prototypes of response-building functions
C
mit
Jacajack/modlib
a57adb1ba137c47d7ebaef9f64e265fcf653debe
include/config.h
include/config.h
/************************************************* * Configuration Handling Header File * * (C) 1999-2007 Jack Lloyd * *************************************************/ #ifndef BOTAN_POLICY_CONF_H__ #define BOTAN_POLICY_CONF_H__ #include <botan/mutex.h> #include <string> #include <vector> #include <map> namespace Botan { /************************************************* * Library Configuration Settings * *************************************************/ class BOTAN_DLL Config { public: Config(); ~Config(); void load_defaults(); std::string get(const std::string&, const std::string&) const; bool is_set(const std::string&, const std::string&) const; void set(const std::string&, const std::string&, const std::string&, bool = true); std::string option(const std::string&) const; u32bit option_as_time(const std::string&) const; void set_option(const std::string, const std::string&); void add_alias(const std::string&, const std::string&); std::string deref_alias(const std::string&) const; void load_inifile(const std::string&); private: Config(const Config&) {} Config& operator=(const Config&) { return (*this); } std::map<std::string, std::string> settings; Mutex* mutex; }; /************************************************* * Hook for the global config * *************************************************/ BOTAN_DLL Config& global_config(); } #endif
/************************************************* * Configuration Handling Header File * * (C) 1999-2008 Jack Lloyd * *************************************************/ #ifndef BOTAN_POLICY_CONF_H__ #define BOTAN_POLICY_CONF_H__ #include <botan/mutex.h> #include <string> #include <map> namespace Botan { /************************************************* * Library Configuration Settings * *************************************************/ class BOTAN_DLL Config { public: Config(); ~Config(); void load_defaults(); std::string get(const std::string&, const std::string&) const; bool is_set(const std::string&, const std::string&) const; void set(const std::string&, const std::string&, const std::string&, bool = true); std::string option(const std::string&) const; u32bit option_as_time(const std::string&) const; void set_option(const std::string, const std::string&); void add_alias(const std::string&, const std::string&); std::string deref_alias(const std::string&) const; void load_inifile(const std::string&); private: Config(const Config&) {} Config& operator=(const Config&) { return (*this); } std::map<std::string, std::string> settings; Mutex* mutex; }; /************************************************* * Hook for the global config * *************************************************/ BOTAN_DLL Config& global_config(); } #endif
Remove unused include of <vector>
Remove unused include of <vector>
C
bsd-2-clause
randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,webmaster128/botan,webmaster128/botan,randombit/botan,webmaster128/botan
1ab12bed7f1c38c280876197408bd32e289ac41f
modlib.c
modlib.c
#include "modlib.h" uint16_t MODBUSSwapEndian( uint16_t Data ) { //Change big-endian to little-endian and vice versa unsigned char Swap; //Create 2 bytes long union union Conversion { uint16_t Data; unsigned char Bytes[2]; } Conversion; //Swap bytes Conversion.Data = Data; Swap = Conversion.Bytes[0]; Conversion.Bytes[0] = Conversion.Bytes[1]; Conversion.Bytes[1] = Swap; return Conversion.Data; }
#include "modlib.h" uint16_t MODBUSSwapEndian( uint16_t Data ) { //Change big-endian to little-endian and vice versa unsigned char Swap; //Create 2 bytes long union union Conversion { uint16_t Data; unsigned char Bytes[2]; } Conversion; //Swap bytes Conversion.Data = Data; Swap = Conversion.Bytes[0]; Conversion.Bytes[0] = Conversion.Bytes[1]; Conversion.Bytes[1] = Swap; return Conversion.Data; } uint16_t CRC16( uint16_t *Data, uint16_t Length ) { //Calculate CRC16 checksum using given data and length uint16_t CRC = 0xFFFF; uint16_t i; unsigned char j; for ( i = 0; i < Length; i++ ) { CRC ^= Data[i]; //XOR current data byte with CRC value for ( j = 8; j != 0; j-- ) { //For each bit //Is least-significant-bit is set? if ( ( CRC & 0x0001 ) != 0 ) { CRC >>= 1; //Shift to right and xor CRC ^= 0xA001; } else // Else LSB is not set CRC >>= 1; } } return CRC; }
Add CRC16 checksum calculation function
Add CRC16 checksum calculation function
C
mit
Jacajack/modlib
d4ea2ac1a1bbf61ed190ac9b6e78d6be4ce687f6
src/utils.h
src/utils.h
#ifndef _INC_UTILS_H #define _INC_UTILS_H #include "basetypes.h" void *advancePtr(void *vp, SizeType len) { return (void*)((unsigned char *)(vp) + len); } const void *advancePtr(const void *vp, SizeType len) { return (void*)((unsigned char *)(vp) + len); } #endif//_INC_UTILS_H
#ifndef _INC_UTILS_H #define _INC_UTILS_H #include "basetypes.h" inline void *advancePtr(void *vp, SizeType len) { return (void*)((unsigned char *)(vp) + len); } inline const void *advancePtr(const void *vp, SizeType len) { return (void*)((unsigned char *)(vp) + len); } #endif//_INC_UTILS_H
Fix header methods to be inline
Fix header methods to be inline
C
mit
aroxby/cpu,aroxby/cpu
0b78dce3a2bd416375327b1e4436883da673009e
test2/type_parsing_printing/typeof_skip.c
test2/type_parsing_printing/typeof_skip.c
// RUN: %ucc -Xprint %s 2>/dev/null | grep 'typeof' | %output_check -w "/typeof\(int \*\) ip.*/" "/typeof\(int \*\) \*a1.*/" "/typeof\(int \*\) a2\[2\].*/" "/typeof\(int \*\) a3\(\).*/" "typeof(expr: identifier) (aka 'long *') xyz()" long *x; __typeof(int *) ip; __typeof(int *) *a1; __typeof(int *) a2[2]; __typeof(int *) a3(); __typeof(x) xyz() { }
// RUN: %ucc -Xprint %s 2>/dev/null | grep 'typeof' | %output_check -w "/typeof\(int \*\) ip.*/" "/typeof\(int \*\) \*a1.*/" "/typeof\(int \*\) a2\[2\].*/" "/typeof\(int \*\) a3\(\).*/" "typeof(expr: identifier) (aka 'long *') abc()" "typeof(expr: identifier) (aka 'long *') xyz()" long *x; __typeof(int *) ip; __typeof(int *) *a1; __typeof(int *) a2[2]; __typeof(int *) a3(); auto abc() -> __typeof(x) { } __typeof(x) xyz() { }
Add trailing return type to type printing test
Add trailing return type to type printing test
C
mit
8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler
d7dcfd3383fe903697b6aac817df17426de2f5a7
cbits/hashByteString.c
cbits/hashByteString.c
/* Bernstein's hash */ int djb_hash(const char* str, int len, int hash) { while (len--) { hash = (hash * 33) ^ *str++; } return hash; }
/* Bernstein's hash */ int djb_hash(const unsigned char* str, int len, int hash) { while (len--) { hash = (hash * 33) ^ *str++; } return hash; }
Fix the handling of signedness, which caused a nasty bug
Fix the handling of signedness, which caused a nasty bug
C
bsd-3-clause
ekmett/hashable
fa52b947edea97d14f48e656125c7d640d748e85
cbits/hashByteString.c
cbits/hashByteString.c
int hashByteString(const char* str, int len) { int hash = 0; while (len--) { hash = (hash * 33) ^ *str++; } return hash; }
/* Bernstein's hash */ int hashByteString(const char* str, int len) { int hash = 0; while (len--) { hash = (hash * 33) ^ *str++; } return hash; }
Document where our hash function comes from
Document where our hash function comes from
C
bsd-3-clause
ekmett/hashable
e7a73040132035225ee11a735afb54c3590f7648
lib/journal.h
lib/journal.h
/* libcopy -- journal support * (c) 2011 Michał Górny * 2-clause BSD-licensed */ #pragma once #ifndef _ATOMIC_INSTALL_JOURNAL_H #define _ATOMIC_INSTALL_JOURNAL_H typedef struct ai_journal *journal_t; int ai_journal_create(const char *journal_path, const char *location); int ai_journal_open(const char *journal_path, journal_t *ret); int ai_journal_close(journal_t j); const char *ai_journal_get_files(journal_t j); #endif /*_ATOMIC_INSTALL_COPY_H*/
/* libcopy -- journal support * (c) 2011 Michał Górny * 2-clause BSD-licensed */ #pragma once #ifndef _ATOMIC_INSTALL_JOURNAL_H #define _ATOMIC_INSTALL_JOURNAL_H typedef struct ai_journal *journal_t; int ai_journal_create(const char *journal_path, const char *location); int ai_journal_open(const char *journal_path, journal_t *ret); int ai_journal_close(journal_t j); const char *ai_journal_get_files(journal_t j); #endif /*_ATOMIC_INSTALL_JOURNAL_H*/
Fix comment in header guard.
Fix comment in header guard.
C
bsd-2-clause
mgorny/atomic-install