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 |
|---|---|---|---|---|---|---|---|---|---|
e1749156066a17bc43f28be7ccaefba33635f8ba | test/CodeGen/relax.c | test/CodeGen/relax.c | // RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -emit-obj --mrelax-relocations %s -mrelocation-model pic -o %t
// RUN: llvm-readobj -r %t | FileCheck %s
// CHECK: R_X86_64_REX_GOTPCRELX foo
extern int foo;
int *f(void) {
return &foo;
}
| // REQUIRES: x86-registered-target
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -emit-obj --mrelax-relocations %s -mrelocation-model pic -o %t
// RUN: llvm-readobj -r %t | FileCheck %s
// CHECK: R_X86_64_REX_GOTPCRELX foo
extern int foo;
int *f(void) {
return &foo;
}
| Mark test as requiring x86-registered-target. | Mark test as requiring x86-registered-target.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@271163 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl... |
f9804666229069cf31d0a255fce07f24097a03b1 | pkg/gridalt/gridalt_mapping.h | pkg/gridalt/gridalt_mapping.h | c Alternate grid Mapping Common
c ------------------------------
common /gridalt_mapping/ nlperdyn,dpphys0,dpphys
integer nlperdyn(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,Nsy)
_RL dpphys0(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nrphys,nSx,nSy)
_RL dpphys(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nrphys,nSx,nSy)
| c Alternate grid Mapping Common
c ------------------------------
common /gridalt_mapping/ nlperdyn,dpphys0,dpphys,
. dxfalt,dyfalt,drfalt
integer nlperdyn(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,Nsy)
_RL dpphys0(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nrphys,nSx,nSy)
... | Add terms for more general mapping (other than just vertical for fizhi) | Add terms for more general mapping (other than just vertical for fizhi)
| C | mit | altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h |
f22dcf3b7c3f0c49724cb3bb097cef56543b9523 | 2015-2016/G/21/04/square.c | 2015-2016/G/21/04/square.c | #include <stdio.h>
int isMagic(int squere[3][3])
{
int currSum = 0;
int sum = squere[0][0]+squere[0][1]+squere[0][2];
int i = 0;
for(i=1;i<3;i++)
{
int j;
for(j=0;j<3;j++)
{
currSum+=squere[i][j];
}
if(currSum != sum)
{
return 0... | #include <stdio.h>
int isMagic(int n,int squere[n][n])
{
int currSum = 0;
int sum = 0;
int i = 0;
for(i=0;i<n;i++)
{
int j;
for(j=0;j<n;j++)
{
currSum+=squere[i][j];
}
if(i==0)
{
sum = currSum;
}
if(currSum != sum... | Make squere.c to work with nXn | Make squere.c to work with nXn
| C | mit | AlexAndreev/po-homework,Georgigt23/po-homework,kriss960/po-homework,VVurbanov/po-homework,ivanmilevtues/po-homework,karakonjel/po-homework,vincho7012/po-homework,Verbo1806/po-homework |
83d192b1f1a6a92dea158f0ff8cbacff94926b17 | include/spdlog/sinks/sink.h | include/spdlog/sinks/sink.h | //
// Copyright(c) 2015 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
#include <spdlog/details/log_msg.h>
namespace spdlog
{
namespace sinks
{
class sink
{
public:
sink(): _level( level::trace ) {}
virtual ~sink() {}
virtual void log(const detail... | //
// Copyright(c) 2015 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
#include <spdlog/details/log_msg.h>
namespace spdlog
{
namespace sinks
{
class sink
{
public:
sink() { _level = (int)level::trace; }
virtual ~sink() {}
virtual void log(const d... | Fix compilation error C2664 on VS2013 | Fix compilation error C2664 on VS2013
No converting constructor
| C | mit | icylord/spdlog,hunter-packages/spdlog,hunter-packages/spdlog,COMBINE-lab/spdlog,mihadyuk/spdlog,mihadyuk/spdlog,icylord/spdlog,godbyk/spdlog,godbyk/spdlog,mihadyuk/spdlog,icylord/spdlog,COMBINE-lab/spdlog,godbyk/spdlog,hunter-packages/spdlog,COMBINE-lab/spdlog |
f0f64f7df90f281af279ec66c1432b2538ddcb77 | test2/parsing/sizeof_expr.c | test2/parsing/sizeof_expr.c | // RUN: %ocheck 0 %s
typedef struct
{
int x;
} A;
main()
{
int sz = sizeof((A *)0)->x;
if(sz != sizeof(int))
abort();
return 0;
}
| // RUN: %ocheck 0 %s
typedef struct
{
int x;
} A;
main()
{
int sz = sizeof((A *)0)->x;
if(sz != sizeof(int))
abort();
int ar[10];
sz = sizeof(ar)[0];
if(sz != sizeof(int))
abort();
return 0;
}
| Add array size check to sizeof() test | Add array size check to sizeof() test
| C | mit | 8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler |
ad8d0dbeae32fb2d5eae1296e9bee2baadb3db66 | pebblebike/src/screen_map.h | pebblebike/src/screen_map.h | #ifndef SCREEN_MAP_H
#define SCREEN_MAP_H
// in meters/pixels
#define MAP_SCALE_MIN 250
#define MAP_SCALE_MAX 64000
#define MAP_SCALE_INI (MAP_SCALE_MIN*8)
#define MAP_VSIZE_X 4000
#define MAP_VSIZE_Y 4000
#define XINI MAP_VSIZE_X/2
#define YINI MAP_VSIZE_Y/2
// external variables (debug purpose)
extern int map_sca... | #ifndef SCREEN_MAP_H
#define SCREEN_MAP_H
// at level 7 (MAP_SCALE=16000), the screen width is approximatively 14.5km => 100m/px)
// level 1: MAP_SCALE=250 => 1.5m/px - screen 225m
// level 8: MAP_SCALE_MAX 32000 => 200m/px - screen: 29km
#define MAP_SCALE_MIN 250
#define MAP_SCALE_MAX 32000
//2000=MAP_SCALE_MIN * 8 =... | Add a zoom level + comments | Add a zoom level + comments
| C | mit | jay3/Ventoo-PebbleWatchFace,pebble-bike/PebbleBike-PebbleWatchFace,team-mount-ventoux/PebbleVentoo-WatchFace,team-mount-ventoux/PebbleVentoo-WatchFace,ventoo-bike/Ventoo-PebbleWatchFace,ventoo-bike/Ventoo-PebbleWatchFace,team-mount-ventoux/PebbleVentoo-WatchFace,jay3/PebbleBike-PebbleWatchFace,team-mount-ventoux/Pebble... |
3002c25d88f54003ea38cdb0d6091b4a8b593d3e | meta/inc/TVirtualIsAProxy.h | meta/inc/TVirtualIsAProxy.h | // @(#)root/meta:$Name: $:$Id: TVirtualIsAProxy.h,v 1.1 2005/05/27 16:42:58 pcanal Exp $
// Author: Markus Frank 20/05/2005
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... | // @(#)root/meta:$Name: $:$Id: TVirtualIsAProxy.h,v 1.2 2005/06/08 18:51:36 rdm Exp $
// Author: Markus Frank 20/05/2005
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... | Add the necessary includes and forward declarations such that the class can be compiled independently. | Add the necessary includes and forward declarations such that the class can be compiled independently.
git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@19581 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | abhinavmoudgil95/root,veprbl/root,alexschlueter/cern-root,simonpf/root,sawenzel/root,bbockelm/root,sbinet/cxx-root,abhinavmoudgil95/root,agarciamontoro/root,georgtroska/root,zzxuanyuan/root-compressor-dummy,veprbl/root,gbitzes/root,simonpf/root,strykejern/TTreeReader,agarciamontoro/root,mkret2/root,smarinac/root,bbocke... |
19c229319206969f13d427bf00bda84203426154 | views/controls/menu/native_menu_host_delegate.h | views/controls/menu/native_menu_host_delegate.h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_
#define VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_
namespace views {
namespace interna... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_
#define VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_
namespace views {
namespace interna... | Add newline to end of file. | Add newline to end of file.
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@80087 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | adobe/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,adobe/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,adobe/chromium... |
f149841cd24851add6ea9e8680a0f65f00bf1652 | src/rng/auto_rng/auto_rng.h | src/rng/auto_rng/auto_rng.h | /*
* Auto Seeded RNG
* (C) 2008 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#ifndef BOTAN_AUTO_SEEDING_RNG_H__
#define BOTAN_AUTO_SEEDING_RNG_H__
#include <botan/rng.h>
#include <string>
namespace Botan {
/**
* RNG that attempts to seed itself
*/
class BOTAN_DLL AutoSeeded_RNG : public Random... | /*
* Auto Seeded RNG
* (C) 2008 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#ifndef BOTAN_AUTO_SEEDING_RNG_H__
#define BOTAN_AUTO_SEEDING_RNG_H__
#include <botan/rng.h>
#include <string>
namespace Botan {
/**
* RNG that attempts to seed itself
*/
class BOTAN_DLL AutoSeeded_RNG : public Random... | Make AutoSeeded_RNG::reseed's parameter default to 256 for compatability with the version in earlier releases. Rickard Bondesson pointed out that this was a problem on the mailing list. | Make AutoSeeded_RNG::reseed's parameter default to 256 for compatability
with the version in earlier releases. Rickard Bondesson pointed out that
this was a problem on the mailing list.
| C | bsd-2-clause | webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,webmaster128/botan,randombit/botan,randombit/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster1... |
2f0754c068fb97036f2a78e56768e27e5668e3c7 | test/Driver/aarch64-cpus.c | test/Driver/aarch64-cpus.c | // Check target CPUs are correctly passed.
// RUN: %clang -target aarch64 -### -c %s 2>&1 | FileCheck -check-prefix=GENERIC %s
// GENERIC: "-cc1"{{.*}} "-triple" "aarch64" {{.*}} "-target-cpu" "generic"
// RUN: %clang -target aarch64 -mcpu=cortex-a53 -### -c %s 2>&1 | FileCheck -check-prefix=CA53 %s
// CA53: "-cc1"{{... | // Check target CPUs are correctly passed.
// RUN: %clang -target aarch64 -### -c %s 2>&1 | FileCheck -check-prefix=GENERIC %s
// GENERIC: "-cc1"{{.*}} "-triple" "aarch64{{.*}}" "-target-cpu" "generic"
// RUN: %clang -target aarch64 -mcpu=cortex-a53 -### -c %s 2>&1 | FileCheck -check-prefix=CA53 %s
// CA53: "-cc1"{{.... | Fix wildcard matching on CHECK lines. Now recognises arch64--. | AArch64: Fix wildcard matching on CHECK lines. Now recognises arch64--.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@193858 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-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,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... |
5852b273a6e8b1e066026ebf5aef9f00e0f70f5a | hab/proxr/cb-set-resource.c | hab/proxr/cb-set-resource.c | #include <string.h>
#include "proxrcmds.h"
#include "sim-hab.h"
void cb_set_resource(bionet_resource_t *resource, bionet_value_t *value)
{
double data;
double content;
int id;
bionet_node_t *node;
bionet_value_get_float(value, &data);
if(data < 0 || data > 255)
return;
node = bionet_reso... | #include <string.h>
#include "proxrcmds.h"
#include "sim-hab.h"
void cb_set_resource(bionet_resource_t *resource, bionet_value_t *value)
{
double data;
double content;
int id;
bionet_node_t *node;
bionet_value_get_float(value, &data);
if(data < 0 || data > 255)
return;
node = bionet_reso... | Change to double. Missed from previous commit. | Change to double. Missed from previous commit.
| C | lgpl-2.1 | ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead |
0bd3a274a2d2f2ed68fc3835f64cbe6a5f52bea9 | iosstart.h | iosstart.h |
#include "glk.h"
extern void iosglk_set_can_restart_flag(int);
extern int iosglk_can_restart_cleanly(void);
extern void iosglk_shut_down_process(void) GLK_ATTRIBUTE_NORETURN;
|
#include "glk.h"
#include "iosglk_startup.h"
extern void iosglk_set_can_restart_flag(int);
extern int iosglk_can_restart_cleanly(void);
extern void iosglk_shut_down_process(void) GLK_ATTRIBUTE_NORETURN;
| Include the generic startup header, since that declares iosglk_startup_code(). | Include the generic startup header, since that declares
iosglk_startup_code().
| C | mit | erkyrath/glulxe,erkyrath/glulxe |
8ee49a928070436198b8663c2e5306fc7e0a64a2 | software/src/master/src/kernel/Vca_VTypePattern.h | software/src/master/src/kernel/Vca_VTypePattern.h | #ifndef Vca_VTypePattern_Interface
#define Vca_VTypePattern_Interface
/*********************
***** Library *****
*********************/
#include "Vca.h"
/**************************
***** Declarations *****
**************************/
class VString;
/*************************
***** Definitions *****
***... | #ifndef Vca_VTypePattern_Interface
#define Vca_VTypePattern_Interface
/*********************
***** Library *****
*********************/
#include "Vca.h"
/**************************
***** Declarations *****
**************************/
class VString;
/*************************
***** Definitions *****
***... | Fix unused incorrect 'VTypePattern<T*>::val_t' definition | Fix unused incorrect 'VTypePattern<T*>::val_t' definition
| C | bsd-3-clause | vision-dbms/vision,MichaelJCaruso/vision,vision-dbms/vision,c-kuhlman/vision,MichaelJCaruso/vision,c-kuhlman/vision,vision-dbms/vision,MichaelJCaruso/vision,VisionAerie/vision,MichaelJCaruso/vision,c-kuhlman/vision,VisionAerie/vision,c-kuhlman/vision,VisionAerie/vision,vision-dbms/vision,vision-dbms/vision,VisionAerie/... |
b59eeaf2d1365e2c42ea1bdb9521a5e0302469b8 | src/cli/main.c | src/cli/main.c | #include <stdio.h>
#include <string.h>
#include "os.h"
#include "vm.h"
#include "wren.h"
int main(int argc, const char* argv[])
{
if (argc == 2 && strcmp(argv[1], "--help") == 0)
{
printf("Usage: wren [file] [arguments...]\n");
printf(" --help Show command line usage\n");
return 0;
}
osSetArg... | #include <stdio.h>
#include <string.h>
#include "os.h"
#include "vm.h"
#include "wren.h"
int main(int argc, const char* argv[])
{
if (argc == 2 && strcmp(argv[1], "--help") == 0)
{
printf("Usage: wren [file] [arguments...]\n");
printf(" --help Show command line usage\n");
return 0;
}
if (argc... | Support "--version" in the CLI to print the version. | Support "--version" in the CLI to print the version.
| C | mit | Nelarius/wren,minirop/wren,minirop/wren,munificent/wren,foresterre/wren,minirop/wren,foresterre/wren,munificent/wren,minirop/wren,foresterre/wren,munificent/wren,Nelarius/wren,munificent/wren,minirop/wren,munificent/wren,foresterre/wren,Nelarius/wren,munificent/wren,Nelarius/wren,Nelarius/wren,foresterre/wren |
5abfe2c2363d3c9f2597664edf3810a80017759f | test/Sema/complex-promotion.c | test/Sema/complex-promotion.c | // RUN: clang %s -verify -fsyntax-only
float a;
int b[__builtin_classify_type(a + 1i) == 9 ? 1 : -1];
int c[__builtin_classify_type(1i + a) == 9 ? 1 : -1];
double d;
__typeof__ (d + 1i) e;
int f[sizeof(e) == 2 * sizeof(double) ? 1 : -1];
| // RUN: clang %s -verify -fsyntax-only
float a;
int b[__builtin_classify_type(a + 1i) == 9 ? 1 : -1];
int c[__builtin_classify_type(1i + a) == 9 ? 1 : -1];
double d;
__typeof__ (d + 1i) e;
int f[sizeof(e) == 2 * sizeof(double) ? 1 : -1];
int g;
int h[__builtin_classify_type(g + 1.0i) == 9 ? 1 : -1];
int i[__builti... | Add another complex promotion test. | Add another complex promotion test.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@60863 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl... |
cfd192b0140f004404a208cde967ac8eef16cdff | tests-clar/threads/basic.c | tests-clar/threads/basic.c | #include "clar_libgit2.h"
#include "cache.h"
static git_repository *g_repo;
void test_threads_basic__initialize(void)
{
g_repo = cl_git_sandbox_init("testrepo");
}
void test_threads_basic__cleanup(void)
{
cl_git_sandbox_cleanup();
}
void test_threads_basic__cache(void)
{
// run several threads polling the cac... | #include "clar_libgit2.h"
#include "cache.h"
static git_repository *g_repo;
void test_threads_basic__initialize(void)
{
g_repo = cl_git_sandbox_init("testrepo");
}
void test_threads_basic__cleanup(void)
{
cl_git_sandbox_cleanup();
}
void test_threads_basic__cache(void)
{
// run several threads polling the cac... | Add test for multiple thread init/shutdown | Add test for multiple thread init/shutdown
| C | lgpl-2.1 | mhp/libgit2,maxiaoqian/libgit2,t0xicCode/libgit2,rcorre/libgit2,KTXSoftware/libgit2,Aorjoa/libgit2_maked_lib,chiayolin/libgit2,claudelee/libgit2,claudelee/libgit2,sygool/libgit2,nokiddin/libgit2,yongthecoder/libgit2,oaastest/libgit2,Tousiph/Demo1,spraints/libgit2,Aorjoa/libgit2_maked_lib,leoyanggit/libgit2,yosefhackmon... |
fa890d586cc127ce72597ba0a909bfecf784e10c | include/linux/isa.h | include/linux/isa.h | /*
* ISA bus.
*/
#ifndef __LINUX_ISA_H
#define __LINUX_ISA_H
#include <linux/device.h>
#include <linux/kernel.h>
struct isa_driver {
int (*match)(struct device *, unsigned int);
int (*probe)(struct device *, unsigned int);
int (*remove)(struct device *, unsigned int);
void (*shutdown)(struct device *, unsigned... | /*
* ISA bus.
*/
#ifndef __LINUX_ISA_H
#define __LINUX_ISA_H
#include <linux/device.h>
#include <linux/kernel.h>
struct isa_driver {
int (*match)(struct device *, unsigned int);
int (*probe)(struct device *, unsigned int);
int (*remove)(struct device *, unsigned int);
void (*shutdown)(struct device *, unsigned... | Fix non-ISA link error in drivers/scsi/advansys.c | Fix non-ISA link error in drivers/scsi/advansys.c
When CONFIG_ISA is disabled, the isa_driver support will not be compiled
in. Define stubs so that we don't get link-time errors.
Signed-off-by: Matthew Wilcox <f80d0ca101e967b50b730ddf8e8aca0de85e8df6@wil.cx>
Signed-off-by: Linus Torvalds <69652caca27c8b940640ad396ab... | C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_k... |
af8d245e930bc98823814813db06b9bcbe8a737d | sys/sparc64/include/clock.h | sys/sparc64/include/clock.h | /*-
* Copyright (c) 2001 Jake Burkholder.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... | /*-
* Copyright (c) 2001 Jake Burkholder.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... | Add a missing prototype to fix a warning. | Add a missing prototype to fix a warning.
| 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 |
7fbe3e2d97dc4db70a87e57d387f60ac6e659609 | interpreter/cling/include/cling/Interpreter/CIFactory.h | interpreter/cling/include/cling/Interpreter/CIFactory.h | //--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// author: Axel Naumann <axel@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public L... | //--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// author: Axel Naumann <axel@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public L... | Remove unneeded static member decls; mark c'tor, d'tor as deleted. | Remove unneeded static member decls; mark c'tor, d'tor as deleted.
| C | lgpl-2.1 | arch1tect0r/root,zzxuanyuan/root-compressor-dummy,abhinavmoudgil95/root,veprbl/root,arch1tect0r/root,zzxuanyuan/root,gbitzes/root,bbockelm/root,karies/root,sbinet/cxx-root,simonpf/root,beniz/root,sawenzel/root,georgtroska/root,karies/root,agarciamontoro/root,zzxuanyuan/root-compressor-dummy,bbockelm/root,omazapa/root-o... |
607893ef3f8ff351c68e8a057704d40a34c56872 | Plugins/Displays/Bezel/GrowlBezelWindowView.h | Plugins/Displays/Bezel/GrowlBezelWindowView.h | //
// GrowlBezelWindowView.h
// Display Plugins
//
// Created by Jorge Salvador Caffarena on 09/09/04.
// Copyright 2004 Jorge Salvador Caffarena. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "GrowlNotificationView.h"
@interface GrowlBezelWindowView : GrowlNotificationView {
NSImage *icon;
NSString... | //
// GrowlBezelWindowView.h
// Display Plugins
//
// Created by Jorge Salvador Caffarena on 09/09/04.
// Copyright 2004 Jorge Salvador Caffarena. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "GrowlNotificationView.h"
@interface GrowlBezelWindowView : GrowlNotificationView {
NSImage *icon;
NSString... | Remove duplicate members so this compiles again | Remove duplicate members so this compiles again
--HG--
extra : convert_revision : svn%3A99687598-2e92-11dd-8019-fe7b9d601d1b/trunk%403400
| C | bsd-3-clause | PersonifyInc/growl,incbee/Growl,PersonifyInc/growl,incbee/Growl,incbee/Growl,incbee/Growl,PersonifyInc/growl,PersonifyInc/growl,PersonifyInc/growl,incbee/Growl |
e595fd5917bd28a939cdf17a347661c00454c3a1 | src/bitwise.h | src/bitwise.h | #pragma once
#include <cstdint>
inline uint16_t compose_bytes(const uint8_t low, const uint8_t high) {
return (high << 8) + low;
}
inline bool check_bit(const uint8_t value, int bit) {
return (value & (1 << bit)) != 0;
}
inline uint8_t set_bit(const uint8_t value, int bit) {
return static_cast<uint8_t>(... | #pragma once
#include "util/log.h"
#include <cstdint>
inline uint16_t compose_bytes(const uint8_t low, const uint8_t high) {
return (high << 8) + low;
}
inline bool check_bit(const uint8_t value, const int bit) {
return (value & (1 << bit)) != 0;
}
inline uint8_t set_bit(const uint8_t value, const int bit)... | Add more functions for bit manipulation | Add more functions for bit manipulation
| C | bsd-3-clause | jgilchrist/emulator,jgilchrist/emulator,jgilchrist/emulator |
dd84148bdaa2bbecf0be3385a6423e21edbdb690 | tess-two/jni/com_googlecode_leptonica_android/stdio/extrastdio.h | tess-two/jni/com_googlecode_leptonica_android/stdio/extrastdio.h | #ifndef LEPTONICA__STDIO_H
#define LEPTONICA__STDIO_H
#ifndef BUILD_HOST
#include <stdio.h>
#include <stdint.h>
typedef struct cookie_io_functions_t {
ssize_t (*read)(void *cookie, char *buf, size_t n);
ssize_t (*write)(void *cookie, const char *buf, size_t n);
int (*seek)(void *cookie, off_t *pos, int when... | #ifndef LEPTONICA__STDIO_H
#define LEPTONICA__STDIO_H
#ifndef BUILD_HOST
#include <stdio.h>
#include <stdint.h>
typedef struct cookie_io_functions_t {
ssize_t (*read)(void *cookie, char *buf, size_t n);
ssize_t (*write)(void *cookie, const char *buf, size_t n);
int (*seek)(void *cookie, off_t *pos, int when... | Fix clang warning about implicit function declaration | Fix clang warning about implicit function declaration
| C | apache-2.0 | surensth/tess-two,surensth/tess-two,bhargavbhegde7/tess-two,didldum/tess-two,bhargavbhegde7/tess-two,renard314/tess-two,doo/tess-two,panzerfahrer/tess-two,rmtheis/tess-two,rxl194/tess-two,doo/tess-two,rxl194/tess-two,michyliao/tess-two,rmtheis/tess-two,Drakefrog/tess-two,bhargavbhegde7/tess-two,AlanFor301/tess-two,rmth... |
a211855c2ec107eec845c54338c334c7d6dddc1e | src/signals.c | src/signals.c | /**
* signal.c
*
* Copyright (C) 2017 Nickolas Burr <nickolasburr@gmail.com>
*/
#include "signals.h"
/**
* Run cleanup on SIGHUP or SIGINT.
*/
void on_signal (int signal) {
switch (signal) {
case SIGHUP:
printf("Caught SIGHUP, hanging up...\n");
break;
case SIGINT:
printf("Caught SIGINT, terminati... | /**
* signal.c
*
* Copyright (C) 2017 Nickolas Burr <nickolasburr@gmail.com>
*/
#include "signals.h"
/**
* Run cleanup on SIGHUP or SIGINT.
*/
void on_signal (int signal) {
switch (signal) {
case SIGHUP:
printf("Caught SIGHUP, hanging up...\n");
break;
case SIGINT:
printf("Caught SIGINT, terminati... | Remove unused printf from nap | Remove unused printf from nap
| C | mit | nickolasburr/git-stashd,nickolasburr/git-stashd,nickolasburr/git-stashd |
2ae1f8b8b64c2f1397649686507dabf72f4b8667 | common/alexcpt.h | common/alexcpt.h | #ifndef ALEXCPT_H
#define ALEXCPT_H
#include <exception>
#include <string>
#include "AL/alc.h"
#ifdef __GNUC__
#define ALEXCPT_FORMAT(x, y, z) __attribute__((format(x, (y), (z))))
#else
#define ALEXCPT_FORMAT(x, y, z)
#endif
namespace al {
class backend_exception final : public std::exception {
std::string m... | #ifndef ALEXCPT_H
#define ALEXCPT_H
#include <exception>
#include <string>
#include "AL/alc.h"
#ifdef __GNUC__
#define ALEXCPT_FORMAT(x, y, z) __attribute__((format(x, (y), (z))))
#else
#define ALEXCPT_FORMAT(x, y, z)
#endif
namespace al {
class backend_exception final : public std::exception {
std::string m... | Revert "Silence some unreachable code warnings on MSVC" | Revert "Silence some unreachable code warnings on MSVC"
This reverts commit 2ab4883439b1bc96578e86cc894504b9a1d1021b.
It apparently didn't work at silencing anything.
| C | lgpl-2.1 | aaronmjacobs/openal-soft,aaronmjacobs/openal-soft |
3ff88193bb6fc8cf84bb29499497f3fee73a124e | BoxSDK/BoxLog.h | BoxSDK/BoxLog.h | //
// BoxLog.h
// BoxSDK
//
// Created on 2/21/13.
// Copyright (c) 2013 Box. All rights reserved.
//
#ifndef BoxSDK_BoxLog_h
#define BoxSDK_BoxLog_h
#ifdef DEBUG
#define BOXLogFunction() NSLog(@"%s", __FUNCTION__)
#define BOXLog(...) NSLog(@"%s: %@", __FUNCTION__, [NSString stringWithFormat:__VA_ARGS__])
#el... | //
// BoxLog.h
// BoxSDK
//
// Created on 2/21/13.
// Copyright (c) 2013 Box. All rights reserved.
//
#ifndef BoxSDK_BoxLog_h
#define BoxSDK_BoxLog_h
#ifdef DEBUG
#define BOXLogFunction() NSLog(@"%s", __FUNCTION__)
#define BOXLog(...) NSLog(@"%s: %@", __FUNCTION__, [NSString stringWithFormat:__... | Align macro definitions using spaces instead of tabs | Align macro definitions using spaces instead of tabs
| C | apache-2.0 | CleanShavenApps/box-ios-sdk-v2,CleanShavenApps/box-ios-sdk-v2,mirego/box-ios-sdk-v2,flatworld/box-ios-sdk-v2,mirego/box-ios-sdk-v2,DocuSignDev/box-ios-sdk-v2,Taptera/deprecated-box-ios-sdk,doo/box-ios-sdk-v2,CleanShavenApps/box-ios-sdk-v2,DocuSignDev/box-ios-sdk-v2,doo/box-ios-sdk-v2,Taptera/deprecated-box-ios-sdk,doo/... |
d1a467438e03200735f80757a37c068b121d5610 | src/main.c | src/main.c | /*!
@file main.c
@brief A simple test program for the C library code.
*/
#include "stdio.h"
#include "verilog_parser.h"
int main(int argc, char ** argv)
{
if(argc != 2)
{
printf("ERROR. Please supply exactly one file path argument.\n");
return 1;
}
else
{
// Load the file.... | /*!
@file main.c
@brief A simple test program for the C library code.
*/
#include "stdio.h"
#include "verilog_parser.h"
int main(int argc, char ** argv)
{
if(argc < 2)
{
printf("ERROR. Please supply at least one file path argument.\n");
return 1;
}
else
{
int F = 0;
... | Allow test app to recieve as many file inputs as possible. On branch master Your branch is up-to-date with 'github/master'. | Allow test app to recieve as many file inputs as possible.
On branch master
Your branch is up-to-date with 'github/master'.
Changes to be committed:
modified: ../src/main.c
| C | mit | ben-marshall/verilog-parser,ben-marshall/verilog-parser,ben-marshall/verilog-parser |
1f1fbe3c6bcb79b2222e91c230e9442bc9c88f5b | src/prot.h | src/prot.h | #ifndef HEADER_H_
#define HEADER_H_
#include <stdint.h>
#include <stddef.h>
// * Header *
//
// | 1 byte |
// | 2 bytes ....... |
// | 4 bytes ......................... |
//
// |--------|--------|--------|--------|
// | Flags |Version |Padding |
// |--------|--------|--------|--------|
// | Frame size (incl... | #ifndef PROT_H_
#define PROT_H_
#include <stdint.h>
#include <stddef.h>
// * Header *
//
// | 1 byte |
// | 2 bytes ....... |
// | 4 bytes ......................... |
//
// |--------|--------|--------|--------|
// | Flags |Version |Padding |
// |--------|--------|--------|--------|
// | Frame size (incl hea... | Rename HEADER_H_ marco -> PROT_H_ | Rename HEADER_H_ marco -> PROT_H_
The header guard is not consistent with the filename.
| C | bsd-3-clause | rbruggem/mqlog,rbruggem/mqlog |
67649d563f3811b4aa5b09a63029c753f8c4d632 | include/Sprite.h | include/Sprite.h | #ifndef _SPRITE_H_
#define _SPRITE_H_
#include <memory>
namespace canvas {
class Texture;
};
#include <glm/glm.hpp>
class Sprite {
public:
Sprite();
virtual ~Sprite();
const std::shared_ptr<canvas::Texture> & getTexture() const { return texture; }
void setTexture(const std::shared_ptr<canvas::Texture>... | #ifndef _SPRITE_H_
#define _SPRITE_H_
#include <memory>
#include <Texture.h>
#include <glm/glm.hpp>
class Sprite {
public:
Sprite();
virtual ~Sprite();
const std::shared_ptr<Texture> & getTexture() const { return texture; }
void setTexture(const std::shared_ptr<Texture> & _texture) { texture = _texture; ... | Change reference from removed canvas::texture | Change reference from removed canvas::texture | C | mit | Sometrik/framework,Sometrik/framework,Sometrik/framework |
13059383a02834a8932b1f465755f44446ab6f95 | include/itkTextProgressBarCommand.h | include/itkTextProgressBarCommand.h | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... | Add missing export specification for TextProgressBarCommand | COMP: Add missing export specification for TextProgressBarCommand
| C | apache-2.0 | thewtex/ITKUltrasound,thewtex/ITKUltrasound,KitwareMedical/ITKUltrasound,thewtex/ITKUltrasound,KitwareMedical/ITKUltrasound,KitwareMedical/ITKUltrasound |
0c7983f5b6c3c2b33bdbc5cea4e1bf9a18a86ce2 | src/Watermark/View/WatermarkDataRepository.h | src/Watermark/View/WatermarkDataRepository.h | // Copyright eeGeo Ltd (2012-2015), All Rights Reserved
#pragma once
#include "IWatermarkDataRepository.h"
#include "Watermark.h"
#include <map>
#include <string>
namespace ExampleApp
{
namespace Watermark
{
namespace View
{
class WatermarkDataRepository : public IWatermarkDataRe... | // Copyright eeGeo Ltd (2012-2015), All Rights Reserved
#pragma once
#include "IWatermarkDataRepository.h"
#include "Watermark.h"
#include <map>
#include <string>
namespace ExampleApp
{
namespace Watermark
{
namespace View
{
class WatermarkDataRepository : public IWatermarkDataRe... | Fix MPLY-8362: check watermark building id case insensitively. | Fix MPLY-8362: check watermark building id case insensitively.
| C | bsd-2-clause | eegeo/eegeo-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/w... |
387a235ba330d8e5b3ccd64406dc7539405f0f86 | server/src/apache/analyzer/detail/session_length.h | server/src/apache/analyzer/detail/session_length.h | /*
* Copyright 2016 Adam Chyła, adam@chyla.org
* All rights reserved. Distributed under the terms of the MIT License.
*/
#ifndef SRC_APACHE_ANALYZER_DETAIL_SESSION_LENGTH_H
#define SRC_APACHE_ANALYZER_DETAIL_SESSION_LENGTH_H
namespace apache
{
namespace analyzer
{
namespace detail
{
constexpr int SESSION_LENGTH... | /*
* Copyright 2016 Adam Chyła, adam@chyla.org
* All rights reserved. Distributed under the terms of the MIT License.
*/
#ifndef SRC_APACHE_ANALYZER_DETAIL_SESSION_LENGTH_H
#define SRC_APACHE_ANALYZER_DETAIL_SESSION_LENGTH_H
namespace apache
{
namespace analyzer
{
namespace detail
{
constexpr int SESSION_LENGTH... | Change session length to 3 minutes | Change session length to 3 minutes
| C | mit | chyla/slas,chyla/slas,chyla/pat-lms,chyla/slas,chyla/slas,chyla/slas,chyla/pat-lms,chyla/pat-lms,chyla/pat-lms,chyla/pat-lms,chyla/pat-lms,chyla/pat-lms,chyla/slas,chyla/slas |
e22b43421274a5ba38025d2f458b9adaf8389d11 | src/methods.h | src/methods.h | char *get_id(void)
| #ifndef AINOD_METHODS_H
#define AINOD_METHODS_H
/** Invalid JSON was received by the server. **/
#define JSON_SCHEMA_ERROR_PARSE_ERROR -32700
/** The JSON sent is not a valid Request object. */
#define JSON_SCHEMA_ERROR_INVALID_REQUEST -32600
/** The method does not exist / is not available. **/
#define JSON_SCHEMA... | Add Json schema error parse errors. | Add Json schema error parse errors.
| C | lgpl-2.1 | zeth/ainod,zeth/ainod,zeth/ainod |
562733680af382869d661ea15981a894f006da76 | Engine/RXArchiveManager.h | Engine/RXArchiveManager.h | //
// RXArchiveManager.h
// rivenx
//
// Created by Jean-Francois Roy on 02/02/2008.
// Copyright 2005-2010 MacStorm. All rights reserved.
//
#import "Base/RXBase.h"
#import <MHKKit/MHKKit.h>
@interface RXArchiveManager : NSObject {
NSString* patches_directory;
MHKArchive* extras_archive;
}
+ (RXArchive... | //
// RXArchiveManager.h
// rivenx
//
// Created by Jean-Francois Roy on 02/02/2008.
// Copyright 2005-2010 MacStorm. All rights reserved.
//
#import "Base/RXBase.h"
#import <MHKKit/MHKKit.h>
@interface RXArchiveManager : NSObject {
NSString* patches_directory;
MHKArchive* extras_archive;
}
+ (RXArchive... | Add note about the order of archives returned by the archive manager. | Add note about the order of archives returned by the archive manager.
| C | bsd-3-clause | jfroy/rivenx,jfroy/rivenx,jfroy/rivenx,jfroy/rivenx |
7cd47486ac530cc991248d59d04260c0d297b05d | HTMLKit/CSSTypeSelector.h | HTMLKit/CSSTypeSelector.h | //
// CSSTypeSelector.h
// HTMLKit
//
// Created by Iska on 13/05/15.
// Copyright (c) 2015 BrainCookie. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "CSSSelector.h"
#import "CSSSimpleSelector.h"
@interface CSSTypeSelector : CSSSelector <CSSSimpleSelector>
@property (nonatomic, copy) NSStrin... | //
// CSSTypeSelector.h
// HTMLKit
//
// Created by Iska on 13/05/15.
// Copyright (c) 2015 BrainCookie. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "CSSSelector.h"
#import "CSSSimpleSelector.h"
@interface CSSTypeSelector : CSSSelector <CSSSimpleSelector>
@property (nonatomic, copy) NSStrin... | Add nullability specifiers to type selector | Add nullability specifiers to type selector
| C | mit | iabudiab/HTMLKit,iabudiab/HTMLKit,iabudiab/HTMLKit,iabudiab/HTMLKit,iabudiab/HTMLKit |
59be11a20543d3d19d00ac9f57e703e98475852a | Animation.h | Animation.h | #ifndef ANIMATION_H
#define ANIMATION_H
#include <vector>
#include "Blittable.h"
namespace hm
{
class Animation
{
public:
Animation();
~Animation();
void add(const Blittable& b);
void remove(const Blittable& b);
void removeAll();
virtual void animate() = 0;
protected:
std::vector<Blitta... | #ifndef ANIMATION_H
#define ANIMATION_H
#include <vector>
#include "Blittable.h"
#include "Logger.h"
namespace hm
{
class Animation
{
public:
Animation();
~Animation();
void add(Blittable& b);
void remove(Blittable& b);
void removeAll();
virtual void animate() = 0;
protected:
std::vecto... | Fix a couple of header issues. | Fix a couple of header issues.
| C | lgpl-2.1 | mdclyburn/hume |
dbfcaec50408d9b12ffb459011f9af1c7304ec84 | flash_writer.h | flash_writer.h | #ifndef FLASH_WRITER_H
#define FLASH_WRITER_H
#include <stdint.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
/** Unlocks the flash for programming. */
void flash_writer_unlock(void);
/** Locks the flash */
void flash_writer_lock(void);
/** Erases the flash page at given address. */
void flash_write... | #ifndef FLASH_WRITER_H
#define FLASH_WRITER_H
#include <stdint.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
/** Unlocks the flash for programming. */
void flash_writer_unlock(void);
/** Locks the flash */
void flash_writer_lock(void);
/** Erases the flash page at given address. */
void flash_write... | Convert data source adress type to void * | Convert data source adress type to void *
This should be the standard, as done for example in memcpy(3).
| C | bsd-2-clause | cvra/can-bootloader,cvra/can-bootloader,cvra/can-bootloader,cvra/can-bootloader |
4571ac8b500390e3b70370369386d9cec35ea536 | riegeli/base/errno_mapping.h | riegeli/base/errno_mapping.h | // Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | // Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | Fix include guard to match the current filename. | Fix include guard to match the current filename.
PiperOrigin-RevId: 256006893
| C | apache-2.0 | google/riegeli,google/riegeli,google/riegeli,google/riegeli |
fbfc30dffdc5f4a5e9d04f070dcbe8344f3a1c94 | tests/chardata.h | tests/chardata.h | /* chardata.h
*
*
*/
#ifndef XML_CHARDATA_H
#define XML_CHARDATA_H 1
#ifndef XML_VERSION
#include "expat.h" /* need XML_Char */
#endif
typedef struct {
int count; /* # of chars, < 0 if not set */
XML_Char data[1024];
} CharData;
void CharData_Init(CharData... | /* chardata.h
Interface to some helper routines used to accumulate and check text
and attribute content.
*/
#ifndef XML_CHARDATA_H
#define XML_CHARDATA_H 1
#ifndef XML_VERSION
#include "expat.h" /* need XML_Char */
#endif
typedef struct {
int count; /* # of c... | Add a small comment to tell what this is. | Add a small comment to tell what this is.
| C | mit | PKRoma/expat,PKRoma/expat,PKRoma/expat,PKRoma/expat |
4a1156e7ed3598903fd6643535259a1d92df2736 | sw/device/lib/dif/dif_edn.c | sw/device/lib/dif/dif_edn.c | // Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/dif/dif_edn.h"
#include "edn_regs.h" // Generated
| // Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/dif/dif_edn.h"
#include "edn_regs.h" // Generated
dif_result_t dif_edn_init(mmio_region_t base_addr, dif_edn_t *edn) {
if (edn == NULL) {
... | Add init DIF for EDN | [sw/dif/edn] Add init DIF for EDN
This enables EDN irqs to be tested with the automated irq test.
Signed-off-by: Srikrishna Iyer <2803d640feace36379942447842f26c7747b4dc3@google.com>
| C | apache-2.0 | lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan |
8dc392689d59ecdbca61cfae23c065279e731db8 | test/test_parser_optional.c | test/test_parser_optional.c | #include "test_parser_p.h"
void optional_some(void **state) {
grammar_t *grammar = grammar_init(
non_terminal("Option"),
rule_init(
"Option",
optional(
terminal("opt")
)
), 1
);
parse_t *result = parse("opt", grammar);
assert_non_null(result);
assert_int_equal(result->l... | #include "test_parser_p.h"
void optional_some(void **state) {
grammar_t *grammar = grammar_init(
non_terminal("Option"),
rule_init(
"Option",
optional(
terminal("opt")
)
), 1
);
parse_result_t *result = parse("opt", grammar);
assert_non_null(result);
assert_true(is_succ... | Use new API in optional tests | Use new API in optional tests
| C | mit | Baltoli/peggo,Baltoli/peggo |
b92ab7b2546d69c8ea887c21a148bad82370b47a | test/profile/Inputs/instrprof-merge-match-lib.c | test/profile/Inputs/instrprof-merge-match-lib.c | #include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
int __llvm_profile_runtime = 0;
uint64_t __llvm_profile_get_size_for_buffer(void);
int __llvm_profile_write_buffer(char *);
void __llvm_profile_reset_counters(void);
int __llvm_profile_check_compatibility(const char *, uint64_t);
int gg = 0;
void bar(char c) ... | #include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
int __llvm_profile_runtime = 0;
uint64_t __llvm_profile_get_size_for_buffer(void);
int __llvm_profile_write_buffer(char *);
void __llvm_profile_reset_counters(void);
int __llvm_profile_check_compatibility(const char *, uint64_t);
int gg = 0;
void bar(char c) ... | Fix a minor bug in test | Fix a minor bug in test
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@263028 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt |
ca419f6d8ae07ef1b83834f9d5d726fed74c2a44 | bgc/DIC_ATMOS.h | bgc/DIC_ATMOS.h | C $Header: /u/gcmpack/MITgcm/pkg/dic/DIC_ATMOS.h,v 1.4 2010/04/11 20:59:27 jmc Exp $
C $Name: $
COMMON /INTERACT_ATMOS_NEEDS/
& co2atmos,
& total_atmos_carbon, total_ocean_carbon,
& total_atmos_carbon_year,
& total_ocean_carbon_year,
... | C $Header: /u/gcmpack/MITgcm/pkg/dic/DIC_ATMOS.h,v 1.4 2010/04/11 20:59:27 jmc Exp $
C $Name: $
COMMON /INTERACT_ATMOS_NEEDS/
& co2atmos,
& total_atmos_carbon, total_ocean_carbon,
& total_atmos_carbon_year,
& total_ocean_carbon_year,
... | Add ability to specify CO2 emissions (dic_int1=4) | Add ability to specify CO2 emissions (dic_int1=4)
| C | mit | seamanticscience/mitgcm_mods,seamanticscience/mitgcm_mods |
45f929a417328c3dc5703ca6b7827eacc655c807 | tests/test_mix/source/computer_listener_mock.h | tests/test_mix/source/computer_listener_mock.h | #pragma once
#include <mix/computer_listener.h>
#include <gmock/gmock.h>
struct ComputerListenerMock :
public mix::IComputerListener
{
MOCK_METHOD1(on_memory_set, void (int));
MOCK_METHOD0(on_ra_set, void ());
MOCK_METHOD0(on_rx_set, void ());
MOCK_METHOD1(on_ri_set, void (std::size_t));
MOCK_METHOD... | #pragma once
#include <mix/computer_listener.h>
#include <gmock/gmock.h>
struct ComputerListenerMock :
public mix::IComputerListener
{
MOCK_METHOD1(on_memory_set, void (int));
MOCK_METHOD0(on_ra_set, void ());
MOCK_METHOD0(on_rx_set, void ());
MOCK_METHOD1(on_ri_set, void (std::size_t));
MOCK_METHOD... | Add missed on_comparison_state_set() function to ComputerListenerMock | Add missed on_comparison_state_set() function to ComputerListenerMock
| C | mit | grishavanika/mix,grishavanika/mix,grishavanika/mix |
78d215b76d0eddc622f5dd1a4c26f3637bc3ab07 | include/llvm/Bytecode/Writer.h | include/llvm/Bytecode/Writer.h | //===-- llvm/Bytecode/Writer.h - Writer for VM bytecode files ---*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===--------... | //===-- llvm/Bytecode/Writer.h - Writer for VM bytecode files ---*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===--------... | Make compression the default on writing. | Make compression the default on writing.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@17577 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,chub... |
cb832699e29447fe66594fb122a1bdddd3539c42 | src/augs/readwrite/lua_readwrite_declaration.h | src/augs/readwrite/lua_readwrite_declaration.h | #pragma once
#include "3rdparty/sol2/sol/forward.hpp"
namespace augs {
template <class Archive, class Serialized>
void write_lua(Archive&, const Serialized& from);
template <class Archive, class Serialized>
void read_lua(const Archive&, Serialized& into);
template <class Archive, class Serialized>
void write_l... | #pragma once
#include <sol/forward.hpp>
namespace augs {
template <class Archive, class Serialized>
void write_lua(Archive&, const Serialized& from);
template <class Archive, class Serialized>
void read_lua(const Archive&, Serialized& into);
template <class Archive, class Serialized>
void write_lua_no_overload... | Fix another broken sol include | Fix another broken sol include
| C | agpl-3.0 | TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Augmentations,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Augmentations |
1f38f2566e6a8b2c7399af25da44104cbc55cdbb | unlock/legacy/device-wrappers/pymotiv/pymotiv.h | unlock/legacy/device-wrappers/pymotiv/pymotiv.h | #ifndef PYPOC_H
#define PYPOC_H
#include <Windows.h>
#include "EmoStateDLL.h"
#include "edk.h"
#include "edkErrorCode.h"
class EPOC {
private:
EmoEngineEventHandle eEvent;
EmoStateHandle eState;
DataHandle hData;
int nChannels;
EE_DataChannel_t *channels;
unsigned int userId;
double *samples;
BOOL ready;
BOO... | #ifndef PYPOC_H
#define PYPOC_H
#include <Windows.h>
#include "EmoStateDLL.hpp"
#include "edk.hpp"
#include "edkErrorCode.hpp"
class EPOC {
private:
EmoEngineEventHandle eEvent;
EmoStateHandle eState;
DataHandle hData;
int nChannels;
EE_DataChannel_t *channels;
unsigned int userId;
double *samples;
BOOL ready... | Make legacy header reference old code. | Make legacy header reference old code.
| C | bsd-3-clause | NeuralProsthesisLab/unlock,NeuralProsthesisLab/unlock,NeuralProsthesisLab/unlock,NeuralProsthesisLab/unlock,NeuralProsthesisLab/unlock,NeuralProsthesisLab/unlock,NeuralProsthesisLab/unlock |
f74dc6b045f695c013a4bd49df7411691d5c86f7 | cvrp/customer.h | cvrp/customer.h | #ifndef VRPSOLVER_CUSTOMER_H
#define VRPSOLVER_CUSTOMER_H
namespace VrpSolver {
class Customer {
public:
Customer(unsigned int id, unsigned int demand)
: id_(id), demand_(demand) {}
unsigned int id() const {
return id_;
}
unsigned int demand() const {
... | #ifndef VRPSOLVER_CUSTOMER_H
#define VRPSOLVER_CUSTOMER_H
namespace VrpSolver {
class Customer {
public:
Customer(unsigned int id, std::size_t demand)
: id_(id), demand_(demand) {}
unsigned int id() const {
return id_;
}
std::size_t demand() const {
... | Change the type of Customer::demand to std::size_t | Change the type of Customer::demand to std::size_t
| C | mit | U-MA/cvrp,U-MA/cvrp |
ade98d9f3a27765d33b2464a3ab76ba36217834b | dependencies/stdafx/stdafx.h | dependencies/stdafx/stdafx.h | #include <Ogre.h>
#include <OgreMeshFileFormat.h>
#include <OgreOptimisedUtil.h>
#ifdef WIN32
#include <OgreD3D9RenderSystem.h>
#include <OgreD3D9HLSLProgram.h>
#endif
#include <OgreGLRenderSystem.h>
#include <OgreGLGpuProgram.h>
#include <OgreGLSLGpuProgram.h>
#include <OgreGLSLLinkProgramManager.h>
#include <OgreG... | #include <Ogre.h>
#include <OgreMeshFileFormat.h>
#include <OgreOptimisedUtil.h>
#include <OgrePredefinedControllers.h>
#ifdef WIN32
#include <OgreD3D9RenderSystem.h>
#include <OgreD3D9HLSLProgram.h>
#endif
#include <OgreGLRenderSystem.h>
#include <OgreGLGpuProgram.h>
#include <OgreGLSLGpuProgram.h>
#include <OgreGLS... | Add header for FrameController to pch | Add header for FrameController to pch
| C | mit | sparkprime/grit-engine,grit-engine/grit-engine,grit-engine/grit-engine,sparkprime/grit-engine,sparkprime/grit-engine,sparkprime/grit-engine,grit-engine/grit-engine,grit-engine/grit-engine |
3918e7b3451b9fdadfbf1f40e5df6e60dcfa3abf | cat.c | cat.c | #include <sys/types.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
/* a re-implementation of cat(1), to learn the basic Unix syscalls.
by tlehman at 1383415046
*/
void usage(const char *progname) {
printf("%s filename\n", progname);
exit(EXIT_FAILURE);
}
void print_file_c... | #include <sys/types.h>
#include <sys/select.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
/* a re-implementation of cat(1), to learn the basic Unix syscalls.
by tlehman at 1383415046
*/
void usage(const char *progname) {
printf("%s filename\n", progname);
exit(EXIT_FAILUR... | Read from STDIN when no filename is given | Read from STDIN when no filename is given
| C | unlicense | tlehman/unix_utils |
3c6ffceade64f6eda28642cfcd61019a03938572 | chrome/browser/spellchecker/word_trimmer.h | chrome/browser/spellchecker/word_trimmer.h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_SPELLCHECKER_WORD_TRIMMER_H_
#define CHROME_BROWSER_SPELLCHECKER_WORD_TRIMMER_H_
#include "base/i18n/base_i18n_export.h"
#incl... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_SPELLCHECKER_WORD_TRIMMER_H_
#define CHROME_BROWSER_SPELLCHECKER_WORD_TRIMMER_H_
#include "base/string16.h"
// Trims |text| t... | Remove unnecessary include in spellcheck word trimmer | Remove unnecessary include in spellcheck word trimmer
TBR=groby
BUG=170514
Review URL: https://chromiumcodereview.appspot.com/14273022
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@196650 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | M4sse/chromium.src,littlstar/chromium.src,krieger-od/nwjs_chromium.src,mohamed--abdel-maksoud/chromium.src,patrickm/chromium.src,chuan9/chromium-crosswalk,ChromiumWebApps/chromium,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,bright-sparks/chromium-spacewalk,dushu1203/chromium.src,Jonekee/chromium.src,P... |
eafcde2103a2bfe27304664f331b10265d8e7bca | drivers/scsi/qla4xxx/ql4_version.h | drivers/scsi/qla4xxx/ql4_version.h | /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2010 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.02.00-k19"
| /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2010 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.02.00-k20"
| Update driver version to 5.02.00-k20 | [SCSI] qla4xxx: Update driver version to 5.02.00-k20
Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com>
Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kana... |
b8af68049f97718e1ecd5e86aa1bf5c7cafa8be0 | Trie.c | Trie.c | //Trie data structure testing
//All code written my Nathaniel Thompson
#include <stdio.h>
#include <stdlib.h>
//trie structure
typedef struct _trie
{
char letter; //the letter that the node holds
_trie *next[26];//pointers to the rest of the letters
}trie;
//main function
int main(void)
{
}
| //Trie data structure testing
//All code written my Nathaniel Thompson
#include <stdio.h>
#include <stdlib.h>
//trie structure
typedef struct _trie{
char letter; //the letter that the node holds
struct _trie *next[26];//pointers to the rest of the letters
}trie;
//fucntion prototypes
void initialize(trie *);... | Structure was properly set up, TODO Create a small dictionary load dictionary into the trie | Structure was properly set up,
TODO
Create a small dictionary
load dictionary into the trie
| C | mit | Felttrip/TrieWords |
e3d436ba7ba128aaebb480aeb07f1a013e8e75f1 | tests/headers/dupe-enum-variant-in-namespace.h | tests/headers/dupe-enum-variant-in-namespace.h | // bindgen-flags: --rustified-enum ".*" --enable-cxx-namespaces -- -x c++
namespace foo {
enum class Bar : unsigned {
Foo = 0,
Foo1 = 0,
Foo2,
Foo3 = Foo2,
};
}
| // bindgen-flags: --rustified-enum ".*" --enable-cxx-namespaces -- -x c++ -std=c++11
namespace foo {
enum class Bar : unsigned {
Foo = 0,
Foo1 = 0,
Foo2,
Foo3 = Foo2,
};
}
| Fix a pre-existing failing test? | Fix a pre-existing failing test?
| C | bsd-3-clause | rust-lang/rust-bindgen,rust-lang/rust-bindgen,rust-lang/rust-bindgen,emilio/rust-bindgen,emilio/rust-bindgen,rust-lang/rust-bindgen,emilio/rust-bindgen,emilio/rust-bindgen,emilio/rust-bindgen |
93a0f6dbddc577afc67be7de7ac258907f405e7d | src/jukebox.c | src/jukebox.c | /*
* Copyright (C) 2016, Michiel Sikma <michiel@sikma.org>
* MIT License
*/
#include <stdio.h>
#include "game.h"
#include "jukebox.h"
/**
* Starts the jukebox.
*/
void start_jukebox() {
start_game();
}
| /*
* Copyright (C) 2016, Michiel Sikma <michiel@sikma.org>
* MIT License
*/
#include <stdio.h>
#include "src/game.h"
#include "src/jukebox.h"
/**
* Starts the jukebox.
*/
void start_jukebox() {
start_game();
}
| Use correct paths relative to root | Use correct paths relative to root
| C | mit | msikma/ceegee,msikma/ceegee |
697450ebcd4d1d87e34b61bf273505354dec2a91 | test/cases/vla/check_align.c | test/cases/vla/check_align.c | // RUN: %ucc -o %t %s vla/check_align_asm.s
// RUN: %t
extern void check_align() __asm("check_align");
a()
{
int i = 1;
short c[i];
c[0] = 0;
check_align(c, i);
}
b()
{
int i = 3;
char c[i];
c[0] = 0;
c[1] = 0;
c[2] = 0;
check_align(c, i);
}
main()
{
a();
b();
return 0;
}
| // RUN: %ucc -o %t %s "$(dirname %s)"/check_align_asm.s
// RUN: %t
extern void check_align() __asm("check_align");
a()
{
int i = 1;
short c[i];
c[0] = 0;
check_align(c, i);
}
b()
{
int i = 3;
char c[i];
c[0] = 0;
c[1] = 0;
c[2] = 0;
check_align(c, i);
}
main()
{
a();
b();
return 0;
}
| Fix VLA stack alignment test / path | Fix VLA stack alignment test / path
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler |
825e6b1aaf68fdc87768557bafc33d29279aa1b1 | tests/regression/36-octapron/13-traces-min-rpb2.c | tests/regression/36-octapron/13-traces-min-rpb2.c | // PARAM: --sets ana.activated[+] octApron
#include <pthread.h>
#include <assert.h>
int g = 1;
int h = 1;
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
int x; // rand
pthread_mutex_lock(&A);
g = x;
h = x;
assert(g == h);
pthread_mutex_unlock(&A);
pthread_mutex_lock(&A);
pthre... | // PARAM: --sets ana.activated[+] octApron
#include <pthread.h>
#include <assert.h>
int g = 1;
int h = 1;
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
int x; // rand
pthread_mutex_lock(&A);
g = x;
h = x;
assert(g == h);
pthread_mutex_unlock(&A);
pthread_mutex_lock(&A);
pthre... | Add extra assert to 36/13 | Add extra assert to 36/13
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
aaadede7cfb154186bcf8f74927ca34ee1123264 | source/glbinding/include/glbinding/Function.h | source/glbinding/include/glbinding/Function.h | #pragma once
#include <functional>
#include <glbinding/AbstractFunction.h>
namespace
{
template <typename ReturnType, typename... Arguments> struct FunctionHelper;
template <typename ReturnType, typename... Arguments>
struct CallbackType
{
using type = std::function<void(Arguments..., ReturnType)>;
};
templ... | #pragma once
#include <functional>
#include <glbinding/AbstractFunction.h>
#ifndef WINAPI
#ifdef _WIN32
#define WINAPI __stdcall
#else
#define WINAPI
#endif
#endif
namespace
{
template <typename ReturnType, typename... Arguments> struct FunctionHelper;
template <typename ReturnType, typename... Arguments>
struct... | Add calling convention on windows | Add calling convention on windows
| C | mit | hpi-r2d2/glbinding,hpi-r2d2/glbinding,cginternals/glbinding,j-o/glbinding,hpi-r2d2/glbinding,hpicgs/glbinding,hpi-r2d2/glbinding,mcleary/glbinding,hpicgs/glbinding,cginternals/glbinding,hpicgs/glbinding,mcleary/glbinding,j-o/glbinding,hpicgs/glbinding,mcleary/glbinding,j-o/glbinding,j-o/glbinding,mcleary/glbinding |
c9c16148b9aa1afa02ac07e46d7ae090ab938a00 | src/node.h | src/node.h | /*
* node.h - type definition for node in a table
*/
#ifndef _NODE_H_
#define _NODE_H_
#include "table.h"
#include "timestamp.h"
typedef struct node {
struct node *next; /* link to next node in the table */
struct node *prev; /* link to previous node in the table */
struct node *younger; /* link to ne... | /*
* Copyright (c) 2013, Court of the University of Glasgow
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* - Redistributions of source code must retain the above copyright notice,
* thi... | Add BSD 3-clause open source header | Add BSD 3-clause open source header
| C | bsd-3-clause | jsventek/Cache,jsventek/Cache,fergul/Cache,fergul/Cache,fergul/Cache,jsventek/Cache |
20c2122027dab79bda516c91fe924f23bc938794 | include/matrix_constructors_impl.h | include/matrix_constructors_impl.h | //-----------------------------------------------------------------------------
// Constructors
//-----------------------------------------------------------------------------
template<class T>
matrix<T>::matrix():data_(),rows_(0),cols_(0){}
template<class T>
matrix<T>::matrix( std::size_t rows, std::size_t cols ):
... | //-----------------------------------------------------------------------------
// Constructors
//-----------------------------------------------------------------------------
template<class T>
matrix<T>::matrix():
data_(),
rows_(0),
cols_(0) {}
template<class T>
matrix<T>::matrix( std::size_t rows, std::... | Add check for empty matrix in constructor. | Add check for empty matrix in constructor.
| C | mit | actinium/cppMatrix,actinium/cppMatrix |
4941fe015c2804a36b820818f4e8f68f867ed5b4 | proj/android/library/src/main/native/log.h | proj/android/library/src/main/native/log.h | //
// Created by Dawid Drozd aka Gelldur on 03.02.16.
//
#pragma once
#include <android/log.h>
#ifdef DEBUG
#define DLOG(...) __android_log_print(ANDROID_LOG_DEBUG,"JNI",__VA_ARGS__)
#define ILOG(...) __android_log_print(ANDROID_LOG_INFO,"JNI",__VA_ARGS__)
#define WLOG(...) __android_log_print(ANDROID_LOG_WAR... | //
// Created by Dawid Drozd aka Gelldur on 03.02.16.
//
#pragma once
#include <android/log.h>
#ifndef NDEBUG
#define DLOG(...) __android_log_print(ANDROID_LOG_DEBUG,"JNI",__VA_ARGS__)
#define ILOG(...) __android_log_print(ANDROID_LOG_INFO,"JNI",__VA_ARGS__)
#define WLOG(...) __android_log_print(ANDROID_LOG_W... | Fix compile for debug on Android | Fix compile for debug on Android
| C | apache-2.0 | gelldur/DexodeEngine,gelldur/DexodeEngine,gelldur/DexodeEngine |
20e3779e5e81ded7c04010a29639f354b6742163 | galpy/orbit_src/orbit_c_ext/integrateFullOrbit.h | galpy/orbit_src/orbit_c_ext/integrateFullOrbit.h | #ifndef __INTEGRATEFULLORBIT_H__
#define __INTEGRATEFULLORBIT_H__
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _WIN32
#include <Python.h>
#endif
#include <galpy_potentials.h>
void parse_leapFuncArgs_Full(int, struct potentialArg *,int **,double **);
#ifdef _WIN32
// On Windows, *need* to define this function to allow ... | #ifndef __INTEGRATEFULLORBIT_H__
#define __INTEGRATEFULLORBIT_H__
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _WIN32
#include <Python.h>
#endif
#include <galpy_potentials.h>
void parse_leapFuncArgs_Full(int, struct potentialArg *,int **,double **);
#ifdef _WIN32
// On Windows, *need* to define this function to allow ... | Add semicolon to function declarations [travis skip] | Add semicolon to function declarations [travis skip]
| C | bsd-3-clause | jobovy/galpy,jobovy/galpy,jobovy/galpy,jobovy/galpy |
9c0cb6985090006c2d70a1080a46239601dafe08 | core/base/inc/TThreadSlots.h | core/base/inc/TThreadSlots.h | // @(#)root/thread:$Id$
// Author: Philippe Canal 09/30/2011
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | // @(#)root/base:$Id$
// Author: Philippe Canal 09/30/2011
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | Fix module loc. Add missing final newline. | Fix module loc.
Add missing final newline.
git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@41534 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | bbockelm/root-historical,bbockelm/root-historical,bbockelm/root-historical,bbockelm/root-historical,bbockelm/root-historical,bbockelm/root-historical,bbockelm/root-historical |
40f43230feaacb82b5d27a97a20d2329afef0f18 | core/base/inc/TThreadSlots.h | core/base/inc/TThreadSlots.h | // @(#)root/thread:$Id$
// Author: Philippe Canal 09/30/2011
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | // @(#)root/base:$Id$
// Author: Philippe Canal 09/30/2011
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | Fix module loc. Add missing final newline. | Fix module loc.
Add missing final newline.
git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@41534 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT |
499b14d0969ccaeb69ddcf1e3b0415df1f72f923 | configreader.h | configreader.h | #ifndef CONFIGREADER_H
#define CONFIGREADER_H
/*forward declarations*/
extern FILE *configreaderin;
struct config_ssid {
char ssid_name[32];
char ssid_user[32];
char ssid_pass[32];
char ssid_bssid[25];
int ssid_8021x;
struct config_ssid *next;
};
struct config_interfaces {
char if_name[32... | #ifndef CONFIGREADER_H
#define CONFIGREADER_H
/*forward declarations*/
extern FILE *configreaderin;
struct config_ssid {
char ssid_name[32];
char ssid_user[32];
char ssid_pass[32];
char ssid_bssid[20];
char ssid_auth[10];
struct config_ssid *next;
};
struct config_interfaces {
char if_nam... | Change to config file struct | Change to config file struct
| C | bsd-3-clause | myauie/wlan-daemon |
ca19cb39e3c68728bf9e9be569bbde87870508e9 | libgnome/gnome-popt.h | libgnome/gnome-popt.h | #ifndef __GNOME_POPT_H__
#define __GNOME_POPT_H__ 1
#include <popt.h>
#include "gnome-defs.h"
BEGIN_GNOME_DECLS
void gnomelib_register_popt_table(const struct poptOption *options,
const char *description);
poptContext gnomelib_parse_args(int argc, char *argv[],
int popt_flags);
/* Some systems, like Red H... | #ifndef __GNOME_POPT_H__
#define __GNOME_POPT_H__ 1
#include <popt-gnome.h>
#include "gnome-defs.h"
BEGIN_GNOME_DECLS
void gnomelib_register_popt_table(const struct poptOption *options,
const char *description);
poptContext gnomelib_parse_args(int argc, char *argv[],
int popt_flags);
/* Some systems, like... | Update popt, and always use the gnome-libs version instead of any system | Update popt, and always use the gnome-libs version instead of any system
Update popt, and always use the gnome-libs version instead of any system
version.
| C | lgpl-2.1 | Distrotech/libgnome,Distrotech/libgnome,Distrotech/libgnome |
27710f2e7a2a160c3aa70cd87d491b54b49c3d7b | views/controls/menu/native_menu_host_delegate.h | views/controls/menu/native_menu_host_delegate.h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_
#define VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_
namespace views {
namespace interna... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_
#define VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_
namespace views {
namespace interna... | Add newline to end of file. | Add newline to end of file.
git-svn-id: http://src.chromium.org/svn/trunk/src@80087 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Former-commit-id: 25bda12511d371bc9c02bf2454cce53241ee2abe | C | bsd-3-clause | meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u... |
cb9ed6bb55a5020770ad31fd30a05b4a91b70a81 | nrf5/bluetooth_conf.h | nrf5/bluetooth_conf.h | #ifndef BLUETOOTH_CONF_H__
#define BLUETOOTH_CONF_H__
// SD specific configurations.
#if (BLUETOOTH_SD == 110)
#define MICROPY_PY_BLE (1)
#define MICROPY_PY_BLE_NUS (0)
#define BLUETOOTH_WEBBLUETOOTH_REPL (0)
#define MICROPY_PY_UBLUEPY (1)
#define MICROPY_PY_UBLUEPY_PER... | #ifndef BLUETOOTH_CONF_H__
#define BLUETOOTH_CONF_H__
// SD specific configurations.
#if (BLUETOOTH_SD == 110)
#define MICROPY_PY_BLE (1)
#define MICROPY_PY_BLE_NUS (0)
#define BLUETOOTH_WEBBLUETOOTH_REPL (0)
#define MICROPY_PY_UBLUEPY (1)
#define MICROPY_PY_UBLUEPY_PER... | Enable ubluepy central by default if running nrf52/s132 bluetooth stack. Maturity of the module is pretty OK now. | nrf5/drivers/bluetooth: Enable ubluepy central by default if running nrf52/s132 bluetooth stack. Maturity of the module is pretty OK now.
| C | mit | adafruit/circuitpython,adafruit/micropython,adafruit/micropython,tralamazza/micropython,adafruit/circuitpython,adafruit/circuitpython,tralamazza/micropython,adafruit/micropython,adafruit/circuitpython,tralamazza/micropython,adafruit/micropython,adafruit/circuitpython,adafruit/micropython,tralamazza/micropython,adafruit... |
93f91dfa732eead8fbc938256b6883a93b847021 | drivers/scsi/qla2xxx/qla_version.h | drivers/scsi/qla2xxx/qla_version.h | /*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
/*
* Driver version
*/
#define QLA2XXX_VERSION "8.04.00.13-k"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 4
#define QLA_DRIVER_PATCH_VER 0
#defi... | /*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
/*
* Driver version
*/
#define QLA2XXX_VERSION "8.05.00.03-k"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 5
#define QLA_DRIVER_PATCH_VER 0
#defi... | Update the driver version to 8.05.00.03-k. | [SCSI] qla2xxx: Update the driver version to 8.05.00.03-k.
Signed-off-by: Giridhar Malavali <799b6491fce2c7a80b5fedcf9a728560cc9eb954@qlogic.com>
Signed-off-by: Saurav Kashyap <88d6fd94e71a9ac276fc44f696256f466171a3c0@qlogic.com>
Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
| C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_k... |
8c1eb4493a5b21a5cc47b2fd33f2faf9b80c4413 | source/host/host_export.h | source/host/host_export.h | //
// Aspia Project
// Copyright (C) 2016-2022 Dmitry Chapyshev <dmitry@aspia.ru>
//
// 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 3 of the License, or
// (at your option) an... | //
// Aspia Project
// Copyright (C) 2016-2022 Dmitry Chapyshev <dmitry@aspia.ru>
//
// 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 3 of the License, or
// (at your option) an... | Fix host building in Linux (part 2/x). | Fix host building in Linux (part 2/x).
| C | mpl-2.0 | aspia-org/remote-desktop,aspia-org/remote-desktop |
99e747ceddb32b408921512979842251c28e54a5 | src/modules/l_keyboard.c | src/modules/l_keyboard.c | /**
* Copyright (c) 2017 rxi
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the MIT license. See LICENSE for details.
*/
#include "keyboard.h"
#include "luaobj.h"
int l_keyboard_setKeyRepeat(lua_State *L) {
keyboard_setKeyRepeat( lua_toboolean(L, 1) );
retu... | /**
* Copyright (c) 2017 rxi
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the MIT license. See LICENSE for details.
*/
#include "keyboard.h"
#include "luaobj.h"
int l_keyboard_setKeyRepeat(lua_State *L) {
keyboard_setKeyRepeat( lua_toboolean(L, 1) );
retu... | Fix keyboard.isDown check for multiple keys | Fix keyboard.isDown check for multiple keys
| C | mit | rxi/lovedos,rxi/lovedos,rxi/lovedos |
95bfaeec32c890c968f2dbd2fbf39e941629bbe7 | AppIconOverlay/OverlayContext.h | AppIconOverlay/OverlayContext.h | //
// Copyright (c) 2013 Carson McDonald
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publis... | //
// Copyright (c) 2013 Carson McDonald
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publis... | Add font name to context. | Add font name to context.
| C | mit | carsonmcdonald/AppIconOverlay |
678b412c90c4392bc6459b13541ed80e37b68b35 | src/util.h | src/util.h | #ifndef UTIL_H
#define UTIL_H
/*** Utility functions ***/
#define ALLOC(type) ((type*) xmalloc(sizeof(type)))
void *xmalloc(size_t);
#define STARTS_WITH(x, y) (strncmp((x), (y), sizeof(y) - 1) == 0)
#endif /* UTIL_H */
| #ifndef UTIL_H
#define UTIL_H
/*** Utility functions ***/
#define ALLOC(type) ((type*) xmalloc(sizeof(type)))
void *xmalloc(size_t);
#define STARTS_WITH(x, y) (strncmp((x), (y), strlen(y)) == 0)
#endif /* UTIL_H */
| Fix STARTS_WITH macro comparing 1 less character than needed | Fix STARTS_WITH macro comparing 1 less character than needed
| C | apache-2.0 | mopidy/libmockspotify,mopidy/libmockspotify,mopidy/libmockspotify |
1843a02b1359aa796a71c45da5f3f07615ae0f9a | iree/compiler/Dialect/IREE/Transforms/Passes.h | iree/compiler/Dialect/IREE/Transforms/Passes.h | // Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | // Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | Fix include path typo from merge conflicts | Fix include path typo from merge conflicts
PiperOrigin-RevId: 287685318
| C | apache-2.0 | google/iree,iree-org/iree,google/iree,iree-org/iree,iree-org/iree,google/iree,google/iree,iree-org/iree,google/iree,iree-org/iree,iree-org/iree,google/iree,google/iree,iree-org/iree |
012509f72ac6024611266e424554881a161189e1 | plugins/tracers/gstbitrate.h | plugins/tracers/gstbitrate.h | /* GstShark - A Front End for GstTracer
* Copyright (C) 2016-2017 RidgeRun Engineering <michael.gruner@ridgerun.com>
*
* This file is part of GstShark.
*
* 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... | /* GstShark - A Front End for GstTracer
* Copyright (C) 2016-2017 RidgeRun Engineering <michael.gruner@ridgerun.com>
*
* This file is part of GstShark.
*
* 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... | Fix definition for bitrate tracer type | Fix definition for bitrate tracer type
| C | lgpl-2.1 | RidgeRun/gst-shark,RidgeRun/gst-shark,RidgeRun/gst-shark |
1d4efbd13c45b5e10c3355cef364031d822f44e2 | numba/npyufunc/gufunc_scheduler.h | numba/npyufunc/gufunc_scheduler.h | #ifndef GUFUNC_SCHEDULER
#define GUFUNC_SCHEDULER
#include <stdint.h>
#if __SIZEOF_POINTER__ == 8
#define intp int64_t
#define uintp uint64_t
#else
#define intp int
#define uintp unsigned
#endif
#ifdef __cplusplus
extern "C"
{
#endif
void do_scheduling(intp num_dim, intp *dims, uintp num_threads, int... | #ifndef GUFUNC_SCHEDULER
#define GUFUNC_SCHEDULER
#include <stdint.h>
#ifndef __SIZEOF_POINTER__
/* MSVC doesn't define __SIZEOF_POINTER__ */
#if defined(_WIN64)
#define intp int64_t
#define uintp uint64_t
#elif defined(_WIN32)
#define intp int
#define uintp unsigned
... | Fix parfors on win64 due to incorrect size for intp type. | Fix parfors on win64 due to incorrect size for intp type.
| C | bsd-2-clause | IntelLabs/numba,gmarkall/numba,gmarkall/numba,cpcloud/numba,IntelLabs/numba,seibert/numba,numba/numba,stuartarchibald/numba,seibert/numba,cpcloud/numba,jriehl/numba,stonebig/numba,cpcloud/numba,sklam/numba,stuartarchibald/numba,cpcloud/numba,IntelLabs/numba,jriehl/numba,IntelLabs/numba,stuartarchibald/numba,cpcloud/num... |
fcd94f3e481afabca2de28339e3b23ceac0c75cf | bst.h | bst.h | #include <stdlib.h>
#ifndef __BST_H__
#define __BST_H__
struct BSTNode;
struct BST;
typedef struct BSTNode BSTNode;
typedef struct BST BST;
#endif | #include <stdlib.h>
#ifndef __BST_H__
#define __BST_H__
struct BSTNode;
struct BST;
typedef struct BSTNode BSTNode;
typedef struct BST BST;
BST* BST_Create(void);
#endif | Add BST Create function declaration | Add BST Create function declaration
| C | mit | MaxLikelihood/CADT |
bea728b0f49fcb7fef74d34bfe7d19db4f09075b | test/Analysis/taint-tester.c | test/Analysis/taint-tester.c | // RUN: %clang_cc1 -analyze -analyzer-checker=experimental.security.taint,debug.TaintTest -verify %s
int scanf(const char *restrict format, ...);
int getchar(void);
#define BUFSIZE 10
int Buffer[BUFSIZE];
void bufferScanfAssignment(int x) {
int n;
int *addr = &Buffer[0];
scanf("%d", &n);
addr += n;// expect... | // RUN: %clang_cc1 -analyze -analyzer-checker=experimental.security.taint,debug.TaintTest -verify %s
int scanf(const char *restrict format, ...);
int getchar(void);
#define BUFSIZE 10
int Buffer[BUFSIZE];
void bufferScanfAssignment(int x) {
int n;
int *addr = &Buffer[0];
scanf("%d", &n);
addr += n;// expect... | Add a missing taint tester warning. | [analyzer] Add a missing taint tester warning.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@145834 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | 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,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl... |
3a06db1675442564976b5d3df6986aa3330337ef | test/Driver/cl-include.c | test/Driver/cl-include.c | // Note: %s must be preceded by --, otherwise it may be interpreted as a
// command-line option, e.g. on Mac where %s is commonly under /Users.
// RUN: %clang_cl -### -- %s 2>&1 | FileCheck %s --check-prefix=BUILTIN
// BUILTIN: "-internal-isystem" "{{.*lib.*clang.*[0-9]\.[0-9].*include}}"
// RUN: %clang_cl -nobuiltin... | // Note: %s must be preceded by --, otherwise it may be interpreted as a
// command-line option, e.g. on Mac where %s is commonly under /Users.
// RUN: %clang_cl -### -- %s 2>&1 | FileCheck %s --check-prefix=BUILTIN
// BUILTIN: "-internal-isystem" "{{.*lib.*clang.*include}}"
// RUN: %clang_cl -nobuiltininc -### -- %s... | Make the clang-cl test less restrictive. | Make the clang-cl test less restrictive.
Make the test less restrictive to allow directory layout used in our test setup.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@304408 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
51dd9f30014d6b2345b0c27df1fd501c2446e93b | chrome/common/all_messages.h | chrome/common/all_messages.h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Multiply-included file, hence no include guard.
// Inclusion of all message files present in the system. Keep this file
// up-to-date when adding ... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Multiply-included file, hence no include guard.
// Inclusion of all message files present in the system. Keep this file
// up-to-date when adding ... | Fix build break from bad merge | Fix build break from bad merge
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@106741 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | ropik/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,gavinp/chromium,ropik/chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,... |
9b590204de5ba4507d19340ceca17e529915df42 | include/body.h | include/body.h | #ifndef CPR_BODY_H
#define CPR_BODY_H
#include <string>
#include "defines.h"
namespace cpr {
class Body {
public:
template <typename TextType>
Body(TextType&& p_text)
: text{CPR_FWD(p_text)} {}
std::string text;
};
} // namespace cpr
#endif
| #ifndef CPR_BODY_H
#define CPR_BODY_H
#include <string>
#include "defines.h"
namespace cpr {
class Body : public std::string {
public:
Body() = default;
Body(const Body& rhs) = default;
Body(Body&& rhs) = default;
Body& operator=(const Body& rhs) = default;
Body& operator=(Body&& rhs) = defaul... | Make Body an opaque typedef of std::string | Make Body an opaque typedef of std::string
| C | mit | msuvajac/cpr,SuperV1234/cpr,msuvajac/cpr,SuperV1234/cpr,msuvajac/cpr,whoshuu/cpr,whoshuu/cpr,whoshuu/cpr,SuperV1234/cpr |
49fd000db24f1e535ba13eb3e0b397cdb7b07007 | wls.h | wls.h |
int wls(double* X, int n, int p, double* y, double* w,
double* XTX, double *sqw, double* sqwX, double* sqwy, double* coef);
|
int wls(double* X, int n, int p, double* y, double* w,
double* XTX, double *sqw, double* sqwX, double* sqwy, double* coef);
int calcFitted(double* X, int n, int p,
double* y,
double* coef,
double* fitted);
int calcResid(double* X, int n, int p,
double* y,
double* coef,
double* resid);... | Add calcFitted and calcResid definitions. | Add calcFitted and calcResid definitions.
| C | mit | awblocker/go-lm,awblocker/go-lm |
aba62b0799f87628580c92943152432e6118cedd | tests/regression/37-congruence/07-refinements-o.c | tests/regression/37-congruence/07-refinements-o.c | // PARAM: --enable ana.int.congruence
void unsignedCase() {
unsigned int top;
unsigned int i = 0;
if(top % 17 == 3) {
assert(top%17 ==3);
if(top %17 != 3) {
i = 12;
} else {
}
}
assert(i ==0);
if(top % 17 == 0) {
assert(top%17 == 0);
... | // PARAM: --enable ana.int.congruence
void unsignedCase() {
unsigned int top;
unsigned int i = 0;
if(top % 17 == 3) {
assert(top%17 ==3);
if(top %17 != 3) {
i = 12;
} else {
}
}
assert(i ==0);
if(top % 17 == 0) {
assert(top%17 == 0);
... | Add comments to confusing test | Add comments to confusing test
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
a833979af5fa88902eac3ab7a3b106ca6f0e5561 | ComponentKit/Debug/CKComponentDebugController.h | ComponentKit/Debug/CKComponentDebugController.h | /*
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#im... | /*
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#im... | Fix build error when importing debug controller header | Fix build error when importing debug controller header | C | bsd-3-clause | darknoon/componentkitx,darknoon/componentkitx,darknoon/componentkitx,darknoon/componentkitx |
e24ef2a1f2725a9c01e6e011e38232af9e300f3a | src/core/map/ContactFilter.h | src/core/map/ContactFilter.h | //
// Created by dar on 12/22/15.
//
#ifndef C003_CONTACTFILTER_H
#define C003_CONTACTFILTER_H
#include <Box2D/Dynamics/b2WorldCallbacks.h>
#include <Box2D/Dynamics/b2Fixture.h>
#include "../map/entity/Entity.h"
class ContactFilter : public b2ContactFilter {
bool doesCollide(void *a, void *b) {
bool col... | //
// Created by dar on 12/22/15.
//
#ifndef C003_CONTACTFILTER_H
#define C003_CONTACTFILTER_H
#include <Box2D/Dynamics/b2WorldCallbacks.h>
#include <Box2D/Dynamics/b2Fixture.h>
#include "../map/entity/Entity.h"
class ContactFilter : public b2ContactFilter {
bool doesCollide(void *a, void *b) {
bool col... | Use static_cast in void* casting | Use static_cast in void* casting
| C | mit | darsto/spooky,darsto/spooky |
5c1bd508ee7f2583780d267c12e2557ec5045bec | thingshub/NSFileHandle+CDZCLIStringReading.h | thingshub/NSFileHandle+CDZCLIStringReading.h | //
// NSFileHandle+CDZCLIStringReading.h
// CDZCLIApplication
//
// Created by Chris Dzombak on 1/13/14.
// Copyright (c) 2014 Chris Dzombak. All rights reserved.
//
@import Foundation;
@interface NSFileHandle (CDZCLIStringReading)
/// Read this handle's `-availableData` as a string, stripping any trailing newli... | //
// NSFileHandle+CDZCLIStringReading.h
// CDZCLIApplication
//
// Created by Chris Dzombak on 1/13/14.
// Copyright (c) 2014 Chris Dzombak. All rights reserved.
//
@import Foundation;
@interface NSFileHandle (CDZCLIStringReading)
/// Read this handle's `-availableData` as a string, stripping a single trailing ... | Update docs on cdz_availableString NSFileHandle category method | Update docs on cdz_availableString NSFileHandle category method
| C | mit | cdzombak/thingshub,cdzombak/thingshub,cdzombak/thingshub |
651849d5367cc005d2b9284b0f29a9e5347c7c48 | buffer.h | buffer.h | #ifndef BUFFER_H_
#define BUFFER_H_
#define BUFFER_SIZEOF_DESIRED 48
typedef struct Buffer {
unsigned int pos;
unsigned int size;
char* data;
char fixed[BUFFER_SIZEOF_DESIRED - 2*sizeof(unsigned int) - 1*sizeof(char*)];
} Buffer;
Buffer* buffer_init(Buffer* buffer, unsigned int size);
Buffer* buffer_... | #ifndef BUFFER_H_
#define BUFFER_H_
#define BUFFER_SIZEOF_DESIRED 64
typedef struct Buffer {
unsigned int pos;
unsigned int size;
char* data;
char fixed[BUFFER_SIZEOF_DESIRED - 2*sizeof(unsigned int) - 1*sizeof(char*)];
} Buffer;
Buffer* buffer_init(Buffer* buffer, unsigned int size);
Buffer* buffer_... | Increase stack array size from 48 to 64 | Increase stack array size from 48 to 64
| C | mit | gonzus/devel-cookie,gonzus/devel-cookie,gonzus/devel-cookie,gonzus/http-xscookies,gonzus/http-xscookies |
e581eb9f332bde7e69cf4fa10a379d860e5d133a | Settings/SettingsUI.h | Settings/SettingsUI.h | #pragma once
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <malloc.h>
#include <memory.h>
#include <prsht.h>
#include <stdlib.h>
#include <tchar.h>
#include "../3RVX/3RVX.h"
#include "resource.h"
class SettingsUI : public Window {
public:
SettingsUI(HINSTANCE hInstance);
INT_PTR LaunchProperty... | #pragma once
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <malloc.h>
#include <memory.h>
#include <prsht.h>
#include <stdlib.h>
#include <tchar.h>
#include <vector>
#include "../3RVX/3RVX.h"
#include "resource.h"
class About;
class Display;
class General;
class Hotkeys;
class OSD;
class TabPage;
class... | Add instance variables, remove callbacks | Add instance variables, remove callbacks
| C | bsd-2-clause | malensek/3RVX,malensek/3RVX,malensek/3RVX |
6edee0b9551de3172d59abb5ea107a0ffd9e2345 | config.h | config.h | /* Uncomment to compile with tcpd/libwrap support. */
//#define WITH_WRAP
/* Compile with database upgrading support? If disabled, mosquitto won't
* automatically upgrade old database versions. */
//#define WITH_DB_UPGRADE
/* Compile with memory tracking support? If disabled, mosquitto won't track
* heap memory usa... | /* Uncomment to compile with tcpd/libwrap support. */
//#define WITH_WRAP
/* Compile with database upgrading support? If disabled, mosquitto won't
* automatically upgrade old database versions. */
//#define WITH_DB_UPGRADE
/* Compile with memory tracking support? If disabled, mosquitto won't track
* heap memory usa... | Add compile option for sqlite db upgrades. | Add compile option for sqlite db upgrades.
| C | bsd-3-clause | zlargon/mosquitto,zlargon/mosquitto,zlargon/mosquitto,zlargon/mosquitto,zlargon/mosquitto |
1e8e7adb26d12dc17ef4909e153f0c949883692d | src/kernel/task/task_alloc_onstack.c | src/kernel/task/task_alloc_onstack.c | /**
* @file
*
* @date Nov 12, 2013
* @author: Anton Bondarev
*/
#include <stddef.h>
#include <kernel/task.h>
#include <kernel/thread/thread_stack.h>
#include <kernel/panic.h>
struct task *task_alloc(struct task *task, size_t task_size) {
void *addr;
assert(task);
assert(task->main_thread);
addr = thread_sta... | /**
* @file
*
* @date Nov 12, 2013
* @author: Anton Bondarev
*/
#include <stddef.h>
#include <kernel/task.h>
#include <kernel/thread/thread_stack.h>
#include <kernel/panic.h>
struct task *task_alloc(struct task *task, size_t task_size) {
void *addr;
assert(task);
assert(task->main_thread);
addr = thread_st... | Add newline between comments and includes | taskres: Add newline between comments and includes | C | bsd-2-clause | Kakadu/embox,embox/embox,Kakadu/embox,vrxfile/embox-trik,vrxfile/embox-trik,Kakadu/embox,Kefir0192/embox,Kakadu/embox,mike2390/embox,abusalimov/embox,mike2390/embox,embox/embox,vrxfile/embox-trik,mike2390/embox,gzoom13/embox,gzoom13/embox,Kefir0192/embox,gzoom13/embox,abusalimov/embox,embox/embox,vrxfile/embox-trik,Kef... |
948ec1820d49c8ec2ec68eb000e088ead4c3bf37 | src/population.h | src/population.h | #ifndef POPULATION_H
#define POPULATION_H
class POPULATION
{
public:
int **initializePopulation(int individuals, int genes, bool FILL_ZERO = false);
int **createRandomPopulation(int **population, int individuals, int genes);
};
#endif
| #ifndef POPULATION_H
#define POPULATION_H
class POPULATION
{
public:
int **initializePopulation(int individuals, int genes, bool FILL_ZERO = false);
int createRandomPopulation(int **population, int individuals, int genes);
};
#endif
| Update return datatype function 'createRandomPopulation'. | Update return datatype function 'createRandomPopulation'.
| C | mit | wkohlenberg/simple_GA |
48ebeb144908b83d6ace61a7709267ae65048c7f | include/dsnutil/log/sinkmanager.h | include/dsnutil/log/sinkmanager.h | #ifndef SINKMANAGER_H
#define SINKMANAGER_H
#include <dsnutil/singleton.h>
#include <dsnutil/log/base.h>
#include <map>
#include <string>
#include <boost/shared_ptr.hpp>
#include <boost/log/sinks.hpp>
namespace dsn {
namespace log {
class SinkManager : public dsn::Singleton<SinkManager>, public Base<SinkManager... | #ifndef SINKMANAGER_H
#define SINKMANAGER_H
#include <dsnutil/dsnutil_cpp_Export.h>
#include <dsnutil/singleton.h>
#include <dsnutil/log/base.h>
#include <map>
#include <string>
#include <boost/shared_ptr.hpp>
#include <boost/log/sinks.hpp>
namespace dsn {
namespace log {
class dsnutil_cpp_EXPORT SinkManager : ... | Add missing DLL export for log::SinkManager | Add missing DLL export for log::SinkManager
| C | bsd-3-clause | png85/dsnutil_cpp |
849d9e94eeb91981ffb0e2b3bfb87e52583c4b6a | CommonFunc.h | CommonFunc.h | // CommonFunc.h -- header file
/*
*
* Author: septimomend (Ivan Chapkailo)
*
* 30.06.2017
*
*/
#pragma once
#include "stdafx.h"
#include "AllControllers.h"
#include "AdditionalBuffer.h"
class Common : public AllControllers
{
public:
Common(AllControllers* all); // cstr
/*
* draws
*/
void drawRows(A... | // CommonFunc.h -- header file
/*
*
* Author: septimomend (Ivan Chapkailo)
*
* 30.06.2017
*
*/
#pragma once
#include "stdafx.h"
#include "AllControllers.h"
#include "AdditionalBuffer.h"
class Common : public AllControllers
{
public:
Common(AllControllers* all); // cstr
/*
* draws
*/
void drawRows(A... | Add new functions described in TODO comment | TODO: Add new functions described in TODO comment
| C | mit | septimomend/UNIX-C-Text-Editor,septimomend/UNIX-C-Text-Editor |
81de6e841c6775e619b94c12be49969be9d68968 | libmypaint.c | libmypaint.c | /* Include this file in your project
* if you don't want to build libmypaint as a separate library
* Note that still need to do -I./path/to/libmypaint/sources
* for the includes here to succeed. */
#include "mapping.c"
#include "helpers.c"
#include "brushmodes.c"
#include "fifo.c"
#include "operationqueue.c"
#inclu... | /* Include this file in your project
* if you don't want to build libmypaint as a separate library
* Note that still need to do -I./path/to/libmypaint/sources
* for the includes here to succeed. */
#include "helpers.c"
#include "brushmodes.c"
#include "fifo.c"
#include "operationqueue.c"
#include "rng-double.c"
#in... | Remove a lingering ref to mapping.c | Remove a lingering ref to mapping.c
| C | isc | achadwick/libmypaint,achadwick/libmypaint,achadwick/libmypaint,achadwick/libmypaint |
4720a44172fff28774ded70c15f1df66a43b8b44 | src/util/util_version.h | src/util/util_version.h | /*
* Copyright 2011-2016 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-2016 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... | Bump version to 1.13, matching blender 2.90 release cycle | Bump version to 1.13, matching blender 2.90 release cycle
| C | apache-2.0 | tangent-opensource/coreBlackbird,tangent-opensource/coreBlackbird,tangent-opensource/coreBlackbird |
96c9be5cd8c08e270a848b36f010a266ecb56931 | menpo/feature/cpp/WindowFeature.h | menpo/feature/cpp/WindowFeature.h | #pragma once
#if _MSC_VER < 1900
#define round(x) (x >= 0 ? (x + 0.5) : (x - 0.5))
#endif
class WindowFeature {
public:
WindowFeature();
virtual ~WindowFeature();
virtual void apply(double *windowImage, double *descriptorVector) = 0;
unsigned int descriptorLengthPerWindow;
};
| #pragma once
#if defined(_MSC_VER) && _MSC_VER < 1900
#define round(x) (x >= 0 ? (x + 0.5) : (x - 0.5))
#endif
class WindowFeature {
public:
WindowFeature();
virtual ~WindowFeature();
virtual void apply(double *windowImage, double *descriptorVector) = 0;
unsigned int descriptorLengthPerWindow;
};
| Check _MSC_VER is defined and less than 1900 | Check _MSC_VER is defined and less than 1900
| C | bsd-3-clause | grigorisg9gr/menpo,menpo/menpo,menpo/menpo,grigorisg9gr/menpo,grigorisg9gr/menpo,menpo/menpo,patricksnape/menpo,yuxiang-zhou/menpo,patricksnape/menpo,yuxiang-zhou/menpo,patricksnape/menpo,yuxiang-zhou/menpo |
995d9a599905dfbb059b7c5d3ba8b0af240e42d5 | 021.calling_c/c_code.c | 021.calling_c/c_code.c | typedef union {
unsigned char* ptr;
unsigned short word[2];
} word_extract_t;
void
PokeBitplanePointers(unsigned short* copper, unsigned char* bitplanes, unsigned offset, unsigned numBitplanes, unsigned screenWidthBytes)
{
int i;
copper += offset;
for (i = 0; i < numBitplanes; i++) {
word_extract_t ext... | typedef union {
unsigned char* ptr;
struct {
unsigned short hi;
unsigned short lo;
} words;
} word_extract_t;
void
PokeBitplanePointers(unsigned short* copper, unsigned char* bitplanes, unsigned offset, unsigned numBitplanes, unsigned screenWidthBytes)
{
int i;
copper += offset;
for (i = 0; i < n... | Make C example more C, less asm | Make C example more C, less asm
| C | bsd-2-clause | alpine9000/amiga_examples,alpine9000/amiga_examples,alpine9000/amiga_examples |
ee41eea947ebe2f1f627fafe0e429b5dcaaab944 | arch/powerpc/boot/reg.h | arch/powerpc/boot/reg.h | #ifndef _PPC_BOOT_REG_H
#define _PPC_BOOT_REG_H
/*
* Copyright 2007 Davud Gibson, IBM Corporation.
*
* 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 (... | #ifndef _PPC_BOOT_REG_H
#define _PPC_BOOT_REG_H
/*
* Copyright 2007 Davud Gibson, IBM Corporation.
*
* 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 (... | Add mfspr/mtspr inline macros to 4xx bootwrapper | [POWERPC] 4xx: Add mfspr/mtspr inline macros to 4xx bootwrapper
The 4xx bootwrapper occasionally needs to access SPR registers,
this adds mfspr/mtspr wrappers to it.
Signed-off-by: Benjamin Herrenschmidt <a7089bb6e7e92505d88aaff006cbdd60cc9120b6@kernel.crashing.org>
Signed-off-by: Josh Boyer <94755a79aca753e683bb6d0e... | C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Program... |
08c3a7a1490994541c1771fc5b1e968f040277ab | src/error.c | src/error.c | #include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "error.h"
static char *pname;
void
setpname(char *name)
{
pname = name;
}
char *
getpname(void)
{
return pname;
}
static inline
void
vwarn(const char *fmt, va_list al)
{
fflush(NULL);
if (pname != NULL)
... | #include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "error.h"
static char *pname;
void
setpname(char *name)
{
pname = name;
}
char *
getpname(void)
{
return pname;
}
static inline
void
vwarn(const char *fmt, va_list al)
{
fflush(NULL);
if (pname != NULL)
... | Change function die to exit with status 2 instead of 0 | Change function die to exit with status 2 instead of 0
| C | isc | flimberger/qsmerge,flimberger/qsmerge |
6fbbd5dad25f58fc79c7e9b42528e3f21ebe6ba8 | include/kbd.h | include/kbd.h | #ifndef H_KBD
#define H_KBD
#include <stddef.h>
#include <stdbool.h>
struct keyevent {
int keycode;
char character;
bool release;
bool shift;
bool ctrl;
} keybuffer[128];
void kbdinit();
bool kbdavail();
struct keyevent* kbdpoll();
void kbdregsig(bool* b);
void kbdunregsig(bool* b);
#endif
| #ifndef H_KBD
#define H_KBD
#include <stddef.h>
#include <stdbool.h>
struct keyevent {
int keycode;
char character;
bool release;
bool shift;
bool ctrl;
} keybuffer[256];
void kbdinit();
bool kbdavail();
struct keyevent* kbdpoll();
void kbdregsig(bool* b);
void kbdunregsig(bool* b);
#endif
| Raise keyboard event stack size to 256 | Raise keyboard event stack size to 256
| C | bsd-2-clause | Easimer/easios,Easimer/easios,Easimer/easios |
711ac30abb29d7209f685227f3a1f978a0d01390 | IAAI.c | IAAI.c | #include <stdio.h>
#include <stdlib.h>
int main() {
system("/bin/stty raw");
int i = 0;
char str[] = "I AM AN IDIOT ";
while(1){
for(i = 0; i<14; i++) {
getchar();
printf("\b%c", str[i]);
}
system("/bin/stty cooked");
printf("\n");
system("/bin/stty raw");
}
return 0;
}
| #include <stdio.h>
#include <stdlib.h>
#define STTY "/bin/stty "
const char RAW[] = STTY "raw";
const char COOKED[] = STTY "cooked";
int main() {
system(RAW);
int i = 0;
char str[] = "I AM AN IDIOT ";
while(1){
for(i = 0; i<14; i++) {
getchar();
printf("\b%c", str[i]);
}
system(COOKE... | Make it easier to change stty constant if needed | Make it easier to change stty constant if needed
| C | mit | vinamarora8/IAAI |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.