commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
6c4824bd141e06780af1ea4700046689af4edfb2 | src/hotplug_generic.c | src/hotplug_generic.c | /*
* MUSCLE SmartCard Development ( http://www.linuxnet.com )
*
* Copyright (C) 2000-2003
* David Corcoran <corcoran@linuxnet.com>
*
* $Id$
*/
/**
* @file
* @brief This provides a search API for hot pluggble devices.
*
* Check for platforms that have their own specific support.
* It's easier and flexible ... | /*
* MUSCLE SmartCard Development ( http://www.linuxnet.com )
*
* Copyright (C) 2000-2003
* David Corcoran <corcoran@linuxnet.com>
*
* $Id$
*/
/**
* @file
* @brief This provides a search API for hot pluggble devices.
*
* Check for platforms that have their own specific support.
* It's easier and flexible ... | Add missing ReCheckSerialReaders and HPReCheckSerialReaders() so pcsc-lite can compile on FreeBSD and others | Add missing ReCheckSerialReaders and HPReCheckSerialReaders() so
pcsc-lite can compile on FreeBSD and others
git-svn-id: f2d781e409b7e36a714fc884bb9b2fc5091ddd28@1786 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 |
edb65bb8be45202ec4b1b0dbaeb4cbe0b50e1553 | src/modules/comm.c | src/modules/comm.c | #include "comm.h"
static void inbox_received_handler(DictionaryIterator *iter, void *context) {
#if defined(PBL_COLOR)
Tuple *background_t = dict_find(iter, AppKeyColorBackground);
if(background_t) {
data_set_color(ColorBackground, (GColor){ .argb = background_t->value->int32 });
}
Tuple *sides_t = dict_f... | #include "comm.h"
static void inbox_received_handler(DictionaryIterator *iter, void *context) {
#if defined(PBL_COLOR)
Tuple *background_t = dict_find(iter, AppKeyColorBackground);
if(background_t) {
data_set_color(ColorBackground, (GColor){ .argb = background_t->value->int8 });
}
Tuple *sides_t = dict_fi... | Use more reliable union value | Use more reliable union value
| C | mit | C-D-Lewis/isotime-appstore,C-D-Lewis/isotime-appstore,C-D-Lewis/isotime-appstore,C-D-Lewis/isotime-appstore |
ae9ca499447425d2c98e0d1189b3be7bccbfe441 | src/search/state.h | src/search/state.h | /* -*- mode:linux -*- */
/**
* \file state.h
*
*
*
* \author Ethan Burns
* \date 2008-10-08
*/
#if !defined(_STATE_H_)
#define _STATE_H_
#include <iostream>
#include <vector>
#include "search_domain.h"
using namespace std;
class State {
public:
State(const SearchDomain *d, const State *parent, int g);
vir... | /* -*- mode:linux -*- */
/**
* \file state.h
*
*
*
* \author Ethan Burns
* \date 2008-10-08
*/
#if !defined(_STATE_H_)
#define _STATE_H_
#include <iostream>
#include <vector>
#include "search_domain.h"
using namespace std;
class State {
public:
State(const SearchDomain *d, const State *parent, int g);
vir... | Use floats for cost and heuristic values. | Use floats for cost and heuristic values.
| C | mit | eaburns/pbnf,eaburns/pbnf,eaburns/pbnf,eaburns/pbnf |
eff9073790e1286aa12bf1c65814d3e0132b12e1 | arch/x86/include/asm/numa_32.h | arch/x86/include/asm/numa_32.h | #ifndef _ASM_X86_NUMA_32_H
#define _ASM_X86_NUMA_32_H
extern int numa_off;
extern int pxm_to_nid(int pxm);
#ifdef CONFIG_NUMA
extern int __cpuinit numa_cpu_node(int apicid);
#else /* CONFIG_NUMA */
static inline int numa_cpu_node(int cpu) { return NUMA_NO_NODE; }
#endif /* CONFIG_NUMA */
#ifdef CONFIG_HIGHMEM
exte... | #ifndef _ASM_X86_NUMA_32_H
#define _ASM_X86_NUMA_32_H
extern int numa_off;
extern int pxm_to_nid(int pxm);
#ifdef CONFIG_NUMA
extern int __cpuinit numa_cpu_node(int cpu);
#else /* CONFIG_NUMA */
static inline int numa_cpu_node(int cpu) { return NUMA_NO_NODE; }
#endif /* CONFIG_NUMA */
#ifdef CONFIG_HIGHMEM
extern ... | Rename incorrectly named parameter of numa_cpu_node() | x86: Rename incorrectly named parameter of numa_cpu_node()
numa_cpu_node() prototype in numa_32.h has wrongly named
parameter @apicid when it actually takes the CPU number.
Change it to @cpu.
Reported-by: Yinghai Lu <0674548f4d596393408a51d6287a76ebba2f42aa@kernel.org>
Signed-off-by: Tejun Heo <546b05909706652891a87... | C | mit | KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Program... |
b3a9eabe635e4440a85803b4a861853b7f04aacf | src/fclaw2d_forestclaw.c | src/fclaw2d_forestclaw.c | /*
Copyright (c) 2012 Carsten Burstedde, Donna Calhoun
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions a... | Add function wrappers for forestclaw.c | Add function wrappers for forestclaw.c
| C | bsd-2-clause | ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw | |
23a5b06f405219d8ea93d4d8d2ca0666d4b1105a | test/Driver/show-option-names.c | test/Driver/show-option-names.c | // RUN: %clang -c -isysroot /FOO %s 2>&1 | FileCheck --check-prefix=CHECK-SHOW-OPTION-NAMES %s
// CHECK-SHOW-OPTION-NAMES: warning: no such sysroot directory: '{{([A-Za-z]:.*)?}}/FOO' [-Wmissing-sysroot]
// RUN: %clang -c -fno-diagnostics-show-option -isysroot /FOO %s 2>&1 | FileCheck --check-prefix=CHECK-NO-SHOW-OPTI... | // REQUIRES: x86-registered-target
// RUN: %clang -target x86_64-apple-darwin -c -isysroot /FOO %s 2>&1 | FileCheck --check-prefix=CHECK-SHOW-OPTION-NAMES %s
// CHECK-SHOW-OPTION-NAMES: warning: no such sysroot directory: '{{([A-Za-z]:.*)?}}/FOO' [-Wmissing-sysroot]
// RUN: %clang -target x86_64-apple-darwin -c -fno-... | Fix test from r283913 to unbreak bots | [Driver] Fix test from r283913 to unbreak bots
Followup from r283913 & r283827
http://bb.pgr.jp/builders/cmake-clang-x86_64-linux/builds/55135
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@283915 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... |
95c629782a429452c0cef4151a499ea1ce8786ca | core/pubnub_version_internal.h | core/pubnub_version_internal.h | /* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */
#if !defined INC_PUBNUB_VERSION_INTERNAL
#define INC_PUBNUB_VERSION_INTERNAL
#define PUBNUB_SDK_VERSION "2.2.11"
#endif /* !defined INC_PUBNUB_VERSION_INTERNAL */
| Add internal/common version (number) header file. | Add internal/common version (number) header file.
| C | mit | pubnub/c-core,pubnub/c-core,pubnub/c-core,pubnub/c-core | |
be6318b2f02e14a1b717d30691351e8415e246c1 | test/Driver/tsan.c | test/Driver/tsan.c | // RUN: %clang -target i386-unknown-unknown -fthread-sanitizer %s -S -emit-llvm -o - | FileCheck %s
// RUN: %clang -O1 -target i386-unknown-unknown -fthread-sanitizer %s -S -emit-llvm -o - | FileCheck %s
// RUN: %clang -O2 -target i386-unknown-unknown -fthread-sanitizer %s -S -emit-llvm -o - | FileCheck %s
// RUN: ... | // RUN: %clang -target i386-unknown-unknown -fsanitize=thread %s -S -emit-llvm -o - | FileCheck %s
// RUN: %clang -O1 -target i386-unknown-unknown -fsanitize=thread %s -S -emit-llvm -o - | FileCheck %s
// RUN: %clang -O2 -target i386-unknown-unknown -fsanitize=thread %s -S -emit-llvm -o - | FileCheck %s
// RUN: %cl... | Use the -fsanitize=thread flag to unbreak buildbot. | Use the -fsanitize=thread flag to unbreak buildbot.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@167472 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | 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/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... |
8166b9fe84e0dc3c8877366b58a9286b0258172f | src/modules/illume-keyboard/e_mod_main.c | src/modules/illume-keyboard/e_mod_main.c | #include "e.h"
#include "e_mod_main.h"
#include "e_mod_config.h"
#include "e_kbd_int.h"
/* local variables */
static E_Kbd_Int *ki = NULL;
EAPI E_Module_Api e_modapi = { E_MODULE_API_VERSION, "Illume Keyboard" };
EAPI void *
e_modapi_init(E_Module *m)
{
if (!il_kbd_config_init(m)) return NULL;
ki = e_kbd_int... | #include "e.h"
#include "e_mod_main.h"
#include "e_mod_config.h"
#include "e_kbd_int.h"
/* local variables */
static E_Kbd_Int *ki = NULL;
EAPI E_Module_Api e_modapi = { E_MODULE_API_VERSION, "Illume Keyboard" };
EAPI void *
e_modapi_init(E_Module *m)
{
if (!il_kbd_config_init(m)) return NULL;
ki = e_kbd_int... | Use correct module directory when making keyboard. Previous commit fixed compiler warnings also. | Use correct module directory when making keyboard.
Previous commit fixed compiler warnings also.
SVN revision: 43875
| C | bsd-2-clause | FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment,rvandegrift/e,FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment,tasn/enlightenment,rvandegrift/e,tizenorg/platform.upstream.enlightenment,tasn/enlightenment,tasn/enlightenment,rvandegrift/e,FlorentRevest/Enlightenment |
c74e3fa443e193afb5274b672eccd58d2d7cff28 | test/test_rtp.c | test/test_rtp.c | #include "rtp/kms-rtp-endpoint.h"
#include <glib.h>
#define LOCALNAME "kms/rtp/1"
static KmsEndpoint*
create_endpoint() {
KmsEndpoint *ep;
gchar *name;
name = g_strdup_printf(LOCALNAME);
ep = g_object_new(KMS_TYPE_RTP_ENDPOINT, "localname", name, NULL);
g_free(name);
return ep;
}
static void
check_endpoint(... | #include "rtp/kms-rtp-endpoint.h"
#include <glib.h>
#define LOCALNAME "kms/rtp/1"
static KmsEndpoint*
create_endpoint() {
KmsEndpoint *ep;
gchar *name;
name = g_strdup_printf(LOCALNAME);
ep = g_object_new(KMS_TYPE_RTP_ENDPOINT, "localname", name, NULL);
g_free(name);
return ep;
}
static void
check_endpoint(... | Create and delete rtp connections | Create and delete rtp connections
| C | lgpl-2.1 | mparis/kurento-media-server,mparis/kurento-media-server,lulufei/kurento-media-server,shelsonjava/kurento-media-server,Kurento/kurento-media-server,todotobe1/kurento-media-server,Kurento/kurento-media-server,lulufei/kurento-media-server,TribeMedia/kurento-media-server,todotobe1/kurento-media-server,TribeMedia/kurento-me... |
e135d72967f8dfc5c5cebea4caaf3d7240f7493c | 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 Menu;
class ViewFrame;
class BINARYNINJAUIAPI ReflectionView: public QWidget, publ... | #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 Menu;
class ViewFrame;
class BINARYNINJAUIAPI ReflectionView: public QWidget, publ... | Update reflection view to use view location notification. | Update reflection view to use view location notification.
| 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,joshwatson/binaryninja-api,Vector35/binaryninja-api,joshwatson/binaryninja-api,Vector35/binaryninja-api |
f5cdd574a531ed156d30efe2e06c4cf463469588 | libkmod/missing.h | libkmod/missing.h | #pragma once
#include <unistd.h>
#include <sys/syscall.h>
#ifdef HAVE_LINUX_MODULE_H
#include <linux/module.h>
#endif
#ifndef MODULE_INIT_IGNORE_MODVERSIONS
# define MODULE_INIT_IGNORE_MODVERSIONS 1
#endif
#ifndef MODULE_INIT_IGNORE_VERMAGIC
# define MODULE_INIT_IGNORE_VERMAGIC 2
#endif
#ifndef __NR_finit_module
#... | #pragma once
#include <unistd.h>
#include <sys/syscall.h>
#ifdef HAVE_LINUX_MODULE_H
#include <linux/module.h>
#endif
#ifndef MODULE_INIT_IGNORE_MODVERSIONS
# define MODULE_INIT_IGNORE_MODVERSIONS 1
#endif
#ifndef MODULE_INIT_IGNORE_VERMAGIC
# define MODULE_INIT_IGNORE_VERMAGIC 2
#endif
#ifndef __NR_finit_module
#... | Make sure there's NUL byte at the end of strndupa | Make sure there's NUL byte at the end of strndupa
Since strcpy() doesn't ensure we have a NUL byte in the resulting
string, use alloca() + memcpy(). Also make sure we don't evaluate "s"
twice.
| C | lgpl-2.1 | pmmccorm/kmod,lpereira/kmod,Distrotech/kmod,pmmccorm/kmod,pmmccorm/kmod,lucasdemarchi/kmod,lpereira/kmod,Distrotech/kmod,lucasdemarchi/kmod,Distrotech/kmod,lpereira/kmod,lucasdemarchi/kmod |
d1655ea772cb9f0c6ecad7a4523629ea4c6ce560 | platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_MBED_PSA_SRV/val/val_client_defs.h | platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_MBED_PSA_SRV/val/val_client_defs.h | /** @file
* Copyright (c) 2018-2019, Arm Limited or its affiliates. All rights reserved.
* SPDX-License-Identifier : Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ht... | /** @file
* Copyright (c) 2018-2019, Arm Limited or its affiliates. All rights reserved.
* SPDX-License-Identifier : Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ht... | Add missing inclusion of crypto_types.h | psa: Add missing inclusion of crypto_types.h
val_client_defs.h includes crypto_values.h, but the latter requires
type definitions from crypto_types.h.
| C | apache-2.0 | mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed |
3964e5efebb9168526a9b098874177a68ec8e704 | scaffolding.10.c | scaffolding.10.c | #include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <termios.h>
#include <unistd.h>
struct termios orig_termios;
void disableRawMode() {
tcsetattr(STDIN_FILENO, TCSAFLUSH, &orig_termios);
}
void enableRawMode() {
tcgetattr(STDIN_FILENO, &orig_termios);
atexit(disableRawMode);
struct termios r... | Include a Ruten code, demonstrating keystroke reading | Include a Ruten code, demonstrating keystroke reading
| C | bsd-2-clause | eingaeph/pip.imbue.hood,eingaeph/pip.imbue.hood | |
e1d9f7f6473476c9da658edefe08fa0f9b3b4a50 | include/rapidcheck/shrinkable/Transform.h | include/rapidcheck/shrinkable/Transform.h | #pragma once
#include "rapidcheck/Shrinkable.h"
namespace rc {
namespace shrinkable {
//! Maps the given shrinkable using the given mapping callable.
template<typename T, typename Mapper>
Shrinkable<typename std::result_of<Mapper(T)>::type>
map(Mapper &&mapper, Shrinkable<T> shrinkable);
//! Returns a shrinkable eq... | #pragma once
#include "rapidcheck/Shrinkable.h"
namespace rc {
namespace shrinkable {
//! Maps the given shrinkable recursively using the given mapping callable.
template<typename T, typename Mapper>
Shrinkable<typename std::result_of<Mapper(T)>::type>
map(Mapper &&mapper, Shrinkable<T> shrinkable);
//! Returns a s... | Clarify doc comment about shrinkable::map | Clarify doc comment about shrinkable::map
| C | bsd-2-clause | whoshuu/rapidcheck,tm604/rapidcheck,whoshuu/rapidcheck,emil-e/rapidcheck,unapiedra/rapidfuzz,whoshuu/rapidcheck,unapiedra/rapidfuzz,tm604/rapidcheck,tm604/rapidcheck,emil-e/rapidcheck,emil-e/rapidcheck,unapiedra/rapidfuzz |
0f6dd291a29fd99765469485ddea93c0c2b927d6 | src/utils/cont.h | src/utils/cont.h | /*
Copyright (c) 2012 250bpm s.r.o.
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, including without limitation
the rights to use, copy, modify, merge, pu... | /*
Copyright (c) 2012 250bpm s.r.o.
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, including without limitation
the rights to use, copy, modify, merge, pu... | Use offsetof() macro instead of expanded form. | Use offsetof() macro instead of expanded form.
Signed-off-by: Martin Sustrik <4dd6061be1198639e8b05ce4fd5ead7a0dcaa0f4@250bpm.com>
| C | mit | pakozm/nanomsg,modulexcite/nanomsg,kaostao/nanomsg,reqshark/nanomsg,potatogim/nanomsg,krafczyk/nanomsg,modulexcite/nanomsg,JackDunaway/featherweight-nanomsg,cosin2008/nanomsg.NET,zerotacg/nanomsg,yan97ao/nanomsg,pch957/nanomsg,smithed/nanomsg,snikulov/nanomsg,gdamore/mamomsg,imp/nanomsg,tempbottle/nanomsg,pch957/nanoms... |
f4a3cffb0a988313acdb83a6d658001c8c06e07b | src/lib/MSPUBConstants.h | src/lib/MSPUBConstants.h | namespace libmspub
{
const unsigned EMUS_IN_INCH = 914400;
}
| /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* libmspub
* Version: MPL 1.1 / GPLv2+ / LGPLv2+
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License or as specified ... | Add license header to the file | Add license header to the file
| C | mpl-2.0 | LibreOffice/libmspub,LibreOffice/libmspub,LibreOffice/libmspub |
8106c20e81cb296b15da59763639b9dfe33752e8 | sys/mips/include/pltfm.h | sys/mips/include/pltfm.h | /*-
* JNPR: pltfm.h,v 1.5.2.1 2007/09/10 05:56:11 girish
* $FreeBSD$
*/
#ifndef _MACHINE_PLTFM_H_
#define _MACHINE_PLTFM_H_
/*
* This files contains platform-specific definitions.
*/
#define SDRAM_ADDR_START 0 /* SDRAM addr space */
#define SDRAM_ADDR_END (SDRAM_ADDR_START + (1024*0x100000))
#define SDRAM_MEM_S... | /*-
* JNPR: pltfm.h,v 1.5.2.1 2007/09/10 05:56:11 girish
* $FreeBSD$
*/
#ifndef _MACHINE_PLTFM_H_
#define _MACHINE_PLTFM_H_
/*
* This files contains platform-specific definitions.
*/
#define SDRAM_ADDR_START 0 /* SDRAM addr space */
#define SDRAM_ADDR_END (SDRAM_ADDR_START + (1024*0x100000))
#define SDRAM_MEM_S... | Trim unreferenced goo. SDRAM likely should be next, but it is still referenced. | Trim unreferenced goo. SDRAM likely should be next, but it is still
referenced.
| C | bsd-3-clause | jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase |
64c2495f3b46fc3bd623a7c1b534ffb7e58c7647 | lib/CL/clIcdGetPlatformIDsKHR.c | lib/CL/clIcdGetPlatformIDsKHR.c | #include <assert.h>
#include <string.h>
#include "pocl_cl.h"
/*
* Provide the ICD loader the specified function to get the pocl platform.
*
* TODO: the functionality of this seems the same as that of clGetPlatformIDs.
* but we cannot call that, as it is defined in the ICD loader itself.
*
*/
extern struct _cl... | #include <assert.h>
#include <string.h>
#include "pocl_cl.h"
/*
* GetPlatformIDs that support ICD.
* This function is required by the ICD specification.
*/
extern struct _cl_platform_id _platforms[1];
CL_API_ENTRY cl_int CL_API_CALL
clIcdGetPlatformIDsKHR(cl_uint num_entries,
cl_p... | Fix nonsense comment + remove duplicate code. | Fix nonsense comment + remove duplicate code.
| C | mit | vkorhonen/pocl,vkorhonen/pocl,0charleschen0/pocl,pocl/pocl,pocl/pocl,rjodin/pocl,0charleschen0/pocl,maZZZu/pocl,jrprice/pocl,pavanky/pocl,Oblomov/pocl,sting47/pocl,rjodin/pocl,Oblomov/pocl,dsandersimgtec/pocl,Oblomov/pocl,hugwijst/pocl,dsandersimgtec/pocl,sting47/pocl,jrprice/pocl,pocl/pocl,jrprice/pocl,franz/pocl,pava... |
ebbbce3163cf277b8ece31f69f59c24545d58f86 | src/win32/log_win.c | src/win32/log_win.c | /*
*The MIT License (MIT)
*
* Copyright (c) <2017> <Stephan Gatzka>
*
* 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, including
* without limitation the rights to use, co... | Add log functions for windows. | Add log functions for windows.
| C | mit | gatzka/cjet,mloy/cjet,mloy/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,gatzka/cjet | |
432db2cd6dd47eebf95e358af96c3c08962b57f6 | Eigen/src/Core/util/ReenableStupidWarnings.h | Eigen/src/Core/util/ReenableStupidWarnings.h | #ifdef EIGEN_WARNINGS_DISABLED
#undef EIGEN_WARNINGS_DISABLED
#ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS
#ifdef _MSC_VER
#pragma warning( pop )
#elif defined __INTEL_COMPILER
#pragma warning pop
#elif defined __clang__
#pragma clang diagnostic pop
#elif defined __NVCC__
#pragma diag_warn... | #ifdef EIGEN_WARNINGS_DISABLED
#undef EIGEN_WARNINGS_DISABLED
#ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS
#ifdef _MSC_VER
#pragma warning( pop )
#elif defined __INTEL_COMPILER
#pragma warning pop
#elif defined __clang__
#pragma clang diagnostic pop
#elif defined __NVCC__
#pragma diag_defa... | Revert the nvcc messages to their default severity instead of the forcing them to be warnings | Revert the nvcc messages to their default severity instead of the forcing them to be warnings
| C | bsd-3-clause | ROCmSoftwarePlatform/hipeigen,ritsu1228/eigen,pasuka/eigen,ROCmSoftwarePlatform/hipeigen,pasuka/eigen,pasuka/eigen,ROCmSoftwarePlatform/hipeigen,ritsu1228/eigen,ROCmSoftwarePlatform/hipeigen,ritsu1228/eigen,ritsu1228/eigen,pasuka/eigen,ritsu1228/eigen,pasuka/eigen |
a3270e718aa0c5dd341968b80324ae6d09a52467 | src/luaint/gen.h | src/luaint/gen.h | /*
* Copyright (C) 2015 Luke San Antonio and Hazza Alkaabi
* All rights reserved.
*/
#pragma once
#include <string>
#include <vector>
#include "../gen/terrain.h"
#include "common.h"
extern "C"
{
#include "lua.h"
}
namespace game { namespace luaint
{
struct Terrain_Gen_Config
{
void add_option(std::strin... | /*
* Copyright (C) 2015 Luke San Antonio and Hazza Alkaabi
* All rights reserved.
*/
#pragma once
#include <string>
#include <vector>
#include "../gen/terrain.h"
#include "common.h"
extern "C"
{
#include "lua.h"
}
namespace game { namespace luaint
{
struct Terrain_Gen_Config
{
void add_option(std::strin... | Add comment to the Terrain_Gen_Mod struct | Add comment to the Terrain_Gen_Mod struct
| C | bsd-3-clause | RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine |
1200ec14e9e0ec6b27033f59778c7c4dd6690ca4 | c_src/indexed_ewah.h | c_src/indexed_ewah.h | #pragma once
#include <stdint.h>
#include <stdlib.h>
#include "ewok.h"
enum { N_DIVISIONS = 65536, LOG2_DIVISIONS = 16 };
struct indexed_ewah_map {
struct ewah_bitmap *map;
size_t bit_from_division[N_DIVISIONS], ptr_from_division[N_DIVISIONS];
};
/* Build an index on top of an existing libewok EWAH map. */
e... | #pragma once
#include <stdint.h>
#include <stdlib.h>
#include "ewok.h"
enum { N_DIVISIONS = 1<<14 };
struct indexed_ewah_map {
struct ewah_bitmap *map;
size_t bit_from_division[N_DIVISIONS], ptr_from_division[N_DIVISIONS];
};
/* Build an index on top of an existing libewok EWAH map. */
extern void ewah_build... | Change number of divisions in index to 2^14 | Change number of divisions in index to 2^14
| C | mit | ratelle/erl_ip_index,ratelle/erl_ip_index,ratelle/erl_ip_index |
cc79cb803ad27d92e3e44e89b59c5a6521e06d44 | Alc/converter.h | Alc/converter.h | #ifndef CONVERTER_H
#define CONVERTER_H
#include "alMain.h"
#include "alu.h"
#ifdef __cpluspluc
extern "C" {
#endif
typedef struct SampleConverter {
enum DevFmtType mSrcType;
enum DevFmtType mDstType;
ALsizei mNumChannels;
ALsizei mSrcTypeSize;
ALsizei mDstTypeSize;
ALint mSrcPrepCount;
... | #ifndef CONVERTER_H
#define CONVERTER_H
#include "alMain.h"
#include "alu.h"
#ifdef __cpluspluc
extern "C" {
#endif
typedef struct SampleConverter {
enum DevFmtType mSrcType;
enum DevFmtType mDstType;
ALsizei mNumChannels;
ALsizei mSrcTypeSize;
ALsizei mDstTypeSize;
ALint mSrcPrepCount;
... | Reduce the size of the temp input buffer | Reduce the size of the temp input buffer
| C | lgpl-2.1 | aaronmjacobs/openal-soft,aaronmjacobs/openal-soft |
ab55a43fcd48953d0d76599671efa6f5a82bee80 | uwsgiEngine/plugin.h | uwsgiEngine/plugin.h | /*
* Copyright (C) 2013-2014 Daniel Nicoletti <dantti12@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any late... | /*
* Copyright (C) 2013-2014 Daniel Nicoletti <dantti12@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any late... | Revert "Possibly fixed alignment warning" | Revert "Possibly fixed alignment warning"
This reverts commit 3111a7ae00cf12f0f8e0f357fb122b24470e4051.
| C | bsd-3-clause | buschmann23/cutelyst,buschmann23/cutelyst,cutelyst/cutelyst,simonaw/cutelyst,simonaw/cutelyst,cutelyst/cutelyst,buschmann23/cutelyst,cutelyst/cutelyst |
4a01fda83c83febe335110ddead262bb280c4d24 | gmond/core_metrics.c | gmond/core_metrics.c | #include <metric.h>
#include <gm_mmn.h>
#include <libmetrics.h>
mmodule core_metrics;
/*
** A helper function to determine the number of cpustates in /proc/stat (MKN)
*/
static int core_metrics_init ( apr_pool_t *p )
{
int i;
for (i = 0; core_metrics.metrics_info[i].name != NULL; i++) {
/* Initial... | Move heartbeat, location and gexec metrics to a core module that will always be statically linked | Move heartbeat, location and gexec metrics to a core module that will always be statically linked
| C | bsd-3-clause | fastly/monitor-core,NoodlesNZ/monitor-core,fastly/monitor-core,mjzhou/monitor-core,phreakocious/monitor-core,hinesmr/monitor-core,NoodlesNZ/monitor-core,dmourati/monitor-core,sdgdsffdsfff/monitor-core,mjzhou/monitor-core,torkelsson/monitor-core,hinesmr/monitor-core,sdgdsffdsfff/monitor-core,mjzhou/monitor-core,sdgdsffd... | |
c26911e369cd35262a3ff74693024bab8e99c088 | xchainer/macro.h | xchainer/macro.h | #pragma once
#ifdef NDEBUG
#define XCHAINER_DEBUG false
#else // NDEBUG
#define XCHAINER_DEBUG true
#endif // NDEBUG
#ifndef XCHAINER_HOST_DEVICE
#ifdef __CUDACC__
#define XCHAINER_HOST_DEVICE __host__ __device__
#else // __CUDA__
#define XCHAINER_HOST_DEVICE
#endif // __CUDACC__
#endif // XCHAINER_HOST_DEVICE
... | #pragma once
#include <cassert>
#ifdef NDEBUG
#define XCHAINER_DEBUG false
#else // NDEBUG
#define XCHAINER_DEBUG true
#endif // NDEBUG
#define XCHAINER_ASSERT(...) \
do { \
if (XCHAINER_DEBUG) { ... | Add XCHAINER_ASSERT, an alternative assert that forcibly uses the expression syntactically | Add XCHAINER_ASSERT, an alternative assert that forcibly uses the expression syntactically
| C | mit | chainer/chainer,keisuke-umezawa/chainer,wkentaro/chainer,hvy/chainer,keisuke-umezawa/chainer,jnishi/chainer,niboshi/chainer,jnishi/chainer,niboshi/chainer,ktnyt/chainer,niboshi/chainer,tkerola/chainer,ktnyt/chainer,keisuke-umezawa/chainer,niboshi/chainer,pfnet/chainer,wkentaro/chainer,hvy/chainer,chainer/chainer,hvy/ch... |
9dc2130e92fb14cd7ceb259a08dabe5ace2d41d1 | effects/startup.h | effects/startup.h | #ifndef __STARTUP_H__
#define __STARTUP_H__
#include "types.h"
#ifndef X
#define X(x) ((x) + 0x81)
#endif
#ifndef Y
#define Y(y) ((y) + 0x2c)
#endif
extern int frameCount;
extern int lastFrameCount;
extern struct List *VBlankEvent;
typedef struct Effect {
/* AmigaOS is active during this step. Loads resources fr... | #ifndef __STARTUP_H__
#define __STARTUP_H__
#include "types.h"
#ifndef X
#define X(x) ((x) + 0x81)
#endif
#ifndef HP
#define HP(x) (X(x) / 2)
#endif
#ifndef Y
#define Y(y) ((y) + 0x2c)
#endif
#ifndef VP
#define VP(y) (Y(y) & 255)
#endif
extern int frameCount;
extern int lastFrameCount;
extern struct List *VBlankE... | Add default calculation of horizontal & vertical position. | Add default calculation of horizontal & vertical position.
| C | artistic-2.0 | cahirwpz/demoscene,cahirwpz/demoscene,cahirwpz/demoscene,cahirwpz/demoscene |
d1aff3f0750596fbb1ffeffa858c9db2f09a215d | arch/amiga/include/psl.h | arch/amiga/include/psl.h | /* $NetBSD: psl.h,v 1.7 1994/10/26 02:06:31 cgd Exp $ */
#ifndef _MACHINE_PSL_H_
#define _MACHINE_PSL_H_
#include <m68k/psl.h>
#endif
| /* $NetBSD: psl.h,v 1.7 1994/10/26 02:06:31 cgd Exp $ */
#ifndef _MACHINE_PSL_H_
#define _MACHINE_PSL_H_
/* Interrupt priority `levels'; not mutually exclusive. */
#define IPL_NONE -1
#define IPL_BIO 3 /* block I/O */
#define IPL_NET 3 /* network */
#define IPL_TTY 4 /* terminal */
#define IPL_CLOCK 4 /* clock */
... | Add IPL_ and IST_ constants in preparation for the Amiga ISA-kit | Add IPL_ and IST_ constants in preparation for the Amiga ISA-kit
| C | isc | orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars |
3ba54a5b44af53af3a3f1c7641261bd605c9a441 | SSPSolution/ResourceLib/DefineHeader.h | SSPSolution/ResourceLib/DefineHeader.h | #pragma once
#define DLLEXPORT
#ifdef DLLEXPORT
#define DLL_OPERATION __declspec(dllexport)
#endif
#include <iostream>
| #pragma once
#ifdef RESOURCELIB_EXPORTS
#define DLL_OPERATION __declspec(dllexport)
#else
#define DLL_OPERATION __declspec(dllimport)
#endif
#include <iostream>
| FIX dllcondition to use the correct macro name | FIX dllcondition to use the correct macro name
RESOURCELIB_EXPORTS is a defined preprocessor macro, not DLLEXPORTS
| C | apache-2.0 | Chringo/SSP,Chringo/SSP |
55559595b273d87c11951b14f051dddb14cb5939 | test/CodeGen/bitscan-builtins.c | test/CodeGen/bitscan-builtins.c | // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s
// Don't include mm_malloc.h, it's system specific.
#define __MM_MALLOC_H
#include <immintrin.h>
int test_bit_scan_forward(int a) {
return _bit_scan_forward(a);
// CHECK: @test_bit_scan_forward
// CHECK: %[[call:.*]] = call i32 @llv... | // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s
// Don't include mm_malloc.h, it's system specific.
#define __MM_MALLOC_H
#include <immintrin.h>
int test_bit_scan_forward(int a) {
return _bit_scan_forward(a);
// CHECK: @test_bit_scan_forward
// CHECK: %[[call:.*]] = call i32 @llv... | Test fix -- use captured call result instead of hardcoded %2. | Test fix -- use captured call result instead of hardcoded %2.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@272573 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-cl... |
cdd545fda02f9cc72a309c473a32377b70f66946 | WildcardPattern.h | WildcardPattern.h | #import <Cocoa/Cocoa.h>
@interface WildcardPattern : NSObject {
NSString* pattern_;
}
- (id) initWithString: (NSString*) s;
- (BOOL) isMatch: (NSString*) s;
@end
| /*
* Copyright (c) 2006 KATO Kazuyoshi <kzys@8-p.info>
* This source code is released under the MIT license.
*/
#import <Cocoa/Cocoa.h>
@interface WildcardPattern : NSObject {
NSString* pattern_;
}
- (id) initWithString: (NSString*) s;
- (BOOL) isMatch: (NSString*) s;
@end
| Add copyright and license header. | Add copyright and license header.
| C | mit | kzys/greasekit,sohocoke/greasekit,chrismessina/greasekit,tbodt/greasekit |
71b81539a49b9f1645e4e79fa27073f7b0aab55a | CPPace/CPPace.Lib/SetFunctions.h | CPPace/CPPace.Lib/SetFunctions.h | #pragma once
#include "Export.h"
#include <set>
#include <vector>
using namespace std;
class DLLEXPORT SetFunctions {
public:
static set<int> set_union_two(set<int>& s1, set<int>& s2);
static set<int> set_intersect_two(set<int>& s1, set<int>& s2);
static set<int> set_intersect_three(set<int>& s1, set<int>& s2... | #pragma once
#include "EXPORT.h"
#include <set>
#include <vector>
using namespace std;
class DLLEXPORT SetFunctions {
public:
static set<int> set_union_two(set<int>& s1, set<int>& s2);
static set<int> set_intersect_two(set<int>& s1, set<int>& s2);
static set<int> set_intersect_three(set<int>& s1, set<int>& s2... | Correct casing of EXPORT.h import | Correct casing of EXPORT.h import
| C | mit | Madsen90/Pace17,Madsen90/Pace17,Madsen90/Pace17 |
bd55c2cbfc4524de918cbfb53812bd6b93fe227a | src/lib/hex-dec.c | src/lib/hex-dec.c | /* Copyright (c) 2005-2011 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "hex-dec.h"
void dec2hex(unsigned char *hexstr, uintmax_t dec, unsigned int hexstr_size)
{
unsigned int i;
for (i = 0; i < hexstr_size; i++) {
unsigned int value = dec & 0x0f;
if (value < 10)
hexstr[hexstr... | /* Copyright (c) 2005-2011 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "hex-dec.h"
void dec2hex(unsigned char *hexstr, uintmax_t dec, unsigned int hexstr_size)
{
unsigned int i;
for (i = 0; i < hexstr_size; i++) {
unsigned int value = dec & 0x0f;
if (value < 10)
hexstr[hexstr... | Allow data to contain also lowercase hex characters. | hex2dec(): Allow data to contain also lowercase hex characters.
| C | mit | LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot |
7b252163dd1e7fb08f1e2651524bd93f0c5ef87e | include-cpp/RSUtil.h | include-cpp/RSUtil.h | #include <stdio.h>
#include <stdint.h>
extern "C" void RSFatalError(char *message);
extern "C" void* RSMallocOrDie(size_t size);
extern "C" void* RSCallocOrDie(size_t size);
extern "C" void RSFReadOrDie(void *dest, size_t size, FILE *file);
extern "C" void RSFWriteOrDie(void *data, size_t size, FILE *file);
extern "... | Add a header for use from C++ | Add a header for use from C++
| C | mit | ReclaimSoftware/RSUtil | |
8e84757da4fb5ba9aa28b384d5c9df6e4faa16ac | src/magicmatcher_p.h | src/magicmatcher_p.h | #ifndef MAGICMATCHER_P_H
#define MAGICMATCHER_P_H
#include "magicmatcher.h"
#include "qmimetype.h"
#include <QtCore/QFileInfo>
QT_BEGIN_NAMESPACE
class FileMatchContext
{
Q_DISABLE_COPY(FileMatchContext)
public:
// Max data to be read from a file
enum { MaxData = 2500 };
explicit FileMatchContext(... | #ifndef MAGICMATCHER_P_H
#define MAGICMATCHER_P_H
#include "magicmatcher.h"
#include "qmimetype.h"
#include <QtCore/QFileInfo>
QT_BEGIN_NAMESPACE
class FileMatchContext
{
Q_DISABLE_COPY(FileMatchContext)
public:
// Max data to be read from a file
// TODO: hardcoded values are no good, this should be d... | Add TODO. But first we need to parse mime.cache | Add TODO. But first we need to parse mime.cache
| C | lgpl-2.1 | qtproject/playground-mimetypes,d1vanov/qt4-mimetypes,d1vanov/qt4-mimetypes,d1vanov/qt4-mimetypes,qtproject/playground-mimetypes,qtproject/playground-mimetypes,qtproject/playground-mimetypes,d1vanov/qt4-mimetypes,d1vanov/qt4-mimetypes,d1vanov/qt4-mimetypes,qtproject/playground-mimetypes,qtproject/playground-mimetypes,qt... |
cc0fdd497c22d442297ec0ac33578272acb7a462 | include/avarix/register.h | include/avarix/register.h | /**
* @file
* @brief Tools to work with registers
*/
//@{
#ifndef AVARIX_REGISTER_H__
#define AVARIX_REGISTER_H__
#include <avr/io.h>
/** @brief Set a register with I/O CCP disabled
*
* Interrupts are not disabled during the process.
*
* @note This can be achieved in less cycles for some I/O registers but thi... | /**
* @file
* @brief Tools to work with registers
*/
//@{
#ifndef AVARIX_REGISTER_H__
#define AVARIX_REGISTER_H__
#include <avr/io.h>
/** @brief Set a register with I/O CCP disabled
*
* Interrupts are not disabled during the process.
*
* @note This can be achieved in less cycles for some I/O registers but thi... | Fix ccp_io_write() not being static as it should | Fix ccp_io_write() not being static as it should
| C | mit | robotter/avarix,robotter/avarix,robotter/avarix |
fc7577a0dfaefd763430cd42476b5d09ce1ef394 | msgpack/msgpack.h | msgpack/msgpack.h | //
// msgpack.h
// msgpack
//
// Created by Ricardo Pereira on 13/10/2017.
//
//
#import <UIKit/UIKit.h>
//! Project version number for msgpack.
FOUNDATION_EXPORT double msgpackVersionNumber;
//! Project version string for msgpack.
FOUNDATION_EXPORT const unsigned char msgpackVersionString[];
// In this header, ... | //
// msgpack.h
// msgpack
//
// Created by Ricardo Pereira on 13/10/2017.
//
//
#import <Foundation/Foundation.h>
//! Project version number for msgpack.
FOUNDATION_EXPORT double msgpackVersionNumber;
//! Project version string for msgpack.
FOUNDATION_EXPORT const unsigned char msgpackVersionString[];
// In thi... | Remove UIKit usage by replacing it with Foundation | Remove UIKit usage by replacing it with Foundation
| C | apache-2.0 | rvi/msgpack-objective-C,rvi/msgpack-objective-C,rvi/msgpack-objective-C |
7635604e1ee2f7537c01a23a00b7d69d43c6f9df | test/test-env.c | test/test-env.c | #include <stdio.h>
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <env.h>
int main(int argc, char** argv) {
char** env = malloc(2 * sizeof(char*));
char* result;
env[0] = "NAME=value";
env[1] = NULL;
result = env_get(env, "NAME");
printf("NAME=%s\n", result);
assert(strcmp(result... | Add a test for `env_get` | [test] Add a test for `env_get`
| C | mit | mmalecki/env,mmalecki/env | |
6611ff0042232589522e2b0f8bfe0f30b67e6d5e | IRCCloud/config.h | IRCCloud/config.h | //
// config.h
// IRCCloud
//
// Created by Sam Steele on 7/13/13.
// Copyright (c) 2013 IRCCloud, Ltd. All rights reserved.
//
#ifndef IRCCloud_config_h
#define IRCCloud_config_h
#define HOCKEYAPP_TOKEN nil
#define CRASHLYTICS_TOKEN nil
#define CRASHLYTICS_SECRET nil
#endif
| //
// config.h
// IRCCloud
//
// Created by Sam Steele on 7/13/13.
// Copyright (c) 2013 IRCCloud, Ltd. All rights reserved.
//
#ifndef IRCCloud_config_h
#define IRCCloud_config_h
#endif
| Remove nil tokens from conf | Remove nil tokens from conf
| C | apache-2.0 | irccloud/ios,irccloud/ios,irccloud/ios,iOSTestApps/irccloud-ios,DreamHill/ios,irccloud/ios,irccloud/ios |
9ee259d9a29d83d79d912d1716b4044c63e90343 | tests/unit/glkunit.h | tests/unit/glkunit.h | #ifndef GLKUNIT_H
#define GLKUNIT_H
#include <stdio.h>
#define _BEGIN do {
#define _END } while(0);
/* msg must be a string literal */
#define _ASSERT(expr, msg, ...) _BEGIN \
if( !(expr) ) { \
fprintf(stderr, "Assertion failed: " msg "\n", __VA_ARGS__); \
return 0; \
} _END
#define SUCCEED ... | #ifndef GLKUNIT_H
#define GLKUNIT_H
#include <stdio.h>
#define _BEGIN do {
#define _END } while(0);
/* msg must be a string literal */
#define _ASSERT(expr, msg, ...) _BEGIN \
if( !(expr) ) { \
fprintf(stderr, "Assertion failed: " msg "\n", __VA_ARGS__); \
return 0; \
} _END
#define SUCCEED ... | Print more informative assert message | Print more informative assert message
ASSERT_EQUAL() is for int-like types that will print with %d.
| C | bsd-3-clause | wmvanvliet/Chimara,wmvanvliet/Chimara,wmvanvliet/Chimara,wmvanvliet/Chimara,wmvanvliet/Chimara |
1fd63e3c050a4f111b3d16e57ff1486b8b4cd1d2 | test/small2/union6.c | test/small2/union6.c | #include "../small1/testharness.h"
// NUMERRORS 1
union {
struct {
int *a, *b;
} f1;
int f2;
} __TAGGED u;
int i;
int main() {
u.f2 = 5; // now u.f1.a = 5
u.f1.b = &i; // now the tag says that u.f1 is active
i = * u.f1.a; //ERROR(1): Null-pointer
}
| #include "../small1/testharness.h"
// NUMERRORS 1
union {
struct {
int *a, *b;
} f1;
int f2;
} __TAGGED u;
int i;
int main() {
u.f2 = 5; // now u.f1.a = 5
u.f1.b = &i; // now the tag says that u.f1 is active
i = * u.f1.a; //ERROR(1): Null pointer
}
| Fix a soundness bug in tagged unions that have fields larger than one word. This fix uses memset to clear such fields, although we could probably optimize this if needed. | Fix a soundness bug in tagged unions that have fields larger than one word. This fix uses memset to clear such fields, although we could probably optimize this if needed.
| C | bsd-3-clause | samuelhavron/obliv-c,samuelhavron/obliv-c,samuelhavron/obliv-c,samuelhavron/obliv-c |
2ceeda7df57fe3b8b438c509a33585efbcbd6f80 | virvo/virvo/private/vvmessages.h | virvo/virvo/private/vvmessages.h | // Virvo - Virtual Reality Volume Rendering
// Copyright (C) 1999-2003 University of Stuttgart, 2004-2005 Brown University
// Contact: Jurgen P. Schulze, jschulze@ucsd.edu
//
// This file is part of Virvo.
//
// Virvo is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser Genera... | Add a utility header for virvo::Message. | Add a utility header for virvo::Message.
Defines some structs wrapping multiple objects which make working
with virvo::Message easier.
TODO: Rewrite virvo::Message.
| C | lgpl-2.1 | deskvox/deskvox,deskvox/deskvox,deskvox/deskvox,deskvox/deskvox,deskvox/deskvox | |
661a72f697ab5a4a5b3e78194181ae90391b97ad | pkg/stis/calstis/include/stisversion.h | pkg/stis/calstis/include/stisversion.h | /* This string is written to the output primary header as CAL_VER. */
# define STIS_CAL_VER "2.28 (09-March-2010) cfitsio test"
| /* This string is written to the output primary header as CAL_VER. */
# define STIS_CAL_VER "2.29 (24-March-2010) cfitsio test"
| Change the version number and date. | Change the version number and date.
git-svn-id: cc674101e2b794ddc2100b657215d55256e3fd48@8968 fe389314-cf27-0410-b35b-8c050e845b92
| C | bsd-3-clause | jhunkeler/hstcal,jhunkeler/hstcal,jhunkeler/hstcal |
a52a248ec8d38168dd15989ec6daacad1d43bdbb | test/Driver/amdgpu-toolchain.c | test/Driver/amdgpu-toolchain.c | // RUN: %clang -### -target amdgcn--amdhsa -x assembler -mcpu=kaveri %s 2>&1 | FileCheck -check-prefix=AS_LINK %s
// AS_LINK-LABEL: clang
// AS_LINK: "-cc1as"
// AS_LINK-LABEL: lld
// AS_LINK: "-flavor" "gnu" "-target" "amdgcn--amdhsa"
// REQUIRES: clang-driver
| // RUN: %clang -### -target amdgcn--amdhsa -x assembler -mcpu=kaveri %s 2>&1 | FileCheck -check-prefix=AS_LINK %s
// AS_LINK: /clang
// AS_LINK-SAME: "-cc1as"
// AS_LINK: /lld
// AS_LINK-SAME: "-flavor" "gnu" "-target" "amdgcn--amdhsa"
| Fix test to pass when the directory name has lld in it. | Fix test to pass when the directory name has lld in it.
CHECK-LABEL assumes that there is only one occurrence of the match.
The output looks like:
clang version 3.8.0 (trunk 247999)
....
/path/to/build/dir/bin/clang-3.8 ....
If the path contains lld, the second CHECK-LABEL matches it and we fail since
there is no -... | C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/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,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl... |
bc4ecce4a99d230fe3e17861ebe54b3622e61335 | include/llvm/Transforms/Instrumentation/TraceValues.h | include/llvm/Transforms/Instrumentation/TraceValues.h | // $Id$ -*-c++-*-
//***************************************************************************
// File:
// TraceValues.h
//
// Purpose:
// Support for inserting LLVM code to print values at basic block
// and method exits. Also exports functions to create a call
// "printf" instruction with one of the... | Insert code to trace values at basic block and method exits. | Insert code to trace values at basic block and method exits.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@801 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,dslab-epfl/... | |
acf0dedb0e15ebb0cc98df0e00a1e7616dc16f4e | src/xdictlib.h | src/xdictlib.h |
#ifndef H_XDICTLIB
#define H_XDICTLIB
#ifdef __cplusplus
extern "C" {
#endif
#include <stdlib.h>
/*
The |xdict| interface.
*/
#define XDICT_MAXLENGTH 10 /* 0..9 characters */
struct xdict {
struct word_entry *words[XDICT_MAXLENGTH];
size_t cap[XDICT_MAXLENGTH];
size_t len[XDICT_MAXLENGTH];
... |
#ifndef H_XDICTLIB
#define H_XDICTLIB
#ifdef __cplusplus
extern "C" {
#endif
#include <stdlib.h>
/*
The |xdict| interface.
*/
#define XDICT_MAXLENGTH 16 /* 0..15 characters */
struct xdict {
struct word_entry *words[XDICT_MAXLENGTH];
size_t cap[XDICT_MAXLENGTH];
size_t len[XDICT_MAXLENGTH];
... | Increase XDICT_MAXLENGTH from 9+1 to 15+1. | Increase XDICT_MAXLENGTH from 9+1 to 15+1.
| C | mit | Quuxplusone/xword |
8e335e624ff0d5fd175459f3fc7daa6fc1b8b1f5 | examples/traverse.c | examples/traverse.c | #include <stdio.h>
typedef struct {
int **y;
int *x;
} _inner;
typedef _inner inner;
typedef struct {
int *g;
inner in[3];
} outer;
void traverse(outer *o) {
static int sss = 5;
inner *in = &(o->in[0]);
for (size_t i = 0; i < 3; i++) {
in->x = &sss;
in++;
sss +=... | Add inner struct iteration example | Add inner struct iteration example
| C | mit | plast-lab/llvm-datalog,plast-lab/cclyzer | |
2b803a4d6e2f425633eabf2a364ffd9972a1b3d0 | src/Divider.h | src/Divider.h | #ifndef DIVIDER_H
#define DIVIDER_H
class Divider {
public:
Divider(int interval = 1) {
setInterval(interval);
}
void setInterval(int interval) {
this->interval = interval;
clockCounter = interval - 1;
}
void tick() {
clockCounter++;
if (clockCounter == interval) {
clockCounter = 0;
}
... | #ifndef DIVIDER_H
#define DIVIDER_H
class Divider {
public:
Divider(int interval = 1) {
setInterval(interval);
reset();
}
void setInterval(int interval) {
if (interval < 1) {
resetValue = 0;
}
else {
resetValue = interval - 1;
}
}
void reset() {
clockCounter = resetValue;
}
... | Rewrite divider to change interval without resetting it | Rewrite divider to change interval without resetting it
| C | mit | scottjcrouch/ScootNES,scottjcrouch/ScootNES,scottjcrouch/ScootNES |
02768e952fd7f1789b146ebbfdc6ecdd54e3f72a | UIforETW/Version.h | UIforETW/Version.h | #pragma once
// const float in a header file can lead to duplication of the storage
// but I don't really care in this case. Just don't do it with a header
// that is included hundreds of times.
const float kCurrentVersion = 1.48f;
// Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version
// incr... | #pragma once
// const float in a header file can lead to duplication of the storage
// but I don't really care in this case. Just don't do it with a header
// that is included hundreds of times.
const float kCurrentVersion = 1.49f;
// Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version
// incr... | Increment version number to 1.49 | Increment version number to 1.49
| C | apache-2.0 | google/UIforETW,mwinterb/UIforETW,mwinterb/UIforETW,ariccio/UIforETW,mwinterb/UIforETW,google/UIforETW,ariccio/UIforETW,ariccio/UIforETW,google/UIforETW,google/UIforETW,ariccio/UIforETW |
619091d3ae52943e7dfd093073eb4027146e093f | platform/VersatilePB/srcs/poweroff.c | platform/VersatilePB/srcs/poweroff.c | /*
* copyright 2015 wink saville
*
* licensed under the apache license, version 2.0 (the "license");
* you may not use this file except in compliance with the license.
* you may obtain a copy of the license at
*
* http://www.apache.org/licenses/license-2.0
*
* unless required by applicable law or agreed to... | /*
* copyright 2015 wink saville
*
* licensed under the apache license, version 2.0 (the "license");
* you may not use this file except in compliance with the license.
* you may obtain a copy of the license at
*
* http://www.apache.org/licenses/license-2.0
*
* unless required by applicable law or agreed to... | Make the registers address point to volatile memory. | Make the registers address point to volatile memory.
| C | apache-2.0 | winksaville/sadie,winksaville/sadie |
9dc6b784c3c1a4c800ee111e2d317d2ddd02fb2b | src/HDD/FileSystem.h | src/HDD/FileSystem.h | #ifndef FILESYSTEM_H
#define FILESYSTEM_H
#include "Partition.h"
#include <vector>
#include <string>
class Directory;
enum class FileType {
File, Directory
};
class File : public HDDBytes {
std::string _name;
public:
std::string getName(){return _name;}
//virtual void setName(const std::string& ... | #ifndef FILESYSTEM_H
#define FILESYSTEM_H
#include "Partition.h"
#include <vector>
#include <string>
class Directory;
enum class FileType {
File, Directory
};
class File : public HDDBytes {
public:
virtual FileType getType();
virtual Directory * dir() {return nullptr;};
};
class Directory : public ... | Remove unused methods in File | Remove unused methods in File
| C | mit | TWal/ENS_sysres,TWal/ENS_sysres,TWal/ENS_sysres,TWal/ENS_sysres |
03e4a15a06dc49f066d3ead31abec4fb28ac4704 | include/symbol.h | include/symbol.h | #ifndef SCC_SYMBOL_HEADER
#define SCC_SYMBOL_HEADER
#include "syntax.h"
typedef struct Symbol
{
int level;
char *name;
// used in semantic analysis
Syntax * declaration;
// used in intermediate code generation
char *var_name;
} Symbol;
Symbol * symbol_new();
void symbol_delete(Symbol * sym... | #ifndef SCC_SYMBOL_HEADER
#define SCC_SYMBOL_HEADER
#include "syntax.h"
typedef struct Symbol
{
int level;
char *name;
union
{
// used in semantic analysis
Syntax * declaration;
// used in intermediate code generation
char *var_name;
// used in target code ge... | Add a member for target code generation. | Add a member for target code generation.
| C | mit | RyanWangGit/scc |
73e462ea03a4b93d911020d5f9cf0a0cb3f4e286 | src/engine/entity/include/halley/entity/entity_id.h | src/engine/entity/include/halley/entity/entity_id.h | #pragma once
#include <cstdint>
#include "halley/bytes/config_node_serializer.h"
namespace Halley {
class World;
struct alignas(8) EntityId {
int64_t value;
EntityId() : value(-1) {}
explicit EntityId(const String& str);
bool isValid() const { return value != -1; }
bool operator==(const EntityId& othe... | #pragma once
#include <cstdint>
#include "halley/bytes/config_node_serializer.h"
namespace Halley {
class World;
struct alignas(8) EntityId {
int64_t value;
EntityId(int64_t value = -1) : value(value) {}
explicit EntityId(const String& str);
bool isValid() const { return value != -1; }
bool operator==... | Allow creating EntityId directly from int64_t | Allow creating EntityId directly from int64_t
| C | apache-2.0 | amzeratul/halley,amzeratul/halley,amzeratul/halley |
e3782eb8f2e649d1f6eaa00aa5f966a74d564d5d | src/brpc/session_log.h | src/brpc/session_log.h | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | Add SessionLog to remember session-level kv | Add SessionLog to remember session-level kv
| C | apache-2.0 | brpc/brpc,brpc/brpc,brpc/brpc,brpc/brpc,brpc/brpc | |
b2719779033044ea4d5fd85660c5ff44338cb6fe | graphgolf/graph.h | graphgolf/graph.h | #include "base/base.h"
class Graph {
public:
typedef int16_t Node;
typedef int16_t Degree;
Graph(Node order, Degree degree)
: order_(order),
degree_(degree),
edges_(order * degree, -1) {}
inline Node order() { return order_; }
inline Degree degree() { return degree_; }
// Returns ... | #include "base/base.h"
class Graph {
public:
typedef int16_t Node;
typedef int16_t Degree;
Graph(Node order, Degree degree)
: order_(order),
degree_(degree),
edges_(order * degree, -1) {}
inline Node order() { return order_; }
inline Degree degree() { return degree_; }
// Returns ... | Update the comment for Graph::GetEdge. | Update the comment for Graph::GetEdge.
| C | mit | imos/graphgolf,imos/graphgolf,imos/graphgolf |
129344a783dc4f410f2afb6273a043628cb0a846 | config.h | config.h | #ifndef CJET_CONFIG_H
#define CJET_CONFIG_H
#define SERVER_PORT \
11122
#define LISTEN_BACKLOG \
40
#define MAX_MESSAGE_SIZE \
250
/* Linux specific configs */
#define MAX_EPOLL_EVENTS \
100
#endif
| #ifndef CJET_CONFIG_H
#define CJET_CONFIG_H
#define SERVER_PORT \
11122
#define LISTEN_BACKLOG \
40
#define MAX_MESSAGE_SIZE \
256
/* Linux specific configs */
#define MAX_EPOLL_EVENTS \
100
#endif
| Change MAX_BUFFER_SIZE to something that is 32 bit aligned. | Change MAX_BUFFER_SIZE to something that is 32 bit aligned.
| C | mit | gatzka/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,mloy/cjet,gatzka/cjet,mloy/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet |
7293630908ab9fce7a0e23ca32fee5924bf7ff74 | include/libc/stdio.h | include/libc/stdio.h | #ifndef _STDIO_H_
#define _STDIO_H_
/**
* \file stdio.h
* \brief This file handle the output to the terminal for the user.
*/
#ifdef __cplusplus
extern "C" {
#endif
#ifndef EOF
#define EOF -1 /*!< End of file value */
#endif
/**
* \brief Print a formatted string
*
* \param[in] format F... | #ifndef _STDIO_H_
#define _STDIO_H_
/**
* \file stdio.h
* \brief This file handle the output to the terminal for the user.
*/
#ifdef __cplusplus
extern "C" {
#endif
#ifndef EOF
#define EOF -1 /*!< End of file value */
#endif
/**
* \brief Print a formatted string
*
* \param[in] format F... | Add signature for sprintf function | feat(sprintf): Add signature for sprintf function
| C | mit | Rarioty/FlowS |
1aa266b2b3406f046e00b65bb747a19c6d4445d7 | src/cons.h | src/cons.h | #ifndef MCLISP_CONS_H_
#define MCLISP_CONS_H_
#include <string>
namespace mclisp
{
class ConsCell
{
public:
ConsCell(): car(nullptr), cdr(nullptr) {}
ConsCell(ConsCell* car, ConsCell* cdr): car(car), cdr(cdr) {}
ConsCell* car;
ConsCell* cdr;
};
bool operator==(const ConsCell& lhs, const ConsCell& r... | #ifndef MCLISP_CONS_H_
#define MCLISP_CONS_H_
#include <string>
namespace mclisp
{
struct ConsCell
{
ConsCell* car;
ConsCell* cdr;
};
typedef struct ConsCell ConsCell;
bool operator==(const ConsCell& lhs, const ConsCell& rhs);
bool operator!=(const ConsCell& lhs, const ConsCell& rhs);
bool operator< (const Con... | Convert ConsCell from class to POD. | Convert ConsCell from class to POD.
| C | mit | appleby/mccarthy-lisp,appleby/mccarthy-lisp,appleby/mccarthy-lisp,appleby/mccarthy-lisp,appleby/mccarthy-lisp |
67c8b90938cc84b1f1f5d9dbe0e84645ba448c5d | src/main.c | src/main.c | #include "config.h"
#include "core/pwm.h"
#include "core/usart.h"
#include <avr/io.h>
#include <util/delay.h>
void delayms(uint16_t millis) {
while ( millis ) {
_delay_ms(1);
millis--;
}
}
int main(void) {
DDRB |= 1<<PB0;
usart_init();
pwm_init();
pwm_set(0);
while(1) {
if(char_fifo_is_empty(usart_recv... | #include "config.h"
#include "core/pwm.h"
#include "core/usart.h"
#include "utils/char_fifo.h"
#include <avr/io.h>
#include <util/delay.h>
void delayms(uint16_t millis) {
while ( millis ) {
_delay_ms(1);
millis--;
}
}
int main(void) {
DDRB |= 1<<PB0;
usart_init();
pwm_init();
pwm_set(0);
char ch;
while(... | Use correct args in usart test | Use correct args in usart test
| C | mit | greghaynes/Convik,greghaynes/Convik |
66e82787c9bf280da5f4f1e6562eff0cd751d9f8 | str.c | str.c | #include <Python.h>
int main(int argc, char *argv[]) {
PyObject *expr[3];
int i, s, e, r;
char *res;
if(argc<5) {
fprintf(stderr,"Usage: <string> <start> <end> <repeat>\n\n\
Print string[start:end]*repeat");
exit(0);
}
s = atoi(argv[2]);
e = atoi(argv[3]);
r = atoi(argv[4]);
expr[0] = PyStri... | #include <Python.h>
int main(int argc, char *argv[]) {
PyObject *expr[3];
int i, s, e, r;
char *res;
if(argc<5) {
fprintf(stderr,"Usage: <string> <start> <end> <repeat>\n\n\
Print string[start:end]*repeat\n");
exit(0);
}
s = atoi(argv[2]);
e = atoi(argv[3]);
r = atoi(argv[4]);
expr[0] = PySt... | Add newline end end of usage | Add newline end end of usage
| C | mit | ein-shved/libpyhon,ein-shved/libpyhon |
605cce4a8b87c2e92fcdd047383997ab1df0178d | src/lib/str-sanitize.c | src/lib/str-sanitize.c | /* Copyright (c) 2004 Timo Sirainen */
#include "lib.h"
#include "str.h"
#include "str-sanitize.h"
void str_sanitize_append(string_t *dest, const char *src, size_t max_len)
{
const char *p;
for (p = src; *p != '\0'; p++) {
if ((unsigned char)*p < 32)
break;
}
str_append_n(dest, src, (size_t)(p - src));
fo... | /* Copyright (c) 2004 Timo Sirainen */
#include "lib.h"
#include "str.h"
#include "str-sanitize.h"
void str_sanitize_append(string_t *dest, const char *src, size_t max_len)
{
const char *p;
for (p = src; *p != '\0'; p++) {
if (((unsigned char)*p & 0x7f) < 32)
break;
}
str_append_n(dest, src, (size_t)(p - s... | Convert also 0x80..0x9f characters to '?' | Convert also 0x80..0x9f characters to '?'
--HG--
branch : HEAD
| C | mit | dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot |
a31814531fae98e97d5f6938ed14e7f161e41a8f | list.h | list.h | #include <stdlib.h>
#ifndef __LIST_H__
#define __LIST_H__
#endif | #include <stdlib.h>
#ifndef __LIST_H__
#define __LIST_H__
struct ListNode;
struct List;
typedef struct ListNode ListNode;
typedef struct List List;
#endif | Add List & ListNode struct declarations | Add List & ListNode struct declarations
| C | mit | MaxLikelihood/CADT |
cae4a5ca43323eb861d702f880a6c62dd5ef4fc5 | test/Sema/attr-print.c | test/Sema/attr-print.c | // RUN: %clang_cc1 %s -ast-print -fms-extensions | FileCheck %s
// FIXME: we need to fix the "BoolArgument<"IsMSDeclSpec">"
// hack in Attr.td for attribute "Aligned".
// CHECK: int x __attribute__((aligned(4, 0)));
int x __attribute__((aligned(4)));
// FIXME: Print this at a valid location for a __declspec attr.
//... | // RUN: %clang_cc1 %s -ast-print -fms-extensions | FileCheck %s
// FIXME: we need to fix the "BoolArgument<"IsMSDeclSpec">"
// hack in Attr.td for attribute "Aligned".
// CHECK: int x __attribute__((aligned(4, 0)));
int x __attribute__((aligned(4)));
// FIXME: Print this at a valid location for a __declspec attr.
//... | Test that we print MS keyword attributes without a __declspec(...) adornment. | Test that we print MS keyword attributes without a __declspec(...) adornment.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@173754 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... |
e7b04e58651772a1356d3a44a9ef9698c85b04bc | tools/halide_image.h | tools/halide_image.h | #ifndef HALIDE_TOOLS_IMAGE_H
#define HALIDE_TOOLS_IMAGE_H
/*
This allows code that relied on halide_image.h and Halide::Tools::Image to
continue to work with newer versions of Halide where HalideBuffer.h and
Halide::Buffer are the way to work with data.
Besides mapping Halide::Tools::Image to Halide::Buffer, it defi... | #ifndef HALIDE_TOOLS_IMAGE_H
#define HALIDE_TOOLS_IMAGE_H
/** \file
*
* This allows code that relied on halide_image.h and
* Halide::Tools::Image to continue to work with newer versions of
* Halide where HalideBuffer.h and Halide::Buffer are the way to work
* with data.
*
* Besides mapping Halide::Tools::Image ... | Reformat comment into Doxygen comment for file. | Reformat comment into Doxygen comment for file.
Former-commit-id: f651d51d97b75f12ba68f1cbfca914724136d121 | C | mit | Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide |
b185c602c375f44bff2c9eb0362d0debbce728fd | K2Status-static-ImportExport/include/k2info.h | K2Status-static-ImportExport/include/k2info.h | #include "k2pktdef.h"
#define TRACE2_STA_LEN 7
#define TRACE2_CHAN_LEN 9 /* 4 bytes plus padding for loc and version */
#define TRACE2_NET_LEN 9
#define TRACE2_LOC_LEN 3
#define K2INFO_TYPE_STRING "TYPE_K2INFO_PACKET"
typedef struct {
char net[TRACE2_NET_LEN]; /* Network name */
char sta[TRACE2_... | #include "k2pktdef.h"
#define TRACE2_STA_LEN 7
#define TRACE2_CHAN_LEN 9 /* 4 bytes plus padding for loc and version */
#define TRACE2_NET_LEN 9
#define TRACE2_LOC_LEN 3
#define K2_TIME_CONV ((unsigned long)315532800)
#define K2INFO_TYPE_STRING "TYPE_K2INFO_PACKET"
typedef struct {
char net[TRACE2_NET_LEN]... | Make 64Bit Friendly, NonStatic for Ubuntu 14.04 delete unneeded files | Make 64Bit Friendly, NonStatic for Ubuntu 14.04 delete unneeded files
| C | lgpl-2.1 | Fran89/K2Status,Fran89/K2Status |
7ff47de1c579051233f28dd03e19755de3549246 | libyara/include/yara/sizedstr.h | libyara/include/yara/sizedstr.h | /*
Copyright (c) 2007-2014. The YARA Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... | /*
Copyright (c) 2007-2014. The YARA Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... | Change type of SIZED_STRING's length to uint32_t | Change type of SIZED_STRING's length to uint32_t
| C | bsd-3-clause | jpypi/yara,VirusTotal/yara,MeteorAdminz/yara,wxsBSD/yara,pombredanne/yara,plusvic/yara,hillu/yara,bmagistro/yara,bmagistro/yara,kallanreed/yara,wxsBSD/yara,plusvic/yara,cblichmann/yara,plusvic/yara,cblichmann/yara,rednaga/yara,hillu/yara,MeteorAdminz/yara,kallanreed/yara,VirusTotal/yara,hillu/yara,jpypi/yara,VirusTotal... |
55d1b6a7f7b1bece532c57cc05eb8b44812ce842 | test/Sema/nonnull-check.c | test/Sema/nonnull-check.c | // RUN: clang-cc -Wnonnull -fsyntax-only -verify %s
extern void func1 (void (^block1)(), void (^block2)(), int) __attribute__((nonnull));
extern void func3 (void (^block1)(), int, void (^block2)(), int)
__attribute__((nonnull(1,3)));
extern void func4 (void (^block1)(), void (^block2)()) __attribute__((nonnull(1))... | // RUN: clang-cc -fblocks -Wnonnull -fsyntax-only -verify %s
extern void func1 (void (^block1)(), void (^block2)(), int) __attribute__((nonnull));
extern void func3 (void (^block1)(), int, void (^block2)(), int)
__attribute__((nonnull(1,3)));
extern void func4 (void (^block1)(), void (^block2)()) __attribute__((no... | Add -fblocks for the test. | Add -fblocks for the test.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@72280 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl... |
f2f1a9893f57bf9a8aa207e2d3365df4010d28c6 | TDTChocolate/FoundationAdditions/NSFileManager+TDTAdditions.h | TDTChocolate/FoundationAdditions/NSFileManager+TDTAdditions.h | #import <Foundation/Foundation.h>
@interface NSFileManager (TDTAdditions)
/**
@return URL to the any directory which matches the given search path in
the User's domain.
*/
- (NSURL *)userURLForDirectory:(NSSearchPathDirectory)directory;
/**
Creates a temporary file in a suitable temporary directory.
T... | #import <Foundation/Foundation.h>
@interface NSFileManager (TDTAdditions)
/**
@return URL to the any directory which matches the given search path in
the User's domain.
*/
- (NSURL *)userURLForDirectory:(NSSearchPathDirectory)directory;
/**
Creates a temporary file in a suitable temporary directory.
Th... | Remove trailing spaces from documentation comments | Remove trailing spaces from documentation comments
| C | bsd-3-clause | talk-to/Chocolate,talk-to/Chocolate |
b48f26eac7e5f2369cce423668d1554b3a682969 | kilo.c | kilo.c | int main() {
return 0;
}
| #include <unistd.h>
int main() {
char c;
while (read(STDIN_FILENO, &c, 1) == 1);
return 0;
}
| Read keypresses from the user | Read keypresses from the user
| C | bsd-2-clause | oldsharp/kilo,oldsharp/kilo |
4b7b88b94b98233ae714d8466ee86876fe9f3e42 | elsa/xml_lexer.h | elsa/xml_lexer.h | // xml_lexer.h see license.txt for copyright and terms of use
#ifndef XML_LEXER_H
#define XML_LEXER_H
#include <stdio.h>
#include "fstream.h" // ifstream
#include "str.h" // string
#include "sm_flexlexer.h" // yyFlexLexer
#include "baselexer.h" // FLEX_OUTPUT_METHOD... | // xml_lexer.h see license.txt for copyright and terms of use
#ifndef XML_LEXER_H
#define XML_LEXER_H
#include <stdio.h>
#include "fstream.h" // ifstream
#include "str.h" // string
#include "sm_flexlexer.h" // yyFlexLexer
#include "baselexer.h" // FLEX_OUTPUT_METHOD... | Fix bug where XmlLexer::restart() doesn't reset sawEof | Fix bug where XmlLexer::restart() doesn't reset sawEof
| C | bsd-3-clause | angavrilov/olmar,angavrilov/olmar,angavrilov/olmar,angavrilov/olmar |
702252414662d8e63f33715261399c8cc8a4767a | src/GameAsset.h | src/GameAsset.h | #ifndef GAMEASSET_H
#define GAMEASSET_H
#include <GL/gl.h>
class GameAsset {
public:
virtual void Draw(GLuint) = 0;
};
#endif
| #ifndef GAMEASSET_H
#define GAMEASSET_H
#include <iostream>
#include <GL/gl.h>
class GameAsset {
public:
virtual void Draw(GLuint) = 0;
};
#endif
| Include cerr and endl in CubeAsset | Include cerr and endl in CubeAsset
| C | mit | XenoWarrior/CI224-GamesDevelopment,XenoWarrior/CI224-GamesDevelopment,XenoWarrior/CI224-GamesDevelopment,XenoWarrior/CI224-GamesDevelopment,XenoWarrior/CI224-GamesDevelopment |
6506bf4e205944a671ddcc148a88273ddce92409 | Problem_9/Problem_9.c | Problem_9/Problem_9.c | #include "stdio.h"
#include "stdbool.h"
bool checkPythagoreanTriplet (int a, int b, int c);
bool checkPythagoreanTriplet (int a, int b, int c) {
if((a*a) + (b*b) == (c*c)) {
return true;
} else {
return false;
}
}
int main(int argc, char const *argv[]) {
int i;
int j;
int k;
... | #include "stdio.h"
#include "stdbool.h"
bool checkPythagoreanTriplet(int a, int b, int c);
bool checkPythagoreanTriplet(int a, int b, int c)
{
if ((a * a) + (b * b) == (c * c))
{
return true;
}
else
{
return false;
}
}
int main(int argc, char const *argv[])
{
int i;
int j;
int k... | Update format for Problem 9 | Update format for Problem 9
| C | mit | goparakeets21/Project_Euler |
7c634a04a23171cc2356e3129fb16b8e9da3bf00 | test/Sema/crash-invalid-array.c | test/Sema/crash-invalid-array.c | // RUN: not %clang_cc1 -O1 %s -emit-llvm
// PR6913
#include <stdio.h>
int main()
{
int x[10][10];
int (*p)[] = x; // expected-error {{invalid use of array with unspecified bounds}
int i;
for(i = 0; i < 10; ++i)
{
p[i][i] = i;
}
}
| Bring over a test from llvm/test/FrontendC that is for Sema and not CodeGen. | Bring over a test from llvm/test/FrontendC that is for Sema and not CodeGen.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@135753 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... | |
69051267d34c7d9ecfd9a947d762fc88d69f8822 | src/Ultrasonick.h | src/Ultrasonick.h | /*
Ultrasonick.h - Library for HC-SR04 Ultrasonic Ranging Module in a minimalist way.
Created by EricK Simoes (@AloErickSimoes), April 3, 2014.
Released into the Creative Commons Attribution-ShareAlike 4.0 International.
*/
#ifndef Ultrasonick_h
#define Ultrasonick_h
#if (ARDUINO >= 100)
#include "Arduino.h"
... | /*
Ultrasonick.h - Library for HC-SR04 Ultrasonic Ranging Module in a minimalist way.
Created by EricK Simoes (@AloErickSimoes), April 3, 2014.
Released into the Creative Commons Attribution-ShareAlike 4.0 International.
*/
#ifndef Ultrasonick_h
#define Ultrasonick_h
#define CM 1
#define INC 0
/**
* TODO: Remo... | Remove duplicate include from Arduino.h | Fix: Remove duplicate include from Arduino.h
The include is only required in the .cpp file.
Resolves: #18
| C | mit | ErickSimoes/Ultrasonic |
7e3f93541e937d886652a8c16873efd93d98230b | src/win32port.h | src/win32port.h | #ifndef NINJA_WIN32PORT_H_
#define NINJA_WIN32PORT_H_
#pragma once
/// A 64-bit integer type
typedef unsigned long long int64_t;
typedef unsigned long long uint64_t;
#endif // NINJA_WIN32PORT_H_ | #ifndef NINJA_WIN32PORT_H_
#define NINJA_WIN32PORT_H_
#pragma once
/// A 64-bit integer type
typedef signed long long int64_t;
typedef unsigned long long uint64_t;
#endif // NINJA_WIN32PORT_H_
| Add new line to new file | Add new line to new file
| C | apache-2.0 | nico/ninja,colincross/ninja,chenyukang/ninja,kissthink/ninja,mydongistiny/ninja,maruel/ninja,mohamed/ninja,ukai/ninja,PetrWolf/ninja-main,mutac/ninja,nornagon/ninja,mathstuf/ninja,mgaunard/ninja,pathscale/ninja,ctiller/ninja,ctiller/ninja,lizh06/ninja,mdempsky/ninja,hnney/ninja,barak/ninja,syntheticpp/ninja,tychoish/ni... |
6e9096519e0ac3db0e92bafb43ad81c8040dc64c | src/CopyDevice.h | src/CopyDevice.h | #pragma once
#ifndef COPYFS_LIB_COPYDEVICE_H_
#define COPYFS_LIB_COPYDEVICE_H_
#include <boost/filesystem.hpp>
#include <messmer/fspp/fs_interface/Device.h>
#include "messmer/cpp-utils/macros.h"
namespace copyfs {
namespace bf = boost::filesystem;
class CopyDevice: public fspp::Device {
public:
CopyDevice(const ... | #pragma once
#ifndef COPYFS_LIB_COPYDEVICE_H_
#define COPYFS_LIB_COPYDEVICE_H_
#include <boost/filesystem.hpp>
#include <messmer/fspp/fs_interface/Device.h>
#include "messmer/cpp-utils/macros.h"
namespace copyfs {
namespace bf = boost::filesystem;
class CopyDevice: public fspp::Device {
public:
explicit CopyDevi... | Make constructors explicit where adequate | Make constructors explicit where adequate
| C | apache-2.0 | cryfs/copyfs |
c521df5dcf7410898cabdcb556f919535cf16d19 | include/msvc_compat/C99/stdbool.h | include/msvc_compat/C99/stdbool.h | #ifndef stdbool_h
#define stdbool_h
#include <wtypes.h>
/* MSVC doesn't define _Bool or bool in C, but does have BOOL */
/* Note this doesn't pass autoconf's test because (bool) 0.5 != true */
typedef BOOL _Bool;
#define bool _Bool
#define true 1
#define false 0
#define __bool_true_false_are_defined 1
#endif /* st... | #ifndef stdbool_h
#define stdbool_h
#include <wtypes.h>
/* MSVC doesn't define _Bool or bool in C, but does have BOOL */
/* Note this doesn't pass autoconf's test because (bool) 0.5 != true */
/* Clang-cl uses MSVC headers, so needs msvc_compat, but has _Bool as
* a built-in type. */
#ifndef __clang__
typedef BOOL _... | Allow to build with clang-cl | Allow to build with clang-cl
| C | bsd-2-clause | ahmetmircik/jemalloc,leebaok/jemalloc-4.2.1-readcode,kmiku7/jemalloc,cpeterso/jemalloc,cpeterso/jemalloc,shekkbuilder/jemalloc,ahmetmircik/jemalloc,lilothar/jemalloc,TeamExodus/external_jemalloc,wqfish/jemalloc,awreece/jemalloc,jemalloc/jemalloc-cmake,tempbottle/jemalloc,wespelee/jemalloc,VRToxin/android_external_jemal... |
1554603f805eb2efb4757937b99092c7aa0d3aee | Graphics/SettingsDialog.h | Graphics/SettingsDialog.h | /* Copyright (c) nasser-sh 2016
*
* Distributed under BSD-style license. See accompanying LICENSE.txt in project
* directory.
*/
#pragma once
#include <afxwin.h>
#include "resource.h"
namespace graphics
{
class CGraphicsApp;
class CSettingsDialog : public CDialog
{
public:
enum { IDD =... | /* Copyright (c) nasser-sh 2016
*
* Distributed under BSD-style license. See accompanying LICENSE.txt in project
* directory.
*/
#pragma once
#include <afxwin.h>
#include "resource.h"
namespace graphics
{
class CGraphicsApp;
class CSettingsDialog : public CDialog
{
public:
enum { IDD =... | Remove unused attribute from Settings Dialog | Remove unused attribute from Settings Dialog
| C | bsd-3-clause | nasser-sh/MFC-Samples,nasser-sh/MFC-Samples,nasser-sh/MFC-Samples,nasser-sh/MFC-Samples |
18b60de4226ffd9add2643b2073969e1dceb6635 | HTCopyableLabelDemo/HTCopyableLabel.h | HTCopyableLabelDemo/HTCopyableLabel.h | //
// HTCopyableLabel.h
// HotelTonight
//
// Created by Jonathan Sibley on 2/6/13.
// Copyright (c) 2013 Hotel Tonight. All rights reserved.
//
#import <UIKit/UIKit.h>
@class HTCopyableLabel;
@protocol HTCopyableLabelDelegate <NSObject>
@optional
- (NSString *)stringToCopyForCopyableLabel:(HTCopyableLabel *)co... | //
// HTCopyableLabel.h
// HotelTonight
//
// Created by Jonathan Sibley on 2/6/13.
// Copyright (c) 2013 Hotel Tonight. All rights reserved.
//
@class HTCopyableLabel;
@protocol HTCopyableLabelDelegate <NSObject>
@optional
- (NSString *)stringToCopyForCopyableLabel:(HTCopyableLabel *)copyableLabel;
- (CGRect)co... | Remove UIKit import to (hopefully) fix cocoapods travis-CI build | Remove UIKit import to (hopefully) fix cocoapods travis-CI build
| C | mit | hoteltonight/HTCopyableLabel |
f622310d2f63f1842f986448a67483be9aefdec1 | webkit/fileapi/quota_file_util.h | webkit/fileapi/quota_file_util.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_FILEAPI_QUOTA_FILE_UTIL_H_
#define WEBKIT_FILEAPI_QUOTA_FILE_UTIL_H_
#include "webkit/fileapi/file_system_file_util.h"
#include "webki... | // 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_FILEAPI_QUOTA_FILE_UTIL_H_
#define WEBKIT_FILEAPI_QUOTA_FILE_UTIL_H_
#include "webkit/fileapi/file_system_file_util.h"
#include "webki... | Add virtual in QuitaFileUtil to fix the compilation error in r82441. | Add virtual in QuitaFileUtil to fix the compilation error in r82441.
TBR=dmikurube,kinuko
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6882112
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@82445 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | ChromiumWebApps/chromium,nacl-webkit/chrome_deps,dushu1203/chromium.src,zcbenz/cefode-chromium,hujiajie/pa-chromium,robclark/chromium,dednal/chromium.src,M4sse/chromium.src,littlstar/chromium.src,Jonekee/chromium.src,dednal/chromium.src,dushu1203/chromium.src,Pluto-tv/chromium-crosswalk,junmin-zhu/chromium-rivertrail,r... |
dd9777220347843feb5f74e2d48ae62082936649 | jni/ru_exlmoto_spout_SpoutNativeLibProxy.h | jni/ru_exlmoto_spout_SpoutNativeLibProxy.h | /* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class ru_exlmoto_spout_SpoutNativeLibProxy */
#ifndef _Included_ru_exlmoto_spout_SpoutNativeLibProxy
#define _Included_ru_exlmoto_spout_SpoutNativeLibProxy
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: ru_exlmoto_spout_Spout... | Add machine generated JNI header | Add machine generated JNI header
command:
javah -jni -d jni -classpath src \
ru.exlmoto.spout.SpoutNativeLibProxy
| C | mit | EXL/Spout,EXL/Spout,EXL/Spout | |
5edb41c49e77f1174d177c18765117d95d8fe626 | Settings/Updater/Version.h | Settings/Updater/Version.h | #pragma once
#include <string>
struct Version {
public:
Version(int major = 0, int minor = 0, int revision = 0) :
_major(major),
_minor(minor),
_revision(revision) {
}
const int Major() { return _major; }
const int Minor() { return _minor; }
const int Revision() { return _revision; }... | #pragma once
#include <string>
struct Version {
public:
Version(int major = 0, int minor = 0, int revision = 0) :
_major(major),
_minor(minor),
_revision(revision) {
}
const int Major() { return _major; }
const int Minor() { return _minor; }
const int Revision() { return _revision; }... | Add convenience function to calculate the integer representation of the version | Add convenience function to calculate the integer representation of the version
| C | bsd-2-clause | malensek/3RVX,malensek/3RVX,malensek/3RVX |
6124cff77065f8dbc06ba9a381286155d199ce6a | config.h | config.h | #ifndef CJET_CONFIG_H
#define CJET_CONFIG_H
#define SERVER_PORT 7899
#define LISTEN_BACKLOG 40
#define MAX_MESSAGE_SIZE 128
/* Linux specific configs */
#define MAX_EPOLL_EVENTS 100
#endif
| #ifndef CJET_CONFIG_H
#define CJET_CONFIG_H
#define SERVER_PORT 11122
#define LISTEN_BACKLOG 40
#define MAX_MESSAGE_SIZE 128
/* Linux specific configs */
#define MAX_EPOLL_EVENTS 100
#endif
| Change server port to the correct jet port. | Change server port to the correct jet port.
| C | mit | gatzka/cjet,gatzka/cjet,mloy/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,mloy/cjet,gatzka/cjet,mloy/cjet |
58891e06f5ecae32726cd126ca5e66f5f9e33485 | core/core.c | core/core.c | #include <uEye.h>
#include "core.h"
#if PY_MAJOR_VERSION >= 3
/*
* This is only needed for Python3
* IDS module initialization
* Based on https://docs.python.org/3/extending/extending.html#the-module-s-method-table-and-initialization-function
*/
static struct PyModuleDef idsModule = {
PyModuleDef_HEAD_INIT,
... | #include <uEye.h>
#include "core.h"
#if PY_MAJOR_VERSION >= 3
/*
* This is only needed for Python3
* IDS module initialization
* Based on https://docs.python.org/3/extending/extending.html#the-module-s-method-table-and-initialization-function
*/
static struct PyModuleDef idsModule = {
PyModuleDef_HEAD_INIT,
... | Fix linker error by changing init function names to represent module names | Fix linker error by changing init function names to represent module names
| C | mit | FrostadResearchGroup/IDS,FrostadResearchGroup/IDS |
a0cf73a4f8db9c8c292831902ec2ea60d0c58cae | firmware/usb.h | firmware/usb.h | #ifndef USB_H
#define USB_H
void setup_usb();
void usb_interrupt_handler();
#endif
| #ifndef USB_H
#define USB_H
#define PHYS_ADDR(VIRTUAL_ADDR) (unsigned int)(VIRTUAL_ADDR)
#define EP0_BUFLEN 8
#define EP1_BUFLEN 8
#define USB_PID_SETUP 0x0d
#define USB_REQ_GET_DESCRIPTOR 0x06
#define USB_GET_DEVICE_DESCRIPTOR 0x01
#define USB_GET_CONFIG_DESCRIPTOR 0x02
#def... | Add macros for setting Endpoint buffers length, | Add macros for setting Endpoint buffers length,
Define some USB magic values
Export two fonctions for the main loop
| C | mit | macareux-labs/hyg-usb_firmware,macareux-labs/hyg-usb_firmware |
63eaf55f3ec45366e1ef5dab02f1d98a096d1ea2 | dashboard.h | dashboard.h | #ifndef DASHBOARD_H
#define DASHBOARD_H
#include <sys/types.h>
#include "src/process/process.h"
#include "src/system/sys_stats.h"
typedef struct {
int max_x;
int max_y;
int prev_x;
int prev_y;
char *fieldbar;
sysaux *system;
ps_node *process_list;
Tree *process_tree;
} Board;
vo... | #ifndef DASHBOARD_H
#define DASHBOARD_H
#include <sys/types.h>
#include "src/process/process.h"
#include "src/system/sys_stats.h"
typedef struct {
int max_x;
int max_y;
int prev_x;
int prev_y;
char *fieldbar;
sysaux *system;
ps_node *process_list;
Tree *process_tree;
} Board;
vo... | Remove static declaration of line diff | Remove static declaration of line diff
| C | mit | tijko/dashboard |
c24576e6e6c440898788d5874f80e8ca74316f08 | src/public/WRLDRoutingService.h | src/public/WRLDRoutingService.h | #pragma once
#import "WRLDRoutingQuery.h"
#import "WRLDRoutingQueryOptions.h"
NS_ASSUME_NONNULL_BEGIN
/*!
A service which allows you to find routes between locations. Created by the createRoutingService
method of the WRLDMapView object.
This is an Objective-c interface to the WRLD Routing REST API (https://githu... | #pragma once
#import "WRLDRoutingQuery.h"
#import "WRLDRoutingQueryOptions.h"
NS_ASSUME_NONNULL_BEGIN
/*!
A service which allows you to find routes between locations. Created by the createRoutingService
method of the WRLDMapView object.
This is an Objective-c interface to the [WRLD Routing REST API](https://gith... | Fix for [MPLY-9800]. Doc string didn't link correctly. Buddy: Sam A. | Fix for [MPLY-9800]. Doc string didn't link correctly.
Buddy: Sam A.
| C | bsd-2-clause | wrld3d/ios-api,wrld3d/ios-api,wrld3d/ios-api,wrld3d/ios-api |
0dbf3c5578ad9334c98a2099c2bdac68ebeab933 | pratica-07/soluc.c | pratica-07/soluc.c | #include "local.h"
float soluc(float x, float y)
{
float r;
r = sqrt(x * x + y * y);
return r;
}
float radians_degrees(float degrees)
{
return degrees*180/PI;
}
float degrees_radians(float radians)
{
return radians*PI/180;
}
| Add funcoes para converter graus <-> rad | Add funcoes para converter graus <-> rad
| C | mit | tonussi/freezing-dubstep,tonussi/freezing-dubstep,tonussi/freezing-dubstep | |
af6a25f0e1ec0265c267e6ee4513925eaba6d0ed | arch/x86/include/asm/mmu.h | arch/x86/include/asm/mmu.h | #ifndef _ASM_X86_MMU_H
#define _ASM_X86_MMU_H
#include <linux/spinlock.h>
#include <linux/mutex.h>
/*
* The x86 doesn't have a mmu context, but
* we put the segment information here.
*/
typedef struct {
void *ldt;
int size;
struct mutex lock;
void *vdso;
#ifdef CONFIG_X86_64
/* True if mm supports a task run... | #ifndef _ASM_X86_MMU_H
#define _ASM_X86_MMU_H
#include <linux/spinlock.h>
#include <linux/mutex.h>
/*
* The x86 doesn't have a mmu context, but
* we put the segment information here.
*/
typedef struct {
void *ldt;
int size;
#ifdef CONFIG_X86_64
/* True if mm supports a task running in 32 bit compatibility mode... | Reorder mm_context_t to remove x86_64 alignment padding and thus shrink mm_struct | x86: Reorder mm_context_t to remove x86_64 alignment padding and thus shrink mm_struct
Reorder mm_context_t to remove alignment padding on 64 bit
builds shrinking its size from 64 to 56 bytes.
This allows mm_struct to shrink from 840 to 832 bytes, so using
one fewer cache lines, and getting more objects per slab when... | C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Program... |
a8053f72e54e41011cad782cb37801dc26af6251 | src/xenia/base/platform_linux.h | src/xenia/base/platform_linux.h | /**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2015 Ben Vanik. All rights reserved. ... | /**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2015 Ben Vanik. All rights reserved. ... | Add xcb headers to linux platform, needed for vulkan | Add xcb headers to linux platform, needed for vulkan
| C | bsd-3-clause | sephiroth99/xenia,sephiroth99/xenia,sephiroth99/xenia |
a2b4a2dcb9d2b009347a838c6f2c3895eb7e23b9 | src/graphics/buffer_lock_manager.h | src/graphics/buffer_lock_manager.h | #ifndef SRC_GRAPHICS_BUFFER_LOCK_MANAGER_H_
#define SRC_GRAPHICS_BUFFER_LOCK_MANAGER_H_
#include <vector>
#include "./gl.h"
namespace Graphics
{
struct BufferRange
{
size_t startOffset;
size_t length;
size_t endOffset() const
{
return startOffset + length;
}
bool overlaps(const BufferRange &other)... | #ifndef SRC_GRAPHICS_BUFFER_LOCK_MANAGER_H_
#define SRC_GRAPHICS_BUFFER_LOCK_MANAGER_H_
#include <vector>
#include "./gl.h"
namespace Graphics
{
/**
* \brief Encapsulates a locked buffer range
*
* It stores the start offset in the buffer and the length of the range.
* The end offset can be retrieved with #endOf... | Add Documentation for BufferLockManger, BufferRange and BufferLock. | Add Documentation for BufferLockManger, BufferRange and BufferLock.
| C | mit | Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller |
229ee65b7c5274857b4bb320231c46dc4c9e828a | pyobjus/_runtime.h | pyobjus/_runtime.h | #include <objc/runtime.h>
#include <objc/message.h>
#include <stdio.h>
#include <dlfcn.h>
#include <string.h>
static void pyobjc_internal_init() {
static void *foundation = NULL;
if ( foundation == NULL ) {
foundation = dlopen(
"/Groups/System/Library/Frameworks/Foundation.framework/Versions/... | #include <objc/runtime.h>
#include <objc/message.h>
#include <stdio.h>
#include <dlfcn.h>
#include <string.h>
static void pyobjc_internal_init() {
static void *foundation = NULL;
if ( foundation == NULL ) {
foundation = dlopen(
"/System/Library/Frameworks/Foundation.framework/Versions/Current... | Add fallback path for Foundation lookup | Add fallback path for Foundation lookup
| C | mit | kivy/pyobjus,kivy/pyobjus,kivy/pyobjus |
bd345a5053f310aaeefcd9653470a6fbca847340 | Pod/Classes/Internal/STMRecordingOverlayViewController.h | Pod/Classes/Internal/STMRecordingOverlayViewController.h | //
// STMRecordingOverlayViewController.h
// Pods
//
// Created by Tyler Clemens on 9/14/15.
//
//
#import <UIKit/UIKit.h>
#import "VoiceCmdView.h"
@protocol STMRecordingOverlayDelegate;
@interface STMRecordingOverlayViewController : UIViewController<VoiceCmdViewDelegate, SendShoutDelegate>
@property (atomic) id<... | //
// STMRecordingOverlayViewController.h
// Pods
//
// Created by Tyler Clemens on 9/14/15.
//
//
#import <UIKit/UIKit.h>
#import "VoiceCmdView.h"
@protocol STMRecordingOverlayDelegate <CreateShoutDelegate>
-(void)overlayClosed:(BOOL)bDismissed;
@end
@interface STMRecordingOverlayViewController : UIViewControl... | Refactor STMRecordingOverlayDelegate to inherit from CreateShoutDelegate | Refactor STMRecordingOverlayDelegate to inherit from CreateShoutDelegate
| C | mit | ShoutToMe/stm-sdk-ios,ShoutToMe/stm-sdk-ios |
9173e91787fdce959346fd338c1e668f6d11e18f | test/Sema/builtin-object-size.c | test/Sema/builtin-object-size.c | // RUN: clang -fsyntax-only -verify %s
// RUN: clang -fsyntax-only -triple x86_64-apple-darwin9 -verify %s
int a[10];
int f0() {
return __builtin_object_size(&a); // expected-error {{too few arguments to function}}
}
int f1() {
return (__builtin_object_size(&a, 0) +
__builtin_object_size(&a, 1) +
... | // RUN: clang -fsyntax-only -verify %s &&
// RUN: clang -fsyntax-only -triple x86_64-apple-darwin9 -verify %s
int a[10];
int f0() {
return __builtin_object_size(&a); // expected-error {{too few arguments to function}}
}
int f1() {
return (__builtin_object_size(&a, 0) +
__builtin_object_size(&a, 1) +
... | Append the test runs with '&&'. | Append the test runs with '&&'.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@57085 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl... |
1bf280c8b908c724a08260f785e60899f891e35b | Tests/AsyncTesting.h | Tests/AsyncTesting.h | //
// AsyncTesting.h
// ContentfulSDK
//
// Created by Boris Bügling on 05/03/14.
//
//
// Set the flag for a block completion handler
#define StartBlock() __block BOOL waitingForBlock = YES
// Set the flag to stop the loop
#define EndBlock() waitingForBlock = NO
// Wait and loop until flag is set
#define WaitUnt... | //
// AsyncTesting.h
// ContentfulSDK
//
// Created by Boris Bügling on 05/03/14.
//
//
// Set the flag for a block completion handler
#define StartBlock() __block BOOL waitingForBlock = YES
// Set the flag to stop the loop
#define EndBlock() waitingForBlock = NO
// Wait and loop until flag is set
#define WaitUnt... | Increase the asynchronous testing timeout | Increase the asynchronous testing timeout
Hopefully will resolve Travis issues.
| C | mit | contentful/contentful.objc,davidmdavis/contentful.objc,contentful/contentful.objc,davidmdavis/contentful.objc,contentful/contentful.objc,davidmdavis/contentful.objc |
d7f50666d97c89c03e2ab8679a7c20523e14b11d | objc/message.h | objc/message.h | #ifndef _OBJC_MESSAGE_H_
#define _OBJC_MESSAGE_H_
#if defined(__x86_64) || defined(__i386) || defined(__arm__) || \
defined(__mips_n64) || defined(__mips_n32)
/**
* Standard message sending function. This function must be cast to the
* correct types for the function before use. The first argument is the
* receiv... | Fix clang's stupid warning to work around a bug in OS X headers... | Fix clang's stupid warning to work around a bug in OS X headers...
git-svn-id: f6517e426f81db5247881cd92f7386583ace04fa@35962 72102866-910b-0410-8b05-ffd578937521
| C | mit | skudryas/gnustep-libobjc2,crontab/libobjc2,crontab/libobjc2,skudryas/gnustep-libobjc2 | |
05e3fd2ae7f1d03eeb8338639d0380482d3949f1 | lib/radio.h | lib/radio.h | #ifndef RADIO_H_INCLUDED
#define RADIO_H_INCLUDED
#include <stdint.h>
#define RADIO_PACKET_MAX_LEN 64
#define RADIO_PACKET_BUFFER_SIZE 1
typedef enum
{
PACKET_RECEIVED,
} radio_evt_type_t;
typedef struct
{
uint8_t len;
uint8_t data[RADIO_PACKET_MAX_LEN];
} radio_packet_t;
typedef struct
{
radio_evt_... | #ifndef RADIO_H_INCLUDED
#define RADIO_H_INCLUDED
#include <stdint.h>
#define RADIO_PACKET_MAX_LEN 64
#define RADIO_PACKET_BUFFER_SIZE 1
typedef enum
{
PACKET_RECEIVED,
} radio_evt_type_t;
typedef struct
{
uint8_t len;
struct __attribute__((packed))
{
uint8_t padding : 7;
uint8_t ack... | Add flag byte to packet structure. | Add flag byte to packet structure.
| C | bsd-3-clause | hlnd/nrf51-simple-radio,hlnd/nrf51-simple-radio |
ba720db1b44374db3f31647ab1f159e7ce4b115d | test/CodeGen/ffp-contract-option.c | test/CodeGen/ffp-contract-option.c | // RUN: %clang_cc1 -O3 -ffp-contract=fast -triple=powerpc-apple-darwin10 -S -o - %s | FileCheck %s
// REQUIRES: powerpc-registered-target
float fma_test1(float a, float b, float c) {
// CHECK: fmadds
float x = a * b;
float y = x + c;
return y;
}
| // RUN: %clang_cc1 -O3 -ffp-contract=fast -triple=aarch64-apple-darwin -S -o - %s | FileCheck %s
// REQUIRES: aarch64-registered-target
float fma_test1(float a, float b, float c) {
// CHECK: fmadd
float x = a * b;
float y = x + c;
return y;
}
| Change -ffp-contract=fast test to run on Aarch64 | Change -ffp-contract=fast test to run on Aarch64
(I don't have powerpc enabled in my build and I am changing
how -ffp-contract=fast works.)
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@298468 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit fa33394bb70481412493fcf40d53ebdb2e738058)
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang |
45abc5865c967100e72e603102ceb6393a7530ea | tests/class_construction_tracker.h | tests/class_construction_tracker.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 applica... | /*
* 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 applica... | Add a missing import to fix compilation of Fruit tests. | Add a missing import to fix compilation of Fruit tests.
| C | apache-2.0 | google/fruit,google/fruit,google/fruit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.