commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
1
4.87k
subject
stringlengths
15
778
message
stringlengths
15
8.75k
lang
stringclasses
266 values
license
stringclasses
13 values
repos
stringlengths
5
127k
b4948876ed0bd3cec6a9ac6e74fa9d1b266b6c37
ccnd/include/ccn/keystore.h
ccnd/include/ccn/keystore.h
/* * ccn/keystore.h * * KEYSTORE interface * * This is a veneer so that the ccn code can avoid exposure to the * underlying keystore implementation types */ #ifndef CCN_KEYSTORE_DEFINED #define CCN_KEYSTORE_DEFINED #include <stddef.h> struct ccn_keystore; struct ccn_keystore *ccn_keystore_create(); void ccn_k...
/* * ccn/keystore.h * * KEYSTORE interface * * This is a veneer so that the ccn code can avoid exposure to the * underlying keystore implementation types */ #ifndef CCN_KEYSTORE_DEFINED #define CCN_KEYSTORE_DEFINED #include <stddef.h> struct ccn_keystore; struct ccn_keystore *ccn_keystore_create(void); void c...
Fix missing void in parameterless call prototype
Fix missing void in parameterless call prototype
C
lgpl-2.1
svartika/ccnx,svartika/ccnx,ebollens/ccnmp,svartika/ccnx,cawka/ndnx,svartika/ccnx,ebollens/ccnmp,cawka/ndnx,svartika/ccnx,ebollens/ccnmp,cawka/ndnx,cawka/ndnx,svartika/ccnx,cawka/ndnx,svartika/ccnx,ebollens/ccnmp
d0817bdc0e8416ce62f49dcd63191aac870cc3e0
src/sota_tools/ostree_hash.h
src/sota_tools/ostree_hash.h
#ifndef SOTA_CLIENT_TOOLS_OSTREE_HASH_H_ #define SOTA_CLIENT_TOOLS_OSTREE_HASH_H_ #include <cstdint> #include <cstring> // memcmp, memcpy #include <iostream> #include <string> class OSTreeHash { public: /** * Parse an OSTree hash from a string. This will normally be a root commit. * @throws OSTreeCommitPar...
#ifndef SOTA_CLIENT_TOOLS_OSTREE_HASH_H_ #define SOTA_CLIENT_TOOLS_OSTREE_HASH_H_ #include <cstdint> #include <cstring> // memcmp, memcpy #include <iostream> #include <string> class OSTreeHash { public: /** * Parse an OSTree hash from a string. This will normally be a root commit. * @throws OSTreeCommitPar...
Remove TODO test comment about OSTreeHash::Parse
Remove TODO test comment about OSTreeHash::Parse PRO-4592
C
mpl-2.0
advancedtelematic/sota_client_cpp,advancedtelematic/aktualizr,advancedtelematic/aktualizr,advancedtelematic/aktualizr,advancedtelematic/aktualizr,advancedtelematic/sota_client_cpp
d5b46a21c209a5f05b5bc96b06fa205d9e333ec5
tests/hwloc_insert_misc.c
tests/hwloc_insert_misc.c
/* * Copyright © 2009 CNRS * Copyright © 2009-2010 INRIA * Copyright © 2009-2010 Université Bordeaux 1 * See COPYING in top-level directory. */ #include <private/config.h> #include <hwloc.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> int main(void) { hwloc_topology_t topolo...
/* * Copyright © 2009 CNRS * Copyright © 2009-2010 INRIA * Copyright © 2009-2010 Université Bordeaux 1 * See COPYING in top-level directory. */ #include <private/config.h> #include <hwloc.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> int main(void) { hwloc_topology_t topolo...
Fix a memory leak in tests
Fix a memory leak in tests This commit was SVN r2903.
C
bsd-3-clause
ggouaillardet/hwloc,ggouaillardet/hwloc,ggouaillardet/hwloc,ggouaillardet/hwloc,shekkbuilder/hwloc,shekkbuilder/hwloc,shekkbuilder/hwloc,shekkbuilder/hwloc
a888bc12a58e8fc2abf53e97c2ff838e68fbe955
cman/qdisk/gettid.c
cman/qdisk/gettid.c
#include <sys/types.h> #include <linux/unistd.h> #include <gettid.h> #include <errno.h> /* Patch from Adam Conrad / Ubuntu: Don't use _syscall macro */ #ifdef __NR_gettid pid_t gettid (void) { return syscall(__NR_gettid); } #else #warn "gettid not available -- substituting with pthread_self()" #include <pthread.h>...
#include <sys/types.h> #include <linux/unistd.h> #include <gettid.h> #include <unistd.h> #include <errno.h> /* Patch from Adam Conrad / Ubuntu: Don't use _syscall macro */ #ifdef __NR_gettid pid_t gettid (void) { return syscall(__NR_gettid); } #else #warn "gettid not available -- substituting with pthread_self()" ...
Add include so we get a prototype for syscall()
Add include so we get a prototype for syscall()
C
lgpl-2.1
stevenraspudic/resource-agents,asp24/resource-agents,stevenraspudic/resource-agents,asp24/resource-agents,asp24/resource-agents,stevenraspudic/resource-agents
0cf104dc47a64079e522b9b3025a8371c09402e4
src/python/helpers/python_convert_any.h
src/python/helpers/python_convert_any.h
/*ckwg +5 * Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #ifndef VISTK_PYTHON_HELPERS_PYTHON_CONVERT_ANY_H #define VISTK_PYTHON_HELPERS_PYTHON_CONVERT...
/*ckwg +5 * Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #ifndef VISTK_PYTHON_HELPERS_PYTHON_CONVERT_ANY_H #define VISTK_PYTHON_HELPERS_PYTHON_CONVERT...
Use a class instead of a struct
Use a class instead of a struct
C
bsd-3-clause
mathstuf/sprokit,linus-sherrill/sprokit,mathstuf/sprokit,Kitware/sprokit,linus-sherrill/sprokit,mathstuf/sprokit,linus-sherrill/sprokit,Kitware/sprokit,mathstuf/sprokit,Kitware/sprokit,linus-sherrill/sprokit,Kitware/sprokit
53b94d9190d66c1fbf910fd65d9d3a4dfef3a238
shims/graphics.h
shims/graphics.h
/* BLACK color, which I presume was defined in graphics.h */ #define BLACK 0
/* BLACK color, which I presume was defined in the original graphics.h */ #define BLACK 0 /* All my original cpp files create constant ints named true and false. This worked with the Borland C++ compiler, but not gcc. I'll redefine them with a preprocessor macro to be a non-reserved name, but first I need to i...
Handle reserved true/false variable names
Handle reserved true/false variable names
C
mit
sortelli/tankbeta,sortelli/tankbeta,sortelli/tankbeta,sortelli/tankbeta
4f76d799edab526b1de4ac24b61c909336b86bb9
gba/devkitarm/source/main.c
gba/devkitarm/source/main.c
// GBT Player v3.0.9 // // SPDX-License-Identifier: MIT // // Copyright (c) 2022, Antonio Niño Díaz <antonio_nd@outlook.com> #include <gba.h> #include <stdio.h> #include "gbt_player.h" extern const uint8_t *template_data[]; int main(int argc, char *argv[]) { irqInit(); irqEnable(IRQ_VBLANK); consoleDe...
// GBT Player v3.0.9 // // SPDX-License-Identifier: MIT // // Copyright (c) 2022, Antonio Niño Díaz <antonio_nd@outlook.com> #include <gba.h> #include "gbt_player.h" extern const uint8_t *template_data[]; int main(int argc, char *argv[]) { irqInit(); irqEnable(IRQ_VBLANK); gbt_play(template_data, 5); ...
Stop using console in demo ROM
gba: Stop using console in demo ROM This makes it easier to analyse the elf map file to look for changes after modifications to GBT Player.
C
mit
AntonioND/gbt-player,AntonioND/gbt-player,AntonioND/gbt-player
b8b83dbd95aa051017ef442b311e3867cf71bf77
src/ifdwrapper.h
src/ifdwrapper.h
/* * This wraps the dynamic ifdhandler functions. The abstraction will * eventually allow multiple card slots in the same terminal. * * MUSCLE SmartCard Development ( http://www.linuxnet.com ) * * Copyright (C) 1999 * David Corcoran <corcoran@linuxnet.com> * * $Id$ */ #ifndef __ifdwrapper_h__ #define __ifdw...
/* * This wraps the dynamic ifdhandler functions. The abstraction will * eventually allow multiple card slots in the same terminal. * * MUSCLE SmartCard Development ( http://www.linuxnet.com ) * * Copyright (C) 1999 * David Corcoran <corcoran@linuxnet.com> * * $Id$ */ #ifndef __ifdwrapper_h__ #define __ifdw...
Modify the prototype of IFDOpenIFD.
Modify the prototype of IFDOpenIFD. git-svn-id: f2d781e409b7e36a714fc884bb9b2fc5091ddd28@603 0ce88b0d-b2fd-0310-8134-9614164e65ea
C
bsd-3-clause
vicamo/pcsc-lite-android,vicamo/pcsc-lite-android,vicamo/pcsc-lite-android,vicamo/pcsc-lite-android,vicamo/pcsc-lite-android
87004dbc4eab7de47be325ac4211d2ce0c43e938
src/imap/cmd-close.c
src/imap/cmd-close.c
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */ #include "common.h" #include "commands.h" #include "imap-expunge.h" bool cmd_close(struct client_command_context *cmd) { struct client *client = cmd->client; struct mailbox *mailbox = client->mailbox; struct mail_storage *storage; if (!...
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */ #include "common.h" #include "commands.h" #include "imap-expunge.h" bool cmd_close(struct client_command_context *cmd) { struct client *client = cmd->client; struct mailbox *mailbox = client->mailbox; struct mail_storage *storage; if (!...
Synchronize the mailbox after expunging messages to actually get them expunged.
CLOSE: Synchronize the mailbox after expunging messages to actually get them expunged. --HG-- branch : HEAD
C
mit
dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot
e2aa329f967e3ceb9e789dbc8cf636d5fb373a3b
src/cpu/cpu.c
src/cpu/cpu.c
#define _GNU_SOURCE #include <stdio.h> #include <sched.h> #include <errno.h> #include <stdint.h> #include <sys/resource.h> #include "cpu.h" #include "../util/taskstats.h" #include "../util/file_utils.h" int current_cpus(int pid) { cpu_set_t proc_cpus; size_t mask_size = sizeof proc_cpus; int ret = sche...
#define _GNU_SOURCE #include <stdio.h> #include <sched.h> #include <errno.h> #include <stdint.h> #include <sys/resource.h> #include "cpu.h" #include "../util/taskstats.h" #include "../util/file_utils.h" int current_cpus(int pid) { cpu_set_t proc_cpus; size_t mask_size = sizeof proc_cpus; int ret = sche...
Use parse_proc for context switches if lower perms
Use parse_proc for context switches if lower perms
C
mit
tijko/dashboard
0e9372ac7a77505d62deb9a09c700b67b083b09a
include/SafeQueue.h
include/SafeQueue.h
#pragma once #include <mutex> #include <queue> // Thread safe implementation of a Queue using a std::queue template <typename T> class SafeQueue { private: std::queue<T> m_queue; std::mutex m_mutex; public: SafeQueue() { } SafeQueue(SafeQueue& other) { //TODO: } ~SafeQueue() { } bool empty...
#pragma once #include <mutex> #include <queue> // Thread safe implementation of a Queue using a std::queue template <typename T> class SafeQueue { private: std::queue<T> m_queue; std::mutex m_mutex; public: SafeQueue() { } SafeQueue(SafeQueue& other) { //TODO: } ~SafeQueue() { } bool empty...
Fix bug in dequeue that caused to return always false
Fix bug in dequeue that caused to return always false
C
mit
mtrebi/thread-pool
de10afff330e862d976436c702ce77165888a1f2
gdk-pixbuf/gdk-pixbuf.h
gdk-pixbuf/gdk-pixbuf.h
#ifndef _GDK_PIXBUF_H_ #define _GDK_PIXBUF_H_ #include <libart_lgpl/art_misc.h> #include <libart_lgpl/art_pixbuf.h> typedef struct { int ref_count; ArtPixBuf *art_pixbuf; void (*unref_func)(void *gdkpixbuf); } GdkPixBuf; GdkPixBuf *gdk_pixbuf_load_image (const char *file); void gdk_pixbuf_save_image (const ...
#ifndef _GDK_PIXBUF_H_ #define _GDK_PIXBUF_H_ #include <libart_lgpl/art_misc.h> #include <libart_lgpl/art_pixbuf.h> #include <glib.h> typedef struct { int ref_count; ArtPixBuf *art_pixbuf; void (*unref_func)(void *gdkpixbuf); } GdkPixBuf; GdkPixBuf *gdk_pixbuf_load_image (const char *file); void gdk_pixbuf_...
Include glib.h as it uses g* datatypes Added for gnome-config
Include glib.h as it uses g* datatypes Added for gnome-config 1999-07-23 Richard Hestilow <hestgray@ionet.net> * src/gdk-pixbuf.h: Include glib.h as it uses g* datatypes * gdk_pixbufConf.sh.in: Added for gnome-config * Makefile.am: * configure.in: Modified to generate gdk_pixbufConf....
C
lgpl-2.1
GNOME/gdk-pixbuf,GNOME/gdk-pixbuf,YueLinHo/MB3Gdk-pixbuf,YueLinHo/MB3Gdk-pixbuf,Distrotech/gdk-pixbuf,YueLinHo/MB3Gdk-pixbuf,Distrotech/gdk-pixbuf,Distrotech/gdk-pixbuf,GNOME/gdk-pixbuf,GNOME/gdk-pixbuf,djdeath/gdk-pixbuf,YueLinHo/MB3Gdk-pixbuf,YueLinHo/MB3Gdk-pixbuf,Distrotech/gdk-pixbuf,djdeath/gdk-pixbuf,Distrotech/...
0ef3023b55fd36cace3db6e95dfa650485e54569
src/OrbitBase/include/OrbitBase/Result.h
src/OrbitBase/include/OrbitBase/Result.h
// Copyright (c) 2020 The Orbit 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 ORBIT_BASE_RESULT_H_ #define ORBIT_BASE_RESULT_H_ #include <string> #include <type_traits> #include "outcome.hpp" class ErrorMessage final { ...
// Copyright (c) 2020 The Orbit 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 ORBIT_BASE_RESULT_H_ #define ORBIT_BASE_RESULT_H_ #include <string> #include <type_traits> #include "outcome.hpp" class [[nodiscard]] ErrorMes...
Add nodiscard to ErrorMessage and ErrorMessageOr
Add nodiscard to ErrorMessage and ErrorMessageOr Test: builds
C
bsd-2-clause
google/orbit,google/orbit,google/orbit,google/orbit
70917f5a1ab1b56e80daf1f2056d73ccb925c19e
src/hello.c
src/hello.c
/* * Challenger 1P Hello World Program for cc65. */ #include <conio.h> int main(void) { static const char hello_world[] = "Hello world!\r\ncc65 for Challenger 1P"; unsigned int i; clrscr(); gotoxy(0, 0); cputs(hello_world); gotoxy(0, 4); for (i = 0;...
/* * Challenger 1P Hello World Program for cc65. */ #include <conio.h> int main(void) { static const char hello_world[] = "Hello world!\r\ncc65 for Challenger 1P"; unsigned int i; clrscr(); /* TODO this should be implicitly done in clrscr() */ gotoxy(0, 0); ...
Test new cursor functionality now implemented in the c1p runtime library.
Test new cursor functionality now implemented in the c1p runtime library.
C
mit
smuehlst/c1pctest,smuehlst/c1pctest
cc49d646230696b642a1d94a372c38bd3105c25d
include/TextureHandle.h
include/TextureHandle.h
/*! \file TextureHandle.h * \author Jared Hoberock * \brief Defines the interface to an opaque * pointer type for Textures. */ #pragma once #include <string> typedef unsigned int TextureHandle; struct TextureParameter { inline TextureParameter(void) :mHandle(0),mAlias(""){} inline TexturePara...
/*! \file TextureHandle.h * \author Jared Hoberock * \brief Defines the interface to an opaque * pointer type for Textures. */ #pragma once #include <string> typedef unsigned int TextureHandle; struct TextureParameter { inline TextureParameter(void) :mHandle(0),mAlias(""){} inline TexturePara...
Make the cast operator inline for use with CUDA
Make the cast operator inline for use with CUDA git-svn-id: eeeef91d721e48f02083ec31b1220ddf564a51e4@1671 3bb10773-34f4-0310-b88c-ec9d511ba0d9
C
apache-2.0
jaredhoberock/gotham,jaredhoberock/gotham,jaredhoberock/gotham,jaredhoberock/gotham,jaredhoberock/gotham
32a03501ea2030314b9b610ea0181f1f60bce11e
src/a_samp.c
src/a_samp.c
/* Copyright (C) 2011-2012 Zeex * * 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 i...
/* Copyright (C) 2011-2012 Zeex * * 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 i...
Make timer ID's start with 1
Make timer ID's start with 1
C
apache-2.0
Zeex/sampgdk,WopsS/sampgdk,Zeex/sampgdk,WopsS/sampgdk,WopsS/sampgdk,Zeex/sampgdk
3073b5fabe5af86afa9bae6e644f6cc515e6c438
src/animator/SkDump.h
src/animator/SkDump.h
/* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkDump_DEFINED #define SkDump_DEFINED #include "SkDisplayable.h" #include "SkMemberInfo.h" class SkAnimateMaker; class SkString; class SkDump ...
/* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkDump_DEFINED #define SkDump_DEFINED #include "SkDisplayable.h" #include "SkMemberInfo.h" class SkAnimateMaker; class SkString; class SkDump ...
Fix a stray -Winconsistent-missing-override warning.
Fix a stray -Winconsistent-missing-override warning. TBR= BUG=skia: Review URL: https://codereview.chromium.org/1261043002
C
bsd-3-clause
vanish87/skia,ominux/skia,todotodoo/skia,noselhq/skia,Hikari-no-Tenshi/android_external_skia,nvoron23/skia,tmpvar/skia.cc,qrealka/skia-hc,HalCanary/skia-hc,Hikari-no-Tenshi/android_external_skia,tmpvar/skia.cc,HalCanary/skia-hc,ominux/skia,nvoron23/skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,vanish87/skia,...
e45e60c78fbffded0fb138ee7d60832132d53342
src/scanner/scanner.h
src/scanner/scanner.h
#ifndef OCELOT2_SCANNER_H #define OCELOT2_SCANNER_H void get_symbol(); #endif // OCELOT2_SCANNER_H
#ifndef OCELOT2_SCANNER_H #define OCELOT2_SCANNER_H /** * Tokens */ int T_EOF; int current_symbol; void scanner_init(); void scanner_token_init(); void scanner_get_symbol(); #endif // OCELOT2_SCANNER_H
Add first token, current_symbol and function prototypes
Add first token, current_symbol and function prototypes
C
mit
danielkocher/ocelot2
5bfca9b16992084c279022c1086e555476131987
src/debug.h
src/debug.h
#ifndef __DEBUG_H #define __DEBUG_H #ifdef DEBUG extern bool debug; extern bool debug_z; #define DBG if (debug) #define MSG(x) DBG msg x #define PRECONDITION(x) if (x); else precondition( #x , __FILE__, __LINE__) #else #define DBG if (0) #define MSG(x) #define PRECONDITION(x) // nothing #endif #endif
#ifndef __DEBUG_H #define __DEBUG_H #ifdef DEBUG extern bool debug; extern bool debug_z; #define DBG if (debug) #define MSG(x) DBG msg x #else #define DBG if (0) #define MSG(x) #endif #if defined(DEBUG) || defined(PRECON) #define PRECONDITION(x) if (x); else precondition( #x , __FILE__, __LINE__) #else #define PRECO...
Make PRECONDITION usable in isolation by compile time define PRECON.
Make PRECONDITION usable in isolation by compile time define PRECON.
C
lgpl-2.1
dicej/icewm,dicej/icewm,dicej/icewm,dicej/icewm
6dad07a76fce27591b93f1a9d39b86abe19efb0c
src/marks.c
src/marks.c
#include <stdio.h> #include <stdlib.h> #define MARK_SIZE 8 int read_marks(float marks[]) { char mark[MARK_SIZE]; int c = 0; for (int i = 0; i < 4; i++) { c += 1; printf("mark[%d]: ", i+1); fgets(mark, sizeof(mark), stdin); marks[i] = strtol(mark, NULL, 0); } retur...
#include <stdio.h> #include <stdlib.h> #define MARK_SIZE 8 int read_marks(float marks[]) { char mark[MARK_SIZE]; int c = 0; for (int i = 0; i < 4; i++) { c += 1; printf("mark[%d]: ", i+1); fgets(mark, sizeof(mark), stdin); marks[i] = strtol(mark, NULL, 0); } retur...
Use the size of the array passed in
Use the size of the array passed in * It'll work for any size array
C
mit
azbshiri/student
992ed68ed65b99fd76213cb355404f9a18e26da1
src/mesa/main/api_loopback.h
src/mesa/main/api_loopback.h
/* * Mesa 3-D graphics library * Version: 3.5 * * Copyright (C) 1999-2001 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, in...
/* * Mesa 3-D graphics library * Version: 3.5 * * Copyright (C) 1999-2001 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, in...
Fix warning ('struct gl_context' declared inside parameter list).
main: Fix warning ('struct gl_context' declared inside parameter list). This eliminates a warning in GCC 4.7.1. Reviewed-by: Brian Paul <3cb4e1df5ec4da2c7c4af7c52cec8cf340a55a10@vmware.com> Reviewed-by: Jordan Justen <a79006884ba9cf5f4f7fcbb92a15b208780d8c97@intel.com> Reviewed-by: Ian Romanick <2b237cafb16dc45038e85...
C
mit
metora/MesaGLSLCompiler,mapbox/glsl-optimizer,benaadams/glsl-optimizer,tokyovigilante/glsl-optimizer,zeux/glsl-optimizer,zeux/glsl-optimizer,bkaradzic/glsl-optimizer,benaadams/glsl-optimizer,mapbox/glsl-optimizer,jbarczak/glsl-optimizer,tokyovigilante/glsl-optimizer,bkaradzic/glsl-optimizer,zz85/glsl-optimizer,jbarczak...
cf20031f60f3a242f0cf4e0a42e115762e2948e4
test/FrontendC/2009-07-15-pad-wchar_t-array.c
test/FrontendC/2009-07-15-pad-wchar_t-array.c
// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null typedef int __darwin_wchar_t; typedef __darwin_wchar_t wchar_t; typedef signed short SQLSMALLINT; typedef SQLSMALLINT SQLRETURN; typedef enum { en_sqlstat_total } sqlerrmsg_t; SQLRETURN _iodbcdm_sqlerror( ) { wchar_t _sqlState[6] = { L"\0" }; }
// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null #include <stddef.h> signed short _iodbcdm_sqlerror( ) { wchar_t _sqlState[6] = { L"\0" }; }
Fix test so it works on systems where wchar_t != int.
Fix test so it works on systems where wchar_t != int. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@75827 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,apple...
394a095665a5ac4f465d194b46da6bf77a340958
ReQL.h
ReQL.h
/** * @author Adam Grandquist */ #include "ReQL-ast.h" #ifndef _REQL_H #define _REQL_H struct _ReQL_Conn_s { int socket; int error; char *buf; }; typedef struct _ReQL_Conn_s _ReQL_Conn_t; struct _ReQL_Cur_s { }; typedef struct _ReQL_Cur_s _ReQL_Cur_t; int _reql_connect(_ReQL_Conn_t *conn, unsigned char hos...
/** * @author Adam Grandquist */ #include "ReQL-ast.h" #ifndef _REQL_H #define _REQL_H struct _ReQL_Conn_s { int socket; int error; char *buf; unsigned int max_token; struct _ReQL_Cur_s **cursor; }; typedef struct _ReQL_Conn_s _ReQL_Conn_t; struct _ReQL_Cur_s { }; typedef struct _ReQL_Cur_s _ReQL_Cur_t;...
Add token counter and cursor array to connections.
Add token counter and cursor array to connections.
C
apache-2.0
grandquista/ReQL-Core,grandquista/ReQL-Core,grandquista/ReQL-Core,grandquista/ReQL-Core
88877290116f8da110404ff96a3df8f508bc60a2
src/calculator/fourier/fourier_transform_fftw.h
src/calculator/fourier/fourier_transform_fftw.h
#ifndef BART_SRC_CALCULATOR_FOURIER_FOURIER_TRANSFORM_FFTW_H_ #define BART_SRC_CALCULATOR_FOURIER_FOURIER_TRANSFORM_FFTW_H_ #include "calculator/fourier/fourier_transform_i.h" namespace bart { namespace calculator { namespace fourier { class FourierTransformFFTW : public FourierTransformI { public: FourierTrans...
#ifndef BART_SRC_CALCULATOR_FOURIER_FOURIER_TRANSFORM_FFTW_H_ #define BART_SRC_CALCULATOR_FOURIER_FOURIER_TRANSFORM_FFTW_H_ #include "calculator/fourier/fourier_transform_i.h" namespace bart { namespace calculator { namespace fourier { class FourierTransformFFTW : public FourierTransformI { public: FourierTrans...
Put constructor for FourierTransformFFTW in cc file.
Put constructor for FourierTransformFFTW in cc file.
C
mit
jsrehak/BART,jsrehak/BART
b1e795e9014c091b2dc9d997b8a292afe9780597
libcpu/timings.h
libcpu/timings.h
#ifndef __libcpu_timings_h #define __libcpu_timings_h #ifdef __MACH__ #include <mach/mach_time.h> #define abs_time() mach_absolute_time() #endif #ifdef sun #include <sys/time.h> #define abs_time() gethrtime() #endif #ifdef linux #warning High precission timing currently n/a on Linux // HACK #define abs_time() 0 #...
#ifndef __libcpu_timings_h #define __libcpu_timings_h #ifdef __MACH__ #include <mach/mach_time.h> #define abs_time() mach_absolute_time() #endif #ifdef sun #include <sys/time.h> #define abs_time() gethrtime() #endif #ifdef linux #warning High precission timing currently n/a on Linux // HACK #define abs_time() 0 #...
Make abs_time() use GetTickCount() on Windows
Make abs_time() use GetTickCount() on Windows
C
bsd-2-clause
ukatemi/libcpu,monocasa/libcpu,ukatemi/libcpu,curtiszimmerman/libcpu,curtiszimmerman/libcpu,monocasa/libcpu,monocasa/libcpu,libcpu/libcpu,libcpu/libcpu,libcpu/libcpu,ukatemi/libcpu,glguida/libcpu,libcpu/libcpu,ukatemi/libcpu,curtiszimmerman/libcpu,curtiszimmerman/libcpu,glguida/libcpu,glguida/libcpu,monocasa/libcpu,glg...
31c42798c74f5ae31a996ea17c96ec1301876a26
PWG3/PWG3baseLinkDef.h
PWG3/PWG3baseLinkDef.h
#ifdef __CINT__ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ class AliQuarkoniaAcceptance+; #pragma link C++ class AliQuarkoniaEfficiency+; #pragma link C++ class AliD0toKpi+; #pragma link C++ class AliD0toKpiAnalysis+; #pragma link C++ class AliBtoJP...
#ifdef __CINT__ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ class AliQuarkoniaAcceptance+; #pragma link C++ class AliQuarkoniaEfficiency+; #pragma link C++ class AliAODRecoDecayHF+; #pragma link C++ class AliAODRecoDecayHF2Prong+; #pragma link C++ cl...
Move AliD0toKpi* and AliBtoJPSI* from libPWG3base to libPWG3 (Andrea)
Move AliD0toKpi* and AliBtoJPSI* from libPWG3base to libPWG3 (Andrea)
C
bsd-3-clause
yowatana/AliPhysics,akubera/AliPhysics,rderradi/AliPhysics,rbailhac/AliPhysics,AMechler/AliPhysics,adriansev/AliPhysics,ppribeli/AliPhysics,hcab14/AliPhysics,pbatzing/AliPhysics,dlodato/AliPhysics,ALICEHLT/AliPhysics,pbuehler/AliPhysics,alisw/AliPhysics,SHornung1/AliPhysics,dstocco/AliPhysics,hzanoli/AliPhysics,rihanph...
9796e4cc76c93344578a8fbed88feb6c552d7ba4
thcrap/src/global.c
thcrap/src/global.c
/** * Touhou Community Reliant Automatic Patcher * Main DLL * * ---- * * Globals, compile-time constants and runconfig abstractions. */ #include "thcrap.h" CRITICAL_SECTION cs_file_access; json_t* run_cfg = NULL; const char* PROJECT_NAME(void) { return "Touhou Community Reliant Automatic Patcher"; } c...
/** * Touhou Community Reliant Automatic Patcher * Main DLL * * ---- * * Globals, compile-time constants and runconfig abstractions. */ #include "thcrap.h" CRITICAL_SECTION cs_file_access; json_t* run_cfg = NULL; const char* PROJECT_NAME(void) { return "Touhou Community Reliant Automatic Patcher"; } c...
Increment the run configuration's reference counter.
runconfig_set(): Increment the run configuration's reference counter. Fixes bug #41 (https://bitbucket.org/nmlgc/thpatch-bugs/issue/41).
C
unlicense
thpatch/thcrap,VBChunguk/thcrap,thpatch/thcrap,thpatch/thcrap,VBChunguk/thcrap,thpatch/thcrap,VBChunguk/thcrap,thpatch/thcrap
04743587bbbf4330680ca61ef7ab4392df3529de
leafnode-version.c
leafnode-version.c
/* * (C) 2001 by Matthias Andree */ /* * This file (leafnode-version.c) is public domain. It comes without and * express or implied warranties. Do with this file whatever you wish, but * don't remove the disclaimer. */ #include <stdio.h> #include "leafnode.h" #ifdef WITH_DMALLOC #include <dmalloc.h> #endif #i...
/* * (C) 2001 by Matthias Andree */ /* * This file (leafnode-version.c) is public domain. It comes without and * express or implied warranties. Do with this file whatever you wish, but * don't remove the disclaimer. */ #include <stdio.h> #include "leafnode.h" #ifdef WITH_DMALLOC #include <dmalloc.h> #endif #i...
Fix up the spooldir/lockfile changes that caused a segfault.
Fix up the spooldir/lockfile changes that caused a segfault.
C
lgpl-2.1
BackupTheBerlios/leafnode,BackupTheBerlios/leafnode,BackupTheBerlios/leafnode,BackupTheBerlios/leafnode
c45c927b2776def13b062707fff08974ddb4c920
motor_shield.h
motor_shield.h
#include "Arduino.h" class MotorShield { public: MotorShield(uint8_t speedPinLeft, uint8_t dirPinLeft, uint8_t speedPinRight, uint8_t dirPinRight); void init(); void forward(); void backward(); void stop(); void fullSpeed(); void stopLeft(); void stopRight(); private: in...
#include "Arduino.h" class MotorShield { public: MotorShield(uint8_t speedPinLeft, uint8_t dirPinLeft, uint8_t speedPinRight, uint8_t dirPinRight); void init(); void forward(); void backward(); void stop(); void fullSpeed(); void stopLeft(); void stopRight(); private: ui...
Change var types to the same type that constructor expects
Change var types to the same type that constructor expects
C
mit
lenon/arduino-motorshield
0458bbf2c0cbc41ff06c4db3da0f63ab0785d801
contrib/minizip/mztools.h
contrib/minizip/mztools.h
/* Additional tools for Minizip Code: Xavier Roche '2004 License: Same as ZLIB (www.gzip.org) */ #ifndef _zip_tools_H #define _zip_tools_H #ifdef __cplusplus extern "C" { #endif #ifndef _ZLIB_H #include "zlib.h" #endif #include "unzip.h" /* Repair a ZIP file (missing central directory) file: file to recov...
/* Additional tools for Minizip Code: Xavier Roche '2004 License: Same as ZLIB (www.gzip.org) */ #ifndef _zip_tools_H #define _zip_tools_H #ifdef __cplusplus extern "C" { #endif #ifndef _ZLIB_H #include "zlib.h" #endif #include "unzip.h" /* Repair a ZIP file (missing central directory) file: file to recov...
Fix bug when compiling minizip with C++ [Vollant].
Fix bug when compiling minizip with C++ [Vollant].
C
mit
Streamlet/ZLibWrap,Streamlet/ZLibWrap,Streamlet/ZLibWrap,Streamlet/ZLibWrap,Streamlet/ZLibWrap
9be6b4140cba2680fabcce7c030b531eca5a56a6
src/kernel/exceptions.h
src/kernel/exceptions.h
/** * \file * \remark This file is part of VITA. * * \copyright Copyright (C) 2018 EOS di Manlio Morini. * * \license * 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.o...
/** * \file * \remark This file is part of VITA. * * \copyright Copyright (C) 2018 EOS di Manlio Morini. * * \license * 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.o...
Fix a typo in remark
[DOC] Fix a typo in remark
C
mpl-2.0
morinim/vita,morinim/vita,morinim/vita
3e2d4b53e966f253342f6a8bc9b4c39f9ebb2d05
platforms/unix/vm/sqConfig.h
platforms/unix/vm/sqConfig.h
/* Unix sqConfig.h -- platform identification and configuration */ /* This file has been superseded by autoconf for Unix variants. */ #include "config.h" #ifndef UNIX # define UNIX #endif #if !defined(LSB_FIRST) #error "LSB_FIRST is undefined. Used for setting platform endianesness!" #endif #if LSB_FIRST # defin...
/* Unix sqConfig.h -- platform identification and configuration */ /* This file has been superseded by autoconf for Unix variants. */ #include "config.h" #ifndef UNIX # define UNIX #endif #if !defined(LSB_FIRST) #error "LSB_FIRST is undefined. Used for setting platform endianesness!" #endif #if LSB_FIRST # defin...
Make the gcc/clang asm keyword available, even when running in standard C mode.
Make the gcc/clang asm keyword available, even when running in standard C mode.
C
mit
timfel/squeakvm,timfel/squeakvm,OpenSmalltalk/vm,timfel/squeakvm,OpenSmalltalk/vm,timfel/squeakvm,timfel/squeakvm,timfel/squeakvm,timfel/squeakvm,OpenSmalltalk/vm,timfel/squeakvm,OpenSmalltalk/vm,OpenSmalltalk/vm,OpenSmalltalk/vm,OpenSmalltalk/vm,OpenSmalltalk/vm
dfdb2d3dac4078fb093df46bb6cae8cf8f11b31c
src/serhex/serhex_api.h
src/serhex/serhex_api.h
#ifndef _SERHEX_H_ #define _SERHEX_H_ #include <termios.h> // POSIX terminal control definitions int configure_port(int fd, speed_t st); int open_port(char *port); int send_cmd(char *, uint8_t *, int, uint8_t *); int send_cmd_with_delay(char *, uint8_t *, int, uint8_t *, int); #endif /* _SERHEX_H_ */
#ifndef _SERHEX_H_ #define _SERHEX_H_ #include <termios.h> // POSIX terminal control definitions #include <stdint.h> int configure_port(int fd, speed_t st); int open_port(char *port); int send_cmd(char *, uint8_t *, int, uint8_t *); int send_cmd_with_delay(char *, uint8_t *, int, uint8_t *, int); #endif /* _SERHEX_H...
Fix to compile on Debian
Fix to compile on Debian Debian fails to compile because `serhex_api.h` wasn't using <stdint.h>
C
mit
RadiusNetworks/serhex,RadiusNetworks/serhex
579967a7ecedd1df1da5c42094d11ff961e28373
test/FrontendC/2011-03-18-StructReturn.c
test/FrontendC/2011-03-18-StructReturn.c
// R UN: %llvmgcc %s -S -O0 -o - | FileCheck %s // Radar 9156771 typedef struct RGBColor { unsigned short red; unsigned short green; unsigned short blue; } RGBColor; RGBColor func(); RGBColor X; void foo() { //CHECK: store i48 X = func(); }
// RUN: %llvmgcc %s -S -O0 -o - | FileCheck %s // REQUIRES: disabled // Radar 9156771 typedef struct RGBColor { unsigned short red; unsigned short green; unsigned short blue; } RGBColor; RGBColor func(); RGBColor X; void foo() { //CHECK: store i48 X = func(); }
Disable test in a way that keeps lit happy.
Disable test in a way that keeps lit happy. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@127962 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap...
6c4ff39ac27868ece8135bb48c813d16278e043a
engine/include/resources/ResourceCache.h
engine/include/resources/ResourceCache.h
/* * Copyright (c) 2017 Lech Kulina * * This file is part of the Realms Of Steel. * For conditions of distribution and use, see copyright details in the LICENSE file. */ #ifndef ROS_RESOURCE_CACHE_H #define ROS_RESOURCE_CACHE_H #include <core/Common.h> #include <core/Environment.h> #include <resources/ArchiveFile...
/* * Copyright (c) 2017 Lech Kulina * * This file is part of the Realms Of Steel. * For conditions of distribution and use, see copyright details in the LICENSE file. */ #ifndef ROS_RESOURCE_CACHE_H #define ROS_RESOURCE_CACHE_H #include <core/Common.h> #include <core/Environment.h> #include <resources/ArchiveFile...
Add support for computing currently used size in resource caches
Add support for computing currently used size in resource caches
C
apache-2.0
lechkulina/RealmsOfSteel,lechkulina/RealmsOfSteel
592c98eefdeaba3bf5d1be29ea497503282abf78
src/shk-trace/src/file_descriptor.h
src/shk-trace/src/file_descriptor.h
#pragma once #include <util/raii_helper.h> namespace shk { namespace detail { void closeFd(int fd); } using FileDescriptor = RAIIHelper<int, void, detail::closeFd, -1>; } // namespace shk
#pragma once #include <util/raii_helper.h> namespace shk { namespace detail { void closeFd(int fd); } // namespace detail using FileDescriptor = RAIIHelper<int, void, detail::closeFd, -1>; } // namespace shk
Add missing namespace closing comment
Style: Add missing namespace closing comment
C
apache-2.0
per-gron/shuriken,per-gron/shuriken,per-gron/shuriken,per-gron/shuriken
5e8e82b221e5528aecbd614a26b62259f4254ab1
src/util/sdk.h
src/util/sdk.h
#pragma once #include "util/none.h" #ifdef PBL_SDK_3 #define SDK_SELECT(sdk3, sdk2) sdk3 #elif PBL_SDK_2 #define SDK_SELECT(sdk3, sdk2) sdk2 #endif
#pragma once #include "util/none.h" #ifdef PBL_SDK_3 #define SDK_SELECT(sdk3, sdk2) sdk3 #define IF_SDK_3_ELSE(sdk3, other) sdk3 #define IF_SDK_2_ELSE(sdk2, other) other #define SDK_3_USAGE #define SDK_2_USAGE __attribute__((unused)) #elif PBL_SDK_2 #define SDK_SELECT(sdk3, sdk2) sdk2 #define IF_SDK_3_ELSE(sdk3, othe...
Add SDK IF_ELSE and USAGE macros
Add SDK IF_ELSE and USAGE macros
C
mit
jsfi/pebblejs,daduke/LMSController,sunshineyyy/CatchOneBus,sunshineyyy/CatchOneBus,daduke/LMSController,jiangege/pebblejs-project,jiangege/pebblejs-project,sunshineyyy/CatchOneBus,pebble/pebblejs,bkbilly/Tvheadend-EPG,youtux/PebbleShows,bkbilly/Tvheadend-EPG,pebble/pebblejs,youtux/PebbleShows,fletchto99/pebblejs,carlo-...
080514a81e4b6fba16474516aa84f48039dad111
src/handlers.c
src/handlers.c
#include "handlers.h" void warning(void *ctx, const char *msg, ...) { va_list args; va_start(args, msg); fprintf(stdout, "SAX.warning()\n"); vfprintf(stdout, msg, args); va_end(args); } void error(void *ctx, const char *msg, ...) { va_list args; va_start(args, msg); fprintf(stdout, "SAX.error()\n"); vfprin...
#include "handlers.h" void warning(void *ctx, const char *msg, ...) { va_list args; va_start(args, msg); fprintf(stdout, "SAX.warning()\n"); vfprintf(stdout, msg, args); va_end(args); } void error(void *ctx, const char *msg, ...) { va_list args; va_start(args, msg); fprintf(stdout, "SAX.error()\n"); vfprin...
Add overridable default message serializer
Add overridable default message serializer
C
bsd-3-clause
jonforums/xvalid,jonforums/xvalid,jonforums/xvalid
bbd6b0230feee05c6efae66c8b98b31ae7bf27cb
php_fast_assert.h
php_fast_assert.h
#ifndef PHP_FAST_ASSERT_H #define PHP_FAST_ASSERT_H #define PHP_FAST_ASSERT_VERSION "0.1" #define PHP_FAST_ASSERT_EXTNAME "fast_assert" #ifdef HAVE_CONFIG_H #include "config.h" #endif extern "C" { #include "php.h" } typedef struct _fast_assert_globals { // global object handles pointing to the 3 commonly used asse...
#ifndef PHP_FAST_ASSERT_H #define PHP_FAST_ASSERT_H #define PHP_FAST_ASSERT_VERSION "0.1.1" #define PHP_FAST_ASSERT_EXTNAME "fast_assert" #ifdef HAVE_CONFIG_H #include "config.h" #endif extern "C" { #include "php.h" } typedef struct _fast_assert_globals { // global object handles pointing to the 3 commonly used as...
Add bugfix version to match package version parity
Add bugfix version to match package version parity
C
apache-2.0
box/fast_assert,box/fast_assert,box/fast_assert
3e5235b6114772606a59e3c3165b2b0f5fa77542
mudlib/mud/home/Help/initd.c
mudlib/mud/home/Help/initd.c
#include <kotaka/paths.h> #include <kotaka/privilege.h> #include <kotaka/bigstruct.h> #include <kotaka/log.h> inherit LIB_INITD; inherit UTILITY_COMPILE; static void create() { load_dir("obj", 1); load_dir("sys", 1); } void full_reset() { object turkeylist; object cursor; object first; object this; ACCESS_CH...
#include <kotaka/paths.h> #include <kotaka/privilege.h> #include <kotaka/bigstruct.h> #include <kotaka/log.h> inherit LIB_INITD; inherit UTILITY_COMPILE; static void create() { load_dir("obj", 1); load_dir("sys", 1); } void full_reset() { object turkeylist; object cursor; object first; object this; ACCESS_CH...
Remove now needless debug spam
Remove now needless debug spam
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
1242646506e66a9ee21f40b526a841aa272d3e67
src/settings.h
src/settings.h
#define PIN_GAS_PEDAL A0 #define PIN_BATTERY_VOLTAGE A1 #define PIN_CW 5 #define PIN_CCW 6 #define PIN_SWITCH_FORWARDS 12 #define PIN_SWITCH_BACKWARDS 13 #define GAS_VALUE_MIN 442 #define GAS_VALUE_MAX 520 #define BATTERY_READING_12V 670 #define BATTERY_READING_6V 331 #define BATTERY_VOLTAGE_MIN 11 #define SPEED_...
#define PIN_GAS_PEDAL A0 #define PIN_BATTERY_VOLTAGE A1 #define PIN_CW 5 #define PIN_CCW 6 #define PIN_SWITCH_FORWARDS 10 #define PIN_SWITCH_BACKWARDS 11 #define GAS_VALUE_MIN 446 #define GAS_VALUE_MAX 510 #define BATTERY_READING_12V 670 #define BATTERY_READING_6V 331 #define BATTERY_VOLTAGE_MIN 11 #define SPEED_...
Adjust Speed min/max Adjust Gas min/max Use other Pins for gear forwards/backwards
Adjust Speed min/max Adjust Gas min/max Use other Pins for gear forwards/backwards
C
mit
schinken/E-KettCar,schinken/E-KettCar
1f8fb661a63fed5affba4be75fd1cfdcc9289690
usr/openssh/src/version.h
usr/openssh/src/version.h
/* $OpenBSD: version.h,v 1.64 2012/02/09 20:00:18 markus Exp $ */ #define SSH_VERSION "OpenSSH_6.0" #define SSH_PORTABLE "p1" #define SSH_RELEASE SSH_VERSION SSH_PORTABLE
/* $OpenBSD: version.h,v 1.64 2012/02/09 20:00:18 markus Exp $ */ #define SSH_VERSION "OpenSSH_6.0" #define SSH_PORTABLE "p1" #define SSH_PORT_NOTE "Barrelfish port" #define SSH_RELEASE SSH_VERSION SSH_PORTABLE SSH_PORT_NOTE
Change the reported openssh release string to indicate the barrelfish port.
openssh: Change the reported openssh release string to indicate the barrelfish port.
C
mit
mslovy/barrelfish,kishoredbn/barrelfish,utsav2601/cmpe295A,kishoredbn/barrelfish,utsav2601/cmpe295A,mslovy/barrelfish,mslovy/barrelfish,linusyang/barrelfish,kishoredbn/barrelfish,kishoredbn/barrelfish,kishoredbn/barrelfish,8l/barrelfish,8l/barrelfish,8l/barrelfish,BarrelfishOS/barrelfish,mslovy/barrelfish,mslovy/barrel...
0abe7310a53a27594af0929e1fcd2fc807a549d4
Demo/Classes/AppDelegate.h
Demo/Classes/AppDelegate.h
// // SVProgressHUDAppDelegate.h // SVProgressHUD // // Created by Sam Vermette on 27.03.11. // Copyright 2011 Sam Vermette. All rights reserved. // #import <UIKit/UIKit.h> @class ViewController; @interface AppDelegate : NSObject <UIApplicationDelegate> { UIWindow *window; ViewController *viewController;...
// // SVProgressHUDAppDelegate.h // SVProgressHUD // // Created by Sam Vermette on 27.03.11. // Copyright 2011 Sam Vermette. All rights reserved. // #import <UIKit/UIKit.h> @class ViewController; @interface AppDelegate : NSObject <UIApplicationDelegate> { UIWindow *__weak window; ViewController *__weak v...
Convert demo project to ARC.
Convert demo project to ARC.
C
mit
iamcharleych/SVProgressHUD,bertramdev/SVProgressHUD,Pingco/SVProgressHUD,kohtenko/SVProgressHUD,phildow/SVProgressHUD,ashfurrow/SVProgressHUD,flovilmart/SVProgressHUD,AutoScout24/SVProgressHUD,wrcj12138aaa/SVProgressHUD,zoyi/SVProgressHUD,ShyHornet/SVProgressHUD,hanangellove/SVProgressHUD,PeeJWeeJ/SwiftyHUD,tonyunreal/...
20e384988c8b20f20277a4e90557bce79af49bb9
test/default/sodium_core.c
test/default/sodium_core.c
#define TEST_NAME "sodium_core" #include "cmptest.h" int main(void) { printf("%d\n", sodium_init()); (void)sodium_runtime_has_neon(); (void)sodium_runtime_has_sse2(); (void)sodium_runtime_has_sse3(); return 0; }
#define TEST_NAME "sodium_core" #include "cmptest.h" int main(void) { printf("%d\n", sodium_init()); (void)sodium_runtime_has_neon(); (void)sodium_runtime_has_sse2(); (void)sodium_runtime_has_sse3(); (void)sodium_runtime_has_pclmul(); (void)sodium_runtime_has_aesni(); return 0; }
Test for presence of new sodium_runtime_has_*() functions
Test for presence of new sodium_runtime_has_*() functions
C
isc
eburkitt/libsodium,eburkitt/libsodium,rustyhorde/libsodium,rustyhorde/libsodium,Payshares/libsodium,Payshares/libsodium,pmienk/libsodium,rustyhorde/libsodium,pmienk/libsodium,Payshares/libsodium,eburkitt/libsodium,rustyhorde/libsodium,pmienk/libsodium
e7ea97c272f62f4a66a11831191bcdc1f3af03fb
examples/dist/prob.c
examples/dist/prob.c
#include <assert.h> #include <inform/dist.h> #include <math.h> int main() { inform_dist *dist = inform_dist_create((uint32_t[4]){3, 0, 1, 2}, 4); assert(abs(inform_dist_prob(dist, 0) - 0.5) < 1e-6); assert(abs(inform_dist_prob(dist, 1) - 0.0) < 1e-6); assert(abs(inform_dist_prob(dist, 2) - 0.1666...
#include <assert.h> #include <inform/dist.h> #include <math.h> int main() { inform_dist *dist = inform_dist_create((uint32_t[4]){3, 0, 1, 2}, 4); assert(fabs(inform_dist_prob(dist, 0) - 0.5) < 1e-6); assert(fabs(inform_dist_prob(dist, 1) - 0.0) < 1e-6); assert(fabs(inform_dist_prob(dist, 2) - 0.1...
Fix example build under clang
Fix example build under clang
C
mit
dglmoore/Inform,ELIFE-ASU/Inform,ELIFE-ASU/Inform,dglmoore/Inform
f00bfc8fa7c73e6c58dc71d2da4555ce1712aef4
compat/compat.h
compat/compat.h
#ifndef COMPAT_H #define COMPAT_H #ifndef HAVE_PLEDGE #include "pledge.h" #endif #ifndef HAVE_STRTONUM #include "strtonum.h" #endif #ifndef timespecsub #define timespecsub(tsp, usp, vsp) \ do { \ (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \ (vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \ i...
#ifndef COMPAT_H #define COMPAT_H #ifndef HAVE_PLEDGE #include "pledge.h" #endif #ifndef HAVE_STRTONUM #include "strtonum.h" #endif /* Use CLOCK_REALTIME if CLOCK_MONOTONIC is not available */ #ifndef CLOCK_MONOTONIC #define CLOCK_MONOTONIC CLOCK_REALTIME #endif #ifndef timespecsub #define timespecsub(tsp, usp, vsp...
Use CLOCK_REALTIME if CLOCK_MONOTONIC is not available.
Use CLOCK_REALTIME if CLOCK_MONOTONIC is not available.
C
bsd-2-clause
ansilove/ansilove,ansilove/AnsiLove-C
e038cf04e9edcc2286dc180aa1ab9fe517c81990
test/PCH/modified-header-error.c
test/PCH/modified-header-error.c
// RUN: mkdir -p %t.dir // RUN: echo '#include "header2.h"' > %t.dir/header1.h // RUN: echo > %t.dir/header2.h // RUN: cp %s %t.dir/t.c // RUN: %clang_cc1 -x c-header %t.dir/header1.h -emit-pch -o %t.pch // RUN: sleep 2 // RUN: echo >> %t.dir/header2.h // RUN: %clang_cc1 %t.dir/t.c -include-pch %t.pch -fsyntax-only 2>&...
// RUN: mkdir -p %t.dir // RUN: echo '#include "header2.h"' > %t.dir/header1.h // RUN: echo > %t.dir/header2.h // RUN: cp %s %t.dir/t.c // RUN: %clang_cc1 -x c-header %t.dir/header1.h -emit-pch -o %t.pch // RUN: echo >> %t.dir/header2.h // RUN: %clang_cc1 %t.dir/t.c -include-pch %t.pch -fsyntax-only 2>&1 | FileCheck %s...
Disable this test on win32. My "sleep 2" trick didn't seem to work
Disable this test on win32. My "sleep 2" trick didn't seem to work git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@139729 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/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,apple/swift-clang,llvm-mirror/cl...
5455d6710ff4f627858ddeac6bf169695ebd7f4b
src/ofxSocketIO.h
src/ofxSocketIO.h
// // ofxSocketIO.h // // Created by hugohil on 05/02/16. // // #pragma once #include "ofMain.h" #include "ofEvents.h" #if defined(_MSC_VER) || defined(_WIN32) || defined(WIN32) || defined(__MINGW32__) // Windows stuff #else // Linux and OSX here #include <sio_client.h> #endif #include "ofxSocketIOData.h" cla...
// // ofxSocketIO.h // // Created by hugohil on 05/02/16. // // #pragma once #include "ofMain.h" #include "ofEvents.h" #if defined(_MSC_VER) || defined(_WIN32) || defined(WIN32) || defined(__MINGW32__) // Windows stuff #else // Linux and OSX here #include <sio_client.h> #endif #include "ofxSocketIOData.h" cla...
Set currentStatus public and add default value
Set currentStatus public and add default value
C
mit
soixantecircuits/ofxSocketIO,soixantecircuits/ofxSocketIO
3c7b73f39d31cddf1c2126e1d3e25fd8c9708235
src/vast/access.h
src/vast/access.h
#ifndef VAST_ACCESS_H #define VAST_ACCESS_H namespace vast { /// Wrapper to encapsulate the implementation of concepts requiring access to /// private state. struct access { template <typename, typename = void> struct state; template <typename, typename = void> struct parsable; template <typename, typenam...
#ifndef VAST_ACCESS_H #define VAST_ACCESS_H namespace vast { /// Wrapper to encapsulate the implementation of concepts requiring access to /// private state. struct access { template <typename, typename = void> struct state; template <typename, typename = void> struct parser; template <typename, typename ...
Add traits for befriendable concepts.
Add traits for befriendable concepts.
C
bsd-3-clause
pmos69/vast,mavam/vast,pmos69/vast,mavam/vast,vast-io/vast,vast-io/vast,vast-io/vast,pmos69/vast,vast-io/vast,vast-io/vast,mavam/vast,mavam/vast,pmos69/vast
0f39bae64c385bd61ff7fb52d11be70545270b7c
c_src/hash.c
c_src/hash.c
#include "erl_nif.h" #include <sodium.h> #include "hash.h" ERL_NIF_TERM enacl_crypto_hash_nif(ErlNifEnv *env, int argc, ERL_NIF_TERM const argv[]) { ErlNifBinary input; ErlNifBinary result; ERL_NIF_TERM ret; if ((argc != 1) || (!enif_inspect_iolist_as_binary(env, argv[0], ...
#include "erl_nif.h" #include <sodium.h> #include "hash.h" ERL_NIF_TERM enacl_crypto_hash(ErlNifEnv *env, int argc, ERL_NIF_TERM const argv[]) { ErlNifBinary input; ErlNifBinary result; ERL_NIF_TERM ret; if ((argc != 1) || (!enif_inspect_iolist_as_binary(env, argv[0], &input))...
Fix name of C function
Fix name of C function The name of the generichash function was wrong, so it was not possible to find it when loading the NIF.
C
mit
jlouis/enacl,jlouis/enacl
b0cc4feff6ca7ac2015a44dd36506de77023b798
src/tests/log_mock.c
src/tests/log_mock.c
#include "log.h" #include <stdio.h> void debug(const char* format, ...) { #ifdef __DEBUG__ vprintf(format, args); #endif // __DEBUG__ } void initializeLogging() { }
#include "log.h" #include <stdio.h> #include <stdarg.h> void debug(const char* format, ...) { #ifdef __DEBUG__ va_list args; va_start(args, format); vprintf(format, args); va_end(args); #endif // __DEBUG__ } void initializeLogging() { }
Fix debugging printouts when running tests.
Fix debugging printouts when running tests.
C
bsd-3-clause
openxc/vi-firmware,ene-ilies/vi-firmware,mgiannikouris/vi-firmware,mgiannikouris/vi-firmware,mgiannikouris/vi-firmware,mgiannikouris/vi-firmware,ene-ilies/vi-firmware,openxc/vi-firmware,openxc/vi-firmware,ene-ilies/vi-firmware,ene-ilies/vi-firmware,openxc/vi-firmware
00e9ca7148936b16b9547f71b1c9501d41f7f034
include/llvm/System/Signals.h
include/llvm/System/Signals.h
//===- llvm/System/Signals.h - Signal Handling support ----------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===--------...
//===- llvm/System/Signals.h - Signal Handling support ----------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===--------...
Make the remove*OnSignal functions deal with Paths not strings
Make the remove*OnSignal functions deal with Paths not strings git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@17761 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
dslab-epfl/asap,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbyma...
0db943cf12894cf4342618655a8a3adfbb638984
src/builder.c
src/builder.c
#include "builder.h" #include "entity/board.h" /** * A small board has 4 cells, and its layout is a square. * 1 ----- 2 * | | * | | * | | * 4 ----- 3 */ int builder_create_small_board(s_board *b) { int c; uint8_t nb_max_players; nb_max_players = 4; init_board(b, SMALL_BOARD_NB_CELLS, nb_m...
#include "builder.h" #include "entity/board.h" /** * A small board has 4 cells, and its layout is a square. * 1 ----- 2 * | | * | | * | | * 4 ----- 3 */ int builder_create_small_board(s_board *b) { int c; uint8_t nb_max_players; nb_max_players = 2; init_board(b, SMALL_BOARD_NB_CELLS, nb_m...
Revert "players number changed, for some tests"
Revert "players number changed, for some tests" This reverts commit 90457a3c218b08da4eeb4e9c6907b909878290f5.
C
mit
padawin/Conqueror
d368da32d1b7d1c062229aa737be96775b0fae25
webkit/glue/webkit_constants.h
webkit/glue/webkit_constants.h
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_ #define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_ namespace webkit_glue { // Chromium sets the minimum interval timeou...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_ #define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_ namespace webkit_glue { // Chromium sets the minimum interval timeou...
Increase the minimum interval for timers on background tabs to reduce their CPU consumption.
Increase the minimum interval for timers on background tabs to reduce their CPU consumption. The new interval is 1000 ms, or once per second. We can easily adjust this value up or down, but this seems like a reasonable value to judge the compatibility impact of this change. BUG=66078 TEST=none (tested manually with m...
C
bsd-3-clause
wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser
d4ebaf57f5b06163889b6eaf986f430f6f50cb2b
tools/emulator/non_interactive.c
tools/emulator/non_interactive.c
// // Copyright 2011-2012 Jeff Bush // // 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 agr...
// // Copyright 2011-2012 Jeff Bush // // 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 agr...
Increase instruction count in emulator
Increase instruction count in emulator
C
apache-2.0
hoangt/NyuziProcessor,jbush001/NyuziProcessor,FulcronZ/NyuziProcessor,FulcronZ/NyuziProcessor,hoangt/NyuziProcessor,hoangt/NyuziProcessor,hoangt/NyuziProcessor,jbush001/NyuziProcessor,jbush001/NyuziProcessor,FulcronZ/NyuziProcessor,jbush001/NyuziProcessor,FulcronZ/NyuziProcessor,jbush001/NyuziProcessor,jbush001/NyuziPr...
876bc2c9a54c59dd75d18e7292dc3aedc9ea5f8b
src/bindings/python/helpers/exceptions.h
src/bindings/python/helpers/exceptions.h
/*ckwg +5 * Copyright 2012 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #ifndef VISTK_PYTHON_HELPERS_EXCEPTIONS_H #define VISTK_PYTHON_HELPERS_EXCEPTIONS_H #define ...
/*ckwg +5 * Copyright 2012 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #ifndef VISTK_PYTHON_HELPERS_EXCEPTIONS_H #define VISTK_PYTHON_HELPERS_EXCEPTIONS_H /// \tod...
Add a todo for more useful Python exception output
Add a todo for more useful Python exception output
C
bsd-3-clause
mathstuf/sprokit,Kitware/sprokit,mathstuf/sprokit,linus-sherrill/sprokit,linus-sherrill/sprokit,Kitware/sprokit,linus-sherrill/sprokit,Kitware/sprokit,linus-sherrill/sprokit,mathstuf/sprokit,mathstuf/sprokit,Kitware/sprokit
22a40259343115f241456b6914e86c32ab1e3e46
include/semantic.h
include/semantic.h
#ifndef SCC_SEMANTIC_HEADER #define SCC_SEMANTIC_HEADER #include <stdio.h> #include "syntax.h" #include "symboltable.h" int semantic_analysis(Syntax * top_level); #endif
#ifndef SCC_SEMANTIC_HEADER #define SCC_SEMANTIC_HEADER #include <stdio.h> #include <stdbool.h> #include "syntax.h" #include "symboltable.h" bool semantic_analysis(Syntax * top_level); #endif
Change the return type to bool.
Change the return type to bool.
C
mit
RyanWangGit/scc
ab77d5e6475c9dbbce0b4fe4068025627df19291
lib/RStore-utils.h
lib/RStore-utils.h
#ifndef RSTORE_UITLS_H #define RSTORE_UITLS_H #include <RStore.h> #include <ParsedRStore.h> RS_RStore RS_lowerRStore(PRS_RStore store); #endif
#ifndef RSTORE_UITLS_H #define RSTORE_UITLS_H #include <RStore.h> #include <ParsedRStore.h> RS_RStore RS_lowerRStore(PRS_RStore store); PRS_RStore RS_liftRStore(RS_RStore store); #endif
Add declaration of lift function
Add declaration of lift function
C
bsd-3-clause
cwi-swat/relation-stores,cwi-swat/relation-stores,cwi-swat/relation-stores
0793e936d6a57c1bb8ca723b06b3e0c762e52f80
src/main/native/macros.h
src/main/native/macros.h
// Copyright 2014 Google Inc. 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 ...
// Copyright 2014 Google Inc. 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 ...
Allow external contributions on src/main/native
Allow external contributions on src/main/native -- MOS_MIGRATED_REVID=90050516
C
apache-2.0
nkhuyu/bazel,bitemyapp/bazel,hhclam/bazel,mikelikespie/bazel,charlieaustin/bazel,snnn/bazel,mikelalcon/bazel,variac/bazel,juhalindfors/bazel-patches,asarazan/bazel,vt09/bazel,kidaa/bazel,xindaya/bazel,Ansahmadiba/bazel,zhexuany/bazel,iamthearm/bazel,joshua0pang/bazel,zhexuany/bazel,murugamsm/bazel,damienmg/bazel,kamalm...
41c4f531895fdaa62972e84d282c95e7fee93f67
SwiftyHTTP/SwiftyHTTP.h
SwiftyHTTP/SwiftyHTTP.h
// // SwiftyHTTP.h // SwiftyHTTP // // Created by Helge Hess on 6/25/14. // Copyright (c) 2014 Always Right Institute. All rights reserved. // #import <Cocoa/Cocoa.h> //! Project version number for SwiftyHTTP. FOUNDATION_EXPORT double SwiftyHTTPVersionNumber; //! Project version string for SwiftyHTTP. FOUNDATION...
// // SwiftyHTTP.h // SwiftyHTTP // // Created by Helge Hess on 6/25/14. // Copyright (c) 2014 Always Right Institute. All rights reserved. // #import <Cocoa/Cocoa.h> //! Project version number for SwiftyHTTP. FOUNDATION_EXPORT double SwiftyHTTPVersionNumber; //! Project version string for SwiftyHTTP. FOUNDATION...
Include http_parser.h from the right spot (public header copied to framework headers)
Include http_parser.h from the right spot (public header copied to framework headers)
C
mit
AlwaysRightInstitute/SwiftyHTTP,maxadamski/SwiftyHTTP,AlwaysRightInstitute/SwiftyHTTP,maxadamski/SwiftyHTTP
00bec89d716bed1ab1e7846f5fb53d1e4986917c
src/imap/cmd-close.c
src/imap/cmd-close.c
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */ #include "common.h" #include "commands.h" #include "imap-expunge.h" bool cmd_close(struct client_command_context *cmd) { struct client *client = cmd->client; struct mailbox *mailbox = client->mailbox; struct mail_storage *storage; if (!...
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */ #include "common.h" #include "commands.h" #include "imap-expunge.h" bool cmd_close(struct client_command_context *cmd) { struct client *client = cmd->client; struct mailbox *mailbox = client->mailbox; struct mail_storage *storage; if (!...
Synchronize the mailbox after expunging messages to actually get them expunged.
CLOSE: Synchronize the mailbox after expunging messages to actually get them expunged.
C
mit
LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot
4f58adc9a99104feebbc98b4691a7aa461d0016b
ports/terracoin/files/patch-src_txmempool.h
ports/terracoin/files/patch-src_txmempool.h
--- src/txmempool.h.orig 2018-01-11 20:38:04 UTC +++ src/txmempool.h @@ -241,7 +241,7 @@ public: class CompareTxMemPoolEntryByScore { public: - bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) + bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const { double ...
--- src/txmempool.h.orig 2018-01-11 20:38:04 UTC +++ src/txmempool.h @@ -204,7 +204,7 @@ struct mempoolentry_txid class CompareTxMemPoolEntryByDescendantScore { public: - bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) + bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) co...
Fix build for boost 1.66
Fix build for boost 1.66
C
bsd-2-clause
tuaris/FreeBSD-Coin-Ports,tuaris/FreeBSD-Coin-Ports,tuaris/FreeBSD-Coin-Ports
572c399cc06597282e7192da7e30db7fb4b031a4
src/data/dataset.h
src/data/dataset.h
#pragma once #include "common/definitions.h" #include "data/batch.h" #include "data/rng_engine.h" #include "data/vocab.h" #include "training/training_state.h" namespace marian { namespace data { template <class Sample, class Iterator, class Batch> class DatasetBase { protected: // Data processing may differ in tra...
#pragma once #include "common/definitions.h" #include "data/batch.h" #include "data/rng_engine.h" #include "data/vocab.h" #include "training/training_state.h" namespace marian { namespace data { template <class Sample, class Iterator, class Batch> class DatasetBase { protected: // Data processing may differ in tra...
Check if options is nullptr in DatasetBase
Check if options is nullptr in DatasetBase
C
mit
emjotde/amunmt,marian-nmt/marian-train,emjotde/Marian,emjotde/amunn,amunmt/marian,amunmt/marian,marian-nmt/marian-train,emjotde/amunmt,emjotde/amunn,emjotde/Marian,amunmt/marian,marian-nmt/marian-train,marian-nmt/marian-train,emjotde/amunmt,emjotde/amunn,emjotde/amunmt,marian-nmt/marian-train,emjotde/amunn
83bf5a83b9296d6fe16e55d2c54209c35d2fa20b
test/test_mutex.c
test/test_mutex.c
/* This file is part of the YAZ toolkit. * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. */ #include <stdlib.h> #include <stdio.h> #include <yaz/mutex.h> #include <yaz/test.h> #include <yaz/log.h> static void tst(void) { YAZ_MUTEX p = 0; yaz_mutex_create(&p); YAZ_CHECK(p); ...
/* This file is part of the YAZ toolkit. * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. */ #include <stdlib.h> #include <stdio.h> #include <yaz/mutex.h> #include <yaz/test.h> #include <yaz/log.h> static void tst(void) { YAZ_MUTEX p = 0; yaz_mutex_create(&p); YAZ_CHECK(p); ...
Add one call to yaz_mutex_destroy in test
Add one call to yaz_mutex_destroy in test
C
bsd-3-clause
nla/yaz,dcrossleyau/yaz,nla/yaz,dcrossleyau/yaz,nla/yaz,nla/yaz,dcrossleyau/yaz
f80e44e09a5669c6275880b8250346faca1c895a
include/gen.h
include/gen.h
#ifndef _GEN_H #define _GEN_H #define MAKEFILE "Makefile" #include <fstream> #include <sys/param.h> class Generate { public: char cwd[MAXPATHLEN]; const char *defaultMakefile; FILE *Makefile; FILE *newConfig; Generate(); ~Generate(); char *DefineBaseDir(); void WriteMake(); void GenBlankConfig(); void Chec...
#ifndef _GEN_H #define _GEN_H #define MAKEFILE "Makefile" #define FS_NONE 0 #define FS_RECURSIVE (1 << 0) #define FS_DEFAULT FS_RECURSIVE #define FS_FOLLOWLINK (1 << 1) #define FS_DOTFILES (1 << 2) #define FS_MATCHDIRS (1 << 3) #include <regex.h> #include <unistd.h> #include <sys/param.h> #include <fstream> class Ge...
Add FS defines, move includes, add member functions
Add FS defines, move includes, add member functions - Defines define flags for WalkDir - Fix includes order to that of: C includes C++ includes Project includes External library includes Signed-off-by: Alberto Corona <c1a4158909d6c23f73df353c7cc0bbe963891a65@0x1a.us>
C
bsd-3-clause
0X1A/yabs,0X1A/yabs,0X1A/yabs,0X1A/yabs
ce1e00ffe08ac93999ac87a1308096fa0a3e3673
SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocol.h
SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocol.h
// SDLSmartDeviceLinkProtocol.h // #import "SDLAbstractProtocol.h" @class SDLProtocolHeader; @class SDLProtocolRecievedMessageRouter; @interface SDLProtocol : SDLAbstractProtocol <SDLProtocolListener> // Sending - (void)sendStartSessionWithType:(SDLServiceType)serviceType; - (void)sendEndSessionWithType:(SDLServic...
// SDLSmartDeviceLinkProtocol.h // #import "SDLAbstractProtocol.h" @class SDLProtocolHeader; @class SDLProtocolRecievedMessageRouter; @interface SDLProtocol : SDLAbstractProtocol <SDLProtocolListener> // Sending - (void)sendStartSessionWithType:(SDLServiceType)serviceType; - (void)sendEndSessionWithType:(SDLServic...
Remove the public sendHeartbeat declaration
Remove the public sendHeartbeat declaration
C
bsd-3-clause
FordDev/sdl_ios,davidswi/sdl_ios,duydb2/sdl_ios,kshala-ford/sdl_ios,smartdevicelink/sdl_ios,APCVSRepo/sdl_ios,APCVSRepo/sdl_ios,duydb2/sdl_ios,APCVSRepo/sdl_ios,FordDev/sdl_ios,davidswi/sdl_ios,FordDev/sdl_ios,kshala-ford/sdl_ios,smartdevicelink/sdl_ios,kshala-ford/sdl_ios,smartdevicelink/sdl_ios,davidswi/sdl_ios,kshal...
67ecca456198488c4fd19d237d7387a80b494421
include/Graphics.h
include/Graphics.h
#ifndef INCLUDE_GRAPHICS_H #define INCLUDE_GRAPHICS_H namespace WalrusRPG { namespace Graphics { typedef struct Rect Rect_t; struct Rect { int x, y; unsigned w, h; }; /* * Buffer management */ void buffer_allocate(); void buf...
#ifndef INCLUDE_GRAPHICS_H #define INCLUDE_GRAPHICS_H namespace WalrusRPG { namespace Graphics { typedef struct Rect Rect_t; struct Rect { int x, y; int w, h; }; /* * Buffer management */ void buffer_allocate(); void buffer_f...
Fix sprite clipping by using signed rect width
Fix sprite clipping by using signed rect width
C
mit
WalrusRPG/WalrusRPG,WalrusRPG/WalrusRPG,WalrusRPG/WalrusRPG,WalrusRPG/WalrusRPG
9e9081110bd7b2390c27247f32379b58501143de
src/dsnotificationinterface.h
src/dsnotificationinterface.h
// Copyright (c) 2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_DSNOTIFICATIONINTERFACE_H #define BITCOIN_DSNOTIFICATIONINTERFACE_H #include "validationinterface.h" class CDSNo...
// Copyright (c) 2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_DSNOTIFICATIONINTERFACE_H #define BITCOIN_DSNOTIFICATIONINTERFACE_H #include "validationinterface.h" class CDSNo...
Add override keywork to CDSNotificationInterface::NotifyChainLock
Add override keywork to CDSNotificationInterface::NotifyChainLock
C
mit
nmarley/dash,dashpay/dash,ionomy/ion,nmarley/dash,thelazier/dash,nmarley/dash,dashpay/dash,nmarley/dash,UdjinM6/dash,thelazier/dash,ionomy/ion,ionomy/ion,ionomy/ion,dashpay/dash,nmarley/dash,ionomy/ion,UdjinM6/dash,thelazier/dash,UdjinM6/dash,nmarley/dash,ionomy/ion,UdjinM6/dash,dashpay/dash,thelazier/dash,thelazier/da...
7c8e66c785b1188687b3eb0363ae52c0cdc898ec
src/opticon-agent/probes.c
src/opticon-agent/probes.c
#include <sys/utsname.h> #include <libopticonf/var.h> #include "probes.h" /** List of built-in probe functions */ builtinfunc BUILTINS[] = { {"probe_pcpu", runprobe_pcpu}, {"probe_hostname", runprobe_hostname}, {"probe_uname", runprobe_uname}, {NULL, NULL} }; var *runprobe_pcpu (probe *self) { var...
#include <sys/utsname.h> #include <unistd.h> #include <libopticonf/var.h> #include "probes.h" /** List of built-in probe functions */ builtinfunc BUILTINS[] = { {"probe_pcpu", runprobe_pcpu}, {"probe_hostname", runprobe_hostname}, {"probe_uname", runprobe_uname}, {NULL, NULL} }; var *runprobe_pcpu (pr...
Make the hostname probe for real
Make the hostname probe for real
C
apache-2.0
CloudVPS/opticon,CloudVPS/opticon,CloudVPS/opticon
348d46bd97e8fb2432685d931210b72827060b5d
sbr/m_name.c
sbr/m_name.c
/* * m_name.c -- return a message number as a string * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ #include <limits.h> #include <h/mh.h> #define STR(s) #s #define SIZE(n) (sizeof STR(n...
/* * m_name.c -- return a message number as a string * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ #include <limits.h> #include <h/mh.h> #define STR(s) #s #define SIZE(n) (sizeof STR(n...
Use the imperfect snprintf(3) instead of sprintf(3).
Use the imperfect snprintf(3) instead of sprintf(3).
C
bsd-3-clause
mcr/nmh,mcr/nmh
81b82f44a2350144bb49c52f1b11a9cfc84da0cd
ui/options.h
ui/options.h
#pragma once #include <QtWidgets/QComboBox> #include <QtWidgets/QDialog> #include <QtWidgets/QLabel> #include <QtCore/QObject> #include <QtCore/QString> #include <QtWidgets/QTabWidget> #include <QtWidgets/QWidget> #include "binaryninjaapi.h" #include "viewtype.h" #include "filecontext.h" #include <string> #include <t...
#pragma once #include <QtWidgets/QComboBox> #include <QtWidgets/QDialog> #include <QtWidgets/QLabel> #include <QtCore/QObject> #include <QtCore/QString> #include <QtWidgets/QTabWidget> #include <QtWidgets/QWidget> #include "binaryninjaapi.h" #include "viewtype.h" #include "filecontext.h" #include <string> #include <t...
Move OptionsDialog::queryViewTypes into public bool method
Move OptionsDialog::queryViewTypes into public bool method Fixes #2856
C
mit
Vector35/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api
7761f46e8e6cb1bf8fc11c3df7a6b93d1cbe41bf
simple_module.c
simple_module.c
#include "mruby.h" #include "mruby/irep.h" #include "mruby/string.h" #include "simple_module_mrb.h" static mrb_value foo_bar(mrb_state* mrb, mrb_value obj) { mrb_value message; mrb_get_args(mrb, "o", &message); if (!mrb_nil_p(message)) { fprintf(stderr, "bar: %s\n", mrb_str_ptr(message)->ptr); } ret...
#include "mruby.h" #include "mruby/irep.h" #include "mruby/string.h" #include "simple_module_mrb.h" static mrb_value foo_bar(mrb_state* mrb, mrb_value obj) { mrb_value message; mrb_get_args(mrb, "S", &message); if (!mrb_nil_p(message)) { fprintf(stderr, "bar: %s\n", mrb_str_ptr(message)->ptr); } ret...
Change object to string input
Change object to string input
C
mit
carsonmcdonald/mruby-c-example,carsonmcdonald/mruby-c-example,carsonmcdonald/mruby-c-example
9c00e4c82100cf773abe21a5209b80fe67c22064
src/config.h
src/config.h
#ifndef _CONFIG_H #define _CONFIG_H #define ENABLE_FUTILITY_DEPTH 4 #define ENABLE_HISTORY 1 #define ENABLE_KILLERS 1 #define ENABLE_LMR 1 #define ENABLE_NNUE 0 #define ENABLE_NNUE_SIMD 0 #define ENABLE_NULL_MOVE_PRUNING 1 #define ENABLE_REVERSE_FUTILITY_DEPTH 4 #define ENABLE_SEE_Q_PRUNE_LOSING_CAPTURES 1 #define ENA...
#ifndef _CONFIG_H #define _CONFIG_H #define ENABLE_FUTILITY_DEPTH 4 #define ENABLE_HISTORY 1 #define ENABLE_KILLERS 1 #define ENABLE_LMR 1 #define ENABLE_NNUE 0 #define ENABLE_NNUE_SIMD 0 #define ENABLE_NULL_MOVE_PRUNING 1 #define ENABLE_REVERSE_FUTILITY_DEPTH 4 #define ENABLE_SEE_Q_PRUNE_LOSING_CAPTURES 1 #define ENA...
Enable more time on aspiration failure
Enable more time on aspiration failure
C
bsd-3-clause
jwatzman/nameless-chessbot,jwatzman/nameless-chessbot
97141b968258e9213c77bf3dcd481bdbb3b9e832
Framework/Cocoa3D/C3DObject.h
Framework/Cocoa3D/C3DObject.h
// // C3DObject.h // Cocoa3D // // Created by Brent Gulanowski on 2014-07-11. // Copyright (c) 2014 Lichen Labs. All rights reserved. // #import <Foundation/Foundation.h> #import <Cocoa3D/C3DCamera.h> @class C3DIndexBuffer, C3DNode, C3DProgram, C3DVertexBuffer; @interface C3DObject : NSObject<C3DVisible> @prop...
// // C3DObject.h // Cocoa3D // // Created by Brent Gulanowski on 2014-07-11. // Copyright (c) 2014 Lichen Labs. All rights reserved. // #import <Foundation/Foundation.h> #import <Cocoa3D/C3DCamera.h> @class C3DIndexBuffer, C3DNode, C3DProgram, C3DVertexBuffer; @interface C3DObject : NSObject<C3DVisible> @prop...
Add "name" property for convenience.
Add "name" property for convenience.
C
mit
bgulanowski/Cocoa3D
65f1b0993cd2c45a90c0f54b3f47d3f5148bfe11
src/lib/ldm.h
src/lib/ldm.h
/* * This file is part of linux-driver-management. * * Copyright © 2016-2017 Ikey Doherty * * linux-driver-management 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 ...
/* * This file is part of linux-driver-management. * * Copyright © 2016-2017 Ikey Doherty * * linux-driver-management 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 ...
Include DmiDevice as part of global includes
Include DmiDevice as part of global includes Signed-off-by: Ikey Doherty <d8d992cf0016e35c2a8339d5e7d44bebd12a2d77@solus-project.com>
C
lgpl-2.1
solus-project/linux-driver-management,solus-project/linux-driver-management
cdeb97c03824cdefeaa617800c033c0c03ee5902
include/pangolin/utils/memstreambuf.h
include/pangolin/utils/memstreambuf.h
#pragma once #include <streambuf> #include <vector> namespace pangolin { // A simple streambuf wrapper around std::vector for memory buffer use struct memstreambuf : public std::streambuf { public: memstreambuf(size_t initial_buffer_size) { buffer.reserve(initial_buffer_size); } size_t size(...
#pragma once #include <streambuf> #include <vector> namespace pangolin { // A simple streambuf wrapper around std::vector for memory buffer use struct memstreambuf : public std::streambuf { public: memstreambuf(size_t initial_buffer_size) { buffer.reserve(initial_buffer_size); } // Avoiding ...
Fix for old GCC compilers. Avoid trying to use std::streambuf's move constructor
Fix for old GCC compilers. Avoid trying to use std::streambuf's move constructor
C
mit
mp3guy/Pangolin,tschmidt23/Pangolin,mp3guy/Pangolin,stevenlovegrove/Pangolin,renzodenardi/Pangolin,tschmidt23/Pangolin,mp3guy/Pangolin,tschmidt23/Pangolin,renzodenardi/Pangolin,stevenlovegrove/Pangolin,stevenlovegrove/Pangolin
924b003200d2d2a34a4903c074399a862e1c777d
examples/c/test_plend.c
examples/c/test_plend.c
/* $Id$ plend and plend1 testing demo. */ #include "plcdemos.h" /*--------------------------------------------------------------------------*\ * main * * Demonstrates absolute positioning of graphs on a page. \*--------------------------------------------------------------------------*/ int main(int argc, const...
/* $Id$ plend and plend1 testing demo. */ #include "plcdemos.h" /*--------------------------------------------------------------------------*\ * main * * Demonstrates absolute positioning of graphs on a page. \*--------------------------------------------------------------------------*/ int main(int argc, const...
Change from plend1 to plend to generate errors for devices that have trouble for that case.
Change from plend1 to plend to generate errors for devices that have trouble for that case. svn path=/trunk/; revision=10350
C
lgpl-2.1
FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot
73660f725a7479d33f5ebb1517608e4d4c9fb103
include/support/android/locale_bionic.h
include/support/android/locale_bionic.h
// -*- C++ -*- //===------------------- support/android/locale_bionic.h ------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===-------------------------...
// -*- C++ -*- //===------------------- support/android/locale_bionic.h ------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===-------------------------...
Stop using __strtonum_fallback on Android.
Stop using __strtonum_fallback on Android. Fallback implementations are now provided by bionic when necessary, which these may conflict with. git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@324534 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx
887f4b189d1b0e1e4e61f5f4cffc3be395cd12b6
hittop/parser/success.h
hittop/parser/success.h
// DESCRIPTION // #ifndef HITTOP_PARSER_SUCCESS_H #define HITTOP_PARSER_SUCCESS_H #include <iterator> #include "hittop/parser/parser.h" namespace hittop { namespace parser { struct Success {}; // Always succeed, consuming no input. template <> class Parser<Success> { template <typename Range> auto operator()(c...
// DESCRIPTION // #ifndef HITTOP_PARSER_SUCCESS_H #define HITTOP_PARSER_SUCCESS_H #include <iterator> #include "hittop/parser/parser.h" namespace hittop { namespace parser { struct Success {}; // Always succeed, consuming no input. template <> class Parser<Success> { public: template <typename Range> auto oper...
Fix bug: Parser<Success>::operator() was not public
Fix bug: Parser<Success>::operator() was not public
C
apache-2.0
hittop/hittop,hittop/hittop
9b352efa3cfbd20e0f1b63fd073ba440810c0223
ELF/ScriptParser.h
ELF/ScriptParser.h
//===- ScriptParser.h -------------------------------------------*- C++ -*-===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------...
//===- ScriptParser.h -------------------------------------------*- C++ -*-===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------...
Fix build failure from r265600
[lld] Fix build failure from r265600 git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@265603 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/lld,llvm-mirror/lld
a40390e142aaf9796ae3fd219e3aabdcda8ee096
src/readstat_malloc.c
src/readstat_malloc.c
#include <stdlib.h> #define MAX_MALLOC_SIZE (1<<20) /* One megabyte ought to be enough for anyone */ void *readstat_malloc(size_t len) { if (len > MAX_MALLOC_SIZE || len == 0) { return NULL; } return malloc(len); } void *readstat_calloc(size_t count, size_t size) { if (count > MAX_MALLOC_SIZE...
#include <stdlib.h> #define MAX_MALLOC_SIZE (1<<20) /* One megabyte ought to be enough for anyone */ void *readstat_malloc(size_t len) { if (len > MAX_MALLOC_SIZE || len == 0) { return NULL; } return malloc(len); } void *readstat_calloc(size_t count, size_t size) { if (count > MAX_MALLOC_SIZE...
Check readstat_calloc for 0-sized input
Check readstat_calloc for 0-sized input
C
mit
WizardMac/ReadStat,WizardMac/ReadStat
d192eda9cf103f88468acdf40dc77114d30bde67
lib/src/lib.c
lib/src/lib.c
// The Tree-sitter runtime library can be built by compiling this // one source file. // // The following directories must be added to the include path: // - src // - include // - externals/utf8proc #include "./get_changed_ranges.c" #include "./language.c" #include "./lexer.c" #include "./node.c" #include "./par...
// The Tree-sitter library can be built by compiling this one source file. // // The following directories must be added to the include path: // - src // - include // - externals/utf8proc #include "./get_changed_ranges.c" #include "./language.c" #include "./lexer.c" #include "./node.c" #include "./parser.c" #inc...
Remove stray word 'runtime' from comment
Remove stray word 'runtime' from comment
C
mit
tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter
920e161a029d38c78042221415d036d7a6e631c5
apply-rules.c
apply-rules.c
#include "gc.h" #include "tree.h" #include "dict.h" #include "match.h" #include "optimize.h" /* We recursively iterate through all * rules on all the children of the tree * until the expression is irreducible, * i.e. stops changing. * * Also, we (try to) apply the optimization * routine. */ int apply_rules...
#include "gc.h" #include "tree.h" #include "dict.h" #include "match.h" #include "optimize.h" /* * We recursively iterate through all * rules on all the children of the tree * until the expression is irreducible, * i.e. stops changing. * * Also, we (try to) apply the optimization * routine. */ int apply_rules...
Change indent and comments to a more readable style
Change indent and comments to a more readable style
C
mit
bl0ckeduser/symdiff,bl0ckeduser/symdiff,bl0ckeduser/symdiff
39f8ed0f2b1ef5d3e8572bc74f2fbe0a153e74ce
core/thread/inc/TSpinMutex.h
core/thread/inc/TSpinMutex.h
#include <atomic> namespace ROOT { /// A spin mutex class which respects the STL interface. class TSpinMutex { public: TSpinMutex() noexcept {} TSpinMutex(const TSpinMutex&) = delete; TSpinMutex( TSpinMutex && ) = delete; ~TSpinMutex(){} void lock(){while (fAFlag.test_and_set(std...
#ifndef ROOT_TSpinMutex #define ROOT_TSpinMutex #include <atomic> namespace ROOT { /// A spin mutex class which respects the STL interface. class TSpinMutex { public: TSpinMutex() = default; TSpinMutex(const TSpinMutex&) = delete; ~TSpinMutex(){} TSpinMutex& operator=(const TSpinMutex...
Make class more C++11 compliant
Make class more C++11 compliant o Do not delete move ctor o Mark ctor as default o Delete the assignment operator (as in std::mutex) Add also include guards.
C
lgpl-2.1
davidlt/root,BerserkerTroll/root,georgtroska/root,karies/root,agarciamontoro/root,root-mirror/root,simonpf/root,thomaskeck/root,thomaskeck/root,agarciamontoro/root,satyarth934/root,BerserkerTroll/root,beniz/root,karies/root,BerserkerTroll/root,mhuwiler/rootauto,gbitzes/root,satyarth934/root,mhuwiler/rootauto,beniz/root...
0bf7ca7b7d2b7635f8f45bf19ea895ae17add94e
R2Bot/include/Config.h
R2Bot/include/Config.h
#ifndef _R2BOT_CONFIG #define _R2BOT_CONFIG #define _WINSOCK_DEPRECATED_NO_WARNINGS // Logging #ifndef LOGGING # define LOGGING 0 #endif // Define / undefine these for your own use #define USE_KINECT1 #define USE_KINECT2 #define USE_MOTORS #define USE_ULTRASONIC #define USE_R2SERVER #endif
#ifndef _R2BOT_CONFIG #define _R2BOT_CONFIG #define _WINSOCK_DEPRECATED_NO_WARNINGS // Define / undefine these for your own use #define USE_KINECT1 #define USE_KINECT2 #define USE_MOTORS #define USE_ULTRASONIC #define USE_R2SERVER #endif
Remove logging definition from config
Remove logging definition from config
C
mit
cornell-cup/cs-r2bot2,cornell-cup/cs-r2bot2,cornell-cup/cs-r2bot2,cornell-cup/cs-r2bot2,cornell-cup/cs-r2bot2
82e8947ca83b54772c49f7ed25ad2e46a19aa3aa
spinnaker_components/ensemble/ensemble-main.c
spinnaker_components/ensemble/ensemble-main.c
#include "ensemble.h" void c_main( void ) { // Set the system up address_t address = system_load_sram(); data_system ( region_start( 1, address ) ); data_get_bias ( region_start( 2, address ), g_ensemble.n_neurons ); data_get_encoders ( region_start( 3, address ), g_ensemble.n_neurons, g_n_input_di...
#include "ensemble.h" void c_main( void ) { // Set the system up address_t address = system_load_sram(); data_system ( region_start( 1, address ) ); data_get_bias ( region_start( 2, address ), g_ensemble.n_neurons ); data_get_encoders ( region_start( 3, address ), g_ensemble.n_neurons, g_n_input_di...
Load and configure core map.
Load and configure core map.
C
mit
ctn-archive/nengo_spinnaker_2014,ctn-archive/nengo_spinnaker_2014,ctn-archive/nengo_spinnaker_2014,ctn-archive/nengo_spinnaker_2014
13f6e450824dbce2e73b9139dc7283ef903210d1
ui/reflectionview.h
ui/reflectionview.h
#pragma once #include <QtGui/QMouseEvent> #include <QtGui/QPaintEvent> #include <QtWidgets/QWidget> #include "binaryninjaapi.h" #include "dockhandler.h" #include "uitypes.h" class ContextMenuManager; class DisassemblyContainer; class FlowGraphWidget; class Menu; class ViewFrame; class BINARYNINJAUIAPI ReflectionVie...
#pragma once #include <QtGui/QMouseEvent> #include <QtGui/QPaintEvent> #include <QtWidgets/QWidget> #include "binaryninjaapi.h" #include "dockhandler.h" #include "uitypes.h" class ContextMenuManager; class DisassemblyContainer; class FlowGraphWidget; class Menu; class ViewFrame; class BINARYNINJAUIAPI ReflectionVie...
Add font change notifications to reflection view.
Add font change notifications to reflection view.
C
mit
joshwatson/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,joshwatson/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,joshwatson/binaryninja-api,Vector35/binaryninja-api,joshwatson/binaryninja-api,joshwatson/binaryninja-api,Vector35/binaryninja-api
0f9d995ab74075c306b7c8b24ac930c4a93e76d0
Curve.h
Curve.h
/* * File: Curve.h * Author: cameron * * Created on October 22, 2013, 1:07 AM */ #ifndef CURVE_H #define CURVE_H #include <avr/pgmspace.h> class Curve { static const uint8_t etable[] PROGMEM; public: static uint8_t exponential(uint8_t); static uint8_t linear(uint8_t); static uint8_t reverse(uint8_t); }; ...
/* * File: Curve.h * Author: cameron * * Created on October 22, 2013, 1:07 AM */ #ifndef CURVE_H #define CURVE_H #if (defined(__AVR__)) #include <avr\pgmspace.h> #else #include <pgmspace.h> #endif class Curve { static const uint8_t etable[] PROGMEM; public: static uint8_t exponential(uint8_t); static uint...
Fix for eps8266 and athers non avr mcu :)
Fix for eps8266 and athers non avr mcu :) Fix for eps8266 and athers non avr mcu :)
C
mit
jgillick/arduino-LEDFader
0078079b20d1fe7b52cf7c2ac0558abbeefddcca
gpu/include/GrGLConfig_chrome.h
gpu/include/GrGLConfig_chrome.h
#ifndef GrGLConfig_chrome_DEFINED #define GrGLConfig_chrome_DEFINED #define GR_SUPPORT_GLES2 1 // gl2ext.h will define these extensions macros but Chrome doesn't provide // prototypes. #define GL_OES_mapbuffer 0 #define GL_IMG_multisampled_render_to_texture 0 #include <GLES2/gl2.h> #include <...
#ifndef GrGLConfig_chrome_DEFINED #define GrGLConfig_chrome_DEFINED #define GR_SUPPORT_GLES2 1 // gl2ext.h will define these extensions macros but Chrome doesn't provide // prototypes. #define GL_OES_mapbuffer 0 #define GL_IMG_multisampled_render_to_texture 0 #include <GLES2/gl2.h> #include <...
Make chrome use the static square vb when drawing rects.
Make chrome use the static square vb when drawing rects. Review URL: http://codereview.appspot.com/4280053/ git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@949 2bbb7eff-a529-9590-31e7-b0007b416f81
C
bsd-3-clause
AOSPU/external_chromium_org_third_party_skia,pacerom/external_skia,pcwalton/skia,HalCanary/skia-hc,samuelig/skia,vvuk/skia,UBERMALLOW/external_skia,Purity-Lollipop/platform_external_skia,noselhq/skia,xin3liang/platform_external_chromium_org_third_party_skia,DARKPOP/external_chromium_org_third_party_skia,geekboxzone/lol...
a4c8fc3e7f5624f8dcaffcf1ed6b8ba8f8bd9861
include/uwhd/sync/ModelSync.h
include/uwhd/sync/ModelSync.h
//===-- ModelSync.h - Wireless Syncing of GameModel ---------------- c++ --===// // // UWH Timer // // This file is distributed under the BSD 3-Clause License. // See LICENSE.TXT for details. // //===-----------------------------------------------------------...
//===-- ModelSync.h - Wireless Syncing of GameModel ---------------- c++ --===// // // UWH Timer // // This file is distributed under the BSD 3-Clause License. // See LICENSE.TXT for details. // //===-----------------------------------------------------------...
Address a warning from the generated swig code
[sync] Address a warning from the generated swig code
C
bsd-3-clause
Navisjon/uwh-display,jroelofs/uwh-display,jroelofs/uwh-display,jroelofs/uwh-display,Navisjon/uwh-display,Navisjon/uwh-display,Navisjon/uwh-display
7bd01c0936a140f39e2b15ab72f042197f59dc52
base/critical_closure.h
base/critical_closure.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_CRITICAL_CLOSURE_H_ #define BASE_CRITICAL_CLOSURE_H_ #include "base/callback.h" namespace base { // Returns a closure that will contin...
// 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_CRITICAL_CLOSURE_H_ #define BASE_CRITICAL_CLOSURE_H_ #include "base/callback.h" namespace base { // Returns a closure that will contin...
Add inline annotation for base::MakeCriticalClosure() in platform other than ios.
Add inline annotation for base::MakeCriticalClosure() in platform other than ios. The implementation of this method is basically noop in platforms other than ios and it is put in the header file; this change adds inline annotation to avoid duplicate symbol link error on other platforms. BUG=NONE Review URL: https:/...
C
bsd-3-clause
anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,crosswalk-project/chromium-crosswalk-efl,ChromiumWebApps/chromium,patrickm/chromium.src,axinging/chromium-crosswalk,axinging/chromium-crosswalk,Jonekee/chromium.src,Fireblend/chromium-crosswalk,axinging/chromium-crosswalk,junmin-zhu/chromium-rivertrail,hujiajie/pa-...
3386d3a91d405a744cfcb9909446cf4613d25a40
chrome/browser/ui/panels/panel_browser_window_gtk.h
chrome/browser/ui/panels/panel_browser_window_gtk.h
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ #include "chrome/browser/ui...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ #include "chrome/browser/ui...
Use scoped_ptr for Panel in PanelBrowserWindowGTK.
Use scoped_ptr for Panel in PanelBrowserWindowGTK. BUG=None TEST=Verified WindowOpenPanel test now hits Panel destructor. Review URL: http://codereview.chromium.org/7120011 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@88154 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
anirudhSK/chromium,ltilve/chromium,ChromiumWebApps/chromium,hgl888/chromium-crosswalk,dushu1203/chromium.src,nacl-webkit/chrome_deps,timopulkkinen/BubbleFish,axinging/chromium-crosswalk,ChromiumWebApps/chromium,rogerwang/chromium,ondra-novak/chromium.src,zcbenz/cefode-chromium,crosswalk-project/chromium-crosswalk-efl,m...
4151341273f8b57845f493d59734dc7bbbab8f47
include/utils/SkNullCanvas.h
include/utils/SkNullCanvas.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 SkNullCanvas_DEFINED #define SkNullCanvas_DEFINED #include "SkBitmap.h" class SkCanvas; /** * Creates a canvas that draws nothing. This is useful for performance t...
/* * 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 SkNullCanvas_DEFINED #define SkNullCanvas_DEFINED #include "SkBitmap.h" class SkCanvas; /** * Creates a canvas that draws nothing. This is useful for performance t...
Add SK_API to null canvas create method
Add SK_API to null canvas create method git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@4221 2bbb7eff-a529-9590-31e7-b0007b416f81
C
bsd-3-clause
MonkeyZZZZ/platform_external_skia,mydongistiny/android_external_skia,sigysmund/platform_external_skia,SlimSaber/android_external_skia,TeamTwisted/external_skia,timduru/platform-external-skia,aospo/platform_external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,Infinitive-OS/platform_external_skia,Tea...
22dbe8cb994cf2e10c70a81686cef72408e4d2f2
MatrixSDK/MatrixSDK.h
MatrixSDK/MatrixSDK.h
/* Copyright 2014 OpenMarket Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
/* Copyright 2014 OpenMarket Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
Fix build after MacOS merge
Fix build after MacOS merge
C
apache-2.0
matrix-org/matrix-ios-sdk,matrix-org/matrix-ios-sdk,matrix-org/matrix-ios-sdk,matrix-org/matrix-ios-sdk,matrix-org/matrix-ios-sdk
957af5527c4f23072b84384e2d972429a6b7be09
main.c
main.c
#include<stdio.h> #include<stdlib.h> struct node { int data; struct node* next; }; int Length(struct node* head) { int count = 0; struct node* current = head; while (current != NULL) { count++; current=current->next; } return(count); } // Given a reference (pointer to pointer) to the head // of ...
#include<stdio.h> #include<stdlib.h> #include<assert.h> struct node { int data; struct node* next; }; int Length(struct node* head) { int count = 0; struct node* current = head; while (current != NULL) { count++; current=current->next; } return(count); } // Given a reference (pointer to pointer)...
Write failing assert for count
Write failing assert for count
C
mit
wlaurance/c-practice
caf4ad66a4a7fac322753baae0057df99a5971fd
include/Social/SLComposeSheetConfigurationItem.h
include/Social/SLComposeSheetConfigurationItem.h
//****************************************************************************** // // Copyright (c) 2016 Microsoft Corporation. All rights reserved. // // This code is licensed under the MIT License (MIT). // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LI...
//****************************************************************************** // // Copyright (c) 2016 Microsoft Corporation. All rights reserved. // // This code is licensed under the MIT License (MIT). // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LI...
Fix Social framework headers to be self-contained.
Fix Social framework headers to be self-contained.
C
mit
pradipd/WinObjC,yweijiang/WinObjC,nathpete-msft/WinObjC,Microsoft/WinObjC,s5msft/WinObjC,bbowman/WinObjC,vkvenkat/WinObjC,Microsoft/WinObjC,ehren/WinObjC,MSFTFox/WinObjC,yweijiang/WinObjC,vkvenkat/WinObjC,autodesk-forks/WinObjC,s5msft/WinObjC,afaruqui/WinObjC,pradipd/WinObjC,bbowman/WinObjC,bSr43/WinObjC,autodesk-forks...
e2d6f3833127d478d15ac36e2336a92b1863d65f
board/bip/board.h
board/bip/board.h
/* Copyright 2018 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. */ /* Bip board configuration */ #ifndef __CROS_EC_BOARD_H #define __CROS_EC_BOARD_H /* Select Baseboard features */ #define VARIANT_OCTOPUS_EC_ITE8...
/* Copyright 2018 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. */ /* Bip board configuration */ #ifndef __CROS_EC_BOARD_H #define __CROS_EC_BOARD_H /* Select Baseboard features */ #define VARIANT_OCTOPUS_EC_ITE8...
Increase UART transmit buffer size
bip: Increase UART transmit buffer size With this patch, we can get the completed messages during system boot. If the size of tx buffer is too small, the messages will print overwritten. BUG=none BRANCH=none TEST=The serial console can check message during system reboot. Change-Id: I37902096baeeb678b696d9a4acce...
C
bsd-3-clause
coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec
8d763d25ecf02f2704f6192a8f96bfe35aad6d98
include/llvm/Bytecode/Format.h
include/llvm/Bytecode/Format.h
//===-- llvm/Bytecode/Format.h - VM bytecode file format info ---*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===--------...
//===-- llvm/Bytecode/Format.h - VM bytecode file format info ---*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===--------...
Add enum for compaction table.
Add enum for compaction table. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@10916 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,dsl...
cb39939355915d400a9ea0f0bee5e6fcc5dfeb37
miner.h
miner.h
#ifndef _CGMINER_MINER_H #define _CGMINER_MINER_H #include <stdint.h> struct work { uint8_t *midstate; uint8_t *data; }; #ifndef MAX #define MAX(a,b) ((a) < (b) ? (b) : (a)) #endif #ifndef MIN #define MIN(a,b) ((a) > (b) ? (b) : (a)) #endif typedef enum { false = 0, true = 1 } bool; #endif
#ifndef _CGMINER_MINER_H #define _CGMINER_MINER_H #include <stdint.h> #include <stdbool.h> struct work { uint8_t *midstate; uint8_t *data; }; #ifndef MAX #define MAX(a,b) ((a) < (b) ? (b) : (a)) #endif #ifndef MIN #define MIN(a,b) ((a) > (b) ? (b) : (a)) #endif #endif
Use stdbool.h for bool definition.
Use stdbool.h for bool definition. Our own collides with applications using strbool.h
C
mit
KnCMiner/knc-asic,KnCMiner/knc-asic,KnCMiner/knc-asic
7faecaf1a4ee5fd3e25e2a1facfbfdebb15b596a
radix.h
radix.h
#ifndef RADIXTREE #define RADIXTREE typedef struct rxt_node { int color; char *key; // only stores pos and beyond int level; // tree level; for debug only int parent_id; //for debug only int pos; void *value; struct rxt_node *parent; struct rxt_node *left; struct rxt_node *right; }r...
#ifndef RADIXTREE #define RADIXTREE typedef struct rxt_node { int color; char *key; void *value; int pos; // bit index of the key to compare at (critical position) int level; // tree level; for debug only int parent_id; //for debug only struct rxt_node *parent; struct rxt_node *left; ...
Move things around the rxt_node struct and clean up comments. Breaks ABI.
Move things around the rxt_node struct and clean up comments. Breaks ABI.
C
bsd-2-clause
j0sh/radixtree