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 |
|---|---|---|---|---|---|---|---|---|---|
94ed2e430b1180c296f7dcb327296c64d6260daa | fmacros.h | fmacros.h | #ifndef __HIREDIS_FMACRO_H
#define __HIREDIS_FMACRO_H
#if defined(__linux__)
#define _BSD_SOURCE
#define _DEFAULT_SOURCE
#endif
#if defined(__CYGWIN__)
#include <sys/cdefs.h>
#endif
#if defined(__sun__)
#define _POSIX_C_SOURCE 200112L
#else
#if !(defined(__APPLE__) && defined(__MACH__)) && !(defined(__FreeBSD__))
#d... | #ifndef __HIREDIS_FMACRO_H
#define __HIREDIS_FMACRO_H
#if defined(__linux__)
#define _BSD_SOURCE
#define _DEFAULT_SOURCE
#endif
#if defined(__CYGWIN__)
#include <sys/cdefs.h>
#endif
#if defined(__linux__) || defined(__OpenBSD__) || defined(__NetBSD__)
#define _XOPEN_SOURCE 600
#elif defined(__APPLE__) && defined(__M... | Make XOPEN_SOURCE definition explicit per architecture | Make XOPEN_SOURCE definition explicit per architecture
Fixes #441
| C | bsd-3-clause | charsyam/hiredis,redis/hiredis,thomaslee/hiredis,jinguoli/hiredis,jinguoli/hiredis,jinguoli/hiredis,redis/hiredis,thomaslee/hiredis,redis/hiredis,charsyam/hiredis |
33ce733a70bf89570454a161a64adb56da57a0f3 | Settings/Tabs/SettingsTab.h | Settings/Tabs/SettingsTab.h | #pragma once
#include "../Controls/Controls.h"
#include "../Controls/TabPage.h"
/// <summary>
/// Abstract class that encapsulates functionality for dealing with
/// property sheet pages (tabs).
/// </summary>
class SettingsTab : public TabPage {
public:
SettingsTab(HINSTANCE hInstance, LPCWSTR tabTemplate, LPCWS... | #pragma once
#include "../Controls/Controls.h"
#include "../Controls/TabPage.h"
#include "../resource.h"
/// <summary>
/// Abstract class that encapsulates functionality for dealing with
/// property sheet pages (tabs).
/// </summary>
class SettingsTab : public TabPage {
public:
SettingsTab(HINSTANCE hInstance, L... | Include dialog resources to make things easier | Include dialog resources to make things easier
| C | bsd-2-clause | malensek/3RVX,malensek/3RVX,malensek/3RVX |
1faf4681396ca217899ace40a2b60b04a2a8e3c3 | config.h | config.h | #ifndef THM_CONFIG_HG
#define THM_CONFIG_HG
// Vertex ID type
// # of vertices < MAX(thm_Vid)
typedef unsigned long thm_Vid;
// Arc reference type
// # of arcs in any digraph <= MAX(thm_Arcref)
typedef unsigned long thm_Arcref;
// Block label type
// # of blocks < MAX(thm_Blklab)
typedef unsigned long thm_Blklab;
#... | #ifndef THM_CONFIG_HG
#define THM_CONFIG_HG
// Block label type (must be unsigned)
// # of blocks <= MAX(thm_Blklab)
typedef uint32_t thm_Blklab;
#endif
| Move typedef to digraph header | Move typedef to digraph header
| C | lgpl-2.1 | fsavje/scclust,fsavje/scclust,fsavje/scclust |
e8a46c51e607caedec168f26c73595fed10b3afb | lib/shared/mem.h | lib/shared/mem.h | #ifndef MEM_H__
#define MEM_H__
#include <stdlib.h>
void *xmalloc (size_t size);
void *xcalloc (size_t count, size_t size);
void *xrealloc (void *ptr, size_t size);
char *xstralloc (size_t len);
void *xmemdupz (const void *data, size_t len);
char *xstrndup (const char *str, size_t len);
void xfree (void *ptr);
void ... | #ifndef MEM_H__
#define MEM_H__
#include <stdlib.h>
void *xmalloc (size_t size);
void *xcalloc (size_t count, size_t size);
void *xrealloc (void *ptr, size_t size);
char *xstralloc (size_t len);
void *xmemdupz (const void *data, size_t len);
char *xstrndup (const char *str, size_t len);
void xfree (void *ptr);
size_... | Add report functions for x*() | Add report functions for x*()
Signed-off-by: Olivier Mehani <9858fe98d2c7f5f35e0d2a08f134cfc58afd42d3@nicta.com.au>
| C | mit | lees0414/EUproject,mytestbed/oml,mytestbed/oml,lees0414/EUproject,alco90/soml,alco90/soml,lees0414/EUproject,lees0414/EUproject,mytestbed/oml,mytestbed/oml,alco90/soml,alco90/soml,mytestbed/oml,lees0414/EUproject,alco90/soml |
ee3a5993668d17a478a4e1ec7edd2f706b5bdfce | include/cpr/body.h | include/cpr/body.h | #ifndef CPR_BODY_H
#define CPR_BODY_H
#include <cstring>
#include <initializer_list>
#include <string>
#include "defines.h"
namespace cpr {
class Body : public std::string {
public:
Body() = default;
Body(const Body& rhs) = default;
Body(Body&& rhs) = default;
Body& operator=(const Body& rhs) = d... | #ifndef CPR_BODY_H
#define CPR_BODY_H
#include <cstring>
#include <initializer_list>
#include <string>
#include "defines.h"
namespace cpr {
class Body : public std::string {
public:
Body() = default;
Body(const Body& rhs) = default;
Body(Body&& rhs) = default;
Body& operator=(const Body& rhs) = d... | Move constructor from std::string for cpr::Body | Move constructor from std::string for cpr::Body
Currently it uses only copy-stors. | C | mit | whoshuu/cpr,whoshuu/cpr,whoshuu/cpr |
b1de9c948f9794db97ed7d34b8cbcdccc206ea77 | src/gallium/drivers/nv30/nv30_clear.c | src/gallium/drivers/nv30/nv30_clear.c | #include "pipe/p_context.h"
#include "pipe/p_defines.h"
#include "pipe/p_state.h"
#include "nv30_context.h"
void
nv30_clear(struct pipe_context *pipe, struct pipe_surface *ps,
unsigned clearValue)
{
pipe->surface_fill(pipe, ps, 0, 0, ps->width, ps->height, clearValue);
}
| #include "pipe/p_context.h"
#include "pipe/p_defines.h"
#include "pipe/p_state.h"
#include "nv30_context.h"
void
nv30_clear(struct pipe_context *pipe, struct pipe_surface *ps,
unsigned clearValue)
{
pipe->surface_fill(pipe, ps, 0, 0, ps->width, ps->height, clearValue);
ps->status = PIPE_SURFACE_STATUS_CLEAR;
}
| Set pipe status on clear | nv30: Set pipe status on clear
| C | mit | metora/MesaGLSLCompiler,dellis1972/glsl-optimizer,mcanthony/glsl-optimizer,KTXSoftware/glsl2agal,mcanthony/glsl-optimizer,tokyovigilante/glsl-optimizer,adobe/glsl2agal,tokyovigilante/glsl-optimizer,wolf96/glsl-optimizer,bkaradzic/glsl-optimizer,zz85/glsl-optimizer,djreep81/glsl-optimizer,djreep81/glsl-optimizer,benaada... |
22c6aa126d7d88b4e19c64418aeecdc6cc032233 | include/core/SkMilestone.h | include/core/SkMilestone.h | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 85
#endif
| /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 86
#endif
| Update Skia milestone to 86 | Update Skia milestone to 86
Change-Id: Id81c58007f74816a8c2ac0831d61c041c5a7468c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/298916
Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
| C | bsd-3-clause | google/skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,google/skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/pla... |
03186dd5ad61d9d9bc366ec5e23e313910ddb48f | sigaltstack.c | sigaltstack.c | #include <stdio.h>
#include <signal.h>
#include <unistd.h>
#include <assert.h>
#include <stdlib.h>
#include <setjmp.h>
jmp_buf try;
void handler(int sig) {
static int i = 0;
write(2, "stack overflow\n", 15);
longjmp(try, ++i);
_exit(1);
}
unsigned recurse(unsigned x) {
return recurse(x)+1;
}
int ma... | #include <stdio.h>
#include <signal.h>
#include <unistd.h>
#include <assert.h>
#include <stdlib.h>
#include <setjmp.h>
jmp_buf try;
void handler(int sig) {
static int i = 0;
write(2, "stack overflow\n", 15);
longjmp(try, ++i);
_exit(1);
}
unsigned recurse(unsigned x) {
return recurse(x)+1;
}
int ma... | Put alternate stack on heap | Put alternate stack on heap
| C | apache-2.0 | danluu/setjmp-longjmp-ucontext-snippets,danluu/setjmp-longjmp-ucontext-snippets |
4222e15ceb2f64cbc517d8290d2c8fb7c2a6b178 | include/patts/admin.h | include/patts/admin.h | /*
* libpatts - Backend library for PATTS Ain't Time Tracking Software
* Copyright (C) 2014 Delwink, LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation.
*
* This program i... | /*
* libpatts - Backend library for PATTS Ain't Time Tracking Software
* Copyright (C) 2014 Delwink, LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation.
*
* This program i... | Change scope of state column | Change scope of state column
| C | agpl-3.0 | delwink/libpatts,delwink/libpatts |
e6afdae011102bc110d072c33e2704bccc7cc6e4 | utils.h | utils.h | #ifndef UTILS_H
#define UTILS_H
#include <string>
/** \brief Convert given container to it's hex representation */
template< typename T >
std::string toHex( const T& data )
{
static const char charTable[] = "0123456789abcdef";
std::string ret;
if ( data.size() > 1024 )
{
ret = "*** LARGE *** ... | #ifndef UTILS_H
#define UTILS_H
#include <string>
/** \brief Convert given container to it's hex representation */
template< typename T >
std::string toHex( const T& data )
{
static const char charTable[] = "0123456789abcdef";
std::string ret;
if ( data.size() > 80 )
{
ret = "*** LARGE *** ";... | Make the hex dump size limit much smaller | Make the hex dump size limit much smaller
| C | bsd-3-clause | cinode/cpptestapp,cinode/cpptestapp |
ec43d9ca215e7e9f0ea782e26367d52c9468f7ff | src/lextest.c | src/lextest.c | #include "config.h"
#include <stdio.h>
#include <string.h>
#include "lexicon.h"
#include "hash.h"
#include "array.h"
#include "util.h"
#include "mem.h"
int main(int argc, char **argv)
{
lexicon_pt l=read_lexicon_file(argv[1]);
char s[4000];
printf("Read %ld lexical entries.\n", (long int)hash_size(l->words))... | #include "config.h"
#include <stdio.h>
#include <string.h>
#include "lexicon.h"
#include "hash.h"
#include "array.h"
#include "util.h"
#include "mem.h"
int main(int argc, char **argv)
{
lexicon_pt l=read_lexicon_file(argv[1]);
char s[4000];
printf("Read %ld lexical entries.\n", (long int)hash_size(l->words))... | Return 0 from main as it should. | Return 0 from main as it should.
| C | bsd-3-clause | giuliopaci/acopost,giuliopaci/acopost,giuliopaci/acopost,giuliopaci/acopost |
762f4e479e147e15cb8bed3fb0113e04279f87ae | lib/packet_queue.h | lib/packet_queue.h | #ifndef PACKET_QUEUE_H_INCLUDED__
#define PACKET_QUEUE_H_INCLUDED__
#include "radio.h"
#include <stdbool.h>
#define PACKET_QUEUE_SIZE 10
typedef struct
{
radio_packet_t * head;
radio_packet_t * tail;
radio_packet_t packets[PACKET_QUEUE_SIZE];
} packet_queue_t;
uint32_t packet_queue_init(packet_queue_t ... | #ifndef PACKET_QUEUE_H_INCLUDED__
#define PACKET_QUEUE_H_INCLUDED__
#include "radio.h"
#include <stdbool.h>
#define PACKET_QUEUE_SIZE 10
typedef struct
{
uint32_t head;
uint32_t tail;
radio_packet_t packets[PACKET_QUEUE_SIZE];
} packet_queue_t;
uint32_t packet_queue_init(packet_queue_t * queue);
bool ... | Fix types of head and tail. | Fix types of head and tail.
| C | bsd-3-clause | hlnd/nrf51-simple-radio,hlnd/nrf51-simple-radio |
2b7eda48618299374655d85ed355973c93d82201 | libavutil/random_seed.h | libavutil/random_seed.h | /*
* Copyright (c) 2009 Baptiste Coudurier <baptiste.coudurier@gmail.com>
*
* This file is part of FFmpeg.
*
* FFmpeg 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 ... | /*
* Copyright (c) 2009 Baptiste Coudurier <baptiste.coudurier@gmail.com>
*
* This file is part of FFmpeg.
*
* FFmpeg 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 ... | Fix typo: 'conjuction' -> 'conjunction'. | Fix typo: 'conjuction' -> 'conjunction'.
git-svn-id: a4d7c1866f8397a4106e0b57fc4fbf792bbdaaaf@17989 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
| C | lgpl-2.1 | prajnashi/ffmpeg,prajnashi/ffmpeg,prajnashi/ffmpeg,prajnashi/ffmpeg |
952aaca3d7c3be9da8487e6316721a802ab5261b | server/tests/stat-main.c | server/tests/stat-main.c | /* -*- Mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
Copyright (C) 2015 Red Hat, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the Lic... | /* -*- Mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
Copyright (C) 2015 Red Hat, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the Lic... | Remove empty line at EOF | syntax-check: Remove empty line at EOF
Acked-by: Christophe Fergeau <05b95054a663c388a4e33d95828cb30f0370f8ef@redhat.com>
| C | lgpl-2.1 | fgouget/spice,SPICE/spice,fgouget/spice,fgouget/spice,SPICE/spice,SPICE/spice,fgouget/spice |
96430e414762391ff89b48b6c63c0983ff11365f | source/udc/src/udc_libusbg.c | source/udc/src/udc_libusbg.c | /*
* Copyright (c) 2012-2015 Samsung Electronics Co., 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 appli... | /*
* Copyright (c) 2012-2015 Samsung Electronics Co., 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 appli... | Add gadget udc command at libusbg backend | udc: Add gadget udc command at libusbg backend
Change-Id: If1510069df2e6cd2620c89576ebba80685cb07d7
Signed-off-by: Pawel Szewczyk <1691dcf8dab804b326e5e4b9ab228a1c3b23a2f2@samsung.com>
| C | apache-2.0 | kopasiak/gt,kopasiak/gt |
2d4b83275dd0ce04a117a78e1eaca45d189c24f9 | test/tsan/libdispatch/dispatch_once_deadlock.c | test/tsan/libdispatch/dispatch_once_deadlock.c | // Check that calling dispatch_once from a report callback works.
// RUN: %clang_tsan %s -o %t
// RUN: not %run %t 2>&1 | FileCheck %s
#include <dispatch/dispatch.h>
#include <pthread.h>
#include <stdio.h>
long g = 0;
long h = 0;
void f() {
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
g++;... | // Check that calling dispatch_once from a report callback works.
// RUN: %clang_tsan %s -o %t
// RUN: not %run %t 2>&1 | FileCheck %s
#include <dispatch/dispatch.h>
#include <pthread.h>
#include <stdio.h>
long g = 0;
long h = 0;
void f() {
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
g++;... | Make test work on Linux, pt. 2 | [TSan][libdispatch] Make test work on Linux, pt. 2
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@357741 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt |
ed8496dd8db282150831412ba02fe27476877d1f | You-QueryEngine/internal/action/filter_task.h | You-QueryEngine/internal/action/filter_task.h | /// \file update_task.h
/// Defines action for updating tasks.
/// \author A0112054Y
#pragma once
#ifndef YOU_QUERYENGINE_INTERNAL_ACTION_FILTER_TASK_H_
#define YOU_QUERYENGINE_INTERNAL_ACTION_FILTER_TASK_H_
#include <functional>
#include "../../filter.h"
#include "../../api.h"
namespace You {
namespace QueryEngine ... | /// \file update_task.h
/// Defines action for updating tasks.
/// \author A0112054Y
#pragma once
#ifndef YOU_QUERYENGINE_INTERNAL_ACTION_FILTER_TASK_H_
#define YOU_QUERYENGINE_INTERNAL_ACTION_FILTER_TASK_H_
#include <functional>
#include "../../filter.h"
#include "../../api.h"
namespace You {
namespace QueryEngine ... | Store filter by value in FilterTask | Store filter by value in FilterTask
| C | mit | cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main |
55cfa656096e17cb624643b292d479752eff9b84 | myrrh/python/registry.h | myrrh/python/registry.h | /**
@file
Copyright John Reid 2013
*/
#ifndef MYRRH_PYTHON_REGISTRY_H_
#define MYRRH_PYTHON_REGISTRY_H_
#ifdef _MSC_VER
# pragma once
#endif //_MSC_VER
namespace myrrh {
namespace python {
/**
* Queries if the the type specified is in the registry.
*/
template< typename QueryT >
bool
in_registry() {
namespace ... | /**
@file
Copyright John Reid 2013
*/
#ifndef MYRRH_PYTHON_REGISTRY_H_
#define MYRRH_PYTHON_REGISTRY_H_
#ifdef _MSC_VER
# pragma once
#endif //_MSC_VER
namespace myrrh {
namespace python {
/**
* Queries if the the type specified is in the registry. This can be used to avoid registering
* the same type more than... | Fix for inner class registration check | Fix for inner class registration check
| C | mit | JohnReid/myrrh,JohnReid/myrrh |
2b1a93b1c435fa60ffe3011bfdd70f104bc34e93 | alura/c/adivinhacao.c | alura/c/adivinhacao.c | #include <stdio.h>
int main() {
// imprime o cabecalho do nosso jogo
printf("******************************************\n");
printf("* Bem vindo ao nosso jogo de adivinhação *\n");
printf("******************************************\n");
int numerosecreto = 42;
int chute;
printf("Qual é o seu chute? "... | #include <stdio.h>
int main() {
// imprime o cabecalho do nosso jogo
printf("******************************************\n");
printf("* Bem vindo ao nosso jogo de adivinhação *\n");
printf("******************************************\n");
int numerosecreto = 42;
int chute;
for(int i = 1; i <= 3; i++) {... | Update files, Alura, Introdução a C, Aula 2.5 | Update files, Alura, Introdução a C, Aula 2.5
| C | mit | fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs |
b6be5329bed253db517553152ee1f76e5ee68074 | src/parse/stmt/equivalence.c | src/parse/stmt/equivalence.c | #include "../parse.h"
unsigned parse_stmt_equivalence(
const sparse_t* src, const char* ptr,
parse_stmt_t* stmt)
{
unsigned i = parse_keyword(
src, ptr, PARSE_KEYWORD_EQUIVALENCE);
if (i == 0) return 0;
stmt->type = PARSE_STMT_EQUIVALENCE;
stmt->equivalence.count = 0;
stmt->equivalence.group = NULL;
unsig... | #include "../parse.h"
unsigned parse_stmt_equivalence(
const sparse_t* src, const char* ptr,
parse_stmt_t* stmt)
{
unsigned i = parse_keyword(
src, ptr, PARSE_KEYWORD_EQUIVALENCE);
if (i == 0) return 0;
stmt->type = PARSE_STMT_EQUIVALENCE;
stmt->equivalence.count = 0;
stmt->equivalence.group = NULL;
unsig... | Fix bug in EQUIVALENCE parsing | Fix bug in EQUIVALENCE parsing
| C | apache-2.0 | CodethinkLabs/ofc,CodethinkLabs/ofc,CodethinkLabs/ofc,CodethinkLabs/ofc |
eae3d77193813825d7c4cb8dcb86d341c0b5b756 | src/wrappers/themis/Obj-C/objcthemis/smessage.h | src/wrappers/themis/Obj-C/objcthemis/smessage.h | /*
* Copyright (C) 2015 CossackLabs
*
* 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 writin... | /*
* Copyright (C) 2015 CossackLabs
*
* 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 writin... | Add some correction to Obj-C wrappers | Add some correction to Obj-C wrappers
| C | apache-2.0 | mnaza/themis,storojs72/themis,cossacklabs/themis,Lagovas/themis,storojs72/themis,mnaza/themis,storojs72/themis,cossacklabs/themis,Lagovas/themis,storojs72/themis,mnaza/themis,cossacklabs/themis,mnaza/themis,cossacklabs/themis,Lagovas/themis,Lagovas/themis,cossacklabs/themis,cossacklabs/themis,storojs72/themis,storojs72... |
a5ff559cf1182c4e86293784a64a52574eada1b4 | printing/metafile_impl.h | printing/metafile_impl.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 PRINTING_METAFILE_IMPL_H_
#define PRINTING_METAFILE_IMPL_H_
#if defined(OS_WIN)
#include "printing/emf_win.h"
#elif defined(OS_MACOSX)
#inclu... | // 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 PRINTING_METAFILE_IMPL_H_
#define PRINTING_METAFILE_IMPL_H_
#if defined(OS_WIN)
#include "printing/emf_win.h"
#elif defined(OS_MACOSX)
#inclu... | Switch the native print path on Linux and ChromeOS to use Skia instead of Cairo | Switch the native print path on Linux and ChromeOS to use Skia instead of Cairo
BUG=
TEST=Pages printed via cloud print to raster based printers should successfully print images.
Review URL: http://codereview.chromium.org/7817007
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@99318 0039d316-1c4b-4281-b951-d8... | C | bsd-3-clause | hujiajie/pa-chromium,Pluto-tv/chromium-crosswalk,patrickm/chromium.src,axinging/chromium-crosswalk,hgl888/chromium-crosswalk-efl,hujiajie/pa-chromium,fujunwei/chromium-crosswalk,nacl-webkit/chrome_deps,dednal/chromium.src,Chilledheart/chromium,chuan9/chromium-crosswalk,markYoungH/chromium.src,keishi/chromium,ondra-nova... |
86f04cd3f2d5c23f1745acdaa86ef526c174ce9a | aescpuid.c | aescpuid.c | /**
* cpuid.c
*
* Checks if CPU has support of AES instructions
*
* @author kryukov@frtk.ru
* @version 4.0
*
* For Putty AES NI project
* http://putty-aes-ni.googlecode.com/
*/
#ifndef SILENT
#include <stdio.h>
#endif
#if defined(__clang__) || defined(__GNUC__)
#include <cpuid.h>
static int CheckCPUsupport... | /**
* cpuid.c
*
* Checks if CPU has support of AES instructions
*
* @author kryukov@frtk.ru
* @version 4.0
*
* For Putty AES NI project
* http://putty-aes-ni.googlecode.com/
*/
#include <stdio.h>
#if defined(__clang__) || defined(__GNUC__)
#include <cpuid.h>
static int CheckCPUsupportAES()
{
unsigned i... | Print CPUID result to output | Print CPUID result to output | C | mit | pavelkryukov/putty-aes-ni,pavelkryukov/putty-aes-ni |
1e437be581a3d2e1176a66f4e2420ce7f37ead37 | TRD/AliTRDPreprocessor.h | TRD/AliTRDPreprocessor.h | #ifndef ALI_TRD_PREPROCESSOR_H
#define ALI_TRD_PREPROCESSOR_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
/* $Id$ */
////////////////////////////////////////////////////////////////////////////
// ... | #ifndef ALI_TRD_PREPROCESSOR_H
#define ALI_TRD_PREPROCESSOR_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
/* $Id$ */
////////////////////////////////////////////////////////////////////////////
// ... | Add a comment behind ClassDef | Add a comment behind ClassDef
| C | bsd-3-clause | ecalvovi/AliRoot,alisw/AliRoot,ecalvovi/AliRoot,miranov25/AliRoot,sebaleh/AliRoot,mkrzewic/AliRoot,jgrosseo/AliRoot,jgrosseo/AliRoot,sebaleh/AliRoot,coppedis/AliRoot,coppedis/AliRoot,ecalvovi/AliRoot,jgrosseo/AliRoot,ecalvovi/AliRoot,ALICEHLT/AliRoot,sebaleh/AliRoot,coppedis/AliRoot,miranov25/AliRoot,shahor02/AliRoot,a... |
b7206937d9779b2e90ec28fe3ca42d00916eab14 | osu.Framework/Resources/Shaders/sh_yuv2rgb.h | osu.Framework/Resources/Shaders/sh_yuv2rgb.h | uniform sampler2D m_SamplerY;
uniform sampler2D m_SamplerU;
uniform sampler2D m_SamplerV;
uniform mat3 yuvCoeff;
// Y - 16, Cb - 128, Cr - 128
const mediump vec3 offsets = vec3(-0.0625, -0.5, -0.5);
lowp vec3 sampleRgb(vec2 loc)
{
float y = texture2D(m_SamplerY, loc).r;
float u = texture2D(m_SamplerU, loc).r;
... | uniform sampler2D m_SamplerY;
uniform sampler2D m_SamplerU;
uniform sampler2D m_SamplerV;
uniform mediump mat3 yuvCoeff;
// Y - 16, Cb - 128, Cr - 128
const mediump vec3 offsets = vec3(-0.0625, -0.5, -0.5);
lowp vec3 sampleRgb(vec2 loc)
{
lowp float y = texture2D(m_SamplerY, loc).r;
lowp float u = texture2D(m_S... | Add precision prefixes to shaders | Add precision prefixes to shaders
Co-Authored-By: Dan Balasescu <c9bd76907373126dff70d71f8b944159a669cbf1@smgi.me> | C | mit | ppy/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,ppy/osu-framework |
b59d8199e0a0a3d1c77cc36f3cfb1c6716a254a8 | include/llvm/Transforms/IPO.h | include/llvm/Transforms/IPO.h | //===- llvm/Transforms/CleanupGCCOutput.h - Cleanup GCC Output ---*- C++ -*--=//
//
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TRANSFORMS_CLEANUPGCCOUTPUT_H
#define LLVM_TRANSFORMS_CLEANUPGCCOUTPUT_H
class Pass;
Pass *createCleanupGCCOutputPass();
#endif
| //===- llvm/Transforms/CleanupGCCOutput.h - Cleanup GCC Output ---*- C++ -*--=//
//
// These passes are used to cleanup the output of GCC. GCC's output is
// unneccessarily gross for a couple of reasons. This pass does the following
// things to try to clean it up:
//
// * Eliminate names for GCC types that we know ca... | Split the CleanupGCCOutput pass into two passes, and add real life actual documentation on when they do. | Split the CleanupGCCOutput pass into two passes, and add real life actual
documentation on when they do.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@2222 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/s... |
56ecad6907dea785ebffba414dfe3ff586e5f2e0 | src/shutdown/hpr_wall.c | src/shutdown/hpr_wall.c | /* ISC license. */
#include <string.h>
#include <utmpx.h>
#include <skalibs/posixishard.h>
#include <skalibs/allreadwrite.h>
#include <skalibs/strerr2.h>
#include <skalibs/djbunix.h>
#include "hpr.h"
#ifndef UT_LINESIZE
#define UT_LINESIZE 32
#endif
void hpr_wall (char const *s)
{
size_t n = strlen(s) ;
char t... | /* ISC license. */
#include <string.h>
#include <utmpx.h>
#include <skalibs/allreadwrite.h>
#include <skalibs/strerr2.h>
#include <skalibs/djbunix.h>
#include <skalibs/posixishard.h>
#include "hpr.h"
#ifndef UT_LINESIZE
#define UT_LINESIZE 32
#endif
void hpr_wall (char const *s)
{
size_t n = strlen(s) ;
char t... | Include posixishard as late as possible | Include posixishard as late as possible
| C | isc | skarnet/s6-linux-init,skarnet/s6-linux-init |
60da6bc748cf4366005a047a1ab2637184150333 | gc_none.c | gc_none.c | #include "visibility.h"
#include "objc/runtime.h"
#include "gc_ops.h"
#include "class.h"
#include <stdlib.h>
#include <stdio.h>
static id allocate_class(Class cls, size_t extraBytes)
{
intptr_t *addr = calloc(cls->instance_size + extraBytes + sizeof(intptr_t), 1);
return (id)(addr + 1);
}
static void free_object(id... | #include "visibility.h"
#include "objc/runtime.h"
#include "gc_ops.h"
#include "class.h"
#include <stdlib.h>
#include <stdio.h>
static id allocate_class(Class cls, size_t extraBytes)
{
intptr_t *addr = calloc(cls->instance_size + extraBytes + sizeof(intptr_t), 1);
return (id)(addr + 1);
}
static void free_object(id... | Fix bug spotted by Justin Hibbits. | Fix bug spotted by Justin Hibbits.
git-svn-id: f6517e426f81db5247881cd92f7386583ace04fa@33751 72102866-910b-0410-8b05-ffd578937521
| C | mit | crontab/libobjc2,skudryas/gnustep-libobjc2,skudryas/gnustep-libobjc2,crontab/libobjc2 |
315c996e6e6fac57514d4faa73329060edf714dc | libechonest/src/ENAPI_utils.h | libechonest/src/ENAPI_utils.h | //
// ENAPI_utils.h
// libechonest
//
// Created by Art Gillespie on 3/15/11. art@tapsquare.com
//
#import "NSMutableDictionary+QueryString.h"
#import "NSData+MD5.h"
#import "ENAPI.h"
#define CHECK_API_KEY if (nil == [ENAPI apiKey]) { @throw [NSException exceptionWithName:@"APIKeyNotSetException" reason:@"Set the ... | //
// ENAPI_utils.h
// libechonest
//
// Created by Art Gillespie on 3/15/11. art@tapsquare.com
//
#import "NSMutableDictionary+QueryString.h"
#import "NSData+MD5.h"
#import "ENAPI.h"
#define CHECK_API_KEY if (nil == [ENAPI apiKey]) { @throw [NSException exceptionWithName:@"APIKeyNotSetException" reason:@"Set the ... | Add macro for checking OAuth keys. | Add macro for checking OAuth keys.
| C | bsd-3-clause | echonest/libechonest |
08d8a5ec7d018c771787bd33b429c2b2d096a578 | AAChartKit/ChartsDemo/SecondViewController.h | AAChartKit/ChartsDemo/SecondViewController.h | //
// ViewController.h
// AAChartKit
//
// Created by An An on 17/3/13.
// Copyright © 2017年 An An. All rights reserved.
// source code ----*** https://github.com/AAChartModel/AAChartKit ***--- source code
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger,ENUM_secondeViewController_chartType){
ENUM_seconde... | //
// ViewController.h
// AAChartKit
//
// Created by An An on 17/3/13.
// Copyright © 2017年 An An. All rights reserved.
// source code ----*** https://github.com/AAChartModel/AAChartKit ***--- source code
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger,SecondeViewControllerChartType){
SecondeViewControl... | Correct the naming notations of enumeration | Correct the naming notations of enumeration
| C | mit | AAChartModel/AAChartKit,AAChartModel/AAChartKit,AAChartModel/AAChartKit |
ad42bb9a0b167e38bd2fef333c1d725bc41f0dc0 | src/media/tagreader.h | src/media/tagreader.h | #ifndef TAGREADER_H
#define TAGREADER_H
#include <taglib/fileref.h>
#include <taglib/tag.h>
#include <taglib/mpegfile.h>
#include <taglib/id3v2tag.h>
#include <taglib/attachedpictureframe.h>
#include <QString>
#include <QImage>
class TagReader
{
public:
TagReader(const QString &file);
~TagReader();
bool... | #ifndef TAGREADER_H
#define TAGREADER_H
#include "taglib/fileref.h"
#include "taglib/tag.h"
#include "taglib/mpeg/mpegfile.h"
#include "taglib/mpeg/id3v2/id3v2tag.h"
#include "taglib/mpeg/id3v2/frames/attachedpictureframe.h"
#include <QString>
#include <QImage>
class TagReader
{
public:
TagReader(const QString &... | Use our package taglib headers and not the hosts! | Use our package taglib headers and not the hosts!
| C | bsd-3-clause | qtmediahub/sasquatch,qtmediahub/sasquatch,qtmediahub/sasquatch |
4ad6e5a49c4894661fabd40382f2482dd8011ac0 | test2/structs/lvalue/cant.c | test2/structs/lvalue/cant.c | // RUN: %check -e %s
main()
{
struct A
{
int i;
} a, b, c;
a = b ? : c; // CHECK: error: struct involved in if-expr
}
| // RUN: %check -e %s
main()
{
struct A
{
int i;
} a, b, c;
a = b ? : c; // CHECK: error: struct involved in ?:
}
| Fix struct if-expression test warning | Fix struct if-expression test warning
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler |
d5e1c63c19ff5d4b8dd74bd4b16500becd869322 | command_mode.c | command_mode.c | #include "mode.h"
#include <stdlib.h>
#include <string.h>
#include <termbox.h>
#include "buf.h"
#include "editor.h"
// TODO(isbadawi): Command mode needs a cursor, but modes don't affect drawing.
static void command_mode_key_pressed(editor_t *editor, struct tb_event *ev) {
char ch;
switch (ev->key) {
case TB_... | #include "mode.h"
#include <stdlib.h>
#include <string.h>
#include <termbox.h>
#include "buf.h"
#include "editor.h"
// TODO(isbadawi): Command mode needs a cursor, but modes don't affect drawing.
static void command_mode_key_pressed(editor_t *editor, struct tb_event *ev) {
char ch;
switch (ev->key) {
case TB_... | Fix segfault on empty : command. | Fix segfault on empty : command.
| C | mit | isbadawi/badavi |
1b7032c1539b38a4e6af2688bedf25ddf3450333 | test/performance/clock.h | test/performance/clock.h | // A currentTime function for use in the tests.
#ifdef _WIN32
extern "C" bool QueryPerformanceCounter(uint64_t *);
extern "C" bool QueryPerformanceFrequency(uint64_t *);
double currentTime() {
uint64_t t, freq;
QueryPerformanceCounter(&t);
QueryPerformanceFrequency(&freq);
return (t * 1000.0) / freq;
}... | // A currentTime function for use in the tests.
// Returns time in milliseconds.
#ifdef _WIN32
extern "C" bool QueryPerformanceCounter(uint64_t *);
extern "C" bool QueryPerformanceFrequency(uint64_t *);
double currentTime() {
uint64_t t, freq;
QueryPerformanceCounter(&t);
QueryPerformanceFrequency(&freq);
... | Add a comment that currentTime returns result in milliseconds. | Add a comment that currentTime returns result in milliseconds.
Former-commit-id: 397c814dcee2df63ded6cbf17b63b601a10984e2 | C | mit | darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide |
f811db9dd6a03c198717b68afd00eb56200e19bc | src/lcd.c | src/lcd.c | /* COR:a.bc PE:a.bc
BAC:a.bc */
void lcd_voltage() {
string top, bottom;
sprintf(top, "COR:%1.2f PE:%1.2f", nImmediateBatteryLevel * 0.001, SensorValue(PowerExpanderBattery) / 280);
sprintf(bottom, "BAC:%1.2f", BackupBatteryLevel * 0.001);
displayLCDString(LCD_LINE_TOP, 0, top);
display... | /* COR:a.bc PE:a.bc
BAC:a.bc */
void lcd_voltage() {
string top, bottom;
sprintf(top, "COR:%1.2f PE:%1.2f", nImmediateBatteryLevel * 0.001, SensorValue(PowerExpanderBattery) / 280.0);
sprintf(bottom, "BAC:%1.2f", BackupBatteryLevel * 0.001);
displayLCDString(LCD_LINE_TOP, 0, top);
displ... | Change power expander to float | Change power expander to float
| C | mit | qsctr/vex-4194b-2016 |
0c7a489e65b7bc51cc15af88197eb162f54cff13 | JazzHands/IFTTTAnimator.h | JazzHands/IFTTTAnimator.h | //
// IFTTTAnimator.h
// JazzHands
//
// Created by Devin Foley on 9/28/13.
// Copyright (c) 2013 IFTTT Inc. All rights reserved.
//
@protocol IFTTTAnimatable;
@interface IFTTTAnimator : NSObject
- (void)addAnimation:(id<IFTTTAnimatable>)animation;
- (void)animate:(CGFloat)time;
@end
| //
// IFTTTAnimator.h
// JazzHands
//
// Created by Devin Foley on 9/28/13.
// Copyright (c) 2013 IFTTT Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol IFTTTAnimatable;
@interface IFTTTAnimator : NSObject
- (void)addAnimation:(id<IFTTTAnimatable>)animation;
- (void)animate:(CGFloat)time;
@end
| Add UIKit import to allow for compiling without precompiled header | Add UIKit import to allow for compiling without precompiled header | C | mit | IFTTT/JazzHands,revolter/JazzHands,IFTTT/JazzHands,AlexanderMazaletskiy/JazzHands,ernestopino/JazzHands,ernestopino/JazzHands,lionkon/JazzHands,liuruxian/JazzHands,zorroblue/JazzHands,revolter/JazzHands,AlexanderMazaletskiy/JazzHands,wintersweet/JazzHands,ramoslin02/JazzHands,tangwei6423471/JazzHands,wintersweet/JazzHa... |
7f6be0874b9900c0188d7319412521f341dcf648 | Classes/Constants.h | Classes/Constants.h | /*
* Constants.h
* phonegap-mac
*
* Created by shazron on 10-04-08.
* Copyright 2010 Nitobi Software Inc. All rights reserved.
*
*/
#define kStartPage @"index.html"
//Sencha Demos
#define kStartFolder @"www/sencha"
// PhoneGap Docs Only
//#define kStartFolder @"www/phonegap-docs/template/phonegap/"
| /*
* Constants.h
* phonegap-mac
*
* Created by shazron on 10-04-08.
* Copyright 2010 Nitobi Software Inc. All rights reserved.
*
*/
#define kStartPage @"index.html"
//Sencha Demos
//#define kStartFolder @"www/sencha"
// PhoneGap Docs Only
#define kStartFolder @"www/phonegap-docs/template/phonegap/"
| Revert "kStartFolder switch back to Sencha configuration" | Revert "kStartFolder switch back to Sencha configuration"
This reverts commit 034cbb7f82a7c034ac8fe83c991ed6838b9a03b2.
| C | apache-2.0 | adobe-rnd/cordova-osx,apache/cordova-osx,adobe-rnd/cordova-osx,gitterHQ/cordova-osx,apache/cordova-osx,gitterHQ/cordova-osx,Jigsaw-Code/cordova-osx,adobe-rnd/cordova-osx,adobe-rnd/cordova-osx,onflapp/cordova-osx,adobe-rnd/cordova-osx,apache/cordova-osx,tripodsan/cordova-osx,Jigsaw-Code/cordova-osx,apache/cordova-osx,gi... |
59c91c8d0000af8f8a1022ee0f0eec46c397b347 | include/clang/AST/CommentBriefParser.h | include/clang/AST/CommentBriefParser.h | //===--- CommentBriefParser.h - Dumb comment parser -------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===--- CommentBriefParser.h - Dumb comment parser -------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Update comment to match the reality. | Update comment to match the reality.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@162316 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-cl... |
9137574e4d330370df242a0fa6c914f2f0eb5528 | features/mbedtls/platform/inc/platform_mbed.h | features/mbedtls/platform/inc/platform_mbed.h | /**
* Copyright (C) 2006-2016, ARM Limited, 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
*
* http://www.apache.org/l... | /**
* Copyright (C) 2006-2016, ARM Limited, 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
*
* http://www.apache.org/l... | Move mbed TLS configuration symbol to macro section | Move mbed TLS configuration symbol to macro section
The configuration option for the mbed TLS specific hardware acceleration
has to be in the macro section and not in the device capabilities
section in targets.json.
The option has also been renamed to better reflect its function.
| C | apache-2.0 | netzimme/mbed-os,nRFMesh/mbed-os,screamerbg/mbed,monkiineko/mbed-os,kl-cruz/mbed-os,screamerbg/mbed,nvlsianpu/mbed,ryankurte/mbed-os,mmorenobarm/mbed-os,screamerbg/mbed,netzimme/mbed-os,bcostm/mbed-os,fanghuaqi/mbed,adustm/mbed,NXPmicro/mbed,ryankurte/mbed-os,andcor02/mbed-os,infinnovation/mbed-os,CalSol/mbed,adamgreen... |
dcbb118c40a472014ca77bf3f63afc35651657cc | inc/area.h | inc/area.h | #ifndef AREA_H
#define AREA_H
#include "base.h"
typedef struct area area;
struct area{
char name[10];
int capacity;
int areasAround;
char ** adjec; // STRINGS SIZE ARE ALWAYS 10
};
void listAreas(area * a, int size);
void addArea(area * a, int size);
void deleteArea(area * a, int size);
#endif
| #ifndef AREA_H
#define AREA_H
#include "base.h"
typedef struct area area;
struct area{
char name[10];
int capacity;
int areasAround;
char ** adjec; // STRINGS SIZE ARE ALWAYS 10
};
void listAreas(area * a, int size);
void addArea(area ** a, int *size);
void deleteArea(area ** a, int *size);
int checkAreaExis... | Add Area capacity functions. Add addArea function | Add Area capacity functions. Add addArea function
| C | mit | leovegetium/Trabalho-P |
941075e6a69846082231e76aca8642d299c2093c | polygon.h | polygon.h | #ifndef _POLYGON_H_
#define _POLYGON_H_
/*
* geometric properties of the polygon meant for solving
*
* The default C pre-processor configuration here is to solve triangles.
*/
#define POLYGON_DEPTH 3
#if (POLYGON_DEPTH < 3)
#error You cannot have a polygon with fewer than 3 sides!
#endif
#if (POLYGON_DE... | #ifndef _POLYGON_H_
#define _POLYGON_H_
/*
* geometric properties of the polygon meant for solving
*
* The default C pre-processor configuration here is to solve triangles.
*/
#ifndef POLYGON_DEPTH
#define POLYGON_DEPTH 3
#endif
#if (POLYGON_DEPTH < 3)
#error You cannot have a polygon with fewer than 3 ... | Allow POLYGON_DEPTH to be configurable by compile commands. | Allow POLYGON_DEPTH to be configurable by compile commands.
| C | cc0-1.0 | cxd4/trig,cxd4/trig |
6e2253071014ec086daa6e1ad4c10d955617e5a5 | ASN1Decoder/ASN1Decoder.h | ASN1Decoder/ASN1Decoder.h | //
// ASN1Decoder.h
// ASN1Decoder
//
// Created by Filippo Maguolo on 8/29/17.
// Copyright © 2017 Filippo Maguolo. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for ASN1Decoder.
FOUNDATION_EXPORT double ASN1DecoderVersionNumber;
//! Project version string for ASN1Decoder.
FOUNDATIO... | //
// ASN1Decoder.h
// ASN1Decoder
//
// Created by Filippo Maguolo on 8/29/17.
// Copyright © 2017 Filippo Maguolo. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for ASN1Decoder.
FOUNDATION_EXPORT double ASN1DecoderVersionNumber;
//! Project version string for ASN1Decoder.
FOUNDATIO... | Remove double whitespace on header file | Remove double whitespace on header file
| C | mit | filom/ASN1Decoder,filom/ASN1Decoder |
e667a7e04b163eef4461e72246e8effd7be8f9fa | include/arch/x86/arch/machine/cpu_registers.h | include/arch/x86/arch/machine/cpu_registers.h | /*
* Copyright 2014, General Dynamics C4 Systems
*
* This software may be distributed and modified according to the terms of
* the GNU General Public License version 2. Note that NO WARRANTY is provided.
* See "LICENSE_GPLv2.txt" for details.
*
* @TAG(GD_GPL)
*/
#ifndef __ARCH_MACHINE_CPU_REGISTERS_H
#define _... | /*
* Copyright 2014, General Dynamics C4 Systems
*
* This software may be distributed and modified according to the terms of
* the GNU General Public License version 2. Note that NO WARRANTY is provided.
* See "LICENSE_GPLv2.txt" for details.
*
* @TAG(GD_GPL)
*/
#ifndef __ARCH_MACHINE_CPU_REGISTERS_H
#define _... | Add missing CR4 bit definition | x86: Add missing CR4 bit definition
| C | bsd-2-clause | cmr/seL4,cmr/seL4,cmr/seL4 |
358d98c9444ba6a7b181506220ef3ecddc4e7f04 | CWStatusBarNotification/CWStatusBarNotification.h | CWStatusBarNotification/CWStatusBarNotification.h | //
// CWStatusBarNotification
// CWNotificationDemo
//
// Created by Cezary Wojcik on 11/15/13.
// Copyright (c) 2013 Cezary Wojcik. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface CWStatusBarNotification : NSObject
enum {
CWNotificationStyleStatusBarNotification,
CWNotificationStyle... | //
// CWStatusBarNotification
// CWNotificationDemo
//
// Created by Cezary Wojcik on 11/15/13.
// Copyright (c) 2013 Cezary Wojcik. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface CWStatusBarNotification : NSObject
typedef NS_ENUM(NSInteger, CWNotificationStyle){
CWNotificationStyleStat... | Make types for enums, add types to properties | Make types for enums, add types to properties
| C | mit | kazmasaurus/CRToast,maranik/CRToast,hoanganh6491/CRToast,DerLobi/CRToast,perrystreetsoftware/CRToast,dmiedema/CRToast,AdamCampbell/CRToast,dedelost/CRToast,iosdevvivek/CRToast,mmmilo/CRToast,cnbin/CRToast,chinaljw/CRToast,Kevin775263419/CRToast,Trueey/CRToast,Naithar/CRToast,vladzz/CRToast,hulu001/CRToast,leoschweizer/... |
9490094b141003d692320113a662224a9fa2ef42 | include/asm-mips/i8253.h | include/asm-mips/i8253.h | /*
* Machine specific IO port address definition for generic.
* Written by Osamu Tomita <tomita@cinet.co.jp>
*/
#ifndef _MACH_IO_PORTS_H
#define _MACH_IO_PORTS_H
/* i8253A PIT registers */
#define PIT_MODE 0x43
#define PIT_CH0 0x40
#define PIT_CH2 0x42
/* i8259A PIC registers */
#define PIC_MASTER_CMD 0x20... | /*
* Machine specific IO port address definition for generic.
* Written by Osamu Tomita <tomita@cinet.co.jp>
*/
#ifndef __ASM_I8253_H
#define __ASM_I8253_H
/* i8253A PIT registers */
#define PIT_MODE 0x43
#define PIT_CH0 0x40
#define PIT_CH2 0x42
/* i8259A PIC registers */
#define PIC_MASTER_CMD 0x20
#defi... | Fix include wrapper symbol to something sane. | [MIPS] Fix include wrapper symbol to something sane.
And why are there i8253.h and 8253pit.h ...
Signed-off-by: Ralf Baechle <92f48d309cda194c8eda36aa8f9ae28c488fa208@linux-mips.org>
| C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_k... |
be6de4c1215a8ad5607b1fcc7e9e6da1de780877 | src/include/common/controldata_utils.h | src/include/common/controldata_utils.h | /*
* controldata_utils.h
* Common code for pg_controldata output
*
* Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* src/include/common/controldata_utils.h
*/
#ifndef COMMON_CONTROLDATA_UTILS_H
#define COMMON_CONTR... | /*
* controldata_utils.h
* Common code for pg_controldata output
*
* Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* src/include/common/controldata_utils.h
*/
#ifndef COMMON_CONTROLDATA_UTILS_H
#define COMMON_CONTR... | Add missing include for self-containment | Add missing include for self-containment
| C | apache-2.0 | greenplum-db/gpdb,greenplum-db/gpdb,adam8157/gpdb,ashwinstar/gpdb,greenplum-db/gpdb,50wu/gpdb,ashwinstar/gpdb,jmcatamney/gpdb,lisakowen/gpdb,xinzweb/gpdb,ashwinstar/gpdb,greenplum-db/gpdb,adam8157/gpdb,50wu/gpdb,50wu/gpdb,xinzweb/gpdb,greenplum-db/gpdb,adam8157/gpdb,ashwinstar/gpdb,lisakowen/gpdb,50wu/gpdb,50wu/gpdb,xi... |
7b91a38d79ab14ea212a91a69a19b31111d1ba91 | include/fish_detector/common/species_dialog.h | include/fish_detector/common/species_dialog.h | /// @file
/// @brief Defines SpeciesDialog class.
#ifndef SPECIES_DIALOG_H
#define SPECIES_DIALOG_H
#include <memory>
#include <QWidget>
#include <QDialog>
#include "fish_detector/common/species.h"
namespace Ui {
class SpeciesDialog;
}
namespace fish_detector {
class SpeciesDialog : public QDialog {
Q_OBJECT... | /// @file
/// @brief Defines SpeciesDialog class.
#ifndef SPECIES_DIALOG_H
#define SPECIES_DIALOG_H
#include <memory>
#include <QWidget>
#include <QDialog>
#include "fish_detector/common/species.h"
namespace Ui {
class SpeciesDialog;
}
namespace fish_detector {
class SpeciesDialog : public QDialog {
Q_OBJECT... | Remove unused friend class declaration | Remove unused friend class declaration
| C | mit | BGWoodward/FishDetector |
2a655bcf9e5c30077197d314690ffbf86a042712 | STTweetLabel/STTweetLabel.h | STTweetLabel/STTweetLabel.h | //
// STTweetLabel.h
// STTweetLabel
//
// Created by Sebastien Thiebaud on 09/29/13.
// Copyright (c) 2013 Sebastien Thiebaud. All rights reserved.
//
typedef enum {
STTweetHandle = 0,
STTweetHashtag,
STTweetLink
} STTweetHotWord;
@interface STTweetLabel : UILabel
@property (nonatomic, strong) NSArr... | //
// STTweetLabel.h
// STTweetLabel
//
// Created by Sebastien Thiebaud on 09/29/13.
// Copyright (c) 2013 Sebastien Thiebaud. All rights reserved.
//
typedef NS_ENUM(NSInteger, STTweetHotWord) {
STTweetHandle = 0,
STTweetHashtag,
STTweetLink
};
@interface STTweetLabel : UILabel
@property (nonatomic... | Make enum available to swift | Make enum available to swift
| C | mit | bespider/STTweetLabel,pankkor/STTweetLabel,pabelnl/STTweetLabel,HackRoy/STTweetLabel,SebastienThiebaud/STTweetLabel,quanquan1986/STTweetLabel |
0699830cd0dd5b606647c28c7e4b0965c418e6b8 | MenuItemKit/MenuItemKit.h | MenuItemKit/MenuItemKit.h | //
// MenuItemKit.h
// MenuItemKit
//
// Created by CHEN Xian’an on 1/16/16.
// Copyright © 2016 lazyapps. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "Headers.h"
//! Project version number for MenuItemKit.
FOUNDATION_EXPORT double MenuItemKitVersionNumber;
//! Project version string for MenuItemKit.... | //
// MenuItemKit.h
// MenuItemKit
//
// Created by CHEN Xian’an on 1/16/16.
// Copyright © 2016 lazyapps. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <MenuItemKit/Headers.h>
//! Project version number for MenuItemKit.
FOUNDATION_EXPORT double MenuItemKitVersionNumber;
//! Project version string for ... | Use brackets for headers as Xcode suggested | Use brackets for headers as Xcode suggested
| C | mit | cxa/MenuItemKit,cxa/MenuItemKit |
2b71152eafc98a35bca1b99a8fa0ab4a053876f8 | RMGallery/RMGallery.h | RMGallery/RMGallery.h | //
// RMGallery.h
// RMGallery
//
// Created by Hermés Piqué on 16/05/14.
// Copyright (c) 2014 Robot Media. 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
//... | //
// RMGallery.h
// RMGallery
//
// Created by Hermés Piqué on 16/05/14.
// Copyright (c) 2014 Robot Media. 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
//... | Add new line at end of file to fix build | Add new line at end of file to fix build
| C | apache-2.0 | UrbanCompass/RMGallery |
c923f1c951486603591d797c5f7fb7a0c2b923a5 | FTFountain/iOS/FTFountainiOS.h | FTFountain/iOS/FTFountainiOS.h | //
// FTFountainiOS.h
// FTFountain
//
// Created by Tobias Kräntzer on 18.07.15.
// Copyright (c) 2015 Tobias Kräntzer. All rights reserved.
//
// Adapter
#import "FTTableViewAdapter.h"
#import "FTCollectionViewAdapter.h"
| //
// FTFountainiOS.h
// FTFountain
//
// Created by Tobias Kräntzer on 18.07.15.
// Copyright (c) 2015 Tobias Kräntzer. All rights reserved.
//
// Adapter
#import "FTTableViewAdapter.h"
#import "FTTableViewAdapter+Subclassing.h"
#import "FTCollectionViewAdapter.h"
#import "FTCollectionViewAdapter+Subclassing.h"
| Add subclassing headers for the table and collection view adapter to the umbrella header | Add subclassing headers for the table and collection view adapter to the umbrella header
| C | bsd-3-clause | anagromataf/Fountain,anagromataf/Fountain |
cf0aebe327a7086e4c31a37aaa9b91491c619681 | src/Engine/Input.h | src/Engine/Input.h | #pragma once
#include "SDL.h"
#include "Component.h"
#include "Point.h"
#define NUM_MOUSE_BUTTONS 5
#define CONTROLLER_JOYSTICK_DEATHZONE 8000
class Input
{
public:
Input();
~Input();
void Poll(const SDL_Event& e);
bool IsKeyPressed(SDL_Scancode key);
bool IsKeyHeld(SDL_Scancode key) const;
bool IsKeyRelease... | #pragma once
#include "SDL.h"
#include "Component.h"
#include "Point.h"
#define NUM_MOUSE_BUTTONS 5
#define CONTROLLER_JOYSTICK_DEATHZONE 8000
class Input
{
public:
Input();
~Input();
void Poll(const SDL_Event& e);
bool IsKeyPressed(SDL_Scancode key);
bool IsKeyHeld(SDL_Scancode key) const;
bool IsKeyRelease... | Add mousePosition as Point, now commented for reworking | Add mousePosition as Point, now commented for reworking
| C | mit | CollegeBart/bart-sdl-engine-e16,CollegeBart/bart-sdl-engine-e16 |
a71cffa0a3a3efb64a8ea3b4ce110217f62b90fa | Solutions/03/view.stat.c | Solutions/03/view.stat.c | #include <stdio.h>
#include <linux/types.h>
#include <unistd.h>
#include <fcntl.h>
int main (int argc, char * argv [])
{
__u64 rdtsc = 0;
__u64 i = 0;
int fileStat = open (argv [1], O_RDONLY, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
while (read (fileStat, &rdtsc, sizeof (rdtsc) ) > 0) {
p... | #include <stdio.h>
#include <linux/types.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdlib.h>
int main (int argc, char * argv [])
{
__u64 rdtsc = 0;
__u64 i = 0;
int fileStat = open (argv [1], O_RDONLY, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
while (read (fileStat, &rdtsc, sizeof (rdtsc... | Fix trivial error: return void in main function. | Fix trivial error: return void in main function.
| C | mit | Gluttton/PslRK,Gluttton/PslRK,Gluttton/PslRK |
ca7fe8327518ae9d04f8e5b68f01ffabe699db52 | native/fallocate_darwin.c | native/fallocate_darwin.c | #define _FILE_OFFSET_BITS 64
#include <fcntl.h>
int native_fallocate(int fd, uint64_t len) {
fstore_t fstore;
fstore.fst_flags = F_ALLOCATECONTIG;
fstore.fst_posmode = F_PEOFPOSMODE;
fstore.fst_offset = 0;
fstore.fst_length = len;
fstore.fst_bytesalloc = 0;
return fcntl(fd, F_PREALLOCATE, ... | #define _FILE_OFFSET_BITS 64
#include <fcntl.h>
#include <stdint.h>
int native_fallocate(int fd, uint64_t len) {
fstore_t fstore;
fstore.fst_flags = F_ALLOCATECONTIG;
fstore.fst_posmode = F_PEOFPOSMODE;
fstore.fst_offset = 0;
fstore.fst_length = len;
fstore.fst_bytesalloc = 0;
return fcntl... | Add proper header for darwin build | Add proper header for darwin build
| C | isc | Luminarys/synapse,Luminarys/synapse,Luminarys/synapse |
4390c6c6c9de3934e1bf05cb7132f3ae908a4c35 | src/main.c | src/main.c | // Copyright 2016 Mitchell Kember. Subject to the MIT License.
#include "translate.h"
#include "transmit.h"
#include "util.h"
#include <stdio.h>
#include <unistd.h>
int main(int argc, char **argv) {
setup_util(argv[0]);
// Initialize the default mode.
int mode = 'e';
// Get command line options.
int c;
exter... | // Copyright 2016 Mitchell Kember. Subject to the MIT License.
#include "translate.h"
#include "transmit.h"
#include "util.h"
#include <stdio.h>
#include <unistd.h>
int main(int argc, char **argv) {
setup_util(argv[0]);
// Initialize the default mode.
int mode = 'e';
// Get command line options.
int c;
exter... | Print usage message on getopt error | Print usage message on getopt error
| C | mit | mk12/morse |
92ccc1fa3f8ac72673dd56e3d691103c0a6ec871 | src/lock.h | src/lock.h | #ifndef LOCK_H
#define LOCK_H
enum lockstat
{
GET_LOCK_NOT_GOT=0,
GET_LOCK_ERROR,
GET_LOCK_GOT
};
typedef struct lock lock_t;
struct lock
{
int fd;
enum lockstat status;
char *path;
lock_t *next;
};
extern struct lock *lock_alloc(void);
extern int lock_init(struct lock *lock, const char *path);
extern struct... | #ifndef LOCK_H
#define LOCK_H
enum lockstat
{
GET_LOCK_NOT_GOT=0,
GET_LOCK_ERROR,
GET_LOCK_GOT
};
struct lock
{
int fd;
enum lockstat status;
char *path;
struct lock *next;
};
extern struct lock *lock_alloc(void);
extern int lock_init(struct lock *lock, const char *path);
extern struct lock *lock_alloc_and_in... | Fix a build issue on Solaris | Fix a build issue on Solaris
| C | agpl-3.0 | rubenk/burp,rubenk/burp,rubenk/burp |
7b0b2ca43517ef59aa78c3ad4ce2c49df9bffaff | include/private/SkSpinlock.h | include/private/SkSpinlock.h | /*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkSpinlock_DEFINED
#define SkSpinlock_DEFINED
#include <atomic>
class SkSpinlock {
public:
void acquire() {
// To act as a mutex, we need an acquire barr... | /*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkSpinlock_DEFINED
#define SkSpinlock_DEFINED
#include "SkTypes.h"
#include <atomic>
class SkSpinlock {
public:
void acquire() {
// To act as a mutex, we... | Make Cmake work with debug build | Make Cmake work with debug build
Before this CL, the following failed to link:
cd .../skia
git fetch
git checkout origin/master
git clean -ffdx
SKIA="$PWD"
cd $(mktemp -d);
cmake "${SKIA}/cmake" -DCMAKE_BUILD_TYPE=Debug -G Ninja
ninja
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=... | C | bsd-3-clause | HalCanary/skia-hc,google/skia,qrealka/skia-hc,Hikari-no-Tenshi/android_external_skia,HalCanary/skia-hc,google/skia,google/skia,tmpvar/skia.cc,qrealka/skia-hc,Hikari-no-Tenshi/android_external_skia,rubenvb/skia,tmpvar/skia.cc,qrealka/skia-hc,Hikari-no-Tenshi/android_external_skia,rubenvb/skia,aosp-mirror/platform_extern... |
9b4050f924a3ac59e1a390fff1ca94690c7b648c | hw/mcu/nordic/nrf52xxx-compat/include/nrfx_config.h | hw/mcu/nordic/nrf52xxx-compat/include/nrfx_config.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 ... | /*
* 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 ... | Fix weird includes in compat package | hw/mcu/nordic: Fix weird includes in compat package
| C | apache-2.0 | mlaz/mynewt-core,mlaz/mynewt-core,mlaz/mynewt-core,mlaz/mynewt-core,mlaz/mynewt-core |
3c701bdbd8c761b885c8f7332b034ab6c6b6daab | core/metautils/src/vectorLinkdef.h | core/metautils/src/vectorLinkdef.h | #include <string>
#include <vector>
#ifndef __hpux
using namespace std;
#endif
#pragma create TClass vector<bool>;
#pragma create TClass vector<char>;
#pragma create TClass vector<short>;
#pragma create TClass vector<long>;
#pragma create TClass vector<unsigned char>;
#pragma create TClass vector<unsigned short>;
#pra... | #include <string>
#include <vector>
#ifndef __hpux
using namespace std;
#endif
#pragma create TClass vector<bool>;
#pragma create TClass vector<char>;
#pragma create TClass vector<short>;
#pragma create TClass vector<long>;
#pragma create TClass vector<unsigned char>;
#pragma create TClass vector<unsigned short>;
#pra... | Add missing TClass creation for vector<Long64_t> and vector<ULong64_t> | Add missing TClass creation for vector<Long64_t> and vector<ULong64_t>
git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@38659 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | thomaskeck/root,Duraznos/root,beniz/root,perovic/root,perovic/root,Y--/root,agarciamontoro/root,georgtroska/root,sawenzel/root,gganis/root,nilqed/root,buuck/root,buuck/root,simonpf/root,nilqed/root,davidlt/root,omazapa/root,0x0all/ROOT,perovic/root,veprbl/root,esakellari/my_root_for_test,lgiommi/root,dfunke/root,ffuran... |
b49fa616d47a39193c59d610964276ddb1df732a | runtime/GCCLibraries/libc/memory.c | runtime/GCCLibraries/libc/memory.c | //===-- memory.c - String functions for the LLVM libc Library ----*- C -*-===//
//
// A lot of this code is ripped gratuitously from glibc and libiberty.
//
//===----------------------------------------------------------------------===//
#include <stdlib.h>
void *malloc(size_t) __attribute__((weak));
void free(void ... | //===-- memory.c - String functions for the LLVM libc Library ----*- C -*-===//
//
// A lot of this code is ripped gratuitously from glibc and libiberty.
//
//===---------------------------------------------------------------------===//
#include <stdlib.h>
// If we're not being compiled with GCC, turn off attributes... | Disable __attribute__((weak)) on Mac OS X and other lame platforms. | Disable __attribute__((weak)) on Mac OS X and other lame platforms.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@10489 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie... |
24663de702224e464ac5036ddea96f4cc070f090 | TrackingControllerDefs.h | TrackingControllerDefs.h | //
// TrackingControllerDefs.h
//
// Created by Matt Martel on 02/20/09
// Copyright Mundue LLC 2008-2011. All rights reserved.
//
// Create an account at http://www.flurry.com
// Code and integration instructions at
// http://dev.flurry.com/createProjectSelectPlatform.do
#define USES_FLURRY
#define kFlurryAPIKey @... | //
// TrackingControllerDefs.h
//
// Created by Matt Martel on 02/20/09
// Copyright Mundue LLC 2008-2011. All rights reserved.
//
// Create an account at http://www.flurry.com
// Code and integration instructions at
// http://dev.flurry.com/createProjectSelectPlatform.do
// Uncomment the following two lines to use... | Comment out services by default | Comment out services by default
| C | mit | mundue/MMTrackingController |
e4f4ddadac119535f6cd7e1eb612f3de35100516 | include/tasks/train_master.h | include/tasks/train_master.h |
#ifndef __TRAIN_MASTER_H__
#define __TRAIN_MASTER_H__
void __attribute__ ((noreturn)) train_master();
typedef enum {
MASTER_CHANGE_SPEED,
MASTER_REVERSE, // step 1
MASTER_REVERSE2, // step 2 (used by delay courier)
MASTER_REVERSE3, // step 3 (used by delay courier)
MASTER_WHERE_ARE_YOU,
MAST... |
#ifndef __TRAIN_MASTER_H__
#define __TRAIN_MASTER_H__
void __attribute__ ((noreturn)) train_master();
typedef enum {
MASTER_CHANGE_SPEED,
MASTER_REVERSE, // step 1
MASTER_REVERSE2, // step 2 (used by delay courier)
MASTER_REVERSE3, // step 3 (used by delay courier)
MASTER_WHERE_ARE_YOU,
MAST... | Remove unused argument space from master req | Remove unused argument space from master req | C | mit | ferrous26/cs452-flaming-meme,ferrous26/cs452-flaming-meme,ferrous26/cs452-flaming-meme |
61797de177d095713049cbd8c4f830cc5d0c7045 | BotKit/BotKit.h | BotKit/BotKit.h | //
// BotKit.h
// BotKit
//
// Created by Mark Adams on 9/28/12.
// Copyright (c) 2012 thoughtbot. All rights reserved.
//
#import "BKCoreDataManager.h"
#import "BKManagedViewController.h"
#import "BKManagedTableViewController.h"
#import "NSObject+BKCoding.h"
#import "NSArray+ObjectAccess.h"
#import "NSDate+Relati... | //
// BotKit.h
// BotKit
//
// Created by Mark Adams on 9/28/12.
// Copyright (c) 2012 thoughtbot. All rights reserved.
//
#import "BKCoreDataManager.h"
#import "BKManagedViewController.h"
#import "BKManagedTableViewController.h"
#import "NSObject+BKCoding.h"
#import "NSArray+ObjectAccess.h"
#import "NSDate+Relati... | Add NSData+Base64Encoding.h to main header | Add NSData+Base64Encoding.h to main header
| C | mit | thoughtbot/BotKit,thoughtbot/BotKit |
f3e611c9e373a0147be472cb7913f3604baf2a08 | log.c | log.c | #include "log.h"
#include "timeutil.h"
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static bool flushAfterLog = false;
void proxyLogSetFlush(bool enabled)
{
flushAfterLog = enabled;
}
void proxyLog(const char* format, ...)
{
va_list args;
va_start(args, f... | #include "log.h"
#include "timeutil.h"
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static bool flushAfterLog = false;
void proxyLogSetFlush(bool enabled)
{
flushAfterLog = enabled;
}
void proxyLog(const char* format, ...)
{
va_list args;
va_start(args, f... | Use putchar instead of printf. | Use putchar instead of printf.
| C | mit | aaronriekenberg/openbsd_cproxy,aaronriekenberg/openbsd_cproxy |
ad9cd9bfff8f0b7428c68ba02857a5789d8c3b77 | demo/embedding/helloworld.c | demo/embedding/helloworld.c | #include <stdio.h>
#include <mpi.h>
#include <Python.h>
const char helloworld[] = \
"from mpi4py import MPI \n"
"hwmess = 'Hello, World! I am process %d of %d on %s.' \n"
"myrank = MPI.COMM_WORLD.Get_rank() \n"
"nprocs = MPI.COMM_WORLD.Get_size() \n"
"procnm = MPI.Get_processor_name() \n"
"pri... | /*
* You can use safely use mpi4py between multiple
* Py_Initialize()/Py_Finalize() calls ...
* but do not blame me for the memory leaks ;-)
*
*/
#include <mpi.h>
#include <Python.h>
const char helloworld[] = \
"from mpi4py import MPI \n"
"hwmess = 'Hello, World! I am process %d of %d on %s.' \n"
... | Update and simplify embedding demo | Update and simplify embedding demo | C | bsd-2-clause | pressel/mpi4py,pressel/mpi4py,mpi4py/mpi4py,mpi4py/mpi4py,mpi4py/mpi4py,pressel/mpi4py,pressel/mpi4py |
c3aad0461ff755aaf50dc5c734f362fc488b6d31 | utility.h | utility.h | #pragma once
namespace mmh {
template <typename Size, typename Object>
constexpr Size sizeof_t()
{
return gsl::narrow<Size>(sizeof Object);
}
template <typename Size, typename Value>
constexpr Size sizeof_t(const Value& value)
{
return gsl::narrow<Size>(sizeof value);
}
} // namespace mmh
| #pragma once
namespace mmh {
template <typename Size, typename Object>
constexpr Size sizeof_t()
{
return gsl::narrow<Size>(sizeof(Object));
}
template <typename Size, typename Value>
constexpr Size sizeof_t(const Value& value)
{
return gsl::narrow<Size>(sizeof value);
}
} // namespace mmh
| Add missing brackets needed for Clang | Add missing brackets needed for Clang
| C | bsd-3-clause | reupen/mmh,reupen/mmh |
2953f13d4dd38f06ae52ff09532bc2e401c46738 | src/main.c | src/main.c | #include <pebble.h>
#include "pebcessing/pebcessing.h"
static Window *window = NULL;
static void init(void)
{
window = window_create();
window_set_fullscreen(window, true);
window_stack_push(window, true);
}
static void deinit(void)
{
window_destroy(window);
}
int main(void)
{
init();
init_pebcessi... | #include <pebble.h>
#include "pebcessing/pebcessing.h"
static Window *window = NULL;
static void init(void)
{
window = window_create();
// Make the window fullscreen.
// All Windows are fullscreen-only on the Basalt platform.
#ifdef PBL_PLATFORM_APLITE
window_set_fullscreen(window, true);
#endif
window_stac... | Change so that window_set_fullscreen() is called only on the Aplite platform | Change so that window_set_fullscreen() is called only on the Aplite platform
| C | mit | hikoLab/pebcessing,hikoLab/pebcessing,itosue/pebcessing,itosue/pebcessing,hikoLab/pebcessing,itosue/pebcessing |
fe59f3886ddc97f26e2bbad5039302aa7061a918 | include/skbuff.h | include/skbuff.h | #ifndef SKBUFF_H_
#define SKBUFF_H_
#include "netdev.h"
#include "dst.h"
#include "list.h"
#include <pthread.h>
struct sk_buff {
struct list_head list;
struct dst_entry *dst;
struct netdev *netdev;
uint16_t protocol;
uint32_t len;
uint8_t *tail;
uint8_t *end;
uint8_t *head;
uint8_t... | #ifndef SKBUFF_H_
#define SKBUFF_H_
#include "netdev.h"
#include "dst.h"
#include "list.h"
#include <pthread.h>
struct sk_buff {
struct list_head list;
struct dst_entry *dst;
struct netdev *netdev;
uint16_t protocol;
uint32_t len;
uint8_t *tail;
uint8_t *end;
uint8_t *head;
uint8_t... | Add skb queue length getter | Add skb queue length getter
| C | mit | saminiir/level-ip,saminiir/level-ip |
122f9363682e5de8ce4056c4c05c1eaf8935cf19 | src/libstddjb/cdb_free.c | src/libstddjb/cdb_free.c | /* ISC license. */
#include <sys/mman.h>
#include <skalibs/cdb.h>
extern void cdb_free (struct cdb *c)
{
if (c->map) munmap(c->map, c->size) ;
*c = cdb_zero ;
}
| /* ISC license. */
#include <sys/mman.h>
#include <errno.h>
#include <skalibs/cdb.h>
extern void cdb_free (struct cdb *c)
{
if (c->map)
{
int e = errno ;
munmap(c->map, c->size) ;
errno = e ;
}
*c = cdb_zero ;
}
| Save errno when freeing a cdb | Save errno when freeing a cdb
Signed-off-by: Laurent Bercot <3aa9adbbb49a4d5ab9c798d5e366f54570870800@appnovation.com>
| C | isc | skarnet/skalibs,skarnet/skalibs |
47cb8d841569225b3e8e33945313709f964bd932 | src/drivers/tty/serial/ttys_oldfs.h | src/drivers/tty/serial/ttys_oldfs.h | /**
* @file
*
* @date 21.04.2016
* @author Anton Bondarev
*/
#ifndef TTYS_H_
#define TTYS_H_
#include <fs/idesc.h>
#include <drivers/tty.h>
struct uart;
struct tty_uart {
struct idesc idesc;
struct tty tty;
struct uart *uart;
};
#endif /* TTYS_H_ */
| /**
* @file
*
* @date 21.04.2016
* @author Anton Bondarev
*/
#ifndef TTYS_H_
#define TTYS_H_
#include <fs/idesc.h>
#include <drivers/tty.h>
#include <drivers/char_dev.h>
struct uart;
struct tty_uart {
struct idesc idesc;
struct tty tty;
struct uart *uart;
};
extern struct idesc *uart_cdev_open(struct dev_mo... | Add TTYS_DEF macro to oldfs | drivers: Add TTYS_DEF macro to oldfs
| C | bsd-2-clause | embox/embox,embox/embox,embox/embox,embox/embox,embox/embox,embox/embox |
da633160262800462ebda14807cffbb23fc68b29 | src/condor_syscall_lib/syscall_param_sizes.h | src/condor_syscall_lib/syscall_param_sizes.h | #define STAT_SIZE sizeof(struct stat)
#define STATFS_SIZE sizeof(struct statfs)
#define GID_T_SIZE sizeof(gid_t)
#define INT_SIZE sizeof(int)
#define LONG_SIZE sizeof(long)
#define FD_SET_SIZE sizeof(fd_set)
#define TIMEVAL_SIZE sizeof(struct timeval)
#define TIMEVAL_ARRAY_SIZE (sizeof(struct timeval) * 2)
#define TIME... | #define STAT_SIZE sizeof(struct stat)
#define STATFS_SIZE sizeof(struct statfs)
#define GID_T_SIZE sizeof(gid_t)
#define INT_SIZE sizeof(int)
#define LONG_SIZE sizeof(long)
#define FD_SET_SIZE sizeof(fd_set)
#define TIMEVAL_SIZE sizeof(struct timeval)
#define TIMEVAL_ARRAY_SIZE (sizeof(struct timeval) * 2)
#define TIME... | Add macros for sized of "size_t" and "u_short". | Add macros for sized of "size_t" and "u_short".
| C | apache-2.0 | bbockelm/condor-network-accounting,bbockelm/condor-network-accounting,htcondor/htcondor,htcondor/htcondor,clalancette/condor-dcloud,mambelli/osg-bosco-marco,neurodebian/htcondor,clalancette/condor-dcloud,bbockelm/condor-network-accounting,mambelli/osg-bosco-marco,htcondor/htcondor,neurodebian/htcondor,bbockelm/condor-n... |
c47c472d169e5dd2eeadfddb48ac71c114e29559 | src/tuple.h | src/tuple.h | /*
* tuple.h - define data structure for tuples
*/
#ifndef _TUPLE_H_
#define _TUPLE_H_
#define MAX_TUPLE_SIZE 4096
union Tuple {
unsigned char bytes[MAX_TUPLE_SIZE];
char *ptrs[MAX_TUPLE_SIZE/sizeof(char *)];
};
#endif /* _TUPLE_H_ */
| /*
* Copyright (c) 2013, Court of the University of Glasgow
* 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,
* thi... | Add BSD 3-clause open source header | Add BSD 3-clause open source header
| C | bsd-3-clause | fergul/Cache,jsventek/Cache,fergul/Cache,fergul/Cache,jsventek/Cache,jsventek/Cache |
849dcc2fd36ec01352a3544c501cbbe5afa78d95 | src/empathy-accounts-module.c | src/empathy-accounts-module.c | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
*
* Copyright (C) 2010 Red Hat, Inc.
* Copyright (C) 2010 Collabora Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software F... | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
*
* Copyright (C) 2010 Red Hat, Inc.
* Copyright (C) 2010 Collabora Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software F... | Remove call to textdomain () | accounts-module: Remove call to textdomain ()
This shouldn't be called in shared module.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=617262
| C | lgpl-2.1 | GNOME/telepathy-account-widgets,Distrotech/telepathy-account-widgets,Distrotech/telepathy-account-widgets,GNOME/telepathy-account-widgets,GNOME/telepathy-account-widgets |
2f376c9b25a8654b508613ddd57851c015f14858 | hipify-clang/src/CUDA2HipMap.h | hipify-clang/src/CUDA2HipMap.h | #pragma once
#include "llvm/ADT/StringRef.h"
#include <set>
#include <map>
#include "Types.h"
// TODO: This shouldn't really be here. More restructuring needed...
struct hipCounter {
llvm::StringRef hipName;
ConvTypes countType;
ApiTypes countApiType;
int unsupported;
};
#define HIP_UNSUPPORTED -1
... | #pragma once
#include "llvm/ADT/StringRef.h"
#include <set>
#include <map>
#include "Types.h"
// TODO: This shouldn't really be here. More restructuring needed...
struct hipCounter {
llvm::StringRef hipName;
ConvTypes countType;
ApiTypes countApiType;
bool unsupported;
};
#define HIP_UNSUPPORTED tru... | Make `unsupported` actually be a bool... | Make `unsupported` actually be a bool...
| C | mit | ROCm-Developer-Tools/HIP,ROCm-Developer-Tools/HIP,GPUOpen-ProfessionalCompute-Tools/HIP,ROCm-Developer-Tools/HIP,GPUOpen-ProfessionalCompute-Tools/HIP,GPUOpen-ProfessionalCompute-Tools/HIP,ROCm-Developer-Tools/HIP,GPUOpen-ProfessionalCompute-Tools/HIP,GPUOpen-ProfessionalCompute-Tools/HIP,ROCm-Developer-Tools/HIP |
1ffa2c93463833e800dbac2a5fed09cabdb0da1c | tools/sleep.c | tools/sleep.c | // Title: sleep
// Name: sleep.c
// Author: Matayoshi
// Date: 2010/06/20
// Ver: 1.0.0
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main(int argc, char* argv[]) {
// `FbN
if(argc < 2) {
fprintf(stdout, "Usage: %s msec\n", argv[0]);
exit(1);
} else {
char buf[16];
int wait = 0;
... | // Title: sleep
// Name: sleep.c
// Author: Matayoshi
// Date: 2010/06/20
// Ver: 1.0.0
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main(int argc, char* argv[]) {
// 引数チェック
if(argc < 2) {
fprintf(stdout, "Usage: %s msec\n", argv[0]);
exit(1);
} else {
char buf[16];
int wait = 0... | Change character encoding.(Shift_JIS -> UTF-8) | Change character encoding.(Shift_JIS -> UTF-8)
| C | bsd-2-clause | matayoshi/tools |
7334efa66bcbcd6bfd95cb9c4d3236a9a469daf1 | libutils/include/utils/force.h | libutils/include/utils/force.h | /*
* Copyright 2016, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*/
#pragma once
/* macros for forcing the compiler to leave in statments it would
* n... | /*
* Copyright 2016, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*/
#pragma once
/* macros for forcing the compiler to leave in statments it would
* n... | Rephrase FORCE_READ into something safer. | libutils: Rephrase FORCE_READ into something safer.
This commit rephrases the `FORCE_READ` macro to avoid an unorthodox use of
`volatile`. The change makes the read less malleable from the compiler's point
of view.
It also has the unintended side effect of slightly optimising this operation. On
x86, an optimising com... | C | bsd-2-clause | agacek/util_libs,agacek/util_libs,agacek/util_libs,agacek/util_libs |
90d4efa6094d0af71afbede10293b30e065e27bf | test/PCH/changed-files.c | test/PCH/changed-files.c | const char *s0 = m0;
int s1 = m1;
const char *s2 = m0;
// FIXME: This test fails inexplicably on Windows in a manner that makes it
// look like standard error isn't getting flushed properly.
// RUN: true
// RUNx: echo '#define m0 ""' > %t.h
// RUNx: %clang_cc1 -emit-pch -o %t.h.pch %t.h
// RUNx: echo '' > %t.h
// RU... | const char *s0 = m0;
int s1 = m1;
const char *s2 = m0;
// FIXME: This test fails inexplicably on Windows in a manner that makes it
// look like standard error isn't getting flushed properly.
// RUN: false
// XFAIL: *
// RUN: echo '#define m0 ""' > %t.h
// RUN: %clang_cc1 -emit-pch -o %t.h.pch %t.h
// RUN: echo '' >... | Use Daniel's trick for XFAIL'd tests | Use Daniel's trick for XFAIL'd tests
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@99515 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
94a4b6a3f8de8f9dcd11e3fecacb3444785e6087 | src/Draupnir.h | src/Draupnir.h | #ifndef DRAUPNIR_H__
#define DRAUPNIR_H__
#include <cstdint>
#include "Sponge.h"
#include "CrcSponge.h"
#include "CrcSpongeBuilder.h"
#include "Constants.h"
namespace Draupnir {
// utility typedefs
typedef CrcSponge<std::uint64_t> CrcSponge64;
typedef CrcSponge<std::uint32_t> CrcSponge32;
typedef CrcSponge<... | #ifndef DRAUPNIR_H__
#define DRAUPNIR_H__
#include <cstdint>
#include "Sponge.h"
#include "CrcSponge.h"
#include "CrcSpongeBuilder.h"
#include "Constants.h"
namespace Draupnir {
// utility typedefs
using CrcSponge64 = CrcSponge<std::uint64_t>;
using CrcSponge32 = CrcSponge<std::uint32_t>;
using CrcSponge16 ... | Use using instead of typedef | Use using instead of typedef
| C | agpl-3.0 | mariano-perez-rodriguez/draupnir |
212e2ca79c73f0997e06a351f63691d3f2976c15 | tests/regression/10-synch/24-tid-partitioned-array-global.c | tests/regression/10-synch/24-tid-partitioned-array-global.c | // PARAM: --enable exp.partition-arrays.enabled
#include <pthread.h>
pthread_t t_ids[10000];
void *t_fun(void *arg) {
return NULL;
}
int main(void) {
for (int i = 0; i < 10000; i++)
pthread_create(&t_ids[i], NULL, t_fun, NULL);
for (int i = 0; i < 10000; i++)
pthread_join (t_ids[i], NULL);
return 0;... | // PARAM: --set ana.activated[+] thread --enable exp.partition-arrays.enabled
#include <pthread.h>
pthread_t t_ids[10000];
void *t_fun(void *arg) {
return NULL;
}
int main(void) {
for (int i = 0; i < 10000; i++)
pthread_create(&t_ids[i], NULL, t_fun, NULL);
for (int i = 0; i < 10000; i++)
pthread_join ... | Fix missing thread analysis in 10/24 | Fix missing thread analysis in 10/24
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
23f2dfdefaab0c052c7c1695e53331a7992df5b9 | include-fixer/find-all-symbols/STLPostfixHeaderMap.h | include-fixer/find-all-symbols/STLPostfixHeaderMap.h | //===-- STLPostfixHeaderMap.h - hardcoded header map for STL ----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- STLPostfixHeaderMap.h - hardcoded header map for STL ----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Include local header with quotes instead of angle brackets. | Include local header with quotes instead of angle brackets.
This works by accident because we pass '-I.'
git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@270701 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra |
1ca440467863ff2daa0234b36401706872391e6a | src/clientversion.h | src/clientversion.h | #ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning and copyright year
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 9
#define CLIENT_VERSION_REVISION 0
#define CLIENT_VERSION_BUILD ... | #ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning and copyright year
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 9
#define CLIENT_VERSION_REVISION 1
#define CLIENT_VERSION_BUILD ... | Bump version for openssl security updates | Bump version for openssl security updates
| C | mit | CatcoinOfficial/CatcoinRelease,CatcoinOfficial/CatcoinRelease,CatcoinOfficial/CatcoinRelease,CatcoinOfficial/CatcoinRelease,CatcoinOfficial/CatcoinRelease |
724948b4d891a91e2912497c1a3e544543b501b1 | src/mongoc/mongoc-iovec.h | src/mongoc/mongoc-iovec.h | /*
* Copyright 2014 MongoDB, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | /*
* Copyright 2014 MongoDB, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Make sure our iovec abstraction is compatible with Windows WSABUF | CDRIVER-756: Make sure our iovec abstraction is compatible with Windows WSABUF
We cast mongoc_iovec_t to LPWSABUF in our sendmsg() wrapper
| C | apache-2.0 | ajdavis/mongo-c-driver,rcsanchez97/mongo-c-driver,acmorrow/mongo-c-driver,ajdavis/mongo-c-driver,rcsanchez97/mongo-c-driver,derickr/mongo-c-driver,christopherjwang/mongo-c-driver,christopherjwang/mongo-c-driver,jmikola/mongo-c-driver,derickr/mongo-c-driver,jmikola/mongo-c-driver,acmorrow/mongo-c-driver,beingmeta/mongo-... |
f639faedd1daf285559fea44fc00190a668cec32 | src2/BeaconMapper.h | src2/BeaconMapper.h | //
// Created by Scott Stark on 6/12/15.
//
#ifndef NATIVESCANNER_BEACONMAPPER_H
#define NATIVESCANNER_BEACONMAPPER_H
#include <map>
#include <string>
using namespace std;
/**
* Map a beacon id to the registered user by querying the application registration rest api
*/
class BeaconMapper {
private:
map<int, s... | //
// Created by Scott Stark on 6/12/15.
//
#ifndef NATIVESCANNER_BEACONMAPPER_H
#define NATIVESCANNER_BEACONMAPPER_H
#include <map>
#include <string>
using namespace std;
/**
* Map a beacon id to the registered user by querying the application registration rest api
*
* Relies on:
* git clone https://github.com... | Document full requirements for the beacon mapper | Document full requirements for the beacon mapper
| C | apache-2.0 | starksm64/NativeRaspberryPiBeaconParser,starksm64/NativeRaspberryPiBeaconParser,starksm64/NativeRaspberryPiBeaconParser,starksm64/NativeRaspberryPiBeaconParser,starksm64/NativeRaspberryPiBeaconParser |
69ec185fd5de8c133808a5aeec5b0435a3d2025e | RNSketch/RNSketchManager.h | RNSketch/RNSketchManager.h | //
// RNSketchManager.m
// RNSketch
//
// Created by Jeremy Grancher on 28/04/2016.
// Copyright © 2016 Jeremy Grancher. All rights reserved.
//
#import "RCTViewManager.h"
#import "RNSketch.h"
@interface RNSketchManager : RCTViewManager
@property (strong) RNSketch *sketchView;
@end;
| //
// RNSketchManager.m
// RNSketch
//
// Created by Jeremy Grancher on 28/04/2016.
// Copyright © 2016 Jeremy Grancher. All rights reserved.
//
#if __has_include(<React/RCTViewManager.h>)
// React Native >= 0.40
#import <React/RCTViewManager.h>
#else
// React Native <= 0.39
#import "RCTViewManager.h"
#endif
#impo... | Support RN 0.40 headers while retaining backwards compatibility. | Support RN 0.40 headers while retaining backwards compatibility.
Use #if to conditionally import React headers. | C | mit | jgrancher/react-native-sketch |
37429be0d50a7a8d9b5ea34346613410a89c8c53 | Reducers/REDIterable.h | Reducers/REDIterable.h | // Copyright (c) 2014 Rob Rix. All rights reserved.
#import <Foundation/Foundation.h>
@protocol REDIterable <NSObject>
@property (readonly) id(^red_iterator)(void);
@end
| // Copyright (c) 2014 Rob Rix. All rights reserved.
#import <Foundation/Foundation.h>
/// A nullary block iterating the elements of a collection over successive calls.
///
/// \return The next object in the collection, or nil if it has iterated the entire collection.
typedef id (^REDIteratingBlock)(void);
/// A col... | Add a typedef for iterators. | Add a typedef for iterators.
| C | mit | policp/Reducers,robrix/Reducers |
d086430fdd5b4cf3cc168b794ac823629994fc18 | test/pragma/both.c | test/pragma/both.c | // RUN: %check %s
#pragma STDC FENV_ACCESS on
_Pragma("STDC FENV_ACCESS on"); // CHECK: warning: unhandled STDC pragma
// CHECK: ^warning: extra ';' at global scope
#define LISTING(x) PRAGMA(listing on #x)
#define PRAGMA(x) _Pragma(#x)
LISTING(../listing) // CHECK: warning: unknown pragma 'listing on "../listing"'
... | // RUN: %check %s
#pragma STDC FENV_ACCESS ON
_Pragma("STDC FENV_ACCESS ON"); // CHECK: warning: unhandled STDC pragma
// CHECK: ^warning: extra ';' at global scope
#define LISTING(x) PRAGMA(listing on #x)
#define PRAGMA(x) _Pragma(#x)
LISTING(../listing) // CHECK: warning: unknown pragma 'listing on "../listing"'
... | Correct case of STDC pragmas | Correct case of STDC pragmas
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler |
e43162ceeb46ef215c9a5215b36b01f695eca60e | ios/KCKeepAwake.h | ios/KCKeepAwake.h | #import "RCTBridgeModule.h"
@interface KCKeepAwake : NSObject <RCTBridgeModule>
@end
| #import <React/RCTBridgeModule.h>
@interface KCKeepAwake : NSObject <RCTBridgeModule>
@end
| Correct import path to match RN 0.40 | Correct import path to match RN 0.40
| C | mit | corbt/react-native-keep-awake,corbt/react-native-keep-awake,corbt/react-native-keep-awake |
2d6cf0686fb211408a6f5ed96ac5341f1c486aaa | kremlib/kremstr.c | kremlib/kremstr.c | #include "kremlib.h"
#include "kremstr.h"
/******************************************************************************/
/* Implementation of FStar.String and FStar.HyperIO */
/******************************************************************************/
/* FStar.h is generally kept for ... | #include "kremlib.h"
#include "kremstr.h"
/******************************************************************************/
/* Implementation of FStar.String and FStar.HyperIO */
/******************************************************************************/
/* FStar.h is generally kept for ... | Revert "Try to catch up on upstream F* changes" | Revert "Try to catch up on upstream F* changes"
This reverts commit 5b09f1f43b155df40caa8d8716075ccd7d08af26.
| C | apache-2.0 | FStarLang/kremlin,FStarLang/kremlin,FStarLang/kremlin,FStarLang/kremlin |
57ca28bb8d019266a16ff18a87d71f12b59224b5 | src/exercise112.c | src/exercise112.c | /*
* A solution to Exercise 1-12 in The C Programming Language (Second Edition).
*
* This file was written by Damien Dart <damiendart@pobox.com>. This is free
* and unencumbered software released into the public domain. For more
* information, please refer to the accompanying "UNLICENCE" file.
*/
#include <stdbo... | /*
* A solution to Exercise 1-12 in The C Programming Language (Second Edition).
*
* This file was written by Damien Dart <damiendart@pobox.com>. This is free
* and unencumbered software released into the public domain. For more
* information, please refer to the accompanying "UNLICENCE" file.
*/
#include <stdbo... | Fix solution to Exercise 1-12. | Fix solution to Exercise 1-12.
Fix solution to Exercise 1-12 so that newline characters are processed correctly.
| C | unlicense | damiendart/knr-solutions,damiendart/knr-solutions,damiendart/knr-solutions |
f4c69c820550a352cb123bfb0b16c33c659a4ca6 | src/timezone/pgtz.c | src/timezone/pgtz.c | /*-------------------------------------------------------------------------
*
* pgtz.c
* Timezone Library Integration Functions
*
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.5 2004/05/01 01:38:53 momjian Exp $
*
*-... | /*-------------------------------------------------------------------------
*
* pgtz.c
* Timezone Library Integration Functions
*
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.6 2004/05/01 22:07:03 momjian Exp $
*
*-... | Fix timezone data path for Unix and win32. | Fix timezone data path for Unix and win32.
| C | apache-2.0 | yuanzhao/gpdb,atris/gpdb,kmjungersen/PostgresXL,zeroae/postgres-xl,yuanzhao/gpdb,jmcatamney/gpdb,50wu/gpdb,yuanzhao/gpdb,rubikloud/gpdb,rvs/gpdb,lpetrov-pivotal/gpdb,techdragon/Postgres-XL,yuanzhao/gpdb,Postgres-XL/Postgres-XL,lisakowen/gpdb,CraigHarris/gpdb,kaknikhil/gpdb,lintzc/gpdb,rubikloud/gpdb,janebeckman/gpdb,li... |
49c893bd1e9f6e8bd808f517c37aaf053dcbea8b | test/CodeGen/fp128_complex.c | test/CodeGen/fp128_complex.c | // RUN: %clang -target aarch64-linux-gnuabi %s -O3 -S -emit-llvm -o - | FileCheck %s
#include <complex.h>
complex long double a, b, c, d;
void test_fp128_compound_assign(void) {
// CHECK: tail call { fp128, fp128 } @__multc3
a *= b;
// CHECK: tail call { fp128, fp128 } @__divtc3
c /= d;
}
| // RUN: %clang -target aarch64-linux-gnuabi %s -O3 -S -emit-llvm -o - | FileCheck %s
_Complex long double a, b, c, d;
void test_fp128_compound_assign(void) {
// CHECK: tail call { fp128, fp128 } @__multc3
a *= b;
// CHECK: tail call { fp128, fp128 } @__divtc3
c /= d;
}
| Remove including <complex.h> in test case, and change to use _Complex instead. | Remove including <complex.h> in test case, and change to use _Complex instead.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@220258 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
5ced8e4fdfa8fd781c0a39b29597762cedcedec6 | features/mbedtls/platform/inc/platform_mbed.h | features/mbedtls/platform/inc/platform_mbed.h | /**
* Copyright (C) 2006-2016, ARM Limited, 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
*
* http://www.apache.org/l... | /**
* Copyright (C) 2006-2016, ARM Limited, 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
*
* http://www.apache.org/l... | Integrate mbed OS RTC with mbed TLS | Integrate mbed OS RTC with mbed TLS
The integration is simply to define the macro MBEDTLS_HAVE_TIME_DATE
in the features/mbedtls/platform/inc/platform_mbed.h. The default
implementation of the mbedtls_time() function provided by mbed TLS is
sufficient to work with mbed OS because both use POSIX functions.
| C | apache-2.0 | c1728p9/mbed-os,mbedmicro/mbed,andcor02/mbed-os,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,andcor02/mbed-os,kjbracey-arm/mbed,betzw/mbed-os,kjbracey-arm/mbed,kjbracey-arm/mbed,c1728p9/mbed-os,betzw/mbed-os,c1728p9/mbed-os,andcor02/mbed-os,andcor02/mbed-os,betzw/mbed-os,andcor02/mbed-os,c1728p9/mbed-os,... |
7ab32e65bd6fb6d0cb0c475186fb4e3830f9fa82 | cell.h | cell.h | #ifndef CELL_H
#define CELL_H
#include <map>
#include <vector>
#include "number.h"
class Cell {
public:
Cell();
explicit Cell(const Cell &rhs);
explicit Cell(Cell *value);
explicit Cell(bool value);
explicit Cell(Number value);
explicit Cell(const std::string &value);
explicit Cell(const ... | #ifndef CELL_H
#define CELL_H
#include <map>
#include <vector>
#include "number.h"
class Cell {
public:
Cell();
Cell(const Cell &rhs);
explicit Cell(Cell *value);
explicit Cell(bool value);
explicit Cell(Number value);
explicit Cell(const std::string &value);
explicit Cell(const char *val... | Remove 'explicit' on copy constructor | Remove 'explicit' on copy constructor | C | mit | ghewgill/neon-lang,gitlarryf/neon-lang,gitlarryf/neon-lang,ghewgill/neon-lang,ghewgill/neon-lang,gitlarryf/neon-lang,ghewgill/neon-lang,gitlarryf/neon-lang,gitlarryf/neon-lang,gitlarryf/neon-lang,ghewgill/neon-lang,gitlarryf/neon-lang,ghewgill/neon-lang,ghewgill/neon-lang,ghewgill/neon-lang,gitlarryf/neon-lang,ghewgill... |
90209fa8998819f0379546da17e0f739424b8d56 | test/testquazip.h | test/testquazip.h | #ifndef QUAZIP_TEST_QUAZIP_H
#define QUAZIP_TEST_QUAZIP_H
#include <QObject>
class TestQuaZip: public QObject {
Q_OBJECT
private slots:
void getFileList_data();
void getFileList();
void getZip();
};
#endif // QUAZIP_TEST_QUAZIP_H
| #ifndef QUAZIP_TEST_QUAZIP_H
#define QUAZIP_TEST_QUAZIP_H
#include <QObject>
class TestQuaZip: public QObject {
Q_OBJECT
private slots:
void getFileList_data();
void getFileList();
};
#endif // QUAZIP_TEST_QUAZIP_H
| Remove getZip() which got there by mistake | Remove getZip() which got there by mistake
git-svn-id: 8ee2d06cc183b55da409a55e9abc82a01a576498@113 bf82bb6f-4128-0410-aed8-a7a134390cb4
| C | lgpl-2.1 | comargo/QuaZIP,slopjong/QuaZIP,slopjong/QuaZIP,comargo/QuaZIP |
349c1d995eeede38b604a3284d0761d3c571c280 | src/fake-lock-screen-pattern.h | src/fake-lock-screen-pattern.h | #ifndef _FAKE_LOCK_SCREEN_PATTERN_H_
#define _FAKE_LOCK_SCREEN_PATTERN_H_
#include <gtk/gtk.h>
#if !GTK_CHECK_VERSION(3, 0, 0)
typedef struct {
gdouble red;
gdouble green;
gdouble blue;
gdouble alpha;
} GdkRGBA;
#endif
typedef struct _FakeLockOption {
void *module;
gchar *real;
gchar *dummy;
} FakeLock... | #ifndef _FAKE_LOCK_SCREEN_PATTERN_H_
#define _FAKE_LOCK_SCREEN_PATTERN_H_
#include <gtk/gtk.h>
#if !GTK_CHECK_VERSION(3, 0, 0)
typedef struct {
gdouble red;
gdouble green;
gdouble blue;
gdouble alpha;
} GdkRGBA;
#endif
typedef struct _FakeLockOption {
void *module;
gchar *real;
gchar *dummy;
} FakeLock... | Use gint to store index | Use gint to store index
| C | mit | kenhys/fake-lock-screen-pattern,kenhys/fake-lock-screen-pattern |
5b7bc8baba35bc816c7dc94768d9fae05c7b78ec | zephyr/shim/include/zephyr_host_command.h | zephyr/shim/include/zephyr_host_command.h | /* Copyright 2021 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.
*/
#if !defined(__CROS_EC_HOST_COMMAND_H) || \
defined(__CROS_EC_ZEPHYR_HOST_COMMAND_H)
#error "This file must only be included from host_command.h. ... | /* Copyright 2021 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.
*/
#if !defined(__CROS_EC_HOST_COMMAND_H) || \
defined(__CROS_EC_ZEPHYR_HOST_COMMAND_H)
#error "This file must only be included from host_command.h. ... | Use a different way of handling no host commands | zephyr: Use a different way of handling no host commands
When CONFIG_PLATFORM_EC_HOSTCMD is not enabled we want to silently drop
the handler routines from the build. The current approach works for gcc
but not for clang.
Use an exported function instead.
BUG=b:208648337
BRANCH=none
TEST=CQ and gitlab
Signed-off-by: ... | C | bsd-3-clause | coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec |
f6a808e5190055af32abe8060bbe7d4ab2d5d6d4 | Nocilla/LSNocilla.h | Nocilla/LSNocilla.h | #import <Foundation/Foundation.h>
#import "Nocilla.h"
#import "LSHTTPRequest.h"
@class LSStubRequest;
@class LSStubResponse;
extern NSString * const LSUnexpectedRequest;
@interface LSNocilla : NSObject
+ (LSNocilla *)sharedInstance;
@property (nonatomic, strong, readonly) NSArray *stubbedRequests;
- (void)start;
- ... | #import <Foundation/Foundation.h>
#import "Nocilla.h"
@class LSStubRequest;
@class LSStubResponse;
@protocol LSHTTPRequest;
extern NSString * const LSUnexpectedRequest;
@interface LSNocilla : NSObject
+ (LSNocilla *)sharedInstance;
@property (nonatomic, strong, readonly) NSArray *stubbedRequests;
- (void)start;
- (... | Replace import with forward declaration. | Replace import with forward declaration.
| C | mit | pcantrell/Nocilla,ileitch/Nocilla,luisobo/Nocilla,0xmax/Nocilla,patcheng/Nocilla,tomguthrie/Nocilla,Panajev/Nocilla,luxe-eng/valet-ios.Nocilla,SanjoDeundiak/Nocilla,TheAdamBorek/Nocilla,luxe-eng/valet-ios.Nocilla,0xmax/Nocilla,TheAdamBorek/Nocilla |
ad24240e3d614bf8c10199590571a48ac3debc6e | test/profile/instrprof-basic.c | test/profile/instrprof-basic.c | // RUN: %clang_profgen -o %t -O3 -flto %s
// RUN: env LLVM_PROFILE_FILE=%t.profraw %t
// RUN: llvm-profdata merge -o %t.profdata %t.profraw
// RUN: %clang_profuse=%t.profdata -o - -S -emit-llvm %s | FileCheck %s
int main(int argc, const char *argv[]) {
// CHECK: br i1 %{{.*}}, label %{{.*}}, label %{{.*}}, !prof !1... | // RUN: %clang_profgen -o %t -O3 %s
// RUN: env LLVM_PROFILE_FILE=%t.profraw %t
// RUN: llvm-profdata merge -o %t.profdata %t.profraw
// RUN: %clang_profuse=%t.profdata -o - -S -emit-llvm %s | FileCheck %s
int main(int argc, const char *argv[]) {
// CHECK: br i1 %{{.*}}, label %{{.*}}, label %{{.*}}, !prof !1
if (... | Remove LTO dependency from test | InstrProf: Remove LTO dependency from test
The -flto flag relies on linker features that are not available on all
platforms.
<rdar://problem/16458307>
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@205318 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt |
ee12c53b52716c08c50bf0c64b644c9af5be10de | SAMCategories/SAMCategories.h | SAMCategories/SAMCategories.h | //
// SAMCategories.h
// SAMCategories
//
// Created by Sam Soffes on 7/17/13.
// Copyright 2013 Sam Soffes. All rights reserved.
//
// Foundation
#import "NSArray+SAMAdditions.h"
#import "NSData+SAMAdditions.h"
#import "NSDate+SAMAdditions.h"
#import "NSDictionary+SAMAdditions.h"
#import "NSNumber+SAMAdditions.h"... | //
// SAMCategories.h
// SAMCategories
//
// Created by Sam Soffes on 7/17/13.
// Copyright 2013 Sam Soffes. All rights reserved.
//
// Foundation
#import "NSArray+SAMAdditions.h"
#import "NSData+SAMAdditions.h"
#import "NSDate+SAMAdditions.h"
#import "NSDictionary+SAMAdditions.h"
#import "NSNumber+SAMAdditions.h"... | Add missing import for UIControl+SAMAdditions.h | Add missing import for UIControl+SAMAdditions.h
| C | mit | soffes/SAMCategories,cloudjanak/SAMCategories |
91dbe918a3ed65fa8a057d7ced6ffc2016857d50 | SwiftDevHints/SwiftDevHints.h | SwiftDevHints/SwiftDevHints.h | //
// SwiftDevHints.h
// SwiftDevHints
//
// Created by ZHOU DENGFENG on 15/7/17.
// Copyright © 2017 ZHOU DENGFENG DEREK. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <CommonCrypto/CommonCrypto.h>
//! Project version number for SwiftDevHints.
FOUNDATION_EXPORT double SwiftDevHintsVersionNumber;
//! ... | //
// SwiftDevHints.h
// SwiftDevHints
//
// Created by ZHOU DENGFENG on 15/7/17.
// Copyright © 2017 ZHOU DENGFENG DEREK. All rights reserved.
//
@import Foundation;
#import <CommonCrypto/CommonCrypto.h>
//! Project version number for SwiftDevHints.
FOUNDATION_EXPORT double SwiftDevHintsVersionNumber;
//! Proj... | Remove UIKit import to support macOS | Remove UIKit import to support macOS
| C | mit | derekcoder/SwiftDevHints,derekcoder/SwiftDevHints |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.