commit
stringlengths
40
40
old_file
stringlengths
4
112
new_file
stringlengths
4
112
old_contents
stringlengths
0
2.05k
new_contents
stringlengths
28
3.9k
subject
stringlengths
17
736
message
stringlengths
18
4.78k
lang
stringclasses
1 value
license
stringclasses
13 values
repos
stringlengths
7
111k
7efded33d1a46f193690b9efb70e033a43984e66
util/malloccache.h
util/malloccache.h
#ifndef MALLOCCACHE_H #define MALLOCCACHE_H template <size_t blockSize, size_t blockCount> class MallocCache { public: MallocCache() : m_blocksCached(0) { } ~MallocCache() { assert(m_blocksCached >= 0 && m_blocksCached <= blockCount); for (size_t i = 0; i < m_blocksCached; i++) { ::free(m_blocks[i]); } } void *allocate() { assert(m_blocksCached >= 0 && m_blocksCached <= blockCount); if (m_blocksCached) { return m_blocks[--m_blocksCached]; } else { return ::malloc(blockSize); } } void free(void *allocation) { assert(m_blocksCached >= 0 && m_blocksCached <= blockCount); if (m_blocksCached < blockCount) { m_blocks[m_blocksCached++] = allocation; } else { ::free(allocation); } } private: void *m_blocks[blockCount]; size_t m_blocksCached; }; #endif // MALLOCCACHE_H
#ifndef MALLOCCACHE_H #define MALLOCCACHE_H // no-op the cache, sometimes useful for debugging memory issues //#define MALLOCCACHE_PASSTHROUGH template <size_t blockSize, size_t blockCount> class MallocCache { public: MallocCache() : m_blocksCached(0) { } ~MallocCache() { #ifndef MALLOCCACHE_PASSTHROUGH assert(m_blocksCached >= 0 && m_blocksCached <= blockCount); for (size_t i = 0; i < m_blocksCached; i++) { ::free(m_blocks[i]); } #endif } void *allocate() { #ifndef MALLOCCACHE_PASSTHROUGH assert(m_blocksCached >= 0 && m_blocksCached <= blockCount); if (m_blocksCached) { return m_blocks[--m_blocksCached]; } else { return ::malloc(blockSize); } #else return ::malloc(blockSize); #endif } void free(void *allocation) { #ifndef MALLOCCACHE_PASSTHROUGH assert(m_blocksCached >= 0 && m_blocksCached <= blockCount); if (m_blocksCached < blockCount) { m_blocks[m_blocksCached++] = allocation; } else { ::free(allocation); } #else ::free(allocation); #endif } private: void *m_blocks[blockCount]; size_t m_blocksCached; }; #endif // MALLOCCACHE_H
Add an ifdef to disable MallocCache for debugging.
Add an ifdef to disable MallocCache for debugging.
C
lgpl-2.1
KDE/dferry,KDE/dferry
d778283f2fa7da8c0fdc48096fe4fe98009affd0
Nyx/InputComponent.h
Nyx/InputComponent.h
#pragma once #include "Component.h" enum ENTITY_TYPE {PLAYER}; // Commnets class InputComponent : public Component { public: InputComponent(); ~InputComponent(); void SetEntityType(int entityType); void HandleInput(); void HandlePlayerInput(); private: char* m_inputMessage; ENTITY_TYPE m_entityType; }
Handle input by the user
Handle input by the user
C
apache-2.0
Rykkata/nyx
9b4360b6b8e1ba4234f5b11b8217379faafcb3b7
app/src/adb_parser.h
app/src/adb_parser.h
#ifndef SC_ADB_PARSER_H #define SC_ADB_PARSER_H #include "common.h" #include "stddef.h" /** * Parse the ip from the output of `adb shell ip route` */ char * sc_adb_parse_device_ip_from_output(char *buf, size_t buf_len); #endif
#ifndef SC_ADB_PARSER_H #define SC_ADB_PARSER_H #include "common.h" #include "stddef.h" /** * Parse the ip from the output of `adb shell ip route` * * Warning: this function modifies the buffer for optimization purposes. */ char * sc_adb_parse_device_ip_from_output(char *buf, size_t buf_len); #endif
Add warning in function documentation
Add warning in function documentation The function parsing "ip route" output modifies the input buffer to tokenize in place. This must be mentioned in the function documentation.
C
apache-2.0
Genymobile/scrcpy,Genymobile/scrcpy,Genymobile/scrcpy
d1ad3c1bfafd23a8e97f58de84cb609ded486c62
scripts/startclose/moreInfo.c
scripts/startclose/moreInfo.c
startclose: moreInfo New Window [ Name: "More Info"; Left: Get ( WindowDesktopWidth ) - (Get ( WindowDesktopWidth ) / 2 ) ] Go to Layout [ “about” (tempSetup) ] Adjust Window [ Resize to Fit ] Pause/Resume Script [ Indefinitely ] January 23, 平成26 3:39:22 Imagination Quality Management.fp7 - about -1-
startclose: moreInfo New Window [ Name: "More Info"; Left: Get ( WindowDesktopWidth ) - (Get ( WindowDesktopWidth ) / 2 ) ] Go to Layout [ “moreinfo” (tempSetup) ] Adjust Window [ Resize to Fit ] Pause/Resume Script [ Indefinitely ] January 23, 平成26 3:39:22 Imagination Quality Management.fp7 - about -1-
Change more info window layout name
Change more info window layout name
C
apache-2.0
HelpGiveThanks/Library,HelpGiveThanks/Library
9dfa879c1264d0f10fb96915b04e2cc106abce3b
include/features.h
include/features.h
#ifndef __FEATURES_H #define __FEATURES_H #ifdef __STDC__ #define __P(x) x #define __const const /* Almost ansi */ #if __STDC__ != 1 #define const #define volatile #endif #else /* K&R */ #define __P(x) () #define __const #define const #define volatile #endif /* No C++ */ #define __BEGIN_DECLS #define __END_DECLS /* GNUish things */ #define __CONSTVALUE #define __CONSTVALUE2 #define _POSIX_THREAD_SAFE_FUNCTIONS #include <sys/cdefs.h> #endif
#ifndef __FEATURES_H #define __FEATURES_H /* Major and minor version number of the uCLibc library package. Use these macros to test for features in specific releases. */ #define __UCLIBC__ 0 #define __UCLIBC_MAJOR__ 9 #define __UCLIBC_MINOR__ 1 #ifdef __STDC__ #define __P(x) x #define __const const /* Almost ansi */ #if __STDC__ != 1 #define const #define volatile #endif #else /* K&R */ #define __P(x) () #define __const #define const #define volatile #endif /* No C++ */ #define __BEGIN_DECLS #define __END_DECLS /* GNUish things */ #define __CONSTVALUE #define __CONSTVALUE2 #define _POSIX_THREAD_SAFE_FUNCTIONS #include <sys/cdefs.h> #endif
Add in a version number so apps can tell uclib is being used. -Erik
Add in a version number so apps can tell uclib is being used. -Erik
C
lgpl-2.1
joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc
709e6f102189171dfd6b6e9349a741f29bc00660
xs/APR/OS/APR__OS.h
xs/APR/OS/APR__OS.h
/* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ static MP_INLINE U32 mpxs_APR__OS_current_thread_id(pTHX) { #if APR_HAS_THREADS return (U32)apr_os_thread_current(); #else return 0; #endif }
/* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ static MP_INLINE unsigned long mpxs_APR__OS_current_thread_id(pTHX) { #if APR_HAS_THREADS return (unsigned long)apr_os_thread_current(); #else return 0; #endif }
Fix on fbsd amd64 where U32 is 4 bytes and pthread_t is 8.
Fix on fbsd amd64 where U32 is 4 bytes and pthread_t is 8. xs/APR/OS/APR__OS.h: In function 'mpxs_APR__OS_current_thread_id': xs/APR/OS/APR__OS.h:20: warning: cast from pointer to integer of different size Consistently cast this to an unsigned long. git-svn-id: b4be4a41b2a3352907de631eb6da1671a2f7b614@983068 13f79535-47bb-0310-9956-ffa450edef68
C
apache-2.0
Distrotech/mod_perl,Distrotech/mod_perl,Distrotech/mod_perl,Distrotech/mod_perl
6ad9eb749dcae5a1b2e3d5a3b4cd783c9c8c7224
cqrs/artifact_view.h
cqrs/artifact_view.h
#pragma once #include "cqrs/artifact.h" namespace cddd { namespace cqrs { template<class> class basic_artifact_view; template<class DomainEventDispatcher, class DomainEventContainer> class basic_artifact_view<basic_artifact<DomainEventDispatcher, DomainEventContainer>> { public: using id_type = typename basic_artifact<DomainEventDispatcher, DomainEventContainer>::id_type; using size_type = typename basic_artifact<DomainEventDispatcher, DomainEventContainer>::size_type; const id_type &id() const { return artifact_.id(); } size_type revision() const { return artifact_.revision(); } template<class Evt> inline void apply_change(Evt &&e) { using std::forward; artifact_.apply_change(forward<Evt>(e)); } protected: explicit inline basic_artifact_view(basic_artifact<DomainEventDispatcher, DomainEventContainer> &a) : artifact_{a} { } template<class Fun> void add_handler(Fun f) { using std::move; artifact_.add_handler(move(f)); } private: basic_artifact<DomainEventDispatcher, DomainEventContainer> &artifact_; }; typedef basic_artifact_view<artifact> artifact_view; } }
#pragma once #include "cqrs/artifact.h" namespace cddd { namespace cqrs { template<class> class basic_artifact_view; template<class DomainEventDispatcher, class DomainEventContainer> class basic_artifact_view<basic_artifact<DomainEventDispatcher, DomainEventContainer>> { public: using id_type = typename basic_artifact<DomainEventDispatcher, DomainEventContainer>::id_type; using size_type = typename basic_artifact<DomainEventDispatcher, DomainEventContainer>::size_type; const id_type &id() const { return artifact_.id(); } size_type revision() const { return artifact_.revision(); } template<class Evt> inline auto apply_change(Evt &&e) { using std::forward; return artifact_.apply_change(forward<Evt>(e)); } protected: explicit inline basic_artifact_view(basic_artifact<DomainEventDispatcher, DomainEventContainer> &a) : artifact_{a} { } template<class Fun> void add_handler(Fun f) { using std::move; artifact_.add_handler(move(f)); } private: basic_artifact<DomainEventDispatcher, DomainEventContainer> &artifact_; }; typedef basic_artifact_view<artifact> artifact_view; } }
Refactor artifact view to provide event pointer created by the artifact after applying a change
Refactor artifact view to provide event pointer created by the artifact after applying a change
C
mit
skizzay/cddd,skizzay/cddd
4cfc6fe9ed05af1bfc371bd78ad6945b62419e37
test/Sema/i-c-e3.c
test/Sema/i-c-e3.c
// RUN: clang %s -fsyntax-only -verify -pedantic-errors int a() {int p; *(1 ? &p : (void*)(0 && (a(),1))) = 10;} // expected-error {{null pointer expression is not an integer constant expression (but is allowed as an extension)}} // expected-note{{C does not permit evaluated commas in an integer constant expression}}
// RUN: clang %s -fsyntax-only -verify int a() {int p; *(1 ? &p : (void*)(0 && (a(),1))) = 10;}
Fix test. (0 && (a(),1)) is a valid I-C-E according to C99.
Fix test. (0 && (a(),1)) is a valid I-C-E according to C99. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@60331 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang
fa99782c1eb60ffd73915fdd8a3f801a01b79a9d
src/bin/e_error.h
src/bin/e_error.h
#ifdef E_TYPEDEFS #define e_error_message_show(args...) \ { \ char __tmpbuf[PATH_MAX]; \ \ snprintf(__tmpbuf, sizeof(__tmpbuf), ##args); \ e_error_message_show_internal(__tmpbuf); \ } #else #ifndef E_ERROR_H #define E_ERROR_H EAPI void e_error_message_show_internal(char *txt); #endif #endif
#ifdef E_TYPEDEFS #define e_error_message_show(args...) do \ { \ char __tmpbuf[PATH_MAX]; \ \ snprintf(__tmpbuf, sizeof(__tmpbuf), ##args); \ e_error_message_show_internal(__tmpbuf); \ } while (0) #else #ifndef E_ERROR_H #define E_ERROR_H EAPI void e_error_message_show_internal(char *txt); #endif #endif
Fix macro so it can be used as a statement
e: Fix macro so it can be used as a statement Should fix devilhorn's compile error. Signed-off-by: Mike McCormack <[email protected]> git-svn-id: 6ac5796aeae0cef97fb47bcc287d4ce899c6fa6e@61783 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
C
bsd-2-clause
jordemort/e17,jordemort/e17,jordemort/e17
938c9e965d14e6867f165b3be3391b0c15484bf5
src/util/string.h
src/util/string.h
#ifndef UTIL_STRING_H #define UTIL_STRING_H #include "util/common.h" char* strndup(const char* start, size_t len); char* strnrstr(const char* restrict s1, const char* restrict s2, size_t len); #endif
#ifndef UTIL_STRING_H #define UTIL_STRING_H #include "util/common.h" #ifndef strndup // This is sometimes a macro char* strndup(const char* start, size_t len); #endif char* strnrstr(const char* restrict s1, const char* restrict s2, size_t len); #endif
Fix build with strndup on some platforms
Util: Fix build with strndup on some platforms
C
mpl-2.0
mgba-emu/mgba,mgba-emu/mgba,libretro/mgba,nattthebear/mgba,MerryMage/mgba,AdmiralCurtiss/mgba,Iniquitatis/mgba,fr500/mgba,libretro/mgba,Anty-Lemon/mgba,matthewbauer/mgba,iracigt/mgba,cassos/mgba,askotx/mgba,nattthebear/mgba,fr500/mgba,sergiobenrocha2/mgba,sergiobenrocha2/mgba,Anty-Lemon/mgba,jeremyherbert/mgba,MerryMage/mgba,Touched/mgba,fr500/mgba,cassos/mgba,Touched/mgba,Iniquitatis/mgba,AdmiralCurtiss/mgba,iracigt/mgba,Touched/mgba,libretro/mgba,zerofalcon/mgba,sergiobenrocha2/mgba,jeremyherbert/mgba,Iniquitatis/mgba,mgba-emu/mgba,iracigt/mgba,cassos/mgba,fr500/mgba,askotx/mgba,sergiobenrocha2/mgba,askotx/mgba,Anty-Lemon/mgba,sergiobenrocha2/mgba,libretro/mgba,jeremyherbert/mgba,Anty-Lemon/mgba,zerofalcon/mgba,askotx/mgba,Iniquitatis/mgba,iracigt/mgba,libretro/mgba,bentley/mgba,AdmiralCurtiss/mgba,matthewbauer/mgba,bentley/mgba,zerofalcon/mgba,mgba-emu/mgba,jeremyherbert/mgba,MerryMage/mgba
980869bb3c0d627e6190ee90eef18b3d60d109ab
Sources/Ello-Bridging-Header.h
Sources/Ello-Bridging-Header.h
#import "MBProgressHUD.h" #import <SDWebImage/UIImageView+WebCache.h> #import "JTSImageViewController.h" #import "JTSImageInfo.h" #import "UITabBarController+NBUAdditions.h" #import "KINWebBrowserViewController.h" #import <SSPullToRefresh/SSPullToRefresh.h> #import "SVGKit/SVGKit.h"
#import "MBProgressHUD.h" #import <SDWebImage/UIImageView+WebCache.h> #import "JTSImageViewController.h" #import "JTSImageInfo.h" #import "UITabBarController+NBUAdditions.h" #import "KINWebBrowserViewController.h" #import <SSPullToRefresh/SSPullToRefresh.h> #import <SVGKit/SVGKit.h>
Update import statement for consistency.
Update import statement for consistency.
C
mit
ello/ello-ios,ello/ello-ios,ello/ello-ios,ello/ello-ios
b743e26e288da913ce62e96f74f73079c2f37299
fuzz/main.c
fuzz/main.c
#define CGLTF_IMPLEMENTATION #include "../cgltf.h" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { cgltf_options options = {0}; cgltf_data* data = NULL; cgltf_result res = cgltf_parse(&options, Data, Size, &data); if (res == cgltf_result_success) cgltf_free(data); return 0; }
#define CGLTF_IMPLEMENTATION #include "../cgltf.h" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { cgltf_options options = {0}; cgltf_data* data = NULL; cgltf_result res = cgltf_parse(&options, Data, Size, &data); if (res == cgltf_result_success) { cgltf_validate(data); cgltf_free(data); } return 0; }
Add validation to fuzz target
Add validation to fuzz target This make sure new validation code is robust by itself.
C
mit
jkuhlmann/cgltf,jkuhlmann/cgltf,jkuhlmann/cgltf
707924f97fc31d1e25e80e3e6df566dd1f7d4b02
src/common.h
src/common.h
/** \file common.h * \brief Project-wide definitions and macros. * * * SCL; 2012-2015 */ #ifndef COMMON_H #define COMMON_H #define GR1C_VERSION "0.10.2" #define GR1C_COPYRIGHT "Copyright (c) 2012-2015 by Scott C. Livingston,\n" \ "California Institute of Technology\n\n" \ "This is free, open source software, released under a BSD license\n" \ "and without warranty." #define GR1C_INTERACTIVE_PROMPT ">>> " typedef int vartype; typedef char bool; #define True 1 #define False 0 typedef unsigned char byte; #include "util.h" #include "cudd.h" #endif
/** \file common.h * \brief Project-wide definitions and macros. * * * SCL; 2012-2015 */ #ifndef COMMON_H #define COMMON_H #define GR1C_VERSION "0.10.3" #define GR1C_COPYRIGHT "Copyright (c) 2012-2015 by Scott C. Livingston,\n" \ "California Institute of Technology\n\n" \ "This is free, open source software, released under a BSD license\n" \ "and without warranty." #define GR1C_INTERACTIVE_PROMPT ">>> " typedef int vartype; typedef char bool; #define True 1 #define False 0 typedef unsigned char byte; #include "util.h" #include "cudd.h" #endif
Bump version in preparation for next release.
Bump version in preparation for next release.
C
bsd-3-clause
slivingston/gr1c,slivingston/gr1c,slivingston/gr1c
18ef03a558c8f1786f18ee5be9f8a2648e73d608
OctoKit/OCTEntity.h
OctoKit/OCTEntity.h
// // OCTEntity.h // OctoKit // // Created by Josh Abernathy on 1/21/11. // Copyright 2011 GitHub. All rights reserved. // #import "OCTObject.h" @class OCTPlan; @class GHImageRequestOperation; // Represents any GitHub object which is capable of owning repositories. @interface OCTEntity : OCTObject // Returns `login` if no name is explicitly set. @property (nonatomic, copy) NSString *name; @property (nonatomic, copy) NSArray *repositories; @property (nonatomic, copy) NSString *email; @property (nonatomic, copy) NSURL *avatarURL; @property (nonatomic, copy) NSString *login; @property (nonatomic, copy) NSString *blog; @property (nonatomic, copy) NSString *company; @property (nonatomic, assign) NSUInteger collaborators; @property (nonatomic, assign) NSUInteger publicRepoCount; @property (nonatomic, assign) NSUInteger privateRepoCount; @property (nonatomic, assign) NSUInteger diskUsage; @property (nonatomic, readonly, strong) OCTPlan *plan; // TODO: Fix this to "RemoteCounterparts". - (void)mergeRepositoriesWithRemoteCountparts:(NSArray *)remoteRepositories; @end
// // OCTEntity.h // OctoKit // // Created by Josh Abernathy on 1/21/11. // Copyright 2011 GitHub. All rights reserved. // #import "OCTObject.h" @class OCTPlan; // Represents any GitHub object which is capable of owning repositories. @interface OCTEntity : OCTObject // Returns `login` if no name is explicitly set. @property (nonatomic, copy) NSString *name; @property (nonatomic, copy) NSArray *repositories; @property (nonatomic, copy) NSString *email; @property (nonatomic, copy) NSURL *avatarURL; @property (nonatomic, copy) NSString *login; @property (nonatomic, copy) NSString *blog; @property (nonatomic, copy) NSString *company; @property (nonatomic, assign) NSUInteger collaborators; @property (nonatomic, assign) NSUInteger publicRepoCount; @property (nonatomic, assign) NSUInteger privateRepoCount; @property (nonatomic, assign) NSUInteger diskUsage; @property (nonatomic, readonly, strong) OCTPlan *plan; // TODO: Fix this to "RemoteCounterparts". - (void)mergeRepositoriesWithRemoteCountparts:(NSArray *)remoteRepositories; @end
Remove old class forward declaration
Remove old class forward declaration
C
mit
daukantas/octokit.objc,jonesgithub/octokit.objc,Palleas/octokit.objc,CleanShavenApps/octokit.objc,GroundControl-Solutions/octokit.objc,CHNLiPeng/octokit.objc,daemonchen/octokit.objc,Acidburn0zzz/octokit.objc,wrcj12138aaa/octokit.objc,daukantas/octokit.objc,jonesgithub/octokit.objc,xantage/octokit.objc,yeahdongcn/octokit.objc,1234-/octokit.objc,leichunfeng/octokit.objc,cnbin/octokit.objc,daemonchen/octokit.objc,Acidburn0zzz/octokit.objc,CHNLiPeng/octokit.objc,1234-/octokit.objc,wrcj12138aaa/octokit.objc,xantage/octokit.objc,cnbin/octokit.objc,leichunfeng/octokit.objc,Palleas/octokit.objc,phatblat/octokit.objc,GroundControl-Solutions/octokit.objc,phatblat/octokit.objc
50d862bf9bdb359d71c0a13bb7dcb1cf2cd6016f
3/src/e/options.c
3/src/e/options.c
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "options.h" static Options * _new() { Options *opts = (Options *)malloc(sizeof(Options)); if(opts) { memset(opts, 0, sizeof(Options)); } return opts; } static Options * make(int argc, char *argv[]) { Options *opts = _new(); int i = 1; for(;;) { if(i >= (argc - 1)) break; if(!strcmp(argv[i], "sdbfile")) { opts->sdbFilename = argv[i+1]; i = i + 2; } else if(!strcmp(argv[i], "romfile")) { opts->romFilename = argv[i+1]; i = i + 2; } else { fprintf(stderr, "Warning: unknown option %s\n", argv[i]); i++; } } if (!opts->romFilename) { opts->romFilename = "roms/forth"; } return opts; } const struct interface_Options module_Options = { .make = &make, };
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "options.h" static Options * _new() { Options *opts = (Options *)malloc(sizeof(Options)); if(opts) { memset(opts, 0, sizeof(Options)); } return opts; } static Options * make(int argc, char *argv[]) { Options *opts = _new(); int i = 1; /* Defaults */ opts->romFilename = "roms/forth"; /* Parse the command line */ for(;;) { if(i >= (argc - 1)) break; if(!strcmp(argv[i], "sdbfile")) { opts->sdbFilename = argv[i+1]; i = i + 2; } else if(!strcmp(argv[i], "romfile")) { opts->romFilename = argv[i+1]; i = i + 2; } else { fprintf(stderr, "Warning: unknown option %s\n", argv[i]); i++; } } return opts; } const struct interface_Options module_Options = { .make = &make, };
Rework the command line option defaults mechanism
e: Rework the command line option defaults mechanism
C
mpl-2.0
KestrelComputer/kestrel,sam-falvo/kestrel,KestrelComputer/kestrel,sam-falvo/kestrel,sam-falvo/kestrel,KestrelComputer/kestrel,KestrelComputer/kestrel,sam-falvo/kestrel
8c561b7c431ca247ef15f2dd59bc0f6efb963ef6
hello.c
hello.c
#include <stdio.h> int main() { puts("Hello, people!"); return 0; }
#include <stdio.h> int main() { puts("Hello, people!"); /* Preferred over printf */ return 0; }
Comment the main .c file
Comment the main .c file
C
bsd-3-clause
riuri/first,riuri/first
387ec6864a25317ff45f9001809c4752047e2637
src/os/Linux/findself.c
src/os/Linux/findself.c
#define _XOPEN_SOURCE 500 #include <unistd.h> #include <stdlib.h> char *os_find_self(void) { // PATH_MAX (used by readlink(2)) is not necessarily available size_t size = 2048, used = 0; char *path = NULL; do { size *= 2; path = realloc(path, size); used = readlink("/proc/self/exe", path, size); } while (used > size && path != NULL); return path; }
#define _XOPEN_SOURCE 500 #include <unistd.h> #include <stdlib.h> char *os_find_self(void) { // PATH_MAX (used by readlink(2)) is not necessarily available size_t size = 2048, used = 0; char *path = NULL; do { size *= 2; path = realloc(path, size); used = readlink("/proc/self/exe", path, size); path[used - 1] = '\0'; } while (used >= size && path != NULL); return path; }
Mend loop condition from 344aae0
Mend loop condition from 344aae0
C
mit
kulp/tenyr,kulp/tenyr,kulp/tenyr
042453918223812fd6baaad696d65f9b1e886c9f
src/xvalid.c
src/xvalid.c
/** * Copyright (c) 2011 Jon Maken, All Rights Reserved * License: 3-Clause BSD * Revision: 07/21/2011 2:44:32 PM */ #include <stdio.h> static void usage(void) { printf("XVal: Validate XML documents\n"); printf("Usage: xval [--dtd DTD_FILE | --xsd XSD_FILE] XML_FILE ...\n\n"); printf(" --dtd DTD_FILE validate against external DTD file\n"); printf(" --xsd XSD_FILE validate against external XSD schema file\n"); } static int process_options(int argc, char **argv) { if (argc == 1) return(1); return(0); } int main(int argc, char **argv) { int rv; if ((rv = process_options(argc, argv) != 0)) { usage(); return(rv); } /* cleanup function for the XML library */ /* xmlCleanupParser(); */ return(0); }
Add placeholder C code to finish build scripts
Add placeholder C code to finish build scripts
C
bsd-3-clause
jonforums/xvalid,jonforums/xvalid,jonforums/xvalid
855718c59f77594a0911f80592875daff05d8b8c
t_gc.h
t_gc.h
/* $Id: t_gc.h,v 1.7 2011/09/04 13:00:54 mit-sato Exp $ */ #ifndef __T_GC__ #define __T_GC__ #ifdef PROF # define GC_INIT() 0 # define GC_MALLOC(s) malloc(s) # define GC_MALLOC_ATOMIC(s) malloc(s) #else # include <gc.h> #endif /* PROF */ #endif /* __T_GC__ */
/* $Id: t_gc.h,v 1.7 2011/09/04 13:00:54 mit-sato Exp $ */ #ifndef __T_GC__ #define __T_GC__ #ifdef PROF # define GC_INIT() 0 # define GC_MALLOC(s) malloc(s) # define GC_MALLOC_ATOMIC(s) malloc(s) # define GC_register_finalizer_ignore_self(o,f,c,x,y) 0 # define GC_add_roots(s,e) 0 #else # include <gc.h> #endif /* PROF */ #endif /* __T_GC__ */
Add dummy macro GC_register_finalizer_ignore_self and GC_add_roots.
Add dummy macro GC_register_finalizer_ignore_self and GC_add_roots.
C
mit
mitchan0321/perfume,mitchan0321/perfume,mitchan0321/perfume,mitchan0321/perfume,mitchan0321/perfume
f8f7140dcb8c109ad0571b0c6c0f46c464c2ddad
mParticle-Apple-SDK/Kits/MPKitAPI.h
mParticle-Apple-SDK/Kits/MPKitAPI.h
#import <Foundation/Foundation.h> @class MPAttributionResult; @class FilteredMParticleUser; @protocol MPKitProtocol; @interface MPKitAPI : NSObject - (void)logError:(NSString *_Nullable)format, ...; - (void)logWarning:(NSString *_Nullable)format, ...; - (void)logDebug:(NSString *_Nullable)format, ...; - (void)logVerbose:(NSString *_Nullable)format, ...; - (NSDictionary<NSString *, NSString *> *_Nullable)integrationAttributes; - (void)onAttributionCompleteWithResult:(MPAttributionResult *_Nonnull)result error:(NSError *_Nullable)error; - (FilteredMParticleUser *_Nonnull)getCurrentUserWithKit:(id<MPKitProtocol> _Nonnull)kit; - (nullable NSNumber *)incrementUserAttribute:(NSString *_Nonnull)key byValue:(NSNumber *_Nonnull)value forUser:(FilteredMParticleUser *_Nonnull)filteredUser; - (void)setUserAttribute:(NSString *_Nonnull)key value:(id _Nonnull)value forUser:(FilteredMParticleUser *_Nonnull)filteredUser; - (void)setUserAttributeList:(NSString *_Nonnull)key values:(NSArray<NSString *> * _Nonnull)values forUser:(FilteredMParticleUser *_Nonnull)filteredUser; - (void)setUserTag:(NSString *_Nonnull)tag forUser:(FilteredMParticleUser *_Nonnull)filteredUser; - (void)removeUserAttribute:(NSString *_Nonnull)key forUser:(FilteredMParticleUser *_Nonnull)filteredUser; @end
#import <Foundation/Foundation.h> @class MPAttributionResult; @class FilteredMParticleUser; @protocol MPKitProtocol; @interface MPKitAPI : NSObject - (void)logError:(NSString *_Nullable)format, ...; - (void)logWarning:(NSString *_Nullable)format, ...; - (void)logDebug:(NSString *_Nullable)format, ...; - (void)logVerbose:(NSString *_Nullable)format, ...; - (NSDictionary<NSString *, NSString *> *_Nullable)integrationAttributes; - (void)onAttributionCompleteWithResult:(MPAttributionResult *_Nullable)result error:(NSError *_Nullable)error; - (FilteredMParticleUser *_Nonnull)getCurrentUserWithKit:(id<MPKitProtocol> _Nonnull)kit; - (nullable NSNumber *)incrementUserAttribute:(NSString *_Nonnull)key byValue:(NSNumber *_Nonnull)value forUser:(FilteredMParticleUser *_Nonnull)filteredUser; - (void)setUserAttribute:(NSString *_Nonnull)key value:(id _Nonnull)value forUser:(FilteredMParticleUser *_Nonnull)filteredUser; - (void)setUserAttributeList:(NSString *_Nonnull)key values:(NSArray<NSString *> * _Nonnull)values forUser:(FilteredMParticleUser *_Nonnull)filteredUser; - (void)setUserTag:(NSString *_Nonnull)tag forUser:(FilteredMParticleUser *_Nonnull)filteredUser; - (void)removeUserAttribute:(NSString *_Nonnull)key forUser:(FilteredMParticleUser *_Nonnull)filteredUser; @end
Allow nil result in kit api attribution method
Allow nil result in kit api attribution method Closes #66.
C
apache-2.0
mParticle/mParticle-iOS-SDK,mParticle/mParticle-iOS-SDK,mParticle/mparticle-apple-sdk,mParticle/mparticle-apple-sdk,mParticle/mparticle-apple-sdk,mParticle/mparticle-apple-sdk,mParticle/mparticle-apple-sdk,mParticle/mParticle-iOS-SDK,mParticle/mparticle-apple-sdk
ac6d2c574d393bfbf1dcc1250c730550cd8c4150
src/augs/misc/time_utils.h
src/augs/misc/time_utils.h
#pragma once #include <ctime> #include <string> #include <chrono> #include "augs/filesystem/file_time_type.h" namespace augs { struct date_time { // GEN INTROSPECTOR struct augs::timestamp std::time_t t; // END GEN INTROSPECTOR date_time(); date_time(const std::time_t& t) : t(t) {} date_time(const std::chrono::system_clock::time_point&); #if !PLATFORM_WINDOWS date_time(const file_time_type&); #endif operator std::time_t() const { return t; } std::string get_stamp() const; std::string get_readable() const; unsigned long long seconds_ago() const; std::string how_long_ago() const; std::string how_long_ago_tell_seconds() const; private: std::string how_long_ago(bool) const; }; }
#pragma once #include <ctime> #include <string> #include <chrono> #include "augs/filesystem/file_time_type.h" namespace augs { struct date_time { // GEN INTROSPECTOR struct augs::timestamp std::time_t t; // END GEN INTROSPECTOR date_time(); date_time(const std::time_t& t) : t(t) {} date_time(const std::chrono::system_clock::time_point&); date_time(const file_time_type&); operator std::time_t() const { return t; } std::string get_stamp() const; std::string get_readable() const; unsigned long long seconds_ago() const; std::string how_long_ago() const; std::string how_long_ago_tell_seconds() const; private: std::string how_long_ago(bool) const; }; }
Build error fix for Windows
Build error fix for Windows
C
agpl-3.0
TeamHypersomnia/Hypersomnia,TeamHypersomnia/Augmentations,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Augmentations,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia
76df39bdfbc3eaa67abde2a413b0610a29502520
USART.h
USART.h
/* * USART.h * * Created: 2016/9/10 16:30:30 * Author: dusch */ #ifndef USART_H_ #define USART_H_ #define BAUD 9600 #define F_CPU 12000000UL #include <avr/interrupt.h> void USART_Init(void); void USART_Transmit(unsigned char data); unsigned char USART_Receive(void); #endif /* USART_H_ */
/* * USART.h * * Created: 2016/9/10 16:30:30 * Author: dusch */ #ifndef USART_H_ #define USART_H_ #define BAUD 9600 #define F_CPU 8000000UL #include <avr/interrupt.h> void USART_Init(void); void USART_Transmit(unsigned char data); unsigned char USART_Receive(void); #endif /* USART_H_ */
Change default F_CPU from 12000000 to 8000000
Change default F_CPU from 12000000 to 8000000
C
bsd-3-clause
Schummacher/AVR_SCLib,Schummacher/AVR_SCLib
e8804501f1561e6244bd8a86ce08bbb84c0d1dcc
ext/osl/rbosl_move.h
ext/osl/rbosl_move.h
#include "ruby.h" #include <osl/move.h> extern VALUE cMove; using namespace osl; void rb_move_free(Move* ptr); static VALUE rb_move_s_new(VALUE self); void Init_move(void);
Add a header file for osl::Move
Add a header file for osl::Move
C
mit
myokoym/ruby-osl,myokoym/ruby-osl,myokoym/ruby-osl
c894081a7f7ac467d6282b8955e32dd3ac040ef1
base/float_util.h
base/float_util.h
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef BASE_FLOAT_UTIL_H_ #define BASE_FLOAT_UTIL_H_ #pragma once #include "build/build_config.h" #include <float.h> #include <math.h> #if defined(OS_SOLARIS) #include <ieeefp.h> #endif namespace base { inline bool IsFinite(const double& number) { #if defined(OS_POSIX) return finite(number) != 0; #elif defined(OS_WIN) return _finite(number) != 0; #endif } } // namespace base #endif // BASE_FLOAT_UTIL_H_
// Copyright (c) 2012 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 BASE_FLOAT_UTIL_H_ #define BASE_FLOAT_UTIL_H_ #pragma once #include "build/build_config.h" #include <float.h> #include <math.h> #if defined(OS_SOLARIS) #include <ieeefp.h> #endif namespace base { inline bool IsFinite(const double& number) { #if defined(OS_MACOSX) // C99 says isfinite() replaced finite(), and iOS does not provide the // older call. return isfinite(number) != 0; #elif defined(OS_POSIX) return finite(number) != 0; #elif defined(OS_WIN) return _finite(number) != 0; #endif } } // namespace base #endif // BASE_FLOAT_UTIL_H_
Use isfinite instead of finite on Mac
Use isfinite instead of finite on Mac According to math.h in the 10.6 SDK, finite is deprecated in favor of isfinite, and finite isn't available on iOS. BUG=None TEST=None Review URL: https://chromiumcodereview.appspot.com/10704126 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@145876 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
dushu1203/chromium.src,hujiajie/pa-chromium,dednal/chromium.src,timopulkkinen/BubbleFish,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk-efl,dednal/chromium.src,pozdnyakov/chromium-crosswalk,M4sse/chromium.src,Jonekee/chromium.src,patrickm/chromium.src,patrickm/chromium.src,keishi/chromium,axinging/chromium-crosswalk,hujiajie/pa-chromium,ondra-novak/chromium.src,PeterWangIntel/chromium-crosswalk,ChromiumWebApps/chromium,junmin-zhu/chromium-rivertrail,Fireblend/chromium-crosswalk,M4sse/chromium.src,ondra-novak/chromium.src,pozdnyakov/chromium-crosswalk,junmin-zhu/chromium-rivertrail,zcbenz/cefode-chromium,crosswalk-project/chromium-crosswalk-efl,ondra-novak/chromium.src,PeterWangIntel/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,littlstar/chromium.src,axinging/chromium-crosswalk,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,mogoweb/chromium-crosswalk,M4sse/chromium.src,hujiajie/pa-chromium,ltilve/chromium,axinging/chromium-crosswalk,nacl-webkit/chrome_deps,Jonekee/chromium.src,pozdnyakov/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,axinging/chromium-crosswalk,jaruba/chromium.src,ChromiumWebApps/chromium,hgl888/chromium-crosswalk-efl,Just-D/chromium-1,pozdnyakov/chromium-crosswalk,ChromiumWebApps/chromium,PeterWangIntel/chromium-crosswalk,markYoungH/chromium.src,Jonekee/chromium.src,Pluto-tv/chromium-crosswalk,dednal/chromium.src,M4sse/chromium.src,ondra-novak/chromium.src,bright-sparks/chromium-spacewalk,chuan9/chromium-crosswalk,nacl-webkit/chrome_deps,keishi/chromium,hgl888/chromium-crosswalk,anirudhSK/chromium,keishi/chromium,patrickm/chromium.src,Jonekee/chromium.src,dushu1203/chromium.src,bright-sparks/chromium-spacewalk,Chilledheart/chromium,hgl888/chromium-crosswalk-efl,junmin-zhu/chromium-rivertrail,chuan9/chromium-crosswalk,timopulkkinen/BubbleFish,crosswalk-project/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,bright-sparks/chromium-spacewalk,Jonekee/chromium.src,Chilledheart/chromium,timopulkkinen/BubbleFish,markYoungH/chromium.src,TheTypoMaster/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,keishi/chromium,hgl888/chromium-crosswalk,Jonekee/chromium.src,hgl888/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,jaruba/chromium.src,jaruba/chromium.src,junmin-zhu/chromium-rivertrail,anirudhSK/chromium,krieger-od/nwjs_chromium.src,timopulkkinen/BubbleFish,Chilledheart/chromium,krieger-od/nwjs_chromium.src,mohamed--abdel-maksoud/chromium.src,TheTypoMaster/chromium-crosswalk,ChromiumWebApps/chromium,patrickm/chromium.src,axinging/chromium-crosswalk,Pluto-tv/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,ChromiumWebApps/chromium,Just-D/chromium-1,mohamed--abdel-maksoud/chromium.src,axinging/chromium-crosswalk,hujiajie/pa-chromium,Pluto-tv/chromium-crosswalk,zcbenz/cefode-chromium,patrickm/chromium.src,TheTypoMaster/chromium-crosswalk,ltilve/chromium,mogoweb/chromium-crosswalk,junmin-zhu/chromium-rivertrail,Fireblend/chromium-crosswalk,timopulkkinen/BubbleFish,krieger-od/nwjs_chromium.src,junmin-zhu/chromium-rivertrail,krieger-od/nwjs_chromium.src,pozdnyakov/chromium-crosswalk,hujiajie/pa-chromium,hgl888/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,markYoungH/chromium.src,ltilve/chromium,Just-D/chromium-1,junmin-zhu/chromium-rivertrail,markYoungH/chromium.src,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk-efl,ChromiumWebApps/chromium,zcbenz/cefode-chromium,timopulkkinen/BubbleFish,Pluto-tv/chromium-crosswalk,Chilledheart/chromium,chuan9/chromium-crosswalk,Just-D/chromium-1,mogoweb/chromium-crosswalk,zcbenz/cefode-chromium,anirudhSK/chromium,Just-D/chromium-1,markYoungH/chromium.src,anirudhSK/chromium,nacl-webkit/chrome_deps,axinging/chromium-crosswalk,Fireblend/chromium-crosswalk,timopulkkinen/BubbleFish,jaruba/chromium.src,zcbenz/cefode-chromium,dednal/chromium.src,dushu1203/chromium.src,fujunwei/chromium-crosswalk,patrickm/chromium.src,ondra-novak/chromium.src,ondra-novak/chromium.src,patrickm/chromium.src,Pluto-tv/chromium-crosswalk,krieger-od/nwjs_chromium.src,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk,littlstar/chromium.src,mogoweb/chromium-crosswalk,ltilve/chromium,mohamed--abdel-maksoud/chromium.src,ondra-novak/chromium.src,keishi/chromium,TheTypoMaster/chromium-crosswalk,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,jaruba/chromium.src,zcbenz/cefode-chromium,Just-D/chromium-1,M4sse/chromium.src,jaruba/chromium.src,Chilledheart/chromium,Chilledheart/chromium,keishi/chromium,junmin-zhu/chromium-rivertrail,ltilve/chromium,PeterWangIntel/chromium-crosswalk,fujunwei/chromium-crosswalk,dednal/chromium.src,nacl-webkit/chrome_deps,patrickm/chromium.src,Fireblend/chromium-crosswalk,dednal/chromium.src,dushu1203/chromium.src,dushu1203/chromium.src,jaruba/chromium.src,mogoweb/chromium-crosswalk,timopulkkinen/BubbleFish,fujunwei/chromium-crosswalk,dednal/chromium.src,Just-D/chromium-1,anirudhSK/chromium,markYoungH/chromium.src,fujunwei/chromium-crosswalk,keishi/chromium,dushu1203/chromium.src,keishi/chromium,jaruba/chromium.src,chuan9/chromium-crosswalk,Chilledheart/chromium,nacl-webkit/chrome_deps,Pluto-tv/chromium-crosswalk,pozdnyakov/chromium-crosswalk,dushu1203/chromium.src,mogoweb/chromium-crosswalk,markYoungH/chromium.src,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk-efl,nacl-webkit/chrome_deps,dednal/chromium.src,hgl888/chromium-crosswalk,Fireblend/chromium-crosswalk,krieger-od/nwjs_chromium.src,keishi/chromium,ltilve/chromium,Just-D/chromium-1,pozdnyakov/chromium-crosswalk,mogoweb/chromium-crosswalk,jaruba/chromium.src,hgl888/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,bright-sparks/chromium-spacewalk,chuan9/chromium-crosswalk,nacl-webkit/chrome_deps,krieger-od/nwjs_chromium.src,krieger-od/nwjs_chromium.src,hujiajie/pa-chromium,PeterWangIntel/chromium-crosswalk,hujiajie/pa-chromium,Pluto-tv/chromium-crosswalk,littlstar/chromium.src,Chilledheart/chromium,nacl-webkit/chrome_deps,fujunwei/chromium-crosswalk,fujunwei/chromium-crosswalk,ChromiumWebApps/chromium,mohamed--abdel-maksoud/chromium.src,Jonekee/chromium.src,dushu1203/chromium.src,zcbenz/cefode-chromium,TheTypoMaster/chromium-crosswalk,Just-D/chromium-1,hgl888/chromium-crosswalk,fujunwei/chromium-crosswalk,nacl-webkit/chrome_deps,hujiajie/pa-chromium,PeterWangIntel/chromium-crosswalk,mogoweb/chromium-crosswalk,M4sse/chromium.src,mogoweb/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,bright-sparks/chromium-spacewalk,mogoweb/chromium-crosswalk,axinging/chromium-crosswalk,M4sse/chromium.src,mohamed--abdel-maksoud/chromium.src,zcbenz/cefode-chromium,dushu1203/chromium.src,axinging/chromium-crosswalk,pozdnyakov/chromium-crosswalk,pozdnyakov/chromium-crosswalk,littlstar/chromium.src,crosswalk-project/chromium-crosswalk-efl,anirudhSK/chromium,hgl888/chromium-crosswalk-efl,zcbenz/cefode-chromium,Jonekee/chromium.src,crosswalk-project/chromium-crosswalk-efl,zcbenz/cefode-chromium,littlstar/chromium.src,Pluto-tv/chromium-crosswalk,ChromiumWebApps/chromium,anirudhSK/chromium,dednal/chromium.src,jaruba/chromium.src,jaruba/chromium.src,mohamed--abdel-maksoud/chromium.src,hujiajie/pa-chromium,krieger-od/nwjs_chromium.src,chuan9/chromium-crosswalk,markYoungH/chromium.src,anirudhSK/chromium,Fireblend/chromium-crosswalk,junmin-zhu/chromium-rivertrail,ondra-novak/chromium.src,nacl-webkit/chrome_deps,junmin-zhu/chromium-rivertrail,dushu1203/chromium.src,bright-sparks/chromium-spacewalk,hujiajie/pa-chromium,TheTypoMaster/chromium-crosswalk,Jonekee/chromium.src,markYoungH/chromium.src,littlstar/chromium.src,crosswalk-project/chromium-crosswalk-efl,anirudhSK/chromium,M4sse/chromium.src,mohamed--abdel-maksoud/chromium.src,dushu1203/chromium.src,Fireblend/chromium-crosswalk,axinging/chromium-crosswalk,bright-sparks/chromium-spacewalk,markYoungH/chromium.src,patrickm/chromium.src,anirudhSK/chromium,bright-sparks/chromium-spacewalk,chuan9/chromium-crosswalk,pozdnyakov/chromium-crosswalk,bright-sparks/chromium-spacewalk,Pluto-tv/chromium-crosswalk,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk-efl,Jonekee/chromium.src,markYoungH/chromium.src,M4sse/chromium.src,ltilve/chromium,ChromiumWebApps/chromium,nacl-webkit/chrome_deps,littlstar/chromium.src,hgl888/chromium-crosswalk-efl,chuan9/chromium-crosswalk,fujunwei/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,PeterWangIntel/chromium-crosswalk,junmin-zhu/chromium-rivertrail,timopulkkinen/BubbleFish,Chilledheart/chromium,hujiajie/pa-chromium,keishi/chromium,ondra-novak/chromium.src,anirudhSK/chromium,zcbenz/cefode-chromium,ltilve/chromium,axinging/chromium-crosswalk,hgl888/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,littlstar/chromium.src,fujunwei/chromium-crosswalk,ChromiumWebApps/chromium,keishi/chromium,timopulkkinen/BubbleFish,Jonekee/chromium.src,ChromiumWebApps/chromium,krieger-od/nwjs_chromium.src,dednal/chromium.src,timopulkkinen/BubbleFish,M4sse/chromium.src,dednal/chromium.src,ChromiumWebApps/chromium,M4sse/chromium.src,hgl888/chromium-crosswalk,ltilve/chromium
0d3b50ec8667ef96e6aa774e2617eb5a8c5f8034
test/CodeGen/writable-strings.c
test/CodeGen/writable-strings.c
// RUN: clang -emit-llvm -fwritable-string %s int main() { char *str = "abc"; str[0] = '1'; printf("%s", str); }
// RUN: clang -emit-llvm -fwritable-strings %s int main() { char *str = "abc"; str[0] = '1'; printf("%s", str); }
Fix typo in writable string test
Fix typo in writable string test git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@44398 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/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,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang
7d9656b13d1425481e2af8656f7009ad1056e484
trace.h
trace.h
#ifndef _TRACE_H_ #define _TRACE_H_ #include <stdio.h> #include <errno.h> #ifdef DEBUG #define TRACE ERROR #else #define TRACE(fmt,arg...) ((void) 0) #endif #ifdef DEBUG #define ERROR(fmt,arg...) \ fprintf(stderr, "%s:%d: "fmt, __func__, __LINE__, ##arg) #else #define ERROR(fmt,arg...) \ fprintf(stderr, "%s: "fmt, program_invocation_short_name, ##arg) #endif #define FATAL(fmt,arg...) do { \ ERROR(fmt, ##arg); \ exit(1); \ } while (0) #endif
#ifndef _TRACE_H_ #define _TRACE_H_ #include <stdio.h> #include <errno.h> #ifdef DEBUG #define TRACE ERROR #else static inline void TRACE(const char *fmt, ...) { } #endif #ifdef DEBUG #define ERROR(fmt,arg...) \ fprintf(stderr, "%s:%d: "fmt, __func__, __LINE__, ##arg) #else #define ERROR(fmt,arg...) \ fprintf(stderr, "%s: "fmt, program_invocation_short_name, ##arg) #endif #define FATAL(fmt,arg...) do { \ ERROR(fmt, ##arg); \ exit(1); \ } while (0) #endif
Make TRACE() safe when DEBUG is disabled.
Make TRACE() safe when DEBUG is disabled.
C
lgpl-2.1
dimm0/tacc_stats,aaichsmn/tacc_stats,dimm0/tacc_stats,sdsc/xsede_stats,dimm0/tacc_stats,TACC/tacc_stats,sdsc/xsede_stats,ubccr/tacc_stats,TACCProjects/tacc_stats,dimm0/tacc_stats,TACCProjects/tacc_stats,dimm0/tacc_stats,TACCProjects/tacc_stats,sdsc/xsede_stats,TACCProjects/tacc_stats,ubccr/tacc_stats,rtevans/tacc_stats_old,aaichsmn/tacc_stats,aaichsmn/tacc_stats,rtevans/tacc_stats_old,ubccr/tacc_stats,aaichsmn/tacc_stats,ubccr/tacc_stats,sdsc/xsede_stats,ubccr/tacc_stats,TACC/tacc_stats,TACC/tacc_stats,rtevans/tacc_stats_old,TACC/tacc_stats,TACC/tacc_stats
754fbe3028dff6448a4d50ead35911578f91c7d8
test/test_encode_atom.c
test/test_encode_atom.c
#include <bert/encoder.h> #include <bert/magic.h> #include <bert/errno.h> #include "test.h" #include <string.h> unsigned char output[6]; void test_output() { if (output[0] != BERT_MAGIC) { test_fail("bert_encoder_push did not add the magic byte"); } if (output[1] != BERT_ATOM) { test_fail("bert_encoder_push did not add the SMALL_INT magic byte"); } size_t expected_length = 2; if (output[3] != expected_length) { test_fail("bert_encoder_push encoded %u as the atom length, expected %u",output[3],expected_length); } const char *expected = "id"; test_strings((const char *)(output+4),expected,expected_length); } int main() { bert_encoder_t *encoder = test_encoder(output,6); bert_data_t *data; if (!(data = bert_data_create_atom("id"))) { test_fail("malloc failed"); } test_encoder_push(encoder,data); bert_data_destroy(data); bert_encoder_destroy(encoder); test_output(); return 0; }
#include <bert/encoder.h> #include <bert/magic.h> #include <bert/errno.h> #include "test.h" #include <string.h> #define EXPECTED_LENGTH 2 #define EXPECTED "id" #define OUTPUT_SIZE (1 + 1 + 2 + EXPECTED_LENGTH) unsigned char output[OUTPUT_SIZE]; void test_output() { if (output[0] != BERT_MAGIC) { test_fail("bert_encoder_push did not add the magic byte"); } if (output[1] != BERT_ATOM) { test_fail("bert_encoder_push did not add the SMALL_INT magic byte"); } if (output[3] != EXPECTED_LENGTH) { test_fail("bert_encoder_push encoded %u as the atom length, expected %u",output[3],expected_length); } test_strings((const char *)(output+4),EXPECTED,expected_length); } int main() { bert_encoder_t *encoder = test_encoder(output,OUTPUT_SIZE); bert_data_t *data; if (!(data = bert_data_create_atom(EXPECTED))) { test_fail("malloc failed"); } test_encoder_push(encoder,data); bert_data_destroy(data); bert_encoder_destroy(encoder); test_output(); return 0; }
Use EXPECTED/EXPECTED_LENGTH/OUTPUT_SIZE macros in the atom encoding test.
Use EXPECTED/EXPECTED_LENGTH/OUTPUT_SIZE macros in the atom encoding test.
C
mit
postmodern/libBERT
b6d8576055965aed1d2cf796936c293462778b66
screen_list.c
screen_list.c
//Finished just draw_new function, Sleeping zzZZ #include <stdio.h> #include <stdlib.h> #include <string.h> #define LENLINE 255 //global variable assignment struct node { char string[LENLINE]; struct node *next; //next and previous address node linked }; int line_amount = 0; int draw_new(char *name, int socket,struct node *root); // addcontact prototype int pop_contact(char *name, struct node *root); // pop prototype int read(struct node *root); // read prototype int main(){ //Initial username's linked list struct node *root, *current; root = malloc(sizeof(struct node)); root->next = 0; current = root; } //------------------------------------------------------------------------------ int draw_new(char *string, struct node *root){ int i = 0; struct node *current; current = root; while ( current->next != 0) current = current->next; //########## create new node ##########// current->next = malloc(sizeof(struct node)); current = current->next; current->next = 0; //Copy input string into string's var inside node strcpy(current->string, string); line_amount++; } //------------------------------------------------------------------------------- int pop_contact(char *name,struct node *root){ struct node *current, *temp; current = root; while(current->next != 0){ if(strcmp(current->next->username, name) == 0){ temp = current->next; current->next = current->next->next; free(temp); // clear(pop) memory of disconect node. return 0; } current = current->next; } } //--------------------------------------------------------------------------------- int read(struct node *root){ struct node *current; current = root; while(current->next != 0){ current = current->next; printf("----------------------\n"); printf("User : %s\nsocket : %d\n", current->username, current->socket); printf("----------------------\n"); } }
Implement add_contant to draw function
Implement add_contant to draw function
C
mit
chin8628/terminal-s-chat
9ab39d421665c1420afae6d8e006b01e7d0e6c61
modules/acct_csv/rtpp_csv_acct.c
modules/acct_csv/rtpp_csv_acct.c
#include <stdint.h> #include <stdlib.h> #include "rtpp_module.h" #define MI_VER_INIT(sname) {.rev = MODULE_API_REVISION, .mi_size = sizeof(sname)} struct moduleinfo rtpp_module = { .name = "csv_acct", .ver = MI_VER_INIT(struct moduleinfo) };
#include <assert.h> #include <stdint.h> #include <stdlib.h> #include "rtpp_types.h" #include "rtpp_module.h" #define MI_VER_INIT(sname) {.rev = MODULE_API_REVISION, .mi_size = sizeof(sname)} struct rtpp_module_priv { int foo; }; static struct rtpp_module_priv *rtpp_csv_acct_ctor(struct rtpp_cfg_stable *); static void rtpp_csv_acct_dtor(struct rtpp_module_priv *); struct moduleinfo rtpp_module = { .name = "csv_acct", .ver = MI_VER_INIT(struct moduleinfo), .ctor = rtpp_csv_acct_ctor, .dtor = rtpp_csv_acct_dtor }; static struct rtpp_module_priv bar; static struct rtpp_module_priv * rtpp_csv_acct_ctor(struct rtpp_cfg_stable *cfsp) { bar.foo = 123456; return (&bar); } static void rtpp_csv_acct_dtor(struct rtpp_module_priv *pvt) { assert(pvt->foo == 123456); return; }
Add simple constructor and destructor.
Add simple constructor and destructor.
C
bsd-2-clause
synety-jdebp/rtpproxy,dsanders11/rtpproxy,dsanders11/rtpproxy,sippy/rtpproxy,dsanders11/rtpproxy,jevonearth/rtpproxy,synety-jdebp/rtpproxy,synety-jdebp/rtpproxy,jevonearth/rtpproxy,jevonearth/rtpproxy,jevonearth/rtpproxy,synety-jdebp/rtpproxy,sippy/rtpproxy,sippy/rtpproxy
0c59c40279df5d9fe88e254e04709fc361ab35d1
tools/examples/svnserve-sgid.c
tools/examples/svnserve-sgid.c
/* * Wrapper to run the svnserve process setgid. * The idea is to avoid the problem that some interpreters like bash * invoked by svnserve in hook scripts will reset the effective gid to * the real gid, nuking the effect of an ordinary setgid svnserve binary. * Sadly, to set the real gid portably, you need to be root, if only * for a moment. * Also smashes the environment to something known, so that games * can't be played to try to break the security of the hook scripts, * by setting IFS, PATH, and similar means. */ /* * Written by Perry Metzger, and placed into the public domain. */ #include <stdio.h> #include <unistd.h> #define REAL_PATH "/usr/bin/svnserve.real" char *newenv[] = { "PATH=/bin:/usr/bin", "SHELL=/bin/sh", NULL }; int main(int argc, char **argv) { if (setgid(getegid()) == -1) { perror("setgid(getegid())"); return 1; } if (seteuid(getuid()) == -1) { perror("seteuid(getuid())"); return 1; } execve(REAL_PATH, argv, newenv); perror("attempting to exec " REAL_PATH " failed"); return 1; }
Add Perry Metzger's wrapper to run the svnserve process setgid, since this can be very helpful to svn+ssh users. Quoting from the comments:
Add Perry Metzger's wrapper to run the svnserve process setgid, since this can be very helpful to svn+ssh users. Quoting from the comments: * The idea is to avoid the problem that some interpreters like bash * invoked by svnserve in hook scripts will reset the effective gid to * the real gid, nuking the effect of an ordinary setgid svnserve binary. * Sadly, to set the real gid portably, you need to be root, if only * for a moment. * Also smashes the environment to something known, so that games * can't be played to try to break the security of the hook scripts, * by setting IFS, PATH, and similar means. * tools/examples/svnserve-sgid.c: new file.
C
apache-2.0
jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion
94693767f1b911afa9b11b4b1fa5ffd1b2eaaac2
include/xiot/XIOTConfig.h
include/xiot/XIOTConfig.h
/*========================================================================= This file is part of the XIOT library. Copyright (C) 2008-2009 EDF R&D Author: Kristian Sons ([email protected]) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The XIOT library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser Public License for more details. You should have received a copy of the GNU Lesser Public License along with XIOT; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA =========================================================================*/ #ifndef __XIOTConfigure_h #define __XIOTConfigure_h #include "xiot_export.h" #if defined(_MSC_VER) #pragma warning(disable : 4275) /* non-DLL-interface base class used */ #pragma warning(disable : 4251) /* needs to have dll-interface to be used by clients */ /* No warning for safe windows only functions */ #define _CRT_SECURE_NO_WARNINGS #endif #endif // __x3dexporterConfigure_h
/*========================================================================= This file is part of the XIOT library. Copyright (C) 2008-2009 EDF R&D Author: Kristian Sons ([email protected]) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The XIOT library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser Public License for more details. You should have received a copy of the GNU Lesser Public License along with XIOT; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA =========================================================================*/ #ifndef __XIOTConfigure_h #define __XIOTConfigure_h #include "xiot_export.h" #if defined(_MSC_VER) #pragma warning(disable : 4275) /* non-DLL-interface base class used */ #pragma warning(disable : 4251) /* needs to have dll-interface to be used by clients */ #pragma warning(disable : 4996) /* */ #endif #endif // __x3dexporterConfigure_h
Disable secure function warnings via pragma
MSVC: Disable secure function warnings via pragma
C
lgpl-2.1
Supporting/xiot,Supporting/xiot,Supporting/xiot
66c950522a3563c96cb7d4aca0ba4e940b769462
includes/StackAllocator.h
includes/StackAllocator.h
#include "LinearAllocator.h" #ifndef STACKALLOCATOR_H #define STACKALLOCATOR_H class StackAllocator : public LinearAllocator { public: /* Allocation of real memory */ StackAllocator(const long totalSize); /* Frees all memory */ virtual ~StackAllocator(); /* Allocate virtual memory */ virtual void* Allocate(const std::size_t size, const std::size_t alignment) override; /* Frees virtual memory */ virtual void Free(void* ptr) override; }; #endif /* STACKALLOCATOR_H */
#include "Allocator.h" #ifndef STACKALLOCATOR_H #define STACKALLOCATOR_H class StackAllocator : public Allocator { protected: /* Offset from the start of the memory block */ std::size_t m_offset; public: /* Allocation of real memory */ StackAllocator(const long totalSize); /* Frees all memory */ virtual ~StackAllocator(); /* Allocate virtual memory */ virtual void* Allocate(const std::size_t size, const std::size_t alignment) override; /* Frees virtual memory */ virtual void Free(void* ptr) override; /* Frees all virtual memory */ virtual void Reset() override; }; #endif /* STACKALLOCATOR_H */
Change parent class from LinearAllocator to Allocator.
Change parent class from LinearAllocator to Allocator.
C
mit
mtrebi/memory-allocators
e5410c25e5287699260ba3d3ecd188faaf30e499
cmd/lefty/display.h
cmd/lefty/display.h
/* $Id$ $Revision$ */ /* vim:set shiftwidth=4 ts=8: */ /********************************************************** * This software is part of the graphviz package * * http://www.graphviz.org/ * * * * Copyright (c) 1994-2004 AT&T Corp. * * and is licensed under the * * Common Public License, Version 1.0 * * by AT&T Corp. * * * * Information and Software Systems Research * * AT&T Research, Florham Park NJ * **********************************************************/ #ifdef __cplusplus extern "C" { #endif /* Lefteris Koutsofios - AT&T Bell Laboratories */ #ifndef _DISPLAY_H #define _DISPLAY_H void Dinit(void); void Dterm(void); void Dtrace(Tobj, int); #endif /* _DISPLAY_H */ #ifdef __cplusplus } #endif
/* $Id$ $Revision$ */ /* vim:set shiftwidth=4 ts=8: */ /********************************************************** * This software is part of the graphviz package * * http://www.graphviz.org/ * * * * Copyright (c) 1994-2004 AT&T Corp. * * and is licensed under the * * Common Public License, Version 1.0 * * by AT&T Corp. * * * * Information and Software Systems Research * * AT&T Research, Florham Park NJ * **********************************************************/ #ifdef __cplusplus extern "C" { #endif /* Lefteris Koutsofios - AT&T Labs Research */ #ifndef _DISPLAY_H #define _DISPLAY_H void Dinit (void); void Dterm (void); void Dtrace (Tobj, int); #endif /* _DISPLAY_H */ #ifdef __cplusplus } #endif
Update with new lefty, fixing many bugs and supporting new features
Update with new lefty, fixing many bugs and supporting new features
C
epl-1.0
MjAbuz/graphviz,jho1965us/graphviz,MjAbuz/graphviz,tkelman/graphviz,kbrock/graphviz,jho1965us/graphviz,jho1965us/graphviz,jho1965us/graphviz,ellson/graphviz,pixelglow/graphviz,ellson/graphviz,MjAbuz/graphviz,ellson/graphviz,BMJHayward/graphviz,MjAbuz/graphviz,kbrock/graphviz,MjAbuz/graphviz,pixelglow/graphviz,pixelglow/graphviz,MjAbuz/graphviz,kbrock/graphviz,jho1965us/graphviz,kbrock/graphviz,BMJHayward/graphviz,kbrock/graphviz,BMJHayward/graphviz,ellson/graphviz,kbrock/graphviz,BMJHayward/graphviz,BMJHayward/graphviz,ellson/graphviz,tkelman/graphviz,pixelglow/graphviz,ellson/graphviz,jho1965us/graphviz,pixelglow/graphviz,kbrock/graphviz,ellson/graphviz,ellson/graphviz,MjAbuz/graphviz,pixelglow/graphviz,tkelman/graphviz,tkelman/graphviz,tkelman/graphviz,BMJHayward/graphviz,jho1965us/graphviz,kbrock/graphviz,pixelglow/graphviz,BMJHayward/graphviz,tkelman/graphviz,tkelman/graphviz,ellson/graphviz,MjAbuz/graphviz,MjAbuz/graphviz,tkelman/graphviz,pixelglow/graphviz,BMJHayward/graphviz,BMJHayward/graphviz,kbrock/graphviz,tkelman/graphviz,ellson/graphviz,tkelman/graphviz,BMJHayward/graphviz,jho1965us/graphviz,MjAbuz/graphviz,pixelglow/graphviz,pixelglow/graphviz,jho1965us/graphviz,kbrock/graphviz,kbrock/graphviz,MjAbuz/graphviz,jho1965us/graphviz,ellson/graphviz,jho1965us/graphviz,pixelglow/graphviz,BMJHayward/graphviz,tkelman/graphviz
8adf0536c9fb578a8542dcf81104d3438a5287e4
fs/ocfs2/stack_user.c
fs/ocfs2/stack_user.c
/* -*- mode: c; c-basic-offset: 8; -*- * vim: noexpandtab sw=8 ts=8 sts=0: * * stack_user.c * * Code which interfaces ocfs2 with fs/dlm and a userspace stack. * * Copyright (C) 2007 Oracle. All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as published by the Free Software Foundation, version 2. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. */ #include <linux/module.h> #include "stackglue.h" static int __init user_stack_init(void) { return 0; } static void __exit user_stack_exit(void) { } MODULE_AUTHOR("Oracle"); MODULE_DESCRIPTION("ocfs2 driver for userspace cluster stacks"); MODULE_LICENSE("GPL"); module_init(user_stack_init); module_exit(user_stack_exit);
Add the user stack module.
ocfs2: Add the user stack module. Add a skeleton for the stack_user module. It's just the barebones module code. Signed-off-by: Joel Becker <[email protected]> Signed-off-by: Mark Fasheh <[email protected]>
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas
05c6f77912696091da5bda1c47ca9b92d6b4aff7
AVOS/AVOSCloudLiveQuery/AVSubscription.h
AVOS/AVOSCloudLiveQuery/AVSubscription.h
// // AVSubscription.h // AVOS // // Created by Tang Tianyong on 15/05/2017. // Copyright © 2017 LeanCloud Inc. All rights reserved. // #import <Foundation/Foundation.h> #import "AVQuery.h" #import "AVDynamicObject.h" NS_ASSUME_NONNULL_BEGIN @protocol AVSubscriptionDelegate <NSObject> @end @interface AVSubscriptionOptions : AVDynamicObject @end @interface AVSubscription : NSObject @property (nonatomic, weak, nullable) id<AVSubscriptionDelegate> delegate; @property (nonatomic, strong, readonly) AVQuery *query; @property (nonatomic, strong, readonly, nullable) AVSubscriptionOptions *options; - (instancetype)initWithQuery:(AVQuery *)query options:(nullable AVSubscriptionOptions *)options; @end NS_ASSUME_NONNULL_END
// // AVSubscription.h // AVOS // // Created by Tang Tianyong on 15/05/2017. // Copyright © 2017 LeanCloud Inc. All rights reserved. // #import <Foundation/Foundation.h> #import "AVQuery.h" #import "AVDynamicObject.h" @class AVSubscription; NS_ASSUME_NONNULL_BEGIN @protocol AVSubscriptionDelegate <NSObject> - (void)subscription:(AVSubscription *)subscription objectDidEnter:(id)object; - (void)subscription:(AVSubscription *)subscription objectDidLeave:(id)object; - (void)subscription:(AVSubscription *)subscription objectDidCreate:(id)object; - (void)subscription:(AVSubscription *)subscription objectDidUpdate:(id)object; - (void)subscription:(AVSubscription *)subscription objectDidDelete:(id)object; - (void)subscription:(AVSubscription *)subscription userDidLogin:(AVUser *)user; @end @interface AVSubscriptionOptions : AVDynamicObject @end @interface AVSubscription : NSObject @property (nonatomic, weak, nullable) id<AVSubscriptionDelegate> delegate; @property (nonatomic, strong, readonly) AVQuery *query; @property (nonatomic, strong, readonly, nullable) AVSubscriptionOptions *options; - (instancetype)initWithQuery:(AVQuery *)query options:(nullable AVSubscriptionOptions *)options; @end NS_ASSUME_NONNULL_END
Add callbacks for live query
Add callbacks for live query
C
apache-2.0
leancloud/objc-sdk,leancloud/objc-sdk,leancloud/objc-sdk,leancloud/objc-sdk
e949472d78298e2a2e5e6e47edfca99ffa6e6a17
quickpather/passabilityagent.h
quickpather/passabilityagent.h
#ifndef PASSABILITYAGENT_H #define PASSABILITYAGENT_H #include <QPointF> #include <QObject> #include "quickpather_global.h" class AbstractEntity; // Not pure abstract, because we want it to be usable in the Q_PROPERTY macro // and not force derived classes to multiply derive from it and QObject. class QUICKPATHERSHARED_EXPORT PassabilityAgent : public QObject { public: virtual bool isPassable(const QPointF &pos, AbstractEntity *entity); }; #endif // PASSABILITYAGENT_H
#ifndef PASSABILITYAGENT_H #define PASSABILITYAGENT_H #include <QPointF> #include <QObject> #include "quickpather_global.h" class AbstractEntity; // Not pure abstract, because we want it to be usable in the Q_PROPERTY macro // and not force derived classes to multiply derive from it and QObject. class QUICKPATHERSHARED_EXPORT PassabilityAgent : public QObject { Q_OBJECT public: virtual bool isPassable(const QPointF &pos, AbstractEntity *entity); }; #endif // PASSABILITYAGENT_H
Add missing Q_OBJECT to PassabilityAgent
Add missing Q_OBJECT to PassabilityAgent
C
unlicense
mitchcurtis/quickpather,mitchcurtis/quickpather
8ee124176690ed611c8851e3dd50a823c498a08b
ndb/src/common/portlib/NdbSleep.c
ndb/src/common/portlib/NdbSleep.c
/* Copyright (C) 2003 MySQL AB This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include <ndb_global.h> #include <NdbSleep.h> int NdbSleep_MilliSleep(int milliseconds){ int result = 0; struct timespec sleeptime; sleeptime.tv_sec = milliseconds / 1000; sleeptime.tv_nsec = (milliseconds - (sleeptime.tv_sec * 1000)) * 1000000; result = nanosleep(&sleeptime, NULL); return result; } int NdbSleep_SecSleep(int seconds){ int result = 0; result = sleep(seconds); return result; }
/* Copyright (C) 2003 MySQL AB This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include <ndb_global.h> #include <my_sys.h> #include <NdbSleep.h> int NdbSleep_MilliSleep(int milliseconds){ my_sleep(milliseconds*1000); return 0; #if 0 int result = 0; struct timespec sleeptime; sleeptime.tv_sec = milliseconds / 1000; sleeptime.tv_nsec = (milliseconds - (sleeptime.tv_sec * 1000)) * 1000000; result = nanosleep(&sleeptime, NULL); return result; #endif } int NdbSleep_SecSleep(int seconds){ int result = 0; result = sleep(seconds); return result; }
Use my_sleep instead of nanosleep for portability
Use my_sleep instead of nanosleep for portability
C
lgpl-2.1
natsys/mariadb_10.2,flynn1973/mariadb-aix,flynn1973/mariadb-aix,flynn1973/mariadb-aix,davidl-zend/zenddbi,natsys/mariadb_10.2,ollie314/server,flynn1973/mariadb-aix,natsys/mariadb_10.2,flynn1973/mariadb-aix,flynn1973/mariadb-aix,ollie314/server,ollie314/server,natsys/mariadb_10.2,davidl-zend/zenddbi,natsys/mariadb_10.2,ollie314/server,natsys/mariadb_10.2,davidl-zend/zenddbi,davidl-zend/zenddbi,ollie314/server,davidl-zend/zenddbi,ollie314/server,flynn1973/mariadb-aix,davidl-zend/zenddbi,ollie314/server,slanterns/server,natsys/mariadb_10.2,flynn1973/mariadb-aix,ollie314/server,natsys/mariadb_10.2,davidl-zend/zenddbi,natsys/mariadb_10.2,natsys/mariadb_10.2,natsys/mariadb_10.2,davidl-zend/zenddbi,davidl-zend/zenddbi,ollie314/server,flynn1973/mariadb-aix,flynn1973/mariadb-aix,davidl-zend/zenddbi,ollie314/server,davidl-zend/zenddbi,flynn1973/mariadb-aix,ollie314/server
b9e62a6c98648d2c0b722c0bdd1e77f6fe4a1604
cuser/acpica/acenv_header.h
cuser/acpica/acenv_header.h
#define ACPI_MACHINE_WIDTH 64 #define ACPI_SINGLE_THREADED #define ACPI_USE_LOCAL_CACHE #define ACPI_INLINE inline #define ACPI_USE_NATIVE_DIVIDE #define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED #ifdef ACPI_FULL_DEBUG #define ACPI_DEBUG_OUTPUT #define ACPI_DISASSEMBLER // Depends on threading support #define ACPI_DEBUGGER //#define ACPI_DBG_TRACK_ALLOCATIONS #define ACPI_GET_FUNCTION_NAME __FUNCTION__ #else #define ACPI_GET_FUNCTION_NAME "" #endif #define ACPI_PHYS_BASE 0x100000000 #include <stdint.h> #include <stdarg.h> #define AcpiOsPrintf printf #define AcpiOsVprintf vprintf struct acpi_table_facs; uint32_t AcpiOsReleaseGlobalLock(struct acpi_table_facs* facs); uint32_t AcpiOsAcquireGlobalLock(struct acpi_table_facs* facs); #define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acquired) Acquired = AcpiOsAcquireGlobalLock(GLptr) #define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Pending) Pending = AcpiOsReleaseGlobalLock(GLptr)
#define ACPI_MACHINE_WIDTH 64 #define ACPI_SINGLE_THREADED #define ACPI_USE_LOCAL_CACHE #define ACPI_INLINE inline #define ACPI_USE_NATIVE_DIVIDE #define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED #ifdef ACPI_FULL_DEBUG #define ACPI_DEBUG_OUTPUT #define ACPI_DISASSEMBLER // Depends on threading support #define ACPI_DEBUGGER //#define ACPI_DBG_TRACK_ALLOCATIONS #define ACPI_GET_FUNCTION_NAME __FUNCTION__ #else #define ACPI_GET_FUNCTION_NAME "" #endif #define ACPI_PHYS_BASE 0x100000000 #include <stdint.h> #include <stdarg.h> #define AcpiOsPrintf printf #define AcpiOsVprintf vprintf struct acpi_table_facs; uint32_t AcpiOsReleaseGlobalLock(struct acpi_table_facs* facs); uint32_t AcpiOsAcquireGlobalLock(struct acpi_table_facs* facs); #define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acquired) Acquired = AcpiOsAcquireGlobalLock(GLptr) #define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Pending) Pending = AcpiOsReleaseGlobalLock(GLptr) #define COMPILER_DEPENDENT_UINT64 uint64_t #define COMPILER_DEPENDENT_UINT32 uint32_t
Fix ACPICA word-size types - u64 didn't match UINT64
Fix ACPICA word-size types - u64 didn't match UINT64
C
mit
olsner/os,olsner/os,olsner/os,olsner/os
8ea9653b3dccad78a2bb9b91adf0589828bff327
src/core/matcher.h
src/core/matcher.h
#ifndef HAMCREST_MATCHER_H #define HAMCREST_MATCHER_H #include "selfdescribing.h" namespace Hamcrest { class Description; /** * A matcher over acceptable values. * A matcher is able to describe itself to give feedback when it fails. * * @see BaseMatcher */ template <typename T> class Matcher : public SelfDescribing { public: virtual ~Matcher() {} /** * Evaluates the matcher for argument <var>item</var>. * * @param item the object against which the matcher is evaluated. * @return <code>true</code> if <var>item</var> matches, otherwise <code>false</code>. * * @see BaseMatcher */ virtual bool matches(const T &item) const = 0; /** * Generate a description of why the matcher has not accepted the item. * The description will be part of a larger description of why a matching * failed, so it should be concise. * This method assumes that <code>matches(item)</code> is false, but * will not check this. * * @param item The item that the Matcher has rejected. * @param mismatchDescription * The description to be built or appended to. */ virtual void describeMismatch(const T &item, Description &mismatchDescription) const = 0; }; } // namespace Hamcrest #endif // HAMCREST_MATCHER_H
#ifndef HAMCREST_MATCHER_H #define HAMCREST_MATCHER_H #include "selfdescribing.h" namespace Hamcrest { class Description; /** * A matcher over acceptable values. * A matcher is able to describe itself to give feedback when it fails. * * @see BaseMatcher */ template <typename T> class Matcher : public SelfDescribing { public: virtual ~Matcher() {} /** * Evaluates the matcher for argument <var>item</var>. * * @param item the object against which the matcher is evaluated. * @return <code>true</code> if <var>item</var> matches, otherwise <code>false</code>. * * @see BaseMatcher */ virtual bool matches(const T &item) const = 0; /** * Generate a description of why the matcher has not accepted the item. * The description will be part of a larger description of why a matching * failed, so it should be concise. * This method assumes that <code>matches(item)</code> is false, but * will not check this. * * @param item The item that the Matcher has rejected. * @param mismatchDescription * The description to be built or appended to. */ virtual void describeMismatch(const T &item, Description &mismatchDescription) const = 0; virtual QString toString() const = 0; }; } // namespace Hamcrest #endif // HAMCREST_MATCHER_H
Add virtual toString() to Matcher
Add virtual toString() to Matcher
C
bsd-3-clause
cloose/Hamcrest-Qt
37c5e9705435e2f23b6949047036504dcd215747
src/lib/blockdev.h
src/lib/blockdev.h
#include <glib.h> #ifndef BD_LIB #define BD_LIB #include "plugins.h" #include "plugin_apis/lvm.h" gboolean bd_init (BDPluginSpec *force_plugins); gboolean bd_reinit (BDPluginSpec *force_plugins, gboolean replace); gchar** bd_get_available_plugin_names (); gboolean bd_is_plugin_available (BDPlugin); #endif /* BD_LIB */
#include <glib.h> #ifndef BD_LIB #define BD_LIB #include "plugins.h" #include "plugin_apis/lvm.h" gboolean bd_init (BDPluginSpec *force_plugins); gboolean bd_reinit (BDPluginSpec *force_plugins, gboolean replace); gchar** bd_get_available_plugin_names (); gboolean bd_is_plugin_available (BDPlugin plugin); #endif /* BD_LIB */
Add missing parameter name in bd_is_plugin_available protype
Add missing parameter name in bd_is_plugin_available protype
C
lgpl-2.1
atodorov/libblockdev,rhinstaller/libblockdev,snbueno/libblockdev,dashea/libblockdev,rhinstaller/libblockdev,rhinstaller/libblockdev,vpodzime/libblockdev,vpodzime/libblockdev,snbueno/libblockdev,atodorov/libblockdev,dashea/libblockdev,vpodzime/libblockdev,atodorov/libblockdev
88b6b07d8542216690a211419c148fda8ba1a4d7
tests/homebrew-acceptance-test.c
tests/homebrew-acceptance-test.c
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2013 Couchbase, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include <internal.h> /* getenv, sytem, snprintf */ int main(void) { #ifndef WIN32 char *srcdir = getenv("srcdir"); char command[FILENAME_MAX]; int status; snprintf(command, FILENAME_MAX, "%s/tools/cbc version 2>&1", srcdir); status = system(command); if (status == -1 || WIFSIGNALED(status) || WEXITSTATUS(status) != 0) { return 1; } snprintf(command, FILENAME_MAX, "%s/tools/cbc help 2>&1", srcdir); if (status == -1 || WIFSIGNALED(status) || WEXITSTATUS(status) != 0) { return 1; } #endif return 0; }
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2013 Couchbase, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include <internal.h> /* getenv, system, snprintf */ int main(void) { #ifndef WIN32 int status; status = system("./tools/cbc version 2>&1"); if (status == -1 || WIFSIGNALED(status) || WEXITSTATUS(status) != 0) { return 1; } status = system("./tools/cbc help 2>&1"); if (status == -1 || WIFSIGNALED(status) || WEXITSTATUS(status) != 0) { return 1; } #endif return 0; }
Fix 'make distcheck' (homebrew acceptance test)
Fix 'make distcheck' (homebrew acceptance test) Change-Id: Ie61efb963f30a4548c97dfe63e261db36c2b66e2 Reviewed-on: http://review.couchbase.org/27533 Tested-by: Sergey Avseyev <[email protected]> Reviewed-by: Trond Norbye <[email protected]>
C
apache-2.0
couchbase/libcouchbase,signmotion/libcouchbase,uvenum/libcouchbase,mody/libcouchbase,trondn/libcouchbase,avsej/libcouchbase,mody/libcouchbase,mnunberg/libcouchbase,kojiromike/libcouchbase,couchbase/libcouchbase,signmotion/libcouchbase,avsej/libcouchbase,avsej/libcouchbase,avsej/libcouchbase,couchbase/libcouchbase,trondn/libcouchbase,mnunberg/libcouchbase,PureSwift/libcouchbase,maxim-ky/libcouchbase,uvenum/libcouchbase,mody/libcouchbase,couchbase/libcouchbase,couchbase/libcouchbase,mody/libcouchbase,trondn/libcouchbase,PureSwift/libcouchbase,senthilkumaranb/libcouchbase,senthilkumaranb/libcouchbase,signmotion/libcouchbase,kojiromike/libcouchbase,avsej/libcouchbase,maxim-ky/libcouchbase,PureSwift/libcouchbase,senthilkumaranb/libcouchbase,senthilkumaranb/libcouchbase,kojiromike/libcouchbase,maxim-ky/libcouchbase,couchbase/libcouchbase,mnunberg/libcouchbase,avsej/libcouchbase,uvenum/libcouchbase,couchbase/libcouchbase,trondn/libcouchbase,kojiromike/libcouchbase,mnunberg/libcouchbase,uvenum/libcouchbase,PureSwift/libcouchbase,avsej/libcouchbase,mnunberg/libcouchbase,trondn/libcouchbase,maxim-ky/libcouchbase,uvenum/libcouchbase,signmotion/libcouchbase
c11130f26d609b78e88866c87275794c463171b8
net/quic/quic_utils.h
net/quic/quic_utils.h
// Copyright (c) 2012 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. // // Some helpers for quic #ifndef NET_QUIC_QUIC_UTILS_H_ #define NET_QUIC_QUIC_UTILS_H_ #include "net/base/int128.h" #include "net/base/net_export.h" #include "net/quic/quic_protocol.h" namespace gfe2 { class BalsaHeaders; } namespace net { class NET_EXPORT_PRIVATE QuicUtils { public: // The overhead the quic framing will add for a packet with num_frames // frames. static size_t StreamFramePacketOverhead(int num_frames); // returns the 128 bit FNV1a hash of the data. See // http://www.isthe.com/chongo/tech/comp/fnv/index.html#FNV-param static uint128 FNV1a_128_Hash(const char* data, int len); // Returns the name of the quic error code as a char* static const char* ErrorToString(QuicErrorCode error); }; } // namespace net #endif // NET_QUIC_QUIC_UTILS_H_
// Copyright (c) 2012 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. // // Some helpers for quic #ifndef NET_QUIC_QUIC_UTILS_H_ #define NET_QUIC_QUIC_UTILS_H_ #include "net/base/int128.h" #include "net/base/net_export.h" #include "net/quic/quic_protocol.h" namespace net { class NET_EXPORT_PRIVATE QuicUtils { public: // The overhead the quic framing will add for a packet with num_frames // frames. static size_t StreamFramePacketOverhead(int num_frames); // returns the 128 bit FNV1a hash of the data. See // http://www.isthe.com/chongo/tech/comp/fnv/index.html#FNV-param static uint128 FNV1a_128_Hash(const char* data, int len); // Returns the name of the quic error code as a char* static const char* ErrorToString(QuicErrorCode error); }; } // namespace net #endif // NET_QUIC_QUIC_UTILS_H_
Remove an unused forward declaration.
Remove an unused forward declaration. [email protected] BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/11877024 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@176837 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
mohamed--abdel-maksoud/chromium.src,dednal/chromium.src,krieger-od/nwjs_chromium.src,PeterWangIntel/chromium-crosswalk,nacl-webkit/chrome_deps,fujunwei/chromium-crosswalk,M4sse/chromium.src,bright-sparks/chromium-spacewalk,axinging/chromium-crosswalk,hgl888/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,fujunwei/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk-efl,zcbenz/cefode-chromium,hgl888/chromium-crosswalk-efl,Chilledheart/chromium,jaruba/chromium.src,hujiajie/pa-chromium,Jonekee/chromium.src,dednal/chromium.src,krieger-od/nwjs_chromium.src,mogoweb/chromium-crosswalk,ondra-novak/chromium.src,timopulkkinen/BubbleFish,mogoweb/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,Fireblend/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,nacl-webkit/chrome_deps,jaruba/chromium.src,chuan9/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,ChromiumWebApps/chromium,Jonekee/chromium.src,patrickm/chromium.src,axinging/chromium-crosswalk,hgl888/chromium-crosswalk,patrickm/chromium.src,dushu1203/chromium.src,markYoungH/chromium.src,crosswalk-project/chromium-crosswalk-efl,ondra-novak/chromium.src,hgl888/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,timopulkkinen/BubbleFish,hgl888/chromium-crosswalk-efl,anirudhSK/chromium,littlstar/chromium.src,ondra-novak/chromium.src,fujunwei/chromium-crosswalk,anirudhSK/chromium,hujiajie/pa-chromium,chuan9/chromium-crosswalk,chuan9/chromium-crosswalk,Fireblend/chromium-crosswalk,chuan9/chromium-crosswalk,Jonekee/chromium.src,fujunwei/chromium-crosswalk,hujiajie/pa-chromium,patrickm/chromium.src,M4sse/chromium.src,mogoweb/chromium-crosswalk,fujunwei/chromium-crosswalk,M4sse/chromium.src,PeterWangIntel/chromium-crosswalk,Jonekee/chromium.src,krieger-od/nwjs_chromium.src,dednal/chromium.src,mogoweb/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Fireblend/chromium-crosswalk,markYoungH/chromium.src,timopulkkinen/BubbleFish,nacl-webkit/chrome_deps,bright-sparks/chromium-spacewalk,M4sse/chromium.src,axinging/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,fujunwei/chromium-crosswalk,nacl-webkit/chrome_deps,timopulkkinen/BubbleFish,Fireblend/chromium-crosswalk,Jonekee/chromium.src,ltilve/chromium,pozdnyakov/chromium-crosswalk,zcbenz/cefode-chromium,chuan9/chromium-crosswalk,Fireblend/chromium-crosswalk,bright-sparks/chromium-spacewalk,mohamed--abdel-maksoud/chromium.src,jaruba/chromium.src,mohamed--abdel-maksoud/chromium.src,hujiajie/pa-chromium,zcbenz/cefode-chromium,crosswalk-project/chromium-crosswalk-efl,bright-sparks/chromium-spacewalk,Chilledheart/chromium,hgl888/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,anirudhSK/chromium,fujunwei/chromium-crosswalk,mogoweb/chromium-crosswalk,nacl-webkit/chrome_deps,anirudhSK/chromium,axinging/chromium-crosswalk,mogoweb/chromium-crosswalk,markYoungH/chromium.src,jaruba/chromium.src,dushu1203/chromium.src,markYoungH/chromium.src,crosswalk-project/chromium-crosswalk-efl,axinging/chromium-crosswalk,anirudhSK/chromium,bright-sparks/chromium-spacewalk,dushu1203/chromium.src,bright-sparks/chromium-spacewalk,ltilve/chromium,Just-D/chromium-1,littlstar/chromium.src,anirudhSK/chromium,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk-efl,Pluto-tv/chromium-crosswalk,ChromiumWebApps/chromium,ondra-novak/chromium.src,Just-D/chromium-1,M4sse/chromium.src,Fireblend/chromium-crosswalk,Jonekee/chromium.src,zcbenz/cefode-chromium,fujunwei/chromium-crosswalk,littlstar/chromium.src,dednal/chromium.src,Just-D/chromium-1,dednal/chromium.src,PeterWangIntel/chromium-crosswalk,anirudhSK/chromium,anirudhSK/chromium,jaruba/chromium.src,ChromiumWebApps/chromium,littlstar/chromium.src,ChromiumWebApps/chromium,markYoungH/chromium.src,mogoweb/chromium-crosswalk,pozdnyakov/chromium-crosswalk,littlstar/chromium.src,chuan9/chromium-crosswalk,zcbenz/cefode-chromium,Pluto-tv/chromium-crosswalk,axinging/chromium-crosswalk,hujiajie/pa-chromium,Just-D/chromium-1,pozdnyakov/chromium-crosswalk,ChromiumWebApps/chromium,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk,Jonekee/chromium.src,markYoungH/chromium.src,patrickm/chromium.src,ltilve/chromium,dushu1203/chromium.src,hujiajie/pa-chromium,dednal/chromium.src,krieger-od/nwjs_chromium.src,PeterWangIntel/chromium-crosswalk,markYoungH/chromium.src,zcbenz/cefode-chromium,dednal/chromium.src,jaruba/chromium.src,anirudhSK/chromium,krieger-od/nwjs_chromium.src,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,dushu1203/chromium.src,Pluto-tv/chromium-crosswalk,bright-sparks/chromium-spacewalk,ChromiumWebApps/chromium,crosswalk-project/chromium-crosswalk-efl,ltilve/chromium,Chilledheart/chromium,TheTypoMaster/chromium-crosswalk,markYoungH/chromium.src,Just-D/chromium-1,jaruba/chromium.src,bright-sparks/chromium-spacewalk,dushu1203/chromium.src,patrickm/chromium.src,ChromiumWebApps/chromium,hgl888/chromium-crosswalk-efl,ondra-novak/chromium.src,ondra-novak/chromium.src,crosswalk-project/chromium-crosswalk-efl,Pluto-tv/chromium-crosswalk,Chilledheart/chromium,Just-D/chromium-1,ondra-novak/chromium.src,dushu1203/chromium.src,timopulkkinen/BubbleFish,PeterWangIntel/chromium-crosswalk,dednal/chromium.src,PeterWangIntel/chromium-crosswalk,ChromiumWebApps/chromium,M4sse/chromium.src,TheTypoMaster/chromium-crosswalk,ltilve/chromium,TheTypoMaster/chromium-crosswalk,patrickm/chromium.src,M4sse/chromium.src,Pluto-tv/chromium-crosswalk,ChromiumWebApps/chromium,crosswalk-project/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,patrickm/chromium.src,jaruba/chromium.src,ChromiumWebApps/chromium,Chilledheart/chromium,chuan9/chromium-crosswalk,timopulkkinen/BubbleFish,M4sse/chromium.src,Jonekee/chromium.src,Pluto-tv/chromium-crosswalk,dednal/chromium.src,markYoungH/chromium.src,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,chuan9/chromium-crosswalk,anirudhSK/chromium,M4sse/chromium.src,ltilve/chromium,mogoweb/chromium-crosswalk,dednal/chromium.src,krieger-od/nwjs_chromium.src,pozdnyakov/chromium-crosswalk,hujiajie/pa-chromium,axinging/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk,pozdnyakov/chromium-crosswalk,nacl-webkit/chrome_deps,mohamed--abdel-maksoud/chromium.src,ondra-novak/chromium.src,TheTypoMaster/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,pozdnyakov/chromium-crosswalk,hujiajie/pa-chromium,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,hgl888/chromium-crosswalk-efl,Just-D/chromium-1,M4sse/chromium.src,ltilve/chromium,hujiajie/pa-chromium,hujiajie/pa-chromium,hgl888/chromium-crosswalk,pozdnyakov/chromium-crosswalk,M4sse/chromium.src,Fireblend/chromium-crosswalk,pozdnyakov/chromium-crosswalk,zcbenz/cefode-chromium,mohamed--abdel-maksoud/chromium.src,Chilledheart/chromium,jaruba/chromium.src,krieger-od/nwjs_chromium.src,timopulkkinen/BubbleFish,Fireblend/chromium-crosswalk,mogoweb/chromium-crosswalk,patrickm/chromium.src,littlstar/chromium.src,timopulkkinen/BubbleFish,Chilledheart/chromium,Just-D/chromium-1,anirudhSK/chromium,markYoungH/chromium.src,Chilledheart/chromium,mogoweb/chromium-crosswalk,Fireblend/chromium-crosswalk,anirudhSK/chromium,dushu1203/chromium.src,zcbenz/cefode-chromium,crosswalk-project/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,bright-sparks/chromium-spacewalk,TheTypoMaster/chromium-crosswalk,krieger-od/nwjs_chromium.src,Pluto-tv/chromium-crosswalk,Chilledheart/chromium,axinging/chromium-crosswalk,Jonekee/chromium.src,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,Jonekee/chromium.src,dushu1203/chromium.src,timopulkkinen/BubbleFish,markYoungH/chromium.src,jaruba/chromium.src,axinging/chromium-crosswalk,hgl888/chromium-crosswalk-efl,axinging/chromium-crosswalk,krieger-od/nwjs_chromium.src,ChromiumWebApps/chromium,axinging/chromium-crosswalk,pozdnyakov/chromium-crosswalk,littlstar/chromium.src,ondra-novak/chromium.src,nacl-webkit/chrome_deps,zcbenz/cefode-chromium,ChromiumWebApps/chromium,ltilve/chromium,timopulkkinen/BubbleFish,krieger-od/nwjs_chromium.src,patrickm/chromium.src,Pluto-tv/chromium-crosswalk,littlstar/chromium.src,dushu1203/chromium.src,ltilve/chromium,pozdnyakov/chromium-crosswalk,timopulkkinen/BubbleFish,nacl-webkit/chrome_deps,zcbenz/cefode-chromium,hujiajie/pa-chromium,hgl888/chromium-crosswalk,zcbenz/cefode-chromium,dushu1203/chromium.src,jaruba/chromium.src,Jonekee/chromium.src
22db0fa4e3b814bb135e6700ef8d64359371d257
memsearch/memory_access.h
memsearch/memory_access.h
#ifndef __MEMORY_ACCESS__ #define __MEMORY_ACCESS__ //TODO: File level documentations. //TODO: Define the different process_handle_t #define pid_t uint_t /** * This struct represents an error. * * error_number is the error as returned by the OS, 0 for no error. * description is a null-terminated string. **/ typedef struct { int error_number; char *description; } error_t; /** * This struct represents the error releated parts of a response to a function * call. * * fatal_error may point to an error_t that made the operation fail or be NULL. * soft_errors may be an array of non-fatal errors or be NULL. * soft_errors_count is the number errors in soft_errors (0 for no array). * soft_errors_capacity is the capacity of soft_errors (0 for no array). **/ typedef struct { error_t *fatal_error; error_t *soft_errors; size_t soft_errors_count; size_t soft_errors_capacity; } response_errors_t; /** * This struct represents a region of readable contiguos memory of a process. * * No readable memory can be contiguos to this region, it's maximal in its * upper bound. * * Note that this region is not necessary equivalent to the OS's region. **/ typedef struct { void *start_address; size_t length; } memory_region_t; /** * Response for an open_process_handle request, with the handle and any possible * error. **/ typedef struct { response_errors_t errors; process_handle_t process_handle; } process_handle_response_t; //TODO: Add doc. process_handle_response_t *open_process_handle(pid_t pid); //TODO: Add doc. response_errors_t *close_process_handle(process_handle_t *process_handle); //TODO: Add doc. memory_region_response_t get_next_readable_memory_region( process_handle_t handle, void *start_address); #endif /* __MEMORY_ACCESS__ */
Add initial work on a commmon C interface.
Add initial work on a commmon C interface.
C
mpl-2.0
mozilla/masche,mozilla/masche
6f805776fca1835477b730ced60fe72d9905f874
src/tests/marquise_init_test.c
src/tests/marquise_init_test.c
#include <glib.h> #include <stdlib.h> #include <string.h> #include "../marquise.h" void test_init() { marquise_ctx *ctx = marquise_init("test"); g_assert_nonnull(ctx); } int main(int argc, char **argv) { g_test_init(&argc, &argv, NULL); g_test_add_func("/marquise_init/init", test_init); return g_test_run(); }
#include <glib.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include "../marquise.h" void test_init() { setenv("MARQUISE_SPOOL_DIR", "/tmp", 1); mkdir("/tmp/marquisetest", 0700); marquise_ctx *ctx = marquise_init("marquisetest"); g_assert_nonnull(ctx); } int main(int argc, char **argv) { g_test_init(&argc, &argv, NULL); g_test_add_func("/marquise_init/init", test_init); return g_test_run(); }
Use a spool directory under /tmp for testing purposes
Use a spool directory under /tmp for testing purposes
C
bsd-3-clause
anchor/libmarquise,anchor/libmarquise
07a1f80eae2c8169f789da92ab6c17f829615d1a
ghighlighter/main.c
ghighlighter/main.c
#include <stdlib.h> #include <pwd.h> #include <string.h> #include <sys/stat.h> #include <gtk/gtk.h> #include "gh-datastore.h" #include "gh-main-window.h" char * data_dir_path () { uid_t uid = getuid (); struct passwd *pw = getpwuid (uid); char *home_dir = pw->pw_dir; char *data_dir = "/.ghighlighter-c"; int length = strlen (home_dir); length = length + strlen (data_dir); char *result = malloc (length + sizeof (char)); strcat (result, home_dir); strcat (result, data_dir); return result; } void setup_environment (char *data_dir) { mkdir (data_dir, 0755); } int main (int argc, char *argv[]) { char *data_dir = data_dir_path (); setup_environment (data_dir); sqlite3 *db = gh_datastore_open_db (data_dir); free (data_dir); GtkWidget *window; gtk_init (&argc, &argv); window = gh_main_window_create (); gtk_widget_show_all (window); gtk_main (); sqlite3_close (db); return 0; }
#include <stdlib.h> #include <pwd.h> #include <string.h> #include <sys/stat.h> #include <gtk/gtk.h> #include "gh-datastore.h" #include "gh-main-window.h" char * data_dir_path () { uid_t uid = getuid (); struct passwd *pw = getpwuid (uid); char *home_dir = pw->pw_dir; char *data_dir = "/.ghighlighter-c"; int length = strlen (home_dir); length = length + strlen (data_dir); char *result = malloc (length + sizeof (char)); result[0] = '\0'; strcat (result, home_dir); strcat (result, data_dir); return result; } void setup_environment (char *data_dir) { mkdir (data_dir, 0755); } int main (int argc, char *argv[]) { char *data_dir = data_dir_path (); setup_environment (data_dir); sqlite3 *db = gh_datastore_open_db (data_dir); free (data_dir); GtkWidget *window; gtk_init (&argc, &argv); window = gh_main_window_create (); gtk_widget_show_all (window); gtk_main (); sqlite3_close (db); return 0; }
Set null byte in allocated data dir path
Set null byte in allocated data dir path
C
mit
chdorner/ghighlighter-c
1af425ed1e08d00fd953d7e905f48610cc350b28
tests/cframework/tests_plugin.h
tests/cframework/tests_plugin.h
/** * @file * * @brief Some common functions operating on plugins. * * If you include this file you have full access to elektra's internals * and your test might not be ABI compatible with the next release. * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ #include <tests_internal.h> #define PLUGIN_OPEN(NAME) \ KeySet * modules = ksNew (0, KS_END); \ elektraModulesInit (modules, 0); \ Key * errorKey = keyNew ("", KEY_END); \ Plugin * plugin = elektraPluginOpen (NAME, modules, conf, errorKey); \ succeed_if (output_warnings (errorKey), "warnings in kdbOpen for plugin " NAME); \ succeed_if (output_error (errorKey), "error in kdbOpen for plugin " NAME); \ keyDel (errorKey); \ exit_if_fail (plugin != 0, "could not open " NAME " plugin"); #define PLUGIN_CLOSE() \ elektraPluginClose (plugin, 0); \ elektraModulesClose (modules, 0); \ ksDel (modules);
/** * @file * * @brief Some common functions operating on plugins. * * If you include this file you have full access to elektra's internals * and your test might not be ABI compatible with the next release. * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ #include <tests_internal.h> #define PLUGIN_OPEN(NAME) \ KeySet * modules = ksNew (0, KS_END); \ elektraModulesInit (modules, 0); \ Key * errorKey = keyNew ("", KEY_END); \ Plugin * plugin = elektraPluginOpen (NAME, modules, conf, errorKey); \ succeed_if (output_warnings (errorKey), "warnings in kdbOpen for plugin " NAME); \ succeed_if (output_error (errorKey), "error in kdbOpen for plugin " NAME); \ keyDel (errorKey); \ exit_if_fail (plugin != 0, "could not open " NAME " plugin") #define PLUGIN_CLOSE() \ elektraPluginClose (plugin, 0); \ elektraModulesClose (modules, 0); \ ksDel (modules)
Remove trailing semicolons from macros
Test: Remove trailing semicolons from macros
C
bsd-3-clause
mpranj/libelektra,petermax2/libelektra,BernhardDenner/libelektra,petermax2/libelektra,mpranj/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,petermax2/libelektra,BernhardDenner/libelektra,mpranj/libelektra,mpranj/libelektra,mpranj/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,petermax2/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,ElektraInitiative/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,mpranj/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,petermax2/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,petermax2/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,ElektraInitiative/libelektra,mpranj/libelektra
2794f6e44bac8a1b560d8894b1403ad874a0cd6c
viterbi/viterbi.h
viterbi/viterbi.h
#include <link-grammar/link-features.h> LINK_BEGIN_DECLS void viterbi_parse(const char * sentence, Dictionary dict); LINK_END_DECLS
#include "../link-grammar/link-features.h" LINK_BEGIN_DECLS void viterbi_parse(const char * sentence, Dictionary dict); LINK_END_DECLS
Fix include path so that make install doesn't screw it.
Fix include path so that make install doesn't screw it. git-svn-id: fc35eccb03ccef1c432fd0fcf5295fcceaca86a6@32171 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
C
lgpl-2.1
ampli/link-grammar,ampli/link-grammar,opencog/link-grammar,opencog/link-grammar,MadBomber/link-grammar,ampli/link-grammar,linas/link-grammar,opencog/link-grammar,linas/link-grammar,MadBomber/link-grammar,MadBomber/link-grammar,linas/link-grammar,ampli/link-grammar,MadBomber/link-grammar,linas/link-grammar,MadBomber/link-grammar,ampli/link-grammar,opencog/link-grammar,linas/link-grammar,opencog/link-grammar,opencog/link-grammar,ampli/link-grammar,ampli/link-grammar,opencog/link-grammar,ampli/link-grammar,linas/link-grammar,ampli/link-grammar,opencog/link-grammar,opencog/link-grammar,MadBomber/link-grammar,linas/link-grammar,MadBomber/link-grammar,MadBomber/link-grammar,linas/link-grammar,linas/link-grammar
2bc82f8ae834a09beda89ae236b1c5e9646f186d
igor/parser/DEIgorParserException.h
igor/parser/DEIgorParserException.h
@interface DEIgorParserException : NSObject + (NSException *)exceptionWithReason:(NSString *)reason scanner:(NSScanner *)scanner; @end
@interface DEIgorParserException : NSException + (NSException *)exceptionWithReason:(NSString *)reason scanner:(NSScanner *)scanner; @end
Make Igor parser exception extend NSException
Make Igor parser exception extend NSException
C
mit
dhemery/igor,dhemery/igor,dhemery/igor
e32f03922712ef3516cb7c2a346b3a2ab0ebda36
tests/chez/chez022/mkalloc.c
tests/chez/chez022/mkalloc.c
#include <malloc.h> #include <string.h> typedef struct { int val; char* str; } Stuff; Stuff* mkThing() { static int num = 0; Stuff* x = malloc(sizeof(Stuff)); x->val = num++; x->str = malloc(20); strcpy(x->str,"Hello"); return x; } char* getStr(Stuff* x) { return x->str; } void freeThing(Stuff* x) { printf("Freeing %d %s\n", x->val, x->str); free(x->str); free(x); }
#include <stdlib.h> #include <stdio.h> #include <string.h> typedef struct { int val; char* str; } Stuff; Stuff* mkThing() { static int num = 0; Stuff* x = malloc(sizeof(Stuff)); x->val = num++; x->str = malloc(20); strcpy(x->str,"Hello"); return x; } char* getStr(Stuff* x) { return x->str; } void freeThing(Stuff* x) { printf("Freeing %d %s\n", x->val, x->str); free(x->str); free(x); }
Fix includes in chez022 test
Fix includes in chez022 test
C
bsd-3-clause
mmhelloworld/idris-jvm,mmhelloworld/idris-jvm,mmhelloworld/idris-jvm,mmhelloworld/idris-jvm,mmhelloworld/idris-jvm,mmhelloworld/idris-jvm
8c18581110925ebe9e2b3530d4d5fc4afefbc8b0
numpy/core/src/private/npy_import.h
numpy/core/src/private/npy_import.h
#ifndef NPY_IMPORT_H #define NPY_IMPORT_H #include <Python.h> #include <assert.h> /*! \brief Fetch and cache Python function. * * Import a Python function and cache it for use. The function checks if * cache is NULL, and if not NULL imports the Python function specified by * \a module and \a function, increments its reference count, and stores * the result in \a cache. Usually \a cache will be a static variable and * should be initialized to NULL. On error \a cache will contain NULL on * exit, * * @param module Absolute module name. * @param function Function name. * @param cache Storage location for imported function. */ NPY_INLINE void npy_cache_pyfunc(const char *module, const char *function, PyObject **cache) { if (*cache == NULL) { PyObject *mod = PyImport_ImportModule(module); if (mod != NULL) { *cache = PyObject_GetAttrString(mod, function); Py_DECREF(mod); } } } #endif
#ifndef NPY_IMPORT_H #define NPY_IMPORT_H #include <Python.h> /*! \brief Fetch and cache Python function. * * Import a Python function and cache it for use. The function checks if * cache is NULL, and if not NULL imports the Python function specified by * \a module and \a function, increments its reference count, and stores * the result in \a cache. Usually \a cache will be a static variable and * should be initialized to NULL. On error \a cache will contain NULL on * exit, * * @param module Absolute module name. * @param function Function name. * @param cache Storage location for imported function. */ NPY_INLINE static void npy_cache_pyfunc(const char *module, const char *function, PyObject **cache) { if (*cache == NULL) { PyObject *mod = PyImport_ImportModule(module); if (mod != NULL) { *cache = PyObject_GetAttrString(mod, function); Py_DECREF(mod); } } } #endif
Fix npy_cache_pyfunc to properly implement inline.
BUG: Fix npy_cache_pyfunc to properly implement inline. The function was not static, which led to multiple definition errors.
C
bsd-3-clause
leifdenby/numpy,charris/numpy,sonnyhu/numpy,charris/numpy,has2k1/numpy,sinhrks/numpy,rhythmsosad/numpy,pdebuyl/numpy,jorisvandenbossche/numpy,mattip/numpy,stuarteberg/numpy,MaPePeR/numpy,Eric89GXL/numpy,MichaelAquilina/numpy,SiccarPoint/numpy,gmcastil/numpy,nguyentu1602/numpy,MSeifert04/numpy,maniteja123/numpy,mingwpy/numpy,pdebuyl/numpy,Anwesh43/numpy,gfyoung/numpy,seberg/numpy,jschueller/numpy,empeeu/numpy,GaZ3ll3/numpy,pbrod/numpy,anntzer/numpy,sinhrks/numpy,jakirkham/numpy,trankmichael/numpy,Yusa95/numpy,mwiebe/numpy,nbeaver/numpy,rgommers/numpy,shoyer/numpy,rherault-insa/numpy,ahaldane/numpy,jonathanunderwood/numpy,GrimDerp/numpy,joferkington/numpy,kirillzhuravlev/numpy,kirillzhuravlev/numpy,nbeaver/numpy,rudimeier/numpy,ekalosak/numpy,nguyentu1602/numpy,ahaldane/numpy,ahaldane/numpy,sinhrks/numpy,ddasilva/numpy,pbrod/numpy,AustereCuriosity/numpy,simongibbons/numpy,Eric89GXL/numpy,skwbc/numpy,pyparallel/numpy,dwillmer/numpy,kirillzhuravlev/numpy,gmcastil/numpy,empeeu/numpy,pdebuyl/numpy,GaZ3ll3/numpy,MichaelAquilina/numpy,shoyer/numpy,dwillmer/numpy,GrimDerp/numpy,mattip/numpy,jankoslavic/numpy,mattip/numpy,abalkin/numpy,Srisai85/numpy,ssanderson/numpy,KaelChen/numpy,endolith/numpy,cjermain/numpy,skymanaditya1/numpy,joferkington/numpy,shoyer/numpy,mathdd/numpy,gfyoung/numpy,GaZ3ll3/numpy,madphysicist/numpy,ChanderG/numpy,MSeifert04/numpy,has2k1/numpy,pdebuyl/numpy,jonathanunderwood/numpy,dimasad/numpy,musically-ut/numpy,skymanaditya1/numpy,madphysicist/numpy,githubmlai/numpy,mingwpy/numpy,CMartelLML/numpy,Dapid/numpy,grlee77/numpy,b-carter/numpy,bringingheavendown/numpy,has2k1/numpy,ContinuumIO/numpy,mingwpy/numpy,simongibbons/numpy,solarjoe/numpy,kiwifb/numpy,ChanderG/numpy,rajathkumarmp/numpy,madphysicist/numpy,stuarteberg/numpy,leifdenby/numpy,argriffing/numpy,grlee77/numpy,solarjoe/numpy,ESSS/numpy,sonnyhu/numpy,ahaldane/numpy,pbrod/numpy,bertrand-l/numpy,WarrenWeckesser/numpy,WarrenWeckesser/numpy,githubmlai/numpy,endolith/numpy,sonnyhu/numpy,mhvk/numpy,mhvk/numpy,b-carter/numpy,abalkin/numpy,jorisvandenbossche/numpy,groutr/numpy,numpy/numpy,Yusa95/numpy,maniteja123/numpy,utke1/numpy,ChanderG/numpy,jorisvandenbossche/numpy,skwbc/numpy,rajathkumarmp/numpy,trankmichael/numpy,AustereCuriosity/numpy,rhythmsosad/numpy,ekalosak/numpy,seberg/numpy,kirillzhuravlev/numpy,mwiebe/numpy,mingwpy/numpy,rhythmsosad/numpy,njase/numpy,chiffa/numpy,madphysicist/numpy,rudimeier/numpy,musically-ut/numpy,joferkington/numpy,jankoslavic/numpy,CMartelLML/numpy,ChristopherHogan/numpy,rudimeier/numpy,endolith/numpy,BabeNovelty/numpy,pizzathief/numpy,musically-ut/numpy,behzadnouri/numpy,moreati/numpy,mathdd/numpy,gfyoung/numpy,Anwesh43/numpy,KaelChen/numpy,seberg/numpy,solarjoe/numpy,tacaswell/numpy,skymanaditya1/numpy,Linkid/numpy,WarrenWeckesser/numpy,numpy/numpy,pbrod/numpy,ChristopherHogan/numpy,trankmichael/numpy,Linkid/numpy,mhvk/numpy,hainm/numpy,SiccarPoint/numpy,BabeNovelty/numpy,shoyer/numpy,CMartelLML/numpy,tacaswell/numpy,dimasad/numpy,tynn/numpy,empeeu/numpy,seberg/numpy,jakirkham/numpy,grlee77/numpy,dimasad/numpy,hainm/numpy,trankmichael/numpy,bringingheavendown/numpy,Anwesh43/numpy,kiwifb/numpy,numpy/numpy,nguyentu1602/numpy,Eric89GXL/numpy,felipebetancur/numpy,behzadnouri/numpy,WillieMaddox/numpy,MaPePeR/numpy,GrimDerp/numpy,rajathkumarmp/numpy,grlee77/numpy,BMJHayward/numpy,stuarteberg/numpy,dwillmer/numpy,MaPePeR/numpy,jakirkham/numpy,bmorris3/numpy,dwillmer/numpy,pizzathief/numpy,pizzathief/numpy,jakirkham/numpy,Srisai85/numpy,chatcannon/numpy,anntzer/numpy,ahaldane/numpy,WillieMaddox/numpy,grlee77/numpy,musically-ut/numpy,groutr/numpy,jschueller/numpy,mwiebe/numpy,charris/numpy,moreati/numpy,SiccarPoint/numpy,charris/numpy,jorisvandenbossche/numpy,GrimDerp/numpy,chatcannon/numpy,Srisai85/numpy,Anwesh43/numpy,stuarteberg/numpy,rgommers/numpy,cjermain/numpy,tynn/numpy,b-carter/numpy,abalkin/numpy,empeeu/numpy,nguyentu1602/numpy,drasmuss/numpy,ESSS/numpy,MSeifert04/numpy,pbrod/numpy,MSeifert04/numpy,jschueller/numpy,MichaelAquilina/numpy,mathdd/numpy,Dapid/numpy,cjermain/numpy,tacaswell/numpy,Srisai85/numpy,felipebetancur/numpy,BMJHayward/numpy,joferkington/numpy,MichaelAquilina/numpy,bertrand-l/numpy,hainm/numpy,mathdd/numpy,argriffing/numpy,skwbc/numpy,njase/numpy,ViralLeadership/numpy,maniteja123/numpy,SunghanKim/numpy,BMJHayward/numpy,BabeNovelty/numpy,pyparallel/numpy,ssanderson/numpy,bmorris3/numpy,pyparallel/numpy,KaelChen/numpy,ViralLeadership/numpy,SunghanKim/numpy,mhvk/numpy,sonnyhu/numpy,BMJHayward/numpy,rherault-insa/numpy,chiffa/numpy,anntzer/numpy,numpy/numpy,Yusa95/numpy,jorisvandenbossche/numpy,drasmuss/numpy,simongibbons/numpy,bmorris3/numpy,leifdenby/numpy,githubmlai/numpy,ddasilva/numpy,SunghanKim/numpy,ViralLeadership/numpy,ChristopherHogan/numpy,WarrenWeckesser/numpy,nbeaver/numpy,endolith/numpy,MSeifert04/numpy,njase/numpy,Dapid/numpy,SiccarPoint/numpy,moreati/numpy,Linkid/numpy,AustereCuriosity/numpy,madphysicist/numpy,ContinuumIO/numpy,rajathkumarmp/numpy,ChanderG/numpy,cjermain/numpy,KaelChen/numpy,behzadnouri/numpy,WillieMaddox/numpy,CMartelLML/numpy,jankoslavic/numpy,MaPePeR/numpy,rherault-insa/numpy,BabeNovelty/numpy,ddasilva/numpy,simongibbons/numpy,rgommers/numpy,mhvk/numpy,bringingheavendown/numpy,pizzathief/numpy,hainm/numpy,WarrenWeckesser/numpy,rudimeier/numpy,Linkid/numpy,SunghanKim/numpy,utke1/numpy,GaZ3ll3/numpy,drasmuss/numpy,ChristopherHogan/numpy,utke1/numpy,rgommers/numpy,jschueller/numpy,githubmlai/numpy,jakirkham/numpy,dimasad/numpy,anntzer/numpy,chiffa/numpy,Yusa95/numpy,bmorris3/numpy,jonathanunderwood/numpy,has2k1/numpy,gmcastil/numpy,kiwifb/numpy,tynn/numpy,chatcannon/numpy,argriffing/numpy,groutr/numpy,ContinuumIO/numpy,pizzathief/numpy,ESSS/numpy,ekalosak/numpy,felipebetancur/numpy,shoyer/numpy,Eric89GXL/numpy,ssanderson/numpy,jankoslavic/numpy,skymanaditya1/numpy,mattip/numpy,felipebetancur/numpy,rhythmsosad/numpy,simongibbons/numpy,bertrand-l/numpy,ekalosak/numpy,sinhrks/numpy
d5b629639feb01dc7f7d15cc5393612acff8f01a
tests/test-driver-decode.c
tests/test-driver-decode.c
//!compile = {cc} {ccflags} -c -o {ofile} {infile} && {cc} {ccflags} -o {outfile} {ofile} {driver} ../libdbrew.a -I../include #include <stdio.h> #include <stdbool.h> #include <string.h> #include <stdlib.h> #include "dbrew.h" int f1(int); // possible jump target int f2(int x) { return x; } int main() { // Decode the function. Rewriter* r = dbrew_new(); // to get rid of changing addresses, assume gen code to be 200 bytes max dbrew_config_function_setname(r, (uintptr_t) f1, "f1"); dbrew_config_function_setsize(r, (uintptr_t) f1, 200); dbrew_decode_print(r, (uintptr_t) f1, 1); return 0; }
//!compile = as -c -o {ofile} {infile} && {cc} {ccflags} -o {outfile} {ofile} {driver} ../libdbrew.a -I../include #include <stdio.h> #include <stdbool.h> #include <string.h> #include <stdlib.h> #include "dbrew.h" int f1(int); // possible jump target int f2(int x) { return x; } int main() { // Decode the function. Rewriter* r = dbrew_new(); // to get rid of changing addresses, assume gen code to be 200 bytes max dbrew_config_function_setname(r, (uintptr_t) f1, "f1"); dbrew_config_function_setsize(r, (uintptr_t) f1, 200); dbrew_decode_print(r, (uintptr_t) f1, 1); return 0; }
Fix Travis for decoder tests
Fix Travis for decoder tests The assembler of clang-3.5 in the images used by Travis seems to have a bug with assembling the "test" instruction, resulting in machine code with reversed operands (this does not happen e.g. with clang-3.8). As decoder tests all use assembly files as input, we force use of the GNU assembler "as" via setting the compile line accordingly for this test class.
C
lgpl-2.1
lrr-tum/dbrew,lrr-tum/dbrew,lrr-tum/dbrew,lrr-tum/dbrew,lrr-tum/dbrew
7a321e0489b8bfeb96f42ccef2c453d54a9fa6e5
tests/regression/02-base/47-no-threadescape.c
tests/regression/02-base/47-no-threadescape.c
// PARAM: --set ana.activated "['base','mallocWrapper','threadflag']" #include <pthread.h> int g = 10; void* t(void *v) { int* p = (int*) v; *p = 4711; } int main(void){ int l = 42; pthread_t tid; pthread_create(&tid, NULL, t, (void *)&l); pthread_join(tid, NULL); assert(l==42); //UNKNOWN! return 0; }
Add failing test without threadescape
Add failing test without threadescape
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
bd27e3eb98123cf5f2cee719e527e7ac436eccb9
test2/literals/int_max.c
test2/literals/int_max.c
// RUN: %ucc -fsyntax-only %s long a; __typeof(-2147483648) a; int b; __typeof(-2147483647) b; int c; __typeof(2147483647) c; long d; __typeof(2147483648) d;
Add integer literal type test
Add integer literal type test
C
mit
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
f9b6386e1f69a8f5b4d69b0f1af75d242bcd71e9
src/game/detail/view_input/sound_effect_modifier.h
src/game/detail/view_input/sound_effect_modifier.h
#pragma once #include "augs/math/declare_math.h" #include "augs/audio/distance_model.h" struct sound_effect_modifier { // GEN INTROSPECTOR struct sound_effect_modifier real32 gain = 1.f; real32 pitch = 1.f; real32 max_distance = -1.f; real32 reference_distance = -1.f; real32 doppler_factor = 1.f; augs::distance_model distance_model = augs::distance_model::NONE; int repetitions = 1; bool fade_on_exit = true; bool disable_velocity = false; bool always_direct_listener = false; pad_bytes<1> pad; // END GEN INTROSPECTOR };
#pragma once #include "augs/math/declare_math.h" #include "augs/audio/distance_model.h" struct sound_effect_modifier { // GEN INTROSPECTOR struct sound_effect_modifier real32 gain = 1.f; real32 pitch = 1.f; real32 max_distance = -1.f; real32 reference_distance = -1.f; real32 doppler_factor = 1.f; char repetitions = 1; bool fade_on_exit = true; bool disable_velocity = false; bool always_direct_listener = false; augs::distance_model distance_model = augs::distance_model::NONE; // END GEN INTROSPECTOR };
FIx sound(..)modifier compaibility with old maps
FIx sound(..)modifier compaibility with old maps
C
agpl-3.0
TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia
7a5b85dacdc86ec8cf5d32aeea2312189a0a5587
src/forces/labeller_frame_data.h
src/forces/labeller_frame_data.h
#ifndef SRC_FORCES_LABELLER_FRAME_DATA_H_ #define SRC_FORCES_LABELLER_FRAME_DATA_H_ #include <Eigen/Core> #include <iostream> namespace Forces { /** * \brief * * */ class LabellerFrameData { public: EIGEN_MAKE_ALIGNED_OPERATOR_NEW LabellerFrameData(double frameTime, Eigen::Matrix4f projection, Eigen::Matrix4f view) : frameTime(frameTime), projection(projection), view(view), viewProjection(projection * view) { } const double frameTime; const Eigen::Matrix4f projection; const Eigen::Matrix4f view; const Eigen::Matrix4f viewProjection; Eigen::Vector3f project(Eigen::Vector3f vector) const { Eigen::Vector4f projected = viewProjection * Eigen::Vector4f(vector.x(), vector.y(), vector.z(), 1); std::cout << "projected" << projected / projected.w() << std::endl; return projected.head<3>() / projected.w(); } }; } // namespace Forces #endif // SRC_FORCES_LABELLER_FRAME_DATA_H_
#ifndef SRC_FORCES_LABELLER_FRAME_DATA_H_ #define SRC_FORCES_LABELLER_FRAME_DATA_H_ #include "../eigen.h" #include <iostream> namespace Forces { /** * \brief * * */ class LabellerFrameData { public: EIGEN_MAKE_ALIGNED_OPERATOR_NEW LabellerFrameData(double frameTime, Eigen::Matrix4f projection, Eigen::Matrix4f view) : frameTime(frameTime), projection(projection), view(view), viewProjection(projection * view) { } const double frameTime; const Eigen::Matrix4f projection; const Eigen::Matrix4f view; const Eigen::Matrix4f viewProjection; Eigen::Vector3f project(Eigen::Vector3f vector) const { Eigen::Vector4f projected = mul(viewProjection, vector); return projected.head<3>() / projected.w(); } }; } // namespace Forces #endif // SRC_FORCES_LABELLER_FRAME_DATA_H_
Use new mul function in LabellerFrameData::project.
Use new mul function in LabellerFrameData::project.
C
mit
Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller
58022a61d6882902b9dc22060638f1ac9a6b95bf
src/fs/driver/devfs/devfs_dvfs.c
src/fs/driver/devfs/devfs_dvfs.c
/** * @file devfs_dvfs.c * @brief * @author Denis Deryugin <[email protected]> * @version 0.1 * @date 2015-09-28 */ /* This is stub */
/** * @file devfs_dvfs.c * @brief * @author Denis Deryugin <[email protected]> * @version 0.1 * @date 2015-09-28 */ #include <fs/dvfs.h> #include <util/array.h> static int devfs_destroy_inode(struct inode *inode) { return 0; } static int devfs_iterate(struct inode *next, struct inode *parent, struct dir_ctx *ctx) { return 0; } static struct inode *devfs_lookup(char const *name, struct dentry const *dir) { return NULL; } static int devfs_pathname(struct inode *inode, char *buf, int flags) { return 0; } static int devfs_mount_end(struct super_block *sb) { return 0; } static int devfs_open(struct inode *node, struct file *file) { return 0; } static size_t devfs_read(struct file *desc, void *buf, size_t size) { return 0; } static int devfs_ioctl(struct file *desc, int request, ...) { return 0; } struct super_block_operations devfs_sbops = { .destroy_inode = devfs_destroy_inode, }; struct inode_operations devfs_iops = { .lookup = devfs_lookup, .iterate = devfs_iterate, .pathname = devfs_pathname, }; struct file_operations devfs_fops = { .open = devfs_open, .read = devfs_read, .ioctl = devfs_ioctl, }; static int devfs_fill_sb(struct super_block *sb, struct block_dev *dev) { sb->sb_iops = &devfs_iops; sb->sb_fops = &devfs_fops; sb->sb_ops = &devfs_sbops; return 0; } static struct dumb_fs_driver devfs_dumb_driver = { .name = "devfs", .fill_sb = devfs_fill_sb, .mount_end = devfs_mount_end, }; ARRAY_SPREAD_DECLARE(struct dumb_fs_driver *, dumb_drv_tab); ARRAY_SPREAD_ADD(dumb_drv_tab, &devfs_dumb_driver);
Add fs-related structures and stub functions
devfs: Add fs-related structures and stub functions
C
bsd-2-clause
Kakadu/embox,Kakadu/embox,mike2390/embox,embox/embox,gzoom13/embox,mike2390/embox,embox/embox,gzoom13/embox,mike2390/embox,mike2390/embox,Kakadu/embox,gzoom13/embox,Kakadu/embox,gzoom13/embox,gzoom13/embox,Kakadu/embox,Kakadu/embox,mike2390/embox,gzoom13/embox,mike2390/embox,gzoom13/embox,embox/embox,embox/embox,Kakadu/embox,mike2390/embox,embox/embox,embox/embox
e5c5c31ef382af0620d4b9f8177e287e00a09fa0
src/tokenizer/gru_tokenizer_factory_trainer.h
src/tokenizer/gru_tokenizer_factory_trainer.h
// This file is part of MorphoDiTa <http://github.com/ufal/morphodita/>. // // 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 a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. #pragma once #include "common.h" #include "tokenizer.h" namespace ufal { namespace morphodita { class tokenized_sentence { u32string sentence; vector<token_range> tokens; }; class gru_tokenizer_factory_trainer { public: static bool train(unsigned version, const vector<tokenized_sentence>& data, ostream& os, string& error); }; } // namespace morphodita } // namespace ufal
// This file is part of MorphoDiTa <http://github.com/ufal/morphodita/>. // // 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 a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. #pragma once #include "common.h" #include "tokenizer.h" namespace ufal { namespace morphodita { struct tokenized_sentence { u32string sentence; vector<token_range> tokens; }; class gru_tokenizer_factory_trainer { public: static bool train(unsigned version, const vector<tokenized_sentence>& data, ostream& os, string& error); }; } // namespace morphodita } // namespace ufal
Make tokenized_sentence a structure (i.e., all fields public).
Make tokenized_sentence a structure (i.e., all fields public).
C
mpl-2.0
ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita
64cc62d502eca5728de8d9aa431d7e76ce438467
test/Analysis/stack-addr-ps.c
test/Analysis/stack-addr-ps.c
// RUN: clang -checker-simple -verify %s int* f1() { int x = 0; return &x; // expected-warning{{Address of stack memory associated with local variable 'x' returned.}} expected-warning{{address of stack memory associated with local variable 'x' returned}} } int* f2(int y) { return &y; // expected-warning{{Address of stack memory associated with local variable 'y' returned.}} expected-warning{{address of stack memory associated with local variable 'y' returned}} } int* f3(int x, int *y) { int w = 0; if (x) y = &w; return y; // expected-warning{{Address of stack memory associated with local variable 'w' returned.}} } void* compound_literal(int x) { if (x) return &(unsigned short){((unsigned short)0x22EF)}; // expected-warning{{Address of stack memory}} expected-warning{{braces around scalar initializer}} struct s { int z; double y; int w; }; return &((struct s){ 2, 0.4, 5 * 8 }); }
// RUN: clang -checker-simple -verify %s int* f1() { int x = 0; return &x; // expected-warning{{Address of stack memory associated with local variable 'x' returned.}} expected-warning{{address of stack memory associated with local variable 'x' returned}} } int* f2(int y) { return &y; // expected-warning{{Address of stack memory associated with local variable 'y' returned.}} expected-warning{{address of stack memory associated with local variable 'y' returned}} } int* f3(int x, int *y) { int w = 0; if (x) y = &w; return y; // expected-warning{{Address of stack memory associated with local variable 'w' returned.}} } void* compound_literal(int x) { if (x) return &(unsigned short){((unsigned short)0x22EF)}; // expected-warning{{Address of stack memory}} expected-warning{{braces around scalar initializer}} int* array[] = {}; struct s { int z; double y; int w; }; return &((struct s){ 2, 0.4, 5 * 8 }); // expected-warning{{Address of stack memory}} }
Add missing "expected warning". Add compound literal with empty initializer (just to test the analyzer handles it).
Add missing "expected warning". Add compound literal with empty initializer (just to test the analyzer handles it). git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@58470 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/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,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang
bade646d8e40457662c195d5b25ae41822c5f35b
safe.h
safe.h
#ifndef SAFE_H #define SAFE_H #include "debug.h" #ifndef DISABLE_SAFE #define SAFE_STRINGIFY(x) #x #define SAFE_TOSTRING(x) SAFE_STRINGIFY(x) #define SAFE_AT __FILE__ ":" SAFE_TOSTRING(__LINE__) ": " #define SAFE_ASSERT(cond) do { \ if (!(cond)) { \ DEBUG_DUMP(0, "error: " SAFE_AT "%m"); \ DEBUG_BREAK(!(cond)); \ } \ } while (0) #else #define SAFE_ASSERT(...) #endif #include <stdint.h> #define SAFE_NNCALL(call) do { \ intptr_t ret = (intptr_t) (call); \ SAFE_ASSERT(ret >= 0); \ } while (0) #define SAFE_NZCALL(call) do { \ intptr_t ret = (intptr_t) (call); \ SAFE_ASSERT(ret != 0); \ } while (0) #endif /* end of include guard: SAFE_H */
#ifndef SAFE_H #define SAFE_H #include "debug.h" #ifndef DISABLE_SAFE #define SAFE_STRINGIFY(x) #x #define SAFE_TOSTRING(x) SAFE_STRINGIFY(x) #define SAFE_AT __FILE__ ":" SAFE_TOSTRING(__LINE__) ": " #define SAFE_ASSERT(cond) do { \ if (!(cond)) { \ DEBUG_DUMP(0, "error: " SAFE_AT "%m"); \ DEBUG_BREAK(!(cond)); \ } \ } while (0) #else #define SAFE_ASSERT(...) #endif #include <stdint.h> #define SAFE_NNCALL(call) do { \ intptr_t ret = (intptr_t) (call); \ SAFE_ASSERT(ret >= 0); \ } while (0) #define SAFE_NZCALL(call) do { \ intptr_t ret = (intptr_t) (call); \ SAFE_ASSERT(ret != 0); \ } while (0) #define SAFE_RZCALL(call) do { \ intptr_t ret = (intptr_t) (call); \ SAFE_ASSERT(ret == 0); \ } while (0) #endif /* end of include guard: SAFE_H */
Add SAFE_RZCALL to wrap calls that returns zero.
Add SAFE_RZCALL to wrap calls that returns zero.
C
mit
chaoran/fibril,chaoran/fibril,chaoran/fibril
fa0a3d781ea01c0f790c3af40cc7429ad73af132
include/ParseNode.h
include/ParseNode.h
//======================================================================= // Copyright Baptiste Wicht 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //======================================================================= #ifndef PARSE_NODE_H #define PARSE_NODE_H #include <list> #include "ByteCodeFileWriter.h" #include "Variables.h" #include "CompilerException.h" class ParseNode; typedef std::list<ParseNode*>::const_iterator NodeIterator; class StringPool; class ParseNode { private: ParseNode* parent; std::list<ParseNode*> childs; public: ParseNode() : parent(NULL){}; virtual ~ParseNode(); virtual void write(ByteCodeFileWriter& writer); virtual void checkVariables(Variables& variables) throw (CompilerException); virtual void checkStrings(StringPool& pool); virtual void optimize(); void addFirst(ParseNode* node); void addLast(ParseNode* node); void replace(ParseNode* old, ParseNode* node); void remove(ParseNode* node); NodeIterator begin(); NodeIterator end(); }; #endif
//======================================================================= // Copyright Baptiste Wicht 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //======================================================================= #ifndef PARSE_NODE_H #define PARSE_NODE_H #include <list> #include "ByteCodeFileWriter.h" #include "Variables.h" #include "CompilerException.h" class ParseNode; typedef std::list<ParseNode*>::const_iterator NodeIterator; class StringPool; class ParseNode { private: std::list<ParseNode*> childs; protected: ParseNode* parent; public: ParseNode() : parent(NULL){}; virtual ~ParseNode(); virtual void write(ByteCodeFileWriter& writer); virtual void checkVariables(Variables& variables) throw (CompilerException); virtual void checkStrings(StringPool& pool); virtual void optimize(); void addFirst(ParseNode* node); void addLast(ParseNode* node); void replace(ParseNode* old, ParseNode* node); void remove(ParseNode* node); NodeIterator begin(); NodeIterator end(); }; #endif
Make parent protected so that the child can know their parents
Make parent protected so that the child can know their parents
C
mit
vogelsgesang/eddic,vogelsgesang/eddic,wichtounet/eddic,wichtounet/eddic,vogelsgesang/eddic,wichtounet/eddic
894133a4b116abcde29ae9a92e5f823af6713083
include/libk/kmem.h
include/libk/kmem.h
#ifndef KMEM_H #define KMEM_H #include <stdbool.h> #include <stdint.h> #include <arch/x86/paging.h> #include <libk/kabort.h> #define KHEAP_PHYS_ROOT ((void*)0x100000) //#define KHEAP_PHYS_END ((void*)0xc1000000) #define KHEAP_END_SENTINEL (NULL) // 1 GB #define PHYS_MEMORY_SIZE (1*1024*1024*1024) #define KHEAP_BLOCK_SLOP 32 #define PAGE_ALIGN(x) ((uint32_t)x >> 12) struct kheap_metadata { size_t size; struct kheap_metadata *next; bool is_free; }; struct kheap_metadata *root; struct kheap_metadata *kheap_init(); int kheap_extend(); void kheap_install(struct kheap_metadata *root, size_t initial_heap_size); void *kmalloc(size_t bytes); void kfree(void *mem); void kheap_defragment(); #endif
#ifndef KMEM_H #define KMEM_H #include <stdbool.h> #include <stdint.h> #include <arch/x86/paging.h> #include <libk/kabort.h> #define KHEAP_PHYS_ROOT ((void*)0x100000) //#define KHEAP_PHYS_END ((void*)0xc1000000) #define KHEAP_END_SENTINEL (NULL) #define KHEAP_BLOCK_SLOP 32 struct kheap_metadata { size_t size; struct kheap_metadata *next; bool is_free; }; struct kheap_metadata *root; struct kheap_metadata *kheap_init(); int kheap_extend(); void kheap_install(struct kheap_metadata *root, size_t initial_heap_size); void *kmalloc(size_t bytes); void kfree(void *mem); void kheap_defragment(); #endif
Remove macros which now live in paging.h
Remove macros which now live in paging.h
C
mit
iankronquist/kernel-of-truth,Herbstein/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,awensaunders/kernel-of-truth,Herbstein/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,awensaunders/kernel-of-truth,Herbstein/kernel-of-truth,awensaunders/kernel-of-truth
adf0978b3ac91823bf105e78aabb805aaa11e17a
src/gamemodel/Terrain.h
src/gamemodel/Terrain.h
#ifndef TERRAIN_H #define TERRAIN_H #include <util/Math.h> #include <util/Random.h> #include <vector> #include "Constants.h" class Terrain { public: Terrain( const float stepLength = constants::TERRAIN_STEP_LENGTH, const float amplitude = constants::TERRAIN_HEIGHT_VARIATION_AMPLITUDE, const float worldInitLength = constants::WORLD_INIT_LENGTH); virtual ~Terrain(); void ensureHasTerrainTo(const float end); glm::vec2 vertexAtX(const float x) const; // Inlining these as performance examples float stepLength() const { return _stepLength; } float length() const { return float(_vertices.size()) * stepLength() - stepLength(); } const std::vector<glm::vec2>& Terrain::vertices() const { return _vertices; } bool isAboveGround(const glm::vec2& pos) const; bool isBelowGround(const glm::vec2& pos) const { return !isAboveGround(pos); } private: Random _randomizer; const float _stepLength; const float _amplitude; std::vector<glm::vec2> _vertices; }; #endif
#ifndef TERRAIN_H #define TERRAIN_H #include <util/Math.h> #include <util/Random.h> #include <vector> #include "Constants.h" class Terrain { public: Terrain( const float stepLength = constants::TERRAIN_STEP_LENGTH, const float amplitude = constants::TERRAIN_HEIGHT_VARIATION_AMPLITUDE, const float worldInitLength = constants::WORLD_INIT_LENGTH); virtual ~Terrain(); void ensureHasTerrainTo(const float end); glm::vec2 vertexAtX(const float x) const; // Inlining these as performance examples float stepLength() const { return _stepLength; } float length() const { return float(_vertices.size()) * stepLength() - stepLength(); } const std::vector<glm::vec2>& vertices() const { return _vertices; } bool isAboveGround(const glm::vec2& pos) const; bool isBelowGround(const glm::vec2& pos) const { return !isAboveGround(pos); } private: Random _randomizer; const float _stepLength; const float _amplitude; std::vector<glm::vec2> _vertices; }; #endif
Fix compilation bug on linux
Fix compilation bug on linux
C
mit
GiGurra/drunken_walker,GiGurra/drunken_walker,GiGurra/drunken_walker,GiGurra/drunken_walker,GiGurra/drunken_walker
6d5fabbdb3b2f9e81ad75c93c0b238fa0a6e14fa
MWEditorAddOns/MTextAddOn.h
MWEditorAddOns/MTextAddOn.h
//================================================================== // MTextAddOn.h // Copyright 1996 Metrowerks Corporation, All Rights Reserved. //================================================================== // This is a proxy class used by Editor add_ons. It does not inherit from BView // but provides an abstract interface to a text engine. #ifndef _MTEXTADDON_H #define _MTEXTADDON_H #include <SupportKit.h> class MIDETextView; class BWindow; struct entry_ref; class MTextAddOn { public: MTextAddOn( MIDETextView& inTextView); virtual ~MTextAddOn(); virtual const char* Text(); virtual int32 TextLength() const; virtual void GetSelection( int32 *start, int32 *end) const; virtual void Select( int32 newStart, int32 newEnd); virtual void Delete(); virtual void Insert( const char* inText); virtual void Insert( const char* text, int32 length); virtual BWindow* Window(); virtual status_t GetRef( entry_ref& outRef); virtual bool IsEditable(); private: MIDETextView& fText; }; #endif
// [zooey, 2005]: made MTextAddon really an abstract class //================================================================== // MTextAddOn.h // Copyright 1996 Metrowerks Corporation, All Rights Reserved. //================================================================== // This is a proxy class used by Editor add_ons. It does not inherit from BView // but provides an abstract interface to a text engine. #ifndef MTEXTADDON_H #define MTEXTADDON_H //#include "HLibHekkel.h" class BWindow; struct entry_ref; class /*IMPEXP_LIBHEKKEL*/ MTextAddOn { public: virtual ~MTextAddOn(); virtual const char* Text() = 0; virtual int32 TextLength() const = 0; virtual void GetSelection(int32 *start, int32 *end) const = 0; virtual void Select(int32 newStart, int32 newEnd) = 0; virtual void Delete() = 0; virtual void Insert(const char* inText) = 0; virtual void Insert(const char* text, int32 length) = 0; virtual BWindow* Window() = 0; virtual status_t GetRef(entry_ref& outRef) = 0; }; #if !__INTEL__ #pragma export on #endif extern "C" { long perform_edit(MTextAddOn *addon); } #if !__INTEL__ #pragma export reset #endif typedef long (*perform_edit_func)(MTextAddOn *addon); #endif
Replace BeIDE header by the Pe version
Replace BeIDE header by the Pe version We won't be building for BeIDE anyway...
C
mit
mmuman/dontworry,mmuman/dontworry
ed753c358e9b27571f6be5f33b25cbe0738f0e36
src/libc/utils/efopen.c
src/libc/utils/efopen.c
#include "system.h" FILE * efopen(char *env) { char *t, *p; int port, sock; unless (t = getenv(env)) return (0); if (IsFullPath(t)) return (fopen(t, "a")); if ((p = strchr(t, ':')) && ((port = atoi(p+1)) > 0)) { *p = 0; sock = tcp_connect(t, port); return (fdopen(sock, "w")); } return (fopen(DEV_TTY, "w")); }
#include "system.h" FILE * efopen(char *env) { char *t, *p; int port, sock; unless (t = getenv(env)) return (0); if (IsFullPath(t)) return (fopen(t, "a")); if ((p = strchr(t, ':')) && ((port = atoi(p+1)) > 0)) { *p = 0; sock = tcp_connect(t, port); *p = ':'; if (sock >= 0) return (fdopen(sock, "w")); } return (fopen(DEV_TTY, "w")); }
Fix a bug where we stomp on the : in a host:port in BK_SHOWPROC Also don't assume the socket connected.
Fix a bug where we stomp on the : in a host:port in BK_SHOWPROC Also don't assume the socket connected. bk: 44b822c06FCnb1Sd2dJJIybq98XuEw
C
apache-2.0
bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper
4471aecefd4d31d1507968300b978c6a6237e157
src/config.h
src/config.h
#ifndef _CONFIG_H #define _CONFIG_H #define ENABLE_FUTILITY_DEPTH 1 // TODO: switch to at least 2 #define ENABLE_HISTORY 1 #define ENABLE_KILLERS 1 #define ENABLE_LMR 1 #define ENABLE_NNUE 0 #define ENABLE_NULL_MOVE_PRUNING 1 #define ENABLE_REVERSE_FUTILITY_DEPTH 1 // TODO: switch to at least 2 #define ENABLE_SEE_Q_PRUNE_LOSING_CAPTURES 0 #define ENABLE_SEE_SORTING 0 #define ENABLE_TIMER_STOP_DEEPENING 1 #define ENABLE_TT_CUTOFFS 1 #define ENABLE_TT_MOVES 1 #endif
#ifndef _CONFIG_H #define _CONFIG_H #define ENABLE_FUTILITY_DEPTH 1 // TODO: switch to at least 2 #define ENABLE_HISTORY 1 #define ENABLE_KILLERS 1 #define ENABLE_LMR 1 #define ENABLE_NNUE 0 #define ENABLE_NULL_MOVE_PRUNING 1 #define ENABLE_REVERSE_FUTILITY_DEPTH 1 // TODO: switch to at least 2 #define ENABLE_SEE_Q_PRUNE_LOSING_CAPTURES 1 #define ENABLE_SEE_SORTING 1 #define ENABLE_TIMER_STOP_DEEPENING 1 #define ENABLE_TT_CUTOFFS 1 #define ENABLE_TT_MOVES 1 #endif
Enable pruning losing captures in qsearch
Enable pruning losing captures in qsearch
C
bsd-3-clause
jwatzman/nameless-chessbot,jwatzman/nameless-chessbot
f1b1720769e346cc2a619f80191e380619421669
stdlib/public/SwiftShims/UIKitOverlayShims.h
stdlib/public/SwiftShims/UIKitOverlayShims.h
//===--- UIKitOverlayShims.h ---===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===--------------------===// #ifndef SWIFT_STDLIB_SHIMS_UIKIT_OVERLAY_H #define SWIFT_STDLIB_SHIMS_UIKIT_OVERLAY_H @import UIKit; #if __has_feature(nullability) #pragma clang assume_nonnull begin #endif #if TARGET_OS_TV || TARGET_OS_IOS static inline BOOL _swift_UIKit_UIFocusEnvironmentContainsEnvironment(id<UIFocusEnvironment> environment, id<UIFocusEnvironment> otherEnvironment) { return [UIFocusSystem environment:environment containsEnvironment:otherEnvironment]; } #endif // TARGET_OS_TV || TARGET_OS_IOS #if __has_feature(nullability) #pragma clang assume_nonnull end #endif #endif // SWIFT_STDLIB_SHIMS_UIKIT_OVERLAY_H
//===--- UIKitOverlayShims.h ---===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===--------------------===// #ifndef SWIFT_STDLIB_SHIMS_UIKIT_OVERLAY_H #define SWIFT_STDLIB_SHIMS_UIKIT_OVERLAY_H @import UIKit; #if __has_feature(nullability) #pragma clang assume_nonnull begin #endif #if TARGET_OS_TV || TARGET_OS_IOS static inline BOOL _swift_UIKit_UIFocusEnvironmentContainsEnvironment( id<UIFocusEnvironment> environment, id<UIFocusEnvironment> otherEnvironment ) API_AVAILABLE(ios(11.0), tvos(11.0)) { return [UIFocusSystem environment:environment containsEnvironment:otherEnvironment]; } #endif // TARGET_OS_TV || TARGET_OS_IOS #if __has_feature(nullability) #pragma clang assume_nonnull end #endif #endif // SWIFT_STDLIB_SHIMS_UIKIT_OVERLAY_H
Make the UIKit shim function properly available
[overlay] Make the UIKit shim function properly available <rdar://problem/33789760>
C
apache-2.0
xwu/swift,lorentey/swift,swiftix/swift,practicalswift/swift,jckarter/swift,apple/swift,parkera/swift,shajrawi/swift,allevato/swift,harlanhaskins/swift,aschwaighofer/swift,gregomni/swift,shajrawi/swift,CodaFi/swift,lorentey/swift,xedin/swift,gregomni/swift,gregomni/swift,airspeedswift/swift,shajrawi/swift,practicalswift/swift,devincoughlin/swift,gregomni/swift,uasys/swift,apple/swift,roambotics/swift,xwu/swift,brentdax/swift,lorentey/swift,airspeedswift/swift,atrick/swift,aschwaighofer/swift,uasys/swift,frootloops/swift,allevato/swift,huonw/swift,swiftix/swift,ahoppen/swift,glessard/swift,tjw/swift,zisko/swift,natecook1000/swift,JGiola/swift,tjw/swift,danielmartin/swift,austinzheng/swift,practicalswift/swift,glessard/swift,austinzheng/swift,alblue/swift,gregomni/swift,xedin/swift,shajrawi/swift,benlangmuir/swift,devincoughlin/swift,zisko/swift,rudkx/swift,ahoppen/swift,JGiola/swift,CodaFi/swift,huonw/swift,gribozavr/swift,karwa/swift,aschwaighofer/swift,sschiau/swift,parkera/swift,rudkx/swift,jopamer/swift,gribozavr/swift,nathawes/swift,stephentyrone/swift,hooman/swift,alblue/swift,gregomni/swift,karwa/swift,stephentyrone/swift,amraboelela/swift,CodaFi/swift,alblue/swift,devincoughlin/swift,rudkx/swift,zisko/swift,aschwaighofer/swift,roambotics/swift,stephentyrone/swift,roambotics/swift,JGiola/swift,apple/swift,jopamer/swift,shahmishal/swift,lorentey/swift,frootloops/swift,devincoughlin/swift,airspeedswift/swift,uasys/swift,jckarter/swift,hooman/swift,frootloops/swift,danielmartin/swift,nathawes/swift,jmgc/swift,brentdax/swift,tkremenek/swift,amraboelela/swift,OscarSwanros/swift,swiftix/swift,uasys/swift,benlangmuir/swift,glessard/swift,danielmartin/swift,shahmishal/swift,harlanhaskins/swift,frootloops/swift,OscarSwanros/swift,gribozavr/swift,rudkx/swift,nathawes/swift,jopamer/swift,gribozavr/swift,frootloops/swift,huonw/swift,OscarSwanros/swift,sschiau/swift,rudkx/swift,harlanhaskins/swift,stephentyrone/swift,roambotics/swift,ahoppen/swift,alblue/swift,tkremenek/swift,aschwaighofer/swift,austinzheng/swift,danielmartin/swift,sschiau/swift,harlanhaskins/swift,xedin/swift,stephentyrone/swift,ahoppen/swift,lorentey/swift,airspeedswift/swift,allevato/swift,brentdax/swift,shajrawi/swift,CodaFi/swift,ahoppen/swift,austinzheng/swift,shajrawi/swift,sschiau/swift,JGiola/swift,airspeedswift/swift,xwu/swift,nathawes/swift,xedin/swift,practicalswift/swift,xedin/swift,stephentyrone/swift,tkremenek/swift,shahmishal/swift,practicalswift/swift,jopamer/swift,sschiau/swift,jmgc/swift,airspeedswift/swift,rudkx/swift,karwa/swift,gribozavr/swift,jmgc/swift,natecook1000/swift,lorentey/swift,parkera/swift,allevato/swift,shahmishal/swift,jckarter/swift,alblue/swift,uasys/swift,tjw/swift,tkremenek/swift,hooman/swift,gribozavr/swift,benlangmuir/swift,apple/swift,uasys/swift,huonw/swift,apple/swift,tkremenek/swift,jmgc/swift,CodaFi/swift,stephentyrone/swift,atrick/swift,amraboelela/swift,lorentey/swift,tjw/swift,huonw/swift,zisko/swift,tkremenek/swift,practicalswift/swift,shahmishal/swift,jckarter/swift,huonw/swift,practicalswift/swift,jckarter/swift,devincoughlin/swift,natecook1000/swift,xwu/swift,atrick/swift,swiftix/swift,hooman/swift,zisko/swift,nathawes/swift,brentdax/swift,alblue/swift,huonw/swift,benlangmuir/swift,roambotics/swift,hooman/swift,amraboelela/swift,OscarSwanros/swift,benlangmuir/swift,gribozavr/swift,glessard/swift,xwu/swift,hooman/swift,xedin/swift,brentdax/swift,harlanhaskins/swift,atrick/swift,jmgc/swift,allevato/swift,lorentey/swift,parkera/swift,danielmartin/swift,devincoughlin/swift,CodaFi/swift,tkremenek/swift,jmgc/swift,karwa/swift,parkera/swift,alblue/swift,roambotics/swift,natecook1000/swift,zisko/swift,amraboelela/swift,tjw/swift,uasys/swift,parkera/swift,shahmishal/swift,austinzheng/swift,danielmartin/swift,swiftix/swift,apple/swift,swiftix/swift,frootloops/swift,gribozavr/swift,karwa/swift,nathawes/swift,benlangmuir/swift,ahoppen/swift,shahmishal/swift,karwa/swift,atrick/swift,sschiau/swift,jopamer/swift,natecook1000/swift,nathawes/swift,OscarSwanros/swift,airspeedswift/swift,xedin/swift,xwu/swift,JGiola/swift,glessard/swift,allevato/swift,JGiola/swift,brentdax/swift,jckarter/swift,austinzheng/swift,xwu/swift,tjw/swift,xedin/swift,harlanhaskins/swift,harlanhaskins/swift,parkera/swift,atrick/swift,natecook1000/swift,jopamer/swift,jckarter/swift,jopamer/swift,OscarSwanros/swift,sschiau/swift,aschwaighofer/swift,danielmartin/swift,parkera/swift,devincoughlin/swift,devincoughlin/swift,shajrawi/swift,tjw/swift,jmgc/swift,aschwaighofer/swift,allevato/swift,sschiau/swift,OscarSwanros/swift,glessard/swift,karwa/swift,swiftix/swift,brentdax/swift,shahmishal/swift,zisko/swift,frootloops/swift,shajrawi/swift,amraboelela/swift,natecook1000/swift,austinzheng/swift,CodaFi/swift,hooman/swift,amraboelela/swift,karwa/swift,practicalswift/swift
f1c1d7f0c28424d218fdff65705118b19d3681d8
src/Square.h
src/Square.h
#ifndef SQUARE_H_ #define SQUARE_H_ namespace flat2d { class Square { protected: int x, y, w, h; public: Square(int px, int py, int dim) : x(px), y(py), w(dim), h(dim) { } Square(int px, int py, int pw, int ph) : x(px), y(py), w(pw), h(ph) { } bool containsPoint(int, int) const; bool operator<(const Square&) const; bool operator==(const Square&) const; bool operator!=(const Square&) const; }; } // namespace flat2d #endif // SQUARE_H_
#ifndef SQUARE_H_ #define SQUARE_H_ namespace flat2d { class Square { protected: int x, y, w, h; public: Square(int px, int py, int dim) : x(px), y(py), w(dim), h(dim) { } Square(int px, int py, int pw, int ph) : x(px), y(py), w(pw), h(ph) { } bool containsPoint(int, int) const; bool operator<(const Square&) const; bool operator==(const Square&) const; bool operator!=(const Square&) const; int getXpos() { return x; } int getYpos() { return y; } int getWidth() { return w; } int getHeight() { return h; } }; } // namespace flat2d #endif // SQUARE_H_
Make square position and dimension accessible
Make square position and dimension accessible
C
mit
LiquidityC/flat
d582802aaf0400c4ca4a5832e63492860d8daa70
boards/wizzimote/include/periph_conf.h
boards/wizzimote/include/periph_conf.h
#ifndef PERIPH_CONF_H #define PERIPH_CONF_H #ifdef __cplusplus extern "C" { #endif /** * @brief Real Time Clock configuration */ #define RTC_NUMOF (1) #ifdef __cplusplus } #endif #endif /* PERIPH_CONF_H */
#ifndef PERIPH_CONF_H #define PERIPH_CONF_H #ifdef __cplusplus extern "C" { #endif /** * @brief Real Time Clock configuration * @{ */ #define RTC_NUMOF (1) /** @} */ /** * @brief Timer configuration * @{ */ #define TIMER_NUMOF (2U) #define TIMER_0_EN 1 #define TIMER_1_EN 1 /* Timer 0 configuration */ #define TIMER_0_CHANNELS 5 #define TIMER_0_MAX_VALUE (0xffff) /* TODO(ximus): Finalize this, current setup is not provide 1Mhz */ #define TIMER_0_CLK_TASSEL TASSEL_2 /* SMLCK @ Mhz */ #define TIMER_0_DIV_ID ID__1 /* /1 */ #define TIMER_0_DIV_TAIDEX TAIDEX_4 /* /5 */ /* Timer 1 configuration */ #define TIMER_1_CHANNELS 3 #define TIMER_1_MAX_VALUE (0xffff) #define TIMER_1_CLK_TASSEL TASSEL_2 /* SMLCK @ Mhz */ #define TIMER_1_DIV_ID ID__1 /* /1 */ #define TIMER_1_DIV_TAIDEX TAIDEX_4 /* /5 */ /** @} */ /** * @brief wtimer configuration * @{ */ /* NOTE(ximus): all msp430's are 16-bit, should be defined in cpu */ #define WTIMER_MASK 0xffff0000 /* 16-bit timers */ /* TODO(ximus): set these correctly. default values for now */ #define WTIMER_USLEEP_UNTIL_OVERHEAD 3 #define WTIMER_OVERHEAD 24 #define WTIMER_BACKOFF 30 /** @} */ #ifdef __cplusplus } #endif #endif /* PERIPH_CONF_H */
Update wizzimote timer periph config
Update wizzimote timer periph config
C
lgpl-2.1
ximus/RIOT,ximus/RIOT,ximus/RIOT,ximus/RIOT,ximus/RIOT,ximus/RIOT
08a32f1488d732ddef8d4a070f27a70695729cc2
tensorflow/core/platform/hexagon/gemm_wrapper.h
tensorflow/core/platform/hexagon/gemm_wrapper.h
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #ifndef TENSORFLOW_PLATFORM_HEXAGON_GEMM_WRAPPER_H_ #define TENSORFLOW_PLATFORM_HEXAGON_GEMM_WRAPPER_H_ // Declaration of APIs provided by hexagon shared library. This header is shared // with both hexagon library built with qualcomm SDK and tensorflow. // All functions defined here must have prefix "hexagon_gemm_wrapper" to avoid // naming conflicts. #ifdef __cplusplus extern "C" { #endif // __cplusplus // Returns the version of loaded hexagon shared library. Assert if the version // matches the expected version. int hexagon_gemm_wrapper_GetVersion(); // TODO(satok): Support gemm APIs via RPC #ifdef __cplusplus } #endif // __cplusplus #endif // TENSORFLOW_PLATFORM_HEXAGON_GEMM_WRAPPER_H_
Add a header for hexagon shared library Change: 130671228
Add a header for hexagon shared library Change: 130671228
C
apache-2.0
whn09/tensorflow,strint/tensorflow,mengxn/tensorflow,Kongsea/tensorflow,code-sauce/tensorflow,sjperkins/tensorflow,rabipanda/tensorflow,nburn42/tensorflow,gojira/tensorflow,Mistobaan/tensorflow,cancan101/tensorflow,bowang/tensorflow,zasdfgbnm/tensorflow,XueqingLin/tensorflow,bowang/tensorflow,apark263/tensorflow,mortada/tensorflow,arborh/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gojira/tensorflow,sandeepgupta2k4/tensorflow,jendap/tensorflow,martinwicke/tensorflow,jhaux/tensorflow,ppwwyyxx/tensorflow,rdipietro/tensorflow,Xeralux/tensorflow,martinwicke/tensorflow,handroissuazo/tensorflow,suiyuan2009/tensorflow,bowang/tensorflow,HKUST-SING/tensorflow,martinwicke/tensorflow,alivecor/tensorflow,frreiss/tensorflow-fred,lakshayg/tensorflow,juharris/tensorflow,nolanliou/tensorflow,ArtsiomCh/tensorflow,tntnatbry/tensorflow,whn09/tensorflow,ran5515/DeepDecision,AnishShah/tensorflow,alheinecke/tensorflow-xsmm,karllessard/tensorflow,brchiu/tensorflow,LUTAN/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,SnakeJenny/TensorFlow,Bismarrck/tensorflow,code-sauce/tensorflow,jendap/tensorflow,jostep/tensorflow,anand-c-goog/tensorflow,HKUST-SING/tensorflow,ageron/tensorflow,sjperkins/tensorflow,gautam1858/tensorflow,mavenlin/tensorflow,davidzchen/tensorflow,tomasreimers/tensorflow-emscripten,adit-chandra/tensorflow,meteorcloudy/tensorflow,Mazecreator/tensorflow,ageron/tensorflow,mixturemodel-flow/tensorflow,mavenlin/tensorflow,adit-chandra/tensorflow,calebfoss/tensorflow,av8ramit/tensorflow,benoitsteiner/tensorflow-xsmm,SnakeJenny/TensorFlow,Intel-tensorflow/tensorflow,jhaux/tensorflow,yongtang/tensorflow,chris-chris/tensorflow,a-doumoulakis/tensorflow,jostep/tensorflow,hfp/tensorflow-xsmm,nolanliou/tensorflow,tensorflow/tensorflow-pywrap_saved_model,seanli9jan/tensorflow,aselle/tensorflow,dongjoon-hyun/tensorflow,tiagofrepereira2012/tensorflow,code-sauce/tensorflow,Intel-Corporation/tensorflow,zasdfgbnm/tensorflow,rabipanda/tensorflow,ravindrapanda/tensorflow,scenarios/tensorflow,eadgarchen/tensorflow,Xeralux/tensorflow,yufengg/tensorflow,Bismarrck/tensorflow,mrry/tensorflow,pcm17/tensorflow,mrry/tensorflow,HKUST-SING/tensorflow,jhseu/tensorflow,johndpope/tensorflow,zasdfgbnm/tensorflow,benoitsteiner/tensorflow,Bismarrck/tensorflow,jhaux/tensorflow,nolanliou/tensorflow,wangyum/tensorflow,llhe/tensorflow,seanli9jan/tensorflow,hsaputra/tensorflow,Xeralux/tensorflow,odejesush/tensorflow,neilhan/tensorflow,Mazecreator/tensorflow,ychfan/tensorflow,kobejean/tensorflow,llhe/tensorflow,ArtsiomCh/tensorflow,benoitsteiner/tensorflow-xsmm,aam-at/tensorflow,whn09/tensorflow,tillahoffmann/tensorflow,nightjean/Deep-Learning,horance-liu/tensorflow,rabipanda/tensorflow,snnn/tensorflow,xzturn/tensorflow,seaotterman/tensorflow,abhitopia/tensorflow,thjashin/tensorflow,aldian/tensorflow,ibmsoe/tensorflow,tensorflow/tensorflow,dendisuhubdy/tensorflow,mengxn/tensorflow,HKUST-SING/tensorflow,strint/tensorflow,Intel-Corporation/tensorflow,sjperkins/tensorflow,cxxgtxy/tensorflow,manipopopo/tensorflow,thesuperzapper/tensorflow,hsaputra/tensorflow,chris-chris/tensorflow,anilmuthineni/tensorflow,XueqingLin/tensorflow,manjunaths/tensorflow,MycChiu/tensorflow,maciekcc/tensorflow,admcrae/tensorflow,allenlavoie/tensorflow,alsrgv/tensorflow,apark263/tensorflow,karllessard/tensorflow,lukeiwanski/tensorflow-opencl,ville-k/tensorflow,codrut3/tensorflow,krikru/tensorflow-opencl,petewarden/tensorflow,krikru/tensorflow-opencl,benoitsteiner/tensorflow,johndpope/tensorflow,manipopopo/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,sandeepdsouza93/TensorFlow-15712,ghchinoy/tensorflow,paolodedios/tensorflow,XueqingLin/tensorflow,whn09/tensorflow,jendap/tensorflow,caisq/tensorflow,anand-c-goog/tensorflow,XueqingLin/tensorflow,jeffzheng1/tensorflow,gunan/tensorflow,aselle/tensorflow,vrv/tensorflow,ishay2b/tensorflow,alsrgv/tensorflow,markslwong/tensorflow,freedomtan/tensorflow,dendisuhubdy/tensorflow,bowang/tensorflow,dyoung418/tensorflow,ageron/tensorflow,dongjoon-hyun/tensorflow,RapidApplicationDevelopment/tensorflow,apark263/tensorflow,yaroslavvb/tensorflow,ran5515/DeepDecision,snnn/tensorflow,anilmuthineni/tensorflow,ran5515/DeepDecision,nburn42/tensorflow,andrewcmyers/tensorflow,nikste/tensorflow,gojira/tensorflow,MoamerEncsConcordiaCa/tensorflow,johndpope/tensorflow,frreiss/tensorflow-fred,jbedorf/tensorflow,abhitopia/tensorflow,ArtsiomCh/tensorflow,a-doumoulakis/tensorflow,krikru/tensorflow-opencl,lakshayg/tensorflow,gojira/tensorflow,juharris/tensorflow,kchodorow/tensorflow,ppwwyyxx/tensorflow,gautam1858/tensorflow,memo/tensorflow,alistairlow/tensorflow,brchiu/tensorflow,SnakeJenny/TensorFlow,rdipietro/tensorflow,Bulochkin/tensorflow_pack,krikru/tensorflow-opencl,maciekcc/tensorflow,elingg/tensorflow,raymondxyang/tensorflow,code-sauce/tensorflow,horance-liu/tensorflow,freedomtan/tensorflow,petewarden/tensorflow,chenjun0210/tensorflow,mengxn/tensorflow,hsaputra/tensorflow,vrv/tensorflow,drpngx/tensorflow,chemelnucfin/tensorflow,av8ramit/tensorflow,benoitsteiner/tensorflow-xsmm,eaplatanios/tensorflow,AnishShah/tensorflow,sandeepdsouza93/TensorFlow-15712,markslwong/tensorflow,naturali/tensorflow,with-git/tensorflow,freedomtan/tensorflow,caisq/tensorflow,karllessard/tensorflow,yaroslavvb/tensorflow,yanchen036/tensorflow,jwlawson/tensorflow,benoitsteiner/tensorflow-opencl,dyoung418/tensorflow,anilmuthineni/tensorflow,manipopopo/tensorflow,alistairlow/tensorflow,andrewcmyers/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-experimental_link_static_libraries_once,lukeiwanski/tensorflow-opencl,pierreg/tensorflow,tntnatbry/tensorflow,raymondxyang/tensorflow,bowang/tensorflow,dancingdan/tensorflow,LUTAN/tensorflow,jhseu/tensorflow,nburn42/tensorflow,jhseu/tensorflow,Intel-tensorflow/tensorflow,petewarden/tensorflow,LUTAN/tensorflow,AnishShah/tensorflow,theflofly/tensorflow,chenjun0210/tensorflow,ppwwyyxx/tensorflow,cancan101/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,xzturn/tensorflow,DCSaunders/tensorflow,adit-chandra/tensorflow,aam-at/tensorflow,yongtang/tensorflow,Mistobaan/tensorflow,Bulochkin/tensorflow_pack,hfp/tensorflow-xsmm,Intel-tensorflow/tensorflow,pierreg/tensorflow,Xeralux/tensorflow,davidzchen/tensorflow,ravindrapanda/tensorflow,dendisuhubdy/tensorflow,anilmuthineni/tensorflow,ibmsoe/tensorflow,mixturemodel-flow/tensorflow,mavenlin/tensorflow,jeffzheng1/tensorflow,markslwong/tensorflow,benoitsteiner/tensorflow-opencl,pcm17/tensorflow,nolanliou/tensorflow,arborh/tensorflow,odejesush/tensorflow,admcrae/tensorflow,ghchinoy/tensorflow,eerwitt/tensorflow,jbedorf/tensorflow,laszlocsomor/tensorflow,thjashin/tensorflow,yongtang/tensorflow,meteorcloudy/tensorflow,martinwicke/tensorflow,taknevski/tensorflow-xsmm,alsrgv/tensorflow,rabipanda/tensorflow,jhaux/tensorflow,ageron/tensorflow,alisidd/tensorflow,DCSaunders/tensorflow,allenlavoie/tensorflow,naturali/tensorflow,Moriadry/tensorflow,aselle/tensorflow,with-git/tensorflow,Mazecreator/tensorflow,vrv/tensorflow,manjunaths/tensorflow,haeusser/tensorflow,aselle/tensorflow,sandeepdsouza93/TensorFlow-15712,theflofly/tensorflow,juharris/tensorflow,girving/tensorflow,maciekcc/tensorflow,handroissuazo/tensorflow,alshedivat/tensorflow,unsiloai/syntaxnet-ops-hack,dyoung418/tensorflow,arborh/tensorflow,aselle/tensorflow,benoitsteiner/tensorflow-xsmm,zycdragonball/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,drpngx/tensorflow,mengxn/tensorflow,hfp/tensorflow-xsmm,whn09/tensorflow,taknevski/tensorflow-xsmm,jendap/tensorflow,ishay2b/tensorflow,jbedorf/tensorflow,theflofly/tensorflow,aselle/tensorflow,asimshankar/tensorflow,sjperkins/tensorflow,alshedivat/tensorflow,sarvex/tensorflow,wangyum/tensorflow,thesuperzapper/tensorflow,arborh/tensorflow,xodus7/tensorflow,adit-chandra/tensorflow,gunan/tensorflow,tensorflow/tensorflow,laosiaudi/tensorflow,ppries/tensorflow,ravindrapanda/tensorflow,zasdfgbnm/tensorflow,vrv/tensorflow,a-doumoulakis/tensorflow,theflofly/tensorflow,alistairlow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,asadziach/tensorflow,freedomtan/tensorflow,laosiaudi/tensorflow,andrewcmyers/tensorflow,frreiss/tensorflow-fred,nikste/tensorflow,wangyum/tensorflow,abhitopia/tensorflow,thesuperzapper/tensorflow,elingg/tensorflow,girving/tensorflow,arborh/tensorflow,nanditav/15712-TensorFlow,MycChiu/tensorflow,yufengg/tensorflow,hsaputra/tensorflow,freedomtan/tensorflow,tornadozou/tensorflow,allenlavoie/tensorflow,sandeepgupta2k4/tensorflow,laszlocsomor/tensorflow,HKUST-SING/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,xzturn/tensorflow,ville-k/tensorflow,ran5515/DeepDecision,seanli9jan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,hfp/tensorflow-xsmm,drpngx/tensorflow,tensorflow/tensorflow,frreiss/tensorflow-fred,eerwitt/tensorflow,code-sauce/tensorflow,freedomtan/tensorflow,elingg/tensorflow,manjunaths/tensorflow,abhitopia/tensorflow,jhseu/tensorflow,ghchinoy/tensorflow,Bulochkin/tensorflow_pack,jeffzheng1/tensorflow,unsiloai/syntaxnet-ops-hack,maciekcc/tensorflow,juharris/tensorflow,aselle/tensorflow,alheinecke/tensorflow-xsmm,gunan/tensorflow,cg31/tensorflow,kamcpp/tensorflow,anand-c-goog/tensorflow,drpngx/tensorflow,pavelchristof/gomoku-ai,gojira/tensorflow,ibmsoe/tensorflow,yaroslavvb/tensorflow,memo/tensorflow,kchodorow/tensorflow,raymondxyang/tensorflow,lukeiwanski/tensorflow,DCSaunders/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow,seaotterman/tensorflow,AnishShah/tensorflow,sandeepdsouza93/TensorFlow-15712,pcm17/tensorflow,codrut3/tensorflow,ychfan/tensorflow,eaplatanios/tensorflow,jwlawson/tensorflow,eaplatanios/tensorflow,alisidd/tensorflow,lukeiwanski/tensorflow,adamtiger/tensorflow,nburn42/tensorflow,thjashin/tensorflow,odejesush/tensorflow,gnieboer/tensorflow,aldian/tensorflow,laszlocsomor/tensorflow,ZhangXinNan/tensorflow,eadgarchen/tensorflow,caisq/tensorflow,ran5515/DeepDecision,aldian/tensorflow,av8ramit/tensorflow,cxxgtxy/tensorflow,cg31/tensorflow,tongwang01/tensorflow,ageron/tensorflow,alisidd/tensorflow,Moriadry/tensorflow,Mazecreator/tensorflow,manjunaths/tensorflow,haeusser/tensorflow,Mistobaan/tensorflow,admcrae/tensorflow,jeffzheng1/tensorflow,ArtsiomCh/tensorflow,manjunaths/tensorflow,lakshayg/tensorflow,jalexvig/tensorflow,rabipanda/tensorflow,laosiaudi/tensorflow,ZhangXinNan/tensorflow,yongtang/tensorflow,neilhan/tensorflow,jart/tensorflow,kamcpp/tensorflow,karllessard/tensorflow,AndreasMadsen/tensorflow,yongtang/tensorflow,JingJunYin/tensorflow,ychfan/tensorflow,meteorcloudy/tensorflow,Bismarrck/tensorflow,hfp/tensorflow-xsmm,tensorflow/tensorflow-experimental_link_static_libraries_once,gibiansky/tensorflow,Bulochkin/tensorflow_pack,tongwang01/tensorflow,nightjean/Deep-Learning,manjunaths/tensorflow,alshedivat/tensorflow,rdipietro/tensorflow,elingg/tensorflow,RapidApplicationDevelopment/tensorflow,ibmsoe/tensorflow,ageron/tensorflow,lukeiwanski/tensorflow,Intel-tensorflow/tensorflow,tillahoffmann/tensorflow,nightjean/Deep-Learning,martinwicke/tensorflow,allenlavoie/tensorflow,nikste/tensorflow,allenlavoie/tensorflow,cg31/tensorflow,markslwong/tensorflow,mortada/tensorflow,paolodedios/tensorflow,asadziach/tensorflow,asimshankar/tensorflow,ishay2b/tensorflow,mixturemodel-flow/tensorflow,jalexvig/tensorflow,tillahoffmann/tensorflow,codrut3/tensorflow,nikste/tensorflow,dyoung418/tensorflow,chenjun0210/tensorflow,eadgarchen/tensorflow,jhaux/tensorflow,kamcpp/tensorflow,laszlocsomor/tensorflow,alsrgv/tensorflow,dendisuhubdy/tensorflow,MostafaGazar/tensorflow,DavidNorman/tensorflow,calebfoss/tensorflow,mrry/tensorflow,Carmezim/tensorflow,MoamerEncsConcordiaCa/tensorflow,jart/tensorflow,taknevski/tensorflow-xsmm,AndreasMadsen/tensorflow,MoamerEncsConcordiaCa/tensorflow,lakshayg/tensorflow,arborh/tensorflow,RapidApplicationDevelopment/tensorflow,annarev/tensorflow,yanchen036/tensorflow,mortada/tensorflow,lukeiwanski/tensorflow-opencl,chemelnucfin/tensorflow,yufengg/tensorflow,alsrgv/tensorflow,adit-chandra/tensorflow,frreiss/tensorflow-fred,naturali/tensorflow,JVillella/tensorflow,codrut3/tensorflow,llhe/tensorflow,frreiss/tensorflow-fred,sjperkins/tensorflow,lukeiwanski/tensorflow,jhseu/tensorflow,mixturemodel-flow/tensorflow,memo/tensorflow,naturali/tensorflow,DCSaunders/tensorflow,nightjean/Deep-Learning,andrewcmyers/tensorflow,scenarios/tensorflow,av8ramit/tensorflow,gautam1858/tensorflow,mixturemodel-flow/tensorflow,krikru/tensorflow-opencl,paolodedios/tensorflow,nikste/tensorflow,rabipanda/tensorflow,juharris/tensorflow,benoitsteiner/tensorflow,gojira/tensorflow,ppwwyyxx/tensorflow,jbedorf/tensorflow,JingJunYin/tensorflow,Xeralux/tensorflow,ibmsoe/tensorflow,AndreasMadsen/tensorflow,alistairlow/tensorflow,eerwitt/tensorflow,jostep/tensorflow,pavelchristof/gomoku-ai,brchiu/tensorflow,gojira/tensorflow,haeusser/tensorflow,arborh/tensorflow,cancan101/tensorflow,ZhangXinNan/tensorflow,aam-at/tensorflow,gunan/tensorflow,eerwitt/tensorflow,gautam1858/tensorflow,calebfoss/tensorflow,mavenlin/tensorflow,xzturn/tensorflow,DCSaunders/tensorflow,strint/tensorflow,adamtiger/tensorflow,scenarios/tensorflow,laosiaudi/tensorflow,mavenlin/tensorflow,wangyum/tensorflow,horance-liu/tensorflow,lukeiwanski/tensorflow,meteorcloudy/tensorflow,DavidNorman/tensorflow,nolanliou/tensorflow,mdrumond/tensorflow,bowang/tensorflow,gibiansky/tensorflow,laosiaudi/tensorflow,renyi533/tensorflow,jeffzheng1/tensorflow,ZhangXinNan/tensorflow,freedomtan/tensorflow,Xeralux/tensorflow,MostafaGazar/tensorflow,AnishShah/tensorflow,sandeepdsouza93/TensorFlow-15712,nanditav/15712-TensorFlow,tensorflow/tensorflow-experimental_link_static_libraries_once,ghchinoy/tensorflow,codrut3/tensorflow,laszlocsomor/tensorflow,llhe/tensorflow,benoitsteiner/tensorflow-xsmm,ppwwyyxx/tensorflow,kevin-coder/tensorflow-fork,Bismarrck/tensorflow,renyi533/tensorflow,thesuperzapper/tensorflow,chenjun0210/tensorflow,chenjun0210/tensorflow,chenjun0210/tensorflow,asadziach/tensorflow,abhitopia/tensorflow,ghchinoy/tensorflow,dongjoon-hyun/tensorflow,MycChiu/tensorflow,kobejean/tensorflow,neilhan/tensorflow,gautam1858/tensorflow,ghchinoy/tensorflow,tongwang01/tensorflow,gnieboer/tensorflow,ravindrapanda/tensorflow,seaotterman/tensorflow,eerwitt/tensorflow,alistairlow/tensorflow,ppwwyyxx/tensorflow,Bismarrck/tensorflow,kevin-coder/tensorflow-fork,tntnatbry/tensorflow,gunan/tensorflow,asimshankar/tensorflow,JingJunYin/tensorflow,paolodedios/tensorflow,strint/tensorflow,jendap/tensorflow,odejesush/tensorflow,mengxn/tensorflow,gibiansky/tensorflow,mengxn/tensorflow,benoitsteiner/tensorflow-xsmm,petewarden/tensorflow,ZhangXinNan/tensorflow,cxxgtxy/tensorflow,Intel-Corporation/tensorflow,mixturemodel-flow/tensorflow,kobejean/tensorflow,strint/tensorflow,johndpope/tensorflow,eadgarchen/tensorflow,anilmuthineni/tensorflow,snnn/tensorflow,alistairlow/tensorflow,Mistobaan/tensorflow,MoamerEncsConcordiaCa/tensorflow,benoitsteiner/tensorflow-opencl,karllessard/tensorflow,nanditav/15712-TensorFlow,codrut3/tensorflow,LUTAN/tensorflow,jart/tensorflow,XueqingLin/tensorflow,yaroslavvb/tensorflow,freedomtan/tensorflow,Kongsea/tensorflow,scenarios/tensorflow,suiyuan2009/tensorflow,MostafaGazar/tensorflow,caisq/tensorflow,eadgarchen/tensorflow,vrv/tensorflow,mdrumond/tensorflow,sandeepdsouza93/TensorFlow-15712,apark263/tensorflow,SnakeJenny/TensorFlow,xzturn/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow,lakshayg/tensorflow,eaplatanios/tensorflow,JVillella/tensorflow,aam-at/tensorflow,jbedorf/tensorflow,arborh/tensorflow,thjashin/tensorflow,dongjoon-hyun/tensorflow,brchiu/tensorflow,yanchen036/tensorflow,gunan/tensorflow,anilmuthineni/tensorflow,brchiu/tensorflow,dancingdan/tensorflow,Bismarrck/tensorflow,kchodorow/tensorflow,memo/tensorflow,thjashin/tensorflow,lukeiwanski/tensorflow-opencl,drpngx/tensorflow,aselle/tensorflow,codrut3/tensorflow,snnn/tensorflow,nikste/tensorflow,thjashin/tensorflow,jart/tensorflow,ville-k/tensorflow,asimshankar/tensorflow,alsrgv/tensorflow,Bulochkin/tensorflow_pack,tiagofrepereira2012/tensorflow,davidzchen/tensorflow,snnn/tensorflow,MycChiu/tensorflow,hehongliang/tensorflow,Bulochkin/tensorflow_pack,av8ramit/tensorflow,jostep/tensorflow,mdrumond/tensorflow,anand-c-goog/tensorflow,LUTAN/tensorflow,AnishShah/tensorflow,rabipanda/tensorflow,jwlawson/tensorflow,frreiss/tensorflow-fred,kamcpp/tensorflow,Carmezim/tensorflow,snnn/tensorflow,manazhao/tf_recsys,aam-at/tensorflow,calebfoss/tensorflow,unsiloai/syntaxnet-ops-hack,kevin-coder/tensorflow-fork,suiyuan2009/tensorflow,markslwong/tensorflow,lukeiwanski/tensorflow-opencl,jalexvig/tensorflow,MostafaGazar/tensorflow,pcm17/tensorflow,gautam1858/tensorflow,yongtang/tensorflow,petewarden/tensorflow,a-doumoulakis/tensorflow,cxxgtxy/tensorflow,alisidd/tensorflow,kevin-coder/tensorflow-fork,anilmuthineni/tensorflow,jwlawson/tensorflow,eadgarchen/tensorflow,Bulochkin/tensorflow_pack,renyi533/tensorflow,allenlavoie/tensorflow,anand-c-goog/tensorflow,brchiu/tensorflow,elingg/tensorflow,pcm17/tensorflow,lukeiwanski/tensorflow-opencl,lakshayg/tensorflow,Bulochkin/tensorflow_pack,Intel-tensorflow/tensorflow,dongjoon-hyun/tensorflow,benoitsteiner/tensorflow-opencl,DCSaunders/tensorflow,strint/tensorflow,laszlocsomor/tensorflow,mrry/tensorflow,hfp/tensorflow-xsmm,jart/tensorflow,laosiaudi/tensorflow,Intel-Corporation/tensorflow,MoamerEncsConcordiaCa/tensorflow,hfp/tensorflow-xsmm,manipopopo/tensorflow,DavidNorman/tensorflow,girving/tensorflow,paolodedios/tensorflow,gautam1858/tensorflow,eaplatanios/tensorflow,naturali/tensorflow,alivecor/tensorflow,pavelchristof/gomoku-ai,benoitsteiner/tensorflow,gojira/tensorflow,kamcpp/tensorflow,apark263/tensorflow,Mazecreator/tensorflow,cancan101/tensorflow,dancingdan/tensorflow,DavidNorman/tensorflow,code-sauce/tensorflow,jendap/tensorflow,ychfan/tensorflow,kobejean/tensorflow,dongjoon-hyun/tensorflow,chemelnucfin/tensorflow,theflofly/tensorflow,yongtang/tensorflow,jalexvig/tensorflow,jalexvig/tensorflow,alistairlow/tensorflow,Mazecreator/tensorflow,renyi533/tensorflow,eerwitt/tensorflow,nikste/tensorflow,nightjean/Deep-Learning,arborh/tensorflow,aam-at/tensorflow,allenlavoie/tensorflow,nanditav/15712-TensorFlow,LUTAN/tensorflow,manjunaths/tensorflow,freedomtan/tensorflow,Xeralux/tensorflow,ppries/tensorflow,cancan101/tensorflow,ran5515/DeepDecision,jbedorf/tensorflow,memo/tensorflow,memo/tensorflow,alisidd/tensorflow,unsiloai/syntaxnet-ops-hack,JVillella/tensorflow,horance-liu/tensorflow,nikste/tensorflow,anilmuthineni/tensorflow,petewarden/tensorflow,guschmue/tensorflow,JingJunYin/tensorflow,ghchinoy/tensorflow,Bulochkin/tensorflow_pack,yufengg/tensorflow,lukeiwanski/tensorflow,chris-chris/tensorflow,sandeepgupta2k4/tensorflow,vrv/tensorflow,manipopopo/tensorflow,whn09/tensorflow,eaplatanios/tensorflow,hehongliang/tensorflow,tensorflow/tensorflow-pywrap_saved_model,caisq/tensorflow,kevin-coder/tensorflow-fork,arborh/tensorflow,zycdragonball/tensorflow,yanchen036/tensorflow,benoitsteiner/tensorflow-opencl,dancingdan/tensorflow,jwlawson/tensorflow,Moriadry/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow,ppwwyyxx/tensorflow,ville-k/tensorflow,chenjun0210/tensorflow,Xeralux/tensorflow,johndpope/tensorflow,MostafaGazar/tensorflow,llhe/tensorflow,nanditav/15712-TensorFlow,tomasreimers/tensorflow-emscripten,guschmue/tensorflow,kchodorow/tensorflow,taknevski/tensorflow-xsmm,llhe/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,wangyum/tensorflow,MostafaGazar/tensorflow,laszlocsomor/tensorflow,nburn42/tensorflow,chemelnucfin/tensorflow,jalexvig/tensorflow,yanchen036/tensorflow,chris-chris/tensorflow,dyoung418/tensorflow,zycdragonball/tensorflow,ychfan/tensorflow,ghchinoy/tensorflow,tiagofrepereira2012/tensorflow,manazhao/tf_recsys,ageron/tensorflow,davidzchen/tensorflow,snnn/tensorflow,alshedivat/tensorflow,chemelnucfin/tensorflow,eerwitt/tensorflow,johndpope/tensorflow,ppwwyyxx/tensorflow,pavelchristof/gomoku-ai,ppries/tensorflow,Mazecreator/tensorflow,ychfan/tensorflow,xzturn/tensorflow,whn09/tensorflow,taknevski/tensorflow-xsmm,MostafaGazar/tensorflow,xodus7/tensorflow,xodus7/tensorflow,adit-chandra/tensorflow,ibmsoe/tensorflow,Intel-tensorflow/tensorflow,hfp/tensorflow-xsmm,aldian/tensorflow,markslwong/tensorflow,apark263/tensorflow,ibmsoe/tensorflow,guschmue/tensorflow,kchodorow/tensorflow,benoitsteiner/tensorflow,Intel-Corporation/tensorflow,juharris/tensorflow,alsrgv/tensorflow,chemelnucfin/tensorflow,alheinecke/tensorflow-xsmm,mavenlin/tensorflow,mortada/tensorflow,RapidApplicationDevelopment/tensorflow,hehongliang/tensorflow,DavidNorman/tensorflow,andrewcmyers/tensorflow,nolanliou/tensorflow,gnieboer/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,annarev/tensorflow,ibmsoe/tensorflow,tntnatbry/tensorflow,eerwitt/tensorflow,nolanliou/tensorflow,cancan101/tensorflow,JVillella/tensorflow,handroissuazo/tensorflow,RapidApplicationDevelopment/tensorflow,dongjoon-hyun/tensorflow,tensorflow/tensorflow-pywrap_saved_model,calebfoss/tensorflow,girving/tensorflow,asimshankar/tensorflow,ppwwyyxx/tensorflow,aam-at/tensorflow,RapidApplicationDevelopment/tensorflow,Intel-tensorflow/tensorflow,AnishShah/tensorflow,with-git/tensorflow,jwlawson/tensorflow,krikru/tensorflow-opencl,strint/tensorflow,kevin-coder/tensorflow-fork,allenlavoie/tensorflow,haeusser/tensorflow,MoamerEncsConcordiaCa/tensorflow,mrry/tensorflow,kobejean/tensorflow,frreiss/tensorflow-fred,ageron/tensorflow,JVillella/tensorflow,JingJunYin/tensorflow,arborh/tensorflow,snnn/tensorflow,horance-liu/tensorflow,ville-k/tensorflow,adit-chandra/tensorflow,DavidNorman/tensorflow,renyi533/tensorflow,manipopopo/tensorflow,kobejean/tensorflow,snnn/tensorflow,Moriadry/tensorflow,abhitopia/tensorflow,hehongliang/tensorflow,girving/tensorflow,lakshayg/tensorflow,anand-c-goog/tensorflow,xzturn/tensorflow,davidzchen/tensorflow,jart/tensorflow,kamcpp/tensorflow,sarvex/tensorflow,mrry/tensorflow,jbedorf/tensorflow,anilmuthineni/tensorflow,lukeiwanski/tensorflow,eadgarchen/tensorflow,johndpope/tensorflow,neilhan/tensorflow,gibiansky/tensorflow,mavenlin/tensorflow,andrewcmyers/tensorflow,cancan101/tensorflow,alisidd/tensorflow,pavelchristof/gomoku-ai,alheinecke/tensorflow-xsmm,zasdfgbnm/tensorflow,Xeralux/tensorflow,frreiss/tensorflow-fred,av8ramit/tensorflow,Bismarrck/tensorflow,abhitopia/tensorflow,ville-k/tensorflow,dyoung418/tensorflow,anand-c-goog/tensorflow,lakshayg/tensorflow,gunan/tensorflow,Intel-tensorflow/tensorflow,hsaputra/tensorflow,a-doumoulakis/tensorflow,suiyuan2009/tensorflow,snnn/tensorflow,zycdragonball/tensorflow,sjperkins/tensorflow,nburn42/tensorflow,alivecor/tensorflow,jhseu/tensorflow,yaroslavvb/tensorflow,AnishShah/tensorflow,admcrae/tensorflow,andrewcmyers/tensorflow,Kongsea/tensorflow,gunan/tensorflow,kchodorow/tensorflow,alisidd/tensorflow,nburn42/tensorflow,Mistobaan/tensorflow,jostep/tensorflow,tensorflow/tensorflow,guschmue/tensorflow,sandeepgupta2k4/tensorflow,annarev/tensorflow,thjashin/tensorflow,kamcpp/tensorflow,Xeralux/tensorflow,chemelnucfin/tensorflow,cancan101/tensorflow,adit-chandra/tensorflow,xzturn/tensorflow,thjashin/tensorflow,laosiaudi/tensorflow,Mistobaan/tensorflow,wangyum/tensorflow,seaotterman/tensorflow,horance-liu/tensorflow,odejesush/tensorflow,asadziach/tensorflow,gnieboer/tensorflow,annarev/tensorflow,apark263/tensorflow,ravindrapanda/tensorflow,laosiaudi/tensorflow,ZhangXinNan/tensorflow,xzturn/tensorflow,juharris/tensorflow,codrut3/tensorflow,rdipietro/tensorflow,alisidd/tensorflow,Intel-Corporation/tensorflow,horance-liu/tensorflow,ravindrapanda/tensorflow,chemelnucfin/tensorflow,strint/tensorflow,alheinecke/tensorflow-xsmm,manazhao/tf_recsys,cxxgtxy/tensorflow,AnishShah/tensorflow,girving/tensorflow,dongjoon-hyun/tensorflow,Mistobaan/tensorflow,ageron/tensorflow,handroissuazo/tensorflow,mortada/tensorflow,sandeepdsouza93/TensorFlow-15712,mdrumond/tensorflow,JingJunYin/tensorflow,mengxn/tensorflow,mixturemodel-flow/tensorflow,Bulochkin/tensorflow_pack,alshedivat/tensorflow,guschmue/tensorflow,admcrae/tensorflow,arborh/tensorflow,sandeepgupta2k4/tensorflow,renyi533/tensorflow,tntnatbry/tensorflow,SnakeJenny/TensorFlow,odejesush/tensorflow,jendap/tensorflow,alistairlow/tensorflow,nikste/tensorflow,eaplatanios/tensorflow,ZhangXinNan/tensorflow,kobejean/tensorflow,laszlocsomor/tensorflow,ishay2b/tensorflow,jostep/tensorflow,martinwicke/tensorflow,memo/tensorflow,eadgarchen/tensorflow,gautam1858/tensorflow,xodus7/tensorflow,aam-at/tensorflow,HKUST-SING/tensorflow,tillahoffmann/tensorflow,drpngx/tensorflow,brchiu/tensorflow,annarev/tensorflow,wangyum/tensorflow,haeusser/tensorflow,Moriadry/tensorflow,hehongliang/tensorflow,theflofly/tensorflow,Intel-Corporation/tensorflow,nburn42/tensorflow,nanditav/15712-TensorFlow,pierreg/tensorflow,nightjean/Deep-Learning,abhitopia/tensorflow,martinwicke/tensorflow,llhe/tensorflow,karllessard/tensorflow,markslwong/tensorflow,jostep/tensorflow,lukeiwanski/tensorflow-opencl,DavidNorman/tensorflow,zasdfgbnm/tensorflow,jhaux/tensorflow,renyi533/tensorflow,gibiansky/tensorflow,JVillella/tensorflow,martinwicke/tensorflow,pierreg/tensorflow,benoitsteiner/tensorflow,sandeepgupta2k4/tensorflow,scenarios/tensorflow,davidzchen/tensorflow,dendisuhubdy/tensorflow,eaplatanios/tensorflow,benoitsteiner/tensorflow-opencl,sarvex/tensorflow,tomasreimers/tensorflow-emscripten,asadziach/tensorflow,calebfoss/tensorflow,anand-c-goog/tensorflow,Carmezim/tensorflow,gautam1858/tensorflow,apark263/tensorflow,MostafaGazar/tensorflow,JVillella/tensorflow,code-sauce/tensorflow,raymondxyang/tensorflow,eerwitt/tensorflow,bowang/tensorflow,MoamerEncsConcordiaCa/tensorflow,neilhan/tensorflow,cxxgtxy/tensorflow,handroissuazo/tensorflow,sandeepgupta2k4/tensorflow,zasdfgbnm/tensorflow,tensorflow/tensorflow-pywrap_saved_model,DCSaunders/tensorflow,alsrgv/tensorflow,adamtiger/tensorflow,horance-liu/tensorflow,laszlocsomor/tensorflow,gnieboer/tensorflow,mortada/tensorflow,xzturn/tensorflow,jendap/tensorflow,pcm17/tensorflow,yongtang/tensorflow,neilhan/tensorflow,jbedorf/tensorflow,renyi533/tensorflow,ppwwyyxx/tensorflow,DavidNorman/tensorflow,gautam1858/tensorflow,ZhangXinNan/tensorflow,neilhan/tensorflow,MycChiu/tensorflow,strint/tensorflow,kevin-coder/tensorflow-fork,MoamerEncsConcordiaCa/tensorflow,tillahoffmann/tensorflow,pierreg/tensorflow,nburn42/tensorflow,jalexvig/tensorflow,Carmezim/tensorflow,unsiloai/syntaxnet-ops-hack,odejesush/tensorflow,brchiu/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,girving/tensorflow,apark263/tensorflow,a-doumoulakis/tensorflow,nolanliou/tensorflow,with-git/tensorflow,tongwang01/tensorflow,benoitsteiner/tensorflow-xsmm,sandeepgupta2k4/tensorflow,naturali/tensorflow,caisq/tensorflow,JingJunYin/tensorflow,dongjoon-hyun/tensorflow,girving/tensorflow,llhe/tensorflow,benoitsteiner/tensorflow-xsmm,Xeralux/tensorflow,sjperkins/tensorflow,alisidd/tensorflow,jhseu/tensorflow,xodus7/tensorflow,alsrgv/tensorflow,aam-at/tensorflow,jart/tensorflow,AndreasMadsen/tensorflow,tensorflow/tensorflow,tongwang01/tensorflow,handroissuazo/tensorflow,zycdragonball/tensorflow,RapidApplicationDevelopment/tensorflow,admcrae/tensorflow,cg31/tensorflow,hfp/tensorflow-xsmm,LUTAN/tensorflow,calebfoss/tensorflow,caisq/tensorflow,horance-liu/tensorflow,theflofly/tensorflow,kchodorow/tensorflow,aam-at/tensorflow,ppries/tensorflow,kobejean/tensorflow,naturali/tensorflow,sarvex/tensorflow,alshedivat/tensorflow,ychfan/tensorflow,tornadozou/tensorflow,yaroslavvb/tensorflow,gunan/tensorflow,yufengg/tensorflow,dyoung418/tensorflow,girving/tensorflow,xodus7/tensorflow,handroissuazo/tensorflow,memo/tensorflow,kchodorow/tensorflow,seanli9jan/tensorflow,seanli9jan/tensorflow,with-git/tensorflow,zycdragonball/tensorflow,suiyuan2009/tensorflow,tongwang01/tensorflow,ishay2b/tensorflow,hehongliang/tensorflow,dancingdan/tensorflow,HKUST-SING/tensorflow,mavenlin/tensorflow,chris-chris/tensorflow,eadgarchen/tensorflow,yaroslavvb/tensorflow,kamcpp/tensorflow,renyi533/tensorflow,XueqingLin/tensorflow,MostafaGazar/tensorflow,ravindrapanda/tensorflow,scenarios/tensorflow,jwlawson/tensorflow,mdrumond/tensorflow,haeusser/tensorflow,av8ramit/tensorflow,alshedivat/tensorflow,av8ramit/tensorflow,ravindrapanda/tensorflow,jwlawson/tensorflow,adamtiger/tensorflow,a-doumoulakis/tensorflow,taknevski/tensorflow-xsmm,with-git/tensorflow,brchiu/tensorflow,zasdfgbnm/tensorflow,mdrumond/tensorflow,asimshankar/tensorflow,dancingdan/tensorflow,caisq/tensorflow,mengxn/tensorflow,hsaputra/tensorflow,nburn42/tensorflow,with-git/tensorflow,xodus7/tensorflow,annarev/tensorflow,dendisuhubdy/tensorflow,davidzchen/tensorflow,chris-chris/tensorflow,johndpope/tensorflow,guschmue/tensorflow,anand-c-goog/tensorflow,Kongsea/tensorflow,gibiansky/tensorflow,maciekcc/tensorflow,petewarden/tensorflow,sarvex/tensorflow,codrut3/tensorflow,Kongsea/tensorflow,dongjoon-hyun/tensorflow,odejesush/tensorflow,ppries/tensorflow,AndreasMadsen/tensorflow,dancingdan/tensorflow,mrry/tensorflow,pcm17/tensorflow,jostep/tensorflow,yufengg/tensorflow,DCSaunders/tensorflow,a-doumoulakis/tensorflow,Intel-Corporation/tensorflow,tomasreimers/tensorflow-emscripten,seaotterman/tensorflow,asadziach/tensorflow,dancingdan/tensorflow,aselle/tensorflow,SnakeJenny/TensorFlow,alsrgv/tensorflow,admcrae/tensorflow,benoitsteiner/tensorflow-xsmm,ppwwyyxx/tensorflow,manazhao/tf_recsys,seaotterman/tensorflow,annarev/tensorflow,rdipietro/tensorflow,jendap/tensorflow,tillahoffmann/tensorflow,benoitsteiner/tensorflow-opencl,kamcpp/tensorflow,hfp/tensorflow-xsmm,freedomtan/tensorflow,allenlavoie/tensorflow,davidzchen/tensorflow,lukeiwanski/tensorflow-opencl,Moriadry/tensorflow,yufengg/tensorflow,Intel-tensorflow/tensorflow,cg31/tensorflow,ghchinoy/tensorflow,martinwicke/tensorflow,Carmezim/tensorflow,kobejean/tensorflow,ychfan/tensorflow,laszlocsomor/tensorflow,chris-chris/tensorflow,wangyum/tensorflow,ZhangXinNan/tensorflow,adit-chandra/tensorflow,paolodedios/tensorflow,drpngx/tensorflow,snnn/tensorflow,aselle/tensorflow,JingJunYin/tensorflow,tensorflow/tensorflow-pywrap_saved_model,karllessard/tensorflow,jwlawson/tensorflow,seanli9jan/tensorflow,wangyum/tensorflow,pavelchristof/gomoku-ai,frreiss/tensorflow-fred,johndpope/tensorflow,chris-chris/tensorflow,rdipietro/tensorflow,cg31/tensorflow,handroissuazo/tensorflow,HKUST-SING/tensorflow,bowang/tensorflow,Carmezim/tensorflow,adit-chandra/tensorflow,Bismarrck/tensorflow,asimshankar/tensorflow,yaroslavvb/tensorflow,brchiu/tensorflow,alivecor/tensorflow,jwlawson/tensorflow,manjunaths/tensorflow,manazhao/tf_recsys,manazhao/tf_recsys,vrv/tensorflow,nanditav/15712-TensorFlow,sarvex/tensorflow,vrv/tensorflow,aselle/tensorflow,ppwwyyxx/tensorflow,code-sauce/tensorflow,ghchinoy/tensorflow,karllessard/tensorflow,drpngx/tensorflow,kobejean/tensorflow,tensorflow/tensorflow-pywrap_saved_model,manazhao/tf_recsys,guschmue/tensorflow,juharris/tensorflow,whn09/tensorflow,tntnatbry/tensorflow,lukeiwanski/tensorflow,DCSaunders/tensorflow,meteorcloudy/tensorflow,jbedorf/tensorflow,ageron/tensorflow,Intel-tensorflow/tensorflow,neilhan/tensorflow,Carmezim/tensorflow,ishay2b/tensorflow,yanchen036/tensorflow,karllessard/tensorflow,aam-at/tensorflow,asadziach/tensorflow,tornadozou/tensorflow,meteorcloudy/tensorflow,yanchen036/tensorflow,laosiaudi/tensorflow,RapidApplicationDevelopment/tensorflow,renyi533/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,yaroslavvb/tensorflow,jeffzheng1/tensorflow,AnishShah/tensorflow,ageron/tensorflow,gnieboer/tensorflow,theflofly/tensorflow,DavidNorman/tensorflow,chris-chris/tensorflow,dancingdan/tensorflow,mortada/tensorflow,Bismarrck/tensorflow,mrry/tensorflow,pavelchristof/gomoku-ai,tiagofrepereira2012/tensorflow,tensorflow/tensorflow,johndpope/tensorflow,av8ramit/tensorflow,JingJunYin/tensorflow,SnakeJenny/TensorFlow,calebfoss/tensorflow,eaplatanios/tensorflow,seanli9jan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,mdrumond/tensorflow,maciekcc/tensorflow,XueqingLin/tensorflow,raymondxyang/tensorflow,xzturn/tensorflow,adit-chandra/tensorflow,Kongsea/tensorflow,jeffzheng1/tensorflow,theflofly/tensorflow,caisq/tensorflow,nburn42/tensorflow,tiagofrepereira2012/tensorflow,Moriadry/tensorflow,jhaux/tensorflow,rdipietro/tensorflow,chemelnucfin/tensorflow,krikru/tensorflow-opencl,benoitsteiner/tensorflow-opencl,jalexvig/tensorflow,petewarden/tensorflow,asimshankar/tensorflow,tensorflow/tensorflow-pywrap_saved_model,theflofly/tensorflow,cancan101/tensorflow,lukeiwanski/tensorflow-opencl,AndreasMadsen/tensorflow,taknevski/tensorflow-xsmm,girving/tensorflow,abhitopia/tensorflow,gibiansky/tensorflow,tornadozou/tensorflow,tongwang01/tensorflow,gunan/tensorflow,thesuperzapper/tensorflow,ageron/tensorflow,kevin-coder/tensorflow-fork,alshedivat/tensorflow,seanli9jan/tensorflow,yongtang/tensorflow,ychfan/tensorflow,davidzchen/tensorflow,jeffzheng1/tensorflow,seanli9jan/tensorflow,Moriadry/tensorflow,benoitsteiner/tensorflow,davidzchen/tensorflow,Kongsea/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,krikru/tensorflow-opencl,handroissuazo/tensorflow,seaotterman/tensorflow,Intel-tensorflow/tensorflow,meteorcloudy/tensorflow,manipopopo/tensorflow,paolodedios/tensorflow,adamtiger/tensorflow,nolanliou/tensorflow,benoitsteiner/tensorflow,rabipanda/tensorflow,admcrae/tensorflow,freedomtan/tensorflow,dancingdan/tensorflow,sjperkins/tensorflow,benoitsteiner/tensorflow-xsmm,jhseu/tensorflow,benoitsteiner/tensorflow-opencl,MycChiu/tensorflow,mrry/tensorflow,zycdragonball/tensorflow,tomasreimers/tensorflow-emscripten,rabipanda/tensorflow,dendisuhubdy/tensorflow,eadgarchen/tensorflow,DCSaunders/tensorflow,Carmezim/tensorflow,ravindrapanda/tensorflow,drpngx/tensorflow,tensorflow/tensorflow-pywrap_saved_model,alheinecke/tensorflow-xsmm,scenarios/tensorflow,jhaux/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,llhe/tensorflow,cg31/tensorflow,dendisuhubdy/tensorflow,kevin-coder/tensorflow-fork,code-sauce/tensorflow,tensorflow/tensorflow,DavidNorman/tensorflow,maciekcc/tensorflow,pcm17/tensorflow,asimshankar/tensorflow,ville-k/tensorflow,alheinecke/tensorflow-xsmm,ArtsiomCh/tensorflow,whn09/tensorflow,adamtiger/tensorflow,cg31/tensorflow,paolodedios/tensorflow,markslwong/tensorflow,elingg/tensorflow,yanchen036/tensorflow,jhaux/tensorflow,raymondxyang/tensorflow,hsaputra/tensorflow,theflofly/tensorflow,apark263/tensorflow,renyi533/tensorflow,jart/tensorflow,gnieboer/tensorflow,alivecor/tensorflow,cxxgtxy/tensorflow,chenjun0210/tensorflow,jbedorf/tensorflow,karllessard/tensorflow,HKUST-SING/tensorflow,JingJunYin/tensorflow,DavidNorman/tensorflow,adamtiger/tensorflow,alivecor/tensorflow,thesuperzapper/tensorflow,girving/tensorflow,hfp/tensorflow-xsmm,ppries/tensorflow,renyi533/tensorflow,guschmue/tensorflow,MycChiu/tensorflow,eaplatanios/tensorflow,mortada/tensorflow,kobejean/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,zasdfgbnm/tensorflow,asadziach/tensorflow,drpngx/tensorflow,scenarios/tensorflow,av8ramit/tensorflow,hsaputra/tensorflow,haeusser/tensorflow,alsrgv/tensorflow,freedomtan/tensorflow,annarev/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,rabipanda/tensorflow,sandeepdsouza93/TensorFlow-15712,apark263/tensorflow,taknevski/tensorflow-xsmm,MoamerEncsConcordiaCa/tensorflow,gunan/tensorflow,lukeiwanski/tensorflow,gautam1858/tensorflow,vrv/tensorflow,lukeiwanski/tensorflow,admcrae/tensorflow,unsiloai/syntaxnet-ops-hack,manipopopo/tensorflow,markslwong/tensorflow,SnakeJenny/TensorFlow,ArtsiomCh/tensorflow,annarev/tensorflow,maciekcc/tensorflow,ArtsiomCh/tensorflow,hsaputra/tensorflow,alsrgv/tensorflow,alivecor/tensorflow,tornadozou/tensorflow,asimshankar/tensorflow,yongtang/tensorflow,tomasreimers/tensorflow-emscripten,guschmue/tensorflow,mixturemodel-flow/tensorflow,nolanliou/tensorflow,tntnatbry/tensorflow,aldian/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tillahoffmann/tensorflow,Mazecreator/tensorflow,Bulochkin/tensorflow_pack,jhseu/tensorflow,alheinecke/tensorflow-xsmm,unsiloai/syntaxnet-ops-hack,AnishShah/tensorflow,jbedorf/tensorflow,ppries/tensorflow,zasdfgbnm/tensorflow,jendap/tensorflow,xodus7/tensorflow,rdipietro/tensorflow,scenarios/tensorflow,kevin-coder/tensorflow-fork,Kongsea/tensorflow,nanditav/15712-TensorFlow,tiagofrepereira2012/tensorflow,ishay2b/tensorflow,gnieboer/tensorflow,jhseu/tensorflow,annarev/tensorflow,alistairlow/tensorflow,benoitsteiner/tensorflow,suiyuan2009/tensorflow,DavidNorman/tensorflow,ville-k/tensorflow,chemelnucfin/tensorflow,elingg/tensorflow,llhe/tensorflow,AndreasMadsen/tensorflow,petewarden/tensorflow,xodus7/tensorflow,jbedorf/tensorflow,ville-k/tensorflow,theflofly/tensorflow,gojira/tensorflow,gibiansky/tensorflow,ville-k/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Bismarrck/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,haeusser/tensorflow,aldian/tensorflow,tntnatbry/tensorflow,allenlavoie/tensorflow,AndreasMadsen/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,raymondxyang/tensorflow,asimshankar/tensorflow,sarvex/tensorflow,petewarden/tensorflow,elingg/tensorflow,jendap/tensorflow,odejesush/tensorflow,jwlawson/tensorflow,gibiansky/tensorflow,dendisuhubdy/tensorflow,ibmsoe/tensorflow,tiagofrepereira2012/tensorflow,jhseu/tensorflow,tntnatbry/tensorflow,tornadozou/tensorflow,rabipanda/tensorflow,aldian/tensorflow,ppries/tensorflow,alshedivat/tensorflow,yongtang/tensorflow,seanli9jan/tensorflow,memo/tensorflow,alshedivat/tensorflow,Carmezim/tensorflow,asadziach/tensorflow,naturali/tensorflow,sandeepgupta2k4/tensorflow,benoitsteiner/tensorflow-xsmm,ZhangXinNan/tensorflow,mdrumond/tensorflow,manipopopo/tensorflow,thesuperzapper/tensorflow,aam-at/tensorflow,paolodedios/tensorflow,karllessard/tensorflow,frreiss/tensorflow-fred,manjunaths/tensorflow,hsaputra/tensorflow,xzturn/tensorflow,sjperkins/tensorflow,calebfoss/tensorflow,pierreg/tensorflow,davidzchen/tensorflow,cg31/tensorflow,jalexvig/tensorflow,with-git/tensorflow,suiyuan2009/tensorflow,paolodedios/tensorflow,mortada/tensorflow,Mistobaan/tensorflow,RapidApplicationDevelopment/tensorflow,sjperkins/tensorflow,annarev/tensorflow,MycChiu/tensorflow,Mazecreator/tensorflow,LUTAN/tensorflow,ppries/tensorflow,elingg/tensorflow,unsiloai/syntaxnet-ops-hack,tornadozou/tensorflow,Bulochkin/tensorflow_pack,ran5515/DeepDecision,Mistobaan/tensorflow,alshedivat/tensorflow,caisq/tensorflow,gojira/tensorflow,ArtsiomCh/tensorflow,dendisuhubdy/tensorflow,krikru/tensorflow-opencl,meteorcloudy/tensorflow,dyoung418/tensorflow,dancingdan/tensorflow,aldian/tensorflow,adit-chandra/tensorflow,manipopopo/tensorflow,kevin-coder/tensorflow-fork,alivecor/tensorflow,jalexvig/tensorflow,meteorcloudy/tensorflow,taknevski/tensorflow-xsmm,kchodorow/tensorflow,andrewcmyers/tensorflow,meteorcloudy/tensorflow,chenjun0210/tensorflow,alheinecke/tensorflow-xsmm,mdrumond/tensorflow,guschmue/tensorflow,zasdfgbnm/tensorflow,Mistobaan/tensorflow,brchiu/tensorflow,horance-liu/tensorflow,seanli9jan/tensorflow,neilhan/tensorflow,tongwang01/tensorflow,thjashin/tensorflow,Mistobaan/tensorflow,pierreg/tensorflow,paolodedios/tensorflow,sandeepdsouza93/TensorFlow-15712,nightjean/Deep-Learning,benoitsteiner/tensorflow,AndreasMadsen/tensorflow,haeusser/tensorflow,tomasreimers/tensorflow-emscripten,thesuperzapper/tensorflow,pierreg/tensorflow,eaplatanios/tensorflow,LUTAN/tensorflow,xodus7/tensorflow,MycChiu/tensorflow,pavelchristof/gomoku-ai,seaotterman/tensorflow,pcm17/tensorflow,ghchinoy/tensorflow,tiagofrepereira2012/tensorflow,gautam1858/tensorflow,mengxn/tensorflow,nanditav/15712-TensorFlow,tornadozou/tensorflow,alistairlow/tensorflow,jalexvig/tensorflow,frreiss/tensorflow-fred,seaotterman/tensorflow,manipopopo/tensorflow,XueqingLin/tensorflow,sarvex/tensorflow,petewarden/tensorflow,jhaux/tensorflow,petewarden/tensorflow,xodus7/tensorflow,rdipietro/tensorflow,gnieboer/tensorflow,XueqingLin/tensorflow,codrut3/tensorflow,jart/tensorflow,thesuperzapper/tensorflow,allenlavoie/tensorflow,raymondxyang/tensorflow,tomasreimers/tensorflow-emscripten,hehongliang/tensorflow,nightjean/Deep-Learning,gojira/tensorflow,tomasreimers/tensorflow-emscripten,jeffzheng1/tensorflow,av8ramit/tensorflow,cxxgtxy/tensorflow,jart/tensorflow,dongjoon-hyun/tensorflow,tillahoffmann/tensorflow,ZhangXinNan/tensorflow
64df4991a93471c2862c2371c33cf30e55769f06
test/Misc/win32-macho.c
test/Misc/win32-macho.c
// Check that basic use of win32-macho targets works. // REQUIRES: x86-registered-target // RUN: %clang -fsyntax-only -target x86_64-pc-win32-macho %s -o /dev/null
// Check that basic use of win32-macho targets works. // RUN: %clang -fsyntax-only -target x86_64-pc-win32-macho %s
Remove dev/null redirect and x86 backend requirement from new test.
Remove dev/null redirect and x86 backend requirement from new test. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@210699 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang
5ef6857a7292ccdc72bc62742ab1f92fe459ed17
exercise102.c
exercise102.c
/* Experiment to find out what happened when printf's argument string contains * \c, where c is some character not listed above. */ #include <stdio.h> #include <stdlib.h> int main(int argc, char **argv) { printf("\\a produces an audible or visual alert: \a\n"); printf("\\f produces a formfeed: \f\n"); printf("\\r produces a carriage return: \rlololol\n"); printf("\\v produces a vertical tab: \t\n"); return EXIT_SUCCESS; }
Add solution to Exercise 1-2.
Add solution to Exercise 1-2.
C
unlicense
damiendart/knr-solutions,damiendart/knr-solutions,damiendart/knr-solutions
cc6b6b934894ae141bd5cdf3ddffc60e48f554af
test/FrontendC/2010-05-18-palignr.c
test/FrontendC/2010-05-18-palignr.c
// RUN: %llvmgcc -mssse3 -S -o - %s | llc -mtriple=x86_64-apple-darwin | FileCheck %s #include <tmmintrin.h> int main () { #if defined( __SSSE3__ ) #define vec_rld_epi16( _a, _i ) ({ vSInt16 _t = _a; _t = _mm_alignr_epi8( _t, _t, _i ); /*return*/ _t; }) typedef int16_t vSInt16 __attribute__ ((__vector_size__ (16))); short dtbl[] = {1,2,3,4,5,6,7,8}; vSInt16 *vdtbl = (vSInt16*) dtbl; vSInt16 v0; v0 = *vdtbl; // CHECK: pshufd $57 v0 = vec_rld_epi16( v0, 4 ); return 0; #endif }
Add a test to make sure that we're lowering the shift amount correctly.
Add a test to make sure that we're lowering the shift amount correctly. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@104090 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm
65b68f641e684cedbd25bc7bceb33af21d534b87
pipbench/server/load_simulator.c
pipbench/server/load_simulator.c
#include <Python.h> static PyObject * simulate_install(PyObject *self, PyObject *args) { long cpu_units; long mem_bytes; if (!PyArg_ParseTuple(args, "LL", &cpu_units, &mem_bytes)) { return NULL; } char *p; p = (char *) malloc(mem_bytes); int j = 0; for (long i = 0; i < cpu_units; i++) { j++; } free(p); return Py_BuildValue("i", 0); } static PyObject * simulate_import(PyObject *self, PyObject *args) { long cpu_units; long mem_bytes; if (!PyArg_ParseTuple(args, "LL", &cpu_units, &mem_bytes)) { return NULL; } int j = 0; for (long i = 0; i < cpu_units; i++) { j++; } PyObject * p = (PyObject *) PyMem_Malloc(mem_bytes); return p; } static PyMethodDef LoadSimulatorMethods[] = { {"simulate_install", simulate_install, METH_VARARGS, "simulate install"}, {"simulate_import", simulate_import, METH_VARARGS, "simulate import"}, { NULL, NULL, 0, NULL } }; PyMODINIT_FUNC initload_simulator(void) { (void) Py_InitModule("load_simulator", LoadSimulatorMethods); }
#include <Python.h> static PyObject * simulate_install(PyObject *self, PyObject *args) { long cpu_units; long mem_bytes; if (!PyArg_ParseTuple(args, "LL", &cpu_units, &mem_bytes)) { return NULL; } char *p; p = (char *) malloc(mem_bytes); int j = 0; for (long i = 0; i < cpu_units; i++) { j++; } free(p); return Py_BuildValue("i", 0); } static PyObject * simulate_import(PyObject *self, PyObject *args) { long cpu_units; long mem_bytes; if (!PyArg_ParseTuple(args, "LL", &cpu_units, &mem_bytes)) { return NULL; } int j = 0; for (long i = 0; i < cpu_units; i++) { j++; } char * p = malloc(mem_bytes); return Py_BuildValue("s#", p, mem_bytes); } static PyMethodDef LoadSimulatorMethods[] = { {"simulate_install", simulate_install, METH_VARARGS, "simulate install"}, {"simulate_import", simulate_import, METH_VARARGS, "simulate import"}, { NULL, NULL, 0, NULL } }; PyMODINIT_FUNC initload_simulator(void) { (void) Py_InitModule("load_simulator", LoadSimulatorMethods); }
Fix invalid heap issues with load simulator
Fix invalid heap issues with load simulator
C
apache-2.0
open-lambda/open-lambda,open-lambda/open-lambda,open-lambda/open-lambda,open-lambda/open-lambda,open-lambda/open-lambda
80b24802591a38395110fc9e706c0456a614604c
Sources/BCRectUtilities.h
Sources/BCRectUtilities.h
// // BCRectUtilities.h // MBTI // // Created by Seth Kingsley on 9/12/12. // Copyright (c) 2012 Bushido Coding. All rights reserved. // #import "BCMacros.h" static inline __attribute__((const)) CGRect BCRectAspectFit(CGRect containerRect, CGSize contentSize) { if (contentSize.width == 0) contentSize.width = 1; CGFloat contentAspect = contentSize.height / contentSize.width; if (CGRectGetWidth(containerRect) == 0) containerRect.size.width = 1; CGFloat containerAspect = CGRectGetHeight(containerRect) / CGRectGetWidth(containerRect); CGRect scaledRect; if (contentAspect >= containerAspect) { CGFloat scaledWidth = roundf(CGRectGetHeight(containerRect) * contentAspect); CGFloat xOffset = roundf((CGRectGetWidth(containerRect) - scaledWidth) / 2); scaledRect = CGRectMake(CGRectGetMinX(containerRect) + xOffset, CGRectGetMinY(containerRect), scaledWidth, CGRectGetHeight(containerRect)); } else { CGFloat scaledHeight = roundf(CGRectGetWidth(containerRect) / contentAspect); CGFloat yOffset = roundf((CGRectGetHeight(containerRect) - scaledHeight) / 2); scaledRect = CGRectMake(CGRectGetMinX(containerRect), CGRectGetMinY(containerRect) + yOffset, CGRectGetWidth(containerRect), scaledHeight); } POSTCONDITION_C(CGRectContainsRect(containerRect, scaledRect)); POSTCONDITION_C(CGRectEqualToRect(scaledRect, CGRectIntegral(scaledRect))); POSTCONDITION_C((contentSize.height / contentSize.width) == (CGRectGetHeight(scaledRect) / CGRectGetWidth(scaledRect))); return scaledRect; }
Add a utility method for aspect fill layouts (incomplete).
Add a utility method for aspect fill layouts (incomplete).
C
bsd-3-clause
sethk/BushidoCore
6871d2950ed49360b01aa83960689fc85e82ee24
LYCategory/_Foundation/_Work/NSString+Input.h
LYCategory/_Foundation/_Work/NSString+Input.h
// // NSString+Input.h // LYCategory // // Created by Rick Luo on 11/25/13. // Copyright (c) 2013 Luo Yu. All rights reserved. // #import <Foundation/Foundation.h> @interface NSString (Input) #pragma mark EMPTY - (BOOL)isEmpty; #pragma mark EMAIL - (BOOL)isEmail; #pragma mark SPACE - (NSString *)trimStartSpace; - (NSString *)trimSpace; #pragma mark PHONE NUMBER - (NSString *)phoneNumber; - (BOOL)isPhoneNumber; #pragma mark EMOJI - (NSString *)replaceEmojiTextWithUnicode; - (NSString *)replaceEmojiUnicodeWithText; @end
// // NSString+Input.h // LYCategory // // Created by Rick Luo on 11/25/13. // Copyright (c) 2013 Luo Yu. All rights reserved. // #import <Foundation/Foundation.h> @interface NSString (Input) #pragma mark EMPTY - (BOOL)isEmpty; #pragma mark EMAIL - (BOOL)isEmail; #pragma mark ID - (BOOL)isIDNumber; #pragma mark SPACE - (NSString *)trimStartSpace; - (NSString *)trimSpace; #pragma mark PHONE NUMBER - (NSString *)phoneNumber; - (BOOL)isPhoneNumber; #pragma mark EMOJI - (NSString *)replaceEmojiTextWithUnicode; - (NSString *)replaceEmojiUnicodeWithText; @end
Add : id number validation
Add : id number validation
C
mit
blodely/LYCategory,blodely/LYCategory,blodely/LYCategory,blodely/LYCategory
eb4808438d0feb7a25fc393da69dd8132ebed48c
You-DataStore/datastore.h
You-DataStore/datastore.h
#pragma once #ifndef YOU_DATASTORE_DATASTORE_H_ #define YOU_DATASTORE_DATASTORE_H_ #include <deque> #include <functional> #include "boost/variant.hpp" #include "task_typedefs.h" #include "internal/operation.h" namespace You { namespace DataStore { namespace UnitTests {} class Transaction; class DataStore { friend class Transaction; public: static bool begin(); // Modifying methods static bool post(TaskId, SerializedTask&); static bool put(TaskId, SerializedTask&); static bool erase(TaskId); static boost::variant<bool, SerializedTask> get(TaskId); static std::vector<SerializedTask> filter(const std::function<bool(SerializedTask)>&); private: static DataStore& getInstance(); bool isServing = false; std::deque<IOperation> operationsQueue; }; } // namespace DataStore } // namespace You #endif // YOU_DATASTORE_DATASTORE_H_
#pragma once #ifndef YOU_DATASTORE_DATASTORE_H_ #define YOU_DATASTORE_DATASTORE_H_ #include <deque> #include <functional> #include "boost/variant.hpp" #include "task_typedefs.h" #include "internal/operation.h" namespace You { namespace DataStore { namespace UnitTests {} class Transaction; class DataStore { friend class Transaction; public: static bool begin(); // Modifying methods static bool post(TaskId, SerializedTask&); static bool put(TaskId, SerializedTask&); static bool erase(TaskId); static boost::variant<bool, SerializedTask> get(TaskId); static std::vector<SerializedTask> filter(const std::function<bool(SerializedTask)>&); private: static DataStore& getInstance(); bool isServing = false; std::deque<Internal::IOperation> operationsQueue; }; } // namespace DataStore } // namespace You #endif // YOU_DATASTORE_DATASTORE_H_
Update reference to IOperation to include Internal namespace
Update reference to IOperation to include Internal namespace
C
mit
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main
bab54887404e9f7d4fc68ce2e41ad6bae8035f55
parser_tests.c
parser_tests.c
#include "parser.h" #include "ast.h" #include "tests.h" void test_parse_number(); int main() { test_parse_number(); return 0; } struct token *make_token(enum token_type tk_type, char* str, double dbl, int number) { struct token *tk = malloc(sizeof(struct token)); tk->type = tk_type; if (tk_type == tok_dbl) { tk->value.dbl = dbl; } else if (tk_type == tok_number) { tk->value.number = number; } else { tk->value.string = string; } return tk; } void test_parse_number() { struct token_list *tkl = make_token_list(); tkl.append(make_token(tok_number, NULL, 0.0, 42); struct ast_node *result = parse_number(tkl); EXPECT_EQ(result->val, tkl->head); EXPECT_EQ(result->num_children, 0); destroy_token_list(tkl); }
#include "parser.h" #include "ast.h" #include "tests.h" void test_parse_number(); int main() { test_parse_number(); return 0; } struct token *make_token(enum token_type tk_type, char* str, double dbl, int number) { struct token *tk = malloc(sizeof(struct token)); tk->type = tk_type; if (tk_type == tok_dbl) { tk->value.dbl = dbl; } else if (tk_type == tok_number) { tk->value.num = number; } else { tk->value.string = str; } return tk; } void test_parse_number() { struct token_list *tkl = make_token_list(); tkl.append(make_token(tok_number, NULL, 0.0, 42); struct ast_node *result = parse_number(tkl); EXPECT_EQ(result->val, tkl->head); EXPECT_EQ(result->num_children, 0); destroy_token_list(tkl); }
Fix typo in parser tests
Fix typo in parser tests
C
mit
iankronquist/yaz,iankronquist/yaz
244047b32d720d65be0b5ef0c832ae16acf8c26c
src/effect_layer.h
src/effect_layer.h
#pragma once #include <pebble.h> #include "effects.h" //number of supported effects on a single effect_layer (must be <= 255) #define MAX_EFFECTS 4 // structure of effect layer typedef struct { Layer* layer; effect_cb* effects[MAX_EFFECTS]; void* params[MAX_EFFECTS]; uint8_t next_effect; } EffectLayer; //creates effect layer EffectLayer* effect_layer_create(GRect frame); //destroys effect layer void effect_layer_destroy(EffectLayer *effect_layer); //sets effect for the layer void effect_layer_add_effect(EffectLayer *effect_layer, effect_cb* effect, void* param); //gets layer Layer* effect_layer_get_layer(EffectLayer *effect_layer);
#pragma once #include <pebble.h> #include "effects.h" //number of supported effects on a single effect_layer (must be <= 255) #define MAX_EFFECTS 4 // structure of effect layer typedef struct { Layer* layer; effect_cb* effects[MAX_EFFECTS]; void* params[MAX_EFFECTS]; uint8_t next_effect; } EffectLayer; //creates effect layer EffectLayer* effect_layer_create(GRect frame); //destroys effect layer void effect_layer_destroy(EffectLayer *effect_layer); //sets effect for the layer void effect_layer_add_effect(EffectLayer *effect_layer, effect_cb* effect, void* param); //gets layer Layer* effect_layer_get_layer(EffectLayer *effect_layer); // Recreate inverter_layer for BASALT #ifndef PBL_PLATFORM_APLITE #define InverterLayer EffectLayer #define inverter_layer_create(frame)({ EffectLayer* _el=effect_layer_create(frame); effect_layer_add_effect(_el,effect_invert,NULL);_el; }) #define inverter_layer_get_layer effect_layer_get_layer #define inverter_layer_destroy effect_layer_destroy #endif
Add a few macros to support InverterLayer on BASALT
Add a few macros to support InverterLayer on BASALT Re-add support for InverterLayer in SDK3.0. Just include effect_layer.h in files using InverterLayer and it should work out of the box. Warning: This InverterLayer actually invert all colors, unlike the original InverterLayer that had a weird behavior on Basalt.
C
mit
n4ru/EffectLayer,clach04/EffectLayer,clach04/EffectLayer,gregoiresage/EffectLayer,n4ru/EffectLayer,clach04/EffectLayer,nevraw/EffectLayer,nevraw/EffectLayer,ron064/EffectLayer,ron064/EffectLayer,nevraw/EffectLayer,gregoiresage/EffectLayer,n4ru/EffectLayer,gregoiresage/EffectLayer,ron064/EffectLayer
b66c645e7c70e870021d91501a4b285fb017e1ae
src/libaacs/aacs.h
src/libaacs/aacs.h
/* * libaacs by Doom9 ppl 2009, 2010 */ #ifndef AACS_H_ #define AACS_H_ #include <stdint.h> #include <unistd.h> #include "mkb.h" #include "../file/configfile.h" #define LIBAACS_VERSION "1.0" typedef struct aacs AACS; struct aacs { uint8_t pk[16], mk[16], vuk[16], vid[16]; uint8_t *uks; // unit key array (size = 16 * num_uks, each key is at 16-byte offset) uint16_t num_uks; // number of unit keys uint8_t iv[16]; CONFIGFILE *kf; }; AACS *aacs_open(const char *path, const char *keyfile_path); void aacs_close(AACS *aacs); int aacs_decrypt_unit(AACS *aacs, uint8_t *buf, uint32_t len, uint64_t offset); uint8_t *aacs_get_vid(AACS *aacs); #endif /* AACS_H_ */
/* * libaacs by Doom9 ppl 2009, 2010 */ #ifndef AACS_H_ #define AACS_H_ #include <stdint.h> #include "mkb.h" #include "../file/configfile.h" #define LIBAACS_VERSION "1.0" typedef struct aacs AACS; struct aacs { uint8_t pk[16], mk[16], vuk[16], vid[16]; uint8_t *uks; // unit key array (size = 16 * num_uks, each key is at 16-byte offset) uint16_t num_uks; // number of unit keys uint8_t iv[16]; CONFIGFILE *kf; }; AACS *aacs_open(const char *path, const char *keyfile_path); void aacs_close(AACS *aacs); int aacs_decrypt_unit(AACS *aacs, uint8_t *buf, uint32_t len, uint64_t offset); uint8_t *aacs_get_vid(AACS *aacs); #endif /* AACS_H_ */
Remove unneed inclusion of unistd.h
Remove unneed inclusion of unistd.h
C
lgpl-2.1
mwgoldsmith/aacs,rraptorr/libaacs,ShiftMediaProject/libaacs,ShiftMediaProject/libaacs,zxlooong/libaacs,mwgoldsmith/aacs,rraptorr/libaacs,zxlooong/libaacs
733ac73861e87d5d600605eb4fc6e7c295536c3b
lily_vm.c
lily_vm.c
#include "lily_impl.h" #include "lily_symtab.h" #include "lily_opcode.h" static void builtin_print(lily_symbol *s) { if (s->val_type == vt_str) lily_impl_send_html(((lily_strval *)s->sym_value)->str); } void lily_vm_execute(lily_symbol *sym) { lily_symbol **regs; int *code, ci; regs = lily_impl_malloc(8 * sizeof(lily_symbol *)); code = sym->code_data->code; ci = 0; while (1) { switch (code[ci]) { case o_load_reg: regs[code[ci+1]] = (lily_symbol *)code[ci+2]; ci += 3; break; case o_builtin_print: builtin_print(regs[code[ci+1]]); ci += 2; case o_assign: regs[code[ci]]->sym_value = (void *)code[ci+1]; regs[code[ci]]->val_type = (lily_val_type)code[ci+2]; ci += 3; case o_vm_return: free(regs); return; } } }
#include "lily_impl.h" #include "lily_symtab.h" #include "lily_opcode.h" static void builtin_print(lily_symbol *s) { if (s->val_type == vt_str) lily_impl_send_html(((lily_strval *)s->sym_value)->str); } void lily_vm_execute(lily_symbol *sym) { lily_symbol **regs; int *code, ci; regs = lily_impl_malloc(8 * sizeof(lily_symbol *)); code = sym->code_data->code; ci = 0; while (1) { switch (code[ci]) { case o_load_reg: regs[code[ci+1]] = (lily_symbol *)code[ci+2]; ci += 3; break; case o_builtin_print: builtin_print(regs[code[ci+1]]); ci += 2; break; case o_assign: regs[code[ci]]->sym_value = (void *)code[ci+1]; regs[code[ci]]->val_type = (lily_val_type)code[ci+2]; ci += 3; break; case o_vm_return: free(regs); return; } } }
Fix o_builtin_print and o_assign cases not breaking.
vm: Fix o_builtin_print and o_assign cases not breaking. This was causing the hello_world.ly test to segfault.
C
mit
jesserayadkins/lily,FascinatedBox/lily,jesserayadkins/lily,FascinatedBox/lily,FascinatedBox/lily,jesserayadkins/lily,FascinatedBox/lily
2c9ab368a9ef9129c735becdf4d461c06d9a8a84
include/effects/SkStippleMaskFilter.h
include/effects/SkStippleMaskFilter.h
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkStippleMaskFilter_DEFINED #define SkStippleMaskFilter_DEFINED #include "SkMaskFilter.h" /** * Simple MaskFilter that creates a screen door stipple pattern */ class SkStippleMaskFilter : public SkMaskFilter { public: SkStippleMaskFilter() : INHERITED() { } virtual bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix& matrix, SkIPoint* margin) SK_OVERRIDE; // getFormat is from SkMaskFilter virtual SkMask::Format getFormat() SK_OVERRIDE { return SkMask::kA8_Format; } SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkStippleMaskFilter); protected: SkStippleMaskFilter::SkStippleMaskFilter(SkFlattenableReadBuffer& buffer) : SkMaskFilter(buffer) { } private: typedef SkMaskFilter INHERITED; }; #endif // SkStippleMaskFilter_DEFINED
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkStippleMaskFilter_DEFINED #define SkStippleMaskFilter_DEFINED #include "SkMaskFilter.h" /** * Simple MaskFilter that creates a screen door stipple pattern */ class SkStippleMaskFilter : public SkMaskFilter { public: SkStippleMaskFilter() : INHERITED() { } virtual bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix& matrix, SkIPoint* margin) SK_OVERRIDE; // getFormat is from SkMaskFilter virtual SkMask::Format getFormat() SK_OVERRIDE { return SkMask::kA8_Format; } SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkStippleMaskFilter); protected: SkStippleMaskFilter(SkFlattenableReadBuffer& buffer) : SkMaskFilter(buffer) { } private: typedef SkMaskFilter INHERITED; }; #endif // SkStippleMaskFilter_DEFINED
Fix for compiler error in r4154
Fix for compiler error in r4154
C
bsd-3-clause
csulmone/skia,csulmone/skia,csulmone/skia,csulmone/skia
a46d5e7f3700e126c6bc5c31f93a8f297e11074f
chip/host/persistence.c
chip/host/persistence.c
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* Persistence module for emulator */ #include <unistd.h> #include <stdio.h> #include <string.h> #define BUF_SIZE 1024 static void get_storage_path(char *out) { char buf[BUF_SIZE]; readlink("/proc/self/exe", buf, BUF_SIZE); if (snprintf(out, BUF_SIZE, "%s_persist", buf) >= BUF_SIZE) out[BUF_SIZE - 1] = '\0'; } FILE *get_persistent_storage(const char *tag, const char *mode) { char buf[BUF_SIZE]; char path[BUF_SIZE]; /* * The persistent storage with tag 'foo' for test 'bar' would * be named 'bar_persist_foo' */ get_storage_path(buf); if (snprintf(path, BUF_SIZE, "%s_%s", buf, tag) >= BUF_SIZE) path[BUF_SIZE - 1] = '\0'; return fopen(path, mode); } void release_persistent_storage(FILE *ps) { fclose(ps); }
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* Persistence module for emulator */ #include <unistd.h> #include <stdio.h> #include <string.h> #define BUF_SIZE 1024 static void get_storage_path(char *out) { char buf[BUF_SIZE]; int sz; sz = readlink("/proc/self/exe", buf, BUF_SIZE); buf[sz] = '\0'; if (snprintf(out, BUF_SIZE, "%s_persist", buf) >= BUF_SIZE) out[BUF_SIZE - 1] = '\0'; } FILE *get_persistent_storage(const char *tag, const char *mode) { char buf[BUF_SIZE]; char path[BUF_SIZE]; /* * The persistent storage with tag 'foo' for test 'bar' would * be named 'bar_persist_foo' */ get_storage_path(buf); if (snprintf(path, BUF_SIZE, "%s_%s", buf, tag) >= BUF_SIZE) path[BUF_SIZE - 1] = '\0'; return fopen(path, mode); } void release_persistent_storage(FILE *ps) { fclose(ps); }
Fix a bug in emulator persistent storage
Fix a bug in emulator persistent storage The path string is not terminated properly, causing occasional crashes. BUG=chrome-os-partner:19235 TEST=Dump the path and check it's correct. BRANCH=None Change-Id: I9ccbd565ce68ffdad98f2dd90ecf19edf9805ec0 Signed-off-by: Vic Yang <[email protected]> Reviewed-on: https://gerrit.chromium.org/gerrit/56700 Reviewed-by: Vincent Palatin <[email protected]>
C
bsd-3-clause
longsleep/ec,md5555/ec,longsleep/ec,mtk09422/chromiumos-platform-ec,coreboot/chrome-ec,coreboot/chrome-ec,akappy7/ChromeOS_EC_LED_Diagnostics,eatbyte/chromium-ec,alterapraxisptyltd/chromium-ec,fourier49/BZ_DEV_EC,coreboot/chrome-ec,fourier49/BZ_DEV_EC,fourier49/BZ_DEV_EC,coreboot/chrome-ec,alterapraxisptyltd/chromium-ec,eatbyte/chromium-ec,akappy7/ChromeOS_EC_LED_Diagnostics,thehobn/ec,gelraen/cros-ec,gelraen/cros-ec,akappy7/ChromeOS_EC_LED_Diagnostics,thehobn/ec,akappy7/ChromeOS_EC_LED_Diagnostics,mtk09422/chromiumos-platform-ec,gelraen/cros-ec,thehobn/ec,mtk09422/chromiumos-platform-ec,coreboot/chrome-ec,fourier49/BIZ_EC,fourier49/BZ_DEV_EC,eatbyte/chromium-ec,fourier49/BIZ_EC,longsleep/ec,md5555/ec,md5555/ec,fourier49/BIZ_EC,alterapraxisptyltd/chromium-ec,mtk09422/chromiumos-platform-ec,longsleep/ec,alterapraxisptyltd/chromium-ec,thehobn/ec,md5555/ec,eatbyte/chromium-ec,gelraen/cros-ec,fourier49/BIZ_EC,coreboot/chrome-ec,akappy7/ChromeOS_EC_LED_Diagnostics
c0e295eb3b917a2d5a4c95b8f9d29e0b519d77ee
Source/Sync.h
Source/Sync.h
@import Foundation; @import CoreData; FOUNDATION_EXPORT double SyncVersionNumber; FOUNDATION_EXPORT const unsigned char SyncVersionString[]; #import <Sync/SYNCPropertyMapper.h> #import <Sync/NSEntityDescription+SYNCPrimaryKey.h>
@import Foundation; @import CoreData; FOUNDATION_EXPORT double SyncVersionNumber; FOUNDATION_EXPORT const unsigned char SyncVersionString[]; #import <Sync/SYNCPropertyMapper.h> #import <Sync/NSEntityDescription+SYNCPrimaryKey.h> #import <Sync/NSManagedObject+SYNCPropertyMapperHelpers.h>
Add missing import in umbrella header
Add missing import in umbrella header
C
mit
hyperoslo/Sync,hyperoslo/Sync
cc97b7f92ce123b511fa649e16cc2259c5bb7edd
eacirc/solvers/local_search.h
eacirc/solvers/local_search.h
#pragma once #include <cstddef> #include <utility> template <class Type, class Mut, class Eval, class Init> struct local_search { local_search(Mut &mutator, Eval &evaluator, Init &initializer) : _mutator(mutator) , _evaluator(evaluator) , _initializer(initializer) { _initializer.apply(_solution_a); _score_a = _evaluator(_solution_a); } void run(const std::size_t iterations) { for (std::size_t i = 0; i != iterations; ++i) _step(); } void reevaluate() { return _score_a = _evaluator.apply(_solution_a); } private: Type _solution_a; Type _solution_b; double _score_a; double _score_b; Mut &_mutator; Eval &_evaluator; Init &_initializer; void _step() { _solution_b = _solution_a; _mutator.apply(_solution_b); _score_b = _evaluator.apply(_solution_b); if (_score_a <= _score_b) { using std::swap; swap(_solution_a, _solution_b); swap(_score_a, _score_b); } } };
#pragma once #include <cstddef> #include <utility> template <class Type, class Mut, class Eval, class Init> struct local_search { local_search(Mut &mutator, Eval &evaluator, Init &initializer) : _mutator(mutator) , _evaluator(evaluator) , _initializer(initializer) { _initializer.apply(_solution_a); _score_a = _evaluator(_solution_a); } void run(const std::size_t iterations) { for (std::size_t i = 0; i != iterations; ++i) _step(); } double reevaluate() { return _score_a = _evaluator.apply(_solution_a); } private: Type _solution_a; Type _solution_b; double _score_a; double _score_b; Mut &_mutator; Eval &_evaluator; Init &_initializer; void _step() { _solution_b = _solution_a; _mutator.apply(_solution_b); _score_b = _evaluator.apply(_solution_b); if (_score_a <= _score_b) { using std::swap; swap(_solution_a, _solution_b); swap(_score_a, _score_b); } } };
Fix return value of reevaluate in local search
Fix return value of reevaluate in local search
C
mit
crocs-muni/EACirc,crocs-muni/EACirc,crocs-muni/EACirc,crocs-muni/EACirc
cadb4be574070be846c530c387ba43d18915b595
PodioKitTests/PKTStubs.h
PodioKitTests/PKTStubs.h
// // PKTStubs.h // PodioKit // // Created by Romain Briche on 30/01/14. // Copyright (c) 2014 Citrix Systems, Inc. All rights reserved. // #import <Foundation/Foundation.h> #import <OHHTTPStubs/OHHTTPStubs.h> void (^stubResponseFromFile)(NSString *, NSString *) = ^(NSString *path, NSString *responseFilename) { NSDictionary *headers = @{@"Content-Type": @"application/json; charset=utf-8"}; [OHHTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) { return [[[request URL] path] isEqualToString:path]; } withStubResponse:^OHHTTPStubsResponse *(NSURLRequest *request) { return [OHHTTPStubsResponse responseWithFileAtPath:OHPathForFileInDocumentsDir(responseFilename) statusCode:200 headers:headers]; }]; }; void (^stubResponseFromObject)(NSString *, id) = ^(NSString *path, id responseObject) { NSDictionary *headers = @{@"Content-Type": @"application/json; charset=utf-8"}; [OHHTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) { return [[[request URL] path] isEqualToString:path]; } withStubResponse:^OHHTTPStubsResponse *(NSURLRequest *request) { NSData *data = [NSJSONSerialization dataWithJSONObject:responseObject options:0 error:NULL]; return [OHHTTPStubsResponse responseWithData:data statusCode:200 headers:headers]; }]; }; void (^stubResponseWithStatusCode)(NSString *, int) = ^(NSString *path, int statusCode) { [OHHTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) { return [[[request URL] path] isEqualToString:path]; } withStubResponse:^OHHTTPStubsResponse *(NSURLRequest *request) { return [OHHTTPStubsResponse responseWithData:[NSData data] statusCode:statusCode headers:nil]; }]; }; void (^stubResponseWithTime)(NSString *, int, int) = ^(NSString *path, int requestTime, int responseTime) { [OHHTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) { return [[[request URL] path] isEqualToString:path]; } withStubResponse:^OHHTTPStubsResponse *(NSURLRequest *request) { return [[OHHTTPStubsResponse responseWithData:[NSData data] statusCode:200 headers:nil] requestTime:requestTime responseTime:responseTime]; }]; };
Add convenient method to stub API responses
Add convenient method to stub API responses
C
mit
podio/podio-objc,podio/podio-objc,podio/podio-objc,shelsonjava/podio-objc,shelsonjava/podio-objc,shelsonjava/podio-objc
80cac09dcd3f6227f81cc56169d69e1fae129b5d
test/Frontend/dependency-generation-crash.c
test/Frontend/dependency-generation-crash.c
// RUN: touch %t // RUN: chmod 0 %t // %clang -E -dependency-file bla -MT %t -MP -o %t -x c /dev/null // rdar://9286457
// RUN: touch %t // RUN: chmod 0 %t // RUN: not %clang_cc1 -E -dependency-file bla -MT %t -MP -o %t -x c /dev/null 2>&1 | FileCheck %s // RUN: rm -f %t // CHECK: error: unable to open output file // rdar://9286457
Fix dependency generation crash test to run clang and clean up after itself.
Fix dependency generation crash test to run clang and clean up after itself. Previously the test did not have a RUN: prefix for the clang command. In addition it was leaving behind a tmp file with no permissions causing issues when deleting the build directory on Windows. Differential Revision: http://reviews.llvm.org/D7534 git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@228919 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/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,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang
c0a0e8f317ebabe87fd0e9a3f15de9acec1ef804
seh/seh.h
seh/seh.h
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for // full license information. #include "stdio.h" #if ( _MSC_VER >= 800 ) #define try __try #define except __except #define finally __finally #define leave __leave #elif defined(__MINGW32__) || defined(__MINGW64__) #define try #define except #define finally #define leave #endif
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for // full license information. #include "stdio.h" #if ( _MSC_VER >= 800 ) #define try __try #define except __except #define finally __finally #define leave __leave #endif
Revert "Dirty hack for mingw's exception handler"
Revert "Dirty hack for mingw's exception handler" This reverts commit f9d6d03cc8a7f00588a7df7ab4b31673521fc193.
C
mit
Endle/compiler-tests,Endle/compiler-tests,Endle/compiler-tests
5259677050d05eb4f0f7c6292d66b31db4cd37e1
src/software_rasterizer/demo/texture.h
src/software_rasterizer/demo/texture.h
#ifndef RPLNN_TEXTURE_H #define RPLNN_TEXTURE_H struct texture; /* Should create a version of this which doesn't malloc (basically just give memory block as a parameter). */ struct texture *texture_create(const char *file_name); void texture_destroy(struct texture **texture); /* Just create a stryct vec2_int texture_get_size func */ void texture_get_info(struct texture *texture, uint32_t **buf, struct vec2_int **size); #endif /* RPLNN_TEXTURE_H */
#ifndef RPLNN_TEXTURE_H #define RPLNN_TEXTURE_H struct texture; /* Should create a version of this which doesn't malloc (basically just give memory block as a parameter). */ struct texture *texture_create(const char *file_name); void texture_destroy(struct texture **texture); void texture_get_info(struct texture *texture, uint32_t **buf, struct vec2_int **size); #endif /* RPLNN_TEXTURE_H */
Clean up 1: Removed old comment and vs fixed some line endings.
Clean up 1: Removed old comment and vs fixed some line endings.
C
mit
ropelinen/rasterizer,ropelinen/rasterizer
2b6c96c395201bd19af1328288f8f79f3eecd943
test/structs/scope/redef_nested_good.c
test/structs/scope/redef_nested_good.c
// RUN: %ucc -fsyntax-only %s struct B { int i; }; struct Global { char *s; }; f() { struct A { int i; struct Global g; } a; struct B { int j, k; }; a.g.s = "hi"; struct B; struct B b; b.k = 3; { struct B x = { .k = 5 }; } } struct R { struct R *next; }; struct R r = { &r };
Add additional nested struct redefinition test
Add additional nested struct redefinition test
C
mit
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
bc0dc192899f4462986220172a78a8cf59d22fcc
lib/libc/include/stddef.h
lib/libc/include/stddef.h
/****************************************************************************** * Copyright (c) 2004, 2008 IBM Corporation * All rights reserved. * This program and the accompanying materials * are made available under the terms of the BSD License * which accompanies this distribution, and is available at * http://www.opensource.org/licenses/bsd-license.php * * Contributors: * IBM Corporation - initial implementation *****************************************************************************/ #ifndef _STDDEF_H #define _STDDEF_H #define NULL ((void *)0) typedef unsigned int size_t; #endif
/****************************************************************************** * Copyright (c) 2004, 2008 IBM Corporation * All rights reserved. * This program and the accompanying materials * are made available under the terms of the BSD License * which accompanies this distribution, and is available at * http://www.opensource.org/licenses/bsd-license.php * * Contributors: * IBM Corporation - initial implementation *****************************************************************************/ #ifndef _STDDEF_H #define _STDDEF_H #define NULL ((void *)0) typedef unsigned long size_t; #endif
Declare size_t as unsigned long
libc: Declare size_t as unsigned long If size_t is only "int", memset() and friends are limited to 4 GB. And ssize_t is already declared as "long", so it is somewhat inconsequent to define size_t as "int" only. Signed-off-by: Thomas Huth <[email protected]> Signed-off-by: Alexey Kardashevskiy <[email protected]>
C
bsd-3-clause
stefanberger/SLOF-tpm,qemu/SLOF,stefanberger/SLOF-tpm,aik/SLOF,aik/SLOF,qemu/SLOF,qemu/SLOF,stefanberger/SLOF-tpm,aik/SLOF
cdfc79aae9d4c123ab15fea9cf1e4429f15aba66
gobject/gobject-autocleanups.h
gobject/gobject-autocleanups.h
/* * Copyright © 2015 Canonical Limited * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. * * Author: Ryan Lortie <[email protected]> */ #if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION) #error "Only <glib-object.h> can be included directly." #endif G_DEFINE_AUTOPTR_CLEANUP_FUNC(GClosure, g_closure_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GObject, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GInitiallyUnowned, g_object_unref) G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC(GValue, g_value_unset)
/* * Copyright © 2015 Canonical Limited * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. * * Author: Ryan Lortie <[email protected]> */ #if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION) #error "Only <glib-object.h> can be included directly." #endif G_DEFINE_AUTOPTR_CLEANUP_FUNC(GClosure, g_closure_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GObject, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GInitiallyUnowned, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GParamSpec, g_param_spec_unref) G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC(GValue, g_value_unset)
Add g_autoptr() support for GParamSpec
gobject: Add g_autoptr() support for GParamSpec Do not add support for its subtypes, since all their constructors return GParamSpec*, and g_param_spec_unref() takes a GParamSpec* rather than a gpointer — adding G_DEFINE_AUTOPTR_CLEANUP_FUNC() for subtypes of GParamSpec results in compiler warnings about mismatched parameter types (GParamSpecBoolean* vs GParamSpec*, for example). Signed-off-by: Philip Withnall <[email protected]> https://bugzilla.gnome.org/show_bug.cgi?id=796139
C
lgpl-2.1
endlessm/glib,endlessm/glib,endlessm/glib,endlessm/glib,endlessm/glib
58a72d996c2d1e3aa965a0f3b65e365b305b2269
problem_010.c
problem_010.c
/* * The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. * * Find the sum of all the primes below two million. */ #include <stdio.h> #include <stdint.h> #include "euler.h" #define PROBLEM 10 int main(int argc, char **argv) { uint64_t sum = 0, number = 0; do { number++; if(is_prime(number)) { sum += number; } } while(number != 2000000); printf("%llu\n", sum); return(0); }
Add solution for problem 10
Add solution for problem 10
C
bsd-2-clause
skreuzer/euler
5c3f7221aa63931171d1df852caf3dd93ada39c3
Josh_Zane_Sebastian/src/parser/parser.c
Josh_Zane_Sebastian/src/parser/parser.c
#include <stdlib.h> #include <stdio.h> #include types.c #include <string.h> /* We can: Set something equal to something Function calls Function definitions Returning things -- delimiter '<' Printing things Iffing */ struct call parseCall(char* statement); struct function parseFunction(char* statement); char* fixSpacing(char* code) { char* fixedCode = malloc(sizeof(char) * (strlen(code) + 1)); fixedCode = strcpy(fixedCode, code); char* doubleSpace = strstr(fixedCode, " "); char* movingIndex; for( ; doubleSpace; doubleSpace = strstr(fixedCode, " ")) { for(movingIndex = doubleSpace; movingIndex&; movingIndex++) { movingIndex[0] = movingIndex[1]; } } return fixedCode; } char** spcTokenize(char* regCode) { int n = 0; int i; for(i = 0; regCode[i]; i++) { if(regCode[i] == ' ') { n++; } } char** spcTokens = malloc(sizeof(char*) * (n+1)); int k; for(i = 0; i < n+1; i++) { k = strchr(regCode, ' ') - regCode; regCode[k] = NULL; spcTokens[i] = regCode + k + 1; } }
#include <stdlib.h> #include <stdio.h> #include types.c #include <string.h> /* We can: Set something equal to something Function calls Function definitions Returning things -- delimiter '<' Printing things Iffing */ char* fixSpacing(char* code) { char* fixedCode = malloc(sizeof(char) * (strlen(code) + 1)); fixedCode = strcpy(fixedCode, code); char* doubleSpace = strstr(fixedCode, " "); char* movingIndex; for( ; doubleSpace; doubleSpace = strstr(fixedCode, " ")) { for(movingIndex = doubleSpace; movingIndex&; movingIndex++) { movingIndex[0] = movingIndex[1]; } } return fixedCode; } char** spcTokenize(char* regCode) { int n = 0; int i; for(i = 0; regCode[i]; i++) { if(regCode[i] == ' ') { n++; } } char** spcTokens = malloc(sizeof(char*) * (n+1)); int k; for(i = 0; i < n+1; i++) { k = strchr(regCode, ' ') - regCode; regCode[k] = NULL; spcTokens[i] = regCode + k + 1; } return spcTokens; }
Add a return statement to spcTokenize.
Add a return statement to spcTokenize.
C
mit
aacoppa/final,aacoppa/final
ef9fbe24b8f633c72fb423338eff7e4b60e8c987
debug.c
debug.c
#include <stdio.h> #include <ctype.h> #include "debug.h" #ifndef NDEBUG regex_t _comp; // Initialize the regular expression used for restricting debug output static void __attribute__ ((constructor)) premain() { if (regcomp(&_comp, DCOMPONENT, REG_EXTENDED|REG_ICASE|REG_NOSUB)) die("mayb not a valid regexp: %s", DCOMPONENT); } // Print a hexdump of the given block void hexdump(const void * const ptr, const unsigned len) { const char * const buf = (const char * const)ptr; for (unsigned i = 0; i < len; i += 16) { fprintf(stderr, "%06x: ", i); for (unsigned j = 0; j < 16; j++) if (i+j < len) fprintf(stderr, "%02hhx ", buf[i+j]); else fprintf(stderr, " "); fprintf(stderr, " "); for (unsigned j = 0; j < 16; j++) if (i+j < len) fprintf(stderr, "%c", isprint(buf[i+j]) ? buf[i+j] : '.'); fprintf(stderr, "\n"); } } #endif
#include <stdio.h> #include <ctype.h> #include "debug.h" #ifndef NDEBUG char *col[6] = { MAG, RED, YEL, CYN, BLU, GRN }; regex_t _comp; // Initialize the regular expression used for restricting debug output static void __attribute__ ((constructor)) premain() { if (regcomp(&_comp, DCOMPONENT, REG_EXTENDED|REG_ICASE|REG_NOSUB)) die("may not be a valid regexp: %s", DCOMPONENT); } // Print a hexdump of the given block void hexdump(const void * const ptr, const unsigned len) { const char * const buf = (const char * const)ptr; for (unsigned i = 0; i < len; i += 16) { fprintf(stderr, "%06x: ", i); for (unsigned j = 0; j < 16; j++) if (i+j < len) fprintf(stderr, "%02hhx ", buf[i+j]); else fprintf(stderr, " "); fprintf(stderr, " "); for (unsigned j = 0; j < 16; j++) if (i+j < len) fprintf(stderr, "%c", isprint(buf[i+j]) ? buf[i+j] : '.'); fprintf(stderr, "\n"); } } #endif
Fix typo in message and add colors
Fix typo in message and add colors
C
bsd-2-clause
NTAP/warpcore,NTAP/warpcore,NTAP/warpcore,NTAP/warpcore
243b732749fa31bbcc523ad85072e9389ad128e9
templates/VpiListener.h
templates/VpiListener.h
// -*- c++ -*- /* Copyright 2019 Alain Dargelas Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /* * File: VpiListener.h * Author: alaindargelas * * Created on December 14, 2019, 10:03 PM */ #ifndef UHDM_VPILISTENER_CLASS_H #define UHDM_VPILISTENER_CLASS_H #include "headers/uhdm_forward_decl.h" namespace UHDM { class VpiListener { public: // Use implicit constructor to initialize all members // VpiListener() virtual ~VpiListener() {} <VPI_LISTENER_METHODS> protected: }; }; #endif
// -*- c++ -*- /* Copyright 2019 Alain Dargelas Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /* * File: VpiListener.h * Author: alaindargelas * * Created on December 14, 2019, 10:03 PM */ #ifndef UHDM_VPILISTENER_CLASS_H #define UHDM_VPILISTENER_CLASS_H #include "headers/uhdm_forward_decl.h" #include "include/vpi_user.h" namespace UHDM { class VpiListener { public: // Use implicit constructor to initialize all members // VpiListener() virtual ~VpiListener() {} <VPI_LISTENER_METHODS> }; } // namespace UHDM #endif
Use of vpiHandle requires inclusion of vpi_user.
Use of vpiHandle requires inclusion of vpi_user. Signed-off-by: Henner Zeller <[email protected]>
C
apache-2.0
chipsalliance/UHDM,chipsalliance/UHDM,chipsalliance/UHDM
ff49a712c4cc188cdd7d0207595d99c89fe985f0
modules/gadgeteer/gadget/Type/DeviceInterface.h
modules/gadgeteer/gadget/Type/DeviceInterface.h
#ifndef _VJ_DEVICE_INTERFACE_H_ #define _VJ_DEVICE_INTERFACE_H_ //: Base class for simplified interfaces // // Interfaces provide an easier way to access proxy objects from // within user applications. <br> <br> // // Users can simply declare a local interface variable and use it // as a smart_ptr for the proxy // //! NOTE: The init function should be called in the init function of the user //+ application #include <mstring.h> class vjDeviceInterface { public: vjDeviceInterface() : mProxyIndex(-1) {;} //: Initialize the object //! ARGS: proxyName - String name of the proxy to connect to void init(string proxyName); //: Return the index of the proxy int getProxyIndex() { return mProxyIndex; } protected: int mProxyIndex; //: The index of the proxy }; #endif
#ifndef _VJ_DEVICE_INTERFACE_H_ #define _VJ_DEVICE_INTERFACE_H_ //: Base class for simplified interfaces // // Interfaces provide an easier way to access proxy objects from // within user applications. <br> <br> // // Users can simply declare a local interface variable and use it // as a smart_ptr for the proxy // //! NOTE: The init function should be called in the init function of the user //+ application #include <vjConfig.h> class vjDeviceInterface { public: vjDeviceInterface() : mProxyIndex(-1) {;} //: Initialize the object //! ARGS: proxyName - String name of the proxy to connect to void init(string proxyName); //: Return the index of the proxy int getProxyIndex() { return mProxyIndex; } protected: int mProxyIndex; //: The index of the proxy }; #endif
Include vjConfig.h rather than mstring.h to get the basic_string implmentation.
Include vjConfig.h rather than mstring.h to get the basic_string implmentation. git-svn-id: 769d22dfa2d22aad706b9a451492fb87c0735f19@596 08b38cba-cd3b-11de-854e-f91c5b6e4272
C
lgpl-2.1
godbyk/vrjuggler-upstream-old,vancegroup-mirrors/vrjuggler,vancegroup-mirrors/vrjuggler,LiuKeHua/vrjuggler,godbyk/vrjuggler-upstream-old,vancegroup-mirrors/vrjuggler,vrjuggler/vrjuggler,MichaelMcDonnell/vrjuggler,godbyk/vrjuggler-upstream-old,godbyk/vrjuggler-upstream-old,vrjuggler/vrjuggler,MichaelMcDonnell/vrjuggler,vrjuggler/vrjuggler,MichaelMcDonnell/vrjuggler,vancegroup-mirrors/vrjuggler,LiuKeHua/vrjuggler,LiuKeHua/vrjuggler,MichaelMcDonnell/vrjuggler,LiuKeHua/vrjuggler,vrjuggler/vrjuggler,MichaelMcDonnell/vrjuggler,LiuKeHua/vrjuggler,vrjuggler/vrjuggler,godbyk/vrjuggler-upstream-old,MichaelMcDonnell/vrjuggler,godbyk/vrjuggler-upstream-old,vrjuggler/vrjuggler,MichaelMcDonnell/vrjuggler,LiuKeHua/vrjuggler,vancegroup-mirrors/vrjuggler,MichaelMcDonnell/vrjuggler,LiuKeHua/vrjuggler,LiuKeHua/vrjuggler,vancegroup-mirrors/vrjuggler,vrjuggler/vrjuggler,vrjuggler/vrjuggler
145736a1f03d709ae39ddfc7da2246d9dc8446bb
test/dbus_client_SUITE_data/marshal.c
test/dbus_client_SUITE_data/marshal.c
#include <stdlib.h> #include <stdio.h> #include <dbus/dbus.h> void main(int argc, char* argv[]) { DBusMessage* m; dbus_uint32_t arg_a = 0x11223344; char arg_b = 0x42; const dbus_uint64_t array[] = {}; const dbus_uint64_t *arg_c = array; char arg_d = 0x23; char* wire; int len; m = dbus_message_new_method_call(NULL, "/", NULL, "Test"); dbus_message_append_args(m, DBUS_TYPE_UINT32, &arg_a, DBUS_TYPE_BYTE, &arg_b, DBUS_TYPE_ARRAY, DBUS_TYPE_UINT64, &arg_c, 0, DBUS_TYPE_BYTE, &arg_d, DBUS_TYPE_INVALID); dbus_message_marshal(m, &wire, &len); for (int i = 0; i < len; i++) { printf("%02x", wire[i]); if ( (i+1) % 8) { printf(" "); } else { printf("\n"); } } exit(0); }
Add sample C code for comparing serializations
Add sample C code for comparing serializations
C
apache-2.0
lizenn/erlang-dbus,lizenn/erlang-dbus
ce941743ce1eefc51c98401514f9165d6d66040e
sauce/memory.h
sauce/memory.h
#ifndef SAUCE_MEMORY_H_ #define SAUCE_MEMORY_H_ #if SAUCE_STD_SMART_PTR #include <sauce/internal/memory/std.h> #elif SAUCE_STD_TR1_SMART_PTR #include <sauce/internal/memory/tr1.h> #elif SAUCE_BOOST_SMART_PTR #include <sauce/internal/memory/boost.h> #else #error Please define SAUCE_STD_SMART_PTR, SAUCE_STD_TR1_SMART_PTR or SAUCE_BOOST_SMART_PTR #endif #endif // SAUCE_MEMORY_H_
#ifndef SAUCE_MEMORY_H_ #define SAUCE_MEMORY_H_ #if SAUCE_STD_SMART_PTR #include <sauce/internal/memory/std.h> #elif SAUCE_STD_TR1_SMART_PTR #include <sauce/internal/memory/tr1.h> #elif SAUCE_BOOST_SMART_PTR #include <sauce/internal/memory/boost.h> #else #include <sauce/internal/memory/std.h> #endif #endif // SAUCE_MEMORY_H_
Use standard smart pointers by default.
Use standard smart pointers by default.
C
mit
phs/sauce,phs/sauce,phs/sauce,phs/sauce
82c36b1c384592069dd6637120d15cfd5b674463
include/webdriverxx/detail/time.h
include/webdriverxx/detail/time.h
#ifndef WEBDRIVERXX_DETAIL_TIME_H #define WEBDRIVERXX_DETAIL_TIME_H #include "error_handling.h" #include "../types.h" #ifdef _WIN32 #include <windows.h> #else #include <time.h> #endif namespace webdriverxx { namespace detail { TimePoint Now() { #ifdef _WIN32 FILETIME time; ::GetSystemTimeAsFileTime(&time); return (static_cast<TimePoint>(time.dwHighDateTime) << 32) + time.dwLowDateTime; #else timeval time = {}; WEBDRIVERXX_CHECK(0 == gettimeofday(&time, nullptr), "gettimeofday failure"); return static_cast<TimePoint>(time.tv_sec)*1000 + time.tv_usec/1000; #endif } void Sleep(Duration milliseconds) { #ifdef _WIN32 ::Sleep(static_cast<DWORD>(milliseconds)); #else timespec time = { static_cast<time_t>(milliseconds/1000), static_cast<long>(milliseconds%1000)*1000000 }; while (nanosleep(&time, &time)) {} #endif } } // namespace detail } // namespace webdriverxx #endif
#ifndef WEBDRIVERXX_DETAIL_TIME_H #define WEBDRIVERXX_DETAIL_TIME_H #include "error_handling.h" #include "../types.h" #ifdef _WIN32 #include <windows.h> #else #include <time.h> #endif namespace webdriverxx { namespace detail { TimePoint Now() { #ifdef _WIN32 FILETIME time; ::GetSystemTimeAsFileTime(&time); return ((static_cast<TimePoint>(time.dwHighDateTime) << 32) + time.dwLowDateTime)/10000; #else timeval time = {}; WEBDRIVERXX_CHECK(0 == gettimeofday(&time, nullptr), "gettimeofday failure"); return static_cast<TimePoint>(time.tv_sec)*1000 + time.tv_usec/1000; #endif } void Sleep(Duration milliseconds) { #ifdef _WIN32 ::Sleep(static_cast<DWORD>(milliseconds)); #else timespec time = { static_cast<time_t>(milliseconds/1000), static_cast<long>(milliseconds%1000)*1000000 }; while (nanosleep(&time, &time)) {} #endif } } // namespace detail } // namespace webdriverxx #endif
Fix Win32 implementation of Now()
Fix Win32 implementation of Now()
C
mit
sekogan/webdriverxx,sekogan/webdriverxx,sekogan/webdriverxx
58d8646c8cd7e8b7ca6624e2650a1bf52fd2ec36
include/sajson_ostream.h
include/sajson_ostream.h
#pragma once #include "sajson.h" #include <ostream> namespace sajson { inline std::ostream& operator<<(std::ostream& os, type t) { switch (t) { case TYPE_INTEGER: return os << "<integer>"; case TYPE_DOUBLE: return os << "<double>"; case TYPE_NULL: return os << "<null>"; case TYPE_FALSE: return os << "<false>"; case TYPE_TRUE: return os << "<true>"; case TYPE_STRING: return os << "<string>"; case TYPE_ARRAY: return os << "<array>"; case TYPE_OBJECT: return os << "<object>"; default: return os << "<unknown type"; } } } // namespace sajson
#pragma once #include "sajson.h" #include <ostream> namespace sajson { inline std::ostream& operator<<(std::ostream& os, type t) { switch (t) { case TYPE_INTEGER: return os << "<integer>"; case TYPE_DOUBLE: return os << "<double>"; case TYPE_NULL: return os << "<null>"; case TYPE_FALSE: return os << "<false>"; case TYPE_TRUE: return os << "<true>"; case TYPE_STRING: return os << "<string>"; case TYPE_ARRAY: return os << "<array>"; case TYPE_OBJECT: return os << "<object>"; default: return os << "<unknown type>"; } } } // namespace sajson
Add missing closing angle bracket
Add missing closing angle bracket
C
mit
iboB/sajson,chadaustin/sajson,chadaustin/sajson,chadaustin/sajson,chadaustin/sajson,chadaustin/sajson,iboB/sajson,chadaustin/sajson,iboB/sajson,iboB/sajson,iboB/sajson,iboB/sajson