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
6346f9be0ecd911c67e523d8eb765bf84cd1dea6
src/common.h
src/common.h
// Copyright (c) 2012-2013, the scalloc Project Authors. All rights reserved. // Please see the AUTHORS file for details. Use of this source code is governed // by a BSD license that can be found in the LICENSE file. #ifndef SCALLOC_COMMON_H_ #define SCALLOC_COMMON_H_ #define UNLIKELY(x) __builtin_expect((x), 0) ...
// Copyright (c) 2012-2013, the scalloc Project Authors. All rights reserved. // Please see the AUTHORS file for details. Use of this source code is governed // by a BSD license that can be found in the LICENSE file. #ifndef SCALLOC_COMMON_H_ #define SCALLOC_COMMON_H_ #define UNLIKELY(x) __builtin_expect((x), 0) ...
Add CompilerBarrier() and MemoryBarrier() functions.
Add CompilerBarrier() and MemoryBarrier() functions. Signed-off-by: Michael Lippautz <0d543840881a2c189b4f7636b15eebd6a8f60ace@gmail.com>
C
bsd-2-clause
cksystemsgroup/scalloc,cksystemsgroup/scalloc,cksystemsgroup/scalloc
9fb5888c9c8de8c942f5524c3857f8186c2edc6d
input.c
input.c
#include "input.h" #include <ctype.h> #include <stdio.h> #include <string.h> void read_line(char *p) { if (fgets(p, MAX_SIZE, stdin) == NULL){ p[0] = '\0'; return; } remove_space(p); } int is_exit(const char* p) { const char* exit_words[] = { "exit", "quit", "b...
#include "input.h" #include <ctype.h> #include <stdio.h> #include <string.h> void read_line(char *p) { if (fgets(p, MAX_SIZE, stdin) == NULL){ p[0] = '\0'; return; } remove_space(p); } int is_exit(const char* p) { const char* exit_words[] = { "", "exit", "quit"...
Add empty string to exit words
Add empty string to exit words
C
mit
Roadagain/Calculator,Roadagain/Calculator
48f0a31143545af70b16b4ff079cc255acdf9419
alura/c/forca.c
alura/c/forca.c
#include <stdio.h> int main() { int notas[10]; notas[0] = 10; notas[2] = 9; notas[3] = 8; notas[9] = 4; printf("%d %d %d\n", notas[0], notas[2], notas[9]); }
#include <stdio.h> int main() { char palavrasecreta[20]; sprintf(palavrasecreta, "MELANCIA"); printf("%s\n", palavrasecreta); /* palavrasecreta[0] = 'M'; palavrasecreta[1] = 'E'; palavrasecreta[2] = 'L'; palavrasecreta[3] = 'A'; palavrasecreta[4] = 'N'; palavrasecreta[5] = 'C'; palavrasecreta[...
Update files, Alura, Introdução a C - Parte 2, Aula 2.2
Update files, Alura, Introdução a C - Parte 2, Aula 2.2
C
mit
fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs
a7f3d5712d54ae80ca6a2a747522f8ae65c0ed98
webkit/glue/form_data.h
webkit/glue/form_data.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_FORM_DATA_H__ #define WEBKIT_GLUE_FORM_DATA_H__ #include <vector> #include "base/string_util.h" #include "googleurl/src/gurl.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_FORM_DATA_H__ #define WEBKIT_GLUE_FORM_DATA_H__ #include <vector> #include "base/string_util.h" #include "googleurl/src/gurl.h" ...
Add a default constructor for FormData. There are too many places that create FormDatas, and we shouldn't need to initialize user_submitted for each call site.
AutoFill: Add a default constructor for FormData. There are too many places that create FormDatas, and we shouldn't need to initialize user_submitted for each call site. BUG=50423 TEST=none Review URL: http://codereview.chromium.org/3074023 git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@54641 4ff67af0-8c30-449...
C
bsd-3-clause
wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser
c840bf5d4905d023d6495550759bc9cf08bb3aa3
test/main.c
test/main.c
#define CGLTF_IMPLEMENTATION #include "../cgltf.h" #include <stdio.h> int main(int argc, char** argv) { if (argc < 2) { printf("err\n"); return -1; } FILE* f = fopen(argv[1], "rb"); if (!f) { return -2; } fseek(f, 0, SEEK_END); long size = ftell(f); fseek(f, 0, SEEK_SET); void* buf = malloc(size...
#define CGLTF_IMPLEMENTATION #include "../cgltf.h" #include <stdio.h> int main(int argc, char** argv) { if (argc < 2) { printf("err\n"); return -1; } cgltf_options options = {0}; cgltf_data* data = NULL; cgltf_result result = cgltf_parse_file(&options, argv[1], &data); if (result == cgltf_result_succes...
Add cgltf_parse_file and cgltf_load_buffers to test program
Add cgltf_parse_file and cgltf_load_buffers to test program With this CI tests will run almost all of the code on glTF sample models - this will validate that the code that loads external buffers and parses Base64 data URIs is correct.
C
mit
jkuhlmann/cgltf,jkuhlmann/cgltf,jkuhlmann/cgltf
1c284ac5ec72c86b9ed787b3f4e1a6978c919370
lib/Target/PowerPC/PPCTargetMachine.h
lib/Target/PowerPC/PPCTargetMachine.h
//===-- PPC32TargetMachine.h - PowerPC/Darwin TargetMachine ---*- C++ -*-=// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===------------...
//===-- PPC32TargetMachine.h - PowerPC/Darwin TargetMachine ---*- C++ -*-=// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===------------...
Remove an unneeded header and forward declaration
Remove an unneeded header and forward declaration git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@15722 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,chubbymaggie/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,dslab-epfl/asap,apple/swif...
27206db97255a92a96619810727c8bb03e7907e0
Globals.h
Globals.h
/* Mace - http://www.macehq.cx Copyright 1999-2004 See the file README for more information */ #ifndef GLOBALS_H #define GLOBALS_H #ifndef _MaceTypes #define _MaceTypes typedef unsigned char U8; typedef char S8; typedef unsigned short U16; typedef signed short S16; //Note: on 64-bit machines, replace "long" wi...
/* Mace - http://www.macehq.cx Copyright 1999-2004 See the file README for more information */ #ifndef GLOBALS_H #define GLOBALS_H #ifndef _MaceTypes #define _MaceTypes typedef unsigned char U8; typedef signed char S8; typedef unsigned short U16; typedef signed short S16; //Note: on 64-bit machines, replace "l...
Fix U32 and S32 on LP64 architectures.
Fix U32 and S32 on LP64 architectures.
C
lgpl-2.1
MaddTheSane/Mace,MaddTheSane/Mace
219edae4202ef451a3d084a4678c0cf861ccff0a
testsuite/breakdancer/disable_optimize.h
testsuite/breakdancer/disable_optimize.h
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #ifndef DISABLE_OPTIMIZE_H #define DISABLE_OPTIMIZE_H 1 /* avoid wasting time trying to optimize those countless test functions */ #if defined(__clang__) /* * Works for Alk since clang-3.5. * Unfortunately it looks like Apple have their ...
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #ifndef DISABLE_OPTIMIZE_H #define DISABLE_OPTIMIZE_H 1 /* According to MB-11846 we have some misconfigured vm's unable to * compile the source code without enabling optimization. Add a workaround * for those vm's until they're fixed */ #...
Add workaround for broken builders
MB-11846: Add workaround for broken builders According to MB-11846 we have some misconfigured vm's unable to compile the source code without enabling optimization. This patch introduce a workaround to enable the optimization of the breakdancer tests until the vm's is fixed. To use the workaround define COUCHBASE_OPTIM...
C
bsd-3-clause
jimwwalker/memcached,daverigby/kv_engine,couchbase/memcached,cloudrain21/memcached-1,cloudrain21/memcached-1,daverigby/kv_engine,couchbase/memcached,cloudrain21/memcached-1,daverigby/kv_engine,cloudrain21/memcached-1,mrkwse/memcached,daverigby/memcached,daverigby/memcached,owendCB/memcached,owendCB/memcached,daverigby/...
d8462d5c45ef1ae42d19bb0ade365b8017282228
cpp/module_impl.h
cpp/module_impl.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 PPAPI_CPP_MODULE_IMPL_H_ #define PPAPI_CPP_MODULE_IMPL_H_ #include "ppapi/cpp/module.h" namespace { template <typename T> class DeviceFuncs...
// 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 PPAPI_CPP_MODULE_IMPL_H_ #define PPAPI_CPP_MODULE_IMPL_H_ #include "ppapi/cpp/module.h" namespace { template <typename T> class DeviceFuncs...
Initialize DeviceFuncs::ifuncs_ to zero in constructor
Initialize DeviceFuncs::ifuncs_ to zero in constructor
C
bsd-3-clause
humanai/ppapi,LinRaise/ppapi,Iwan12/ppapi,lio972/ppapi,macressler/ppapi,iofcas/ppapi,kaijajan/ppapi,Iwan12/ppapi,LinRaise/ppapi,thecocce/ppapi,jmnjmn/ppapi,melchi45/ppapi,johnnnylm/ppapi,melchi45/ppapi,johnnnylm/ppapi,melchi45/ppapi,Iwan12/ppapi,macressler/ppapi,Iwan12/ppapi,johnnnylm/ppapi,lio972/ppapi,kaijajan/ppapi,...
cfc80a8794b405ccc2127fe6fa52100fe5cfcdfd
wocky/wocky-namespaces.h
wocky/wocky-namespaces.h
#define WOCKY_XMPP_NS_STREAM \ (const gchar *)"http://etherx.jabber.org/streams" #define WOCKY_XMPP_NS_TLS \ (const gchar *)"urn:ietf:params:xml:ns:xmpp-tls" #define WOCKY_XMPP_NS_SASL_AUTH \ (const gchar *)"urn:ietf:params:xml:ns:xmpp-sasl"
#define WOCKY_XMPP_NS_STREAM \ (const gchar *)"http://etherx.jabber.org/streams" #define WOCKY_XMPP_NS_TLS \ (const gchar *)"urn:ietf:params:xml:ns:xmpp-tls" #define WOCKY_XMPP_NS_SASL_AUTH \ (const gchar *)"urn:ietf:params:xml:ns:xmpp-sasl" #define WOCKY_XMPP_NS_XHTML_IM \ (const gchar *)"http://jabber.org...
Add xhtml-im and w3c xhtml namespace
Add xhtml-im and w3c xhtml namespace 20070316212630-93b9a-bcdbd042585561b0f20076b5e7f5f1c41c1e2867.gz
C
lgpl-2.1
freedesktop-unofficial-mirror/wocky,noonien-d/wocky,freedesktop-unofficial-mirror/wocky,freedesktop-unofficial-mirror/wocky,noonien-d/wocky,noonien-d/wocky
e09a55881f98ea0796fe591e6e3f9b8ea0c791ac
Sources/Docs/GPDocsSync.h
Sources/Docs/GPDocsSync.h
// // Copyright (c) 2008 Google 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...
// // Copyright (c) 2008 Google 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...
Update header comment to reflect the current state of the source.
Update header comment to reflect the current state of the source. git-svn-id: c46e06cb57945f24bc44ee3ee8f795d5b6e634f5@64 c4e13eb7-e550-0410-89ee-d7df1d48aa01
C
apache-2.0
nagyistoce/precipitate,ericmckean/precipitate
42f61a65bf3d78263b54e74a70d52badbab53638
include/login.h
include/login.h
/** * The login information to access a server * * This class combines login, password and vhost * * @copyright 2014 Copernica BV */ /** * Set up namespace */ namespace AMQP { /** * Class definition */ class Login { private: /** * The username * @var string */ std::string _user...
/** * The login information to access a server * * This class combines login, password and vhost * * @copyright 2014 Copernica BV */ /** * Set up namespace */ namespace AMQP { /** * Class definition */ class Login { private: /** * The username * @var string */ std::string _user...
Copy constructor added to Login class
Copy constructor added to Login class
C
apache-2.0
fantastory/AMQP-CPP,tangkingchun/AMQP-CPP,antoniomonty/AMQP-CPP,antoniomonty/AMQP-CPP,toolking/AMQP-CPP,fantastory/AMQP-CPP,tm604/AMQP-CPP,CopernicaMarketingSoftware/AMQP-CPP,CopernicaMarketingSoftware/AMQP-CPP,tangkingchun/AMQP-CPP,tm604/AMQP-CPP,toolking/AMQP-CPP,Kojoley/AMQP-CPP,Kojoley/AMQP-CPP
6b272ab78968323483602717e140d60ad4ea93eb
core/base/inc/TVersionCheck.h
core/base/inc/TVersionCheck.h
// @(#)root/base:$Id$ // Author: Fons Rademakers 9/5/2007 /************************************************************************* * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
// @(#)root/base:$Id$ // Author: Fons Rademakers 9/5/2007 /************************************************************************* * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
Remove special cxxmodules case now that gVersionCheck is on ROOT::.
[core] Remove special cxxmodules case now that gVersionCheck is on ROOT::.
C
lgpl-2.1
olifre/root,olifre/root,root-mirror/root,olifre/root,root-mirror/root,root-mirror/root,root-mirror/root,karies/root,karies/root,karies/root,olifre/root,karies/root,karies/root,root-mirror/root,root-mirror/root,root-mirror/root,olifre/root,olifre/root,olifre/root,olifre/root,karies/root,root-mirror/root,olifre/root,kari...
78a22a1dd7608accc960623f8e59c997c75602ea
RNUnifiedContacts/RNUnifiedContacts-Bridging-Header.h
RNUnifiedContacts/RNUnifiedContacts-Bridging-Header.h
// // RNUnifiedContacts.h // RNUnifiedContacts // // Created by Joshua Pinter on 2016-03-23. // Copyright © 2016 Joshua Pinter. All rights reserved. // #ifndef RNUnifiedContacts_Bridging_Header_h #define RNUnifiedContacts_Bridging_Header_h #import <React/RCTBridgeModule.h> #endif /* RNUnifiedContacts_Bridging_He...
// // RNUnifiedContacts.h // RNUnifiedContacts // // Created by Joshua Pinter on 2016-03-23. // Copyright © 2016 Joshua Pinter. All rights reserved. // #ifndef RNUnifiedContacts_Bridging_Header_h #define RNUnifiedContacts_Bridging_Header_h #if __has_include("RCTBridgeModule.h") #import "RCTBridgeModule.h" #else #...
Support Pre 0.40 and Post 0.40 React Native.
Support Pre 0.40 and Post 0.40 React Native. Handle if else for importing `React/RCTBridgeModule.h`.
C
mit
joshuapinter/react-native-unified-contacts,joshuapinter/react-native-unified-contacts,joshuapinter/react-native-unified-contacts,joshuapinter/react-native-unified-contacts
e6f7f05225eab16f2a63fa32e5952f6c6adedc23
You-DataStore/operation.h
You-DataStore/operation.h
#pragma once #ifndef YOU_DATASTORE_OPERATION_H_ #define YOU_DATASTORE_OPERATION_H_ #include <unordered_map> #include "datastore.h" namespace You { namespace DataStore { /// A pure virtual class of operations to be put into transaction stack class IOperation { public: IOperation() = default; ~IOperation() = default...
#pragma once #ifndef YOU_DATASTORE_OPERATION_H_ #define YOU_DATASTORE_OPERATION_H_ #include <unordered_map> #include "datastore.h" namespace You { namespace DataStore { /// A pure virtual class of operations to be put into transaction stack class IOperation { public: IOperation(); virtual ~IOperation(); /// Exec...
Make IOperation destructor virtual, remove redundant default
Make IOperation destructor virtual, remove redundant default
C
mit
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main
08b2bc83dbf7db69f59cc3b7ce0a23c735eee7a6
src/untrusted/irt/irt_ppapi.h
src/untrusted/irt/irt_ppapi.h
/* * Copyright (c) 2011 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_PPAPI_H_ #define NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_PPAPI_H_ 1 #include <stddef.h> #include...
/* * Copyright (c) 2011 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_PPAPI_H_ #define NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_PPAPI_H_ 1 #include <stddef.h> #include...
Remove two unused PPAPI-related typedefs
Remove two unused PPAPI-related typedefs These typedefs are left over from an earlier iteration of the IRT interface (prior to the interface being stabilised) which was removed in r5108. BUG=none TEST=build Review URL: https://codereview.chromium.org/11016034 git-svn-id: 721b910a23eff8a86f00c8fd261a7587cddf18f8@991...
C
bsd-3-clause
sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,nacl-webkit/native_client,nacl-webkit/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client,nacl-webkit/native_client
756875db5caa3eb90a02309d3fed22dd33a10999
include/lldb/Host/HostGetOpt.h
include/lldb/Host/HostGetOpt.h
//===-- GetOpt.h ------------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===-- GetOpt.h ------------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Add newline at end of file, clang compiler warning.
Add newline at end of file, clang compiler warning. git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@201743 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb
91a0c9a9633a1d795934091fec5abd053730758c
hist/inc/TH1I.h
hist/inc/TH1I.h
// @(#)root/hist:$Name: $:$Id: TH1I.h,v 1.1 2002/05/18 11:02:49 brun Exp $ // Author: Rene Brun 08/09/2003 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. ...
// @(#)root/hist:$Name: $:$Id: TH1I.h,v 1.1 2003/09/08 12:50:23 brun Exp $ // Author: Rene Brun 08/09/2003 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. ...
Fix a typo (thanks to Robert Hatcher)
Fix a typo (thanks to Robert Hatcher) git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@10919 27541ba8-7e3a-0410-8455-c3a389f83636
C
lgpl-2.1
omazapa/root-old,arch1tect0r/root,perovic/root,nilqed/root,CristinaCristescu/root,esakellari/my_root_for_test,simonpf/root,abhinavmoudgil95/root,simonpf/root,mattkretz/root,Y--/root,tc3t/qoot,veprbl/root,0x0all/ROOT,buuck/root,sbinet/cxx-root,omazapa/root,smarinac/root,simonpf/root,bbockelm/root,beniz/root,vukasinmilos...
aebaf3931443eadaba8519dc96a25026e03eaf27
FastEasyMapping/Source/Core/Store/FEMManagedObjectStore.h
FastEasyMapping/Source/Core/Store/FEMManagedObjectStore.h
// For License please refer to LICENSE file in the root of FastEasyMapping project #import "FEMObjectStore.h" @class NSManagedObjectContext; @interface FEMManagedObjectStore : FEMObjectStore - (nonnull instancetype)initWithContext:(nonnull NSManagedObjectContext *)context NS_DESIGNATED_INITIALIZER; @property (nonat...
// For License please refer to LICENSE file in the root of FastEasyMapping project #import "FEMObjectStore.h" NS_ASSUME_NONNULL_BEGIN @class NSManagedObjectContext; @interface FEMManagedObjectStore : FEMObjectStore - (instancetype)init NS_UNAVAILABLE; - (instancetype)initWithContext:(NSManagedObjectContext *)cont...
Mark init as unavailable for ObjectStore
Mark init as unavailable for ObjectStore
C
mit
k06a/FastEasyMapping
431a554ee2e450eae7eaceaf3c5d9c055b746ef8
Pod/Classes/SEEngineProtocol.h
Pod/Classes/SEEngineProtocol.h
// // SEEngineProtocol.h // Pods // // Created by Danil Tulin on 3/14/16. // // #import <Foundation/Foundation.h> @protocol EngineProtocol <NSObject> @required - (void)feedBGRAImageData:(u_int8_t *)data width:(NSUInteger)width height:(NSUInteger)height; @property (nonatomic) float progress; @propert...
// // SEEngineProtocol.h // Pods // // Created by Danil Tulin on 3/14/16. // // #import <Foundation/Foundation.h> @protocol EngineProtocol <NSObject> @required - (void)feedBGRAImageData:(u_int8_t *)data width:(NSUInteger)width height:(NSUInteger)height; @property (nonatomic) float progress; @propert...
Add start / stop session methods
Add start / stop session methods
C
mit
tulindanil/SEUIKit
e3e83ed7cbf0a8bdca905ecacf29a57a99ebe01a
Source/Objects/GTLBatchQuery.h
Source/Objects/GTLBatchQuery.h
/* Copyright (c) 2011 Google 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...
/* Copyright (c) 2011 Google 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...
Fix comment on shouldSkipAuthorization property
Fix comment on shouldSkipAuthorization property
C
apache-2.0
creationst/google-api-objectivec-client
b18e2d7842de719b60e2902f201d745897749c4b
mt.h
mt.h
#ifndef _MATH_MT_H_ #define _MATH_MT_H_ //#if defined(_MSC_VER) && (_MSC_VER <= 1600) // sufficient #if defined(_MSC_VER) // better? typedef unsigned __int32 uint32_t; #elif defined(__linux__) || defined(__GLIBC__) || defined(__WIN32__) || defined(__APPLE__) #include <stdint.h> #elif defined(__...
#ifndef _MATH_MT_H_ #define _MATH_MT_H_ #if defined(_MSC_VER) && (_MSC_VER < 1600) // for MS Visual Studio prior to 2010 typedef unsigned __int32 uint32_t; #elif defined(__linux__) || defined(__GLIBC__) || defined(__WIN32__) || defined(_MSC_VER) || defined(__APPLE__) #include <stdint.h> #elif defined(__osf__) #include...
Include <stdint.h> for MS Visual Studio 2010 and above
Include <stdint.h> for MS Visual Studio 2010 and above
C
bsd-3-clause
amenonsen/Math-Random-MT,amenonsen/Math-Random-MT
caa860cede791d4787e773624a7627ef963fbeed
src/QGCConfig.h
src/QGCConfig.h
#ifndef QGC_CONFIGURATION_H #define QGC_CONFIGURATION_H #include <QString> /** @brief Polling interval in ms */ #define SERIAL_POLL_INTERVAL 4 /** @brief Heartbeat emission rate, in Hertz (times per second) */ #define MAVLINK_HEARTBEAT_DEFAULT_RATE 1 #define WITH_TEXT_TO_SPEECH 1 #define QGC_APPLICATION_NAME "QGrou...
#ifndef QGC_CONFIGURATION_H #define QGC_CONFIGURATION_H #include <QString> /** @brief Polling interval in ms */ #define SERIAL_POLL_INTERVAL 4 /** @brief Heartbeat emission rate, in Hertz (times per second) */ #define MAVLINK_HEARTBEAT_DEFAULT_RATE 1 #define WITH_TEXT_TO_SPEECH 1 #define QGC_APPLICATION_NAME "QGrou...
Allow version suffix from command line
Allow version suffix from command line
C
agpl-3.0
hejunbok/qgroundcontrol,caoxiongkun/qgroundcontrol,catch-twenty-two/qgroundcontrol,iidioter/qgroundcontrol,RedoXyde/PX4_qGCS,iidioter/qgroundcontrol,Hunter522/qgroundcontrol,TheIronBorn/qgroundcontrol,jy723/qgroundcontrol,ethz-asl/qgc_asl,LIKAIMO/qgroundcontrol,catch-twenty-two/qgroundcontrol,UAVenture/qgroundcontrol,d...
0a77cedc5dd384cead701b6c9b58d67da4971757
fetch.h
fetch.h
#ifndef CJET_FETCH_H #define CJET_FETCH_H #include "json/cJSON.h" #include "list.h" #include "peer.h" typedef int (*match_func)(const char *fetch_path, const char *state_path); struct path_matcher { char *fetch_path; match_func match_function; }; struct fetch { char *fetch_id; const struct peer *peer; struct l...
#ifndef CJET_FETCH_H #define CJET_FETCH_H #include "json/cJSON.h" #include "list.h" #include "peer.h" typedef int (*match_func)(const char *fetch_path, const char *state_path); struct path_matcher { char *fetch_path; match_func match_function; uintptr_t cookie; }; struct fetch { char *fetch_id; const struct pe...
Add cookie entry for auxilary match data.
Add cookie entry for auxilary match data.
C
mit
gatzka/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,mloy/cjet,mloy/cjet,gatzka/cjet
bf55c4043cb6f4fab23e42e62cbd911c333c82f8
libs/samson/stream/QueuesManager.h
libs/samson/stream/QueuesManager.h
#ifndef _H_STREAM_QUEUE_MANAGER #define _H_STREAM_QUEUE_MANAGER /* **************************************************************************** * * FILE QueuesManager.h * * AUTHOR Andreu Urruela Planas * * All the queues contained in the system * */ #include "au/map....
#ifndef _H_STREAM_QUEUE_MANAGER #define _H_STREAM_QUEUE_MANAGER /* **************************************************************************** * * FILE QueuesManager.h * * AUTHOR Andreu Urruela Planas * * All the queues contained in the system * */ #include "au/map....
Fix compilation broken for linux
Fix compilation broken for linux git-svn-id: 9714148d14941aebeae8d7f7841217f5ffc02bc5@1242 4143565c-f3ec-42ea-b729-f8ce0cf5cbc3
C
apache-2.0
telefonicaid/fiware-cosmos-platform,telefonicaid/fiware-cosmos-platform,telefonicaid/fiware-cosmos-platform,telefonicaid/fiware-cosmos-platform,telefonicaid/fiware-cosmos-platform
996c8b178b365009726f0d9fd5540439aafe7e9b
inc/ow_solver_container.h
inc/ow_solver_container.h
#ifndef OW_SOLVER_CONTAINER #define OW_SOLVER_CONTAINER #include "ow_isolver.h" #include "ow_cl_const.h" #include <string> #include <vector> namespace x_engine { namespace solver { enum SOLVER_TYPE { OCL = 1, CUDA, SINGLE, PARALLEL }; enum DEVICE { CPU = 0, GPU = 1, ALL = 2 }; struct device { DEVICE typ...
#ifndef OW_SOLVER_CONTAINER #define OW_SOLVER_CONTAINER #include "ow_isolver.h" #include "ow_cl_const.h" #include <string> #include <vector> namespace x_engine { namespace solver { enum SOLVER_TYPE { OCL = 1, CUDA, SINGLE, PARALLEL }; enum DEVICE { CPU = 0, GPU = 1, ALL = 2 }; struct device { DEVICE typ...
Change solver_container is singleton now.
Change solver_container is singleton now.
C
mit
skhayrulin/x_engine,skhayrulin/x_engine,skhayrulin/x_engine
981c98937d40a196cc09530504012a792a7b5348
Source/Core/HCSelfDescribing.h
Source/Core/HCSelfDescribing.h
// // OCHamcrest - HCSelfDescribing.h // Copyright 2013 hamcrest.org. See LICENSE.txt // // Created by: Jon Reid, http://qualitycoding.org/ // Docs: http://hamcrest.github.com/OCHamcrest/ // Source: https://github.com/hamcrest/OCHamcrest // #import <Foundation/Foundation.h> @protocol HCDescription; /** The...
// // OCHamcrest - HCSelfDescribing.h // Copyright 2013 hamcrest.org. See LICENSE.txt // // Created by: Jon Reid, http://qualitycoding.org/ // Docs: http://hamcrest.github.com/OCHamcrest/ // Source: https://github.com/hamcrest/OCHamcrest // #import <Foundation/Foundation.h> #import "HCDescription.h" /** Th...
Change forward declaration to import for convenience.
Change forward declaration to import for convenience. https://github.com/hamcrest/OCHamcrest/issues/31
C
bsd-2-clause
nschum/OCHamcrest,hamcrest/OCHamcrest,hamcrest/OCHamcrest,klundberg/OCHamcrest,nschum/OCHamcrest,nschum/OCHamcrest,hamcrest/OCHamcrest,klundberg/OCHamcrest
e64358edc12b9a2fcbf57ecb2ce17ca609df8d43
Core/Assembler.h
Core/Assembler.h
#pragma once #include "../Util/FileClasses.h" #include "../Util/Util.h" #include "FileManager.h" #define ARMIPS_VERSION_MAJOR 0 #define ARMIPS_VERSION_MINOR 10 #define ARMIPS_VERSION_REVISION 0 enum class ArmipsMode { FILE, MEMORY }; struct LabelDefinition { std::wstring name; int64_t value; }; struct Equat...
#pragma once #include "../Util/FileClasses.h" #include "../Util/Util.h" #include "FileManager.h" #define ARMIPS_VERSION_MAJOR 0 #define ARMIPS_VERSION_MINOR 10 #define ARMIPS_VERSION_REVISION 0 enum class ArmipsMode { FILE, MEMORY }; struct LabelDefinition { std::wstring name; int64_t value; }; struct Equat...
Fix symFileVersion not being initialized in ArmipsArguments constructor
Fix symFileVersion not being initialized in ArmipsArguments constructor
C
mit
Kingcom/armips,Kingcom/armips,sp1187/armips,sp1187/armips,Kingcom/armips,sp1187/armips
48e9fb19e370828f69a2a449c9cdfd32b01d88f5
compiler.h
compiler.h
/* Copyright 2014-2015 Drew Thoreson * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef _COMPILER_H #define _COMPILER_H #if __STDC_VERSION__ < 201112L #...
/* Copyright 2014-2015 Drew Thoreson * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef _COMPILER_H #define _COMPILER_H #if __STDC_VERSION__ < 201112L #...
Use __attribute__s if __GNUC__ defined
Use __attribute__s if __GNUC__ defined Otherwise, define _Noreturn and _Alignas as NOPs, and issue a warning message.
C
mpl-2.0
drewt/navi-scheme,drewt/navi-scheme,drewt/navi-scheme
13dbcc3abd024bd5fbd47cc9b1094f5ade9d6f14
tests/regression/56-witness/05-prec-problem.c
tests/regression/56-witness/05-prec-problem.c
//PARAM: --enable witness.yaml.enabled --enable ana.int.interval #include <stdlib.h> int foo(int* ptr1, int* ptr2){ int result; if(ptr1 == ptr2){ result = 0; } else { result = 1; } // Look at the generated witness.yml to check whether there contradictory precondition_loop_invariant[...
//PARAM: --enable witness.yaml.enabled --enable ana.int.interval #include <stdlib.h> int foo(int* ptr1, int* ptr2){ int result; if(ptr1 == ptr2){ result = 0; } else { result = 1; } // Look at the generated witness.yml to check whether there are contradictory precondition_loop_invari...
Add missing word in comment
Add missing word in comment
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
6f132875296595c4f26f9eee940666b1a4ca8135
c_fs_monitor/test_fs_monitor.c
c_fs_monitor/test_fs_monitor.c
/* This is a simple C program which is a stub for the FS monitor. It takes one argument which would be a directory to monitor. In this case, the filename is discarded after argument validation. Every minute the */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> int main (int argc, char **a...
/* This is a simple C program which is a stub for the FS monitor. It takes one argument which would be a directory to monitor. In this case, the filename is discarded after argument validation. Every minute the */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> int main (int argc, char **a...
Fix arguments count check in test inotify program
Fix arguments count check in test inotify program
C
mit
iankronquist/senior-project-experiment,iankronquist/senior-project-experiment,iankronquist/senior-project-experiment,iankronquist/beeswax,iankronquist/beeswax,iankronquist/beeswax,iankronquist/senior-project-experiment,iankronquist/beeswax
a629c9dade4fae3915b632184427aec5e807bbe4
app/hwif.c
app/hwif.c
/* * Part of Jari Komppa's zx spectrum suite * https://github.com/jarikomppa/speccy * released under the unlicense, see http://unlicense.org * (practically public domain) */ // xxxsmbbb // where b = border color, m is mic, s is speaker void port254(const unsigned char color) __z88dk_fastcall { color; // color...
/* * Part of Jari Komppa's zx spectrum suite * https://github.com/jarikomppa/speccy * released under the unlicense, see http://unlicense.org * (practically public domain) */ // xxxsmbbb // where b = border color, m is mic, s is speaker void port254(const unsigned char color) __z88dk_fastcall { color; // color...
Make sure we've enabled interrupts before calling halt..
Make sure we've enabled interrupts before calling halt..
C
unlicense
jarikomppa/speccy,jarikomppa/speccy,jarikomppa/speccy
8c8d940e07c6ce48a8b342baaafb290e3f9abfac
SGCachePromise.h
SGCachePromise.h
// // SGCachePromise.h // Pods // // Created by James Van-As on 13/05/15. // // #import "Promise.h" #import "MGEvents.h" typedef void(^SGCacheFetchCompletion)(id obj); typedef void(^SGCacheFetchFail)(NSError *error, BOOL wasFatal); typedef void(^SGCacheFetchOnRetry)(); @interface SGCachePromise : PMKPromise @prop...
// // SGCachePromise.h // Pods // // Created by James Van-As on 13/05/15. // // #import <PromiseKit/Promise.h> #import <MGEvents/MGEvents.h> typedef void(^SGCacheFetchCompletion)(id obj); typedef void(^SGCacheFetchFail)(NSError *error, BOOL wasFatal); typedef void(^SGCacheFetchOnRetry)(); @interface SGCachePromis...
Use Framework style import statements for pod Framework compatibility
Use Framework style import statements for pod Framework compatibility
C
bsd-2-clause
seatgeek/SGImageCache
e4f1a58860b19753d4c887c3e5086b6232cb49ae
src/net/instaweb/util/public/re2.h
src/net/instaweb/util/public/re2.h
/* * Copyright 2012 Google 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...
/* * Copyright 2012 Google 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...
Make this a proper forwarding header rather than a duplication what's under pagespeed/util/
Make this a proper forwarding header rather than a duplication what's under pagespeed/util/
C
apache-2.0
crowell/modpagespeed_tmp,crowell/modpagespeed_tmp,crowell/modpagespeed_tmp,crowell/modpagespeed_tmp,crowell/modpagespeed_tmp,crowell/modpagespeed_tmp,crowell/modpagespeed_tmp
a926488619cbe3aa5b5cf367486f6e4b08d70e98
extensions/ringopengl/opengl11/ring_opengl11.c
extensions/ringopengl/opengl11/ring_opengl11.c
#include "ring.h" /* OpenGL 1.1 Extension Copyright (c) 2017 Mahmoud Fayed <msfclipper@yahoo.com> */ #include <GL/glew.h> #include <GL/glut.h> RING_FUNC(ring_get_gl_zero) { RING_API_RETNUMBER(GL_ZERO); } RING_API void ringlib_init(RingState *pRingState) { ring_vm_funcregister("get_gl_zero",ring_get_gl_zero); ...
#include "ring.h" /* OpenGL 1.1 Extension Copyright (c) 2017 Mahmoud Fayed <msfclipper@yahoo.com> */ #include <GL/glew.h> #include <GL/glut.h> RING_FUNC(ring_get_gl_zero) { RING_API_RETNUMBER(GL_ZERO); } RING_FUNC(ring_get_gl_false) { RING_API_RETNUMBER(GL_FALSE); } RING_API void ringlib_init(RingState *pRin...
Update RingOpenGL 1.1 - Add Constant (Source Code) : GL_FALSE
Update RingOpenGL 1.1 - Add Constant (Source Code) : GL_FALSE
C
mit
ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring
8f1e899485677eb8accfdc999fbd1e7e12187302
Classes/WeakUniqueCollection.h
Classes/WeakUniqueCollection.h
// // WeakUniqueCollection.h // book-shelf // // Created by Artem Gladkov on 28.06.16. // Copyright © 2016 Sibext Ltd. All rights reserved. // #import <Foundation/Foundation.h> @interface WeakUniqueCollection<ObjectType> : NSObject @property(readonly)NSUInteger count; - (void)addObject:(ObjectType)object; - (vo...
// // WeakUniqueCollection.h // book-shelf // // Created by Artem Gladkov on 28.06.16. // Copyright © 2016 Sibext Ltd. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /** WeakUniqueCollection keeps weak references to the objects and maintains uniqueness. It's public API is ful...
Add documentation for public API and nullability specification.
Add documentation for public API and nullability specification.
C
mit
sibext/WeakUniqueCollection,sibext/WeakUniqueCollection
db4a05949ff8e56fc4334f5b3776ee0f2aa1c8a8
stack.c
stack.c
#include "stack.h" struct Stack { size_t size; size_t top; void** e; } Stack* Stack_Create(size_t n) { Stack* s = (Stack *)malloc(sizeof(Stack)); s->size = n; s->top = 0; s->e = (void**)malloc(sizeof(void*) * (n + 1)); return s; } int Stack_Empty(Stack* s) { if (s->top == 0) { return 1; } else { retur...
#include "stack.h" struct Stack { size_t size; size_t top; void** e; } Stack* Stack_Create(size_t n) { Stack* s = (Stack *)malloc(sizeof(Stack)); s->size = n; s->top = 0; s->e = (void**)malloc(sizeof(void*) * (n + 1)); return s; } int Stack_Empty(Stack* s) { if (s->top == 0) { return 1; } else { retur...
Fix incorrect return in pop operation
Fix incorrect return in pop operation
C
mit
MaxLikelihood/CADT
0031954ff9ac9a1c6f080ceb3f9fcec3d3c9a0fd
ParticleSwarmOptimization/CppUtils/CppUtils.h
ParticleSwarmOptimization/CppUtils/CppUtils.h
// CppUtils.h #pragma once #include <algorithm> #include <functional> #include <vector> #include <random> using namespace System; namespace CppUtils { public ref class Random { public: double Random::random_double() { return Random::random_in_range(0.0, 1.0); } do...
// CppUtils.h #pragma once #ifdef DEBUG #define SEED(x) 100 #else #define SEED(x) x #endif #include <algorithm> #include <functional> #include <vector> #include <random> using namespace System; namespace CppUtils { public ref class Random { public: double Random::random_double() { ...
Debug macro for seeding random generator.
Debug macro for seeding random generator.
C
mit
trojkac/effective_pso,trojkac/effective_pso
d480f70369ecb66d318357fb5dca71708bb1b91e
test/Preprocessor/headermap-rel2.c
test/Preprocessor/headermap-rel2.c
// This uses a headermap with this entry: // someheader.h -> Product/someheader.h // RUN: %clang_cc1 -fsyntax-only %s -iquote %S/Inputs/headermap-rel2/project-headers.hmap -isysroot %S/Inputs/headermap-rel2/system -I %S/Inputs/headermap-rel2 -H 2> %t.out // RUN: FileCheck %s -input-file %t.out // CHECK: Product/som...
// This uses a headermap with this entry: // someheader.h -> Product/someheader.h // RUN: %clang_cc1 -v -fsyntax-only %s -iquote %S/Inputs/headermap-rel2/project-headers.hmap -isysroot %S/Inputs/headermap-rel2/system -I %S/Inputs/headermap-rel2 -H // RUN: %clang_cc1 -fsyntax-only %s -iquote %S/Inputs/headermap-rel2/...
Add a RUN line to get a hint on why the test is failing at the buildbots.
[test] Add a RUN line to get a hint on why the test is failing at the buildbots. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@205072 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/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,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl...
6dec686bbe20f6c89b067d27f75eba3ac4cc3727
pose/src/pose_estimator_demo.c
pose/src/pose_estimator_demo.c
#include "estimator.h" #include <stdio.h> int main(int argc, char** argv) { void* estimator = create_estimator(argv[1]); candidates_t* candidates = estimate(estimator, argv[2]); for(unsigned int i = 0; i < candidates->candidates[0]->size; i++) { printf("x: %4lu y: %4lu confidence: %.4f \n", ...
#include <stdio.h> #include <stdlib.h> #include "estimator.h" int main(int argc, char** argv) { //test(); if(argc < 3) { printf("Usage: PartsBasedDetector1 model_file image_file\n"); exit(0); } void* estimator = create_estimator(argv[1]); candidates_t* candidates = estimate(esti...
Delete printing, show usage if arguments are not enough
Delete printing, show usage if arguments are not enough
C
mit
IshitaTakeshi/VirtualFitting,IshitaTakeshi/VirtualFitting
42c64152f63753877008fe6b9c432794c7fce1e3
libpthread/nptl/sysdeps/sh/pthread_spin_lock.c
libpthread/nptl/sysdeps/sh/pthread_spin_lock.c
/* Copyright (C) 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the Licen...
/* Copyright (C) 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the Licen...
Remove compiler warning due to old-style function definition
nptl: Remove compiler warning due to old-style function definition Signed-off-by: Carmelo Amoroso <532378793705a04edd56deb76ad8c0442834d55d@st.com>
C
lgpl-2.1
joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc
103296e919020e156925eb6d57d1da7aad0551bf
config.h
config.h
#ifndef CJET_CONFIG_H #define CJET_CONFIG_H #define SERVER_PORT 11122 #define LISTEN_BACKLOG 40 #define MAX_MESSAGE_SIZE 128 /* Linux specific configs */ #define MAX_EPOLL_EVENTS 100 #endif
#ifndef CJET_CONFIG_H #define CJET_CONFIG_H #define SERVER_PORT 11122 #define LISTEN_BACKLOG 40 #define MAX_MESSAGE_SIZE 250 /* Linux specific configs */ #define MAX_EPOLL_EVENTS 100 #endif
Increase the size of the read buffer fpo testing.
Increase the size of the read buffer fpo testing.
C
mit
mloy/cjet,mloy/cjet,gatzka/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,gatzka/cjet,mloy/cjet,gatzka/cjet
b1ddc60b6ead5220a101b1dd37479a8a990cc5ac
Include/atlstd.h
Include/atlstd.h
/* * atlstd.h * * Created: 3/31/2017 12:29:59 AM * Author: Vadim Zabavnov */ #ifndef ATLSTD_H_ #define ATLSTD_H_ #include <atlport.h> namespace atl { namespace std { using namespace atl; // standard ports #ifdef PORTA const Port PortA = Port(_SFR_IO_ADDR(PORTA), _SFR_IO_ADDR(DDRA), _SFR_IO_ADDR(PINA)); #en...
/* * atlstd.h * * Created: 3/31/2017 12:29:59 AM * Author: Vadim Zabavnov */ #ifndef ATLSTD_H_ #define ATLSTD_H_ #include <atlport.h> namespace atl { namespace std { using namespace atl; // standard ports #ifdef PORTA constexpr Port PortA = Port(_SFR_IO_ADDR(PORTA), _SFR_IO_ADDR(DDRA), _SFR_IO_ADDR(PINA));...
Make ports constexpr to further reduce binary size
Make ports constexpr to further reduce binary size
C
apache-2.0
vzabavnov/AVRTL,vzabavnov/AVRTL
58e3fdf77ae8adcb89ea5af6fc50a1b2859a485b
src/log_example.c
src/log_example.c
// cc log_example.c log.c #include "log.h" int main(int argc, const char *argv[]) { log_open("example", NULL, 0); /* set log level to info, also the default level */ log_setlevel(LOG_INFO); /* debug mesage won't be seen */ log_debug("debug message"); /* but info and warn message can be seen */...
// cc log_example.c log.c #include "log.h" int main(int argc, const char *argv[]) { /* open global logger to stderr (by setting filename to NULL) */ log_open("example", NULL, 0); /* set log level to info, also the default level */ log_setlevel(LOG_INFO); /* debug mesage won't be seen */ log_de...
Add minor comment for log_open
Add minor comment for log_open
C
bsd-2-clause
hit9/C-Snip,hit9/C-Snip
2485a7bb9de55290ece1edef973b40bae82f55be
src/main.c
src/main.c
#include <stdio.h> #include <stdlib.h> #include "apricosterm.h" #include "screen.h" int main(int argc, char** argv) { SDL_Event event; initScreen("Potato", SCREEN_WIDTH, SCREEN_HEIGHT); char done = 0; while(!done) { while(SDL_PollEvent(&event)) { switch(event.key.keysym.sym) { ...
#include <stdio.h> #include <stdlib.h> #include "apricosterm.h" #include "screen.h" #include "terminalrenderer.h" #include "managedtextures.h" int main(int argc, char** argv) { SDL_Event event; initScreen("Potato", SCREEN_WIDTH, SCREEN_HEIGHT); char done = 0; termRendererInit(); SDL_StartTextInput...
Integrate terminal renderer for testing
Integrate terminal renderer for testing
C
mit
drdanick/apricosterm
17d53a1d40b1d15f08a80f9f03dd3922156d9fb6
src/repo.c
src/repo.c
/** * repo.c * * Copyright (C) 2017 Nickolas Burr <nickolasburr@gmail.com> */ #include "repo.h" /** * Get all stashes for a repository. */ struct stash *get_stashes (struct repo *r) { return r->stashes; } /** * Set a copy of all stashes for a repository in memory. */ void set_stashes (struct repo *r) { // ...
/** * repo.c * * Copyright (C) 2017 Nickolas Burr <nickolasburr@gmail.com> */ #include "repo.h" /** * Get all stash entries for a repository. */ struct stash *get_stash (struct repo *r) { return r->stash; } /** * Set a copy of all stash entries for a repository. */ void set_stash (struct repo *r) { char *cm...
Work on stash retrieval, memory allocation
Work on stash retrieval, memory allocation
C
mit
nickolasburr/git-stashd,nickolasburr/git-stashd,nickolasburr/git-stashd
ca1f8cba176ba3dbbbed7ebee2e0399f94c548a1
src/user.c
src/user.c
task usercontrol(){ int DY, DT; bool armsLocked = false; while(true){ //Driving DY = threshold(PAIRED_CH2, 15); DT = threshold(PAIRED_CH1, 15); drive(DY, DT); //Pistons (toggle) if(PAIRED_BTN7R){ pistons(!PISTON_POS); waitUntil(!PAIRED_BTN7R); } //Arms if(PAIRED_BTN7L){ armsLocked = !ar...
task usercontrol(){ int DY, DT; bool armsLocked = false; while(true){ //Driving DY = threshold(PAIRED_CH2, 15) + (PAIRED_BTN8U * MAX_POWER) - (PAIRED_BTN8D * MAX_POWER); DT = threshold(PAIRED_CH1, 15) + (PAIRED_BTN8R * MAX_POWER) - (PAIRED_BTN8L * MAX_POWER); drive(DY, DT); //Pistons (toggle) if(PAIRED...
Add buttons for driving, and swap intake and arm buttons
Add buttons for driving, and swap intake and arm buttons
C
mit
18moorei/code-red-in-the-zone
d19c36737dd3d2111911c411b19f1a270415b079
SMLTextViewPrivate.h
SMLTextViewPrivate.h
// // SMLTextViewPrivate.h // Fragaria // // Created by Daniele Cattaneo on 26/02/15. // // #import <Cocoa/Cocoa.h> #import "SMLTextView.h" #import "SMLAutoCompleteDelegate.h" @interface SMLTextView () /** The autocomplete delegate for this text view. This property is private * because it is set to an internal...
// // SMLTextViewPrivate.h // Fragaria // // Created by Daniele Cattaneo on 26/02/15. // // #import <Cocoa/Cocoa.h> #import "SMLTextView.h" #import "SMLAutoCompleteDelegate.h" @interface SMLTextView () /** The autocomplete delegate for this text view. This property is private * because it is set to an internal...
Use weak attribute for the autocompleteDelegate property of SMLTextView.
Use weak attribute for the autocompleteDelegate property of SMLTextView.
C
apache-2.0
shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,vakoc/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,bitstadium/Fragaria,shysaur/Fragaria,bitstadium/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,vakoc/Fragaria,shysaur/Frag...
0d91ee8a0d9b26e4847ce5724a08a0d5160b38e8
app/src/main/jni/scavenger.c
app/src/main/jni/scavenger.c
#include <jni.h> #include <android/log.h> JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved) { __android_log_print(ANDROID_LOG_VERBOSE, "Scavenger Jni", "JNI_OnLoad is called"); }
#include <jni.h> #include <signal.h> #include <android/log.h> #define CATCHSIG(X) sigaction(X, &handler, &old_sa[X]) static struct sigaction old_sa[NSIG]; void android_sigaction(int signal, siginfo_t *info, void *reserved) { // TODO invoke java method } JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserv...
Add jni code to catch crash signal
Add jni code to catch crash signal
C
apache-2.0
Shunix/Scavenger,Shunix/Scavenger
fce8f063e38d86725b6b4d81c1ff42a82194146b
test/acm_random.h
test/acm_random.h
/* * Copyright (c) 2012 The WebM 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 contributin...
/* * Copyright (c) 2012 The WebM 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 contributin...
Use vpx_integer.h instead of stdint.h
Use vpx_integer.h instead of stdint.h vpx_integer accounts for win32, which does not have stdint.h Change-Id: I0ecf243ba56ed2e920e1293a6876c2e1ef1af99e
C
bsd-3-clause
gshORTON/webm.libvpx,jmvalin/aom,liqianggao/libvpx,iniwf/webm.libvpx,Acidburn0zzz/webm.libvpx,kalli123/webm.libvpx,ittiamvpx/libvpx-1,pcwalton/libvpx,turbulenz/libvpx,ShiftMediaProject/libvpx,kleopatra999/webm.libvpx,mwgoldsmith/vpx,mwgoldsmith/vpx,shareefalis/libvpx,goodleixiao/vpx,charup/https---github.com-webmprojec...
1f3121d2ba227c0d3e7987b1297f00dfb83d7871
src/command_line_flags.h
src/command_line_flags.h
#ifndef COMMAND_LINE_FLAGS_H_ #define COMMAND_LINE_FLAGS_H_ #include "kinetic/kinetic.h" #include "gflags/gflags.h" DEFINE_string(host, "localhost", "Kinetic Host"); DEFINE_uint64(port, 8123, "Kinetic Port"); DEFINE_uint64(timeout, 30, "Timeout"); void parse_flags(int *argc, char*** argv, std::unique_ptr<kinetic::C...
#ifndef COMMAND_LINE_FLAGS_H_ #define COMMAND_LINE_FLAGS_H_ #include "kinetic/kinetic.h" #include "gflags/gflags.h" DEFINE_string(host, "localhost", "Kinetic Host"); DEFINE_uint64(port, 8123, "Kinetic Port"); DEFINE_uint64(timeout, 30, "Timeout"); DEFINE_uint64(user_id, 1, "Kinetic User ID"); DEFINE_string(hmac_key,...
Allow setting user id/hmac key via command line params for setpin
Allow setting user id/hmac key via command line params for setpin
C
unknown
Kinetic/kinetic-cpp-examples,Seagate/kinetic-cpp-examples,chenchongli/kinetic-cpp-examples,chenchongli/kinetic-cpp-examples,daasbank/daasbank-kinetic-c-,Seagate/kinetic-cpp-examples,Kinetic/kinetic-cpp-examples,daasbank/daasbank-kinetic-c-
070a960b3f83eaaf5f64dfdd9dd467d1949082ce
src/prodbg/AmigaUAE/AmigaUAE.h
src/prodbg/AmigaUAE/AmigaUAE.h
#pragma once #include <QObject> #include <QProcess> #include <QString> #include "Config/AmigaUAEConfig.h" class QTemporaryDir; namespace prodbg { /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// class AmigaUAE : public QObject { Q_OBJECT ...
#pragma once #include <QObject> #include <QProcess> #include <QString> #include "Config/AmigaUAEConfig.h" class QTemporaryDir; namespace prodbg { /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// class AmigaUAE : public QObject { Q_OBJECT ...
Set tempdir to null by default
Set tempdir to null by default
C
mit
emoon/ProDBG,emoon/ProDBG,emoon/ProDBG,emoon/ProDBG,emoon/ProDBG,emoon/ProDBG
aee358642015f5453dcca6831bc3f3a6c6df22e7
atom/browser/api/atom_api_menu_views.h
atom/browser/api/atom_api_menu_views.h
// Copyright (c) 2014 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #ifndef ATOM_BROWSER_API_ATOM_API_MENU_VIEWS_H_ #define ATOM_BROWSER_API_ATOM_API_MENU_VIEWS_H_ #include <map> #include <memory> #include "atom/browser/api/atom_api_menu.h" #include ...
// Copyright (c) 2014 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #ifndef ATOM_BROWSER_API_ATOM_API_MENU_VIEWS_H_ #define ATOM_BROWSER_API_ATOM_API_MENU_VIEWS_H_ #include <map> #include <memory> #include "atom/browser/api/atom_api_menu.h" #include ...
Fix missing PopupAt overrides on windows/linux
Fix missing PopupAt overrides on windows/linux Auditors: 47e4a4954d6a66edd1210b9b46e0a144c1078e87@bsclifton
C
mit
brave/electron,brave/muon,brave/electron,brave/electron,brave/electron,brave/muon,brave/muon,brave/muon,brave/electron,brave/muon,brave/muon,brave/electron
44d689bc6ec53db0ec8572cc3bcd89e2a03a24da
benchmark/parse_records_benchmark.h
benchmark/parse_records_benchmark.h
#pragma once template<typename B, typename R> static void ParseRecordsBenchmark(benchmark::State &state, const simdjson::padded_string &json) { // Warmup and equality check (make sure the data is right!) B bench; bench.SetUp(); if (!bench.Run(json)) { state.SkipWithError("warmup tweet reading failed"); return;...
#pragma once template<typename B, typename R> static void ParseRecordsBenchmark(benchmark::State &state, const simdjson::padded_string &json) { // Warmup and equality check (make sure the data is right!) B bench; bench.SetUp(); if (!bench.Run(json)) { state.SkipWithError("warmup tweet reading failed"); return;...
Make instructions / cycle counters more useful
Make instructions / cycle counters more useful
C
apache-2.0
lemire/simdjson,lemire/simdjson,lemire/simdjson,lemire/simdjson,lemire/simdjson,lemire/simdjson
0c84db950784ba4dd56f92220419490faff1f915
include/swift/Basic/Algorithm.h
include/swift/Basic/Algorithm.h
//===--- Algorithm.h - ------------------------------------------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
//===--- Algorithm.h - ------------------------------------------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
Fix methods return type ampersand location (NFC)
Fix methods return type ampersand location (NFC)
C
apache-2.0
hughbe/swift,ken0nek/swift,SwiftAndroid/swift,glessard/swift,djwbrown/swift,swiftix/swift,tjw/swift,austinzheng/swift,manavgabhawala/swift,allevato/swift,therealbnut/swift,xedin/swift,arvedviehweger/swift,aschwaighofer/swift,shajrawi/swift,zisko/swift,ahoppen/swift,OscarSwanros/swift,JaSpa/swift,parkera/swift,swiftix/s...
89e8a07af3e24ae0f843b80906422d711f73de0a
test/Analysis/uninit-vals-ps.c
test/Analysis/uninit-vals-ps.c
// RUN: clang -checker-simple -verify %s struct FPRec { void (*my_func)(int * x); }; int bar(int x); int f1_a(struct FPRec* foo) { int x; (*foo->my_func)(&x); return bar(x)+1; // no-warning } int f1_b() { int x; return bar(x)+1; // expected-warning{{Pass-by-value argument in function is undefined.}} ...
// RUN: clang -checker-simple -verify %s struct FPRec { void (*my_func)(int * x); }; int bar(int x); int f1_a(struct FPRec* foo) { int x; (*foo->my_func)(&x); return bar(x)+1; // no-warning } int f1_b() { int x; return bar(x)+1; // expected-warning{{Pass-by-value argument in function is undefined.}} ...
Add test for path-sensitive uninit-val detection involving struct field.
Add test for path-sensitive uninit-val detection involving struct field. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@59620 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
6d6fdef0cbc741e8f10ed1003a2e7fe5551b0227
collatz/c.c
collatz/c.c
#include <stdio.h> static int r( int n ) { printf("%d\n", n); if (n <= 1) return n; if (n%2) return r((n*3)+1); return r(n/2); } int main ( void ) { puts("Basic collatz fun - recursive C function"); r(15); return 0; }
#include <stdio.h> #include <stdlib.h> static long r( long n ) { printf("%ld\n", n); if (n <= 1) return n; if (n%2) return r((n*3)+1); return r(n/2); } int main (int argc, char **argv) { long n = 15; if (argc > 1) n = strtol(argv[1], NULL, 10); puts("Basic collatz f...
Allow passing ints as arg
Allow passing ints as arg
C
mit
EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts,EVODelavega/gp-scripts
c6db019f4816249ea029648a1ca22127ee0e7480
module.c
module.c
#include <linux/module.h> #include <linux/string.h> #include <linux/fs.h> #include <adm/uaccess.h> // Module Stuff MODULE_LICENCE("Apache"); // Change this to "GPL" if you get annoyed about // the kernal playing a crying fit about non GPL stuff MODULE_DESCRIPTION("A Markov device driver."); MODULE_AUTHOR("Ben ...
#include <linux/module.h> #include <linux/string.h> #include <linux/fs.h> #include <adm/uaccess.h> // Module Stuff MODULE_LICENCE("Apache"); // Change this to "GPL" if you get annoyed about // the kernal playing a crying fit about non GPL stuff MODULE_DESCRIPTION("A Markov device driver."); M...
Change tabs to spaces, Lets nip this one in the bud.
Change tabs to spaces, Lets nip this one in the bud.
C
apache-2.0
benjojo/dev_markov,benjojo/dev_markov
f2ffa408d7ed974fd830c1804ea345955476ec87
engines/default_engine/assoc.h
engines/default_engine/assoc.h
#ifndef ASSOC_H #define ASSOC_H struct assoc { /* how many powers of 2's worth of buckets we use */ unsigned int hashpower; /* Main hash table. This is where we look except during expansion. */ hash_item** primary_hashtable; /* * Previous hash table. During expansion, we look here for keys that h...
#ifndef ASSOC_H #define ASSOC_H struct assoc { /* how many powers of 2's worth of buckets we use */ unsigned int hashpower; /* Main hash table. This is where we look except during expansion. */ hash_item** primary_hashtable; /* * Previous hash table. During expansion, we look here for keys that h...
Remove prototypes for nonexistent functions
Remove prototypes for nonexistent functions Change-Id: Ife8b66f32aa78159ea3cfdec17cbc5148d954f8d Reviewed-on: http://review.couchbase.org/80561 Tested-by: Build Bot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com> Reviewed-by: Jim Walker <1cd02e31b43620d7c664e038ca42a060d61727b9@couchbase.com>
C
bsd-3-clause
daverigby/kv_engine,daverigby/kv_engine,daverigby/kv_engine,daverigby/kv_engine
8d942517ca5d635a6510d1ebba97917b03eebb23
src/header/NovelProcessTool.h
src/header/NovelProcessTool.h
/* * NovelProcessTool.h * * Created on: 2015年2月19日 * Author: nemo */ #ifndef SRC_NOVELPROCESSTOOL_H_ #define SRC_NOVELPROCESSTOOL_H_ #include <string> #include <fstream> #include <vector> using namespace std; class NovelProcessTool { public: NovelProcessTool(); virtual ~NovelProcessTool(); protected: ...
/* * NovelProcessTool.h * * Created on: 2015年2月19日 * Author: nemo */ #ifndef SRC_NOVELPROCESSTOOL_H_ #define SRC_NOVELPROCESSTOOL_H_ #include <string> #include <fstream> #include <vector> using namespace std; class NovelProcessTool { public: NovelProcessTool(); virtual ~NovelProcessTool(); protected: ...
Modify void parseContents(0) as pure virtual function.
Modify void parseContents(0) as pure virtual function.
C
apache-2.0
NemoChenTW/NovelProcessTools,NemoChenTW/NovelProcessTools,NemoChenTW/NovelProcessTools
1b32d0316ad790fdd178bca02f1af71c0ce15ef8
platforms/arm/mxrt1062/fastled_arm_mxrt1062.h
platforms/arm/mxrt1062/fastled_arm_mxrt1062.h
#ifndef __INC_FASTLED_ARM_MXRT1062_H #define __INC_FASTLED_ARM_MXRT1062_H #include "fastpin_arm_mxrt1062.h" #include "fastspi_arm_mxrt1062.h" #include "clockless_arm_mxrt1062.h" #include "block_clockless_arm_mxrt1062.h" #endif
#ifndef __INC_FASTLED_ARM_MXRT1062_H #define __INC_FASTLED_ARM_MXRT1062_H #include "fastpin_arm_mxrt1062.h" #include "fastspi_arm_mxrt1062.h" #include "../k20/octows2811_controller.h" #include "../k20/ws2812serial_controller.h" #include "../k20/smartmatrix_t3.h" #include "clockless_arm_mxrt1062.h" #include "block_cloc...
Support WS2812Serial Library on Teensy T4
Support WS2812Serial Library on Teensy T4 Recently there was reported that the WS2812Serial library (github.com/PaulStoffregen/WS2812Serial) was not ported over to work on the new Teensy T4, so I thought I would take a look. I added the T4 support, which is now pending in a Pull Request. During that I also found tha...
C
mit
FastLED/FastLED,PaulStoffregen/FastLED,PaulStoffregen/FastLED,FastLED/FastLED,FastLED/FastLED,FastLED/FastLED,PaulStoffregen/FastLED
c539b7d9bb3e40f7ac69d44771f56476c953629d
Pod/Classes/Foundation/runtime/NSObject+ASPropertyAttributes.h
Pod/Classes/Foundation/runtime/NSObject+ASPropertyAttributes.h
// // NSObject+ASPropertyAttributes.h // AppScaffold Cocoa Category // // Created by Whirlwind on 15/4/3. // Copyright (c) 2015年 AppScaffold. All rights reserved. // #import <Foundation/Foundation.h> #if __has_include("EXTRuntimeExtensions.h") // This category need pod 'libextobjc' #import "EXTRuntimeExtensions....
// // NSObject+ASPropertyAttributes.h // AppScaffold Cocoa Category // // Created by Whirlwind on 15/4/3. // Copyright (c) 2015年 AppScaffold. All rights reserved. // #import <Foundation/Foundation.h> #if __has_include(<libextobjc/EXTRuntimeExtensions.h>) // This category need pod 'libextobjc' #import <libextobjc...
Fix check the libextobjc when it is framework
Fix check the libextobjc when it is framework
C
mit
AppScaffold/ASCocoaCategory,AppScaffold/ASCocoaCategory,Whirlwind/ASCocoaCategory,Whirlwind/ASCocoaCategory,Whirlwind/ASCocoaCategory,AppScaffold/ASCocoaCategory
6e96905b97bbb3c154a15e90b3dc3d118db7c96e
src/OI.h
src/OI.h
#ifndef OI_H #define OI_H #include "WPILib.h" #include "RobotMap.h" #include <math.h> class OI { private: Joystick joystick; public: OI(); inline float GetXplusY(){ float val; val = FractionOmitted(joystick.GetY() + joystick.GetX()); if(val > 1.2) val = 1.2; if(val < -1.2) val = -1.2; return val; } in...
#ifndef OI_H #define OI_H #include "WPILib.h" #include "RobotMap.h" #include <math.h> class OI { private: Joystick joystick; public: OI(); inline float GetXplusY(){ float val; val = FractionOmitted(joystick.GetY() + joystick.GetX()); if(val > 1.2) val = 1.2; if(val < -1.2) val = -1.2; return val; } in...
Create RightStick X and Y value get Function
Create RightStick X and Y value get Function
C
epl-1.0
tokyotechnicalsamurai/shougun
30fa9d8675adbc9f0bb147949a77016f6e9ce11b
src/platform/sdl/sdl-events.h
src/platform/sdl/sdl-events.h
#ifndef SDL_EVENTS_H #define SDL_EVENTS_H #include "common.h" #include "gba-thread.h" #include <SDL.h> #define SDL_BINDING_KEY 0x53444C4B #define SDL_BINDING_BUTTON 0x53444C42 struct GBAVideoSoftwareRenderer; struct GBASDLEvents { struct GBAInputMap* bindings; SDL_Joystick* joystick; #if SDL_VERSION_ATLEAST(2, ...
#ifndef SDL_EVENTS_H #define SDL_EVENTS_H #include "common.h" #include "gba-thread.h" #include <SDL.h> #define SDL_BINDING_KEY 0x53444C4B #define SDL_BINDING_BUTTON 0x53444C42 struct GBAVideoSoftwareRenderer; struct GBASDLEvents { struct GBAInputMap* bindings; SDL_Joystick* joystick; #if SDL_VERSION_ATLEAST(2, ...
Remove prototype for removed function
Remove prototype for removed function
C
mpl-2.0
Anty-Lemon/mgba,Anty-Lemon/mgba,sergiobenrocha2/mgba,iracigt/mgba,iracigt/mgba,sergiobenrocha2/mgba,bentley/mgba,jeremyherbert/mgba,jeremyherbert/mgba,libretro/mgba,fr500/mgba,sergiobenrocha2/mgba,iracigt/mgba,MerryMage/mgba,Iniquitatis/mgba,Anty-Lemon/mgba,mgba-emu/mgba,jeremyherbert/mgba,matthewbauer/mgba,mgba-emu/mg...
53f7a342568c675b686f817f2a11392e486d2e8d
test/CodeGen/builtins-arm64.c
test/CodeGen/builtins-arm64.c
// RUN: %clang_cc1 -triple arm64-apple-ios -O3 -emit-llvm -o - %s | FileCheck %s void f0(void *a, void *b) { __clear_cache(a,b); // CHECK: call {{.*}} @__clear_cache } // CHECK: call {{.*}} @llvm.aarch64.rbit.i32(i32 %a) void rbit(unsigned a) { __builtin_arm_rbit(a); } // CHECK: call {{.*}} @llvm.aarch64.rbit.i64...
// RUN: %clang_cc1 -triple arm64-apple-ios -O3 -emit-llvm -o - %s | FileCheck %s void f0(void *a, void *b) { __clear_cache(a,b); // CHECK: call {{.*}} @__clear_cache } // CHECK: call {{.*}} @llvm.aarch64.rbit.i32(i32 %a) unsigned rbit(unsigned a) { return __builtin_arm_rbit(a); } // CHECK: call {{.*}} @llvm.aarch...
Fix silly think-o in tests.
AArch64: Fix silly think-o in tests. rdar://9283021 git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@211064 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
58b154cf4aca7c4ad12f066496dade85fe58cbec
exec/cnex/util.h
exec/cnex/util.h
#ifndef UTIL_H #define UTIL_H #define estr(x) #x #define ENUM(x) estr(x) void exec_error(const char *msg, ...); void fatal_error(const char *msg, ...); typedef enum { FALSE, TRUE } BOOL; #endif
#ifndef UTIL_H #define UTIL_H #define estr(x) #x #define ENUM(x) estr(x) void exec_error(const char *msg, ...); #ifdef _MSC_VER __declspec(noreturn) #endif void fatal_error(const char *msg, ...) #ifdef __GNUC__ __attribute__((noreturn)) #endif ; typedef enum { FALSE, TRUE } BOOL; #endif
Add noreturn attribute to fatal_error
Add noreturn attribute to fatal_error
C
mit
gitlarryf/neon-lang,ghewgill/neon-lang,ghewgill/neon-lang,gitlarryf/neon-lang,ghewgill/neon-lang,gitlarryf/neon-lang,ghewgill/neon-lang,ghewgill/neon-lang,gitlarryf/neon-lang,ghewgill/neon-lang,gitlarryf/neon-lang,ghewgill/neon-lang,gitlarryf/neon-lang,ghewgill/neon-lang,ghewgill/neon-lang,gitlarryf/neon-lang,ghewgill/...
ad7c868c0515e2e8f67cb56c610a6341a258299d
Ch4-Linked-Lists/linked-lists.c
Ch4-Linked-Lists/linked-lists.c
/* * PROBLEM * Discuss the stack data structure. Implement a stack in C using either a linked list or a dynamic array, and justify your decision. * Design the interface to your stack to be complete, consistent, and easy to use. */ #include <stdio.h> #include <stdbool.h> #include <stdlib.h> typedef struct Element ...
#include <stdio.h> #include <stdbool.h> #include <stdlib.h> typedef struct Element { struct Element *next; void *data; } Element; /* * PROBLEM * Discuss the stack data structure. Implement a stack in C using either a linked list or a dynamic array, and justify your decision. * Design the interface to your ...
Add the problem of 'Bugs in removeHead'.
Add the problem of 'Bugs in removeHead'.
C
unlicense
Conan1985/Programming-Interviews-Exposed,Conan1985/Programming-Interviews-Exposed,Conan1985/Programming-Interviews-Exposed
acc3cc239e62e1eb084cdc48cac8dd524a446abd
MCGraylog/MCGraylog/MCGraylog.h
MCGraylog/MCGraylog/MCGraylog.h
// // MCGraylog.h // MCGraylog // // Created by Jordan on 2013-05-06. // Copyright (c) 2013 Marketcircle. All rights reserved. // #import <Foundation/Foundation.h> typedef enum { GraylogLogLevelEmergency = 0, GraylogLogLevelAlert = 1, GraylogLogLevelCritical = 2, GraylogLogLevelError = 3, Gray...
// // MCGraylog.h // MCGraylog // // Created by Jordan on 2013-05-06. // Copyright (c) 2013 Marketcircle. All rights reserved. // #import <Foundation/Foundation.h> typedef enum { GraylogLogLevelEmergency = 0, GraylogLogLevelAlert = 1, GraylogLogLevelCritical = 2, GraylogLogLevelError = 3, Gray...
Add some basic documentation for graylog_log
Add some basic documentation for graylog_log
C
bsd-3-clause
Marketcircle/MCGraylog
bccbfb90b9680854a0656054582ced13683f3abd
VirtIO/osdep.h
VirtIO/osdep.h
////////////////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2007 Qumranet All Rights Reserved // // Module Name: // osdep.h // // Abstract: // Windows OS dependent definitions of data types // // Author: // Yan Vugenfirer - February 2007. // ////////////////////////////...
////////////////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2007 Qumranet All Rights Reserved // // Module Name: // osdep.h // // Abstract: // Windows OS dependent definitions of data types // // Author: // Yan Vugenfirer - February 2007. // ////////////////////////////...
Fix wrong bool definition in VirtIO library interface
Fix wrong bool definition in VirtIO library interface BZ#1389445: VirtIO definition of bool as int used by all drivers that use VirtIO library, except (currently) netkvm which is C++ and uses bool as fundamental C++ type. Microsoft-specific implementationdefines bool size as 1 byte. Different definition of bool in lib...
C
bsd-3-clause
YanVugenfirer/kvm-guest-drivers-windows,daynix/kvm-guest-drivers-windows,vrozenfe/kvm-guest-drivers-windows,gnif/kvm-guest-drivers-windows,vrozenfe/kvm-guest-drivers-windows,YanVugenfirer/kvm-guest-drivers-windows,virtio-win/kvm-guest-drivers-windows,virtio-win/kvm-guest-drivers-windows,daynix/kvm-guest-drivers-windows...
f84df9f076038ad16e1ee412162c328cd091bc59
include/clang/Frontend/CodeGenAction.h
include/clang/Frontend/CodeGenAction.h
//===--- CodeGenAction.h - LLVM Code Generation Frontend Action -*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===--- CodeGenAction.h - LLVM Code Generation Frontend Action -*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Make the destructor public. ddunbar, lemme know if you'd prefer a different fix, just trying to get the build bots happy again.
Make the destructor public. ddunbar, lemme know if you'd prefer a different fix, just trying to get the build bots happy again. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@97223 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/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,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
bb3bd956e8c53ccaba3a95940987a1e0133daf00
libgo/runtime/go-traceback.c
libgo/runtime/go-traceback.c
/* go-traceback.c -- stack backtrace for Go. Copyright 2012 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #include "config.h" #include "runtime.h" #include "go-string.h" /* Print a stack trace for the current gorou...
/* go-traceback.c -- stack backtrace for Go. Copyright 2012 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #include "config.h" #include "runtime.h" #include "go-string.h" /* Print a stack trace for the current gorou...
Fix printing of names in stack dumps.
runtime: Fix printing of names in stack dumps. R=iant CC=gofrontend-dev https://golang.org/cl/6305062
C
bsd-3-clause
golang/gofrontend,anlhord/gofrontend,golang/gofrontend,qskycolor/gofrontend,anlhord/gofrontend,qskycolor/gofrontend,anlhord/gofrontend,anlhord/gofrontend,golang/gofrontend,qskycolor/gofrontend,qskycolor/gofrontend,anlhord/gofrontend,anlhord/gofrontend,qskycolor/gofrontend,qskycolor/gofrontend,golang/gofrontend,qskycolo...
fe8b37bf3b859434de2bead4cd4fb00bda48f5c9
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 "condor_fix_string.h" #include <ctype.h> #include <fcntl.h> #include <errno.h> #if !defined(SUNOS41) #include <signal.h> #endif
#if defined(WIN32) #define NOGDI #define NOUSER #define NOSOUND #include <winsock2.h> #include <windows.h> #include "_condor_fix_nt.h" #include <stdlib.h> #else #include "_condor_fix_types.h" #include "condor_fix_stdio.h" #include <stdlib.h> #include "condor_fix_unistd.h" #include "condor_fix_limits.h" #include "con...
Use condor_fix_signal.h, not <signal.h>, and include <sys/ioctl.h> properly. Also, NT specific changes committed to main trunk.
Use condor_fix_signal.h, not <signal.h>, and include <sys/ioctl.h> properly. Also, NT specific changes committed to main trunk.
C
apache-2.0
djw8605/condor,bbockelm/condor-network-accounting,neurodebian/htcondor,htcondor/htcondor,clalancette/condor-dcloud,mambelli/osg-bosco-marco,neurodebian/htcondor,bbockelm/condor-network-accounting,neurodebian/htcondor,djw8605/condor,htcondor/htcondor,djw8605/condor,zhangzhehust/htcondor,zhangzhehust/htcondor,bbockelm/co...
74feaa2154590685a8702b9bab6aa2a4c2e58382
src/condor_includes/condor_common.h
src/condor_includes/condor_common.h
#include "condor_fix_stdio.h" #include <stdlib.h> #include "condor_fix_unistd.h" #include <limits.h> #include <string.h> #include <ctype.h> #include <fcntl.h> #include "_condor_fix_types.h" #include <errno.h>
#include "condor_fix_stdio.h" #include <stdlib.h> #include "condor_fix_unistd.h" #include <limits.h> #include <string.h> #include <ctype.h> #include "_condor_fix_types.h" #include <fcntl.h> #include <errno.h>
Add <fcntl.h> to list of commonly included files.
Add <fcntl.h> to list of commonly included files.
C
apache-2.0
htcondor/htcondor,clalancette/condor-dcloud,bbockelm/condor-network-accounting,clalancette/condor-dcloud,clalancette/condor-dcloud,clalancette/condor-dcloud,djw8605/condor,mambelli/osg-bosco-marco,bbockelm/condor-network-accounting,htcondor/htcondor,djw8605/condor,neurodebian/htcondor,neurodebian/htcondor,djw8605/htcon...
e259496d6faec673557dc4b9b5bc2e86487e27a4
tests/regression/31-ikind-aware-ints/04-ptrdiff.c
tests/regression/31-ikind-aware-ints/04-ptrdiff.c
// PARAM: --enable ana.int.interval --enable exp.partition-arrays.enabled --set ana.activated "['base', 'mallocWrapper', 'expRelation', 'var_eq']" int *tmp; int main () { int pathbuf[2]; int *bound = pathbuf + sizeof(pathbuf)/sizeof(*pathbuf) - 1; int *p = pathbuf; while (p <= bound) { *p = 1; p++...
// PARAM: --enable ana.int.interval --enable exp.partition-arrays.enabled --set ana.activated "['base', 'mallocWrapper', 'escape', 'expRelation', 'var_eq']" int *tmp; int main () { int pathbuf[2]; int *bound = pathbuf + sizeof(pathbuf)/sizeof(*pathbuf) - 1; int *p = pathbuf; while (p <= bound) { *p = 1...
Enable escape in 31/04 for global-history to pass
Enable escape in 31/04 for global-history to pass
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
c4dc456cdfc6fe4a67f41d2aa02f30bde9968d4c
set/test.c
set/test.c
int asserter_is_false(int); int set_empty(void); int set_size(int); int set_add(int, int); int main(void) { // set_empty tests if (asserter_is_false(set_empty() == 0)) return __LINE__; // set_add tests if (asserter_is_false(set_add(set_empty(), 0) != set_empty())) return __LINE__; if (asserter_is_false(set_add(...
int asserter_is_false(int); int set_empty(void); int set_size(int); int set_add(int, int); int main(void) { // set_empty tests if (asserter_is_false(set_empty() == 0)) return __LINE__; // set_add tests if (asserter_is_false(set_add(set_empty(), 0) != set_empty())) return __LINE__; if (asserter_is_false(set_add(...
Add TODOs for future work
[SET] REFACTOR: Add TODOs for future work
C
mit
w3ln4/open
c9d3145843ebb8a4fbd78484771dc0aa7fee4caf
include/cr-service.h
include/cr-service.h
#ifndef __CR_SERVICE_H__ #define __CR_SERVICE_H__ #include "protobuf/rpc.pb-c.h" #define CR_DEFAULT_SERVICE_ADDRESS "/tmp/criu_service.socket" #define MAX_MSG_SIZE 1024 int cr_service(bool deamon_mode); int send_criu_dump_resp(int socket_fd, bool success, bool restored); extern struct _cr_service_client *cr_servic...
#ifndef __CR_SERVICE_H__ #define __CR_SERVICE_H__ #include "protobuf/rpc.pb-c.h" #define CR_DEFAULT_SERVICE_ADDRESS "/var/run/criu_service.socket" #define MAX_MSG_SIZE 1024 int cr_service(bool deamon_mode); int send_criu_dump_resp(int socket_fd, bool success, bool restored); extern struct _cr_service_client *cr_se...
Change default socket path to /var/run/
service: Change default socket path to /var/run/ This is where such stuff is typically placed. Signed-off-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@parallels.com>
C
lgpl-2.1
fbocharov/criu,gonkulator/criu,ldu4/criu,KKoukiou/criu-remote,biddyweb/criu,efiop/criu,eabatalov/criu,efiop/criu,AuthenticEshkinKot/criu,KKoukiou/criu-remote,tych0/criu,gonkulator/criu,ldu4/criu,AuthenticEshkinKot/criu,LK4D4/criu,eabatalov/criu,gonkulator/criu,kawamuray/criu,sdgdsffdsfff/criu,svloyso/criu,LK4D4/criu,wt...
ee6d21258db24ac2640a410bc27ea1b552b36ca1
stmt.c
stmt.c
#include <stddef.h> #include <stdint.h> #include "cc1.h" Symbol *curfun; extern Node *convert(Node *np, Type *tp1, char iscast); static void Return(void) { Node *np; Type *tp = curfun->type->type; expect(RETURN); np = expr(); if (np->type != tp) { if ((np = convert(np, tp, 0)) == NULL) error("incorrect ...
#include <stddef.h> #include <stdint.h> #include "cc1.h" Symbol *curfun; extern Node *convert(Node *np, Type *tp1, char iscast); static void Return(void) { Node *np; Type *tp = curfun->type->type; expect(RETURN); np = expr(); if (np->type != tp) { if (tp == voidtype) warn(1, "function returning void ret...
Check that void function can return a value
Check that void function can return a value
C
isc
k0gaMSX/scc,k0gaMSX/kcc,k0gaMSX/scc,k0gaMSX/scc,k0gaMSX/kcc,8l/scc,8l/scc,8l/scc
54925adacd0d75de68b955d6197b0b02da97f161
test/CodeGen/c-unicode.c
test/CodeGen/c-unicode.c
// RUN: %clang -S %s -o - | FileCheck %s -check-prefix=ALLOWED // RUN: not %clang -std=c89 -S %s -o - 2>&1 | FileCheck %s -check-prefix=DENIED int \uaccess = 0; // ALLOWED: "곎ss": // ALLOWED-NOT: "\uaccess": // DENIED: warning: universal character names are only valid in C99 or C++; treating as '\' followed by identifi...
// RUN: %clang --target=x86_64--linux-gnu -S %s -o - | FileCheck %s -check-prefix=ALLOWED // RUN: not %clang --target=x86_64--linux-gnu -std=c89 -S %s -o - 2>&1 | FileCheck %s -check-prefix=DENIED int \uaccess = 0; // ALLOWED: "곎ss": // ALLOWED-NOT: "\uaccess": // DENIED: warning: universal character names are only val...
Fix testcase when building on darwin
Fix testcase when building on darwin Explicitely specify a target to avoid "_" prefixes on the names. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@253741 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
12e777affa9dc0a5a7b9616a2f007ddc90e0e3f1
SSPSolution/AIDLL/AIComponent.h
SSPSolution/AIDLL/AIComponent.h
#ifndef AIDLL_AI_AICOMPONENT_H #define AIDLL_AI_AICOMPONENT_H #include <DirectXMath.h> enum Pattern : int { AI_LINEAR = 1, AI_CIRCULAR, AI_ROUNTRIP, AI_RANDOM, AI_NONE = -1 }; __declspec(align(16)) struct AIComponent { // System variables int AP_active = 0; int AP_entityID = -1; // AI variables bool AP_trig...
#ifndef AIDLL_AI_AICOMPONENT_H #define AIDLL_AI_AICOMPONENT_H #include <DirectXMath.h> enum Pattern : int { AI_LINEAR = 1, AI_CIRCULAR, AI_ROUNTRIP, AI_RANDOM, AI_NONE = -1 }; __declspec(align(16)) struct AIComponent { // System variables int AP_active = 0; int AP_entityID = -1; // AI variables bool AP_trig...
UPDATE AIComp struct to initiate all variables except array
UPDATE AIComp struct to initiate all variables except array
C
apache-2.0
Chringo/SSP,Chringo/SSP
228ad56ee9f8e07cc2b81290d9fb081e36c10c55
libhostile/hostile.h
libhostile/hostile.h
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab: * * libhostile * * Copyright (C) 2011 Data Differential, http://datadifferential.com/ * * 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 Softwar...
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab: * * libhostile * * Copyright (C) 2011 Data Differential, http://datadifferential.com/ * * 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 Softwar...
Revert changes on .h file.
Revert changes on .h file.
C
bsd-3-clause
beeksiwaais/gearmand,dm/gearmand,dm/gearmand,dm/gearmand,beeksiwaais/gearmand,beeksiwaais/gearmand,beeksiwaais/gearmand,dm/gearmand
45952868429c278087b68d0e0e96f33ec70388fa
webkit/support/webkit_support_gfx.h
webkit/support/webkit_support_gfx.h
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBKIT_SUPPORT_WEBKIT_SUPPORT_GFX_H_ #define WEBKIT_SUPPORT_WEBKIT_SUPPORT_GFX_H_ #include <string> #include <vector> // TODO(darin): Remove...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBKIT_SUPPORT_WEBKIT_SUPPORT_GFX_H_ #define WEBKIT_SUPPORT_WEBKIT_SUPPORT_GFX_H_ #include <string> #include <vector> namespace webkit_suppo...
Remove an include which has been upstreamed to ImageDiff.cpp.
Remove an include which has been upstreamed to ImageDiff.cpp. BUG=none TEST=none Review URL: http://codereview.chromium.org/8392031 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@107382 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
hgl888/chromium-crosswalk-efl,anirudhSK/chromium,crosswalk-project/chromium-crosswalk-efl,littlstar/chromium.src,keishi/chromium,rogerwang/chromium,fujunwei/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,jaruba/chromium.src,mogoweb/chromium-crosswalk,dednal/chromium.src,bright-sparks/chromium-spacewalk,Pluto-tv/c...
3afa50dec22e049ab56862b5a16412aec4e79dba
xmas3.c
xmas3.c
/*Build: gcc -std=c99 -o xmas3 xmas3.c*/ #include <stdlib.h> #include <stdio.h> int print_tree(int length) { int i = 0, j = 0; for (i = 0;i<length;i++) { for (j = 0;j<=i;j++) { printf("*"); } printf("\n"); } return 0; } int main(int argc, char*argv[]) ...
/*Build: gcc -std=c99 -o xmas3 xmas3.c*/ #include <stdlib.h> #include <stdio.h> #include <string.h> void usage(char *argv0) { printf("USAGE: %s [height] [half|full]\n", argv0); exit(-1); } int print_tree(int height, char half) { int i = 0, j = 0; if (half) // Half tree { for (i = 0;i < he...
Add full/half option for tree.
Add full/half option for tree.
C
mit
svagionitis/xmas-tree
7d789e8c0e04aca179ff1f65dfff0ebb3fd066ff
src/m1/protocolo.h
src/m1/protocolo.h
#define PORT 50000 #define TIMEOUT 10; int waitforack(int sock); int sendack(int sock); int senderr(int sock, int ecode); int sendfin(int sock); int getsockfd(); int releasesockfd(int sock);
#define PORT 6012 #define TIMEOUT 10; int waitforack(int sock); int sendConnect(int sock); int sendack(int sock); int senderr(int sock, int ecode); int sendFile(int sock, char * file); int sendfin(int sock); int getsockfd(); int releasesockfd(int sock);
Add missing sendFile function declaration
Add missing sendFile function declaration
C
agpl-3.0
MikelAlejoBR/practica-sd1516
b239023198fbd527d8f3534d3e393e82213d3204
src/lib/hex-dec.c
src/lib/hex-dec.c
/* Copyright (c) 2005-2011 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "hex-dec.h" void dec2hex(unsigned char *hexstr, uintmax_t dec, unsigned int hexstr_size) { unsigned int i; for (i = 0; i < hexstr_size; i++) { unsigned int value = dec & 0x0f; if (value < 10) hexstr[hexstr...
/* Copyright (c) 2005-2011 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "hex-dec.h" void dec2hex(unsigned char *hexstr, uintmax_t dec, unsigned int hexstr_size) { unsigned int i; for (i = 0; i < hexstr_size; i++) { unsigned int value = dec & 0x0f; if (value < 10) hexstr[hexstr...
Allow data to contain also lowercase hex characters.
hex2dec(): Allow data to contain also lowercase hex characters.
C
mit
dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot
51889a9376cf256830db71764c72ef337e644094
src/CpuHelpers.h
src/CpuHelpers.h
#pragma once // This header mainly contains functions needed by both Cpu and Debugger #include "Base.h" // Convenience cast functions template <typename T> constexpr int16_t S16(T v) { return static_cast<int16_t>(v); } template <typename T> constexpr uint16_t U16(T v) { return static_cast<uint16_t>(v); } tem...
#pragma once // This header mainly contains functions needed by both Cpu and Debugger #include "Base.h" #include <type_traits> // Convenience cast functions template <typename T> constexpr int16_t S16(T v) { return static_cast<int16_t>(static_cast<std::make_signed_t<T>>(v)); } template <typename T> constexpr uin...
Fix indexed mode instructions failing to add negative offset because value would not be correctly sign extended
Cpu: Fix indexed mode instructions failing to add negative offset because value would not be correctly sign extended
C
mit
amaiorano/vectrexy,amaiorano/vectrexy,amaiorano/vectrexy
e4edb986c6acfb48e0d95b845bcdca75595f5308
pevents.h
pevents.h
#pragma once #include <pthread.h> #include <stdint.h> namespace neosmart { struct neosmart_event_t_; typedef neosmart_event_t_ * neosmart_event_t; neosmart_event_t CreateEvent(bool manualReset = false, bool initialState = false); int DestroyEvent(neosmart_event_t event); int WaitForEvent(neosmart_event_t event...
#pragma once #include <pthread.h> #include <stdint.h> namespace neosmart { //Type declarations struct neosmart_event_t_; typedef neosmart_event_t_ * neosmart_event_t; //WIN32-style pevent functions neosmart_event_t CreateEvent(bool manualReset = false, bool initialState = false); int DestroyEvent(neosma...
Add posix-styled functions for using neosmart_event_t objects
TBD: Add posix-styled functions for using neosmart_event_t objects
C
mit
neosmart/pevents,neosmart/pevents
8bafd7d816991e89b8599aff4f5a1ef6d27dc80e
kerberos5/include/crypto-headers.h
kerberos5/include/crypto-headers.h
/* $FreeBSD$ */ #ifndef __crypto_headers_h__ #define __crypto_headers_h__ #include <openssl/des.h> #include <openssl/rc4.h> #include <openssl/md4.h> #include <openssl/md5.h> #include <openssl/sha.h> #endif /* __crypto_headers_h__ */
/* $FreeBSD$ */ #ifndef __crypto_headers_h__ #define __crypto_headers_h__ #define OPENSSL_DES_LIBDES_COMPATIBILITY #include <openssl/des.h> #include <openssl/rc4.h> #include <openssl/md4.h> #include <openssl/md5.h> #include <openssl/sha.h> #endif /* __crypto_headers_h__ */
Define OPENSSL_DES_LIBDES_COMPATIBILITY so that Heimdal will build with OpenSSL 0.9.7 when it is imported. (This currently has no effect.)
Define OPENSSL_DES_LIBDES_COMPATIBILITY so that Heimdal will build with OpenSSL 0.9.7 when it is imported. (This currently has no effect.)
C
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
9135a146d451d9e165a81f787e80d6dde9338073
texor.c
texor.c
#include <unistd.h> int main() { char c; while (read(STDIN_FILENO, &c, 1) == 1); return 0; }
#include <unistd.h> int main() { char c; while (read(STDIN_FILENO, &c, 1) == 1 && c!= 'q'); return 0; }
Quit after reading a q
Quit after reading a q
C
bsd-2-clause
kyletolle/texor
727917c5605c2e140528a5e7e357cb312757f67f
maximum_pairwise_product.c
maximum_pairwise_product.c
#include <stdio.h> int MaxPairwiseProduct(int* numbers, int sizeofArray) { int result = 0; for (int i = 0; i < sizeofArray; ++i) { for (int j = i + 1; j < sizeofArray; ++j) { if (numbers[i] * numbers[j] > result) { result = numbers[i] * numbers[j]; } } } return result; } int main(...
#include <stdio.h> long long MaxPairwiseProduct(int* numbers, int sizeofArray) { long long result = 0; for (int i = 0; i < sizeofArray; ++i) { for (int j = i + 1; j < sizeofArray; ++j) { if (((long long)numbers[i]) * numbers[j] > result) { result = ((long long)numbers[i]) * numbers[j]; } ...
Change result data type to long long
Change result data type to long long
C
mit
sai-y/coursera_algorithmic_toolbox
04d4d10ab5ebb92244f07cf43ff9e89fcd548a44
Stripe/PublicHeaders/STPPaymentIntentSourceActionAuthorizeWithURL.h
Stripe/PublicHeaders/STPPaymentIntentSourceActionAuthorizeWithURL.h
// // STPPaymentIntentSourceActionAuthorizeWithURL.h // Stripe // // Created by Daniel Jackson on 11/7/18. // Copyright © 2018 Stripe, Inc. All rights reserved. // #import <Foundation/Foundation.h> #import "STPAPIResponseDecodable.h" NS_ASSUME_NONNULL_BEGIN /** The `STPPaymentIntentSourceAction` details when t...
// // STPPaymentIntentSourceActionAuthorizeWithURL.h // Stripe // // Created by Daniel Jackson on 11/7/18. // Copyright © 2018 Stripe, Inc. All rights reserved. // #import <Foundation/Foundation.h> #import "STPAPIResponseDecodable.h" NS_ASSUME_NONNULL_BEGIN /** The `STPPaymentIntentSourceAction` details when t...
Use SDK's enum value instead of server's string constant in documentation
Use SDK's enum value instead of server's string constant in documentation
C
mit
stripe/stripe-ios,stripe/stripe-ios,stripe/stripe-ios,stripe/stripe-ios,stripe/stripe-ios,stripe/stripe-ios
75053d92ff35f4b83f7edffe541c2526f04ecf17
arch/x86/libs/thread_x86/incs/ac_thread_stack_min.h
arch/x86/libs/thread_x86/incs/ac_thread_stack_min.h
/* * copyright 2015 wink saville * * 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...
/* * copyright 2015 wink saville * * 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...
Increase x86 AC_THREAD_STACK_MIN to 4K from 256 bytes just incase
Increase x86 AC_THREAD_STACK_MIN to 4K from 256 bytes just incase
C
apache-2.0
winksaville/sadie,winksaville/sadie
d558b32f61aa23fa9237d875e59b5acec4dcb4e6
include/IrcCore/irccore.h
include/IrcCore/irccore.h
#include "irc.h" #include "irccommand.h" #include "ircconnection.h" #include "ircglobal.h" #include "ircmessage.h" #include "ircfilter.h" #include "ircnetwork.h"
#include "irc.h" #include "irccommand.h" #include "ircconnection.h" #include "ircglobal.h" #include "ircmessage.h" #include "ircfilter.h" #include "ircnetwork.h" #include "ircprotocol.h"
Include ircprotocol.h in the IrcCore module header
Include ircprotocol.h in the IrcCore module header
C
bsd-3-clause
jpnurmi/libcommuni,jpnurmi/libcommuni,communi/libcommuni,communi/libcommuni
809e023343ae13d40f21e4d03ff7b09b5ecf005a
device/vibration/vibration_manager_impl_android.h
device/vibration/vibration_manager_impl_android.h
// Copyright 2014 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 DEVICE_VIBRATION_VIBRATION_MANAGER_IMPL_ANDROID_H_ #define DEVICE_VIBRATION_VIBRATION_MANAGER_IMPL_ANDROID_H_ #include "base/android/jni_android....
// Copyright 2014 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 DEVICE_VIBRATION_VIBRATION_MANAGER_IMPL_ANDROID_H_ #define DEVICE_VIBRATION_VIBRATION_MANAGER_IMPL_ANDROID_H_ #include "base/android/jni_android....
Update {virtual,override,final} to follow C++11 style in device.
Update {virtual,override,final} to follow C++11 style in device. The Google style guide states that only one of {virtual,override,final} should be used for each declaration, since override implies virtual and final implies both virtual and override. This patch was automatically generated with an OS=android build usin...
C
bsd-3-clause
chuan9/chromium-crosswalk,hgl888/chromium-crosswalk,Just-D/chromium-1,Chilledheart/chromium,hgl888/chromium-crosswalk,Chilledheart/chromium,chuan9/chromium-crosswalk,axinging/chromium-crosswalk,chuan9/chromium-crosswalk,Fireblend/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,ltilve/chromium,chuan9/chromium-cross...
730f909e146b0ac5dbcf9b8be65cb8f82c68d883
test/CodeGen/x86_64-arguments.c
test/CodeGen/x86_64-arguments.c
// RUN: clang -triple x86_64-unknown-unknown -emit-llvm -o %t %s && // RUN: grep 'define signext i8 @f0()' %t && // RUN: grep 'define signext i16 @f1()' %t && // RUN: grep 'define i32 @f2()' %t && // RUN: grep 'define float @f3()' %t && // RUN: grep 'define double @f4()' %t && // RUN: grep 'define x86_fp80 @f5()' %t &&...
// RUN: clang -triple x86_64-unknown-unknown -emit-llvm -o %t %s && // RUN: grep 'define signext i8 @f0()' %t && // RUN: grep 'define signext i16 @f1()' %t && // RUN: grep 'define i32 @f2()' %t && // RUN: grep 'define float @f3()' %t && // RUN: grep 'define double @f4()' %t && // RUN: grep 'define x86_fp80 @f5()' %t &&...
Add test for enum types
Add test for enum types git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@65540 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/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,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
0fc6d355f3c7bcf56ce20d458d376098a6893884
views/controls/tabbed_pane/tabbed_pane_listener.h
views/controls/tabbed_pane/tabbed_pane_listener.h
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_LISTENER_H_ #define VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_LISTENER_H_ #pragma once namespace views { ...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_LISTENER_H_ #define VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_LISTENER_H_ #pragma once namespace views { ...
Add protected virtual destructor to TabbedPaneListener.
views: Add protected virtual destructor to TabbedPaneListener. The use of a protected virtual destructor is to prevent the destruction of a derived object via a base-class pointer. That's it, TabbedPaneListenere should only be deleted through derived class. Example: class FooListener { public: ... protected: ...
C
bsd-3-clause
gavinp/chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,adobe/chromium,ropik/chromium,yitian134/chromium,ropik/chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,gavinp/chro...
c304fe7966056ee3e246d69e9e330e048c21031c
support/main.c
support/main.c
/* * Mono managed-to-native support code. * * Author: * Joao Matos (joao.matos@xamarin.com) * * (C) 2016 Microsoft, Inc. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Softwar...
/* * Mono managed-to-native support code. * * Author: * Joao Matos (joao.matos@xamarin.com) * * (C) 2016 Microsoft, Inc. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Softwar...
Initialize the local Mono context struct for deterministic behavior.
Initialize the local Mono context struct for deterministic behavior.
C
mit
jonathanpeppers/Embeddinator-4000,mono/Embeddinator-4000,mono/Embeddinator-4000,mono/Embeddinator-4000,mono/Embeddinator-4000,mono/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,mono/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,jonathanpepp...
95b99a670df31ca5271f503f378e5cac3aee8f5e
include/net/irda/irlan_filter.h
include/net/irda/irlan_filter.h
/********************************************************************* * * Filename: irlan_filter.h * Version: * Description: * Status: Experimental. * Author: Dag Brattli <dagb@cs.uit.no> * Created at: Fri Jan 29 15:24:08 1999 * Modified at: Sun Feb 7 23:35:31...
/********************************************************************* * * Filename: irlan_filter.h * Version: * Description: * Status: Experimental. * Author: Dag Brattli <dagb@cs.uit.no> * Created at: Fri Jan 29 15:24:08 1999 * Modified at: Sun Feb 7 23:35:31...
Fix compile warning when CONFIG_PROC_FS=n
[IRDA] irlan: Fix compile warning when CONFIG_PROC_FS=n include/net/irda/irlan_filter.h:31: warning: 'struct seq_file' declared inside parameter list include/net/irda/irlan_filter.h:31: warning: its scope is only this definition or declaration, which is probably not what you want Signed-off-by: Randy Dunlap <e1d10faa...
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_k...
d1adc4294f0b62951d24ac84f0d397fb0385bf07
src/rest_server/string_piece.h
src/rest_server/string_piece.h
// This file is part of MicroRestD <http://github.com/ufal/microrestd/>. // // Copyright 2015 Institute of Formal and Applied Linguistics, Faculty of // Mathematics and Physics, Charles University in Prague, Czech Republic. // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If...
// This file is part of MicroRestD <http://github.com/ufal/microrestd/>. // // Copyright 2015 Institute of Formal and Applied Linguistics, Faculty of // Mathematics and Physics, Charles University in Prague, Czech Republic. // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If...
Allow passing nullptr as only const char* argument.
Allow passing nullptr as only const char* argument.
C
mpl-2.0
ufal/microrestd,ufal/microrestd,ufal/microrestd,ufal/microrestd,ufal/microrestd
e1367466f6d7c816d29fd6c103af7875d9855f9b
LYPopView/Classes/LYPopView.h
LYPopView/Classes/LYPopView.h
// // LYPopView.h // LYPOPVIEW // // CREATED BY LUO YU ON 19/12/2016. // COPYRIGHT © 2016 LUO YU. ALL RIGHTS RESERVED. // #import <UIKit/UIKit.h> @interface LYPopView : UIView { CGFloat padding; CGFloat cornerRadius; CGFloat maxHeight; __weak UIView *vCont; } @property (nonatomic, strong) NSString *title...
// // LYPopView.h // LYPOPVIEW // // CREATED BY LUO YU ON 19/12/2016. // COPYRIGHT © 2016 LUO YU. ALL RIGHTS RESERVED. // #import <UIKit/UIKit.h> @interface LYPopView : UIView { CGFloat padding; CGFloat cornerRadius; CGFloat maxHeight; __weak UIView *vCont; } @property (nonatomic, strong) NSString *title...
Modify : enable dismiss method
Modify : enable dismiss method
C
mit
blodely/LYPopView,blodely/LYPopView
dfdb3a90d41a8d784e39321f64f2c9cca2bbcfb3
proxygen/lib/utils/test/MockTime.h
proxygen/lib/utils/test/MockTime.h
/* * Copyright (c) 2015, 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...
/* * Copyright (c) 2015, 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...
Expire cached TLS session tickets using tlsext_tick_lifetime_hint
Expire cached TLS session tickets using tlsext_tick_lifetime_hint Summary: Our current TLS cache in liger does not respect timeout hints. We should start doing that because it will limit certain kinds of attacks if an attacker gets access to a master key. Test Plan: Added new test in SSLSessionPersistentCacheTest to ...
C
bsd-3-clause
LilMeyer/proxygen,songfj/proxygen,raphaelamorim/proxygen,raphaelamorim/proxygen,raphaelamorim/proxygen,KublaikhanGeek/proxygen,supriyantomaftuh/proxygen,hiproz/proxygen,pueril/proxygen,hongliangzhao/proxygen,raphaelamorim/proxygen,Werror/proxygen,chenmoshushi/proxygen,supriyantomaftuh/proxygen,hiproz/proxygen,jgli/prox...