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 |
|---|---|---|---|---|---|---|---|---|---|
d3c92bbf60ad44338dc87655191e8baa5fc4d96a | src/vio/csync_vio_handle.h | src/vio/csync_vio_handle.h | /*
* libcsync -- a library to sync a directory with another
*
* Copyright (c) 2008 by Andreas Schneider <mail@cynapses.org>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either v... | /*
* libcsync -- a library to sync a directory with another
*
* Copyright (c) 2008 by Andreas Schneider <mail@cynapses.org>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either v... | Use the right type for the csync_vio_method_handle_t. | Use the right type for the csync_vio_method_handle_t.
| C | lgpl-2.1 | gco/csync,gco/csync,gco/csync,meeh420/csync,meeh420/csync,meeh420/csync,gco/csync |
20a03ffdbb3469cf9d24afd1007ca1f16196a195 | libc/stdlib/bsearch.c | libc/stdlib/bsearch.c |
/*
* This file lifted in toto from 'Dlibs' on the atari ST (RdeBath)
*
*
* Dale Schumacher 399 Beacon Ave.
* (alias: Dalnefre') St. Paul, MN 55104
* dal@syntel.UUCP United States of America
* "It's not reality that's important, bu... | /*
* This file originally lifted in toto from 'Dlibs' on the atari ST (RdeBath)
*
*
* Dale Schumacher 399 Beacon Ave.
* (alias: Dalnefre') St. Paul, MN 55104
* dal@syntel.UUCP United States of America
* "It's not reality that's imp... | Rework and kill pointless static variable -Erik | Rework and kill pointless static variable
-Erik
| C | lgpl-2.1 | joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc |
32cd7b3a779cf2ec3341c56802df50c72607f5a1 | lin-client/src/main.c | lin-client/src/main.c | static char startmessage[] = "Linux Backup Client";
#include<stdio.h>
#include<string.h>
#include"db.h"
int main(int argc, char **argv)
{
int argindex = 0;
puts(startmessage);
for(argindex = 1; argindex < argc; argindex++)
{
if(strcmp(argv[argindex], "version") == 0)
{
puts("This should display version");
... | static char startmessage[] = "Linux Backup Client";
#include<stdio.h>
#include<string.h>
#include"db.h"
int main(int argc, char **argv)
{
THIS WILL BREAK THE BUILD!
int argindex = 0;
puts(startmessage);
for(argindex = 1; argindex < argc; argindex++)
{
if(strcmp(argv[argindex], "version") == 0)
{
puts("This... | Test to see what jenkins will do | Test to see what jenkins will do
| C | mit | paulkramme/backup |
2ff0d3cfdd0920c179616e8d0738c376f787d22a | scripts/testScreens/setup/stuffCheckBox.c | scripts/testScreens/setup/stuffCheckBox.c | testScreens: setup: stuffCheckBox
Go to Field [ ]
If [ tempSetup::InventoryLibaryYN = "" ]
Set Field [ tempSetup::layoutLtagK; "" ]
Set Field [ tempSetup::layoutRtagK; "" ]
Set Field [ tempSetup::layoutLtagN; "" ]
Set Field [ tempSetup::layoutRtagN; "" ]
Else
Set Field [ tempSetup::layoutLtagK; "moreltagNKs2" ]
Set Fie... | changeLibraryOrLibraryName: stuffCheckBox
#
#Exit the checkbox.
Go to Field [ ]
#
#Set default layouts for a reference library.
If [ tempSetup::InventoryLibaryYN = "" ]
Set Field [ tempSetup::layoutLtagK; "" ]
Set Field [ tempSetup::layoutRtagK; "" ]
Set Field [ tempSetup::layoutLtagN; "" ]
Set Field [ tempSetup::layou... | Make library type checkbox part of the library record. | Make library type checkbox part of the library record.
| C | apache-2.0 | HelpGiveThanks/Library,HelpGiveThanks/Library |
7461cac37cacffb49f7084332a9e39eeafb39f6f | COFF/Error.h | COFF/Error.h | //===- Error.h --------------------------------------------------*- C++ -*-===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------... | //===- Error.h --------------------------------------------------*- C++ -*-===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------... | Fix logic error in check() function. | Fix logic error in check() function.
git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@274195 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/lld,llvm-mirror/lld |
51450367c482ab3e47ee0a09e7196d772b81d7ed | src/moints/moints_cutil.c | src/moints/moints_cutil.c |
#if defined(CRAY_T3E) || defined(CRAY_T3D)
int ONBITMASK( int *len )
#else
int onbitmask_( int *len )
#endif
{
unsigned int mask;
mask = ~((~0) << *len);
return ((int)mask);
}
| #include <stdio.h>
void c_print_sparsemat( int, int, int *, int *, int, double * );
#if defined(CRAY_T3E) || defined(CRAY_T3D)
int ONBITMASK( int *len )
#else
int onbitmask_( int *len )
#endif
{
unsigned int mask;
mask = ~((~0) << *len);
return ((int)mask);
}
#ifdef NOCOMPILE
void print_sparsemat_( ... | Add routines to print sparse data structures | ATW: Add routines to print sparse data structures
| C | mit | rangsimanketkaew/NWChem |
23fdae0727101cefbb02f756edd49729b707a0b9 | Practice/2d_array.c | Practice/2d_array.c | #include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <limits.h>
#include <stdbool.h>
int main(){
int arr[6][6];
int max = 0;
int sum = 0;
int n = 0;
for(int arr_i = 0; arr_i < 6; arr_i++){
for(int arr_j = 0; arr_j < 6; arr_j++){
scanf("%d",&arr[... | #include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <limits.h>
#include <stdbool.h>
int hourglass(int *array);
int main(){
int arr[6][6];
int max = 0;
int sum = 0;
int n = 0;
int i = 0;
int j = 0;
for(int row = 0; row < 6; row++){
for(int colum... | Add 2D Array - DS Challenge | Add 2D Array - DS Challenge
| C | mit | Kunal57/C_Problems,Kunal57/C_Problems |
fc855344ec4e97aa8de49c52c15fdb854fc2c310 | Ansi.c | Ansi.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
* ʾǺ궨ʱõһּ
* 1) ĺһǸ
* 2) ΪͨԺǿ׳ҪܶԺʹ÷κμ
*/
#define PRINT_GREETINGS do { \
printf("Hi there!\n"); \
} while (0)
int main(const int argc, const char* const* argv)
{
// Invoke function via macro
PRINT_GREETINGS;
return 0;
}
| #include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
* ʾǺ궨ʱõһּ
* 1) ĺһǸ
* 2) ΪͨԺǿ׳ҪܶԺʹ÷κμ
*/
#define PRINT_GREETINGS do { \
printf("Hi there!\n"); \
} while (0)
int main(const int argc, const char* const* argv)
{
// Invoke function via macro
PRINT_GREETINGS;
return EXIT_SUCCESS;
}
| Return errorlevel with macro EXIT_SUCCESS. | Return errorlevel with macro EXIT_SUCCESS.
| C | mit | niucheng/Snippets,niucheng/Snippets,niucheng/Snippets |
d940b57163ff5ab118821be7ad3e9ede057f5a75 | Mac/Python/macsetfiletype.c | Mac/Python/macsetfiletype.c |
/*
* macsetfiletype - Set the mac's idea of file type
*
*/
#include <Files.h>
#include <pascal.h>
int
setfiletype(name, creator, type)
char *name;
long creator, type;
{
FInfo info;
unsigned char *pname;
pname = c2pstr(name);
if ( GetFInfo(pname, 0, &info) < 0 )
return -1;
info.fdType = type;
info.fdCr... |
/*
* macsetfiletype - Set the mac's idea of file type
*
*/
#include "macdefs.h"
int
setfiletype(name, creator, type)
char *name;
long creator, type;
{
FInfo info;
unsigned char *pname;
pname = (StringPtr) c2pstr(name);
if ( GetFInfo(pname, 0, &info) < 0 )
return -1;
info.fdType = type;
info.fdCreator ... | Make it work under MPW too. | Make it work under MPW too.
| C | mit | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator |
ebf2d2689de551d90965090bb991fc640a0c0d41 | arch/x86/lib/usercopy.c | arch/x86/lib/usercopy.c | /*
* User address space access functions.
*
* For licencing details see kernel-base/COPYING
*/
#include <linux/highmem.h>
#include <linux/module.h>
#include <asm/word-at-a-time.h>
#include <linux/sched.h>
/*
* We rely on the nested NMI work to allow atomic faults from the NMI path; the
* nested NMI paths are ... | /*
* User address space access functions.
*
* For licencing details see kernel-base/COPYING
*/
#include <linux/highmem.h>
#include <linux/module.h>
#include <asm/word-at-a-time.h>
#include <linux/sched.h>
/*
* We rely on the nested NMI work to allow atomic faults from the NMI path; the
* nested NMI paths are ... | Fix copy_from_user_nmi() return if range is not ok | perf/x86: Fix copy_from_user_nmi() return if range is not ok
Commit 0a196848ca36 ("perf: Fix arch_perf_out_copy_user default"),
changes copy_from_user_nmi() to return the number of
remaining bytes so that it behave like copy_from_user().
Unfortunately, when the range is outside of the process
memory, the return value... | C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs |
0ded12b69f0834a48f2310cc7f1a5f1852b2b41f | asylo/platform/posix/include/byteswap.h | asylo/platform/posix/include/byteswap.h | /*
*
* Copyright 2017 Asylo authors
*
* 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 agree... | /*
*
* Copyright 2017 Asylo authors
*
* 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 agree... | Declare bswap functions as static inline | Declare bswap functions as static inline
Change declaration to static inline to avoid multiple definition
during linking.
PiperOrigin-RevId: 207000800
| C | apache-2.0 | google/asylo,google/asylo,google/asylo,google/asylo,google/asylo,google/asylo |
125eec8781231cf21041b742dccd906ef1c55738 | include/integrator/path_integrator.h | include/integrator/path_integrator.h | #ifndef PATH_INTEGRATOR_H
#define PATH_INTEGRATOR_H
#include "surface_integrator.h"
#include "renderer/renderer.h"
/*
* Surface integrator that uses Path tracing for computing illumination at a point on the surface
*/
class PathIntegrator : public SurfaceIntegrator {
const int min_depth, max_depth;
public:
/*
... | #ifndef PATH_INTEGRATOR_H
#define PATH_INTEGRATOR_H
#include "surface_integrator.h"
#include "renderer/renderer.h"
/*
* Surface integrator that uses Path tracing for computing illumination at a point on the surface
*/
class PathIntegrator : public SurfaceIntegrator {
const int min_depth, max_depth;
public:
/*
... | Remove the unused bidir functions from path tracer | Remove the unused bidir functions from path tracer
| C | mit | Twinklebear/tray,Twinklebear/tray |
289440851590e50387cf1a121abad63c704b84ab | src/exercise102.c | src/exercise102.c | /*
* A solution to Exercise 1-2 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 <stdio... | /*
* A solution to Exercise 1-2 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 <stdio... | Fix solution to Exercise 1-2. | Fix solution to Exercise 1-2.
| C | unlicense | damiendart/knr-solutions,damiendart/knr-solutions,damiendart/knr-solutions |
b0183a9c878d330245437728c658360eb84e895d | src/shared/log.h | src/shared/log.h | /*
* This file is part of buxton.
*
* Copyright (C) 2013 Intel Corporation
*
* buxton is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1
* of the License, or (at your option) any... | /*
* This file is part of buxton.
*
* Copyright (C) 2013 Intel Corporation
*
* buxton is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1
* of the License, or (at your option) any... | Fix the buxton_debug macro to support arguments | Fix the buxton_debug macro to support arguments
| C | lgpl-2.1 | sofar/buxton,sofar/buxton |
754205371f3d3bb2c1b6332fba4b7eee575fd1db | src/system_res.h | src/system_res.h | /*
* system_res.h
*
* Author: Ben Lai, Ming Tsang, Peggy Lau
* Copyright (c) 2014-2015 HKUST SmartCar Team
* Refer to LICENSE for details
*/
namespace camera
{
struct SystemRes
{
};
}
| /*
* system_res.h
*
* Author: Ben Lai, Ming Tsang, Peggy Lau
* Copyright (c) 2014-2015 HKUST SmartCar Team
* Refer to LICENSE for details
*/
namespace camera
{
class Car;
}
namespace camera
{
struct SystemRes
{
Car *car;
};
}
| Add car to system res | Add car to system res | C | mit | travistang/Camera15-T1,travistang/Camera15-T1,hkust-smartcar/Camera15-T1,hkust-smartcar/Camera15-T1 |
98069b8a5962874e664f11dc5eb9f0ba76591eb7 | src/event_detection.h | src/event_detection.h | #ifndef EVENT_DETECTION_H
# define EVENT_DETECTION_H
# include "scrappie_structures.h"
typedef struct {
size_t window_length1;
size_t window_length2;
float threshold1;
float threshold2;
float peak_height;
} detector_param;
static detector_param const event_detection_defaults = {
.windo... | #ifndef EVENT_DETECTION_H
# define EVENT_DETECTION_H
# include "scrappie_structures.h"
typedef struct {
size_t window_length1;
size_t window_length2;
float threshold1;
float threshold2;
float peak_height;
} detector_param;
static detector_param const event_detection_defaults = {
.windo... | Update threshold for second window | Update threshold for second window
| C | mpl-2.0 | nanoporetech/scrappie,nanoporetech/scrappie,nanoporetech/scrappie |
1c54410af3ed87100eca258bc58533ad434e618e | testing/unittest/special_types.h | testing/unittest/special_types.h | #pragma once
template <typename T, unsigned int N>
struct FixedVector
{
T data[N];
__host__ __device__
FixedVector() { }
__host__ __device__
FixedVector(T init)
{
for(unsigned int i = 0; i < N; i++)
data[i] = init;
}
__host__ __device__
FixedVector operato... | #pragma once
template <typename T, unsigned int N>
struct FixedVector
{
T data[N];
__host__ __device__
FixedVector() : data() { }
__host__ __device__
FixedVector(T init)
{
for(unsigned int i = 0; i < N; i++)
data[i] = init;
}
__host__ __device__
FixedVecto... | Initialize FixedVector's member in its null constructor to eliminate a Wall warning. | Initialize FixedVector's member in its null constructor to eliminate a Wall warning.
| C | apache-2.0 | google-code-export/thrust,allendaicool/thrust,hemmingway/thrust,hemmingway/thrust,levendlee/thrust,hemmingway/thrust,julianromera/thrust,levendlee/thrust,malenie/thrust,bfurtaw/thrust,rdmenezes/thrust,UIKit0/thrust,h1arshad/thrust,UIKit0/thrust,malenie/thrust,hemmingway/thrust,rdmenezes/thrust,levendlee/thrust,lishi092... |
cd73593a424a38f7e79b749086d6e3543ba88356 | io/file_descriptor.h | io/file_descriptor.h | #ifndef FILE_DESCRIPTOR_H
#define FILE_DESCRIPTOR_H
#include <io/channel.h>
class FileDescriptor : public Channel {
LogHandle log_;
protected:
int fd_;
public:
FileDescriptor(int);
~FileDescriptor();
virtual Action *close(EventCallback *);
virtual Action *read(size_t, EventCallback *);
virtual Action *write(B... | #ifndef FILE_DESCRIPTOR_H
#define FILE_DESCRIPTOR_H
#include <io/channel.h>
class FileDescriptor : public Channel {
LogHandle log_;
protected:
int fd_;
public:
FileDescriptor(int);
~FileDescriptor();
virtual Action *close(EventCallback *);
virtual Action *read(size_t, EventCallback *);
virtual Action *write(B... | Return success rather than failure from shutdown() on FileDescriptor, since it is entirely immaterial. | Return success rather than failure from shutdown() on FileDescriptor, since it
is entirely immaterial.
| C | bsd-2-clause | wanproxy/wanproxy,wanproxy/wanproxy,wanproxy/wanproxy |
8dd70959300cd08be029518be56bc64ccfe271df | test/Analysis/dump_egraph.c | test/Analysis/dump_egraph.c | // RUN: %clang_analyze_cc1 -analyzer-checker=core \
// RUN: -analyzer-dump-egraph=%t.dot %s
// RUN: cat %t.dot | FileCheck %s
// RUN: %clang_analyze_cc1 -analyzer-checker=core \
// RUN: -analyzer-dump-egraph=%t.dot \
// RUN: -trim-egraph %s
// RUN: cat %t.dot | FileCheck %s
// REQUIRES: asserts
int getJ();
int f... | // RUN: %clang_analyze_cc1 -analyzer-checker=core \
// RUN: -analyzer-dump-egraph=%t.dot %s
// RUN: cat %t.dot | FileCheck %s
// RUN: %clang_analyze_cc1 -analyzer-checker=core \
// RUN: -analyzer-dump-egraph=%t.dot \
// RUN: -trim-egraph %s
// RUN: cat %t.dot | FileCheck %s
// REQUIRES: asserts
int getJ();
int f... | Fix typo in r375186. Unbreaks tests. | [analyzer] exploded-graph-rewriter: Fix typo in r375186. Unbreaks tests.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@375189 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang |
8f7bbd87a709803e90aacd4e5fd9810b110b799d | test/src/testfw.h | test/src/testfw.h | #ifndef LOG_TESTFW_H
#define LOG_TESTFW_H
#include <stdio.h>
#define NEUTRAL "\x1B[0m"
#define GREEN "\x1B[32m"
#define RED "\x1B[31m"
void testfw_add(void (*)(int*), const char*);
int testfw_run();
#define TEST(name) void name(int*); void __attribute__((constructor)) pre_##name() {testfw_add(name, #name);} v... | #ifndef LOG_TESTFW_H
#define LOG_TESTFW_H
#include <stdio.h>
#define NEUTRAL "\x1B[0m"
#define GREEN "\x1B[32m"
#define RED "\x1B[31m"
void testfw_add(void (*)(int*), const char*);
int testfw_run();
#define TEST(name) void name(int*); void __attribute__((constructor)) pre_##name() {testfw_add(name, #name);} v... | Use __func__ instead of __FUNCTION__ | Use __func__ instead of __FUNCTION__
__FUNCTION__ does not work with gcc version 5.
https://gcc.gnu.org/gcc-5/porting_to.html.
| C | bsd-3-clause | rbruggem/mqlog,rbruggem/mqlog |
c49c6113ab8ca9293cad0fc766c6b4bd90e22a75 | test/small1/strloop.c | test/small1/strloop.c | #include <testharness.h>
#include <stdio.h>
void BuildWord(char * pchWord) {
int i;
char * pch = pchWord;
/* original code:
* while ((i = *pch++) != '\0') { }
*/
do {
i = *pch;
pch++;
} while (i != '\0');
printf("%s\n",pchWord);
}
int main() {
char *test = "foo";... | #include <testharness.h>
#include <stdio.h>
void BuildWord(char * pchWord) {
int i;
char * pch = pchWord;
/* original code:
* while ((i = *pch++) != '\0') { }
*/
do {
i = *pch;
// printf("i = '%c'\n",i);
pch++;
} while (i != '\0');
printf("%s\n",pchWord);
}
... | Switch the world over to the new 'paper' solver. Local regression tests indicate that it shouldn't be that bad: new models and wrappers have been added to support it. INFERBOX=infer is now the new solver, INFERBOX=old gives the old behavior (will be removed later). | Switch the world over to the new 'paper' solver. Local regression tests
indicate that it shouldn't be that bad: new models and wrappers have been
added to support it. INFERBOX=infer is now the new solver, INFERBOX=old
gives the old behavior (will be removed later).
| C | bsd-3-clause | samuelhavron/obliv-c,samuelhavron/obliv-c,samuelhavron/obliv-c,samuelhavron/obliv-c |
d28671f7429cc1f47346d9eb5451bc36cbc9f15d | src/zt_stdint.h | src/zt_stdint.h | #ifndef _ZT_STDINT_H_
#define _ZT_STDINT_H_
#if !defined(_MSC_VER) || _MSC_VER >= 1600
#include <stdint.h>
#else
typedef __int8 int8_t;
typedef unsigned __int8 uint8_t;
typedef __int16 int16_t;
typedef unsigned __int16 uint16_t;
typedef __int32 int32_t;
typedef unsigned __int32 uint32_t;
typedef __int64 int64_t;
typed... | #ifndef _ZT_STDINT_H_
#define _ZT_STDINT_H_
#if !defined(_MSC_VER) || _MSC_VER >= 1600
#include <stdint.h>
#else
typedef signed char int8_t;
typedef unsigned char uint8_t;
typedef short int16_t;
typedef unsigned short uint16_t;
typedef int int32_t;
typedef unsigned int uint32_t;
typedef __int64 int64_t;
typedef unsign... | Use integer types that are consistent with what tend to be the underlying types for stdint typedefs | Use integer types that are consistent with what tend to be the
underlying types for stdint typedefs
Windows treats signed char and __int8 as distinct types.
| C | mit | zerotao/libzt,zerotao/libzt,zerotao/libzt,zerotao/libzt |
cd22627f781080fb245dd6999f2158c8099379b0 | py/mpconfig.h | py/mpconfig.h | // This file contains default configuration settings for MicroPython.
// You can override any of these options using mpconfigport.h file located
// in a directory of your port.
#include <mpconfigport.h>
#ifndef INT_FMT
// printf format spec to use for machine_int_t and friends
#ifdef __LP64__
// Archs where machine_i... | // This file contains default configuration settings for MicroPython.
// You can override any of these options using mpconfigport.h file located
// in a directory of your port.
#include <mpconfigport.h>
#ifndef INT_FMT
// printf format spec to use for machine_int_t and friends
#ifdef __LP64__
// Archs where machine_i... | Enable slice support in config. | Enable slice support in config.
| C | mit | SHA2017-badge/micropython-esp32,selste/micropython,xyb/micropython,xuxiaoxin/micropython,suda/micropython,KISSMonX/micropython,ceramos/micropython,orionrobots/micropython,trezor/micropython,adafruit/micropython,blmorris/micropython,SungEun-Steve-Kim/test-mp,ericsnowcurrently/micropython,praemdonck/micropython,cloudform... |
b883b10aef5ff23e7ad6c9342b5d27db26632837 | lib/schedule/index.c | lib/schedule/index.c |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <area51/hashmap.h>
#include <area51/list.h>
#include <area51/log.h>
#include <libxml/xmlreader.h>
#include <nre/reference.h>
#include <nre/schedule.h>
/*
* Callback to add a schedule to the crs locations map
*/
static bool inde... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <area51/hashmap.h>
#include <area51/list.h>
#include <area51/log.h>
#include <nre/reference.h>
#include <nre/schedule.h>
/*
* Callback to add a schedule to the crs locations map
*/
static bool indexAll(void *k, void *v, void *c... | Index schedule not the main struct | Index schedule not the main struct | C | apache-2.0 | peter-mount/departureboards,peter-mount/departureboards,peter-mount/departureboards |
87b199ef6122299199b14b0ed971558b03b97526 | vm.h | vm.h | #define TREE
// A mapping of a chunk of an address space to
// a specific memory object.
enum vmatype { PRIVATE, COW};
struct vma {
uptr va_start; // start of mapping
uptr va_end; // one past the last byte
enum vmatype va_type;
struct vmnode *n;
struct spinlock lock; // s... | //#define TREE
// A mapping of a chunk of an address space to
// a specific memory object.
enum vmatype { PRIVATE, COW};
struct vma {
uptr va_start; // start of mapping
uptr va_end; // one past the last byte
enum vmatype va_type;
struct vmnode *n;
struct spinlock lock; //... | Disable crange while fixing bugs in other systems. | Disable crange while fixing bugs in other systems.
| C | mit | aclements/sv6,bowlofstew/sv6,bowlofstew/sv6,aclements/sv6,bowlofstew/sv6,aclements/sv6,aclements/sv6,aclements/sv6,bowlofstew/sv6,bowlofstew/sv6 |
c7ec6be4fb2c243155bcba7a41262fe683933ea9 | sys/sys/snoop.h | sys/sys/snoop.h | /*
* Copyright (c) 1995 Ugen J.S.Antsilevich
*
* Redistribution and use in source forms, with and without modification,
* are permitted provided that this entire comment appears intact.
*
* Redistribution in binary form may occur without any restrictions.
* Obviously, it would be nice if you gave credit where cr... | /*
* Copyright (c) 1995 Ugen J.S.Antsilevich
*
* Redistribution and use in source forms, with and without modification,
* are permitted provided that this entire comment appears intact.
*
* Redistribution in binary form may occur without any restrictions.
* Obviously, it would be nice if you gave credit where cr... | Include <sys/types.h> in the !_KERNEL case so that this file is self-sufficient in that case (it needs dev_t). This is normal pollution for most headers that define ioctl numbers. | Include <sys/types.h> in the !_KERNEL case so that this file is
self-sufficient in that case (it needs dev_t). This is normal pollution
for most headers that define ioctl numbers.
| C | bsd-3-clause | jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase |
02139c2e5a05287105b41c9a418f2a6f848d484d | src/clientversion.h | src/clientversion.h | #ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 1
#define CLIENT_VERSION_MINOR 0
#define CLIENT_VERSION_REVISION 1
#define CLIENT_VERSION_BUILD 0
// Convert... | #ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 1
#define CLIENT_VERSION_MINOR 0
#define CLIENT_VERSION_REVISION 0
#define CLIENT_VERSION_BUILD 0
// Convert... | Revert "client version to 1.0.1" | Revert "client version to 1.0.1"
This reverts commit 4d1baddde849c46969e1d189224cc1a507c33b01.
| C | mit | boxxa/SMAC,boxxa/SMAC,boxxa/SMAC,boxxa/SMAC,boxxa/SMAC |
efb2710d75e39e0297d88636001c43185a92c407 | vector/Dot.h | vector/Dot.h | //#####################################################################
// Function Dot
//#####################################################################
#pragma once
namespace other {
template<class T,int d> class Vector;
inline float dot(const float a1,const float a2)
{return a1*a2;}
inline double dot(const... | //#####################################################################
// Function Dot
//#####################################################################
#pragma once
namespace other {
template<class T,int d> class Vector;
static inline float dot(const float a1,const float a2)
{return a1*a2;}
static inline do... | Mark some functions static inline | vector/dot: Mark some functions static inline
| C | bsd-3-clause | omco/geode,mikest/geode,omco/geode,mikest/geode,mikest/geode,omco/geode,omco/geode,mikest/geode |
ad315659a48175b2875adc400413808a68d951ca | src/libaten/types.h | src/libaten/types.h | #pragma once
#include <stdint.h>
#include <climits>
//#define TYPE_DOUBLE
#ifdef TYPE_DOUBLE
using real = double;
#else
using real = float;
#endif
| #pragma once
#include <stdint.h>
#include <climits>
//#define TYPE_DOUBLE
#ifdef TYPE_DOUBLE
using real = double;
#define AT_IS_TYPE_DOUBLE (true)
#else
using real = float;
#define AT_IS_TYPE_DOUBLE (false)
#endif
| Add macro to know if "real" is double. | Add macro to know if "real" is double.
| C | mit | nakdai/aten,nakdai/aten |
93c2f9bd8b058b28016e6db2421e5b38eac0606c | src/unionfs.h | src/unionfs.h | /*
* License: BSD-style license
* Copyright: Radek Podgorny <radek@podgorny.cz>,
* Bernd Schubert <bernd-schubert@gmx.de>
*/
#ifndef UNIONFS_H
#define UNIONFS_H
#define PATHLEN_MAX 1024
#define HIDETAG "_HIDDEN~"
#define METANAME ".unionfs-fuse"
#define METADIR (METANAME "/") // string concetanation!
//... | /*
* License: BSD-style license
* Copyright: Radek Podgorny <radek@podgorny.cz>,
* Bernd Schubert <bernd-schubert@gmx.de>
*/
#ifndef UNIONFS_H
#define UNIONFS_H
#define PATHLEN_MAX 1024
#define HIDETAG "_HIDDEN~"
#define METANAME ".unionfs"
#define METADIR (METANAME "/") // string concetanation!
// fuse... | Revert to old pre-1.0 meta directory | Revert to old pre-1.0 meta directory
Unionfs changed its meta directory from .unionfs to .unionfs-fuse with the
unionfs -> unionfs-fuse rename. The rename later got reverted everywhere
but the meta directory, so now unionfs doesn't find the whiteout files from
older releases.
Revert back to the pre-1.0 behaviour to ... | C | bsd-3-clause | evnu/unionfs-fuse,evnu/unionfs-fuse,yogoloth/unionfs-fuse,yogoloth/unionfs-fuse,yogoloth/unionfs-fuse,evnu/unionfs-fuse |
a1a426ea206ffa5ad8aea089f7d70d8d04a3a210 | crypto/opensslv.h | crypto/opensslv.h | #ifndef HEADER_OPENSSLV_H
#define HEADER_OPENSSLV_H
/* Numeric release version identifier:
* MMNNFFRBB: major minor fix final beta/patch
* For example:
* 0.9.3-dev 0x00903000
* 0.9.3beta1 0x00903001
* 0.9.3beta2-dev 0x00903002
* 0.9.3beta2 0x00903002 (same as ...beta2-dev)
* 0.9.3 0x00903100
* 0.9.3a... | #ifndef HEADER_OPENSSLV_H
#define HEADER_OPENSSLV_H
/* Numeric release version identifier:
* MMNNFFRBB: major minor fix final beta/patch
* For example:
* 0.9.3-dev 0x00903000
* 0.9.3beta1 0x00903001
* 0.9.3beta2-dev 0x00903002
* 0.9.3beta2 0x00903002 (same as ...beta2-dev)
* 0.9.3 0x00903100
* 0.9.3a... | Change version string to reflect the release of beta 2. | Change version string to reflect the release of beta 2.
| C | apache-2.0 | openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl |
545ae42ea7d0489da564dd61fd3b1b18bf0ebe9c | kernel/arch/x86/boot/boot.h | kernel/arch/x86/boot/boot.h | #ifndef __BOOT_H__
#define __BOOT_H__
/* multiboot definitions */
#define MB_HEADER_MAGIC 0x1BADB002
#define MB_BOOT_MAGIC 0x2BADB002
#define MB_PAGE_ALIGN 0x00000001
#define MB_MEMORY_INFO 0x00000002
/* common boot definitions */
#define BOOT_TIME_STACK_SIZE 0x4000
#endif /*__BOOT_H__*/
| #ifndef __BOOT_H__
#define __BOOT_H__
/* multiboot definitions */
#define MB_HEADER_MAGIC 0x1BADB002
#define MB_BOOT_MAGIC 0x2BADB002
#define MB_PAGE_ALIGN 0x00000001
#define MB_MEMORY_INFO 0x00000002
/* common boot definitions */
#define BOOT_TIME_STACK_SIZE 0x4000
#define BOOT_CS_ENTRY 1
#define BOOT_C... | Add code and data segments definitions. | Add code and data segments definitions.
This patch adds boot time data and code segments definitions.
| C | mit | krinkinmu/auos,krinkinmu/auos,krinkinmu/auos,krinkinmu/auos |
4c1fdd21e54c1a7192b4c84a15f88361af466894 | autotests/vktestbase.h | autotests/vktestbase.h | /*
* Unit tests for libkvkontakte.
* Copyright (C) 2015 Alexander Potashev <aspotashev@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* ... | /*
* Unit tests for libkvkontakte.
* Copyright (C) 2015 Alexander Potashev <aspotashev@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* ... | Fix memory leak by making dtor virtual | VkTestBase: Fix memory leak by making dtor virtual
| C | lgpl-2.1 | KDE/libkvkontakte,KDE/libkvkontakte |
2257bf9a133c6b5c96c28578fff59910b017f335 | engine/src/common/pixelboost/graphics/device/vertexBuffer.h | engine/src/common/pixelboost/graphics/device/vertexBuffer.h | #pragma once
#include "pixelboost/graphics/device/bufferFormats.h"
namespace pb
{
class GraphicsDevice;
struct Vertex_P3
{
float position[3];
float __padding;
};
struct Vertex_P3_UV
{
float position[3];
float uv[2];
float __padding[3]; // for 32-byte alignment
};
struct Vertex_P3_C4
{
... | #pragma once
#include "pixelboost/graphics/device/bufferFormats.h"
namespace pb
{
class GraphicsDevice;
struct Vertex_P3
{
float position[3];
};
struct Vertex_P3_UV
{
float position[3];
float uv[2];
};
struct Vertex_P3_C4
{
float position[3];
float color[4];
};
struct Vertex_P3_C4... | Remove padding from vertex buffers | Remove padding from vertex buffers
| C | mit | pixelballoon/pixelboost,pixelballoon/pixelboost,pixelballoon/pixelboost,pixelballoon/pixelboost,pixelballoon/pixelboost |
5d7f99083bba3bf34f6fc715683b33989842c0c2 | docs/example/example.c | docs/example/example.c | #include <chopsui.h>
void say_hi_clicked(sui_t *button, sui_event_t *event) {
sui_alert("Hello world!");
}
void exit_clicked(sui_t *button, sui_event_t *event) {
sui_exit();
}
int main(int argc, char **argv) {
init_sui();
sui_t *window = sui_load("window.sui");
sui_load_css("window.css");
sui_add_handler(windo... | #include <chopsui.h>
void say_hi_clicked(sui_t *button, sui_event_t *event) {
sui_alert("Hello world!");
}
void exit_clicked(sui_t *button, sui_event_t *event) {
sui_exit();
}
int main(int argc, char **argv) {
init_sui();
sui_t *window = sui_load("window.sui");
sui_css_t *css = sui_load_css("window.css");
sui_... | Change how CSS would be used | Change how CSS would be used
| C | mit | GrayHatter/chopsui,GrayHatter/chopsui |
b814282dc2db635d31fbe219e99a423337aa2dbf | alsa.c | alsa.c | #include <alsa/asoundlib.h>
snd_seq_t *hdl;
static snd_midi_event_t *mbuf;
static int midiport;
/* open */
int
midiopen(void)
{
snd_midi_event_new(32, &mbuf);
if (snd_seq_open(&hdl, "default", SND_SEQ_OPEN_OUTPUT, 0) != 0) {
return 1;
} else {
snd_seq_set_client_name(hdl, "svmidi");
if ((midiport = snd_seq_c... | #include <alsa/asoundlib.h>
snd_seq_t *hdl;
static snd_midi_event_t *mbuf;
static int midiport;
/* open */
int
midiopen(void)
{
snd_midi_event_new(32, &mbuf);
if (snd_seq_open(&hdl, "default", SND_SEQ_OPEN_OUTPUT, 0) != 0) {
return 1;
} else {
snd_seq_set_client_name(hdl, "svmidi");
if ((midiport = snd_seq_c... | Fix undefined reference to "midisend" when using ALSA | Fix undefined reference to "midisend" when using ALSA
Signed-off-by: Henrique N. Lengler <6cdc851d94ddec54baafad133c2f9a87abb571af@openmailbox.org>
| C | isc | henriqueleng/svmidi |
db3de3779b73a2919c193fa3bd85d1295a0e54ef | src/vast/query/search.h | src/vast/query/search.h | #ifndef VAST_QUERY_SEARCH_H
#define VAST_QUERY_SEARCH_H
#include <unordered_map>
#include <cppa/cppa.hpp>
#include <ze/event.h>
#include <vast/query/query.h>
namespace vast {
namespace query {
class search : public cppa::sb_actor<search>
{
friend class cppa::sb_actor<search>;
public:
search(cppa::actor_ptr arch... | #ifndef VAST_QUERY_SEARCH_H
#define VAST_QUERY_SEARCH_H
#include <unordered_map>
#include <cppa/cppa.hpp>
#include <ze/event.h>
#include <vast/query/query.h>
namespace vast {
namespace query {
class search : public cppa::sb_actor<search>
{
friend class cppa::sb_actor<search>;
public:
search(cppa::actor_ptr arch... | Use an unordered map to track clients. | Use an unordered map to track clients.
| C | bsd-3-clause | pmos69/vast,mavam/vast,vast-io/vast,vast-io/vast,pmos69/vast,pmos69/vast,mavam/vast,vast-io/vast,mavam/vast,mavam/vast,vast-io/vast,pmos69/vast,vast-io/vast |
7967b5fd99e3f157711648a26a2aa309c60cf842 | src/util/util_time.h | src/util/util_time.h | /*
* Copyright 2011-2013 Blender Foundation
*
* 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 ag... | /*
* Copyright 2011-2013 Blender Foundation
*
* 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 ag... | Fix Uninitialized Value compiler warning in the scoped_timer | Fix Uninitialized Value compiler warning in the scoped_timer
Although the code made it impossible to use time_start_ uninitialized, at least GCC did
still produce multiple warnings about it.
Since time_dt() is an extremely cheap operation and functionality does not change in any way when
removing the check in the cons... | C | apache-2.0 | tangent-opensource/coreBlackbird,tangent-opensource/coreBlackbird,tangent-opensource/coreBlackbird |
22d68da72421c17ee15e0c7be71740b10a93ee9e | testing/platform_test.h | testing/platform_test.h | // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef TESTING_PLATFORM_TEST_H_
#define TESTING_PLATFORM_TEST_H_
#include <gtest/gtest.h>
#if defined(GTEST_OS_MAC)
#ifdef __OBJC__
@class NSA... | // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef TESTING_PLATFORM_TEST_H_
#define TESTING_PLATFORM_TEST_H_
#include <gtest/gtest.h>
#if defined(GTEST_OS_MAC)
#ifdef __OBJC__
@class NSA... | Change visibility of the destructor to public. | Change visibility of the destructor to public.
PlatformTest's destructor was set as protected, though the parent class
testing::Test declares it public.
BUG=none
Review URL: https://chromiumcodereview.appspot.com/11038058
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@161352 0039d316-1c4b-4281-b951-d872f2087... | C | bsd-3-clause | pozdnyakov/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,pozdnyakov/chromium-crosswalk,dushu1203/chromium.src,krieger-od/nwjs_chromium.src,jaruba/chromium.src,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,M4sse/chromium.src,PeterWangIntel/chromium-crosswalk,patrickm/chromium.src,axinging/chr... |
5ee6ca95fb823fa0d435af5edbead880362acd1c | tests/notest.epiphany.c | tests/notest.epiphany.c | #include <stdint.h>
#define SKIP 77
struct status {
uint32_t done;
uint32_t _pad1;
uint32_t returncode;
uint32_t _pad2;
} __attribute__((packed));
volatile struct status *epiphany_status = (struct status *) 0x8f200000;
volatile char *epiphany_results = (char *) 0x8f300000;
int main(int argc, char *ar... | #include <stdint.h>
#define SKIP 77
struct status {
uint32_t done;
uint32_t _pad1;
uint32_t returncode;
uint32_t _pad2;
} __attribute__((packed));
volatile struct status *epiphany_status = (struct status *) 0x8f200000;
volatile char *epiphany_results = (char *) 0x8f300000;
/* HACK: Provide symbol to ... | Fix Epiphany GCC 5 link error | tests: Fix Epiphany GCC 5 link error
Signed-off-by: Ola Jeppsson <793f970c52ded1276b9264c742f19d1888cbaf73@adapteva.com>
| C | apache-2.0 | mateunho/pal,eliteraspberries/pal,parallella/pal,parallella/pal,mateunho/pal,parallella/pal,eliteraspberries/pal,mateunho/pal,mateunho/pal,eliteraspberries/pal,parallella/pal,aolofsson/pal,aolofsson/pal,aolofsson/pal,parallella/pal,mateunho/pal,eliteraspberries/pal,eliteraspberries/pal,aolofsson/pal |
0dfdfb57d2a2520bfaa7f79343d36478c0929e42 | test/Analysis/html-diags.c | test/Analysis/html-diags.c | // RUN: rm -fR %T/dir
// RUN: mkdir %T/dir
// RUN: %clang_cc1 -analyze -analyzer-output=html -analyzer-checker=core -o %T/dir %s
// Currently this test mainly checks that the HTML diagnostics doesn't crash
// when handling macros will calls with macros. We should actually validate
// the output, but that requires bei... | // RUN: rm -fR %T/dir
// RUN: mkdir %T/dir
// RUN: %clang_cc1 -analyze -analyzer-output=html -analyzer-checker=core -o %T/dir %s
// RUN: ls %T/dir | grep report
// PR16547: Test relative paths
// RUN: cd %T/dir
// RUN: %clang_cc1 -analyze -analyzer-output=html -analyzer-checker=core -o testrelative %s
// RUN: ls %T/di... | Add a test case for r185707/PR16547. | Add a test case for r185707/PR16547.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@185708 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl... |
eff847ce8d402b663bf19af3d16da2e3f5cb2bbd | libpqxx/include/pqxx/util.h | libpqxx/include/pqxx/util.h | /*-------------------------------------------------------------------------
*
* FILE
* pqxx/util.h
*
* DESCRIPTION
* Various utility definitions for libpqxx
*
* Copyright (c) 2001-2004, Jeroen T. Vermeulen <jtv@xs4all.nl>
*
* See COPYING for copyright license. If you did not receive a file called
*... | /*-------------------------------------------------------------------------
*
* FILE
* pqxx/util.h
*
* DESCRIPTION
* Various utility definitions for libpqxx
*
* Copyright (c) 2001-2004, Jeroen T. Vermeulen <jtv@xs4all.nl>
*
* See COPYING for copyright license. If you did not receive a file called
*... | Allow suppression of "deprecated header" warning | Allow suppression of "deprecated header" warning
| C | bsd-3-clause | mpapierski/pqxx,mpapierski/pqxx,mpapierski/pqxx |
ab49b49f04a3dd9d3a530193798983d540c031d4 | touch/inc/touch/touch.h | touch/inc/touch/touch.h | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* Copyright 2013 LibreOffice contributors.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.or... | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* Copyright 2013 LibreOffice contributors.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.or... | Add lo_keyboard_did_hide() and improve comment | Add lo_keyboard_did_hide() and improve comment
Change-Id: I20ae40fa03079d69f7ce9e71fa4ef6264e8d84a4
| C | mpl-2.0 | JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core |
2838dd973520318e566e50f81843658749f1acb4 | compat/cbits/unicode.c | compat/cbits/unicode.c | #if __GLASGOW_HASKELL__ < 604 || (__GLASGOW_HASKELL__==604 && __GHC_PATCHLEVEL__==0)
#include "WCsubst.c"
#endif
| #if __GLASGOW_HASKELL__ < 605
#if __GLASGOW_HASKELL__ != 604 || __GHC_PATCHLEVEL__ == 0
#include "WCsubst.c"
#endif
#endif
| Fix building with compilers which don't have an integer for a patch level | Fix building with compilers which don't have an integer for a patch level | C | bsd-3-clause | tjakway/ghcjvm,vTurbine/ghc,sgillespie/ghc,nkaretnikov/ghc,snoyberg/ghc,lukexi/ghc-7.8-arm64,gcampax/ghc,sgillespie/ghc,olsner/ghc,ekmett/ghc,mcschroeder/ghc,da-x/ghc,mcschroeder/ghc,lukexi/ghc,sdiehl/ghc,mcschroeder/ghc,ekmett/ghc,vTurbine/ghc,green-haskell/ghc,da-x/ghc,bitemyapp/ghc,elieux/ghc,snoyberg/ghc,christiaan... |
5e23b0d60f6ad6bea8531375323e3b8e0e5c4f04 | webserver/src/logging.c | webserver/src/logging.c | #include <stdlib.h>
#include <stdio.h>
#include "logging.h"
int log_fail(char* msg) {
perror(msg);
// TODO fix log to file
return 0;
}
int log_success(char* msg) {
printf("%s\n", msg);
return 0;
}
| #include <stdlib.h>
#include <stdio.h>
#include "logging.h"
int log_fail(char* msg) {
perror(msg);
// TODO fix log to file
return 0;
}
int log_success(char* msg) {
printf("SUCCESS: %s\n", msg);
return 0;
}
| Change of the default msg | Change of the default msg
| C | mit | foikila/webserver,foikila/webserver |
fb4c0f835d2377256c599023e91dafc3d8e55b4c | src/common/pixelboost/network/networkMessage.h | src/common/pixelboost/network/networkMessage.h | #pragma once
#define NETWORK_MAX_MESSAGE_LENGTH 65535
#include <sys/types.h>
namespace pb
{
class NetworkMessage
{
public:
NetworkMessage();
NetworkMessage(const NetworkMessage& src);
~NetworkMessage();
bool ReadChar(char& value);
bool ReadByte(__uint8_t& value);
bool ReadInt(__int32_t&... | #pragma once
#define NETWORK_MAX_MESSAGE_LENGTH 262140
#include <sys/types.h>
namespace pb
{
class NetworkMessage
{
public:
NetworkMessage();
NetworkMessage(const NetworkMessage& src);
~NetworkMessage();
bool ReadChar(char& value);
bool ReadByte(__uint8_t& value);
bool ReadInt(__int32_t... | Increase max length of a network message to support larger records | Increase max length of a network message to support larger records
| C | mit | pixelballoon/pixelboost,pixelballoon/pixelboost,pixelballoon/pixelboost,pixelballoon/pixelboost,pixelballoon/pixelboost |
51c7e9a45e870e07de66880248be05d5b73dd249 | lineart.h | lineart.h | //
// lineart.h
// LineArt
//
// Created by Allek Mott on 10/1/15.
// Copyright © 2015 Loop404. All rights reserved.
//
#ifndef lineart_h
#define lineart_h
#include <stdio.h>
#define MAX_LINE_LENGTH 200
// data structure for line
// (x1, y1) = inital point
// (x2, y2) = final point
struct line {
int x1;
... | //
// lineart.h
// LineArt
//
// Created by Allek Mott on 10/1/15.
// Copyright © 2015 Loop404. All rights reserved.
//
#ifndef lineart_h
#define lineart_h
#include <stdio.h>
#define MAX_LINE_LENGTH 200
// data structure for line
// (x1, y1) = inital point
// (x2, y2) = final point
struct line {
int x1;
... | Add list function declarations, node structure | Add list function declarations, node structure
| C | apache-2.0 | tchieze/LineArt |
1d189e339e73ad78eb02819112a70a5595c9b6b0 | lib/libskey/skey_getpass.c | lib/libskey/skey_getpass.c | #include <unistd.h>
#include <stdio.h>
#include <skey.h>
/* skey_getpass - read regular or s/key password */
char *skey_getpass(prompt, pwd, pwok)
char *prompt;
struct passwd *pwd;
int pwok;
{
static char buf[128];
struct skey skey;
char *pass = "";
char *username = pwd ? pwd->pw_name : "n... | #include <unistd.h>
#include <stdio.h>
#include <skey.h>
/* skey_getpass - read regular or s/key password */
char *skey_getpass(prompt, pwd, pwok)
char *prompt;
struct passwd *pwd;
int pwok;
{
static char buf[128];
struct skey skey;
char *pass = "";
char *username = pwd ? pwd->pw_name : ":... | Change "nope" to ":" Previous variant not work well, if you have a user with name nope | Change "nope" to ":"
Previous variant not work well, if you have a user with name nope
| C | bsd-3-clause | jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase |
8f609567b666a160d19537f5b0e793b6092eb499 | ir/ana/constbits.h | ir/ana/constbits.h | #ifndef CONSTBITS_H
#define CONSTBITS_H
#include "adt/obst.h"
#include "tv.h"
typedef struct bitinfo
{
ir_tarval* z; /* safe zeroes, 0 = bit is zero, 1 = bit maybe is 1 */
ir_tarval* o; /* safe ones, 0 = bit maybe is zero, 1 = bit is 1 */
} bitinfo;
/* Get analysis information for node irn */
bitinfo* get_... | #ifndef CONSTBITS_H
#define CONSTBITS_H
#include "adt/obst.h"
#include "tv.h"
typedef struct bitinfo
{
ir_tarval* z; /* safe zeroes, 0 = bit is zero, 1 = bit maybe is 1 */
ir_tarval* o; /* safe ones, 0 = bit maybe is zero, 1 = bit is 1 */
} bitinfo;
/* Get analysis information for node irn */
bitinfo* get_... | Remove pointless const from function declarations. | Remove pointless const from function declarations.
| C | lgpl-2.1 | jonashaag/libfirm,8l/libfirm,libfirm/libfirm,killbug2004/libfirm,davidgiven/libfirm,MatzeB/libfirm,jonashaag/libfirm,libfirm/libfirm,killbug2004/libfirm,MatzeB/libfirm,8l/libfirm,jonashaag/libfirm,killbug2004/libfirm,MatzeB/libfirm,jonashaag/libfirm,davidgiven/libfirm,libfirm/libfirm,davidgiven/libfirm,killbug2004/libf... |
087d26add507d41839b5ae9c80f25e7208c82754 | third_party/widevine/cdm/android/widevine_cdm_version.h | third_party/widevine/cdm/android/widevine_cdm_version.h | // Copyright (c) 2013 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 WIDEVINE_CDM_VERSION_H_
#define WIDEVINE_CDM_VERSION_H_
#include "third_party/widevine/cdm/widevine_cdm_common.h"
// Indicates that the Wide... | // Copyright (c) 2013 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 WIDEVINE_CDM_VERSION_H_
#define WIDEVINE_CDM_VERSION_H_
#include "third_party/widevine/cdm/widevine_cdm_common.h"
// Indicates that the Wide... | Remove DISABLE_WIDEVINE_CDM_CANPLAYTYPE as we should start using canPlayType now | Remove DISABLE_WIDEVINE_CDM_CANPLAYTYPE as we should start using canPlayType now
Passed the canplaytype check when tested with http://dash-mse-test.appspot.com/append-all.html?sd=1&keysystem=widevine
BUG=224793
Review URL: https://chromiumcodereview.appspot.com/24072009
git-svn-id: de016e52bd170d2d4f2344f9bf92d5047... | C | bsd-3-clause | anirudhSK/chromium,axinging/chromium-crosswalk,Pluto-tv/chromium-crosswalk,krieger-od/nwjs_chromium.src,anirudhSK/chromium,hgl888/chromium-crosswalk-efl,hgl888/chromium-crosswalk-efl,bright-sparks/chromium-spacewalk,anirudhSK/chromium,ondra-novak/chromium.src,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk,patri... |
8112c82609b3307c193ffefae01690ecd6e99968 | BlocksKit/NSCache+BlocksKit.h | BlocksKit/NSCache+BlocksKit.h | //
// NSCache+BlocksKit.h
// %PROJECT
//
#import "BKGlobals.h"
/** NSCache with block adding of objects
This category allows you to conditionally add objects to
an instance of NSCache using blocks. Both the normal
delegation pattern and a block callback for NSCache's one
delegate method are allowed.
These... | //
// NSCache+BlocksKit.h
// %PROJECT
//
#import "BKGlobals.h"
/** NSCache with block adding of objects
This category allows you to conditionally add objects to
an instance of NSCache using blocks. Both the normal
delegation pattern and a block callback for NSCache's one
delegate method are allowed.
These... | Fix block property type in NSCache. | Fix block property type in NSCache.
| C | mit | AlexanderMazaletskiy/BlocksKit,zxq3220122/BlocksKit-1,HarrisLee/BlocksKit,zwaldowski/BlocksKit,yimouleng/BlocksKit,z8927623/BlocksKit,Herbert77/BlocksKit,tattocau/BlocksKit,pilot34/BlocksKit,hq804116393/BlocksKit,stevenxiaoyang/BlocksKit,Gitub/BlocksKit,dachaoisme/BlocksKit,demonnico/BlocksKit,pomu0325/BlocksKit,anton-... |
18fdd4612a7cb7449048e234af3ce24644ca9f46 | include/queuemanager.h | include/queuemanager.h | #ifndef NEWSBOAT_QUEUEMANAGER_H_
#define NEWSBOAT_QUEUEMANAGER_H_
#include <memory>
#include <string>
namespace newsboat {
class ConfigContainer;
class ConfigPaths;
class RssFeed;
class QueueManager {
ConfigContainer* cfg = nullptr;
ConfigPaths* paths = nullptr;
public:
QueueManager(ConfigContainer* cfg, Config... | #ifndef NEWSBOAT_QUEUEMANAGER_H_
#define NEWSBOAT_QUEUEMANAGER_H_
#include <ctime>
#include <memory>
#include <string>
namespace newsboat {
class ConfigContainer;
class ConfigPaths;
class RssFeed;
class QueueManager {
ConfigContainer* cfg = nullptr;
ConfigPaths* paths = nullptr;
public:
QueueManager(ConfigConta... | Add missing header and fix build on FreeBSD | Add missing header and fix build on FreeBSD
In file included from src/queuemanager.cpp:1:
include/queuemanager.h:22:9: error: unknown type name 'time_t'
const time_t pubDate,
^
Signed-off-by: Tobias Kortkamp <95411b5f3468a822bfbad7edd660475780680510@FreeBSD.org>
| C | mit | der-lyse/newsboat,der-lyse/newsboat,newsboat/newsboat,newsboat/newsboat,newsboat/newsboat,newsboat/newsboat,newsboat/newsboat,newsboat/newsboat,newsboat/newsboat,newsboat/newsboat,der-lyse/newsboat,der-lyse/newsboat,der-lyse/newsboat,der-lyse/newsboat,der-lyse/newsboat,der-lyse/newsboat |
4f897d18736c57e3a404252bd61258d6290d184a | 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 72
#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 73
#endif
| Update Skia milestone to 73 | Update Skia milestone to 73
Bug: skia:
Change-Id: I4b8744f1f9d752a54429054d7539c46e24fcba82
Reviewed-on: https://skia-review.googlesource.com/c/173428
Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
Commit-Queue: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
| C | bsd-3-clause | google/skia,aosp-mirror/platform_external_skia,rubenvb/skia,rubenvb/skia,aosp-mirror/platform_external_skia,rubenvb/skia,google/skia,HalCanary/skia-hc,Hikari-no-Tenshi/android_external_skia,rubenvb/skia,aosp-mirror/platform_external_skia,HalCanary/skia-hc,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_exte... |
de4201ea6e5d1f02ca09a11892ac24b32607d9a6 | sw/tests/rv_timer/rv_timer_test.c | sw/tests/rv_timer/rv_timer_test.c | // Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include <stdlib.h>
#include <string.h>
#include "common.h"
#include "irq.h"
#include "rv_timer.h"
#include "uart.h"
static uint32_t intr_handling_success = 0;
static ... | // Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include <stdlib.h>
#include <string.h>
#include "common.h"
#include "irq.h"
#include "rv_timer.h"
#include "uart.h"
static uint32_t intr_handling_success = 0;
static ... | Decrease compare value for faster testing | [test] Decrease compare value for faster testing
| C | apache-2.0 | lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan |
f7df91a61b63f1b306f73a5166bec47b04add65b | src/lib_atlas/macros.h | src/lib_atlas/macros.h | /**
* \file macros.h
* \author Thibaut Mattio <thibaut.mattio@gmail.com>
* \date 28/06/2015
* \copyright Copyright (c) 2015 Thibaut Mattio. All rights reserved.
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
#ifndef ATLAS_MACROS_H_
#define ATLAS_MACROS_H_
#... | /**
* \file macros.h
* \author Thibaut Mattio <thibaut.mattio@gmail.com>
* \date 28/06/2015
* \copyright Copyright (c) 2015 Thibaut Mattio. All rights reserved.
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
#ifndef ATLAS_MACROS_H_
#define ATLAS_MACROS_H_
/... | Make ins provider compile on darwin os. | Make ins provider compile on darwin os.
| C | mit | sonia-auv/atlas,sonia-auv/atlas |
c77b5fa13212089262ca9c25d65551264a32cd1e | capnp/helpers/checkCompiler.h | capnp/helpers/checkCompiler.h | #ifdef __GNUC__
#if __clang__
#if __cplusplus >= 201103L && !__has_include(<initializer_list>)
#warning "Your compiler supports C++11 but your C++ standard library does not. If your system has libc++ installed (as should be the case on e.g. Mac OSX), try adding -stdlib=libc++ to your CFLAGS (ignore the oth... | #ifdef __GNUC__
#if __clang__
#if __cplusplus >= 201103L && !__has_include(<initializer_list>)
#warning "Your compiler supports C++11 but your C++ standard library does not. If your system has libc++ installed (as should be the case on e.g. Mac OSX), try adding -stdlib=libc++ to your CFLAGS (ignore the oth... | Fix error message in version check | Fix error message in version check
| C | bsd-2-clause | rcrowder/pycapnp,tempbottle/pycapnp,tempbottle/pycapnp,SymbiFlow/pycapnp,jparyani/pycapnp,rcrowder/pycapnp,tempbottle/pycapnp,jparyani/pycapnp,SymbiFlow/pycapnp,rcrowder/pycapnp,rcrowder/pycapnp,SymbiFlow/pycapnp,SymbiFlow/pycapnp,jparyani/pycapnp,tempbottle/pycapnp,jparyani/pycapnp |
cade60aa064e9f6ca308806b6071ffae8dbab954 | bin/lsip.c | bin/lsip.c | #include <stdio.h>
#include <stdlib.h>
#include <curl/curl.h>
int main (int argc, char ** argv)
{ CURL * handle;
CURLcode res;
curl_global_init(CURL_GLOBAL_ALL);
handle = curl_easy_init();
if ( handle )
{ curl_easy_setopt(handle, CURLOPT_URL, "http://icanhazip.com");
curl_easy_setopt(... | #include <stdio.h>
#include <stdlib.h>
#include <curl/curl.h>
int main ()
{ CURL * handle;
CURLcode res;
curl_global_init(CURL_GLOBAL_ALL);
handle = curl_easy_init();
if ( handle )
{ curl_easy_setopt(handle, CURLOPT_URL, "http://icanhazip.com");
curl_easy_setopt(handle, CURLOPT_FOLLOW... | Remove arg{c,v} params for main() since they are unneeded | Remove arg{c,v} params for main() since they are unneeded
| C | unlicense | HalosGhost/.dotfiles,HalosGhost/.dotfiles |
669b5c11d8c82252f9697e35d183a0c840386261 | libmultipath/alias.h | libmultipath/alias.h | #define BINDINGS_FILE_TIMEOUT 3
#define BINDINGS_FILE_HEADER \
"# Multipath bindings, Version : 1.0\n" \
"# NOTE: this file is automatically maintained by the multipath program.\n" \
"# You should not need to edit this file in normal circumstances.\n" \
"#\n" \
"# Format:\n" \
"# alias wwid\n" \
"#\n"
char *get_user_f... | #define BINDINGS_FILE_TIMEOUT 30
#define BINDINGS_FILE_HEADER \
"# Multipath bindings, Version : 1.0\n" \
"# NOTE: this file is automatically maintained by the multipath program.\n" \
"# You should not need to edit this file in normal circumstances.\n" \
"#\n" \
"# Format:\n" \
"# alias wwid\n" \
"#\n"
char *get_user_... | Increase bindings file lock timeout to avoid failure of user_friendly_names | [lib] Increase bindings file lock timeout to avoid failure of user_friendly_names
On setups with a large number of paths / multipath maps, contention for
the advisory lock on the bindings file may take longer than 3 seconds,
and some multipath processes may create maps based on WWID despite having
user_friendly_names ... | C | lgpl-2.1 | unakatsuo/multipath-tools,vijaychauhan/multipath-tools,grzn/multipath-tools-explained,unakatsuo/multipath-tools,grzn/multipath-tools-explained,gebi/multipath-tools,unakatsuo/multipath-tools,vijaychauhan/multipath-tools |
2e890d726c631346512b74928411575dcaa517d9 | 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 99
#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 100
#endif
| Update Skia milestone to 100 | Update Skia milestone to 100
Change-Id: I9d435a7a68ef870ef027ee3c6acb79792773868b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/497609
Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
Auto-Submit: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
Reviewe... | C | bsd-3-clause | 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,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,goo... |
1636cf91cd66ab4cae55854b25f45b1b77151c88 | src/idx.h | src/idx.h | #ifndef __IDX_H_ENTRY_H__
#define __IDX_H_ENTRY_H__
typedef struct {
unsigned char header[4];
int length;
unsigned char *data;
} IDX1_DATA ;
typedef struct {
unsigned char header[4];
int nimages;
int nrows;
int ncols;
unsigned char *data;
} IDX3_DATA ;
int fread_idx1_file( char *slabelfname, ... | #ifndef __IDX_H_ENTRY_H__
#define __IDX_H_ENTRY_H__
typedef struct {
unsigned char header[4];
int length;
unsigned char *data;
} IDX1_DATA ;
typedef struct {
unsigned char header[4];
int nimages;
int nrows;
int ncols;
int length;
unsigned char *data;
} IDX3_DATA ;
int fread_idx1_file( char... | Add a length field to the IDX3_DATA structure. | Add a length field to the IDX3_DATA structure.
| C | mit | spytheman/MNIST-idx1-and-idx3-file-readers |
f12a377ceee0f8ee2d5fc5dd83be6015197b5387 | nvidia_library/NvidiaApi.h | nvidia_library/NvidiaApi.h | #pragma once
#include "helpers.h"
#include "nvidia_interface_datatypes.h"
#include <vector>
#include <memory>
class NvidiaGPU;
class NVLIB_EXPORTED NvidiaApi
{
public:
NvidiaApi();
~NvidiaApi();
int getGPUCount();
std::shared_ptr<NvidiaGPU> getGPU(int index);
private:
bool GPUloaded = false;
s... | #pragma once
#include "helpers.h"
#include "nvidia_interface_datatypes.h"
#include <vector>
#include <memory>
class NvidiaGPU;
class NVLIB_EXPORTED NvidiaApi
{
public:
NvidiaApi();
~NvidiaApi();
int getGPUCount();
std::shared_ptr<NvidiaGPU> getGPU(int index);
private:
std::vector<std::shared_ptr<N... | Tweak a minor alignment issue. | Tweak a minor alignment issue.
| C | mit | ircubic/lib_gpu,ircubic/lib_gpu,ircubic/lib_gpu |
b16eec4314bc8716ac56b8db04d1d49eaf9f8148 | include/flatcc/portable/pversion.h | include/flatcc/portable/pversion.h | #define PORTABLE_VERSION_TEXT "0.2.5"
#define PORTABLE_VERSION_MAJOR 0
#define PORTABLE_VERSION_MINOR 2
#define PORTABLE_VERSION_PATCH 5
/* 1 or 0 */
#define PORTABLE_VERSION_RELEASED 1
| #define PORTABLE_VERSION_TEXT "0.2.6-pre"
#define PORTABLE_VERSION_MAJOR 0
#define PORTABLE_VERSION_MINOR 2
#define PORTABLE_VERSION_PATCH 6
/* 1 or 0 */
#define PORTABLE_VERSION_RELEASED 0
| Bump portable version to 0.2.6-pre | Bump portable version to 0.2.6-pre
| C | apache-2.0 | dvidelabs/flatcc,dvidelabs/flatcc,dvidelabs/flatcc |
262de226f343c443c29c2e83328a8be07afbc3cc | include/flatcc/portable/pversion.h | include/flatcc/portable/pversion.h | #define PORTABLE_VERSION_TEXT "0.2.4"
#define PORTABLE_VERSION_MAJOR 0
#define PORTABLE_VERSION_MINOR 2
#define PORTABLE_VERSION_PATCH 4
/* 1 or 0 */
#define PORTABLE_VERSION_RELEASED 1
| #define PORTABLE_VERSION_TEXT "0.2.5-pre"
#define PORTABLE_VERSION_MAJOR 0
#define PORTABLE_VERSION_MINOR 2
#define PORTABLE_VERSION_PATCH 5
/* 1 or 0 */
#define PORTABLE_VERSION_RELEASED 0
| Update portable version to unreleased | Update portable version to unreleased
| C | apache-2.0 | dvidelabs/flatcc,dvidelabs/flatcc,dvidelabs/flatcc |
459c21926c5bbefe8689a4b4fd6088d0e6ed05f1 | main.c | main.c | #include <stdio.h>
#include <stdlib.h>
#include <termbox.h>
#include "editor.h"
#include "util.h"
int main(int argc, char *argv[]) {
debug_init();
editor_t editor;
cursor_t cursor;
editor_init(&editor, &cursor, argc > 1 ? argv[1] : NULL);
int err = tb_init();
if (err) {
fprintf(stderr, "tb_init() f... | #include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <termbox.h>
#include "editor.h"
#include "util.h"
// termbox catches ctrl-z as a regular key event. To suspend the process as
// normal, manually raise SIGTSTP.
//
// Not 100% sure why we need to shutdown termbox, but the terminal gets all
// weird... | Handle Ctrl-Z to suspend the process. | Handle Ctrl-Z to suspend the process.
| C | mit | isbadawi/badavi |
beed7117adc92edf3e5aefb1d341e29eab90b17d | libraries/mbed/common/exit.c | libraries/mbed/common/exit.c | /* mbed Microcontroller Library
* Copyright (c) 2006-2013 ARM Limited
*
* 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 re... | /* mbed Microcontroller Library
* Copyright (c) 2006-2013 ARM Limited
*
* 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 re... | Add __cxa_pure_virtual to avoid pulling in functions from the C++ library | Add __cxa_pure_virtual to avoid pulling in functions from the C++ library
Fixes PRMBED-859
| C | apache-2.0 | nabilbendafi/mbed,pradeep-gr/mbed-os5-onsemi,sam-geek/mbed,DanKupiniak/mbed,jrjang/mbed,alertby/mbed,svogl/mbed-os,nvlsianpu/mbed,mbedmicro/mbed,logost/mbed,hwfwgrp/mbed,mbedmicro/mbed,svastm/mbed,Sweet-Peas/mbed,radhika-raghavendran/mbed-os5.1-onsemi,pi19404/mbed,alertby/mbed,alertby/mbed,autopulated/mbed,devanlai/mbe... |
e4c6b241a94c6828710faa00e1ac9188c26667eb | shared-module/_protomatter/allocator.h | shared-module/_protomatter/allocator.h | #ifndef MICROPY_INCLUDED_SHARED_MODULE_PROTOMATTER_ALLOCATOR_H
#define MICROPY_INCLUDED_SHARED_MODULE_PROTOMATTER_ALLOCATOR_H
#include <stdbool.h>
#include "py/gc.h"
#include "py/misc.h"
#include "supervisor/memory.h"
#define _PM_ALLOCATOR _PM_allocator_impl
#define _PM_FREE(x) (_PM_free_impl((x)), (x)=NULL, (void)0)... | #ifndef MICROPY_INCLUDED_SHARED_MODULE_PROTOMATTER_ALLOCATOR_H
#define MICROPY_INCLUDED_SHARED_MODULE_PROTOMATTER_ALLOCATOR_H
#include <stdbool.h>
#include "py/gc.h"
#include "py/misc.h"
#include "supervisor/memory.h"
#define _PM_ALLOCATOR _PM_allocator_impl
#define _PM_FREE(x) (_PM_free_impl((x)), (x)=NULL, (void)0)... | Use low end of supervisor heap | protomatter: Use low end of supervisor heap
Per @tannewt, this area "sees more churn", so it's probably the right
choice here
| C | mit | adafruit/circuitpython,adafruit/micropython,adafruit/circuitpython,adafruit/micropython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/micropython,adafruit/micropython,adafruit/circuitpython,adafruit/micropython |
f7c992a59e005e2f555a75cc23c83948c856435a | src/writer/verilog/task.h | src/writer/verilog/task.h | // -*- C++ -*-
#ifndef _writer_verilog_task_h_
#define _writer_verilog_task_h_
#include "writer/verilog/resource.h"
namespace iroha {
namespace writer {
namespace verilog {
class Task : public Resource {
public:
Task(const IResource &res, const Table &table);
virtual void BuildResource();
virtual void BuildIns... | // -*- C++ -*-
#ifndef _writer_verilog_task_h_
#define _writer_verilog_task_h_
#include "writer/verilog/resource.h"
namespace iroha {
namespace writer {
namespace verilog {
class Task : public Resource {
public:
Task(const IResource &res, const Table &table);
virtual void BuildResource();
virtual void BuildIns... | Fix a missed file in previous change. | Fix a missed file in previous change.
| C | bsd-3-clause | nlsynth/iroha,nlsynth/iroha |
6dfebcd2cca5a3e6cb7668c43ff30c4619026c75 | source/crate_demo/game_state_manager.h | source/crate_demo/game_state_manager.h | /* The Halfling Project - A Graphics Engine and Projects
*
* The Halfling Project is the legal property of Adrian Astley
* Copyright Adrian Astley 2013
*/
#ifndef CRATE_DEMO_GAME_STATE_MANAGER_H
#define CRATE_DEMO_GAME_STATE_MANAGER_H
#include "common/game_state_manager_interface.h"
namespace CrateDemo {
class... | /* The Halfling Project - A Graphics Engine and Projects
*
* The Halfling Project is the legal property of Adrian Astley
* Copyright Adrian Astley 2013
*/
#ifndef CRATE_DEMO_GAME_STATE_MANAGER_H
#define CRATE_DEMO_GAME_STATE_MANAGER_H
#include "common/game_state_manager_base.h"
namespace CrateDemo {
class Game... | Update GameStateManager to use new base class name | CRATE_DEMO: Update GameStateManager to use new base class name
| C | apache-2.0 | RichieSams/thehalflingproject,RichieSams/thehalflingproject,RichieSams/thehalflingproject |
f61acc197adfc2a6c69f9da6e5f33036a502983e | src/condor_ckpt/fcntl.h | src/condor_ckpt/fcntl.h | #if defined(__cplusplus) && !defined(OSF1) /* GNU G++ */
# include "fix_gnu_fcntl.h"
#elif defined(AIX32) /* AIX bsdcc */
typedef unsigned short ushort;
# include <fcntl.h>
#elif defined(HPUX9) /* HPUX 9 */
# define fcntl __condor_hide_fcntl
# include <fcntl.h>
# undef fcntl
int fcntl( int fd, int req, int ... | #if defined(__cplusplus) && !defined(OSF1) /* GNU G++ */
# include "fix_gnu_fcntl.h"
#elif defined(AIX32) /* AIX bsdcc */
# if !defined(_ALL_SOURCE)
typedef ushort_t ushort;
# endif
# include <fcntl.h>
#elif defined(HPUX9) /* HPUX 9 */
# define fcntl __condor_hide_fcntl
# include <fcntl.h>
# undef fcntl
... | Make sure that for AIX 3.2 we get ushort defined when we need it, but not doubly defined... | Make sure that for AIX 3.2 we get ushort defined when we need it, but
not doubly defined...
| C | apache-2.0 | bbockelm/condor-network-accounting,djw8605/condor,htcondor/htcondor,clalancette/condor-dcloud,djw8605/condor,djw8605/condor,htcondor/htcondor,clalancette/condor-dcloud,zhangzhehust/htcondor,djw8605/htcondor,neurodebian/htcondor,djw8605/htcondor,mambelli/osg-bosco-marco,djw8605/htcondor,mambelli/osg-bosco-marco,htcondor... |
c584028875926b3a193e480e16bfc19b1c613438 | turing.h | turing.h | #ifndef TURING_H_
#define TURING_H_
#define TAPE_LEN 1024
#define turing_error(...) fprintf(stderr, __VA_ARGS__);\
return TURING_ERROR
typedef int bool;
typedef enum {
TURING_OK,
TURING_HALT,
TURING_ERROR
} turing_status_t;
typedef struct Turing {
bool *tape;
bool *p;
} Turing;
Turing *ini... | #ifndef TURING_H_
#define TURING_H_
#define TAPE_LEN 1024
#define turing_error(...) fprintf(stderr, __VA_ARGS__);\
return TURING_ERROR
#define move_head_left(t) move_head(t, 0)
#define move_head_right(t) move_head(t, 1)
typedef int bool;
typedef enum {
TURING_OK,
TURING_HALT,
TURING_ERROR
} turing_s... | Implement left and right macros | Implement left and right macros
| C | mit | mindriot101/turing-machine |
09bb0bf7b1a23d056db347286539611f38145da7 | Plugin/CppApi/include/ArcGISRuntimeToolkit.h | Plugin/CppApi/include/ArcGISRuntimeToolkit.h | // Copyright 2016 ESRI
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// You may freely redistribute and use this sample code, with or
// without modification, provided you include the original copyright
// notice and use restr... | // Copyright 2016 ESRI
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// You may freely redistribute and use this sample code, with or
// without modification, provided you include the original copyright
// notice and use restr... | Update registration version for 100.3 | Update registration version for 100.3
| C | apache-2.0 | Esri/arcgis-runtime-toolkit-qt,Esri/arcgis-runtime-toolkit-qt,Esri/arcgis-runtime-toolkit-qt |
4ca8b01f499f2c3a72191e6eb89a7790cf8af7ef | src/tests/enesim_test_renderer_error.c | src/tests/enesim_test_renderer_error.c | #include "Enesim.h"
int main(int argc, char **argv)
{
Enesim_Renderer *r;
Enesim_Surface *s;
Enesim_Log *error = NULL;
enesim_init();
r = enesim_renderer_rectangle_new();
enesim_renderer_shape_fill_color_set(r, 0xffffffff);
/* we dont set any property to force the error */
s = enesim_surface_new(ENESIM_FORMA... | #include "Enesim.h"
int main(int argc, char **argv)
{
Enesim_Renderer *r;
Enesim_Surface *s;
Enesim_Log *error = NULL;
enesim_init();
r = enesim_renderer_rectangle_new();
enesim_renderer_shape_fill_color_set(r, 0xffffffff);
/* we dont set any property to force the error */
s = enesim_surface_new(ENESIM_FORMA... | Use the new log API | Use the new log API
| C | lgpl-2.1 | turran/enesim,turran/enesim,turran/enesim,turran/enesim |
41d07a68c0a5cfed255d3ad628d0d41687ca00df | tests/regression/04-mutex/37-indirect_rc.c | tests/regression/04-mutex/37-indirect_rc.c | #include <pthread.h>
int g;
int *g1;
int *g2;
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
pthread_mutex_lock(&mutex);
(*g1)++; // RACE!
pthread_mutex_lock(&mutex);
return NULL;
}
int main(void) {
pthread_t id;
int x;
g1 = g2 = &g;
pthread_create(&id, NULL, t_fun, NULL... | #include <pthread.h>
int g;
int *g1;
int *g2;
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
pthread_mutex_lock(&mutex);
(*g1)++; // RACE!
pthread_mutex_unlock(&mutex);
return NULL;
}
int main(void) {
pthread_t id;
int x;
g1 = g2 = &g;
pthread_create(&id, NULL, t_fun, NU... | Fix lock-unlock copy-paste mistake in 04/37 | Fix lock-unlock copy-paste mistake in 04/37
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
c7ee376f947ec1d3e81d49e2c4a81adf1c292c1d | libc/sysdeps/linux/common/getrusage.c | libc/sysdeps/linux/common/getrusage.c | /* vi: set sw=4 ts=4: */
/*
* getrusage() for uClibc
*
* Copyright (C) 2000-2004 by Erik Andersen <andersen@codepoet.org>
*
* GNU Library General Public License (LGPL) version 2 or later.
*/
#include "syscalls.h"
#include <unistd.h>
#include <wait.h>
_syscall2(int, getrusage, int, who, struct rusage *, usage);
| /* vi: set sw=4 ts=4: */
/*
* getrusage() for uClibc
*
* Copyright (C) 2000-2004 by Erik Andersen <andersen@codepoet.org>
*
* GNU Library General Public License (LGPL) version 2 or later.
*/
#include "syscalls.h"
#include <unistd.h>
#include <wait.h>
_syscall2(int, getrusage, __rusage_who_t, who, struct rusage *... | Correct type, gcc-3.4.5 fails, thanks nitinkg for reporting/testing | Correct type, gcc-3.4.5 fails, thanks nitinkg for reporting/testing
| C | lgpl-2.1 | foss-for-synopsys-dwc-arc-processors/uClibc,ChickenRunjyd/klee-uclibc,ysat0/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,brgl/uclibc-ng,ChickenRunjyd/klee-uclibc,ysat0/uClibc,kraj/uClibc,ndmsystems/uClibc,wbx-github/uclibc-ng,majek/uclibc-vx32,hjl-tools/uClibc,mephi42/uClibc,hwoarang/uClibc,ndmsystems/uClibc,czan... |
76ea7e35cc30ffe119cfe0b7ce2397ca4cb7a88a | test/CodeGen/stack-size-section.c | test/CodeGen/stack-size-section.c | // RUN: %clang_cc1 -triple x86_64-unknown-unknown %s -S -o - | FileCheck %s --check-prefix=CHECK-ABSENT
// CHECK-ABSENT-NOT: section .stack_sizes
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fstack-size-section %s -S -o - | FileCheck %s --check-prefix=CHECK-PRESENT
// CHECK-PRESENT: section .stack_sizes
int foo... | // REQUIRES: x86-registered-target
// RUN: %clang_cc1 -triple x86_64-unknown-unknown %s -S -o - | FileCheck %s --check-prefix=CHECK-ABSENT
// CHECK-ABSENT-NOT: section .stack_sizes
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fstack-size-section %s -S -o - | FileCheck %s --check-prefix=CHECK-PRESENT
// CHECK-PR... | Fix test added in r321992 failing on some buildbots (again), test requires x86. | Fix test added in r321992 failing on some buildbots (again), test requires x86.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@322000 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl... |
0b7ec39c2d41c26fc00e50367b5a2cc47be7fede | src/pch.h | src/pch.h | //
// pch.h
// Header for standard system include files.
//
#ifndef _divida_precompiled_header_h_
#define _divida_precompiled_header_h_
#ifdef WINDOWS
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#endif
#include <algorithm>
#include <iomanip>
#include <string>
#include <sstr... | //
// pch.h
// Header for standard system include files.
//
#ifndef _divida_precompiled_header_h_
#define _divida_precompiled_header_h_
#ifdef WINDOWS
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#endif
#include <algorithm>
#include <iomanip>
#include <memory>
#include <stri... | Add backup implementation of std::make_unique. | Add backup implementation of std::make_unique.
| C | mit | chrisculy/Divida,chrisculy/Divida |
8c040708668c09654682c3133c3c16aa691f3bf9 | libtock/ambient_light.c | libtock/ambient_light.c | #include "ambient_light.h"
#include "tock.h"
typedef struct {
int intensity;
bool fired;
} ambient_light_data_t;
// callback for synchronous reads
static void ambient_light_cb(int intensity,
__attribute__ ((unused)) int unused1,
__attribute__ ((unused)) in... | #include "ambient_light.h"
#include "tock.h"
typedef struct {
int intensity;
bool fired;
} ambient_light_data_t;
// internal callback for faking synchronous reads
static void ambient_light_cb(int intensity,
__attribute__ ((unused)) int unused1,
__attribute... | Revert "Updating ambient light to 2.0 API." | Revert "Updating ambient light to 2.0 API."
This reverts commit 9a9df3a205dcebfcb358b60ef11df54698ec6dce.
| C | apache-2.0 | tock/libtock-c,tock/libtock-c,tock/libtock-c |
3f76bfade6c09f340aa3c5d1d53ea9bbb736761f | CefSharp.Core/Internals/StringVisitor.h | CefSharp.Core/Internals/StringVisitor.h | // Copyright 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#pragma once
#include "Stdafx.h"
#include "include/cef_string_visitor.h"
namespace CefSharp
{
private class StringVisitor : public CefStringVi... | // Copyright 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#pragma once
#include "Stdafx.h"
#include "include/cef_string_visitor.h"
namespace CefSharp
{
private class StringVisitor : public CefStringVi... | Fix minor indentation issue (formatting) | Fix minor indentation issue (formatting)
| C | bsd-3-clause | joshvera/CefSharp,windygu/CefSharp,haozhouxu/CefSharp,NumbersInternational/CefSharp,jamespearce2006/CefSharp,Livit/CefSharp,zhangjingpu/CefSharp,illfang/CefSharp,VioletLife/CefSharp,yoder/CefSharp,rlmcneary2/CefSharp,NumbersInternational/CefSharp,zhangjingpu/CefSharp,Haraguroicha/CefSharp,wangzheng888520/CefSharp,rlmcn... |
ea83ee487a59bb5d9fa122614886a2357b990e64 | PHOS/AliPHOSPreprocessor.h | PHOS/AliPHOSPreprocessor.h | #ifndef ALIPHOSPREPROCESSOR_H
#define ALIPHOSPREPROCESSOR_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
/* $Id$ */
///////////////////////////////////////////////////////////////////////////////
// Class AliPH... | #ifndef ALIPHOSPREPROCESSOR_H
#define ALIPHOSPREPROCESSOR_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
/* $Id$ */
///////////////////////////////////////////////////////////////////////////////
// Class AliPH... | Remove declaration of unimplemented method | Remove declaration of unimplemented method
| C | bsd-3-clause | coppedis/AliRoot,shahor02/AliRoot,miranov25/AliRoot,ecalvovi/AliRoot,sebaleh/AliRoot,ecalvovi/AliRoot,miranov25/AliRoot,miranov25/AliRoot,miranov25/AliRoot,alisw/AliRoot,alisw/AliRoot,shahor02/AliRoot,sebaleh/AliRoot,mkrzewic/AliRoot,shahor02/AliRoot,coppedis/AliRoot,jgrosseo/AliRoot,mkrzewic/AliRoot,jgrosseo/AliRoot,e... |
17c191e8231e6429309bd6cc8e826eb38b9d8d89 | include/bubblesorts-bubble-inl.h | include/bubblesorts-bubble-inl.h | #ifndef SORTING_INCLUDE_BUBBLESORTS_BUBBLE_INL_H_
#define SORTING_INCLUDE_BUBBLESORTS_BUBBLE_INL_H_
namespace sorting {
namespace bubble {
template <class T>
void BubbleSort(T * const array, const int N)
/**
* Bubble sort: Bubble sort
* Scaling:
* Best case:
* Worst case:
* Useful:
*
*/
{
}
} // na... | #ifndef SORTING_INCLUDE_BUBBLESORTS_BUBBLE_INL_H_
#define SORTING_INCLUDE_BUBBLESORTS_BUBBLE_INL_H_
namespace sorting {
namespace bubble {
template <class T>
void BubbleSort(T * const array, const int N)
/**
* Bubble sort: Bubble sort
* Scaling:
* Best case:
* Worst case:
* Useful:
*
*/
{
int pas... | Add working bubble sort implementation | Add working bubble sort implementation
| C | bsd-3-clause | nbigaouette/sorting,nbigaouette/sorting,nbigaouette/sorting,nbigaouette/sorting |
e2b4f630a3880e4b30a960890672acf8dffa0dbd | src/units/unit.h | src/units/unit.h |
#ifndef UNITS_UNIT_H_
#define UNITS_UNIT_H_
#include <SFML/Graphics.hpp>
#include "engine/instance.h"
#include "base/aliases.h"
class Unit : public Instance {
public:
Unit();
virtual ~Unit();
virtual void Step(sf::Time elapsed);
void set_life(unsigned life) {
life_ = life;
}
unsigned life() {
... |
#ifndef UNITS_UNIT_H_
#define UNITS_UNIT_H_
#include <SFML/Graphics.hpp>
#include "engine/instance.h"
#include "base/aliases.h"
class Unit : public Instance {
public:
Unit();
virtual ~Unit();
virtual void Step(sf::Time elapsed);
void set_life(unsigned life) {
life_ = life;
}
unsigned life() {
... | Rename function to the new version. | Rename function to the new version.
| C | mit | davidgasquez/loto,davidgasquez/loto |
92f64df6d3551bec6f5c14e78b1195a381f9fc11 | src/isolate/v8_version.h | src/isolate/v8_version.h | // These macros weren't added until v8 version 4.4
#include "node_wrapper.h"
#ifndef V8_MAJOR_VERSION
#if NODE_MODULE_VERSION <= 11
#define V8_MAJOR_VERSION 3
#define V8_MINOR_VERSION 14
#define V8_PATCH_LEVEL 0
#elif V8_MAJOR_VERSION <= 14
#define V8_MAJOR_VERSION 3
#define V8_MINOR_VERSION 28
#define V8... | // These macros weren't added until v8 version 4.4
#include "node_wrapper.h"
#ifndef V8_MAJOR_VERSION
#if NODE_MODULE_VERSION <= 11
#define V8_MAJOR_VERSION 3
#define V8_MINOR_VERSION 14
#define V8_PATCH_LEVEL 0
#elif V8_MAJOR_VERSION <= 14
#define V8_MAJOR_VERSION 3
#define V8_MINOR_VERSION 28
#define V8... | Fix msvc preprocessor error (omg) | Fix msvc preprocessor error (omg)
| C | isc | laverdet/isolated-vm,laverdet/isolated-vm,laverdet/isolated-vm,laverdet/isolated-vm |
2413283acfba846293a4476354cd2a88d79a8bb8 | arc/arc/Model/FileSystem.h | arc/arc/Model/FileSystem.h | //
// FileSystem.h
// arc
//
// Created by Jerome Cheng on 19/3/13.
// Copyright (c) 2013 nus.cs3217. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Folder.h"
@interface FileSystem : NSObject {
@private
Folder *_rootFolder; // The root folder.
}
// Returns the root folder of the entir... | //
// FileSystem.h
// arc
//
// Created by Jerome Cheng on 19/3/13.
// Copyright (c) 2013 nus.cs3217. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Folder.h"
@interface FileSystem : NSObject {
@private
Folder *_rootFolder; // The root folder.
}
// Returns the root folder of the entir... | Add signatures for content retrieval methods. | Add signatures for content retrieval methods.
| C | mit | BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc |
12fb043e39695727114f7d24e5e3b2911a79c7a4 | Cerberus.h | Cerberus.h | #ifndef CERBERUS_H
#define CERBERUS_H
#include <iostream>
#include "ceres/ceres.h"
using namespace std;
using namespace ceres;
class Cerberus {
public:
Cerberus();
Solver::Options options;
LossFunction *loss;
Problem problem;
Solver::Summary summary;
void solve();
};
#endif | #ifndef CERBERUS_H
#define CERBERUS_H
#include <iostream>
#include "ceres/ceres.h"
#include "ceres/rotation.h"
using namespace std;
using namespace ceres;
class Cerberus {
public:
Cerberus();
Solver::Options options;
LossFunction *loss;
Problem problem;
Solver::Summary summary;
void solve();
};
// Rt ... | Add utility functions for converting to and from AngleAxis | Add utility functions for converting to and from AngleAxis
| C | mit | danielsuo/Cerberus,danielsuo/Cerberus |
38310122f3a4d99326320da14638ff9088a33b56 | src/source/libpetsc4py.c | src/source/libpetsc4py.c | /* ---------------------------------------------------------------- */
#include <Python.h>
/* ---------------------------------------------------------------- */
#define MPICH_SKIP_MPICXX 1
#define OMPI_SKIP_MPICXX 1
#include <petsc.h>
/* ---------------------------------------------------------------- */
#includ... | /* ---------------------------------------------------------------- */
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#if PY_VERSION_HEX < 0x02050000
typedef int Py_ssize_t;
#endif
/* ---------------------------------------------------------------- */
#define MPICH_SKIP_MPICXX 1
#define OMPI_SKIP_MPICXX 1
#include <p... | Fix build failure with Python<=2.4 and PETSc<=3.1 | Fix build failure with Python<=2.4 and PETSc<=3.1
| C | bsd-2-clause | zonca/petsc4py,zonca/petsc4py,zonca/petsc4py,zonca/petsc4py |
2b2f2991586e9aa843221f629df29596f8bfc6da | test/Frontend/dependency-generation-crash.c | test/Frontend/dependency-generation-crash.c | // RUN: not %clang_cc1 -E -dependency-file bla -MT %t/doesnotexist/bla.o -MP -o $t/doesnotexist/bla.o -x c /dev/null 2>&1 | FileCheck %s
// CHECK: error: unable to open output file
// rdar://9286457
| // RUN: not %clang_cc1 -E -dependency-file bla -MT %t/doesnotexist/bla.o -MP -o %t/doesnotexist/bla.o -x c /dev/null 2>&1 | FileCheck %s
// CHECK: error: unable to open output file
// rdar://9286457
| Fix typo in my last commit. | Fix typo in my last commit.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@231039 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... |
ffbfac16b089edc2ce0ff219bb6f8f8fc679f132 | include/libport/detect-win32.h | include/libport/detect-win32.h | /*
* Copyright (C) 2008-2010, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
#ifndef LIBPORT_DETECT_WIN3... | /*
* Copyright (C) 2008-2011, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
#ifndef LIBPORT_DETECT_WIN3... | Boost 1.47 on Windows: require _WIN32_WINNT 0x0403. | Boost 1.47 on Windows: require _WIN32_WINNT 0x0403.
* include/libport/detect-win32.h: here.
| C | bsd-3-clause | aldebaran/libport,aldebaran/libport,aldebaran/libport,aldebaran/libport,aldebaran/libport |
1eb469e28be333e475b9b8b7c05d23c707ef2cad | Libs/PublicHeaders.h | Libs/PublicHeaders.h | //
// PublicHeaders.h
// Insider
//
// Created by Alexandru Maimescu on 3/2/16.
// Copyright © 2016 Alex Maimescu. All rights reserved.
//
#ifndef PublicHeaders_h
#define PublicHeaders_h
// GCDWebServer https://github.com/swisspol/GCDWebServer
#import <Insider/GCDWebServer.h>
#import <Insider/GCDWebServerURLEnco... | //
// PublicHeaders.h
// Insider
//
// Created by Alexandru Maimescu on 3/2/16.
// Copyright © 2016 Alex Maimescu. All rights reserved.
//
#ifndef PublicHeaders_h
#define PublicHeaders_h
// GCDWebServer https://github.com/swisspol/GCDWebServer
#import "GCDWebServer.h"
#import "GCDWebServerURLEncodedFormRequest.h... | Update imports in umbrella header. | Update imports in umbrella header.
| C | mit | alexmx/Insider,alexmx/Insider,alexmx/Insider,alexmx/Insider,alexmx/Insider,alexmx/Insider |
ad42abb933a1801721a5f0abe6bdb70bc8d70334 | components/libc/compilers/newlib/libc.c | components/libc/compilers/newlib/libc.c | /*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2017/10/15 bernard the first version
*/
#include <rtthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/time.h>
#include... | /*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2017/10/15 bernard the first version
*/
#include <rtthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/time.h>
#include... | Disable ENV when disable DFS. | [Libc] Disable ENV when disable DFS.
| C | apache-2.0 | AubrCool/rt-thread,zhaojuntao/rt-thread,armink/rt-thread,hezlog/rt-thread,zhaojuntao/rt-thread,AubrCool/rt-thread,hezlog/rt-thread,weiyuliang/rt-thread,igou/rt-thread,igou/rt-thread,ArdaFu/rt-thread,armink/rt-thread,weety/rt-thread,zhaojuntao/rt-thread,FlyLu/rt-thread,nongxiaoming/rt-thread,RT-Thread/rt-thread,igou/rt-... |
82fc0cb7883747942326d6d6ca1333b27bd647f0 | test/Preprocessor/optimize.c | test/Preprocessor/optimize.c | // RUN: clang-cc -Eonly optimize.c -DOPT_O2 -O2 -verify &&
#ifdef OPT_O2
#ifndef __OPTIMIZE__
#error "__OPTIMIZE__ not defined"
#endif
#ifdef __OPTIMIZE_SIZE
#error "__OPTIMIZE_SIZE__ defined"
#endif
#endif
// RUN: clang-cc -Eonly optimize.c -DOPT_O0 -O0 -verify &&
#ifdef OPT_O0
#ifdef __OPTIMIZE__
... | // RUN: clang-cc -Eonly %s -DOPT_O2 -O2 -verify &&
#ifdef OPT_O2
#ifndef __OPTIMIZE__
#error "__OPTIMIZE__ not defined"
#endif
#ifdef __OPTIMIZE_SIZE
#error "__OPTIMIZE_SIZE__ defined"
#endif
#endif
// RUN: clang-cc -Eonly %s -DOPT_O0 -O0 -verify &&
#ifdef OPT_O0
#ifdef __OPTIMIZE__
#error "__OPT... | Use %s in test, not hard coded name. | Use %s in test, not hard coded name.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@68521 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl... |
de93b2b6ea080ae28451ab9448e3628e55361dc2 | src/safe_memory.c | src/safe_memory.c | #include "safe-c/safe_memory.h"
#include <stdio.h>
#include <string.h>
void* safe_malloc_function(size_t size, const char* calling_function)
{
if (size == 0)
{
fprintf(stderr, "Error allocating memory: The function %s called "
"'safe_malloc' and requested zero memory. The pointer shoul... | #include "safe-c/safe_memory.h"
#include <stdio.h>
#include <string.h>
void* safe_malloc_function(size_t size, const char* calling_function)
{
if (size == 0)
{
fprintf(stderr, "Error allocating memory: The function %s called "
"'safe_malloc' and requested zero memory. The pointer shoul... | Add newline to error message in safe_malloc. | Add newline to error message in safe_malloc.
The message that is printed when safe_malloc fails to allocate memory was missing a newline character.
| C | mit | VanJanssen/safe-c,VanJanssen/elegan-c,ErwinJanssen/elegan-c |
b9be70ddceebc4b6a9eff29a72bd680e10e091c7 | src/file/file_default.h | src/file/file_default.h | /*
* This file is part of libbdplus
* Copyright (C) 2015 VideoLAN
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any la... | /*
* This file is part of libbdplus
* Copyright (C) 2015 VideoLAN
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any la... | Replace include with forward declaration | Replace include with forward declaration
| C | lgpl-2.1 | ShiftMediaProject/libbdplus,ShiftMediaProject/libbdplus,ShiftMediaProject/libbdplus |
e05b052ebf4b8ed48b8dc5f0e358c2c01aabda78 | Wangscape/noise/module/codecs/ModuleCodecs.h | Wangscape/noise/module/codecs/ModuleCodecs.h | #pragma once
#include "AbsWrapperCodec.h"
#include "AddWrapperCodec.h"
#include "BillowWrapperCodec.h"
#include "BlendWrapperCodec.h"
#include "CacheWrapperCodec.h"
#include "CheckerboardWrapperCodec.h"
#include "ClampWrapperCodec.h"
#include "ConstWrapperCodec.h"
#include "CurveWrapperCodec.h"
#include "CylindersWrap... | #pragma once
#include "AbsWrapperCodec.h"
#include "AddWrapperCodec.h"
#include "BillowWrapperCodec.h"
#include "BlendWrapperCodec.h"
#include "CacheWrapperCodec.h"
#include "CheckerboardWrapperCodec.h"
#include "ClampWrapperCodec.h"
#include "ConstWrapperCodec.h"
#include "CornerCombinerBaseWrapperCodec.h"
#include "... | Put new codecs in module codec header | Put new codecs in module codec header
| C | mit | serin-delaunay/Wangscape,serin-delaunay/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape |
8cb37afde89b4c89079f579f3532792d7dd5ff67 | src/http/responsedata.h | src/http/responsedata.h | #ifndef APIMOCK_RESPONSEDATA_H
#define APIMOCK_RESPONSEDATA_H
#include <string>
namespace ApiMock {
struct ResponseData {
std::string body;
};
}
#endif | #ifndef APIMOCK_RESPONSEDATA_H
#define APIMOCK_RESPONSEDATA_H
#include <string>
#include <unordered_map>
#include "statuscodes.h"
namespace ApiMock {
struct ResponseData {
std::string body;
std::unordered_map<std::string, std::string> headers;
HTTP_RESPONSE_CODE statusCode;
};
}
#endif | Add headers and status code to response | Add headers and status code to response
| C | mit | Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock |
17ceee99c3b3170a49b5fca7f7650f94f40e1de9 | Pod/Classes/Artsy+Authentication.h | Pod/Classes/Artsy+Authentication.h | #import "ArtsyToken.h"
#import "ArtsyAuthentication.h"
#import "ArtsyAuthentication+Facebook.h"
#import "ArtsyAuthentication+Twitter.h" | #import "ArtsyToken.h"
#import "ArtsyAuthentication.h"
#if __has_include("ArtsyAuthentication+Facebook.h")
#import "ArtsyAuthentication+Facebook.h"
#endif
#if __has_include("ArtsyAuthentication+Twitter.h")
#import "ArtsyAuthentication+Twitter.h"
#endif
| Use if includes for fb/tiwtter | Use if includes for fb/tiwtter | C | mit | artsy/Artsy_Authentication,artsy/Artsy-Authentication,artsy/Artsy-Authentication,artsy/Artsy-Authentication |
738eddb1c30571adf27544bda80709b15ace587e | You-DataStore/datastore.h | You-DataStore/datastore.h | #pragma once
#ifndef YOU_DATASTORE_DATASTORE_H_
#define YOU_DATASTORE_DATASTORE_H_
#include <deque>
#include <functional>
#include "boost/variant.hpp"
#include "task_typedefs.h"
#include "internal/operation.h"
namespace You {
namespace DataStore {
namespace UnitTests {}
class Transaction;
class DataStore {
friend cl... | #pragma once
#ifndef YOU_DATASTORE_DATASTORE_H_
#define YOU_DATASTORE_DATASTORE_H_
#include <deque>
#include <functional>
#include "boost/variant.hpp"
#include "task_typedefs.h"
#include "internal/operation.h"
namespace You {
namespace DataStore {
namespace UnitTests {}
class Transaction;
class DataStore {
friend cl... | Rename get(TaskId) to getAllTask (QueryEngine does not need it) | Rename get(TaskId) to getAllTask (QueryEngine does not need it)
| C | mit | cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main |
065a075e17671be38341202bff5852a04f086548 | 00-HelloWorld/bind.c | 00-HelloWorld/bind.c | #include "libmypy.h"
char hellofunc_docs[] = "Hello world description.";
PyMethodDef helloworld_funcs[] = {
{ "hello",
(PyCFunction)hello,
METH_NOARGS,
hellofunc_docs},
{ NULL}
};
struct PyModuleDef helloworld_mod = {
PyModuleDef_HEAD_INIT,
"helloworld",
"This is hello world module.",
-1,
helloworld_fun... | #include "libmypy.h"
char hellofunc_docs[] = "Hello world description.";
PyMethodDef helloworld_funcs[] = {
{ "hello",
(PyCFunction)hello,
METH_NOARGS,
hellofunc_docs},
{ NULL}
};
char helloworldmod_docs[] = "This is hello world module.";
PyModuleDef helloworld_mod = {
PyModuleDef_HEAD_INIT,
"helloworld",... | Make the codes in the order. | Make the codes in the order.
| C | bsd-3-clause | starnight/python-c-extension,starnight/python-c-extension,starnight/python-c-extension |
6f36fc3e94f81897a5780cbe943deb6af002a3c5 | texor.c | texor.c | #include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <termios.h>
#include <unistd.h>
struct termios orig_termios;
void disableRawMode() {
tcsetattr(STDIN_FILENO, TCSAFLUSH, &orig_termios);
}
void enableRawMode() {
tcgetattr(STDIN_FILENO, &orig_termios);
atexit(disableRawMode);
struct termios r... | #include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <termios.h>
#include <unistd.h>
struct termios orig_termios;
void disableRawMode() {
tcsetattr(STDIN_FILENO, TCSAFLUSH, &orig_termios);
}
void enableRawMode() {
tcgetattr(STDIN_FILENO, &orig_termios);
atexit(disableRawMode);
struct termios r... | Add a timeout for read | Add a timeout for read
| C | bsd-2-clause | kyletolle/texor |
3d66f211250ccae47fdbc6259b22605cd14464c7 | include/Genes/Mutation_Rate_Gene.h | include/Genes/Mutation_Rate_Gene.h | #ifndef MUTATION_RATE_GENE_H
#define MUTATION_RATE_GENE_H
#include "Gene.h"
#include <string>
#include <memory>
#include <map>
#include "Game/Color.h"
//! The gene controls how much of the genome mutates per Genome::mutate() event.
class Mutation_Rate_Gene : public Gene
{
public:
std::string name() cons... | #ifndef MUTATION_RATE_GENE_H
#define MUTATION_RATE_GENE_H
#include "Gene.h"
#include <string>
#include <memory>
#include <map>
#include "Game/Color.h"
//! The gene controls how much of the genome mutates per Genome::mutate() event.
class Mutation_Rate_Gene : public Gene
{
public:
std::string name() cons... | Reduce initial number of mutations | Reduce initial number of mutations
| C | mit | MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess |
f825cd3d1f4dc05d7124ad00177c37d0f6b9a4d0 | yamiHikariGame/Classes/Constants.h | yamiHikariGame/Classes/Constants.h | //
// Constants.h
// yamiHikariGame
//
// Created by slightair on 2013/07/28.
//
//
#ifndef yamiHikariGame_Constants_h
#define yamiHikariGame_Constants_h
#define SpriteSheetImageFileName "spriteSheet.pvr.ccz"
#define DefaultFontName "mosamosa"
#define DefaultFontSize 24
#define StaminaMax 1000
#define SEItemGet ... | //
// Constants.h
// yamiHikariGame
//
// Created by slightair on 2013/07/28.
//
//
#ifndef yamiHikariGame_Constants_h
#define yamiHikariGame_Constants_h
#define SpriteSheetImageFileName "spriteSheet.pvr.ccz"
#define DefaultFontName "mosamosa.ttf"
#define DefaultFontSize 24
#define StaminaMax 1000
#define SEItem... | Fix to Use specified Font mosamosa. | Fix to Use specified Font mosamosa.
| C | mit | slightair/yamiHikariGame,slightair/yamiHikariGame,slightair/yamiHikariGame,slightair/yamiHikariGame,slightair/yamiHikariGame |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.